@simpleangularcontrols/sac-common 10.0.0-rc.29 → 10.0.0-rc.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/bundles/simpleangularcontrols-sac-common.umd.js +1848 -1249
  2. package/bundles/simpleangularcontrols-sac-common.umd.js.map +1 -1
  3. package/bundles/simpleangularcontrols-sac-common.umd.min.js +1 -1
  4. package/bundles/simpleangularcontrols-sac-common.umd.min.js.map +1 -1
  5. package/common/basedatetimecontrol.d.ts +47 -21
  6. package/common/baseinputcontrol.d.ts +10 -8
  7. package/common/baselistcontrol.d.ts +15 -15
  8. package/common/basemodelcontrol.d.ts +59 -43
  9. package/common/baseselectcontrol.d.ts +5 -5
  10. package/common/baseuploadcontrol.d.ts +77 -57
  11. package/components/browser/browser.d.ts +86 -89
  12. package/components/browser/models/browserfile.d.ts +6 -6
  13. package/components/browser/models/browserfiledeleterequest.d.ts +7 -7
  14. package/components/browser/models/browserfilerenamerequest.d.ts +10 -10
  15. package/components/browser/models/browserfileresponse.d.ts +2 -2
  16. package/components/browser/models/browserfilesaverequest.d.ts +7 -7
  17. package/components/browser/models/browsernode.d.ts +13 -13
  18. package/components/browser/models/browsernodedeleterequest.d.ts +6 -6
  19. package/components/browser/models/browsernodenewrequest.d.ts +7 -7
  20. package/components/browser/models/browsernoderenamerequest.d.ts +7 -7
  21. package/components/browser/models/browsernoderequest.d.ts +7 -7
  22. package/components/browser/models/browsernoderesponse.d.ts +1 -1
  23. package/controls/buttons/button.d.ts +25 -19
  24. package/controls/checkbox/checkbox.d.ts +3 -3
  25. package/controls/checkbox/radiobutton.d.ts +19 -13
  26. package/controls/checkbox/radiobuttons.d.ts +13 -10
  27. package/controls/confirm/confirm.button.d.ts +3 -3
  28. package/controls/confirm/confirm.d.ts +13 -12
  29. package/controls/confirm/confirm.service.d.ts +14 -14
  30. package/controls/contextmenu/contextmenu.d.ts +33 -27
  31. package/controls/contextmenu/contextmenu.interface.d.ts +6 -0
  32. package/controls/contextmenu/contextmenuanchor.d.ts +4 -4
  33. package/controls/contextmenu/contextmenucontainer.d.ts +4 -4
  34. package/controls/contextmenu/contextmenuitembutton.d.ts +12 -12
  35. package/controls/datetime/date.d.ts +11 -11
  36. package/controls/datetime/dateselector.d.ts +47 -40
  37. package/controls/datetime/datetime.d.ts +15 -14
  38. package/controls/datetime/time.d.ts +22 -12
  39. package/controls/dialog/dialog.d.ts +28 -22
  40. package/controls/form/form.d.ts +17 -12
  41. package/controls/grid/grid.d.ts +1 -0
  42. package/controls/grid/gridbutton.d.ts +1 -0
  43. package/controls/grid/gridcolumn.d.ts +5 -1
  44. package/controls/grid/gridcolumnaction.d.ts +1 -1
  45. package/controls/grid/gridcolumnbase.d.ts +8 -3
  46. package/controls/grid/model.d.ts +5 -2
  47. package/controls/grid/paging.d.ts +2 -3
  48. package/controls/input/input.d.ts +7 -7
  49. package/controls/input/inputarea.d.ts +8 -6
  50. package/controls/input/inputcurrency.d.ts +4 -1
  51. package/controls/input/inputdecimal.d.ts +14 -14
  52. package/controls/input/inputemail.d.ts +4 -4
  53. package/controls/input/inputinteger.d.ts +14 -14
  54. package/controls/input/inputpassword.d.ts +3 -3
  55. package/controls/input/inputsearch.d.ts +8 -5
  56. package/controls/layout/formlayout.d.ts +8 -5
  57. package/controls/list/buildvaluestring.d.ts +2 -2
  58. package/controls/list/dropdown.d.ts +23 -22
  59. package/controls/list/dropdownoptions.d.ts +10 -10
  60. package/controls/list/listbox.d.ts +25 -23
  61. package/controls/multilanguage/multilanguageinput.d.ts +25 -25
  62. package/controls/multilanguage/multilanguageinputarea.d.ts +27 -27
  63. package/controls/static/formcontainer.d.ts +8 -8
  64. package/controls/static/staticlabel.d.ts +5 -5
  65. package/controls/tabs/tab.d.ts +2 -2
  66. package/controls/tabs/tabitem.d.ts +7 -7
  67. package/controls/tinymce/tinymce.d.ts +37 -37
  68. package/controls/tinymce/tinymcedialogsettings.d.ts +6 -6
  69. package/controls/tinymce/tinymcedialogsettingsmeta.d.ts +2 -2
  70. package/controls/tinymce/tinymceinstance.d.ts +2 -2
  71. package/controls/tooltip/tooltip.d.ts +10 -5
  72. package/controls/treeview/treeview.d.ts +50 -5
  73. package/controls/upload/dropzonemultiple.d.ts +16 -16
  74. package/controls/upload/dropzonesingle.d.ts +11 -11
  75. package/controls/upload/uploadmultiple.d.ts +12 -12
  76. package/controls/upload/uploadsingle.d.ts +7 -7
  77. package/controls/validation/validationsummary.d.ts +12 -11
  78. package/controls/wizard/wizard.d.ts +25 -18
  79. package/controls/wizard/wizarditem.d.ts +5 -5
  80. package/enums/ButtonRoleType.d.ts +26 -1
  81. package/enums/ControlHeight.d.ts +1 -1
  82. package/enums/IconType.d.ts +1 -1
  83. package/esm2015/common/basedatetimecontrol.js +47 -22
  84. package/esm2015/common/baseinputcontrol.js +13 -11
  85. package/esm2015/common/baselistcontrol.js +21 -17
  86. package/esm2015/common/basemodelcontrol.js +72 -49
  87. package/esm2015/common/baseselectcontrol.js +11 -9
  88. package/esm2015/common/baseuploadcontrol.js +69 -49
  89. package/esm2015/components/browser/browser.js +93 -105
  90. package/esm2015/components/browser/models/browserfile.js +1 -1
  91. package/esm2015/components/browser/models/browserfiledeleterequest.js +6 -4
  92. package/esm2015/components/browser/models/browserfilerenamerequest.js +6 -4
  93. package/esm2015/components/browser/models/browserfileresponse.js +1 -1
  94. package/esm2015/components/browser/models/browserfilesaverequest.js +5 -3
  95. package/esm2015/components/browser/models/browsernode.js +1 -1
  96. package/esm2015/components/browser/models/browsernodedeleterequest.js +6 -4
  97. package/esm2015/components/browser/models/browsernodenewrequest.js +6 -4
  98. package/esm2015/components/browser/models/browsernoderenamerequest.js +6 -4
  99. package/esm2015/components/browser/models/browsernoderequest.js +6 -4
  100. package/esm2015/components/browser/models/browsernoderesponse.js +1 -1
  101. package/esm2015/controls/buttons/button.js +26 -20
  102. package/esm2015/controls/checkbox/checkbox.js +3 -3
  103. package/esm2015/controls/checkbox/radiobutton.js +21 -15
  104. package/esm2015/controls/checkbox/radiobuttons.js +14 -11
  105. package/esm2015/controls/confirm/confirm.button.js +4 -4
  106. package/esm2015/controls/confirm/confirm.js +14 -13
  107. package/esm2015/controls/confirm/confirm.service.js +21 -21
  108. package/esm2015/controls/contextmenu/contextmenu.interface.js +1 -1
  109. package/esm2015/controls/contextmenu/contextmenu.js +29 -23
  110. package/esm2015/controls/contextmenu/contextmenuanchor.js +4 -4
  111. package/esm2015/controls/contextmenu/contextmenucontainer.js +4 -4
  112. package/esm2015/controls/contextmenu/contextmenuitembutton.js +10 -10
  113. package/esm2015/controls/datetime/date.js +13 -13
  114. package/esm2015/controls/datetime/dateselector.js +55 -54
  115. package/esm2015/controls/datetime/datetime.js +17 -16
  116. package/esm2015/controls/datetime/time.js +24 -14
  117. package/esm2015/controls/dialog/dialog.js +31 -24
  118. package/esm2015/controls/form/form.js +18 -13
  119. package/esm2015/controls/grid/grid.js +2 -1
  120. package/esm2015/controls/grid/gridbutton.js +2 -1
  121. package/esm2015/controls/grid/gridcolumn.js +6 -2
  122. package/esm2015/controls/grid/gridcolumnaction.js +2 -2
  123. package/esm2015/controls/grid/gridcolumnbase.js +9 -4
  124. package/esm2015/controls/grid/model.js +5 -2
  125. package/esm2015/controls/grid/paging.js +6 -7
  126. package/esm2015/controls/input/input.js +8 -8
  127. package/esm2015/controls/input/inputarea.js +9 -7
  128. package/esm2015/controls/input/inputcurrency.js +6 -3
  129. package/esm2015/controls/input/inputdecimal.js +21 -27
  130. package/esm2015/controls/input/inputemail.js +5 -5
  131. package/esm2015/controls/input/inputinteger.js +19 -23
  132. package/esm2015/controls/input/inputpassword.js +4 -4
  133. package/esm2015/controls/input/inputsearch.js +9 -6
  134. package/esm2015/controls/layout/formlayout.js +10 -7
  135. package/esm2015/controls/list/buildvaluestring.js +6 -6
  136. package/esm2015/controls/list/dropdown.js +28 -27
  137. package/esm2015/controls/list/dropdownoptions.js +12 -12
  138. package/esm2015/controls/list/listbox.js +26 -24
  139. package/esm2015/controls/multilanguage/multilanguageinput.js +29 -29
  140. package/esm2015/controls/multilanguage/multilanguageinputarea.js +31 -31
  141. package/esm2015/controls/static/formcontainer.js +10 -10
  142. package/esm2015/controls/static/staticlabel.js +7 -7
  143. package/esm2015/controls/tabs/tab.js +2 -2
  144. package/esm2015/controls/tabs/tabitem.js +5 -5
  145. package/esm2015/controls/tinymce/tinymce.js +35 -35
  146. package/esm2015/controls/tinymce/tinymcedialogsettings.js +4 -4
  147. package/esm2015/controls/tinymce/tinymcedialogsettingsmeta.js +1 -1
  148. package/esm2015/controls/tinymce/tinymceinstance.js +1 -1
  149. package/esm2015/controls/tooltip/tooltip.js +13 -8
  150. package/esm2015/controls/treeview/treeview.js +52 -7
  151. package/esm2015/controls/upload/dropzonemultiple.js +18 -18
  152. package/esm2015/controls/upload/dropzonesingle.js +12 -12
  153. package/esm2015/controls/upload/uploadmultiple.js +14 -14
  154. package/esm2015/controls/upload/uploadsingle.js +8 -8
  155. package/esm2015/controls/validation/validationsummary.js +14 -13
  156. package/esm2015/controls/wizard/wizard.js +24 -17
  157. package/esm2015/controls/wizard/wizarditem.js +4 -4
  158. package/esm2015/enums/ButtonRoleType.js +1 -1
  159. package/esm2015/enums/ControlHeight.js +2 -2
  160. package/esm2015/enums/IconType.js +2 -2
  161. package/esm2015/interfaces/ISacConfigurationService.js +1 -1
  162. package/esm2015/interfaces/ISacFileBrowserService.js +1 -1
  163. package/esm2015/interfaces/ISacLabelSizes.js +1 -1
  164. package/esm2015/interfaces/ISacLanguageService.js +1 -1
  165. package/esm2015/interfaces/ISacLocalisationService.js +1 -1
  166. package/esm2015/interfaces/ISacUploadEventCompleteState.js +1 -1
  167. package/esm2015/interfaces/iabstractcontrollabel.js +1 -1
  168. package/esm2015/interfaces/iconfirmcomponent.js +1 -1
  169. package/esm2015/interfaces/idatetimecontrol.js +1 -1
  170. package/esm2015/interfaces/iuploadcontrol.js +1 -1
  171. package/esm2015/interfaces/treeviewaction.interface.js +1 -1
  172. package/esm2015/models/languagemodel.js +5 -3
  173. package/esm2015/public_api.js +3 -2
  174. package/esm2015/services/index.js +4 -4
  175. package/esm2015/services/sac-configuration.service.js +7 -1
  176. package/esm2015/services/sac-filebrowser.service.js +46 -38
  177. package/esm2015/services/sac-localisation.service.js +11 -7
  178. package/esm2015/services/sac-validationkey.service.js +148 -1
  179. package/esm2015/utilities/convertion.js +7 -5
  180. package/esm2015/utilities/datatypes.js +6 -4
  181. package/esm2015/utilities/enums.js +9 -8
  182. package/esm2015/utilities/guid.js +2 -2
  183. package/esm2015/utilities/interpolation.js +16 -9
  184. package/esm2015/utilities/popuphelper.js +62 -25
  185. package/esm2015/utilities/positioncalculator.js +209 -0
  186. package/esm2015/utilities/positioncalculator.ngfactory.js +7 -0
  187. package/esm2015/utilities/positionelements.js +108 -0
  188. package/esm2015/utilities/positionelements.ngfactory.js +7 -0
  189. package/esm2015/utilities/testingattribute.pipe.js +17 -2
  190. package/esm2015/validation/email.validator.js +11 -2
  191. package/esm2015/validation/equals.validator.js +11 -1
  192. package/esm2015/validation/index.js +1 -1
  193. package/esm2015/validation/invaliddate.validator.js +11 -2
  194. package/esm2015/validation/isDateValid.js +11 -10
  195. package/esm2015/validation/maxdate.validator.js +14 -4
  196. package/esm2015/validation/maxtime.validator.js +14 -4
  197. package/esm2015/validation/maxvalue.validator.js +12 -2
  198. package/esm2015/validation/mindate.validator.js +14 -4
  199. package/esm2015/validation/minfiles.validator.js +12 -2
  200. package/esm2015/validation/mintextlength.validator.js +9 -1
  201. package/esm2015/validation/mintime.validator.js +14 -4
  202. package/esm2015/validation/minvalue.validator.js +12 -2
  203. package/esm2015/validation/multilanguagerequired.validator.js +11 -1
  204. package/esm2015/validation/multilanguagerequiredany.validator.js +11 -1
  205. package/esm2015/validation/notequals.validator.js +11 -1
  206. package/esm2015/validation/pattern.validator.js +12 -2
  207. package/esm2015/validation/required.validator.js +11 -2
  208. package/esm2015/validation/validation.class.js +84 -101
  209. package/esm2015/validation/validationerrorcreator.js +12 -1
  210. package/esm2015/validation/validationerroritem.js +11 -9
  211. package/fesm2015/simpleangularcontrols-sac-common.js +1823 -1226
  212. package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -1
  213. package/interfaces/ISacConfigurationService.d.ts +9 -1
  214. package/interfaces/ISacFileBrowserService.d.ts +43 -43
  215. package/interfaces/ISacLabelSizes.d.ts +15 -12
  216. package/interfaces/ISacLanguageService.d.ts +3 -3
  217. package/interfaces/ISacLocalisationService.d.ts +2 -2
  218. package/interfaces/ISacUploadEventCompleteState.d.ts +6 -0
  219. package/interfaces/iabstractcontrollabel.d.ts +4 -1
  220. package/interfaces/iconfirmcomponent.d.ts +6 -6
  221. package/interfaces/idatetimecontrol.d.ts +10 -1
  222. package/interfaces/treeviewaction.interface.d.ts +9 -0
  223. package/models/languagemodel.d.ts +9 -9
  224. package/package.json +1 -1
  225. package/public_api.d.ts +2 -1
  226. package/services/index.d.ts +3 -3
  227. package/services/sac-configuration.service.d.ts +8 -0
  228. package/services/sac-filebrowser.service.d.ts +78 -70
  229. package/services/sac-localisation.service.d.ts +11 -7
  230. package/services/sac-validationkey.service.d.ts +147 -0
  231. package/simpleangularcontrols-sac-common-10.0.0-rc.30.tgz +0 -0
  232. package/simpleangularcontrols-sac-common.metadata.json +1 -1
  233. package/utilities/convertion.d.ts +4 -4
  234. package/utilities/datatypes.d.ts +3 -3
  235. package/utilities/enums.d.ts +8 -1
  236. package/utilities/guid.d.ts +1 -1
  237. package/utilities/interpolation.d.ts +9 -8
  238. package/utilities/popuphelper.d.ts +47 -10
  239. package/utilities/positioncalculator.d.ts +82 -0
  240. package/utilities/positionelements.d.ts +30 -0
  241. package/utilities/positionelements.ngfactory.d.ts +1 -0
  242. package/utilities/testingattribute.pipe.d.ts +16 -1
  243. package/validation/email.validator.d.ts +7 -0
  244. package/validation/equals.validator.d.ts +8 -0
  245. package/validation/invaliddate.validator.d.ts +7 -0
  246. package/validation/isDateValid.d.ts +5 -2
  247. package/validation/maxdate.validator.d.ts +8 -0
  248. package/validation/maxtime.validator.d.ts +8 -0
  249. package/validation/maxvalue.validator.d.ts +8 -0
  250. package/validation/mindate.validator.d.ts +8 -0
  251. package/validation/minfiles.validator.d.ts +8 -0
  252. package/validation/mintextlength.validator.d.ts +8 -0
  253. package/validation/mintime.validator.d.ts +8 -0
  254. package/validation/minvalue.validator.d.ts +8 -0
  255. package/validation/multilanguagerequired.validator.d.ts +9 -1
  256. package/validation/multilanguagerequiredany.validator.d.ts +9 -1
  257. package/validation/notequals.validator.d.ts +8 -0
  258. package/validation/pattern.validator.d.ts +8 -0
  259. package/validation/required.validator.d.ts +7 -0
  260. package/validation/validation.class.d.ts +83 -100
  261. package/validation/validationerrorcreator.d.ts +9 -0
  262. package/validation/validationerroritem.d.ts +16 -16
  263. package/esm2015/utilities/positioning.js +0 -301
  264. package/esm2015/utilities/positioning.ngfactory.js +0 -7
  265. package/simpleangularcontrols-sac-common-10.0.0-rc.29.tgz +0 -0
  266. package/utilities/positioning.d.ts +0 -82
  267. /package/utilities/{positioning.ngfactory.d.ts → positioncalculator.ngfactory.d.ts} +0 -0
@@ -7,21 +7,21 @@ import { AbstractControl, ValidationErrors } from '@angular/forms';
7
7
  import { UploadState, UploadxService } from 'ngx-uploadx';
8
8
  import { Observable } from 'rxjs';
9
9
  /**
10
- * Base Klasse für Uploader Control
10
+ * Base class for uploader control
11
11
  */
12
12
  export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<VALUE> implements OnInit, OnDestroy {
13
13
  private renderer;
14
14
  private ngZone;
15
15
  /**
16
- * Erlaubte Dateitypen
16
+ * Allowed file types
17
17
  */
18
18
  private _allowedtypes;
19
19
  /**
20
- * Files automatisch hochladen
20
+ * Automatically uploads files
21
21
  */
22
22
  private _autoupload;
23
23
  /**
24
- * Pausieren von Uploads erlauben
24
+ * Allow pausing of uploads
25
25
  */
26
26
  private _enablepause;
27
27
  /**
@@ -45,15 +45,15 @@ export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<V
45
45
  */
46
46
  protected uploadService: UploadxService;
47
47
  /**
48
- * Handling von neuen Files im Input Control
48
+ * Handling of new files in the input control
49
49
  */
50
50
  fileListener: () => void;
51
51
  /**
52
- * Definiert das Control als Required
52
+ * Defines the control as required
53
53
  */
54
54
  isrequired: boolean;
55
55
  /**
56
- * Listener für Files
56
+ * Listener for files
57
57
  */
58
58
  listenerFn: () => void;
59
59
  /**
@@ -61,7 +61,7 @@ export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<V
61
61
  */
62
62
  lngResourceService: ISacLocalisationService;
63
63
  /**
64
- * Max. Dateigrösse für Files die hochgeladen werden können. 0 deaktiviert den Filter
64
+ * Max. file size for files that can be uploaded. 0 disables the filter
65
65
  */
66
66
  maxfilesize: number;
67
67
  /**
@@ -73,15 +73,15 @@ export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<V
73
73
  */
74
74
  onuploadcomplete: EventEmitter<ISacUploadEventCompleteState>;
75
75
  /**
76
- * Array von Uploads
76
+ * Array of uploads
77
77
  */
78
78
  uploads: SacUploadFile[];
79
79
  /**
80
- * Resource Key für Validation Message Required bei Control
80
+ * Resource key for validation message 'required' at control
81
81
  */
82
82
  validationmessagerequired: string;
83
83
  /**
84
- * Resource Key für Validation Message Required in Validation Summary
84
+ * Resource key for validation message 'required' in validation summary
85
85
  */
86
86
  validationmessagesummaryrequired: string;
87
87
  /**
@@ -114,78 +114,95 @@ export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<V
114
114
  get IconUpload(): string;
115
115
  get allowedtypes(): string;
116
116
  /**
117
- * Erlaubte Dateitypen für den Upload. Format: ".xxx,.yyy,.zzz"
117
+ * Allowed file types for upload. Format: ".xxx,.yyy,.zzz"
118
118
  */
119
119
  set allowedtypes(types: string);
120
+ /**
121
+ * Indicates whether files should be uploaded automatically after selection.
122
+ * @returns true when auto-upload is enabled.
123
+ */
120
124
  get autoupload(): boolean;
121
125
  /**
122
- * Files nach der Auswahl automatisch hochladen
126
+ * Automatically uploads files after selection.
127
+ * @param v true to enable automatic upload.
123
128
  */
124
129
  set autoupload(v: boolean);
130
+ /**
131
+ * Indicates whether upload pause is allowed.
132
+ * @returns true when pause support is active.
133
+ */
125
134
  get enablepause(): boolean;
126
135
  /**
127
- * Uploads können unterbrochen werden
136
+ * Uploads can be paused.
137
+ * @param v true to allow pausing uploads.
128
138
  */
129
139
  set enablepause(v: boolean);
140
+ /**
141
+ * API endpoint for upload registration.
142
+ * @returns configured endpoint URL.
143
+ */
130
144
  get endpoint(): string;
131
145
  /**
132
- * Definiert den Registration Endpoint für Uploads.
146
+ * Defines the registration endpoint for uploads.
147
+ * @param v upload endpoint URL.
133
148
  */
134
149
  set endpoint(v: string);
135
150
  /**
136
- * Token for Bearer Authentication
151
+ * Bearer authentication token used by upload service.
152
+ * @returns current auth token or null.
137
153
  */
138
154
  get token(): string | null;
139
155
  /**
140
- * Token for Bearer Authentication
156
+ * Sets Bearer authentication token for service requests.
157
+ * @param v token string or null to clear token.
141
158
  */
142
159
  set token(v: string | null);
143
160
  /**
144
- * Methode kann für Controls verwendet werden, zusätzliche Validierungen bei hinzufügen der Files zu machen
161
+ * Method can be used for controls to perform additional validations when adding files
145
162
  *
146
- * @param file File das hinzugefügt wurde.
147
- * @returns Valdierung ist erfolgreich
163
+ * @param file File that was added.
164
+ * @returns Validation is successful
148
165
  */
149
166
  abstract CustomAddValidation(file: UploadState): boolean;
150
167
  /**
151
- * Name der Datei die Hochgeladen wird
152
- * @returns Observable des Dateinamens.
168
+ * Name of the file being uploaded
169
+ * @returns Observable of the file name.
153
170
  */
154
171
  Filename(): Observable<string>;
155
172
  /**
156
- * Gibt an ob Queue Elemente beinhaltet
157
- * @returns Elemente in der Queue
173
+ * Indicates whether the queue contains elements
174
+ * @returns Elements in the queue
158
175
  */
159
176
  HasQueueItem(): boolean;
160
177
  /**
161
- * Gibt an ob ein Upload abgeschlossen ist
162
- * @returns Upload erfolgreich
178
+ * Indicates whether an upload is complete
179
+ * @returns Upload successful
163
180
  */
164
181
  HasSuccessUpload(): boolean;
165
182
  /**
166
- * Prüft ob ein Upload pausiert
167
- * @returns Pausierter Upload ist vorhanden
183
+ * Checks if an upload is paused
184
+ * @returns Paused upload is present
168
185
  */
169
186
  IsPaused(): boolean;
170
187
  /**
171
- * Prüft ob in der Queue Elemente die zum Upload bereit sind vorhanden sind.
172
- * @returns Elemente für Upload vorhanden
188
+ * Checks if there are elements in the queue ready for upload.
189
+ * @returns Elements available for upload
173
190
  */
174
191
  IsStateToUpload(): boolean;
175
192
  /**
176
- * Prüft ob ein Upload eines Files am laufen ist
177
- * @returns Upload ist am laufen
193
+ * Checks if a file upload is in progress
194
+ * @returns Upload is in progress
178
195
  */
179
196
  IsUploading(): boolean;
180
197
  /**
181
- * Gibt den Uploadfortschritt zurück
182
- * @returns Upload Fortschritt. Wert von 0-100
198
+ * Returns the upload progress
199
+ * @returns Upload progress. Value from 0-100
183
200
  */
184
201
  Progress(): number;
185
202
  /**
186
- * Methode welche die Upload ID's in das Model setzt oder löscht
203
+ * Method that sets or deletes the upload IDs in the model
187
204
  *
188
- * @param file Type von File ID's
205
+ * @param file Type of file IDs
189
206
  */
190
207
  abstract SetUploadValue(file: UploadState): void;
191
208
  /**
@@ -198,7 +215,7 @@ export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<V
198
215
  */
199
216
  cancelAll(): void;
200
217
  /**
201
- * Destroy des Controls
218
+ * Destroy the control
202
219
  */
203
220
  ngOnDestroy(): void;
204
221
  /**
@@ -206,18 +223,18 @@ export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<V
206
223
  */
207
224
  ngOnInit(): void;
208
225
  /**
209
- * Upload Event
226
+ * Upload event
210
227
  *
211
- * @param uploadsOutStream Upload Item
228
+ * @param uploadsOutStream Upload item
212
229
  */
213
230
  onUpload(ufile: UploadState): void;
214
231
  /**
215
- * Cancel Single File
216
- * @param uploadId ID of File to Cancel
232
+ * Cancel single file
233
+ * @param uploadId ID of file to cancel
217
234
  */
218
235
  pause(uploadId: any): void;
219
236
  /**
220
- * Pause all Uploads
237
+ * Pause all uploads
221
238
  */
222
239
  pauseAll(): void;
223
240
  /**
@@ -235,45 +252,48 @@ export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<V
235
252
  */
236
253
  uploadAll(): void;
237
254
  /**
238
- * Validiert das Upload Control
239
- * @param c Control das validiert werden soll
255
+ * Validates the upload control
256
+ * @param c Control to be validated
240
257
  */
241
258
  validateData(c: AbstractControl): ValidationErrors | null;
242
259
  /**
243
260
  * get max. files that can be uploaded
244
261
  */
245
262
  protected abstract GetMaxFiles(): number;
263
+ /**
264
+ * Updates the file count on the form control
265
+ */
246
266
  private UpdateFileCount;
247
267
  /**
248
268
  * Returns the number of uploaded files
249
269
  */
250
270
  private UploadedFileCount;
251
271
  /**
252
- * Prüft ob die Dateierweiterung gültig ist
272
+ * Checks whether the file extension is valid
253
273
  *
254
- * @param filename Dateiname
274
+ * @param filename File name
255
275
  */
256
276
  private isExtensionValid;
257
277
  /**
258
- * Prüft ob das File nicht zu gross ist.
278
+ * Checks if the file is not too large.
259
279
  *
260
- * @param filesize Max File Size in Bytes
280
+ * @param filesize Max file size in bytes
261
281
  */
262
282
  private isFileSizeValid;
263
283
  /**
264
- * Setzt die erlaubten Datentypen für den Upload
284
+ * Sets the allowed data types for upload
265
285
  *
266
- * @param types Erlaubte File Extensions
286
+ * @param types Allowed file extensions
267
287
  */
268
288
  private setAllowedTypes;
269
289
  /**
270
- * Setzt den Upload Endpoit
290
+ * Sets the upload endpoint
271
291
  * @param url Register URI
272
292
  */
273
293
  private setEndpoint;
274
294
  }
275
295
  /**
276
- * Klasse für den Upload einer Datei in der Upload Component
296
+ * Class for uploading a file in the upload component
277
297
  */
278
298
  export declare class SacUploadFile {
279
299
  /**
@@ -281,15 +301,15 @@ export declare class SacUploadFile {
281
301
  */
282
302
  documentid: string;
283
303
  /**
284
- * Dateiname
304
+ * File name
285
305
  */
286
306
  name: string;
287
307
  /**
288
- * Upload Fortschritt
308
+ * Upload progress
289
309
  */
290
310
  progress: number;
291
311
  /**
292
- * Upload Status
312
+ * Upload status
293
313
  */
294
314
  status: string;
295
315
  /**
@@ -297,8 +317,8 @@ export declare class SacUploadFile {
297
317
  */
298
318
  uploadId: string;
299
319
  /**
300
- * Konstruktor
301
- * @param ufile Upload Status
320
+ * Constructor
321
+ * @param ufile Upload state
302
322
  */
303
323
  constructor(ufile: UploadState);
304
324
  }
@@ -1,16 +1,16 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { EventEmitter, Injector, OnInit } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
1
  import { ISacLocalisationService } from '../../interfaces/ISacLocalisationService';
5
2
  import { ISacValidationKeyService } from '../../interfaces/ISacValidationKeyService';
6
3
  import { IBrowserFile } from './models/browserfile';
7
4
  import { IBrowserNode } from './models/browsernode';
5
+ import { HttpClient } from '@angular/common/http';
6
+ import { EventEmitter, Injector, OnInit } from '@angular/core';
7
+ import { Observable } from 'rxjs';
8
8
  /**
9
- * Base Component für File Browser
9
+ * Base component for file browser
10
10
  */
11
11
  export declare abstract class SacFileBrowserCommon implements OnInit {
12
12
  /**
13
- * Service für File Browser Zugriff (Backend)
13
+ * Service for file browser access (backend)
14
14
  */
15
15
  private browserService;
16
16
  /**
@@ -18,52 +18,51 @@ export declare abstract class SacFileBrowserCommon implements OnInit {
18
18
  */
19
19
  private iconService;
20
20
  /**
21
- * File welches beim starten des Browsers bereits selektiert ist
21
+ * File that is already selected when the browser starts
22
22
  */
23
23
  private preselecedfile;
24
24
  /**
25
- * Erlaubte Dateierweiterungen für Fileauswahl und Upload. Dateierweiterung mit Punkt und
26
- * getrennt durch Komma für mehr als eine Erweiterung (Example: ".jpg,.gif")
25
+ * Allowed file extensions for file selection and upload. Use dot notation, separated by commas for multiple extensions (Example: ".jpg,.gif")
27
26
  */
28
27
  allowedtypes: string;
29
28
  /**
30
- * Erlaubt das löschen einer Datei
29
+ * Allows deleting a file
31
30
  */
32
31
  allowfiledelete: boolean;
33
32
  /**
34
- * Erlaubt das umbenennen einer Datei
33
+ * Allows renaming a file
35
34
  */
36
35
  allowfilerename: boolean;
37
36
  /**
38
- * Erlaubt den Upload von Dateien
37
+ * Allows uploading files
39
38
  */
40
39
  allowfileupload: boolean;
41
40
  /**
42
- * Erlaubt das erstellen eines neuen Ordners
41
+ * Allows creating a new folder
43
42
  */
44
43
  allowfoldercreate: boolean;
45
44
  /**
46
- * Erlaubt das löschen eines Ordners
45
+ * Allows deleting a folder
47
46
  */
48
47
  allowfolderdelete: boolean;
49
48
  /**
50
- * Erlaubt das Umbenennen eines Ordners
49
+ * Allows renaming a folder
51
50
  */
52
51
  allowfolderrename: boolean;
53
52
  /**
54
- * URL für Backend API
53
+ * URL for the backend API
55
54
  */
56
55
  apiurl: string;
57
56
  /**
58
- * Output Emitter wenn File selektiert wird.
57
+ * Output emitter when a file is selected.
59
58
  */
60
59
  file: EventEmitter<string>;
61
60
  /**
62
- * Service für Error Localisation
61
+ * Service for error localisation
63
62
  */
64
63
  lngResourceService: ISacLocalisationService;
65
64
  /**
66
- * Root Node Item für Tree
65
+ * Root node item for the tree
67
66
  */
68
67
  rootNode: IBrowserNode;
69
68
  /**
@@ -87,15 +86,11 @@ export declare abstract class SacFileBrowserCommon implements OnInit {
87
86
  */
88
87
  validationKeyService: ISacValidationKeyService;
89
88
  /**
90
- * Konstruktor
89
+ * Constructor
91
90
  * @param httpclient Angular HTTP Client
92
91
  * @param injector Service Injector
93
92
  */
94
93
  constructor(httpclient: HttpClient, injector: Injector);
95
- /**
96
- * Setzt den Seleced Node über den Pfad
97
- */
98
- set selectedfile(v: string | null);
99
94
  /**
100
95
  * CSS icon class for delete icon
101
96
  * @returns css class with icon
@@ -107,7 +102,7 @@ export declare abstract class SacFileBrowserCommon implements OnInit {
107
102
  */
108
103
  get iconEdit(): string;
109
104
  /**
110
- * CSS icon for folders in tree there are collabsed
105
+ * CSS icon for folders in tree that are collapsed
111
106
  * @returns css class with icon
112
107
  */
113
108
  get iconFolderCollabsed(): string;
@@ -132,136 +127,138 @@ export declare abstract class SacFileBrowserCommon implements OnInit {
132
127
  */
133
128
  get iconRefresh(): string;
134
129
  /**
135
- * Getter für Selected File. Ist an Input Property gebunden
130
+ * Getter for selected file. Bound to an input property
136
131
  */
137
132
  get selectedfile(): string | null;
138
133
  /**
139
- * HostListener welcher den Edit Mode bei allen Files und Nodes beendet.
134
+ * Sets the selected node by the path
140
135
  */
141
- exitEditMode(targetElement: any): void;
136
+ set selectedfile(v: string | null);
137
+ /**
138
+ * Abstract confirm method that must be implemented. Called when a file should be deleted.
139
+ * @param file File for which a delete confirmation should be requested
140
+ */
141
+ abstract confirmDeleteFile(file: IBrowserFile): Observable<boolean>;
142
+ /**
143
+ * Abstract confirm method that must be implemented. Called when a folder should be deleted.
144
+ * @param folder Folder for which a delete confirmation should be requested.
145
+ */
146
+ abstract confirmDeleteNode(folder: IBrowserNode): Observable<boolean>;
142
147
  /**
143
- * Löscht ein File
144
- * @param file File welches gelöscht werden soll
148
+ * Deletes a file
149
+ * @param file File to be deleted
145
150
  */
146
151
  deleteFile(file: IBrowserFile): void;
147
152
  /**
148
- * Löscht einen Node
149
- * @param node Node welcher gelöscht werden soll
153
+ * Deletes a node
154
+ * @param node Node to be deleted
150
155
  */
151
156
  deleteNode(node: IBrowserNode): void;
152
157
  /**
153
- * Setzt ein File in den Edit Mode
154
- * @param file File welches in den Edit Mode gesetzt werden soll
158
+ * Sets a file into edit mode
159
+ * @param file File that should be placed into edit mode
155
160
  */
156
161
  editFile(file: IBrowserFile): void;
157
162
  /**
158
- * Setzt einen Node in den Edit Mode
159
- * @param node Node welcher bearbeitet werden soll
163
+ * Sets a node into edit mode
164
+ * @param node Node to be edited
160
165
  */
161
166
  editNode(node: IBrowserNode): void;
162
167
  /**
163
- * Erzeugt einen neuen Node im Tree
164
- * @param node Node unter welchem ein neuer Node erstellt werden soll
168
+ * HostListener that ends edit mode for all files and nodes.
169
+ */
170
+ exitEditMode(targetElement: any): void;
171
+ /**
172
+ * Creates a new node in the tree
173
+ * @param node Node under which a new node should be created
165
174
  */
166
175
  newNode(node: IBrowserNode): void;
167
176
  /**
168
- * Init Event der Komponente
177
+ * Init event of the component
169
178
  */
170
179
  ngOnInit(): void;
171
180
  /**
172
- * Aktualisiert den Node
181
+ * Updates the node
173
182
  */
174
183
  refreshNode(node: IBrowserNode): void;
175
184
  /**
176
- * Methode wenn eine Datei umbenannt werden soll
177
- * @param file File welches umbenannt werden soll
178
- * @param newFilename Neuer Dateiname
185
+ * Method called when a file should be renamed
186
+ * @param file File to be renamed
187
+ * @param newFilename New filename
179
188
  */
180
189
  renameFile(file: IBrowserFile, newFilename: string): void;
181
190
  /**
182
- * Methode wenn ein Node umbenannt werden soll
183
- * @param node Node welcher umbenannt werden soll
184
- * @param newFoldername Neuer Ordnername
191
+ * Method called when a node should be renamed
192
+ * @param node Node to be renamed
193
+ * @param newFoldername New folder name
185
194
  */
186
195
  renameNode(node: IBrowserNode, newFoldername: string): void;
187
196
  /**
188
- * Methode wenn ein File selektiert wird
189
- * @param file File welches selektiert wird
197
+ * Method called when a file is selected
198
+ * @param file File that is selected
190
199
  */
191
200
  selectFile(file: IBrowserFile): void;
192
201
  /**
193
- * Methode wenn ein Node selektiert wird
194
- * @param node Node welcher selektiert werden soll
202
+ * Method called when a node is selected
203
+ * @param node Node that should be selected
195
204
  */
196
205
  selectNode(node: IBrowserNode): void;
197
206
  /**
198
- * Expand/Collabse Methode für Nodes
199
- * @param node Node welcher geöffnet oder geschlossen werden soll
207
+ * Expand/collapse method for nodes
208
+ * @param node Node that should be opened or closed
200
209
  */
201
210
  switchExpandNode(node: IBrowserNode): void;
202
211
  /**
203
- * Methode die Aufgerufen werden muss, wenn ein Upload beendet ist.
204
- * @param param Parameter des hochgeladenen Files
212
+ * Method that must be called when an upload is completed.
213
+ * @param node Node where uploaded files should be attached.
214
+ * @param uploadIdList List of upload IDs that finished uploading.
205
215
  */
206
216
  uploadComplete(node: IBrowserNode, uploadIdList: string[]): void;
207
217
  /**
208
- * Abstrakte Confirm Methode welche implementiert werden muss. Methode wird aufgerufen, wenn eine
209
- * Datei gelöscht werden soll.
210
- * @param file File für welches ein Delete Confirm eingefordert werden soll
211
- */
212
- abstract confirmDeleteFile(file: IBrowserFile): Observable<boolean>;
213
- /**
214
- * Abstrakte Confirm Methode welche implementiert werden muss. Methode wird aufgerufen, wenn ein
215
- * Ordner gelöscht werden soll.
216
- * @param folder Ordern für welchen ein Delete Confirm eingefordert werden soll.
217
- */
218
- abstract confirmDeleteNode(folder: IBrowserNode): Observable<boolean>;
219
- /**
220
- * Abstrakte Methode die Aufgerufen wird, wenn das Hochgeladene File aus dem Temp Folder in die
221
- * Struktur verschoben wurde.
222
- * @param uploadid ID des Uploads
218
+ * Abstract method invoked when the uploaded file has been moved from the temp folder into the structure.
219
+ * @param uploadid Upload ID
223
220
  */
224
221
  abstract uploadedFileMoved(uploadid: string): void;
225
222
  /**
226
- * Rekursive Methode welche beim Node und all seinen Childs neue Nodes entfernt
227
- * @param node Node bei welchem alle neuen Nodes entfernt werden soll.
223
+ * Recursive method that removes new nodes from the given node and all its children
224
+ * @param node Node from which all new nodes should be removed.
228
225
  */
229
226
  private clearNewChildNodes;
230
227
  /**
231
- * Methode welche den Pfad für einen Node erzeugt
232
- * @param node Node für welchen der Pfad erzeugt werden soll
233
- * @param parentPath Übergeordneter Pfad
228
+ * Method that generates the path for a node
229
+ * @param node Node for which the path should be generated
230
+ * @param parentPath Parent path
234
231
  */
235
232
  private fillPath;
236
233
  /**
237
- * Sucht den übergeordneten Node im Tree
238
- * @param node Aktueller Node
239
- * @param nodeToFind Node welcher gefunden werden soll
240
- * @returns Node wenn er gefunden wurde, ansonsten wird NULL zurückgegeben
234
+ * Finds the parent node in the tree
235
+ * @param node Current node
236
+ * @param nodeToFind Node to find
237
+ * @returns The node if found, otherwise NULL
241
238
  */
242
239
  private findParentNode;
243
240
  /**
244
- * Sucht einen Node gem. einem URL Pfad
245
- * @param node Node in welchem gesucht werden soll
246
- * @param path Pfad nach welchem gesucht wird
247
- * @returns Node welcher zum gesuchten Pfad passt. Wenn kein Node gefunden wird, wird NULL zurückgegeben
241
+ * Finds a node according to a URL path
242
+ * @param node Node in which to search
243
+ * @param path Path to search for
244
+ * @returns Node matching the path. Returns NULL if not found
248
245
  */
249
246
  private findSelectedNodeByPath;
250
247
  /**
251
- * Sucht einen Node gem. einem Array von Node Namen
252
- * @param node Node in welchem gesucht werden soll
253
- * @param path Array von Node Namen, welche die Hirarchy des Pfades abbilden
254
- * @param index Aktueller Index im PATH Array
255
- * @returns Node wenn einer gefunden wurde, ansonsten NULL
248
+ * Finds a node based on an array of node names
249
+ * @param node Node in which to search
250
+ * @param path Array of node names representing the hierarchy of the path
251
+ * @param index Current index in the path array
252
+ * @returns Node if found, otherwise NULL
256
253
  */
257
254
  private findSelectedNodeByPathArray;
258
255
  /**
259
- * Rekursive Methode welche beim Node und all seinen Childs den Edit Mode beendet.
260
- * @param node Node bei welchem der Edit Mode beendet werden soll
256
+ * Recursive method that ends edit mode for the node and all its children.
257
+ * @param node Node for which edit mode should be ended
261
258
  */
262
259
  private resetNodeEditMode;
263
260
  /**
264
- * Setzt den Pfad in allen Nodes
261
+ * Sets the path in all nodes
265
262
  */
266
263
  private setPathToAllNodes;
267
264
  }
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Interface für Datei Items in File Browser Component
2
+ * Interface for file items in the file browser component
3
3
  */
4
4
  export interface IBrowserFile {
5
5
  /**
6
- * Dateiname
6
+ * File name
7
7
  */
8
8
  Filename: string;
9
9
  /**
10
- * Grösse der Datei
10
+ * Item is being edited
11
11
  */
12
- Size: number;
12
+ IsEditMode: boolean;
13
13
  /**
14
- * Item wird bearbeitet
14
+ * File size
15
15
  */
16
- IsEditMode: boolean;
16
+ Size: number;
17
17
  }