@ -36,7 +36,10 @@
< sqx-toggle [ formControl ] = " editorControl " [ threeStates ] = " ! field . properties . isRequired " > < / sqx-toggle >
< / ng-container >
< ng-container * ngSwitchCase = "'Checkbox'" >
< input type = "checkbox" [ formControl ] = " editorControl " class = "form-check" sqxIndeterminateValue / >
< div class = "custom-control custom-checkbox" >
< input class = "custom-control-input" type = "checkbox" [ formControl ] = " editorControl " id = "{{uniqueId}}" sqxIndeterminateValue >
< label class = "custom-control-label" for = "{{uniqueId}}" > < / label >
< / div >
< / ng-container >
< / ng-container >
< / ng-container >
@ -52,21 +55,21 @@
< ng-container * ngSwitchCase = "'Number'" >
< ng-container [ ngSwitch ] = " field . rawProperties . editor " >
< ng-container * ngSwitchCase = "'Input'" >
< input class = "form-control" type = "number" [ formControl ] = " editorControl " [ placeholder ] = " field . displayPlaceholder " / >
< input class = "form-control" type = "number" [ formControl ] = " editorControl " [ placeholder ] = " field . displayPlaceholder " >
< / ng-container >
< ng-container * ngSwitchCase = "'Stars'" >
< sqx-stars [ formControl ] = " editorControl " [ maximumStars ] = " field . rawProperties . maxValue " > < / sqx-stars >
< / ng-container >
< ng-container * ngSwitchCase = "'Dropdown'" >
< select class = "form-control " [ formControl ] = " editorControl " >
< select class = "custom-select " [ formControl ] = " editorControl " >
< option [ ngValue ] = " null " > < / option >
< option * ngFor = "let value of field.rawProperties.allowedValues" [ ngValue ] = " value " > {{value}}< / option >
< / select >
< / ng-container >
< ng-container * ngSwitchCase = "'Radio'" >
< div class = "form-check form-check -inline" * ngFor = "let value of field.rawProperties.allowedValues" >
< input class = "form-check -input" type = "radio" [ value ] = " value " [ formControl ] = " editorControl " [ name ] = " uniqueId " / >
< label class = "form-check-label " >
< div class = "custom-control custom-radio custom-control -inline" * ngFor = "let value of field.rawProperties.allowedValues" >
< input class = "custom-control -input" type = "radio" [ value ] = " value " [ formControl ] = " editorControl " [ name ] = " uniqueId " id = "{{uniqueId}}_{{value}}" >
< label class = "custom-control-label" for = "{{uniqueId}}_{{value}} " >
{{value}}
< / label >
< / div >
@ -110,10 +113,10 @@
< ng-container * ngSwitchCase = "'String'" >
< ng-container [ ngSwitch ] = " field . rawProperties . editor " >
< ng-container * ngSwitchCase = "'Input'" >
< input class = "form-control" type = "text" [ formControl ] = " editorControl " [ placeholder ] = " field . displayPlaceholder " / >
< input class = "form-control" type = "text" [ formControl ] = " editorControl " [ placeholder ] = " field . displayPlaceholder " >
< / ng-container >
< ng-container * ngSwitchCase = "'Slug'" >
< input class = "form-control" type = "text" [ formControl ] = " editorControl " [ placeholder ] = " field . displayPlaceholder " sqxTransformInput = "Slugify" / >
< input class = "form-control" type = "text" [ formControl ] = " editorControl " [ placeholder ] = " field . displayPlaceholder " sqxTransformInput = "Slugify" >
< / ng-container >
< ng-container * ngSwitchCase = "'TextArea'" >
< textarea class = "form-control" [ formControl ] = " editorControl " rows = "5" [ placeholder ] = " field . displayPlaceholder " > < / textarea >
@ -131,15 +134,15 @@
< sqx-stock-photo-editor [ formControl ] = " editorControl " > < / sqx-stock-photo-editor >
< / ng-container >
< ng-container * ngSwitchCase = "'Dropdown'" >
< select class = "form-control " [ formControl ] = " editorControl " >
< select class = "custom-select " [ formControl ] = " editorControl " >
< option [ ngValue ] = " null " > < / option >
< option * ngFor = "let value of field.rawProperties.allowedValues" [ ngValue ] = " value " > {{value}}< / option >
< / select >
< / ng-container >
< ng-container * ngSwitchCase = "'Radio'" >
< div class = "form-check form-check -inline" * ngFor = "let value of field.rawProperties.allowedValues" >
< input class = "form-check -input" type = "radio" value = "{{value}} " [ formControl ] = " editorControl " [ name ] = " uniqueId " / >
< label class = "form-check-label " >
< div class = "custom-control custom-radio custom-control -inline" * ngFor = "let value of field.rawProperties.allowedValues" >
< input class = "custom-control -input" type = "radio" [ value ] = " value " [ formControl ] = " editorControl " [ name ] = " uniqueId " id = "{{uniqueId}}_{{value}}" >
< label class = "custom-control-label" for = "{{uniqueId}}_{{value}} " >
{{value}}
< / label >
< / div >
@ -158,7 +161,7 @@
< sqx-checkbox-group [ formControl ] = " editorControl " [ values ] = " field . rawProperties . allowedValues " > < / sqx-checkbox-group >
< / ng-container >
< ng-container * ngSwitchCase = "'Dropdown'" >
< select multiple class = "form-control " [ formControl ] = " editorControl " >
< select multiple class = "custom-select " [ formControl ] = " editorControl " >
< option * ngFor = "let value of field.rawProperties.allowedValues" [ ngValue ] = " value " > {{value}}< / option >
< / select >
< / ng-container >