@@ -25,7 +25,7 @@ import {
2525import { ViewFieldFactory } from '../fields/viewFields/ViewFieldFactory' ;
2626import { getUUID } from '../utils/Utils' ;
2727import { parsePropPath } from '../utils/prop/PropParser' ;
28- import { RenderChildType } from '../config/FieldConfigs' ;
28+ import { type RenderChildType } from '../config/FieldConfigs' ;
2929import { type ButtonActionRunner } from '../fields/button/ButtonActionRunner' ;
3030import { ButtonManager } from '../fields/button/ButtonManager' ;
3131import { type BindTargetDeclaration , BindTargetStorageType } from '../parsers/bindTargetParser/BindTargetDeclaration' ;
@@ -118,7 +118,7 @@ export class API implements IAPI {
118118
119119 const declaration = this . inputFieldParser . validateDeclaration ( unvalidatedDeclaration , filePath , scope ) ;
120120
121- const inputField = new InputFieldMDRC ( containerEl , renderType , declaration , this . plugin , filePath , getUUID ( ) ) ;
121+ const inputField = new InputFieldMDRC ( this . plugin , filePath , containerEl , renderType , declaration ) ;
122122 component . addChild ( inputField ) ;
123123
124124 return inputField ;
@@ -158,7 +158,7 @@ export class API implements IAPI {
158158
159159 const declaration : InputFieldDeclaration = this . inputFieldParser . parseString ( fullDeclaration , filePath , scope ) ;
160160
161- const inputField = new InputFieldMDRC ( containerEl , renderType , declaration , this . plugin , filePath , getUUID ( ) ) ;
161+ const inputField = new InputFieldMDRC ( this . plugin , filePath , containerEl , renderType , declaration ) ;
162162 component . addChild ( inputField ) ;
163163
164164 return inputField ;
@@ -198,7 +198,7 @@ export class API implements IAPI {
198198
199199 const declaration : ViewFieldDeclaration = this . viewFieldParser . parseString ( fullDeclaration , filePath , scope ) ;
200200
201- const viewField = new ViewFieldMDRC ( containerEl , renderType , declaration , this . plugin , filePath , getUUID ( ) ) ;
201+ const viewField = new ViewFieldMDRC ( this . plugin , filePath , containerEl , renderType , declaration ) ;
202202 component . addChild ( viewField ) ;
203203
204204 return viewField ;
@@ -235,7 +235,7 @@ export class API implements IAPI {
235235
236236 const declaration : JsViewFieldDeclaration = this . viewFieldParser . parseJsString ( fullDeclaration , filePath ) ;
237237
238- const viewField = new JsViewFieldMDRC ( containerEl , renderType , declaration , this . plugin , filePath , getUUID ( ) ) ;
238+ const viewField = new JsViewFieldMDRC ( this . plugin , filePath , containerEl , renderType , declaration ) ;
239239 component . addChild ( viewField ) ;
240240
241241 return viewField ;
@@ -251,7 +251,7 @@ export class API implements IAPI {
251251 public createExcludedField ( containerEl : HTMLElement , filePath : string , component : ComponentLike ) : ExcludedMDRC {
252252 validateArgs ( V_API_createExcludedField , [ containerEl , filePath , component ] ) ;
253253
254- const excludedField = new ExcludedMDRC ( containerEl , RenderChildType . INLINE , this . plugin , filePath , getUUID ( ) ) ;
254+ const excludedField = new ExcludedMDRC ( this . plugin , filePath , containerEl ) ;
255255 component . addChild ( excludedField ) ;
256256
257257 return excludedField ;
@@ -318,16 +318,7 @@ export class API implements IAPI {
318318 ) : MetaBindTable {
319319 validateArgs ( V_API_createTable , [ containerEl , filePath , component , bindTarget , tableHead , columns ] ) ;
320320
321- const table = new MetaBindTable (
322- containerEl ,
323- RenderChildType . INLINE ,
324- this . plugin ,
325- filePath ,
326- getUUID ( ) ,
327- bindTarget ,
328- tableHead ,
329- columns ,
330- ) ;
321+ const table = new MetaBindTable ( this . plugin , filePath , containerEl , bindTarget , tableHead , columns ) ;
331322 component . addChild ( table ) ;
332323
333324 return table ;
@@ -351,7 +342,7 @@ export class API implements IAPI {
351342 return this . createExcludedField ( containerEl , filePath , component ) ;
352343 }
353344
354- const button = new ButtonMDRC ( containerEl , fullDeclaration , this . plugin , filePath , getUUID ( ) , false ) ;
345+ const button = new ButtonMDRC ( this . plugin , filePath , containerEl , fullDeclaration , false ) ;
355346 component . addChild ( button ) ;
356347
357348 return button ;
@@ -369,7 +360,7 @@ export class API implements IAPI {
369360 return this . createExcludedField ( containerEl , filePath , component ) ;
370361 }
371362
372- const button = new InlineButtonMDRC ( containerEl , fullDeclaration , this . plugin , filePath , getUUID ( ) ) ;
363+ const button = new InlineButtonMDRC ( this . plugin , filePath , containerEl , fullDeclaration ) ;
373364 component . addChild ( button ) ;
374365
375366 return button ;
0 commit comments