File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
client/src/elements/schema-editor Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ < template class ="schema-editor-input ${showNotifications ? 'schema-editor-input--with-notifications' : ''} ">
2
+ < label >
3
+ ${schema["title"] & toolT}
4
+ < span show.bind ="required ">
5
+ < span > - </ span >
6
+ < span style ="color: var(--q-color-error) "> ${'editor.required' & t}</ span >
7
+ </ span >
8
+ < input type ="time " required.bind ="required " value.bind ="data ">
9
+ </ label >
10
+ </ template >
Original file line number Diff line number Diff line change
1
+ import { bindable } from "aurelia-framework" ;
2
+
3
+ export class SchemaEditorTime {
4
+ @bindable
5
+ data ;
6
+ @bindable
7
+ schema ;
8
+ @bindable
9
+ change ;
10
+ @bindable
11
+ required ;
12
+ @bindable
13
+ showNotifications ;
14
+
15
+ options = {
16
+ step : "any"
17
+ } ;
18
+
19
+ schemaChanged ( ) {
20
+ this . applyOptions ( ) ;
21
+ }
22
+
23
+ applyOptions ( ) {
24
+ if ( ! this . schema ) {
25
+ return ;
26
+ }
27
+ if ( this . schema . hasOwnProperty ( "Q:options" ) ) {
28
+ this . options = Object . assign ( this . options , this . schema [ "Q:options" ] ) ;
29
+ }
30
+ }
31
+ }
Original file line number Diff line number Diff line change 209
209
> </ schema-editor-files >
210
210
</ div >
211
211
212
+ < div if.bind ="getType(schema) === 'time' " class ="schema-editor-block ">
213
+ < require from ="./schema-editor-time "> </ require >
214
+ < schema-editor-time
215
+ schema.bind ="schema "
216
+ data.two-way ="data "
217
+ change.bind ="change "
218
+ required.bind ="required "
219
+ show-notifications.bind ="showNotifications "
220
+ > </ schema-editor-time >
221
+ </ div >
222
+
212
223
< div if.bind ="getType(schema) === 'dialog' " class ="schema-editor-block ">
213
224
< require from ="./schema-editor-dialog "> </ require >
214
225
< schema-editor-dialog
You can’t perform that action at this time.
0 commit comments