💥 Rename Pack to MixComponents

This commit is contained in:
Manuel Cillero 2023-08-17 23:52:22 +02:00
parent 6197052ae7
commit 24f2f0d765
9 changed files with 52 additions and 52 deletions

View file

@ -12,7 +12,7 @@ pub struct Block {
id : IdentifierValue,
classes : Classes,
title : AttributeValue,
stuff : PackComponents,
stuff : MixComponents,
template : String,
}
@ -94,12 +94,12 @@ impl Block {
}
pub fn with_component(mut self, component: impl ComponentTrait) -> Self {
self.stuff.alter(PackOp::Add(ComponentArc::with(component)));
self.stuff.alter(MixOp::Add(ComponentArc::with(component)));
self
}
#[fn_builder]
pub fn alter_components(&mut self, op: PackOp) -> &mut Self {
pub fn alter_components(&mut self, op: MixOp) -> &mut Self {
self.stuff.alter(op);
self
}
@ -120,7 +120,7 @@ impl Block {
&self.title
}
pub fn components(&self) -> &PackComponents {
pub fn components(&self) -> &MixComponents {
&self.stuff
}

View file

@ -23,7 +23,7 @@ pub struct Container {
classes : Classes,
inner_classes : Classes,
container_type: ContainerType,
stuff : PackComponents,
stuff : MixComponents,
template : String,
}
@ -155,12 +155,12 @@ impl Container {
}
pub fn with_component(mut self, component: impl ComponentTrait) -> Self {
self.stuff.alter(PackOp::Add(ComponentArc::with(component)));
self.stuff.alter(MixOp::Add(ComponentArc::with(component)));
self
}
#[fn_builder]
pub fn alter_components(&mut self, op: PackOp) -> &mut Self {
pub fn alter_components(&mut self, op: MixOp) -> &mut Self {
self.stuff.alter(op);
self
}
@ -185,7 +185,7 @@ impl Container {
&self.container_type
}
pub fn components(&self) -> &PackComponents {
pub fn components(&self) -> &MixComponents {
&self.stuff
}

View file

@ -44,7 +44,7 @@ pub struct Item {
id : IdentifierValue,
classes : Classes,
size : ItemSize,
stuff : PackComponents,
stuff : MixComponents,
template : String,
}
@ -136,12 +136,12 @@ impl Item {
}
pub fn with_component(mut self, component: impl ComponentTrait) -> Self {
self.stuff.alter(PackOp::Add(ComponentArc::with(component)));
self.stuff.alter(MixOp::Add(ComponentArc::with(component)));
self
}
#[fn_builder]
pub fn alter_components(&mut self, op: PackOp) -> &mut Self {
pub fn alter_components(&mut self, op: MixOp) -> &mut Self {
self.stuff.alter(op);
self
}
@ -162,7 +162,7 @@ impl Item {
&self.size
}
pub fn components(&self) -> &PackComponents {
pub fn components(&self) -> &MixComponents {
&self.stuff
}

View file

@ -21,7 +21,7 @@ pub struct Form {
action : AttributeValue,
charset : AttributeValue,
method : FormMethod,
stuff : PackComponents,
stuff : MixComponents,
template : String,
}
@ -121,12 +121,12 @@ impl Form {
}
pub fn with_element(mut self, element: impl ComponentTrait) -> Self {
self.stuff.alter(PackOp::Add(ComponentArc::with(element)));
self.stuff.alter(MixOp::Add(ComponentArc::with(element)));
self
}
#[fn_builder]
pub fn alter_elements(&mut self, op: PackOp) -> &mut Self {
pub fn alter_elements(&mut self, op: MixOp) -> &mut Self {
self.stuff.alter(op);
self
}
@ -155,7 +155,7 @@ impl Form {
&self.method
}
pub fn elements(&self) -> &PackComponents {
pub fn elements(&self) -> &MixComponents {
&self.stuff
}

View file

@ -44,7 +44,7 @@ pub struct Column {
id : IdentifierValue,
classes : Classes,
size : ColumnSize,
stuff : PackComponents,
stuff : MixComponents,
template : String,
}
@ -136,12 +136,12 @@ impl Column {
}
pub fn with_component(mut self, component: impl ComponentTrait) -> Self {
self.stuff.alter(PackOp::Add(ComponentArc::with(component)));
self.stuff.alter(MixOp::Add(ComponentArc::with(component)));
self
}
#[fn_builder]
pub fn alter_components(&mut self, op: PackOp) -> &mut Self {
pub fn alter_components(&mut self, op: MixOp) -> &mut Self {
self.stuff.alter(op);
self
}
@ -162,7 +162,7 @@ impl Column {
&self.size
}
pub fn components(&self) -> &PackComponents {
pub fn components(&self) -> &MixComponents {
&self.stuff
}

View file

@ -20,7 +20,7 @@ pub struct Paragraph {
renderable: Renderable,
id : IdentifierValue,
classes : Classes,
stuff : PackComponents,
stuff : MixComponents,
display : ParagraphDisplay,
template : String,
}
@ -90,12 +90,12 @@ impl Paragraph {
}
pub fn with_component(mut self, component: impl ComponentTrait) -> Self {
self.stuff.alter(PackOp::Add(ComponentArc::with(component)));
self.stuff.alter(MixOp::Add(ComponentArc::with(component)));
self
}
#[fn_builder]
pub fn alter_components(&mut self, op: PackOp) -> &mut Self {
pub fn alter_components(&mut self, op: MixOp) -> &mut Self {
self.stuff.alter(op);
self
}
@ -130,7 +130,7 @@ impl Paragraph {
&self.classes
}
pub fn components(&self) -> &PackComponents {
pub fn components(&self) -> &MixComponents {
&self.stuff
}