11import { AbstractInputField } from './AbstractInputField' ;
22import { DropdownComponent , TextComponent } from 'obsidian' ;
33import { InputFieldMarkdownRenderChild } from '../InputFieldMarkdownRenderChild' ;
4- import { Date , DateFormat , DateParser } from '../Parsers /DateParser' ;
4+ import { Date , DateFormat , DateParser } from '../parsers /DateParser' ;
55
66export class DateInputField extends AbstractInputField {
77 container : HTMLDivElement ;
@@ -72,7 +72,7 @@ export class DateInputField extends AbstractInputField {
7272 console . log ( this . date ) ;
7373
7474 container . removeClass ( 'meta-bind-plugin-input-wrapper' ) ;
75- container . addClass ( 'meta-bind-plugin-flex-input-wrapper' ) ;
75+ container . addClass ( 'meta-bind-plugin-flex-input-wrapper' , 'meta-bind-plugin-input-element-group' ) ;
7676
7777 if ( DateParser . dateFormat === DateFormat . EU ) {
7878 this . dayComponent = new DropdownComponent ( container ) ;
@@ -85,8 +85,8 @@ export class DateInputField extends AbstractInputField {
8585 this . monthComponent . setValue ( this . date . getMonth ( ) . toString ( ) ) ;
8686 this . monthComponent . onChange ( this . onMonthChange . bind ( this ) ) ;
8787
88- this . dayComponent . selectEl . addClass ( 'meta-bind-plugin-date- input-left-input ' ) ;
89- this . monthComponent . selectEl . addClass ( 'meta-bind-plugin-date- input-middle-input ' ) ;
88+ this . dayComponent . selectEl . addClass ( 'meta-bind-plugin-input-element-group-element ' ) ;
89+ this . monthComponent . selectEl . addClass ( 'meta-bind-plugin-input-element-group-element ' ) ;
9090 } else {
9191 this . monthComponent = new DropdownComponent ( container ) ;
9292 this . monthComponent . addOptions ( this . months ) ;
@@ -98,15 +98,16 @@ export class DateInputField extends AbstractInputField {
9898 this . dayComponent . setValue ( this . date . getDay ( ) . toString ( ) ) ;
9999 this . dayComponent . onChange ( this . onDayChange . bind ( this ) ) ;
100100
101- this . dayComponent . selectEl . addClass ( 'meta-bind-plugin-date- input-middle-input ' ) ;
102- this . monthComponent . selectEl . addClass ( 'meta-bind-plugin-date- input-left-input ' ) ;
101+ this . dayComponent . selectEl . addClass ( 'meta-bind-plugin-input-element-group-element ' ) ;
102+ this . monthComponent . selectEl . addClass ( 'meta-bind-plugin-input-element-group-element ' ) ;
103103 }
104104
105105 this . yearComponent = new TextComponent ( container ) ;
106106 this . yearComponent . setValue ( this . date . getYear ( ) . toString ( ) ) ;
107107 this . yearComponent . onChange ( this . onYearChange . bind ( this ) ) ;
108108
109109 this . yearComponent . inputEl . addClass ( 'meta-bind-plugin-date-input-year-input' ) ;
110+ this . yearComponent . inputEl . addClass ( 'meta-bind-plugin-input-element-group-element' ) ;
110111 this . yearComponent . inputEl . type = 'number' ;
111112 this . yearComponent . inputEl . max = '9999' ;
112113
0 commit comments