@@ -30,27 +30,27 @@ private Task OnCompletedAsync(string? val)
3030 /// <returns></returns>
3131 protected AttributeItem [ ] GetAttributes ( ) =>
3232 [
33- //new()
34- //{
35- // Name = nameof(BarcodeGenerator.Type),
36- // Description = Localizer[nameof(BarcodeGenerator.Type)].Value,
37- // Type = "EnumBarcodeType",
38- // ValueList = "CODE128 / CODE128A / CODE128B / CODE128C / EAN13 / EAN8 / EAN5 / EAN2 / UPC / CODE39 / ITF14 / ITF / MSI / MSI10 / MSI11 / MSI1010 / MSI1110 / Pharmacode",
39- // DefaultValue = "'auto' (CODE128)"
40- //},
4133 new ( )
4234 {
4335 Name = nameof ( BarcodeGenerator . Value ) ,
44- Description = Localizer [ nameof ( BarcodeGenerator . Value ) ] . Value ,
36+ Description = Localizer [ nameof ( BarcodeGenerator . Value ) ] ,
4537 Type = "string" ,
4638 ValueList = " — " ,
4739 DefaultValue = " — "
4840 } ,
4941 new ( )
5042 {
5143 Name = nameof ( BarcodeGenerator . Options ) ,
52- Description = Localizer [ nameof ( BarcodeGenerator . Options ) ] . Value ,
53- Type = "BarcodeGeneratorOption" ,
44+ Description = Localizer [ nameof ( BarcodeGenerator . Options ) ] ,
45+ Type = nameof ( BarcodeGeneratorOption ) ,
46+ ValueList = " — " ,
47+ DefaultValue = " — "
48+ } ,
49+ new ( )
50+ {
51+ Name = nameof ( BarcodeGenerator . OnCompletedAsync ) ,
52+ Description = Localizer [ nameof ( BarcodeGenerator . OnCompletedAsync ) ] ,
53+ Type = "Func<string?, Task>" ,
5454 ValueList = " — " ,
5555 DefaultValue = " — "
5656 }
@@ -66,9 +66,9 @@ protected AttributeItem[] GetOptionsAttributes() =>
6666 {
6767 Name = nameof ( BarcodeGeneratorOption . Format ) ,
6868 Description = Localizer [ nameof ( BarcodeGeneratorOption . Format ) ] ,
69- Type = "EnumBarcodeType" ,
70- ValueList = "CODE128 / CODE128A / CODE128B / CODE128C / EAN13 / EAN8 / EAN5 / EAN2 / UPC / CODE39 / ITF14 / ITF / MSI / MSI10 / MSI11 / MSI1010 / MSI1110 / Pharmacode " ,
71- DefaultValue = "'auto' ( CODE128) "
69+ Type = nameof ( EnumBarcodeFormat ) ,
70+ ValueList = " — " ,
71+ DefaultValue = "CODE128"
7272 } ,
7373 new ( )
7474 {
@@ -106,33 +106,33 @@ protected AttributeItem[] GetOptionsAttributes() =>
106106 {
107107 Name = nameof ( BarcodeGeneratorOption . FontOptions ) ,
108108 Description = Localizer [ nameof ( BarcodeGeneratorOption . FontOptions ) ] ,
109- Type = "EnumBarcodeFontOption" ,
110- ValueList = "normal / bold / italic / bold italic " ,
111- DefaultValue = "2 "
109+ Type = nameof ( EnumBarcodeTextFontOption ) ,
110+ ValueList = " — " ,
111+ DefaultValue = " — "
112112 } ,
113113 new ( )
114114 {
115115 Name = nameof ( BarcodeGeneratorOption . Font ) ,
116116 Description = Localizer [ nameof ( BarcodeGeneratorOption . Font ) ] ,
117- Type = "EnumBarcodeFont" ,
118- ValueList = "Monospace / SansSerif / Serif / Fantasy / Cursive " ,
119- DefaultValue = "Monospace "
117+ Type = nameof ( EnumBarcodeTextFont ) ,
118+ ValueList = " — " ,
119+ DefaultValue = " — "
120120 } ,
121121 new ( )
122122 {
123123 Name = nameof ( BarcodeGeneratorOption . TextAlign ) ,
124124 Description = Localizer [ nameof ( BarcodeGeneratorOption . TextAlign ) ] ,
125- Type = " EnumBarcodeTextAlign" ,
126- ValueList = "left / center / right " ,
127- DefaultValue = "center "
125+ Type = nameof ( EnumBarcodeTextAlign ) ,
126+ ValueList = " — " ,
127+ DefaultValue = " — "
128128 } ,
129129 new ( )
130130 {
131131 Name = nameof ( BarcodeGeneratorOption . TextPosition ) ,
132132 Description = Localizer [ nameof ( BarcodeGeneratorOption . TextPosition ) ] ,
133- Type = "EnumTextPosition" ,
134- ValueList = "bottom / top " ,
135- DefaultValue = "bottom "
133+ Type = nameof ( EnumBarcodeTextPosition ) ,
134+ ValueList = " — " ,
135+ DefaultValue = " — "
136136 } ,
137137 new ( )
138138 {
0 commit comments