lwc

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "LightningComponentBundle"

Variables

This section is empty.

Functions

This section is empty.

Types

type LightningComponentBundle

type LightningComponentBundle struct {
	metadata.MetadataInfo
	XMLName    xml.Name `xml:"LightningComponentBundle"`
	Xmlns      string   `xml:"xmlns,attr"`
	Fqn        *string  `xml:"fqn,attr"`
	ApiVersion struct {
		Text string `xml:",chardata"`
	} `xml:"apiVersion"`
	Description *struct {
		Text string `xml:",chardata"`
	} `xml:"description"`
	IsExposed struct {
		Text string `xml:",chardata"`
	} `xml:"isExposed"`
	MasterLabel *struct {
		Text string `xml:",chardata"`
	} `xml:"masterLabel"`
	RuntimeNamespace *struct {
		Text string `xml:",chardata"`
	} `xml:"runtimeNamespace"`
	Targets *struct {
		Target []struct {
			Text string `xml:",chardata"`
		} `xml:"target"`
	} `xml:"targets"`
	TargetConfigs *struct {
		TargetConfig []struct {
			Xmlns    *string `xml:"xmlns,attr"`
			Targets  string  `xml:"targets,attr"`
			Property []struct {
				Name        string  `xml:"name,attr"`
				Label       *string `xml:"label,attr"`
				Type        string  `xml:"type,attr"`
				Role        *string `xml:"role,attr"`
				Description *string `xml:"description,attr"`
				Datasource  *string `xml:"datasource,attr"`
				Default     *string `xml:"default,attr"`
				Required    *string `xml:"required,attr"`
			} `xml:"property"`
			SupportedFormFactors *struct {
				SupportedFormFactor []struct {
					Type string `xml:"type,attr"`
				} `xml:"supportedFormFactor"`
			} `xml:"supportedFormFactors"`
			ActionType *struct {
				Text string `xml:",chardata"`
			} `xml:"actionType"`
		} `xml:"targetConfig"`
	} `xml:"targetConfigs"`
	BundleFiles map[string][]byte `xml:"-"`
	SourcePath  string            `xml:"-"`
}

func Open

func Open(path string) (*LightningComponentBundle, error)

func (*LightningComponentBundle) Files

func (c *LightningComponentBundle) Files(format metadata.Format) (map[string][]byte, error)

func (*LightningComponentBundle) SetMetadata

func (*LightningComponentBundle) Tidy

func (c *LightningComponentBundle) Tidy()

Tidy implements the general.Tidyable interface It sorts targets and targetConfigs to ensure consistent output

func (*LightningComponentBundle) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL