Update config, BasaltLS definitions, bundle and changelog

This commit is contained in:
github-actions[bot]
2025-03-29 02:47:34 +00:00
parent c341eea972
commit 4f631b47cb
3 changed files with 3233 additions and 3230 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,396 +1,396 @@
return {
["metadata"] = {
["generated"] = "Thu Mar 27 23:37:12 2025",
["version"] = "2.0",
},
["categories"] = {
["elements"] = {
["files"] = {
["Scrollbar"] = {
["size"] = 9164,
["default"] = true,
["path"] = "elements/Scrollbar.lua",
["TextBox"] = {
["default"] = false,
["path"] = "elements/TextBox.lua",
["description"] = "A multi-line text editor component with cursor support and text manipulation features",
["size"] = 10904,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
},
["Container"] = {
["size"] = 23195,
["default"] = true,
["path"] = "elements/Container.lua",
["requires"] = {
[1] = "VisualElement",
},
["description"] = "The container class. It is a visual element that can contain other elements. It is the base class for all containers",
},
["Input"] = {
["size"] = 8358,
["default"] = true,
["path"] = "elements/Input.lua",
["requires"] = {
[1] = "VisualElement",
},
["description"] = "A text input field with various features",
},
["Tree"] = {
["size"] = 7919,
["default"] = true,
["path"] = "elements/Tree.lua",
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
},
["BaseElement"] = {
["size"] = 9402,
["default"] = true,
["path"] = "elements/BaseElement.lua",
["requires"] = {
},
["description"] = "The base class for all UI elements in Basalt.",
},
["Program"] = {
["size"] = 6295,
["default"] = true,
["path"] = "elements/Program.lua",
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
},
["Slider"] = {
["size"] = 4676,
["default"] = true,
["path"] = "elements/Slider.lua",
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
},
["BaseFrame"] = {
["size"] = 7769,
["default"] = true,
["path"] = "elements/BaseFrame.lua",
["description"] = "This is the base frame class. It is the root element of all elements and the only element without a parent.",
["size"] = 7769,
["requires"] = {
[1] = "Container",
},
["description"] = "This is the base frame class. It is the root element of all elements and the only element without a parent.",
},
["TextBox"] = {
["size"] = 10904,
["default"] = false,
["path"] = "elements/TextBox.lua",
["requires"] = {
[1] = "VisualElement",
},
["description"] = "A multi-line text editor component with cursor support and text manipulation features",
},
["Button"] = {
["size"] = 1632,
["Container"] = {
["default"] = true,
["path"] = "elements/Button.lua",
["path"] = "elements/Container.lua",
["description"] = "The container class. It is a visual element that can contain other elements. It is the base class for all containers",
["size"] = 23194,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
},
["BigFont"] = {
["size"] = 20670,
["Display"] = {
["default"] = false,
["path"] = "elements/BigFont.lua",
["path"] = "elements/Display.lua",
["description"] = "The Display is a special element which uses the cc window API which you can use.",
["size"] = 3964,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
},
["Table"] = {
["size"] = 7586,
["default"] = true,
["path"] = "elements/Table.lua",
["description"] = "",
["size"] = 7586,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
},
["List"] = {
["default"] = true,
["path"] = "elements/List.lua",
["description"] = "A scrollable list of selectable items",
["size"] = 8684,
["requires"] = {
[1] = "VisualElement",
},
},
["Input"] = {
["default"] = true,
["path"] = "elements/Input.lua",
["description"] = "A text input field with various features",
["size"] = 8358,
["requires"] = {
[1] = "VisualElement",
},
},
["Graph"] = {
["default"] = false,
["path"] = "elements/Graph.lua",
["description"] = "A point based graph element",
["size"] = 5940,
["requires"] = {
},
},
["Frame"] = {
["default"] = true,
["path"] = "elements/Frame.lua",
["description"] = "A frame element that serves as a grouping container for other elements.",
["size"] = 4435,
["requires"] = {
[1] = "Container",
},
},
["Menu"] = {
["default"] = true,
["path"] = "elements/Menu.lua",
["description"] = "A horizontal menu bar with selectable items.",
["size"] = 4657,
["requires"] = {
[1] = "List",
},
},
["Dropdown"] = {
["default"] = false,
["path"] = "elements/Dropdown.lua",
["description"] = "A dropdown menu that shows a list of selectable items",
["size"] = 5941,
["requires"] = {
[1] = "List",
},
},
["Checkbox"] = {
["size"] = 2872,
["default"] = true,
["path"] = "elements/Checkbox.lua",
["description"] = "",
["size"] = 2872,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
},
["VisualElement"] = {
["size"] = 17054,
["default"] = true,
["path"] = "elements/VisualElement.lua",
["description"] = "The Visual Element class which is the base class for all visual UI elements",
["size"] = 17054,
["requires"] = {
[1] = "BaseElement",
},
["description"] = "The Visual Element class which is the base class for all visual UI elements",
},
["Menu"] = {
["size"] = 4657,
["Tree"] = {
["default"] = true,
["path"] = "elements/Menu.lua",
["requires"] = {
[1] = "List",
},
["description"] = "A horizontal menu bar with selectable items.",
},
["LineChart"] = {
["size"] = 2707,
["default"] = false,
["path"] = "elements/LineChart.lua",
["requires"] = {
},
["path"] = "elements/Tree.lua",
["description"] = "",
},
["BarChart"] = {
["size"] = 2635,
["default"] = false,
["path"] = "elements/BarChart.lua",
["size"] = 7919,
["requires"] = {
[1] = "VisualElement",
},
},
["Button"] = {
["default"] = true,
["path"] = "elements/Button.lua",
["description"] = "",
["size"] = 1632,
["requires"] = {
[1] = "VisualElement",
},
},
["Flexbox"] = {
["size"] = 11530,
["Program"] = {
["default"] = true,
["path"] = "elements/Flexbox.lua",
["requires"] = {
[1] = "Container",
},
["description"] = "A flexbox container that arranges its children in a flexible layout.",
},
["List"] = {
["size"] = 8684,
["default"] = true,
["path"] = "elements/List.lua",
["path"] = "elements/Program.lua",
["description"] = "",
["size"] = 6295,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "A scrollable list of selectable items",
},
["Display"] = {
["size"] = 3964,
["BigFont"] = {
["default"] = false,
["path"] = "elements/Display.lua",
["path"] = "elements/BigFont.lua",
["description"] = "",
["size"] = 20670,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "The Display is a special element which uses the cc window API which you can use.",
},
["Dropdown"] = {
["size"] = 5941,
["default"] = false,
["path"] = "elements/Dropdown.lua",
["requires"] = {
[1] = "List",
},
["description"] = "A dropdown menu that shows a list of selectable items",
},
["Image"] = {
["size"] = 15102,
["default"] = false,
["path"] = "elements/Image.lua",
["requires"] = {
[1] = "VisualElement",
},
["description"] = "An element that displays an image in bimg format",
},
["Label"] = {
["size"] = 3069,
["default"] = true,
["path"] = "elements/Label.lua",
["description"] = "A simple text display element that automatically resizes its width based on the text content.",
["size"] = 3069,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "A simple text display element that automatically resizes its width based on the text content.",
},
["Graph"] = {
["size"] = 5940,
["default"] = false,
["path"] = "elements/Graph.lua",
["BaseElement"] = {
["default"] = true,
["path"] = "elements/BaseElement.lua",
["description"] = "The base class for all UI elements in Basalt.",
["size"] = 9402,
["requires"] = {
},
["description"] = "A point based graph element",
},
["Frame"] = {
["size"] = 4435,
["Image"] = {
["default"] = false,
["path"] = "elements/Image.lua",
["description"] = "An element that displays an image in bimg format",
["size"] = 15102,
["requires"] = {
[1] = "VisualElement",
},
},
["ProgressBar"] = {
["default"] = true,
["path"] = "elements/Frame.lua",
["path"] = "elements/ProgressBar.lua",
["description"] = "",
["size"] = 2272,
["requires"] = {
[1] = "VisualElement",
},
},
["Scrollbar"] = {
["default"] = true,
["path"] = "elements/Scrollbar.lua",
["description"] = "",
["size"] = 9164,
["requires"] = {
[1] = "VisualElement",
},
},
["LineChart"] = {
["default"] = false,
["path"] = "elements/LineChart.lua",
["description"] = "",
["size"] = 2707,
["requires"] = {
},
},
["Slider"] = {
["default"] = true,
["path"] = "elements/Slider.lua",
["description"] = "",
["size"] = 4676,
["requires"] = {
[1] = "VisualElement",
},
},
["BarChart"] = {
["default"] = false,
["path"] = "elements/BarChart.lua",
["description"] = "",
["size"] = 2635,
["requires"] = {
},
},
["Flexbox"] = {
["default"] = true,
["path"] = "elements/Flexbox.lua",
["description"] = "A flexbox container that arranges its children in a flexible layout.",
["size"] = 11530,
["requires"] = {
[1] = "Container",
},
["description"] = "A frame element that serves as a grouping container for other elements.",
},
["ProgressBar"] = {
["size"] = 2272,
["default"] = true,
["path"] = "elements/ProgressBar.lua",
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
},
},
["description"] = "UI Elements",
},
["plugins"] = {
["files"] = {
["animation"] = {
["size"] = 14749,
["default"] = true,
["path"] = "plugins/animation.lua",
["requires"] = {
},
["description"] = "",
},
["benchmark"] = {
["size"] = 12497,
["default"] = true,
["path"] = "plugins/benchmark.lua",
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
},
["debug"] = {
["size"] = 6175,
["default"] = true,
["path"] = "plugins/debug.lua",
["requires"] = {
},
["description"] = "",
},
["xml"] = {
["size"] = 9614,
["default"] = true,
["path"] = "plugins/xml.lua",
["requires"] = {
},
["description"] = "",
},
["theme"] = {
["size"] = 5901,
["default"] = true,
["path"] = "plugins/theme.lua",
["requires"] = {
},
["description"] = "",
},
["state"] = {
["size"] = 6926,
["default"] = true,
["path"] = "plugins/state.lua",
["requires"] = {
[1] = "Container",
},
["description"] = "",
},
["reactive"] = {
["size"] = 6962,
["default"] = true,
["path"] = "plugins/reactive.lua",
["requires"] = {
},
["description"] = "",
},
},
["description"] = "Plugins",
},
["libraries"] = {
["files"] = {
["expect"] = {
["size"] = 846,
["default"] = true,
["path"] = "libraries/expect.lua",
["description"] = "",
["size"] = 846,
["requires"] = {
},
["description"] = "",
},
["colorHex"] = {
["size"] = 132,
["default"] = true,
["path"] = "libraries/colorHex.lua",
["description"] = "",
["size"] = 132,
["requires"] = {
},
["description"] = "",
},
["utils"] = {
["size"] = 2661,
["default"] = true,
["path"] = "libraries/utils.lua",
["description"] = "",
["size"] = 2661,
["requires"] = {
},
["description"] = "",
},
},
["description"] = "Libraries",
},
["plugins"] = {
["files"] = {
["animation"] = {
["default"] = true,
["path"] = "plugins/animation.lua",
["description"] = "",
["size"] = 14749,
["requires"] = {
},
},
["xml"] = {
["default"] = true,
["path"] = "plugins/xml.lua",
["description"] = "",
["size"] = 9901,
["requires"] = {
},
},
["theme"] = {
["default"] = true,
["path"] = "plugins/theme.lua",
["description"] = "",
["size"] = 5901,
["requires"] = {
},
},
["reactive"] = {
["default"] = true,
["path"] = "plugins/reactive.lua",
["description"] = "",
["size"] = 6962,
["requires"] = {
},
},
["benchmark"] = {
["default"] = true,
["path"] = "plugins/benchmark.lua",
["description"] = "",
["size"] = 12497,
["requires"] = {
[1] = "VisualElement",
},
},
["debug"] = {
["default"] = true,
["path"] = "plugins/debug.lua",
["description"] = "",
["size"] = 6175,
["requires"] = {
},
},
["state"] = {
["default"] = true,
["path"] = "plugins/state.lua",
["description"] = "",
["size"] = 6926,
["requires"] = {
[1] = "Container",
},
},
},
["description"] = "Plugins",
},
["core"] = {
["files"] = {
["propertySystem"] = {
["size"] = 15224,
["default"] = true,
["path"] = "propertySystem.lua",
["requires"] = {
},
["description"] = "",
},
["log"] = {
["size"] = 3142,
["default"] = true,
["path"] = "log.lua",
["requires"] = {
},
["description"] = "",
},
["render"] = {
["size"] = 11100,
["default"] = true,
["path"] = "render.lua",
["requires"] = {
},
["description"] = "",
},
["main"] = {
["size"] = 10142,
["default"] = true,
["path"] = "main.lua",
["description"] = "",
["size"] = 10255,
["requires"] = {
},
["description"] = "",
},
["elementManager"] = {
["size"] = 6297,
["propertySystem"] = {
["default"] = true,
["path"] = "elementManager.lua",
["path"] = "propertySystem.lua",
["description"] = "",
["size"] = 15224,
["requires"] = {
},
["description"] = "",
},
["init"] = {
["size"] = 519,
["default"] = true,
["path"] = "init.lua",
["requires"] = {
},
["description"] = "",
},
["errorManager"] = {
["size"] = 3789,
["default"] = true,
["path"] = "errorManager.lua",
["description"] = "",
["size"] = 3789,
["requires"] = {
},
},
["render"] = {
["default"] = true,
["path"] = "render.lua",
["description"] = "",
["size"] = 11100,
["requires"] = {
},
},
["log"] = {
["default"] = true,
["path"] = "log.lua",
["description"] = "",
["size"] = 3142,
["requires"] = {
},
},
["elementManager"] = {
["default"] = true,
["path"] = "elementManager.lua",
["description"] = "",
["size"] = 6297,
["requires"] = {
},
},
["init"] = {
["default"] = true,
["path"] = "init.lua",
["description"] = "",
["size"] = 519,
["requires"] = {
},
},
},
["description"] = "Core Files",
},
},
["metadata"] = {
["version"] = "2.0",
["generated"] = "Sat Mar 29 02:47:28 2025",
},
}

View File

@@ -1718,14 +1718,16 @@ d_a(bca)=="string")then bca={name=bca}end
if(bca==nil)then bca={name=aca}end;local _da=ad.getElement(aca)
if(cca)then
local ada=cd.blueprint(_da,bca,__a,dca)table.insert(_aa,ada)daa()return ada else local ada=_da.new()
ada:init(bca,__a)return ada end end;function __a.createFrame()local aca=__a.create("BaseFrame")aca:postInit()
return aca end
function __a.getElementManager()return ad end;function __a.getErrorManager()return bd end;function __a.getMainFrame()
local aca=tostring(term.current())if(c_a[aca]==nil)then a_a=aca;__a.createFrame()end;return
c_a[aca]end
function __a.setActiveFrame(aca,bca)
local cca=aca:getTerm()if(bca==nil)then bca=true end;if(cca~=nil)then
c_a[tostring(cca)]=bca and aca or nil;aca:updateRender()end end;function __a.getActiveFrame(aca)if(aca==nil)then aca=term.current()end;return
ada:init(bca,__a)return ada end end
function __a.createFrame()local aca=__a.create("BaseFrame")aca:postInit()if
(a_a==nil)then a_a=tostring(term.current())
__a.setActiveFrame(aca,true)end;return aca end;function __a.getElementManager()return ad end
function __a.getErrorManager()return bd end
function __a.getMainFrame()local aca=tostring(term.current())if(c_a[aca]==nil)then
a_a=aca;__a.createFrame()end;return c_a[aca]end
function __a.setActiveFrame(aca,bca)local cca=aca:getTerm()if(bca==nil)then bca=true end
if(cca~=nil)then c_a[tostring(cca)]=
bca and aca or nil;aca:updateRender()end end;function __a.getActiveFrame(aca)if(aca==nil)then aca=term.current()end;return
c_a[tostring(aca)]end
function __a.setFocus(aca)if
(b_a==aca)then return end
@@ -1808,15 +1810,15 @@ local __a,a_a=string.gsub(bd,"(%w+)={(.-)}",function(b_a,c_a)ad:addAttribute(b_a
local _c={parseText=function(ad)local bd={}local cd=cb.new()table.insert(bd,cd)local dd,__a,a_a,b_a,c_a;local d_a,_aa=1,1
while
true do
dd,_aa,__a,a_a,b_a,c_a=string.find(ad,"<(%/?)([%w_:]+)(.-)(%/?)>",d_a)if not dd then break end;local baa=string.sub(ad,d_a,dd-1)if not
string.find(baa,"^%s*$")then local caa=(cd.value or"")..baa
bd[#bd].value=caa end
if c_a=="/"then local caa=cb.new(a_a)
db(caa,b_a)cd:addChild(caa)elseif __a==""then local caa=cb.new(a_a)db(caa,b_a)
table.insert(bd,caa)cd=caa else local caa=table.remove(bd)cd=bd[#bd]
dd,_aa,__a,a_a,b_a,c_a=string.find(ad,"<(%/?)([%w_:]+)(.-)(%/?)>",d_a)if not dd then break end;local aaa=string.sub(ad,d_a,dd-1)if not
string.find(aaa,"^%s*$")then local baa=(cd.value or"")..aaa
bd[#bd].value=baa end
if c_a=="/"then local baa=cb.new(a_a)
db(baa,b_a)cd:addChild(baa)elseif __a==""then local baa=cb.new(a_a)db(baa,b_a)
table.insert(bd,baa)cd=baa else local baa=table.remove(bd)cd=bd[#bd]
if#bd<1 then ab.error(
"XMLParser: nothing to close with "..a_a)end;if caa.tag~=a_a then
ab.error("XMLParser: trying to close "..caa.tag.." with "..a_a)end;cd:addChild(caa)end;d_a=_aa+1 end;local aaa=string.sub(ad,d_a)if#bd>1 then
"XMLParser: nothing to close with "..a_a)end;if baa.tag~=a_a then
ab.error("XMLParser: trying to close "..baa.tag.." with "..a_a)end;cd:addChild(baa)end;d_a=_aa+1 end;if#bd>1 then
error("XMLParser: unclosed "..bd[#bd].tag)end;return cd.children end}
local function ac(ad)local bd={}local cd=1
while true do local dd,__a,a_a=ad:find("%${([^}]+)}",cd)
@@ -1842,24 +1844,24 @@ for b_a,c_a in pairs(__a.attributes)do a_a[b_a]=bc(c_a,bd)end;for b_a,c_a in pai
if c_a.value then a_a[c_a.tag]=bc(c_a.value,bd)elseif#
c_a.children>0 then a_a[c_a.tag]=cc(c_a)end end
table.insert(cd,a_a)else if __a.value then cd[__a.tag]=bc(__a.value,bd)elseif#__a.children>0 then
cd[__a.tag]=cc(__a)end end end;return cd end;local dc={}
cd[__a.tag]=cc(__a)end end end;return cd end;local dc={}function dc.setup(ad)
ad.defineProperty(ad,"customXML",{default={attributes={},children={}},type="table"})end
function dc:fromXML(ad,bd)
if(ad.attributes)then
for cd,dd in pairs(ad.attributes)do
if(self._properties[cd])then
self.set(cd,bc(dd,bd))elseif self[cd]then
if(cd:sub(1,2)=="on")then local __a=dd:gsub("\"","")
if(bd[__a])then if(
type(bd[__a])~="function")then
ab.error("XMLParser: variable '"..
__a.."' is not a function for element '"..self:getType()..
"' "..cd)end
for cd,dd in
pairs(ad.attributes)do
if(self._properties[cd])then self.set(cd,bc(dd,bd))elseif self[cd]then
if(
cd:sub(1,2)=="on")then local __a=dd:gsub("\"","")
if(bd[__a])then if
(type(bd[__a])~="function")then
ab.error("XMLParser: variable '"..__a..
"' is not a function for element '"..self:getType().."' "..cd)end
self[cd](self,bd[__a])else
ab.error("XMLParser: variable '"..__a.."' not found in scope")end else
ab.error("XMLParser: property '"..cd..
"' not found in element '"..self:getType().."'")end else
ab.error("XMLParser: property '"..cd..
"' not found in element '"..self:getType().."'")end end end
"' not found in element '"..self:getType().."'")end else local __a=self.get("customXML")
__a.attributes[cd]=bc(dd,bd)end end end
if(ad.children)then
for cd,dd in pairs(ad.children)do
if(self._properties[dd.tag])then if(
@@ -1872,7 +1874,8 @@ if(b_a.tag=="param")then
table.insert(__a,bc(b_a.value,bd))elseif(b_a.tag=="table")then table.insert(__a,cc(b_a,bd))end end end
if(self[dd.tag])then if(#__a>0)then
self[dd.tag](self,table.unpack(__a))elseif(dd.value)then self[dd.tag](self,bc(dd.value,bd))else
self[dd.tag](self)end end end end end;return self end;local _d={}
self[dd.tag](self)end else
local a_a=self.get("customXML")dd.value=bc(dd.value,bd)a_a.children[dd.tag]=dd end end end end;return self end;local _d={}
function _d:loadXML(ad,bd)bd=bd or{}local cd=_c.parseText(ad)
self:fromXML(cd,bd)
if(cd)then