models

package
v0.0.0-...-589f0e7 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 23 Imported by: 8

Documentation

Overview

Default generated models package docs (at least one file is necessary in a models package)

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

Index

Constants

View Source
const IdentifiersDecls = `
	{{Identifier}} := (&models.{{GeneratedStructName}}{}).Stage(stage)`
View Source
const MetaFieldStructInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = ` + `{{GeneratedFieldNameValue}}`
View Source
const NoteOnFormFieldDateTime = ""

GONGDOC(NoteOnFormFieldDateTime): models.FormFieldDateTime provides two form fields that will make the precision of go time.Time

View Source
const NumberInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
const PointerFieldInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
const ProbeFormSuffix = ":form of the probe"
View Source
const ProbeSplitSuffix = ":probe of the probe"
View Source
const ProbeTableSuffix = ":table of the probe"
View Source
const ProbeTreeSidebarSuffix = ":sidebar of the probe"
View Source
const SliceOfPointersFieldInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = append({{Identifier}}.{{GeneratedFieldName}}, {{GeneratedFieldNameValue}})`
View Source
const StringEnumInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
const StringInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = ` + "`" + `{{GeneratedFieldNameValue}}` + "`"
View Source
const TimeInitStatement = `` /* 129-byte string literal not displayed */

Variables

This section is empty.

Functions

func AfterCreateFromFront

func AfterCreateFromFront[Type Gongstruct](stage *Stage, instance *Type)

AfterCreateFromFront is called after a create from front

func AfterDeleteFromFront

func AfterDeleteFromFront[Type Gongstruct](stage *Stage, staged, front *Type)

AfterDeleteFromFront is called after a delete from front

func AfterReadFromFront

func AfterReadFromFront[Type Gongstruct](stage *Stage, instance *Type)

AfterReadFromFront is called after a Read from front

func ApplyDiff

func ApplyDiff(b, c string) (string, error)

ApplyDiff applies a git-style unified diff c to string b to reconstruct string a

func CompareGongstructByName

func CompareGongstructByName[T PointerToGongstruct](a, b T) int

func ComputeDiff

func ComputeDiff(a, b string) string

ComputeDiff generates a git-style unified diff from string a to string b

func CopyBranch

func CopyBranch[Type Gongstruct](from *Type) (to *Type)

CopyBranch stages instance and apply CopyBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the instance

the algorithm stops along the course of graph if a vertex is already staged

func GetAssociationName

func GetAssociationName[Type Gongstruct]() *Type

GetAssociationName is a generic function that returns an instance of Type where each association is filled with an instance whose name is the name of the association

This function can be handy for generating navigation function that are refactorable

func GetFields

func GetFields[Type Gongstruct]() (res []string)

GetFields return the array of the fields

func GetFieldsFromPointer

func GetFieldsFromPointer[Type PointerToGongstruct]() (res []string)

GetFieldsFromPointer return the array of the fields

func GetGongstrucsSorted

func GetGongstrucsSorted[T PointerToGongstruct](stage *Stage) (sortedSlice []T)

func GetGongstructInstancesMap

func GetGongstructInstancesMap[Type Gongstruct](stage *Stage) *map[string]*Type

GetGongstructInstancesMap returns the map of staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier

func GetGongstructInstancesSet

func GetGongstructInstancesSet[Type Gongstruct](stage *Stage) *map[*Type]any

GetGongstructInstancesSet returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier

func GetGongstructInstancesSetFromPointerType

func GetGongstructInstancesSetFromPointerType[Type PointerToGongstruct](stage *Stage) *map[Type]any

GetGongstructInstancesSetFromPointerType returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier

func GetGongstructName

func GetGongstructName[Type Gongstruct]() (res string)

GetGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring

func GetNamedStructInstances

func GetNamedStructInstances[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []string)

func GetOrder

func GetOrder[Type Gongstruct](stage *Stage, instance *Type) uint

func GetOrderPointerGongstruct

func GetOrderPointerGongstruct[Type PointerToGongstruct](stage *Stage, instance Type) uint

func GetPointerReverseMap

func GetPointerReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start

GetPointerReverseMap allows backtrack navigation of any Start.Fieldname associations (0..1) that is a pointer from one staged Gongstruct (type Start) instances to another (type End)

The function provides a map with keys as instances of End and values to arrays of *Start the map is construed by iterating over all Start instances and populationg keys with End instances and values with slice of Start instances

func GetPointerToGongstructName

func GetPointerToGongstructName[Type PointerToGongstruct]() (res string)

GetPointerToGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring

func GetReverseFieldOwner

func GetReverseFieldOwner[T Gongstruct](
	stage *Stage,
	instance *T,
	reverseField *ReverseField) (res any)

func GetReverseFieldOwnerName

func GetReverseFieldOwnerName(
	stage *Stage,
	instance any,
	reverseField *ReverseField) (res string)

func GetSliceOfPointersReverseMap

func GetSliceOfPointersReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start

GetSliceOfPointersReverseMap allows backtrack navigation of any Start.Fieldname associations (0..N) between one staged Gongstruct instances and many others

The function provides a map with keys as instances of End and values to *Start instances the map is construed by iterating over all Start instances and populating keys with End instances and values with the Start instances

func GetStructInstancesByOrder

func GetStructInstancesByOrder[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []T)

func GetStructInstancesByOrderAuto

func GetStructInstancesByOrderAuto[T PointerToGongstruct](stage *Stage) (res []T)

func GongGetMap

func GongGetMap[Type GongstructMapString](stage *Stage) *Type

GongGetMap returns the map of staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier

func GongGetSet

func GongGetSet[Type GongstructSet](stage *Stage) *Type

GongGetSet returns the set staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier

func IntToLetters

func IntToLetters(number int32) (letters string)

func IsStaged

func IsStaged[Type Gongstruct](stage *Stage, instance *Type) (ok bool)

func OnAfterUpdateFromFront

func OnAfterUpdateFromFront[Type Gongstruct](stage *Stage, old, new *Type, mouseEvent *Gong__MouseEvent)

OnAfterUpdateFromFront is called after a update from front

func ParseAstEmbeddedFile

func ParseAstEmbeddedFile(stage *Stage, directory embed.FS, pathToFile string) error

ParseAstEmbeddedFile parses the Go source code from an embedded file specified by pathToFile within the provided embed.FS directory and stages instances declared in the file using the provided Stage.

Parameters:

stage:      The staging area to populate.
directory:  The embedded filesystem containing the file.
pathToFile: The path to the Go source file within the embedded filesystem.

Returns:

An error if reading or parsing the file fails, or if ParseAstFileFromAst fails.

func ParseAstFile

func ParseAstFile(stage *Stage, pathToFile string) error

ParseAstFile Parse pathToFile and stages all instances declared in the file

func ParseAstFileFromAst

func ParseAstFileFromAst(stage *Stage, inFile *ast.File, fset *token.FileSet) error

ParseAstFile Parse pathToFile and stages all instances declared in the file

func ReplaceOldDeclarationsInFile

func ReplaceOldDeclarationsInFile(pathToFile string) error

ReplaceOldDeclarationsInFile replaces specific text in a file at the given path.

func Serialize

func Serialize[Type Gongstruct](stage *Stage, tab Tabulator)

func SerializeExcelize

func SerializeExcelize[Type Gongstruct](stage *Stage, f *excelize.File)

func SerializeExcelizePointerToGongstruct

func SerializeExcelizePointerToGongstruct[Type PointerToGongstruct](stage *Stage, f *excelize.File)

func SerializeStage

func SerializeStage(stage *Stage, filename string)

func SetCallbackAfterCreateFromFront

func SetCallbackAfterCreateFromFront[Type Gongstruct](stage *Stage, callback OnAfterCreateInterface[Type])

func SetCallbackAfterDeleteFromFront

func SetCallbackAfterDeleteFromFront[Type Gongstruct](stage *Stage, callback OnAfterDeleteInterface[Type])

func SetCallbackAfterReadFromFront

func SetCallbackAfterReadFromFront[Type Gongstruct](stage *Stage, callback OnAfterReadInterface[Type])

func SetCallbackAfterUpdateFromFront

func SetCallbackAfterUpdateFromFront[Type Gongstruct](stage *Stage, callback OnAfterUpdateInterface[Type])

SetCallbackAfterUpdateFromFront is a function to set up callback that is robust to refactoring

func SetOrchestratorOnAfterUpdate

func SetOrchestratorOnAfterUpdate[Type Gongstruct](stage *Stage)

func SetOrchestratorOnAfterUpdateWithMouseEvent

func SetOrchestratorOnAfterUpdateWithMouseEvent[Type Gongstruct](stage *Stage)

func SortGongstructSetByName

func SortGongstructSetByName[T PointerToGongstruct](set map[T]any) (sortedSlice []T)

func StageBranch

func StageBranch[Type Gongstruct](stage *Stage, instance *Type)

StageBranch stages instance and apply StageBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the instance

the algorithm stops along the course of graph if a vertex is already staged

func UnmarshallGongstructStaging

func UnmarshallGongstructStaging(stage *Stage, cmap *ast.CommentMap, assignStmt *ast.AssignStmt, astCoordinate_ string) (
	instance any,
	identifier string,
	gongstructName string,
	fieldName string)

UnmarshallGoStaging unmarshall a go assign statement

func UnstageBranch

func UnstageBranch[Type Gongstruct](stage *Stage, instance *Type)

UnstageBranch stages instance and apply UnstageBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the insance

the algorithm stops along the course of graph if a vertex is already staged

Types

type AllModelsStructCreateInterface

type AllModelsStructCreateInterface interface {
	CreateORMCell(Cell *Cell)
	CreateORMCellBoolean(CellBoolean *CellBoolean)
	CreateORMCellFloat64(CellFloat64 *CellFloat64)
	CreateORMCellIcon(CellIcon *CellIcon)
	CreateORMCellInt(CellInt *CellInt)
	CreateORMCellString(CellString *CellString)
	CreateORMCheckBox(CheckBox *CheckBox)
	CreateORMDisplayedColumn(DisplayedColumn *DisplayedColumn)
	CreateORMFormDiv(FormDiv *FormDiv)
	CreateORMFormEditAssocButton(FormEditAssocButton *FormEditAssocButton)
	CreateORMFormField(FormField *FormField)
	CreateORMFormFieldDate(FormFieldDate *FormFieldDate)
	CreateORMFormFieldDateTime(FormFieldDateTime *FormFieldDateTime)
	CreateORMFormFieldFloat64(FormFieldFloat64 *FormFieldFloat64)
	CreateORMFormFieldInt(FormFieldInt *FormFieldInt)
	CreateORMFormFieldSelect(FormFieldSelect *FormFieldSelect)
	CreateORMFormFieldString(FormFieldString *FormFieldString)
	CreateORMFormFieldTime(FormFieldTime *FormFieldTime)
	CreateORMFormGroup(FormGroup *FormGroup)
	CreateORMFormSortAssocButton(FormSortAssocButton *FormSortAssocButton)
	CreateORMOption(Option *Option)
	CreateORMRow(Row *Row)
	CreateORMTable(Table *Table)
}

swagger:ignore

type AllModelsStructDeleteInterface

type AllModelsStructDeleteInterface interface {
	DeleteORMCell(Cell *Cell)
	DeleteORMCellBoolean(CellBoolean *CellBoolean)
	DeleteORMCellFloat64(CellFloat64 *CellFloat64)
	DeleteORMCellIcon(CellIcon *CellIcon)
	DeleteORMCellInt(CellInt *CellInt)
	DeleteORMCellString(CellString *CellString)
	DeleteORMCheckBox(CheckBox *CheckBox)
	DeleteORMDisplayedColumn(DisplayedColumn *DisplayedColumn)
	DeleteORMFormDiv(FormDiv *FormDiv)
	DeleteORMFormEditAssocButton(FormEditAssocButton *FormEditAssocButton)
	DeleteORMFormField(FormField *FormField)
	DeleteORMFormFieldDate(FormFieldDate *FormFieldDate)
	DeleteORMFormFieldDateTime(FormFieldDateTime *FormFieldDateTime)
	DeleteORMFormFieldFloat64(FormFieldFloat64 *FormFieldFloat64)
	DeleteORMFormFieldInt(FormFieldInt *FormFieldInt)
	DeleteORMFormFieldSelect(FormFieldSelect *FormFieldSelect)
	DeleteORMFormFieldString(FormFieldString *FormFieldString)
	DeleteORMFormFieldTime(FormFieldTime *FormFieldTime)
	DeleteORMFormGroup(FormGroup *FormGroup)
	DeleteORMFormSortAssocButton(FormSortAssocButton *FormSortAssocButton)
	DeleteORMOption(Option *Option)
	DeleteORMRow(Row *Row)
	DeleteORMTable(Table *Table)
}

type BackRepoInterface

type BackRepoInterface interface {
	Commit(stage *Stage)
	Checkout(stage *Stage)
	Backup(stage *Stage, dirPath string)
	Restore(stage *Stage, dirPath string)
	BackupXL(stage *Stage, dirPath string)
	RestoreXL(stage *Stage, dirPath string)
	// insertion point for Commit and Checkout signatures
	CommitCell(cell *Cell)
	CheckoutCell(cell *Cell)
	CommitCellBoolean(cellboolean *CellBoolean)
	CheckoutCellBoolean(cellboolean *CellBoolean)
	CommitCellFloat64(cellfloat64 *CellFloat64)
	CheckoutCellFloat64(cellfloat64 *CellFloat64)
	CommitCellIcon(cellicon *CellIcon)
	CheckoutCellIcon(cellicon *CellIcon)
	CommitCellInt(cellint *CellInt)
	CheckoutCellInt(cellint *CellInt)
	CommitCellString(cellstring *CellString)
	CheckoutCellString(cellstring *CellString)
	CommitCheckBox(checkbox *CheckBox)
	CheckoutCheckBox(checkbox *CheckBox)
	CommitDisplayedColumn(displayedcolumn *DisplayedColumn)
	CheckoutDisplayedColumn(displayedcolumn *DisplayedColumn)
	CommitFormDiv(formdiv *FormDiv)
	CheckoutFormDiv(formdiv *FormDiv)
	CommitFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
	CheckoutFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
	CommitFormField(formfield *FormField)
	CheckoutFormField(formfield *FormField)
	CommitFormFieldDate(formfielddate *FormFieldDate)
	CheckoutFormFieldDate(formfielddate *FormFieldDate)
	CommitFormFieldDateTime(formfielddatetime *FormFieldDateTime)
	CheckoutFormFieldDateTime(formfielddatetime *FormFieldDateTime)
	CommitFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
	CheckoutFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
	CommitFormFieldInt(formfieldint *FormFieldInt)
	CheckoutFormFieldInt(formfieldint *FormFieldInt)
	CommitFormFieldSelect(formfieldselect *FormFieldSelect)
	CheckoutFormFieldSelect(formfieldselect *FormFieldSelect)
	CommitFormFieldString(formfieldstring *FormFieldString)
	CheckoutFormFieldString(formfieldstring *FormFieldString)
	CommitFormFieldTime(formfieldtime *FormFieldTime)
	CheckoutFormFieldTime(formfieldtime *FormFieldTime)
	CommitFormGroup(formgroup *FormGroup)
	CheckoutFormGroup(formgroup *FormGroup)
	CommitFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
	CheckoutFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
	CommitOption(option *Option)
	CheckoutOption(option *Option)
	CommitRow(row *Row)
	CheckoutRow(row *Row)
	CommitTable(table *Table)
	CheckoutTable(table *Table)
	GetLastCommitFromBackNb() uint
	GetLastPushFromFrontNb() uint
}

type Cell

type Cell struct {
	Name string

	CellString  *CellString
	CellFloat64 *CellFloat64
	CellInt     *CellInt
	CellBool    *CellBoolean
	CellIcon    *CellIcon
}

Cell is the sum type for cell

func CopyBranchCell

func CopyBranchCell(mapOrigCopy map[any]any, cellFrom *Cell) (cellTo *Cell)

insertion point for stage branch per struct

func (*Cell) Checkout

func (cell *Cell) Checkout(stage *Stage) *Cell

Checkout cell to the back repo (if it is already staged)

func (*Cell) Commit

func (cell *Cell) Commit(stage *Stage) *Cell

commit cell to the back repo (if it is already staged)

func (*Cell) CommitVoid

func (cell *Cell) CommitVoid(stage *Stage)

func (*Cell) CopyBasicFields

func (from *Cell) CopyBasicFields(to *Cell)

func (*Cell) GetName

func (cell *Cell) GetName() (res string)

for satisfaction of GongStruct interface

func (*Cell) Stage

func (cell *Cell) Stage(stage *Stage) *Cell

insertion point for cumulative sub template with model space calls Stage puts cell to the model stage

func (*Cell) Unstage

func (cell *Cell) Unstage(stage *Stage) *Cell

Unstage removes cell off the model stage

func (*Cell) UnstageVoid

func (cell *Cell) UnstageVoid(stage *Stage)

UnstageVoid removes cell off the model stage

type CellBoolean

type CellBoolean struct {
	Name  string
	Value bool
}

func CopyBranchCellBoolean

func CopyBranchCellBoolean(mapOrigCopy map[any]any, cellbooleanFrom *CellBoolean) (cellbooleanTo *CellBoolean)

func (*CellBoolean) Checkout

func (cellboolean *CellBoolean) Checkout(stage *Stage) *CellBoolean

Checkout cellboolean to the back repo (if it is already staged)

func (*CellBoolean) Commit

func (cellboolean *CellBoolean) Commit(stage *Stage) *CellBoolean

commit cellboolean to the back repo (if it is already staged)

func (*CellBoolean) CommitVoid

func (cellboolean *CellBoolean) CommitVoid(stage *Stage)

func (*CellBoolean) CopyBasicFields

func (from *CellBoolean) CopyBasicFields(to *CellBoolean)

func (*CellBoolean) GetName

func (cellboolean *CellBoolean) GetName() (res string)

for satisfaction of GongStruct interface

func (*CellBoolean) Stage

func (cellboolean *CellBoolean) Stage(stage *Stage) *CellBoolean

Stage puts cellboolean to the model stage

func (*CellBoolean) Unstage

func (cellboolean *CellBoolean) Unstage(stage *Stage) *CellBoolean

Unstage removes cellboolean off the model stage

func (*CellBoolean) UnstageVoid

func (cellboolean *CellBoolean) UnstageVoid(stage *Stage)

UnstageVoid removes cellboolean off the model stage

type CellBoolean_WOP

type CellBoolean_WOP struct {
	Name string

	Value bool
}

type CellFloat64

type CellFloat64 struct {
	Name  string
	Value float64
}

func CopyBranchCellFloat64

func CopyBranchCellFloat64(mapOrigCopy map[any]any, cellfloat64From *CellFloat64) (cellfloat64To *CellFloat64)

func (*CellFloat64) Checkout

func (cellfloat64 *CellFloat64) Checkout(stage *Stage) *CellFloat64

Checkout cellfloat64 to the back repo (if it is already staged)

func (*CellFloat64) Commit

func (cellfloat64 *CellFloat64) Commit(stage *Stage) *CellFloat64

commit cellfloat64 to the back repo (if it is already staged)

func (*CellFloat64) CommitVoid

func (cellfloat64 *CellFloat64) CommitVoid(stage *Stage)

func (*CellFloat64) CopyBasicFields

func (from *CellFloat64) CopyBasicFields(to *CellFloat64)

func (*CellFloat64) GetName

func (cellfloat64 *CellFloat64) GetName() (res string)

for satisfaction of GongStruct interface

func (*CellFloat64) Stage

func (cellfloat64 *CellFloat64) Stage(stage *Stage) *CellFloat64

Stage puts cellfloat64 to the model stage

func (*CellFloat64) Unstage

func (cellfloat64 *CellFloat64) Unstage(stage *Stage) *CellFloat64

Unstage removes cellfloat64 off the model stage

func (*CellFloat64) UnstageVoid

func (cellfloat64 *CellFloat64) UnstageVoid(stage *Stage)

UnstageVoid removes cellfloat64 off the model stage

type CellFloat64_WOP

type CellFloat64_WOP struct {
	Name string

	Value float64
}

type CellIcon

type CellIcon struct {
	Name string

	// reference of the material icon (ex "home", "delete", "edit")
	Icon string

	// needs confirmation ? (for instance if the icon is a delete icon)
	NeedsConfirmation   bool
	ConfirmationMessage string

	// swagger:ignore
	Impl CellIconImplInterface
}

func CopyBranchCellIcon

func CopyBranchCellIcon(mapOrigCopy map[any]any, celliconFrom *CellIcon) (celliconTo *CellIcon)

func (*CellIcon) Checkout

func (cellicon *CellIcon) Checkout(stage *Stage) *CellIcon

Checkout cellicon to the back repo (if it is already staged)

func (*CellIcon) Commit

func (cellicon *CellIcon) Commit(stage *Stage) *CellIcon

commit cellicon to the back repo (if it is already staged)

func (*CellIcon) CommitVoid

func (cellicon *CellIcon) CommitVoid(stage *Stage)

func (*CellIcon) CopyBasicFields

func (from *CellIcon) CopyBasicFields(to *CellIcon)

func (*CellIcon) GetName

func (cellicon *CellIcon) GetName() (res string)

for satisfaction of GongStruct interface

func (*CellIcon) OnAfterUpdate

func (cellIcon *CellIcon) OnAfterUpdate(stage *Stage, stagedInstance, frontCellIcon *CellIcon)

func (*CellIcon) Stage

func (cellicon *CellIcon) Stage(stage *Stage) *CellIcon

Stage puts cellicon to the model stage

func (*CellIcon) Unstage

func (cellicon *CellIcon) Unstage(stage *Stage) *CellIcon

Unstage removes cellicon off the model stage

func (*CellIcon) UnstageVoid

func (cellicon *CellIcon) UnstageVoid(stage *Stage)

UnstageVoid removes cellicon off the model stage

type CellIconImplInterface

type CellIconImplInterface interface {

	// CellIconUpdated function is called each time a CellIcon is modified
	CellIconUpdated(stage *Stage, cellIcon, updatedCellIcon *CellIcon)
}

type CellIconOrchestrator

type CellIconOrchestrator struct {
}

insertion point CellIconOrchestrator

func (*CellIconOrchestrator) OnAfterUpdate

func (orchestrator *CellIconOrchestrator) OnAfterUpdate(
	gongsvgStage *Stage,
	stagedCellIcon, backRepoCellIcon *CellIcon)

type CellIcon_WOP

type CellIcon_WOP struct {
	Name string

	Icon string

	NeedsConfirmation bool

	ConfirmationMessage string
}

type CellInt

type CellInt struct {
	Name  string
	Value int
}

func CopyBranchCellInt

func CopyBranchCellInt(mapOrigCopy map[any]any, cellintFrom *CellInt) (cellintTo *CellInt)

func (*CellInt) Checkout

func (cellint *CellInt) Checkout(stage *Stage) *CellInt

Checkout cellint to the back repo (if it is already staged)

func (*CellInt) Commit

func (cellint *CellInt) Commit(stage *Stage) *CellInt

commit cellint to the back repo (if it is already staged)

func (*CellInt) CommitVoid

func (cellint *CellInt) CommitVoid(stage *Stage)

func (*CellInt) CopyBasicFields

func (from *CellInt) CopyBasicFields(to *CellInt)

func (*CellInt) GetName

func (cellint *CellInt) GetName() (res string)

for satisfaction of GongStruct interface

func (*CellInt) Stage

func (cellint *CellInt) Stage(stage *Stage) *CellInt

Stage puts cellint to the model stage

func (*CellInt) Unstage

func (cellint *CellInt) Unstage(stage *Stage) *CellInt

Unstage removes cellint off the model stage

func (*CellInt) UnstageVoid

func (cellint *CellInt) UnstageVoid(stage *Stage)

UnstageVoid removes cellint off the model stage

type CellInt_WOP

type CellInt_WOP struct {
	Name string

	Value int
}

type CellString

type CellString struct {
	Name  string
	Value string
}

func CopyBranchCellString

func CopyBranchCellString(mapOrigCopy map[any]any, cellstringFrom *CellString) (cellstringTo *CellString)

func (*CellString) Checkout

func (cellstring *CellString) Checkout(stage *Stage) *CellString

Checkout cellstring to the back repo (if it is already staged)

func (*CellString) Commit

func (cellstring *CellString) Commit(stage *Stage) *CellString

commit cellstring to the back repo (if it is already staged)

func (*CellString) CommitVoid

func (cellstring *CellString) CommitVoid(stage *Stage)

func (*CellString) CopyBasicFields

func (from *CellString) CopyBasicFields(to *CellString)

func (*CellString) GetName

func (cellstring *CellString) GetName() (res string)

for satisfaction of GongStruct interface

func (*CellString) Stage

func (cellstring *CellString) Stage(stage *Stage) *CellString

Stage puts cellstring to the model stage

func (*CellString) Unstage

func (cellstring *CellString) Unstage(stage *Stage) *CellString

Unstage removes cellstring off the model stage

func (*CellString) UnstageVoid

func (cellstring *CellString) UnstageVoid(stage *Stage)

UnstageVoid removes cellstring off the model stage

type CellString_WOP

type CellString_WOP struct {
	Name string

	Value string
}

type Cell_WOP

type Cell_WOP struct {
	Name string
}

insertion point

type CheckBox

type CheckBox struct {
	Name  string
	Value bool
}

func CopyBranchCheckBox

func CopyBranchCheckBox(mapOrigCopy map[any]any, checkboxFrom *CheckBox) (checkboxTo *CheckBox)

func (*CheckBox) Checkout

func (checkbox *CheckBox) Checkout(stage *Stage) *CheckBox

Checkout checkbox to the back repo (if it is already staged)

func (*CheckBox) Commit

func (checkbox *CheckBox) Commit(stage *Stage) *CheckBox

commit checkbox to the back repo (if it is already staged)

func (*CheckBox) CommitVoid

func (checkbox *CheckBox) CommitVoid(stage *Stage)

func (*CheckBox) CopyBasicFields

func (from *CheckBox) CopyBasicFields(to *CheckBox)

func (*CheckBox) GetName

func (checkbox *CheckBox) GetName() (res string)

for satisfaction of GongStruct interface

func (*CheckBox) Stage

func (checkbox *CheckBox) Stage(stage *Stage) *CheckBox

Stage puts checkbox to the model stage

func (*CheckBox) Unstage

func (checkbox *CheckBox) Unstage(stage *Stage) *CheckBox

Unstage removes checkbox off the model stage

func (*CheckBox) UnstageVoid

func (checkbox *CheckBox) UnstageVoid(stage *Stage)

UnstageVoid removes checkbox off the model stage

type CheckBox_WOP

type CheckBox_WOP struct {
	Name string

	Value bool
}

type DiffHunk

type DiffHunk struct {
	OldStart int
	OldLines int
	NewStart int
	NewLines int
	Lines    []string
}

DiffHunk represents a single hunk in a unified diff

type DiffOp

type DiffOp struct {
	Type string // "context", "delete", "add"
	Text string
}

DiffLine represents a line in a diff with its operation

type DisplayedColumn

type DisplayedColumn struct {
	Name string
}

func CopyBranchDisplayedColumn

func CopyBranchDisplayedColumn(mapOrigCopy map[any]any, displayedcolumnFrom *DisplayedColumn) (displayedcolumnTo *DisplayedColumn)

func (*DisplayedColumn) Checkout

func (displayedcolumn *DisplayedColumn) Checkout(stage *Stage) *DisplayedColumn

Checkout displayedcolumn to the back repo (if it is already staged)

func (*DisplayedColumn) Commit

func (displayedcolumn *DisplayedColumn) Commit(stage *Stage) *DisplayedColumn

commit displayedcolumn to the back repo (if it is already staged)

func (*DisplayedColumn) CommitVoid

func (displayedcolumn *DisplayedColumn) CommitVoid(stage *Stage)

func (*DisplayedColumn) CopyBasicFields

func (from *DisplayedColumn) CopyBasicFields(to *DisplayedColumn)

func (*DisplayedColumn) GetName

func (displayedcolumn *DisplayedColumn) GetName() (res string)

for satisfaction of GongStruct interface

func (*DisplayedColumn) Stage

func (displayedcolumn *DisplayedColumn) Stage(stage *Stage) *DisplayedColumn

Stage puts displayedcolumn to the model stage

func (*DisplayedColumn) Unstage

func (displayedcolumn *DisplayedColumn) Unstage(stage *Stage) *DisplayedColumn

Unstage removes displayedcolumn off the model stage

func (*DisplayedColumn) UnstageVoid

func (displayedcolumn *DisplayedColumn) UnstageVoid(stage *Stage)

UnstageVoid removes displayedcolumn off the model stage

type DisplayedColumn_WOP

type DisplayedColumn_WOP struct {
	Name string
}

type ExcelizeTabulator

type ExcelizeTabulator struct {
	// contains filtered or unexported fields
}

func (*ExcelizeTabulator) AddCell

func (tab *ExcelizeTabulator) AddCell(sheetName string, rowId, columnIndex int, value string)

func (*ExcelizeTabulator) AddRow

func (tab *ExcelizeTabulator) AddRow(sheetName string) (rowId int)

func (*ExcelizeTabulator) AddSheet

func (tab *ExcelizeTabulator) AddSheet(sheetName string)

func (*ExcelizeTabulator) SetExcelizeFile

func (tab *ExcelizeTabulator) SetExcelizeFile(f *excelize.File)

type FormDiv

type FormDiv struct {
	Name                string
	FormFields          []*FormField
	CheckBoxs           []*CheckBox
	FormEditAssocButton *FormEditAssocButton
	FormSortAssocButton *FormSortAssocButton
}

func CopyBranchFormDiv

func CopyBranchFormDiv(mapOrigCopy map[any]any, formdivFrom *FormDiv) (formdivTo *FormDiv)

func (*FormDiv) Checkout

func (formdiv *FormDiv) Checkout(stage *Stage) *FormDiv

Checkout formdiv to the back repo (if it is already staged)

func (*FormDiv) Commit

func (formdiv *FormDiv) Commit(stage *Stage) *FormDiv

commit formdiv to the back repo (if it is already staged)

func (*FormDiv) CommitVoid

func (formdiv *FormDiv) CommitVoid(stage *Stage)

func (*FormDiv) CopyBasicFields

func (from *FormDiv) CopyBasicFields(to *FormDiv)

func (*FormDiv) GetName

func (formdiv *FormDiv) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormDiv) Stage

func (formdiv *FormDiv) Stage(stage *Stage) *FormDiv

Stage puts formdiv to the model stage

func (*FormDiv) Unstage

func (formdiv *FormDiv) Unstage(stage *Stage) *FormDiv

Unstage removes formdiv off the model stage

func (*FormDiv) UnstageVoid

func (formdiv *FormDiv) UnstageVoid(stage *Stage)

UnstageVoid removes formdiv off the model stage

type FormDiv_WOP

type FormDiv_WOP struct {
	Name string
}

type FormEditAssocButton

type FormEditAssocButton struct {
	Name string

	Label string

	// AssociationStorage is the encoding into a string of the IDs of the associatied instances
	// the format is json
	AssociationStorage string

	// HasChanged is true when the end user has used this form
	// When true, the instance will be updated to the back
	HasChanged bool

	// IsForSavePurpose is true when the FormEditAssocButton is updated
	// by the submit of the front (it is false when the button is pressed)
	IsForSavePurpose bool

	// swagger:ignore
	OnAssocEditon FormEditAssocButtonInterface

	HasToolTip  bool
	ToolTipText string
}

FormEditAssocButton is a button on the front end to edit a N-N association the association is stored in the object and

func CopyBranchFormEditAssocButton

func CopyBranchFormEditAssocButton(mapOrigCopy map[any]any, formeditassocbuttonFrom *FormEditAssocButton) (formeditassocbuttonTo *FormEditAssocButton)

func (*FormEditAssocButton) Checkout

func (formeditassocbutton *FormEditAssocButton) Checkout(stage *Stage) *FormEditAssocButton

Checkout formeditassocbutton to the back repo (if it is already staged)

func (*FormEditAssocButton) Commit

func (formeditassocbutton *FormEditAssocButton) Commit(stage *Stage) *FormEditAssocButton

commit formeditassocbutton to the back repo (if it is already staged)

func (*FormEditAssocButton) CommitVoid

func (formeditassocbutton *FormEditAssocButton) CommitVoid(stage *Stage)

func (*FormEditAssocButton) CopyBasicFields

func (from *FormEditAssocButton) CopyBasicFields(to *FormEditAssocButton)

func (*FormEditAssocButton) GetName

func (formeditassocbutton *FormEditAssocButton) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormEditAssocButton) OnAfterUpdate

func (formEditAssocButton *FormEditAssocButton) OnAfterUpdate(
	stage *Stage,
	stagedInstance, frontInstance *FormEditAssocButton)

OnAfterUpdate is called when the button is pressed

func (*FormEditAssocButton) Stage

func (formeditassocbutton *FormEditAssocButton) Stage(stage *Stage) *FormEditAssocButton

Stage puts formeditassocbutton to the model stage

func (*FormEditAssocButton) Unstage

func (formeditassocbutton *FormEditAssocButton) Unstage(stage *Stage) *FormEditAssocButton

Unstage removes formeditassocbutton off the model stage

func (*FormEditAssocButton) UnstageVoid

func (formeditassocbutton *FormEditAssocButton) UnstageVoid(stage *Stage)

UnstageVoid removes formeditassocbutton off the model stage

type FormEditAssocButtonInterface

type FormEditAssocButtonInterface interface {
	OnButtonPressed()
}

type FormEditAssocButtonOrchestrator

type FormEditAssocButtonOrchestrator struct {
}

FormEditAssocButtonOrchestrator

func (*FormEditAssocButtonOrchestrator) OnAfterUpdate

func (orchestrator *FormEditAssocButtonOrchestrator) OnAfterUpdate(
	gongsvgStage *Stage,
	stagedFormEditAssocButton, backRepoFormEditAssocButton *FormEditAssocButton)

type FormEditAssocButton_WOP

type FormEditAssocButton_WOP struct {
	Name string

	Label string

	AssociationStorage string

	HasChanged bool

	IsForSavePurpose bool

	HasToolTip bool

	ToolTipText string
}

type FormField

type FormField struct {
	Name          string
	InputTypeEnum InputTypeEnum

	// label for the input field.
	// for instance "First Name" in <mat-label>First Name</mat-label>
	Label string

	// suggestion for the field
	Placeholder string

	FormFieldString  *FormFieldString
	FormFieldFloat64 *FormFieldFloat64
	FormFieldInt     *FormFieldInt

	FormFieldDate     *FormFieldDate
	FormFieldTime     *FormFieldTime
	FormFieldDateTime *FormFieldDateTime

	FormFieldSelect *FormFieldSelect

	// set up specific width
	HasBespokeWidth bool
	BespokeWidthPx  int

	// set up specific height
	HasBespokeHeight bool
	BespokeHeightPx  int
}

func CopyBranchFormField

func CopyBranchFormField(mapOrigCopy map[any]any, formfieldFrom *FormField) (formfieldTo *FormField)

func (*FormField) Checkout

func (formfield *FormField) Checkout(stage *Stage) *FormField

Checkout formfield to the back repo (if it is already staged)

func (*FormField) Commit

func (formfield *FormField) Commit(stage *Stage) *FormField

commit formfield to the back repo (if it is already staged)

func (*FormField) CommitVoid

func (formfield *FormField) CommitVoid(stage *Stage)

func (*FormField) CopyBasicFields

func (from *FormField) CopyBasicFields(to *FormField)

func (*FormField) GetName

func (formfield *FormField) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormField) Stage

func (formfield *FormField) Stage(stage *Stage) *FormField

Stage puts formfield to the model stage

func (*FormField) Unstage

func (formfield *FormField) Unstage(stage *Stage) *FormField

Unstage removes formfield off the model stage

func (*FormField) UnstageVoid

func (formfield *FormField) UnstageVoid(stage *Stage)

UnstageVoid removes formfield off the model stage

type FormFieldDate

type FormFieldDate struct {
	Name string

	// we will only update the day
	Value time.Time
}

func CopyBranchFormFieldDate

func CopyBranchFormFieldDate(mapOrigCopy map[any]any, formfielddateFrom *FormFieldDate) (formfielddateTo *FormFieldDate)

func (*FormFieldDate) Checkout

func (formfielddate *FormFieldDate) Checkout(stage *Stage) *FormFieldDate

Checkout formfielddate to the back repo (if it is already staged)

func (*FormFieldDate) Commit

func (formfielddate *FormFieldDate) Commit(stage *Stage) *FormFieldDate

commit formfielddate to the back repo (if it is already staged)

func (*FormFieldDate) CommitVoid

func (formfielddate *FormFieldDate) CommitVoid(stage *Stage)

func (*FormFieldDate) CopyBasicFields

func (from *FormFieldDate) CopyBasicFields(to *FormFieldDate)

func (*FormFieldDate) GetName

func (formfielddate *FormFieldDate) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormFieldDate) Stage

func (formfielddate *FormFieldDate) Stage(stage *Stage) *FormFieldDate

Stage puts formfielddate to the model stage

func (*FormFieldDate) Unstage

func (formfielddate *FormFieldDate) Unstage(stage *Stage) *FormFieldDate

Unstage removes formfielddate off the model stage

func (*FormFieldDate) UnstageVoid

func (formfielddate *FormFieldDate) UnstageVoid(stage *Stage)

UnstageVoid removes formfielddate off the model stage

type FormFieldDateTime

type FormFieldDateTime struct {
	Name string

	Value time.Time
}

func CopyBranchFormFieldDateTime

func CopyBranchFormFieldDateTime(mapOrigCopy map[any]any, formfielddatetimeFrom *FormFieldDateTime) (formfielddatetimeTo *FormFieldDateTime)

func (*FormFieldDateTime) Checkout

func (formfielddatetime *FormFieldDateTime) Checkout(stage *Stage) *FormFieldDateTime

Checkout formfielddatetime to the back repo (if it is already staged)

func (*FormFieldDateTime) Commit

func (formfielddatetime *FormFieldDateTime) Commit(stage *Stage) *FormFieldDateTime

commit formfielddatetime to the back repo (if it is already staged)

func (*FormFieldDateTime) CommitVoid

func (formfielddatetime *FormFieldDateTime) CommitVoid(stage *Stage)

func (*FormFieldDateTime) CopyBasicFields

func (from *FormFieldDateTime) CopyBasicFields(to *FormFieldDateTime)

func (*FormFieldDateTime) GetName

func (formfielddatetime *FormFieldDateTime) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormFieldDateTime) Stage

func (formfielddatetime *FormFieldDateTime) Stage(stage *Stage) *FormFieldDateTime

Stage puts formfielddatetime to the model stage

func (*FormFieldDateTime) Unstage

func (formfielddatetime *FormFieldDateTime) Unstage(stage *Stage) *FormFieldDateTime

Unstage removes formfielddatetime off the model stage

func (*FormFieldDateTime) UnstageVoid

func (formfielddatetime *FormFieldDateTime) UnstageVoid(stage *Stage)

UnstageVoid removes formfielddatetime off the model stage

type FormFieldDateTime_WOP

type FormFieldDateTime_WOP struct {
	Name string

	Value time.Time
}

type FormFieldDate_WOP

type FormFieldDate_WOP struct {
	Name string

	Value time.Time
}

type FormFieldFloat64

type FormFieldFloat64 struct {
	Name  string
	Value float64

	HasMinValidator bool
	MinValue        float64

	HasMaxValidator bool
	MaxValue        float64
}

func CopyBranchFormFieldFloat64

func CopyBranchFormFieldFloat64(mapOrigCopy map[any]any, formfieldfloat64From *FormFieldFloat64) (formfieldfloat64To *FormFieldFloat64)

func (*FormFieldFloat64) Checkout

func (formfieldfloat64 *FormFieldFloat64) Checkout(stage *Stage) *FormFieldFloat64

Checkout formfieldfloat64 to the back repo (if it is already staged)

func (*FormFieldFloat64) Commit

func (formfieldfloat64 *FormFieldFloat64) Commit(stage *Stage) *FormFieldFloat64

commit formfieldfloat64 to the back repo (if it is already staged)

func (*FormFieldFloat64) CommitVoid

func (formfieldfloat64 *FormFieldFloat64) CommitVoid(stage *Stage)

func (*FormFieldFloat64) CopyBasicFields

func (from *FormFieldFloat64) CopyBasicFields(to *FormFieldFloat64)

func (*FormFieldFloat64) GetName

func (formfieldfloat64 *FormFieldFloat64) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormFieldFloat64) Stage

func (formfieldfloat64 *FormFieldFloat64) Stage(stage *Stage) *FormFieldFloat64

Stage puts formfieldfloat64 to the model stage

func (*FormFieldFloat64) Unstage

func (formfieldfloat64 *FormFieldFloat64) Unstage(stage *Stage) *FormFieldFloat64

Unstage removes formfieldfloat64 off the model stage

func (*FormFieldFloat64) UnstageVoid

func (formfieldfloat64 *FormFieldFloat64) UnstageVoid(stage *Stage)

UnstageVoid removes formfieldfloat64 off the model stage

type FormFieldFloat64_WOP

type FormFieldFloat64_WOP struct {
	Name string

	Value float64

	HasMinValidator bool

	MinValue float64

	HasMaxValidator bool

	MaxValue float64
}

type FormFieldInt

type FormFieldInt struct {
	Name  string
	Value int

	HasMinValidator bool
	MinValue        int

	HasMaxValidator bool
	MaxValue        int
}

func CopyBranchFormFieldInt

func CopyBranchFormFieldInt(mapOrigCopy map[any]any, formfieldintFrom *FormFieldInt) (formfieldintTo *FormFieldInt)

func (*FormFieldInt) Checkout

func (formfieldint *FormFieldInt) Checkout(stage *Stage) *FormFieldInt

Checkout formfieldint to the back repo (if it is already staged)

func (*FormFieldInt) Commit

func (formfieldint *FormFieldInt) Commit(stage *Stage) *FormFieldInt

commit formfieldint to the back repo (if it is already staged)

func (*FormFieldInt) CommitVoid

func (formfieldint *FormFieldInt) CommitVoid(stage *Stage)

func (*FormFieldInt) CopyBasicFields

func (from *FormFieldInt) CopyBasicFields(to *FormFieldInt)

func (*FormFieldInt) GetName

func (formfieldint *FormFieldInt) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormFieldInt) Stage

func (formfieldint *FormFieldInt) Stage(stage *Stage) *FormFieldInt

Stage puts formfieldint to the model stage

func (*FormFieldInt) Unstage

func (formfieldint *FormFieldInt) Unstage(stage *Stage) *FormFieldInt

Unstage removes formfieldint off the model stage

func (*FormFieldInt) UnstageVoid

func (formfieldint *FormFieldInt) UnstageVoid(stage *Stage)

UnstageVoid removes formfieldint off the model stage

type FormFieldInt_WOP

type FormFieldInt_WOP struct {
	Name string

	Value int

	HasMinValidator bool

	MinValue int

	HasMaxValidator bool

	MaxValue int
}

type FormFieldSelect

type FormFieldSelect struct {
	Name  string
	Value *Option

	Options []*Option

	CanBeEmpty bool

	// PreserveInitialOrder overides default alphabetical
	// ordering of Options in the pulldown menu
	PreserveInitialOrder bool
}

func CopyBranchFormFieldSelect

func CopyBranchFormFieldSelect(mapOrigCopy map[any]any, formfieldselectFrom *FormFieldSelect) (formfieldselectTo *FormFieldSelect)

func (*FormFieldSelect) Checkout

func (formfieldselect *FormFieldSelect) Checkout(stage *Stage) *FormFieldSelect

Checkout formfieldselect to the back repo (if it is already staged)

func (*FormFieldSelect) Commit

func (formfieldselect *FormFieldSelect) Commit(stage *Stage) *FormFieldSelect

commit formfieldselect to the back repo (if it is already staged)

func (*FormFieldSelect) CommitVoid

func (formfieldselect *FormFieldSelect) CommitVoid(stage *Stage)

func (*FormFieldSelect) CopyBasicFields

func (from *FormFieldSelect) CopyBasicFields(to *FormFieldSelect)

func (*FormFieldSelect) GetName

func (formfieldselect *FormFieldSelect) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormFieldSelect) Stage

func (formfieldselect *FormFieldSelect) Stage(stage *Stage) *FormFieldSelect

Stage puts formfieldselect to the model stage

func (*FormFieldSelect) Unstage

func (formfieldselect *FormFieldSelect) Unstage(stage *Stage) *FormFieldSelect

Unstage removes formfieldselect off the model stage

func (*FormFieldSelect) UnstageVoid

func (formfieldselect *FormFieldSelect) UnstageVoid(stage *Stage)

UnstageVoid removes formfieldselect off the model stage

type FormFieldSelect_WOP

type FormFieldSelect_WOP struct {
	Name string

	CanBeEmpty bool

	PreserveInitialOrder bool
}

type FormFieldString

type FormFieldString struct {
	Name  string
	Value string

	// IsTextArea is for telling angular whether to put a, <input ..> or a <textarea ..> which
	// allows for multi text editing
	IsTextArea bool
}

func CopyBranchFormFieldString

func CopyBranchFormFieldString(mapOrigCopy map[any]any, formfieldstringFrom *FormFieldString) (formfieldstringTo *FormFieldString)

func (*FormFieldString) Checkout

func (formfieldstring *FormFieldString) Checkout(stage *Stage) *FormFieldString

Checkout formfieldstring to the back repo (if it is already staged)

func (*FormFieldString) Commit

func (formfieldstring *FormFieldString) Commit(stage *Stage) *FormFieldString

commit formfieldstring to the back repo (if it is already staged)

func (*FormFieldString) CommitVoid

func (formfieldstring *FormFieldString) CommitVoid(stage *Stage)

func (*FormFieldString) CopyBasicFields

func (from *FormFieldString) CopyBasicFields(to *FormFieldString)

func (*FormFieldString) GetName

func (formfieldstring *FormFieldString) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormFieldString) Stage

func (formfieldstring *FormFieldString) Stage(stage *Stage) *FormFieldString

Stage puts formfieldstring to the model stage

func (*FormFieldString) Unstage

func (formfieldstring *FormFieldString) Unstage(stage *Stage) *FormFieldString

Unstage removes formfieldstring off the model stage

func (*FormFieldString) UnstageVoid

func (formfieldstring *FormFieldString) UnstageVoid(stage *Stage)

UnstageVoid removes formfieldstring off the model stage

type FormFieldString_WOP

type FormFieldString_WOP struct {
	Name string

	Value string

	IsTextArea bool
}

type FormFieldTime

type FormFieldTime struct {
	Name string

	// we will only update the hours, minutes, seconds, ...
	Value time.Time

	// For an <input> element with type="time",
	// the step attribute determines the step size between time values. Its value is specified in seconds.
	// When you set step="1", it means the smallest interval of time the user can select or input is one second.
	//  This allows users to pick any time down to the second. If you omit the step attribute or set it to
	// a value like 60 (which corresponds to one minute), users can only pick times in one-minute intervals.
	//
	// For type="time", it determines the step between times.
	// If you want granularity down to milliseconds, you can set step="0.001", which is 1 millisecond
	Step float64
}

func CopyBranchFormFieldTime

func CopyBranchFormFieldTime(mapOrigCopy map[any]any, formfieldtimeFrom *FormFieldTime) (formfieldtimeTo *FormFieldTime)

func (*FormFieldTime) Checkout

func (formfieldtime *FormFieldTime) Checkout(stage *Stage) *FormFieldTime

Checkout formfieldtime to the back repo (if it is already staged)

func (*FormFieldTime) Commit

func (formfieldtime *FormFieldTime) Commit(stage *Stage) *FormFieldTime

commit formfieldtime to the back repo (if it is already staged)

func (*FormFieldTime) CommitVoid

func (formfieldtime *FormFieldTime) CommitVoid(stage *Stage)

func (*FormFieldTime) CopyBasicFields

func (from *FormFieldTime) CopyBasicFields(to *FormFieldTime)

func (*FormFieldTime) GetName

func (formfieldtime *FormFieldTime) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormFieldTime) Stage

func (formfieldtime *FormFieldTime) Stage(stage *Stage) *FormFieldTime

Stage puts formfieldtime to the model stage

func (*FormFieldTime) Unstage

func (formfieldtime *FormFieldTime) Unstage(stage *Stage) *FormFieldTime

Unstage removes formfieldtime off the model stage

func (*FormFieldTime) UnstageVoid

func (formfieldtime *FormFieldTime) UnstageVoid(stage *Stage)

UnstageVoid removes formfieldtime off the model stage

type FormFieldTime_WOP

type FormFieldTime_WOP struct {
	Name string

	Value time.Time

	Step float64
}

type FormField_WOP

type FormField_WOP struct {
	Name string

	InputTypeEnum InputTypeEnum

	Label string

	Placeholder string

	HasBespokeWidth bool

	BespokeWidthPx int

	HasBespokeHeight bool

	BespokeHeightPx int
}

type FormGroup

type FormGroup struct {
	Name     string
	Label    string
	FormDivs []*FormDiv

	// If yes, a suppress button is present
	HasSuppressButton bool

	// HasSuppressButtonBeenPressed is set to true
	// when the suppress button is pressed. It is the responsability
	// of the backend to reset this value to false
	HasSuppressButtonBeenPressed bool

	// swagger:ignore
	OnSave OnSaveInterface
}

func CopyBranchFormGroup

func CopyBranchFormGroup(mapOrigCopy map[any]any, formgroupFrom *FormGroup) (formgroupTo *FormGroup)

func (*FormGroup) Checkout

func (formgroup *FormGroup) Checkout(stage *Stage) *FormGroup

Checkout formgroup to the back repo (if it is already staged)

func (*FormGroup) Commit

func (formgroup *FormGroup) Commit(stage *Stage) *FormGroup

commit formgroup to the back repo (if it is already staged)

func (*FormGroup) CommitVoid

func (formgroup *FormGroup) CommitVoid(stage *Stage)

func (*FormGroup) CopyBasicFields

func (from *FormGroup) CopyBasicFields(to *FormGroup)

func (*FormGroup) GetName

func (formgroup *FormGroup) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormGroup) OnAfterUpdate

func (formGroup *FormGroup) OnAfterUpdate(
	stage *Stage,
	stagedInstance, frontInstance *FormGroup)

OnAfterUpdate is called when the form group is updated

func (*FormGroup) Stage

func (formgroup *FormGroup) Stage(stage *Stage) *FormGroup

Stage puts formgroup to the model stage

func (*FormGroup) Unstage

func (formgroup *FormGroup) Unstage(stage *Stage) *FormGroup

Unstage removes formgroup off the model stage

func (*FormGroup) UnstageVoid

func (formgroup *FormGroup) UnstageVoid(stage *Stage)

UnstageVoid removes formgroup off the model stage

type FormGroupName

type FormGroupName string

FormGroupName - Authorized name for form group

const (
	FormGroupDefaultName FormGroupName = "Form"
)

values for FormGroupName

func (FormGroupName) CodeValues

func (formgroupname FormGroupName) CodeValues() (res []string)

func (FormGroupName) Codes

func (formgroupname FormGroupName) Codes() (res []string)

func (*FormGroupName) FromCodeString

func (formgroupname *FormGroupName) FromCodeString(input string) (err error)

func (*FormGroupName) FromString

func (formgroupname *FormGroupName) FromString(input string) (err error)

func (*FormGroupName) ToCodeString

func (formgroupname *FormGroupName) ToCodeString() (res string)

func (FormGroupName) ToString

func (formgroupname FormGroupName) ToString() (res string)

insertion point of enum utility functions Utility function for FormGroupName if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value

type FormGroupOrchestrator

type FormGroupOrchestrator struct {
}

FormGroupOrchestrator

func (*FormGroupOrchestrator) OnAfterUpdate

func (orchestrator *FormGroupOrchestrator) OnAfterUpdate(
	gongsvgStage *Stage,
	stagedFormGroup, backRepoFormGroup *FormGroup)

type FormGroup_WOP

type FormGroup_WOP struct {
	Name string

	Label string

	HasSuppressButton bool

	HasSuppressButtonBeenPressed bool
}

type FormSortAssocButton

type FormSortAssocButton struct {
	Name string

	Label string

	// swagger:ignore
	OnSortEdition FormSortAssocButtonInterface

	HasToolTip  bool
	ToolTipText string

	// The link is to allows for the access to the
	// association storage
	FormEditAssocButton *FormEditAssocButton
}

FormSortAssocButton is a button on the front end to sort a 0..1-N association when submitted, it will update the data

func CopyBranchFormSortAssocButton

func CopyBranchFormSortAssocButton(mapOrigCopy map[any]any, formsortassocbuttonFrom *FormSortAssocButton) (formsortassocbuttonTo *FormSortAssocButton)

func (*FormSortAssocButton) Checkout

func (formsortassocbutton *FormSortAssocButton) Checkout(stage *Stage) *FormSortAssocButton

Checkout formsortassocbutton to the back repo (if it is already staged)

func (*FormSortAssocButton) Commit

func (formsortassocbutton *FormSortAssocButton) Commit(stage *Stage) *FormSortAssocButton

commit formsortassocbutton to the back repo (if it is already staged)

func (*FormSortAssocButton) CommitVoid

func (formsortassocbutton *FormSortAssocButton) CommitVoid(stage *Stage)

func (*FormSortAssocButton) CopyBasicFields

func (from *FormSortAssocButton) CopyBasicFields(to *FormSortAssocButton)

func (*FormSortAssocButton) GetName

func (formsortassocbutton *FormSortAssocButton) GetName() (res string)

for satisfaction of GongStruct interface

func (*FormSortAssocButton) OnAfterUpdate

func (formSortAssocButton *FormSortAssocButton) OnAfterUpdate(
	stage *Stage,
	stagedInstance, frontInstance *FormSortAssocButton)

OnAfterUpdate is called when the button is pressed

func (*FormSortAssocButton) Stage

func (formsortassocbutton *FormSortAssocButton) Stage(stage *Stage) *FormSortAssocButton

Stage puts formsortassocbutton to the model stage

func (*FormSortAssocButton) Unstage

func (formsortassocbutton *FormSortAssocButton) Unstage(stage *Stage) *FormSortAssocButton

Unstage removes formsortassocbutton off the model stage

func (*FormSortAssocButton) UnstageVoid

func (formsortassocbutton *FormSortAssocButton) UnstageVoid(stage *Stage)

UnstageVoid removes formsortassocbutton off the model stage

type FormSortAssocButtonInterface

type FormSortAssocButtonInterface interface {
	OnButtonPressed()
}

type FormSortAssocButtonOrchestrator

type FormSortAssocButtonOrchestrator struct {
}

FormSortAssocButtonOrchestrator

func (*FormSortAssocButtonOrchestrator) OnAfterUpdate

func (orchestrator *FormSortAssocButtonOrchestrator) OnAfterUpdate(
	gongsvgStage *Stage,
	stagedFormSortAssocButton, backRepoFormSortAssocButton *FormSortAssocButton)

type FormSortAssocButton_WOP

type FormSortAssocButton_WOP struct {
	Name string

	Label string

	HasToolTip bool

	ToolTipText string
}

type GONG__ExpressionType

type GONG__ExpressionType string

swagger:ignore

const (
	GONG__STRUCT_INSTANCE      GONG__ExpressionType = "STRUCT_INSTANCE"
	GONG__FIELD_OR_CONST_VALUE GONG__ExpressionType = "FIELD_OR_CONST_VALUE"
	GONG__FIELD_VALUE          GONG__ExpressionType = "FIELD_VALUE"
	GONG__ENUM_CAST_INT        GONG__ExpressionType = "ENUM_CAST_INT"
	GONG__ENUM_CAST_STRING     GONG__ExpressionType = "ENUM_CAST_STRING"
	GONG__IDENTIFIER_CONST     GONG__ExpressionType = "IDENTIFIER_CONST"
)

type GONG__Identifier

type GONG__Identifier struct {
	Ident string
	Type  GONG__ExpressionType
}

type GongFieldValue

type GongFieldValue struct {
	GongFieldValueType
	// contains filtered or unexported fields
}

func GetFieldStringValue

func GetFieldStringValue(instance any, fieldName string) (res GongFieldValue)

func GetFieldStringValueFromPointer

func GetFieldStringValueFromPointer(instance any, fieldName string) (res GongFieldValue)

func (*GongFieldValue) GetValueBool

func (gongValueField *GongFieldValue) GetValueBool() bool

func (*GongFieldValue) GetValueFloat

func (gongValueField *GongFieldValue) GetValueFloat() float64

func (*GongFieldValue) GetValueInt

func (gongValueField *GongFieldValue) GetValueInt() int

func (*GongFieldValue) GetValueString

func (gongValueField *GongFieldValue) GetValueString() string

type GongFieldValueType

type GongFieldValueType string
const (
	GongFieldValueTypeInt    GongFieldValueType = "GongFieldValueTypeInt"
	GongFieldValueTypeFloat  GongFieldValueType = "GongFieldValueTypeFloat"
	GongFieldValueTypeBool   GongFieldValueType = "GongFieldValueTypeBool"
	GongFieldValueTypeOthers GongFieldValueType = "GongFieldValueTypeOthers"
)

type GongStructInterface

type GongStructInterface interface {
	GetName() (res string)
}

GongStructInterface is the interface met by GongStructs It allows runtime reflexion of instances (without the hassle of the "reflect" package)

type Gong__MouseEvent

type Gong__MouseEvent struct {
	ShiftKey bool
}

type Gongstruct

type Gongstruct interface {
}

Gongstruct is the type parameter for generated generic function that allows - access to staged instances - navigation between staged instances by going backward association links between gongstruct - full refactoring of Gongstruct identifiers / fields

type GongstructEnumIntField

type GongstructEnumIntField interface {
	int
	Codes() []string
	CodeValues() []int
}

type GongstructEnumStringField

type GongstructEnumStringField interface {
	Codes() []string
	CodeValues() []string
	ToString() string
}

type GongstructMapString

type GongstructMapString interface {
	map[any]any
}

type GongstructSet

type GongstructSet interface {
	map[any]any
}

type GongtructBasicField

type GongtructBasicField interface {
	int | float64 | bool | string | time.Time | time.Duration
}

type InputTypeEnum

type InputTypeEnum string

InputTypeEnum - enumeration of possible 'type' values for an HTML <input> element swagger:enum InputTypeEnum

const (
	Text     InputTypeEnum = "text"
	Password InputTypeEnum = "password"
	Number   InputTypeEnum = "number"
	Email    InputTypeEnum = "email"
	Tel      InputTypeEnum = "tel"
	Date     InputTypeEnum = "date"
	Datetime InputTypeEnum = "datetime-local"
	Time     InputTypeEnum = "time"
	URL      InputTypeEnum = "url"
	Search   InputTypeEnum = "search"
	Range    InputTypeEnum = "range"
	Color    InputTypeEnum = "color"
	File     InputTypeEnum = "file"
	Hidden   InputTypeEnum = "hidden"
	Month    InputTypeEnum = "month"
	Week     InputTypeEnum = "week"
)

values for InputTypeEnum

func (InputTypeEnum) CodeValues

func (inputtypeenum InputTypeEnum) CodeValues() (res []string)

func (InputTypeEnum) Codes

func (inputtypeenum InputTypeEnum) Codes() (res []string)

func (*InputTypeEnum) FromCodeString

func (inputtypeenum *InputTypeEnum) FromCodeString(input string) (err error)

func (*InputTypeEnum) FromString

func (inputtypeenum *InputTypeEnum) FromString(input string) (err error)

func (*InputTypeEnum) ToCodeString

func (inputtypeenum *InputTypeEnum) ToCodeString() (res string)

func (InputTypeEnum) ToString

func (inputtypeenum InputTypeEnum) ToString() (res string)

Utility function for InputTypeEnum if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value

type NamedStruct

type NamedStruct struct {
	// contains filtered or unexported fields
}

func (*NamedStruct) GetName

func (namedStruct *NamedStruct) GetName() string

type OnAfterCreateInterface

type OnAfterCreateInterface[Type Gongstruct] interface {
	OnAfterCreate(stage *Stage,
		instance *Type)
}

OnAfterCreateInterface callback when an instance is updated from the front

type OnAfterDeleteInterface

type OnAfterDeleteInterface[Type Gongstruct] interface {
	OnAfterDelete(stage *Stage,
		staged, front *Type)
}

OnAfterDeleteInterface callback when an instance is updated from the front

type OnAfterReadInterface

type OnAfterReadInterface[Type Gongstruct] interface {
	OnAfterRead(stage *Stage,
		instance *Type)
}

OnAfterReadInterface callback when an instance is updated from the front

type OnAfterUpdateInterface

type OnAfterUpdateInterface[Type Gongstruct] interface {
	OnAfterUpdate(stage *Stage, old, new *Type)
}

OnAfterUpdateInterface callback when an instance is updated from the front

type OnAfterUpdateWithMouseEventInterface

type OnAfterUpdateWithMouseEventInterface[Type Gongstruct] interface {
	OnAfterUpdateWithMouseEvent(stage *Stage, old, new *Type, mouseEvent *Gong__MouseEvent)
}

OnAfterUpdateWithMouseEventInterface callback when an instance is updated from the front

type OnInitCommitInterface

type OnInitCommitInterface interface {
	BeforeCommit(stage *Stage)
}

type OnSaveInterface

type OnSaveInterface interface {
	OnSave()
}

type Option

type Option struct {
	Name string
}

func CopyBranchOption

func CopyBranchOption(mapOrigCopy map[any]any, optionFrom *Option) (optionTo *Option)

func (*Option) Checkout

func (option *Option) Checkout(stage *Stage) *Option

Checkout option to the back repo (if it is already staged)

func (*Option) Commit

func (option *Option) Commit(stage *Stage) *Option

commit option to the back repo (if it is already staged)

func (*Option) CommitVoid

func (option *Option) CommitVoid(stage *Stage)

func (*Option) CopyBasicFields

func (from *Option) CopyBasicFields(to *Option)

func (*Option) GetName

func (option *Option) GetName() (res string)

for satisfaction of GongStruct interface

func (*Option) Stage

func (option *Option) Stage(stage *Stage) *Option

Stage puts option to the model stage

func (*Option) Unstage

func (option *Option) Unstage(stage *Stage) *Option

Unstage removes option off the model stage

func (*Option) UnstageVoid

func (option *Option) UnstageVoid(stage *Stage)

UnstageVoid removes option off the model stage

type Option_WOP

type Option_WOP struct {
	Name string
}

type PointerToGongstruct

type PointerToGongstruct interface {
	GetName() string
	CommitVoid(*Stage)
	UnstageVoid(stage *Stage)
	comparable
}

Gongstruct is the type parameter for generated generic function that allows - access to staged instances - navigation between staged instances by going backward association links between gongstruct - full refactoring of Gongstruct identifiers / fields

type PointerToGongstructEnumIntField

type PointerToGongstructEnumIntField interface {
	FromCodeString(input string) (err error)
}

type PointerToGongstructEnumStringField

type PointerToGongstructEnumStringField interface {
	FromCodeString(input string) (err error)
}

type ReverseField

type ReverseField struct {
	GongstructName string
	Fieldname      string
}

func GetReverseFields

func GetReverseFields[Type Gongstruct]() (res []ReverseField)

type Row

type Row struct {
	Name  string
	Cells []*Cell

	IsChecked bool

	// swagger:ignore
	Impl RowImplInterface
}

func CopyBranchRow

func CopyBranchRow(mapOrigCopy map[any]any, rowFrom *Row) (rowTo *Row)

func (*Row) Checkout

func (row *Row) Checkout(stage *Stage) *Row

Checkout row to the back repo (if it is already staged)

func (*Row) Commit

func (row *Row) Commit(stage *Stage) *Row

commit row to the back repo (if it is already staged)

func (*Row) CommitVoid

func (row *Row) CommitVoid(stage *Stage)

func (*Row) CopyBasicFields

func (from *Row) CopyBasicFields(to *Row)

func (*Row) GetName

func (row *Row) GetName() (res string)

for satisfaction of GongStruct interface

func (*Row) OnAfterUpdate

func (row *Row) OnAfterUpdate(stage *Stage, _, frontRow *Row)

OnAfterUpdate is called when there is an update to the row note the play on words "font row"

func (*Row) Stage

func (row *Row) Stage(stage *Stage) *Row

Stage puts row to the model stage

func (*Row) Unstage

func (row *Row) Unstage(stage *Stage) *Row

Unstage removes row off the model stage

func (*Row) UnstageVoid

func (row *Row) UnstageVoid(stage *Stage)

UnstageVoid removes row off the model stage

type RowImplInterface

type RowImplInterface interface {

	// RowUpdated function is called each time a Row is modified
	RowUpdated(stage *Stage, row, updatedRow *Row)
}

type RowOrchestrator

type RowOrchestrator struct {
}

RowOrchestrator

func (*RowOrchestrator) OnAfterUpdate

func (orchestrator *RowOrchestrator) OnAfterUpdate(
	gongsvgStage *Stage,
	stagedRow, backRepoRow *Row)

type Row_WOP

type Row_WOP struct {
	Name string

	IsChecked bool
}

type Stage

type Stage struct {

	// insertion point for definition of arrays registering instances
	Cells           map[*Cell]any
	Cells_mapString map[string]*Cell

	// insertion point for slice of pointers maps
	OnAfterCellCreateCallback               OnAfterCreateInterface[Cell]
	OnAfterCellUpdateCallback               OnAfterUpdateInterface[Cell]
	OnAfterCellUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[Cell]
	OnAfterCellDeleteCallback               OnAfterDeleteInterface[Cell]
	OnAfterCellReadCallback                 OnAfterReadInterface[Cell]

	CellBooleans           map[*CellBoolean]any
	CellBooleans_mapString map[string]*CellBoolean

	// insertion point for slice of pointers maps
	OnAfterCellBooleanCreateCallback               OnAfterCreateInterface[CellBoolean]
	OnAfterCellBooleanUpdateCallback               OnAfterUpdateInterface[CellBoolean]
	OnAfterCellBooleanUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CellBoolean]
	OnAfterCellBooleanDeleteCallback               OnAfterDeleteInterface[CellBoolean]
	OnAfterCellBooleanReadCallback                 OnAfterReadInterface[CellBoolean]

	CellFloat64s           map[*CellFloat64]any
	CellFloat64s_mapString map[string]*CellFloat64

	// insertion point for slice of pointers maps
	OnAfterCellFloat64CreateCallback               OnAfterCreateInterface[CellFloat64]
	OnAfterCellFloat64UpdateCallback               OnAfterUpdateInterface[CellFloat64]
	OnAfterCellFloat64UpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CellFloat64]
	OnAfterCellFloat64DeleteCallback               OnAfterDeleteInterface[CellFloat64]
	OnAfterCellFloat64ReadCallback                 OnAfterReadInterface[CellFloat64]

	CellIcons           map[*CellIcon]any
	CellIcons_mapString map[string]*CellIcon

	// insertion point for slice of pointers maps
	OnAfterCellIconCreateCallback               OnAfterCreateInterface[CellIcon]
	OnAfterCellIconUpdateCallback               OnAfterUpdateInterface[CellIcon]
	OnAfterCellIconUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CellIcon]
	OnAfterCellIconDeleteCallback               OnAfterDeleteInterface[CellIcon]
	OnAfterCellIconReadCallback                 OnAfterReadInterface[CellIcon]

	CellInts           map[*CellInt]any
	CellInts_mapString map[string]*CellInt

	// insertion point for slice of pointers maps
	OnAfterCellIntCreateCallback               OnAfterCreateInterface[CellInt]
	OnAfterCellIntUpdateCallback               OnAfterUpdateInterface[CellInt]
	OnAfterCellIntUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CellInt]
	OnAfterCellIntDeleteCallback               OnAfterDeleteInterface[CellInt]
	OnAfterCellIntReadCallback                 OnAfterReadInterface[CellInt]

	CellStrings           map[*CellString]any
	CellStrings_mapString map[string]*CellString

	// insertion point for slice of pointers maps
	OnAfterCellStringCreateCallback               OnAfterCreateInterface[CellString]
	OnAfterCellStringUpdateCallback               OnAfterUpdateInterface[CellString]
	OnAfterCellStringUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CellString]
	OnAfterCellStringDeleteCallback               OnAfterDeleteInterface[CellString]
	OnAfterCellStringReadCallback                 OnAfterReadInterface[CellString]

	CheckBoxs           map[*CheckBox]any
	CheckBoxs_mapString map[string]*CheckBox

	// insertion point for slice of pointers maps
	OnAfterCheckBoxCreateCallback               OnAfterCreateInterface[CheckBox]
	OnAfterCheckBoxUpdateCallback               OnAfterUpdateInterface[CheckBox]
	OnAfterCheckBoxUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[CheckBox]
	OnAfterCheckBoxDeleteCallback               OnAfterDeleteInterface[CheckBox]
	OnAfterCheckBoxReadCallback                 OnAfterReadInterface[CheckBox]

	DisplayedColumns           map[*DisplayedColumn]any
	DisplayedColumns_mapString map[string]*DisplayedColumn

	// insertion point for slice of pointers maps
	OnAfterDisplayedColumnCreateCallback               OnAfterCreateInterface[DisplayedColumn]
	OnAfterDisplayedColumnUpdateCallback               OnAfterUpdateInterface[DisplayedColumn]
	OnAfterDisplayedColumnUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[DisplayedColumn]
	OnAfterDisplayedColumnDeleteCallback               OnAfterDeleteInterface[DisplayedColumn]
	OnAfterDisplayedColumnReadCallback                 OnAfterReadInterface[DisplayedColumn]

	FormDivs           map[*FormDiv]any
	FormDivs_mapString map[string]*FormDiv

	// insertion point for slice of pointers maps
	FormDiv_FormFields_reverseMap map[*FormField]*FormDiv

	FormDiv_CheckBoxs_reverseMap map[*CheckBox]*FormDiv

	OnAfterFormDivCreateCallback               OnAfterCreateInterface[FormDiv]
	OnAfterFormDivUpdateCallback               OnAfterUpdateInterface[FormDiv]
	OnAfterFormDivUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormDiv]
	OnAfterFormDivDeleteCallback               OnAfterDeleteInterface[FormDiv]
	OnAfterFormDivReadCallback                 OnAfterReadInterface[FormDiv]

	FormEditAssocButtons           map[*FormEditAssocButton]any
	FormEditAssocButtons_mapString map[string]*FormEditAssocButton

	// insertion point for slice of pointers maps
	OnAfterFormEditAssocButtonCreateCallback               OnAfterCreateInterface[FormEditAssocButton]
	OnAfterFormEditAssocButtonUpdateCallback               OnAfterUpdateInterface[FormEditAssocButton]
	OnAfterFormEditAssocButtonUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormEditAssocButton]
	OnAfterFormEditAssocButtonDeleteCallback               OnAfterDeleteInterface[FormEditAssocButton]
	OnAfterFormEditAssocButtonReadCallback                 OnAfterReadInterface[FormEditAssocButton]

	FormFields           map[*FormField]any
	FormFields_mapString map[string]*FormField

	// insertion point for slice of pointers maps
	OnAfterFormFieldCreateCallback               OnAfterCreateInterface[FormField]
	OnAfterFormFieldUpdateCallback               OnAfterUpdateInterface[FormField]
	OnAfterFormFieldUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormField]
	OnAfterFormFieldDeleteCallback               OnAfterDeleteInterface[FormField]
	OnAfterFormFieldReadCallback                 OnAfterReadInterface[FormField]

	FormFieldDates           map[*FormFieldDate]any
	FormFieldDates_mapString map[string]*FormFieldDate

	// insertion point for slice of pointers maps
	OnAfterFormFieldDateCreateCallback               OnAfterCreateInterface[FormFieldDate]
	OnAfterFormFieldDateUpdateCallback               OnAfterUpdateInterface[FormFieldDate]
	OnAfterFormFieldDateUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldDate]
	OnAfterFormFieldDateDeleteCallback               OnAfterDeleteInterface[FormFieldDate]
	OnAfterFormFieldDateReadCallback                 OnAfterReadInterface[FormFieldDate]

	FormFieldDateTimes           map[*FormFieldDateTime]any
	FormFieldDateTimes_mapString map[string]*FormFieldDateTime

	// insertion point for slice of pointers maps
	OnAfterFormFieldDateTimeCreateCallback               OnAfterCreateInterface[FormFieldDateTime]
	OnAfterFormFieldDateTimeUpdateCallback               OnAfterUpdateInterface[FormFieldDateTime]
	OnAfterFormFieldDateTimeUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldDateTime]
	OnAfterFormFieldDateTimeDeleteCallback               OnAfterDeleteInterface[FormFieldDateTime]
	OnAfterFormFieldDateTimeReadCallback                 OnAfterReadInterface[FormFieldDateTime]

	FormFieldFloat64s           map[*FormFieldFloat64]any
	FormFieldFloat64s_mapString map[string]*FormFieldFloat64

	// insertion point for slice of pointers maps
	OnAfterFormFieldFloat64CreateCallback               OnAfterCreateInterface[FormFieldFloat64]
	OnAfterFormFieldFloat64UpdateCallback               OnAfterUpdateInterface[FormFieldFloat64]
	OnAfterFormFieldFloat64UpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldFloat64]
	OnAfterFormFieldFloat64DeleteCallback               OnAfterDeleteInterface[FormFieldFloat64]
	OnAfterFormFieldFloat64ReadCallback                 OnAfterReadInterface[FormFieldFloat64]

	FormFieldInts           map[*FormFieldInt]any
	FormFieldInts_mapString map[string]*FormFieldInt

	// insertion point for slice of pointers maps
	OnAfterFormFieldIntCreateCallback               OnAfterCreateInterface[FormFieldInt]
	OnAfterFormFieldIntUpdateCallback               OnAfterUpdateInterface[FormFieldInt]
	OnAfterFormFieldIntUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldInt]
	OnAfterFormFieldIntDeleteCallback               OnAfterDeleteInterface[FormFieldInt]
	OnAfterFormFieldIntReadCallback                 OnAfterReadInterface[FormFieldInt]

	FormFieldSelects           map[*FormFieldSelect]any
	FormFieldSelects_mapString map[string]*FormFieldSelect

	// insertion point for slice of pointers maps
	FormFieldSelect_Options_reverseMap map[*Option]*FormFieldSelect

	OnAfterFormFieldSelectCreateCallback               OnAfterCreateInterface[FormFieldSelect]
	OnAfterFormFieldSelectUpdateCallback               OnAfterUpdateInterface[FormFieldSelect]
	OnAfterFormFieldSelectUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldSelect]
	OnAfterFormFieldSelectDeleteCallback               OnAfterDeleteInterface[FormFieldSelect]
	OnAfterFormFieldSelectReadCallback                 OnAfterReadInterface[FormFieldSelect]

	FormFieldStrings           map[*FormFieldString]any
	FormFieldStrings_mapString map[string]*FormFieldString

	// insertion point for slice of pointers maps
	OnAfterFormFieldStringCreateCallback               OnAfterCreateInterface[FormFieldString]
	OnAfterFormFieldStringUpdateCallback               OnAfterUpdateInterface[FormFieldString]
	OnAfterFormFieldStringUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldString]
	OnAfterFormFieldStringDeleteCallback               OnAfterDeleteInterface[FormFieldString]
	OnAfterFormFieldStringReadCallback                 OnAfterReadInterface[FormFieldString]

	FormFieldTimes           map[*FormFieldTime]any
	FormFieldTimes_mapString map[string]*FormFieldTime

	// insertion point for slice of pointers maps
	OnAfterFormFieldTimeCreateCallback               OnAfterCreateInterface[FormFieldTime]
	OnAfterFormFieldTimeUpdateCallback               OnAfterUpdateInterface[FormFieldTime]
	OnAfterFormFieldTimeUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormFieldTime]
	OnAfterFormFieldTimeDeleteCallback               OnAfterDeleteInterface[FormFieldTime]
	OnAfterFormFieldTimeReadCallback                 OnAfterReadInterface[FormFieldTime]

	FormGroups           map[*FormGroup]any
	FormGroups_mapString map[string]*FormGroup

	// insertion point for slice of pointers maps
	FormGroup_FormDivs_reverseMap map[*FormDiv]*FormGroup

	OnAfterFormGroupCreateCallback               OnAfterCreateInterface[FormGroup]
	OnAfterFormGroupUpdateCallback               OnAfterUpdateInterface[FormGroup]
	OnAfterFormGroupUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormGroup]
	OnAfterFormGroupDeleteCallback               OnAfterDeleteInterface[FormGroup]
	OnAfterFormGroupReadCallback                 OnAfterReadInterface[FormGroup]

	FormSortAssocButtons           map[*FormSortAssocButton]any
	FormSortAssocButtons_mapString map[string]*FormSortAssocButton

	// insertion point for slice of pointers maps
	OnAfterFormSortAssocButtonCreateCallback               OnAfterCreateInterface[FormSortAssocButton]
	OnAfterFormSortAssocButtonUpdateCallback               OnAfterUpdateInterface[FormSortAssocButton]
	OnAfterFormSortAssocButtonUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[FormSortAssocButton]
	OnAfterFormSortAssocButtonDeleteCallback               OnAfterDeleteInterface[FormSortAssocButton]
	OnAfterFormSortAssocButtonReadCallback                 OnAfterReadInterface[FormSortAssocButton]

	Options           map[*Option]any
	Options_mapString map[string]*Option

	// insertion point for slice of pointers maps
	OnAfterOptionCreateCallback               OnAfterCreateInterface[Option]
	OnAfterOptionUpdateCallback               OnAfterUpdateInterface[Option]
	OnAfterOptionUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[Option]
	OnAfterOptionDeleteCallback               OnAfterDeleteInterface[Option]
	OnAfterOptionReadCallback                 OnAfterReadInterface[Option]

	Rows           map[*Row]any
	Rows_mapString map[string]*Row

	// insertion point for slice of pointers maps
	Row_Cells_reverseMap map[*Cell]*Row

	OnAfterRowCreateCallback               OnAfterCreateInterface[Row]
	OnAfterRowUpdateCallback               OnAfterUpdateInterface[Row]
	OnAfterRowUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[Row]
	OnAfterRowDeleteCallback               OnAfterDeleteInterface[Row]
	OnAfterRowReadCallback                 OnAfterReadInterface[Row]

	Tables           map[*Table]any
	Tables_mapString map[string]*Table

	// insertion point for slice of pointers maps
	Table_DisplayedColumns_reverseMap map[*DisplayedColumn]*Table

	Table_Rows_reverseMap map[*Row]*Table

	OnAfterTableCreateCallback               OnAfterCreateInterface[Table]
	OnAfterTableUpdateCallback               OnAfterUpdateInterface[Table]
	OnAfterTableUpdateWithMouseEventCallback OnAfterUpdateWithMouseEventInterface[Table]
	OnAfterTableDeleteCallback               OnAfterDeleteInterface[Table]
	OnAfterTableReadCallback                 OnAfterReadInterface[Table]

	AllModelsStructCreateCallback AllModelsStructCreateInterface

	AllModelsStructDeleteCallback AllModelsStructDeleteInterface

	BackRepo BackRepoInterface

	// if set will be called before each commit to the back repo
	OnInitCommitCallback          OnInitCommitInterface
	OnInitCommitFromFrontCallback OnInitCommitInterface
	OnInitCommitFromBackCallback  OnInitCommitInterface

	// store the number of instance per gongstruct
	Map_GongStructName_InstancesNb map[string]int

	// store meta package import
	MetaPackageImportPath  string
	MetaPackageImportAlias string

	// to be removed after fix of [issue](https://github.com/golang/go/issues/57559)
	// map to enable docLink renaming when an identifier is renamed
	Map_DocLink_Renaming map[string]GONG__Identifier

	// store the stage order of each instance in order to
	// preserve this order when serializing them
	// insertion point for order fields declaration
	CellOrder            uint
	CellMap_Staged_Order map[*Cell]uint

	CellBooleanOrder            uint
	CellBooleanMap_Staged_Order map[*CellBoolean]uint

	CellFloat64Order            uint
	CellFloat64Map_Staged_Order map[*CellFloat64]uint

	CellIconOrder            uint
	CellIconMap_Staged_Order map[*CellIcon]uint

	CellIntOrder            uint
	CellIntMap_Staged_Order map[*CellInt]uint

	CellStringOrder            uint
	CellStringMap_Staged_Order map[*CellString]uint

	CheckBoxOrder            uint
	CheckBoxMap_Staged_Order map[*CheckBox]uint

	DisplayedColumnOrder            uint
	DisplayedColumnMap_Staged_Order map[*DisplayedColumn]uint

	FormDivOrder            uint
	FormDivMap_Staged_Order map[*FormDiv]uint

	FormEditAssocButtonOrder            uint
	FormEditAssocButtonMap_Staged_Order map[*FormEditAssocButton]uint

	FormFieldOrder            uint
	FormFieldMap_Staged_Order map[*FormField]uint

	FormFieldDateOrder            uint
	FormFieldDateMap_Staged_Order map[*FormFieldDate]uint

	FormFieldDateTimeOrder            uint
	FormFieldDateTimeMap_Staged_Order map[*FormFieldDateTime]uint

	FormFieldFloat64Order            uint
	FormFieldFloat64Map_Staged_Order map[*FormFieldFloat64]uint

	FormFieldIntOrder            uint
	FormFieldIntMap_Staged_Order map[*FormFieldInt]uint

	FormFieldSelectOrder            uint
	FormFieldSelectMap_Staged_Order map[*FormFieldSelect]uint

	FormFieldStringOrder            uint
	FormFieldStringMap_Staged_Order map[*FormFieldString]uint

	FormFieldTimeOrder            uint
	FormFieldTimeMap_Staged_Order map[*FormFieldTime]uint

	FormGroupOrder            uint
	FormGroupMap_Staged_Order map[*FormGroup]uint

	FormSortAssocButtonOrder            uint
	FormSortAssocButtonMap_Staged_Order map[*FormSortAssocButton]uint

	OptionOrder            uint
	OptionMap_Staged_Order map[*Option]uint

	RowOrder            uint
	RowMap_Staged_Order map[*Row]uint

	TableOrder            uint
	TableMap_Staged_Order map[*Table]uint

	NamedStructs []*NamedStruct
	// contains filtered or unexported fields
}

Stage enables storage of staged instances swagger:ignore

func NewStage

func NewStage(name string) (stage *Stage)

func (*Stage) Backup

func (stage *Stage) Backup(dirPath string)

backup generates backup files in the dirPath

func (*Stage) BackupXL

func (stage *Stage) BackupXL(dirPath string)

backup generates backup files in the dirPath

func (*Stage) Checkout

func (stage *Stage) Checkout()

func (*Stage) Commit

func (stage *Stage) Commit()

func (*Stage) CommitWithSuspendedCallbacks

func (stage *Stage) CommitWithSuspendedCallbacks()

func (*Stage) ComputeReverseMaps

func (stage *Stage) ComputeReverseMaps()

ComputeReverseMaps computes the reverse map, for all intances, for all slice to pointers field Its complexity is in O(n)O(p) where p is the number of pointers

func (*Stage) GetCommitId

func (stage *Stage) GetCommitId() uint

func (*Stage) GetCommitTS

func (stage *Stage) GetCommitTS() time.Time

func (*Stage) GetDigramsEmbededDir

func (stage *Stage) GetDigramsEmbededDir() embed.FS

func (*Stage) GetMap_GongStructName_InstancesNb

func (stage *Stage) GetMap_GongStructName_InstancesNb() map[string]int

func (*Stage) GetModelsEmbededDir

func (stage *Stage) GetModelsEmbededDir() embed.FS

func (*Stage) GetName

func (stage *Stage) GetName() string

func (*Stage) GetNamedStructNamesByOrder

func (stage *Stage) GetNamedStructNamesByOrder(namedStructName string) (res []string)

func (*Stage) GetNamedStructsNames

func (stage *Stage) GetNamedStructsNames() (res []string)

GetNamedStructs implements models.ProbebStage.

func (*Stage) GetProbeFormStageName

func (stage *Stage) GetProbeFormStageName() string

func (*Stage) GetProbeSplitStageName

func (stage *Stage) GetProbeSplitStageName() string

func (*Stage) GetProbeTableStageName

func (stage *Stage) GetProbeTableStageName() string

func (*Stage) GetProbeTreeSidebarStageName

func (stage *Stage) GetProbeTreeSidebarStageName() string

func (*Stage) GetType

func (stage *Stage) GetType() string

func (*Stage) IsStagedCell

func (stage *Stage) IsStagedCell(cell *Cell) (ok bool)

insertion point for stage per struct

func (*Stage) IsStagedCellBoolean

func (stage *Stage) IsStagedCellBoolean(cellboolean *CellBoolean) (ok bool)

func (*Stage) IsStagedCellFloat64

func (stage *Stage) IsStagedCellFloat64(cellfloat64 *CellFloat64) (ok bool)

func (*Stage) IsStagedCellIcon

func (stage *Stage) IsStagedCellIcon(cellicon *CellIcon) (ok bool)

func (*Stage) IsStagedCellInt

func (stage *Stage) IsStagedCellInt(cellint *CellInt) (ok bool)

func (*Stage) IsStagedCellString

func (stage *Stage) IsStagedCellString(cellstring *CellString) (ok bool)

func (*Stage) IsStagedCheckBox

func (stage *Stage) IsStagedCheckBox(checkbox *CheckBox) (ok bool)

func (*Stage) IsStagedDisplayedColumn

func (stage *Stage) IsStagedDisplayedColumn(displayedcolumn *DisplayedColumn) (ok bool)

func (*Stage) IsStagedFormDiv

func (stage *Stage) IsStagedFormDiv(formdiv *FormDiv) (ok bool)

func (*Stage) IsStagedFormEditAssocButton

func (stage *Stage) IsStagedFormEditAssocButton(formeditassocbutton *FormEditAssocButton) (ok bool)

func (*Stage) IsStagedFormField

func (stage *Stage) IsStagedFormField(formfield *FormField) (ok bool)

func (*Stage) IsStagedFormFieldDate

func (stage *Stage) IsStagedFormFieldDate(formfielddate *FormFieldDate) (ok bool)

func (*Stage) IsStagedFormFieldDateTime

func (stage *Stage) IsStagedFormFieldDateTime(formfielddatetime *FormFieldDateTime) (ok bool)

func (*Stage) IsStagedFormFieldFloat64

func (stage *Stage) IsStagedFormFieldFloat64(formfieldfloat64 *FormFieldFloat64) (ok bool)

func (*Stage) IsStagedFormFieldInt

func (stage *Stage) IsStagedFormFieldInt(formfieldint *FormFieldInt) (ok bool)

func (*Stage) IsStagedFormFieldSelect

func (stage *Stage) IsStagedFormFieldSelect(formfieldselect *FormFieldSelect) (ok bool)

func (*Stage) IsStagedFormFieldString

func (stage *Stage) IsStagedFormFieldString(formfieldstring *FormFieldString) (ok bool)

func (*Stage) IsStagedFormFieldTime

func (stage *Stage) IsStagedFormFieldTime(formfieldtime *FormFieldTime) (ok bool)

func (*Stage) IsStagedFormGroup

func (stage *Stage) IsStagedFormGroup(formgroup *FormGroup) (ok bool)

func (*Stage) IsStagedFormSortAssocButton

func (stage *Stage) IsStagedFormSortAssocButton(formsortassocbutton *FormSortAssocButton) (ok bool)

func (*Stage) IsStagedOption

func (stage *Stage) IsStagedOption(option *Option) (ok bool)

func (*Stage) IsStagedRow

func (stage *Stage) IsStagedRow(row *Row) (ok bool)

func (*Stage) IsStagedTable

func (stage *Stage) IsStagedTable(table *Table) (ok bool)

func (*Stage) Marshall

func (stage *Stage) Marshall(file *os.File, modelsPackageName, packageName string)

Marshall marshall the stage content into the file as an instanciation into a stage

func (*Stage) MarshallToString

func (stage *Stage) MarshallToString(modelsPackageName, packageName string) (res string, err error)

MarshallToString marshall the stage content into a string

func (*Stage) Nil

func (stage *Stage) Nil()

func (*Stage) Reset

func (stage *Stage) Reset()

func (*Stage) Restore

func (stage *Stage) Restore(dirPath string)

Restore resets Stage & BackRepo and restores their content from the restore files in dirPath

func (*Stage) RestoreXL

func (stage *Stage) RestoreXL(dirPath string)

Restore resets Stage & BackRepo and restores their content from the restore files in dirPath

func (*Stage) SetGeneratesDiff

func (stage *Stage) SetGeneratesDiff(generatesDiff bool)

func (*Stage) StageBranchCell

func (stage *Stage) StageBranchCell(cell *Cell)

insertion point for stage branch per struct

func (*Stage) StageBranchCellBoolean

func (stage *Stage) StageBranchCellBoolean(cellboolean *CellBoolean)

func (*Stage) StageBranchCellFloat64

func (stage *Stage) StageBranchCellFloat64(cellfloat64 *CellFloat64)

func (*Stage) StageBranchCellIcon

func (stage *Stage) StageBranchCellIcon(cellicon *CellIcon)

func (*Stage) StageBranchCellInt

func (stage *Stage) StageBranchCellInt(cellint *CellInt)

func (*Stage) StageBranchCellString

func (stage *Stage) StageBranchCellString(cellstring *CellString)

func (*Stage) StageBranchCheckBox

func (stage *Stage) StageBranchCheckBox(checkbox *CheckBox)

func (*Stage) StageBranchDisplayedColumn

func (stage *Stage) StageBranchDisplayedColumn(displayedcolumn *DisplayedColumn)

func (*Stage) StageBranchFormDiv

func (stage *Stage) StageBranchFormDiv(formdiv *FormDiv)

func (*Stage) StageBranchFormEditAssocButton

func (stage *Stage) StageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)

func (*Stage) StageBranchFormField

func (stage *Stage) StageBranchFormField(formfield *FormField)

func (*Stage) StageBranchFormFieldDate

func (stage *Stage) StageBranchFormFieldDate(formfielddate *FormFieldDate)

func (*Stage) StageBranchFormFieldDateTime

func (stage *Stage) StageBranchFormFieldDateTime(formfielddatetime *FormFieldDateTime)

func (*Stage) StageBranchFormFieldFloat64

func (stage *Stage) StageBranchFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)

func (*Stage) StageBranchFormFieldInt

func (stage *Stage) StageBranchFormFieldInt(formfieldint *FormFieldInt)

func (*Stage) StageBranchFormFieldSelect

func (stage *Stage) StageBranchFormFieldSelect(formfieldselect *FormFieldSelect)

func (*Stage) StageBranchFormFieldString

func (stage *Stage) StageBranchFormFieldString(formfieldstring *FormFieldString)

func (*Stage) StageBranchFormFieldTime

func (stage *Stage) StageBranchFormFieldTime(formfieldtime *FormFieldTime)

func (*Stage) StageBranchFormGroup

func (stage *Stage) StageBranchFormGroup(formgroup *FormGroup)

func (*Stage) StageBranchFormSortAssocButton

func (stage *Stage) StageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)

func (*Stage) StageBranchOption

func (stage *Stage) StageBranchOption(option *Option)

func (*Stage) StageBranchRow

func (stage *Stage) StageBranchRow(row *Row)

func (*Stage) StageBranchTable

func (stage *Stage) StageBranchTable(table *Table)

func (*Stage) Unstage

func (stage *Stage) Unstage()

func (*Stage) UnstageBranchCell

func (stage *Stage) UnstageBranchCell(cell *Cell)

insertion point for unstage branch per struct

func (*Stage) UnstageBranchCellBoolean

func (stage *Stage) UnstageBranchCellBoolean(cellboolean *CellBoolean)

func (*Stage) UnstageBranchCellFloat64

func (stage *Stage) UnstageBranchCellFloat64(cellfloat64 *CellFloat64)

func (*Stage) UnstageBranchCellIcon

func (stage *Stage) UnstageBranchCellIcon(cellicon *CellIcon)

func (*Stage) UnstageBranchCellInt

func (stage *Stage) UnstageBranchCellInt(cellint *CellInt)

func (*Stage) UnstageBranchCellString

func (stage *Stage) UnstageBranchCellString(cellstring *CellString)

func (*Stage) UnstageBranchCheckBox

func (stage *Stage) UnstageBranchCheckBox(checkbox *CheckBox)

func (*Stage) UnstageBranchDisplayedColumn

func (stage *Stage) UnstageBranchDisplayedColumn(displayedcolumn *DisplayedColumn)

func (*Stage) UnstageBranchFormDiv

func (stage *Stage) UnstageBranchFormDiv(formdiv *FormDiv)

func (*Stage) UnstageBranchFormEditAssocButton

func (stage *Stage) UnstageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)

func (*Stage) UnstageBranchFormField

func (stage *Stage) UnstageBranchFormField(formfield *FormField)

func (*Stage) UnstageBranchFormFieldDate

func (stage *Stage) UnstageBranchFormFieldDate(formfielddate *FormFieldDate)

func (*Stage) UnstageBranchFormFieldDateTime

func (stage *Stage) UnstageBranchFormFieldDateTime(formfielddatetime *FormFieldDateTime)

func (*Stage) UnstageBranchFormFieldFloat64

func (stage *Stage) UnstageBranchFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)

func (*Stage) UnstageBranchFormFieldInt

func (stage *Stage) UnstageBranchFormFieldInt(formfieldint *FormFieldInt)

func (*Stage) UnstageBranchFormFieldSelect

func (stage *Stage) UnstageBranchFormFieldSelect(formfieldselect *FormFieldSelect)

func (*Stage) UnstageBranchFormFieldString

func (stage *Stage) UnstageBranchFormFieldString(formfieldstring *FormFieldString)

func (*Stage) UnstageBranchFormFieldTime

func (stage *Stage) UnstageBranchFormFieldTime(formfieldtime *FormFieldTime)

func (*Stage) UnstageBranchFormGroup

func (stage *Stage) UnstageBranchFormGroup(formgroup *FormGroup)

func (*Stage) UnstageBranchFormSortAssocButton

func (stage *Stage) UnstageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)

func (*Stage) UnstageBranchOption

func (stage *Stage) UnstageBranchOption(option *Option)

func (*Stage) UnstageBranchRow

func (stage *Stage) UnstageBranchRow(row *Row)

func (*Stage) UnstageBranchTable

func (stage *Stage) UnstageBranchTable(table *Table)

type Table

type Table struct {
	Name             string
	DisplayedColumns []*DisplayedColumn
	Rows             []*Row

	HasFiltering     bool
	HasColumnSorting bool
	HasPaginator     bool

	HasCheckableRows bool

	HasSaveButton   bool
	SaveButtonLabel string

	CanDragDropRows bool
	HasCloseButton  bool // Is used in case of drag drop since drag drop operation save the result

	// SavingInProgress is true when rows are being saved
	// it is set to true by the front at the begining and set back
	// to false by the front
	// This information is used by the back to compute when all rows to be updated
	// have been updated
	SavingInProgress bool

	// The `sticky` property in CSS positions an element based on user's scroll,
	// allowing it to be fixed within its parent after a scroll point is reached.
	// NbOfStickyColumns defines the number of sticky column at the left of the table
	NbOfStickyColumns int

	// swagger:ignore
	Impl TableImplInterface
}

func CopyBranchTable

func CopyBranchTable(mapOrigCopy map[any]any, tableFrom *Table) (tableTo *Table)

func (*Table) Checkout

func (table *Table) Checkout(stage *Stage) *Table

Checkout table to the back repo (if it is already staged)

func (*Table) Commit

func (table *Table) Commit(stage *Stage) *Table

commit table to the back repo (if it is already staged)

func (*Table) CommitVoid

func (table *Table) CommitVoid(stage *Stage)

func (*Table) CopyBasicFields

func (from *Table) CopyBasicFields(to *Table)

func (*Table) GetName

func (table *Table) GetName() (res string)

for satisfaction of GongStruct interface

func (*Table) OnAfterUpdate

func (table *Table) OnAfterUpdate(stage *Stage, _, frontTable *Table)

OnAfterUpdate is called when there is an update to the table note the play on words "font table"

func (*Table) Stage

func (table *Table) Stage(stage *Stage) *Table

Stage puts table to the model stage

func (*Table) Unstage

func (table *Table) Unstage(stage *Stage) *Table

Unstage removes table off the model stage

func (*Table) UnstageVoid

func (table *Table) UnstageVoid(stage *Stage)

UnstageVoid removes table off the model stage

type TableExtraNameEnum

type TableExtraNameEnum string

TableExtraNameEnum - enumeration of possible 'type' values for an HTML <input> element swagger:enum TableExtraNameEnum

const (
	TableSelectExtraName TableExtraNameEnum = "tmp-picker"
	TableSortExtraName   TableExtraNameEnum = "tmp-sort"
)

values for TableExtraNameEnum

func (TableExtraNameEnum) CodeValues

func (tableextranameenum TableExtraNameEnum) CodeValues() (res []string)

func (TableExtraNameEnum) Codes

func (tableextranameenum TableExtraNameEnum) Codes() (res []string)

func (*TableExtraNameEnum) FromCodeString

func (tableextranameenum *TableExtraNameEnum) FromCodeString(input string) (err error)

func (*TableExtraNameEnum) FromString

func (tableextranameenum *TableExtraNameEnum) FromString(input string) (err error)

func (*TableExtraNameEnum) ToCodeString

func (tableextranameenum *TableExtraNameEnum) ToCodeString() (res string)

func (TableExtraNameEnum) ToString

func (tableextranameenum TableExtraNameEnum) ToString() (res string)

Utility function for TableExtraNameEnum if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value

type TableExtraPathEnum

type TableExtraPathEnum string

TableExtraPathEnum - enumeration of possible 'type' values for an HTML <input> element swagger:enum TableExtraPathEnum

const (

	// those five default values are used by the "data" when used in combination for accessing
	// data
	StackNamePostFixForTableForMainTable          TableExtraPathEnum = "-table"
	StackNamePostFixForTableForMainForm           TableExtraPathEnum = "-form"
	StackNamePostFixForTableForMainTree           TableExtraPathEnum = "-sidebar"
	StackNamePostFixForTableForAssociation        TableExtraPathEnum = "-table-pick"
	StackNamePostFixForTableForAssociationSorting TableExtraPathEnum = "-table-sort"
)

values for TableExtraPathEnum

func (TableExtraPathEnum) CodeValues

func (tableextrapathenum TableExtraPathEnum) CodeValues() (res []string)

func (TableExtraPathEnum) Codes

func (tableextrapathenum TableExtraPathEnum) Codes() (res []string)

func (*TableExtraPathEnum) FromCodeString

func (tableextrapathenum *TableExtraPathEnum) FromCodeString(input string) (err error)

func (*TableExtraPathEnum) FromString

func (tableextrapathenum *TableExtraPathEnum) FromString(input string) (err error)

func (*TableExtraPathEnum) ToCodeString

func (tableextrapathenum *TableExtraPathEnum) ToCodeString() (res string)

func (TableExtraPathEnum) ToString

func (tableextrapathenum TableExtraPathEnum) ToString() (res string)

Utility function for TableExtraPathEnum if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value

type TableImplInterface

type TableImplInterface interface {

	// TableUpdated function is called each time a Table is modified
	TableUpdated(stage *Stage, table, updatedTable *Table)
}

type TableName

type TableName string

TableName - Authorized name for form group

const (
	TableDefaultName TableName = "Table"
)

values for TableName

func (TableName) CodeValues

func (tablename TableName) CodeValues() (res []string)

func (TableName) Codes

func (tablename TableName) Codes() (res []string)

func (*TableName) FromCodeString

func (tablename *TableName) FromCodeString(input string) (err error)

func (*TableName) FromString

func (tablename *TableName) FromString(input string) (err error)

func (*TableName) ToCodeString

func (tablename *TableName) ToCodeString() (res string)

func (TableName) ToString

func (tablename TableName) ToString() (res string)

Utility function for TableName if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value

type TableOrchestrator

type TableOrchestrator struct {
}

TableOrchestrator

func (*TableOrchestrator) OnAfterUpdate

func (orchestrator *TableOrchestrator) OnAfterUpdate(
	gongsvgStage *Stage,
	stagedTable, backRepoTable *Table)

type TableTestNameEnum

type TableTestNameEnum string

TableTestNameEnum - Authorized name for form group

const (
	ManualyEditedTableStackName TableTestNameEnum = "manualy edited table"
	ManualyEditedFormStackName  TableTestNameEnum = "manualy edited form"
	GeneratedTableStackName     TableTestNameEnum = "generated table"
)

values for TableTestNameEnum

func (TableTestNameEnum) CodeValues

func (tabletestnameenum TableTestNameEnum) CodeValues() (res []string)

func (TableTestNameEnum) Codes

func (tabletestnameenum TableTestNameEnum) Codes() (res []string)

func (*TableTestNameEnum) FromCodeString

func (tabletestnameenum *TableTestNameEnum) FromCodeString(input string) (err error)

func (*TableTestNameEnum) FromString

func (tabletestnameenum *TableTestNameEnum) FromString(input string) (err error)

func (*TableTestNameEnum) ToCodeString

func (tabletestnameenum *TableTestNameEnum) ToCodeString() (res string)

func (TableTestNameEnum) ToString

func (tabletestnameenum TableTestNameEnum) ToString() (res string)

Utility function for TableTestNameEnum if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value

type Table_WOP

type Table_WOP struct {
	Name string

	HasFiltering bool

	HasColumnSorting bool

	HasPaginator bool

	HasCheckableRows bool

	HasSaveButton bool

	SaveButtonLabel string

	CanDragDropRows bool

	HasCloseButton bool

	SavingInProgress bool

	NbOfStickyColumns int
}

type Tabulator

type Tabulator interface {
	AddSheet(sheetName string)
	AddRow(sheetName string) int
	AddCell(sheetName string, rowId, columnIndex int, value string)
}

Tabulator is an interface for writing to a table strings

Jump to

Keyboard shortcuts

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