@simpleangularcontrols/sac-common 10.0.0-rc.1
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.
- package/README.md +16 -0
- package/bundles/simpleangularcontrols-sac-common.umd.js +12054 -0
- package/bundles/simpleangularcontrols-sac-common.umd.js.map +1 -0
- package/bundles/simpleangularcontrols-sac-common.umd.min.js +2 -0
- package/bundles/simpleangularcontrols-sac-common.umd.min.js.map +1 -0
- package/common/basedatetimecontrol.d.ts +83 -0
- package/common/basedatetimecontrol.ngfactory.d.ts +1 -0
- package/common/baseinputcontrol.d.ts +42 -0
- package/common/baseinputcontrol.ngfactory.d.ts +1 -0
- package/common/baselistcontrol.d.ts +43 -0
- package/common/baselistcontrol.ngfactory.d.ts +1 -0
- package/common/basemodelcontrol.d.ts +252 -0
- package/common/basemodelcontrol.ngfactory.d.ts +1 -0
- package/common/baseselectcontrol.d.ts +14 -0
- package/common/baseselectcontrol.ngfactory.d.ts +1 -0
- package/common/baseuploadcontrol.d.ts +284 -0
- package/common/baseuploadcontrol.ngfactory.d.ts +1 -0
- package/components/browser/browser.d.ts +267 -0
- package/components/browser/browser.ngfactory.d.ts +1 -0
- package/components/browser/models/browserfile.d.ts +17 -0
- package/components/browser/models/browserfile.ngfactory.d.ts +1 -0
- package/components/browser/models/browserfiledeleterequest.d.ts +18 -0
- package/components/browser/models/browserfiledeleterequest.ngfactory.d.ts +1 -0
- package/components/browser/models/browserfilerenamerequest.d.ts +22 -0
- package/components/browser/models/browserfilerenamerequest.ngfactory.d.ts +1 -0
- package/components/browser/models/browserfileresponse.d.ts +10 -0
- package/components/browser/models/browserfileresponse.ngfactory.d.ts +1 -0
- package/components/browser/models/browserfilesaverequest.d.ts +22 -0
- package/components/browser/models/browserfilesaverequest.ngfactory.d.ts +1 -0
- package/components/browser/models/browsernode.d.ts +34 -0
- package/components/browser/models/browsernode.ngfactory.d.ts +1 -0
- package/components/browser/models/browsernodedeleterequest.d.ts +14 -0
- package/components/browser/models/browsernodedeleterequest.ngfactory.d.ts +1 -0
- package/components/browser/models/browsernodenewrequest.d.ts +18 -0
- package/components/browser/models/browsernodenewrequest.ngfactory.d.ts +1 -0
- package/components/browser/models/browsernoderenamerequest.d.ts +18 -0
- package/components/browser/models/browsernoderenamerequest.ngfactory.d.ts +1 -0
- package/components/browser/models/browsernoderequest.d.ts +18 -0
- package/components/browser/models/browsernoderequest.ngfactory.d.ts +1 -0
- package/components/browser/models/browsernoderesponse.d.ts +10 -0
- package/components/browser/models/browsernoderesponse.ngfactory.d.ts +1 -0
- package/controls/buttons/button.d.ts +70 -0
- package/controls/buttons/button.ngfactory.d.ts +1 -0
- package/controls/checkbox/checkbox.d.ts +23 -0
- package/controls/checkbox/checkbox.ngfactory.d.ts +1 -0
- package/controls/checkbox/radiobutton.d.ts +79 -0
- package/controls/checkbox/radiobutton.ngfactory.d.ts +1 -0
- package/controls/checkbox/radiobuttons.d.ts +60 -0
- package/controls/checkbox/radiobuttons.ngfactory.d.ts +1 -0
- package/controls/confirm/confirm.button.d.ts +25 -0
- package/controls/confirm/confirm.button.ngfactory.d.ts +1 -0
- package/controls/confirm/confirm.d.ts +49 -0
- package/controls/confirm/confirm.ngfactory.d.ts +1 -0
- package/controls/confirm/confirm.service.d.ts +63 -0
- package/controls/confirm/confirm.service.ngfactory.d.ts +1 -0
- package/controls/contextmenu/contextmenu.d.ts +113 -0
- package/controls/contextmenu/contextmenu.ngfactory.d.ts +1 -0
- package/controls/contextmenu/contextmenuanchor.d.ts +15 -0
- package/controls/contextmenu/contextmenuanchor.ngfactory.d.ts +1 -0
- package/controls/contextmenu/contextmenucontainer.d.ts +15 -0
- package/controls/contextmenu/contextmenucontainer.ngfactory.d.ts +1 -0
- package/controls/contextmenu/contextmenuitem.d.ts +5 -0
- package/controls/contextmenu/contextmenuitem.ngfactory.d.ts +1 -0
- package/controls/contextmenu/contextmenuitembutton.d.ts +66 -0
- package/controls/contextmenu/contextmenuitembutton.ngfactory.d.ts +1 -0
- package/controls/datetime/date.d.ts +120 -0
- package/controls/datetime/date.ngfactory.d.ts +1 -0
- package/controls/datetime/dateselector.d.ts +161 -0
- package/controls/datetime/dateselector.ngfactory.d.ts +1 -0
- package/controls/datetime/datetime.d.ts +135 -0
- package/controls/datetime/datetime.ngfactory.d.ts +1 -0
- package/controls/datetime/time.d.ts +115 -0
- package/controls/datetime/time.ngfactory.d.ts +1 -0
- package/controls/dialog/dialog.d.ts +105 -0
- package/controls/dialog/dialog.ngfactory.d.ts +1 -0
- package/controls/form/form.d.ts +47 -0
- package/controls/form/form.ngfactory.d.ts +1 -0
- package/controls/grid/grid.d.ts +125 -0
- package/controls/grid/grid.ngfactory.d.ts +1 -0
- package/controls/grid/gridbutton.d.ts +33 -0
- package/controls/grid/gridbutton.ngfactory.d.ts +1 -0
- package/controls/grid/gridcolumn.d.ts +28 -0
- package/controls/grid/gridcolumn.ngfactory.d.ts +1 -0
- package/controls/grid/gridcolumnaction.d.ts +15 -0
- package/controls/grid/gridcolumnaction.ngfactory.d.ts +1 -0
- package/controls/grid/gridcolumnbase.d.ts +86 -0
- package/controls/grid/gridcolumnbase.ngfactory.d.ts +1 -0
- package/controls/grid/gridimage.d.ts +9 -0
- package/controls/grid/gridimage.ngfactory.d.ts +1 -0
- package/controls/grid/model.d.ts +83 -0
- package/controls/grid/model.ngfactory.d.ts +1 -0
- package/controls/grid/paging.d.ts +147 -0
- package/controls/grid/paging.ngfactory.d.ts +1 -0
- package/controls/input/input.d.ts +35 -0
- package/controls/input/input.ngfactory.d.ts +1 -0
- package/controls/input/inputarea.d.ts +26 -0
- package/controls/input/inputarea.ngfactory.d.ts +1 -0
- package/controls/input/inputcurrency.d.ts +11 -0
- package/controls/input/inputcurrency.ngfactory.d.ts +1 -0
- package/controls/input/inputdecimal.d.ts +59 -0
- package/controls/input/inputdecimal.ngfactory.d.ts +1 -0
- package/controls/input/inputemail.d.ts +19 -0
- package/controls/input/inputemail.ngfactory.d.ts +1 -0
- package/controls/input/inputinteger.d.ts +59 -0
- package/controls/input/inputinteger.ngfactory.d.ts +1 -0
- package/controls/input/inputpassword.d.ts +23 -0
- package/controls/input/inputpassword.ngfactory.d.ts +1 -0
- package/controls/input/inputsearch.d.ts +23 -0
- package/controls/input/inputsearch.ngfactory.d.ts +1 -0
- package/controls/layout/formlayout.d.ts +46 -0
- package/controls/layout/formlayout.ngfactory.d.ts +1 -0
- package/controls/list/dropdown.d.ts +138 -0
- package/controls/list/dropdown.ngfactory.d.ts +1 -0
- package/controls/list/list.module.d.ts +2 -0
- package/controls/list/list.module.ngfactory.d.ts +3 -0
- package/controls/list/listbox.d.ts +86 -0
- package/controls/list/listbox.ngfactory.d.ts +1 -0
- package/controls/multilanguage/multilanguageinput.d.ts +102 -0
- package/controls/multilanguage/multilanguageinput.ngfactory.d.ts +1 -0
- package/controls/multilanguage/multilanguageinputarea.d.ts +107 -0
- package/controls/multilanguage/multilanguageinputarea.ngfactory.d.ts +1 -0
- package/controls/static/formcontainer.d.ts +31 -0
- package/controls/static/formcontainer.ngfactory.d.ts +1 -0
- package/controls/static/staticlabel.d.ts +18 -0
- package/controls/static/staticlabel.ngfactory.d.ts +1 -0
- package/controls/tabs/tab.d.ts +45 -0
- package/controls/tabs/tab.ngfactory.d.ts +1 -0
- package/controls/tabs/tabitem.d.ts +30 -0
- package/controls/tabs/tabitem.ngfactory.d.ts +1 -0
- package/controls/tinymce/tinymce.d.ts +149 -0
- package/controls/tinymce/tinymce.ngfactory.d.ts +1 -0
- package/controls/tinymce/tinymcedialogsettings.d.ts +27 -0
- package/controls/tinymce/tinymcedialogsettings.ngfactory.d.ts +1 -0
- package/controls/tinymce/tinymcedialogsettingsmeta.d.ts +9 -0
- package/controls/tinymce/tinymcedialogsettingsmeta.ngfactory.d.ts +1 -0
- package/controls/tinymce/tinymceinstance.d.ts +10 -0
- package/controls/tinymce/tinymceinstance.ngfactory.d.ts +1 -0
- package/controls/tooltip/tooltip.d.ts +138 -0
- package/controls/tooltip/tooltip.ngfactory.d.ts +1 -0
- package/controls/treeview/ngtreeitemaction.d.ts +40 -0
- package/controls/treeview/ngtreeitemaction.ngfactory.d.ts +1 -0
- package/controls/treeview/treeview.d.ts +185 -0
- package/controls/treeview/treeview.ngfactory.d.ts +1 -0
- package/controls/treeview/treeviewchild.d.ts +12 -0
- package/controls/treeview/treeviewchild.ngfactory.d.ts +1 -0
- package/controls/upload/dropzonemultiple.d.ts +70 -0
- package/controls/upload/dropzonemultiple.ngfactory.d.ts +1 -0
- package/controls/upload/dropzonesingle.d.ts +47 -0
- package/controls/upload/dropzonesingle.ngfactory.d.ts +1 -0
- package/controls/upload/uploadmultiple.d.ts +50 -0
- package/controls/upload/uploadmultiple.ngfactory.d.ts +1 -0
- package/controls/upload/uploadsingle.d.ts +27 -0
- package/controls/upload/uploadsingle.ngfactory.d.ts +1 -0
- package/controls/validation/validationsummary.d.ts +60 -0
- package/controls/validation/validationsummary.ngfactory.d.ts +1 -0
- package/controls/wizard/wizard.d.ts +73 -0
- package/controls/wizard/wizard.ngfactory.d.ts +1 -0
- package/controls/wizard/wizarditem.d.ts +25 -0
- package/controls/wizard/wizarditem.ngfactory.d.ts +1 -0
- package/enums/ButtonRoleType.d.ts +1 -0
- package/enums/ButtonRoleType.ngfactory.d.ts +1 -0
- package/enums/ControlHeight.d.ts +17 -0
- package/enums/ControlHeight.ngfactory.d.ts +1 -0
- package/enums/IconType.d.ts +7 -0
- package/enums/IconType.ngfactory.d.ts +1 -0
- package/esm2015/common/basedatetimecontrol.js +164 -0
- package/esm2015/common/basedatetimecontrol.ngfactory.js +7 -0
- package/esm2015/common/baseinputcontrol.js +78 -0
- package/esm2015/common/baseinputcontrol.ngfactory.js +7 -0
- package/esm2015/common/baselistcontrol.js +55 -0
- package/esm2015/common/baselistcontrol.ngfactory.js +7 -0
- package/esm2015/common/basemodelcontrol.js +483 -0
- package/esm2015/common/basemodelcontrol.ngfactory.js +7 -0
- package/esm2015/common/baseselectcontrol.js +26 -0
- package/esm2015/common/baseselectcontrol.ngfactory.js +7 -0
- package/esm2015/common/baseuploadcontrol.js +457 -0
- package/esm2015/common/baseuploadcontrol.ngfactory.js +7 -0
- package/esm2015/components/browser/browser.js +545 -0
- package/esm2015/components/browser/browser.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browserfile.js +1 -0
- package/esm2015/components/browser/models/browserfile.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browserfiledeleterequest.js +13 -0
- package/esm2015/components/browser/models/browserfiledeleterequest.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browserfilerenamerequest.js +13 -0
- package/esm2015/components/browser/models/browserfilerenamerequest.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browserfileresponse.js +1 -0
- package/esm2015/components/browser/models/browserfileresponse.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browserfilesaverequest.js +13 -0
- package/esm2015/components/browser/models/browserfilesaverequest.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browsernode.js +1 -0
- package/esm2015/components/browser/models/browsernode.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browsernodedeleterequest.js +13 -0
- package/esm2015/components/browser/models/browsernodedeleterequest.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browsernodenewrequest.js +13 -0
- package/esm2015/components/browser/models/browsernodenewrequest.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browsernoderenamerequest.js +13 -0
- package/esm2015/components/browser/models/browsernoderenamerequest.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browsernoderequest.js +13 -0
- package/esm2015/components/browser/models/browsernoderequest.ngfactory.js +7 -0
- package/esm2015/components/browser/models/browsernoderesponse.js +1 -0
- package/esm2015/components/browser/models/browsernoderesponse.ngfactory.js +7 -0
- package/esm2015/controls/buttons/button.js +141 -0
- package/esm2015/controls/buttons/button.ngfactory.js +7 -0
- package/esm2015/controls/checkbox/checkbox.js +33 -0
- package/esm2015/controls/checkbox/checkbox.ngfactory.js +7 -0
- package/esm2015/controls/checkbox/radiobutton.js +115 -0
- package/esm2015/controls/checkbox/radiobutton.ngfactory.js +7 -0
- package/esm2015/controls/checkbox/radiobuttons.js +113 -0
- package/esm2015/controls/checkbox/radiobuttons.ngfactory.js +7 -0
- package/esm2015/controls/confirm/confirm.button.js +32 -0
- package/esm2015/controls/confirm/confirm.button.ngfactory.js +7 -0
- package/esm2015/controls/confirm/confirm.js +75 -0
- package/esm2015/controls/confirm/confirm.ngfactory.js +7 -0
- package/esm2015/controls/confirm/confirm.service.js +87 -0
- package/esm2015/controls/confirm/confirm.service.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenu.js +194 -0
- package/esm2015/controls/contextmenu/contextmenu.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenuanchor.js +22 -0
- package/esm2015/controls/contextmenu/contextmenuanchor.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenucontainer.js +22 -0
- package/esm2015/controls/contextmenu/contextmenucontainer.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenuitem.js +10 -0
- package/esm2015/controls/contextmenu/contextmenuitem.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenuitembutton.js +97 -0
- package/esm2015/controls/contextmenu/contextmenuitembutton.ngfactory.js +7 -0
- package/esm2015/controls/datetime/date.js +212 -0
- package/esm2015/controls/datetime/date.ngfactory.js +7 -0
- package/esm2015/controls/datetime/dateselector.js +458 -0
- package/esm2015/controls/datetime/dateselector.ngfactory.js +7 -0
- package/esm2015/controls/datetime/datetime.js +229 -0
- package/esm2015/controls/datetime/datetime.ngfactory.js +7 -0
- package/esm2015/controls/datetime/time.js +212 -0
- package/esm2015/controls/datetime/time.ngfactory.js +7 -0
- package/esm2015/controls/dialog/dialog.js +207 -0
- package/esm2015/controls/dialog/dialog.ngfactory.js +7 -0
- package/esm2015/controls/form/form.js +110 -0
- package/esm2015/controls/form/form.ngfactory.js +7 -0
- package/esm2015/controls/grid/grid.js +144 -0
- package/esm2015/controls/grid/grid.ngfactory.js +7 -0
- package/esm2015/controls/grid/gridbutton.js +54 -0
- package/esm2015/controls/grid/gridbutton.ngfactory.js +7 -0
- package/esm2015/controls/grid/gridcolumn.js +49 -0
- package/esm2015/controls/grid/gridcolumn.ngfactory.js +7 -0
- package/esm2015/controls/grid/gridcolumnaction.js +26 -0
- package/esm2015/controls/grid/gridcolumnaction.ngfactory.js +7 -0
- package/esm2015/controls/grid/gridcolumnbase.js +126 -0
- package/esm2015/controls/grid/gridcolumnbase.ngfactory.js +7 -0
- package/esm2015/controls/grid/gridimage.js +13 -0
- package/esm2015/controls/grid/gridimage.ngfactory.js +7 -0
- package/esm2015/controls/grid/model.js +79 -0
- package/esm2015/controls/grid/model.ngfactory.js +7 -0
- package/esm2015/controls/grid/paging.js +254 -0
- package/esm2015/controls/grid/paging.ngfactory.js +7 -0
- package/esm2015/controls/input/input.js +66 -0
- package/esm2015/controls/input/input.ngfactory.js +7 -0
- package/esm2015/controls/input/inputarea.js +54 -0
- package/esm2015/controls/input/inputarea.ngfactory.js +7 -0
- package/esm2015/controls/input/inputcurrency.js +31 -0
- package/esm2015/controls/input/inputcurrency.ngfactory.js +7 -0
- package/esm2015/controls/input/inputdecimal.js +146 -0
- package/esm2015/controls/input/inputdecimal.ngfactory.js +7 -0
- package/esm2015/controls/input/inputemail.js +41 -0
- package/esm2015/controls/input/inputemail.ngfactory.js +7 -0
- package/esm2015/controls/input/inputinteger.js +130 -0
- package/esm2015/controls/input/inputinteger.ngfactory.js +7 -0
- package/esm2015/controls/input/inputpassword.js +46 -0
- package/esm2015/controls/input/inputpassword.ngfactory.js +7 -0
- package/esm2015/controls/input/inputsearch.js +37 -0
- package/esm2015/controls/input/inputsearch.ngfactory.js +7 -0
- package/esm2015/controls/layout/formlayout.js +70 -0
- package/esm2015/controls/layout/formlayout.ngfactory.js +7 -0
- package/esm2015/controls/list/dropdown.js +270 -0
- package/esm2015/controls/list/dropdown.ngfactory.js +7 -0
- package/esm2015/controls/list/list.module.js +11 -0
- package/esm2015/controls/list/list.module.ngfactory.js +7 -0
- package/esm2015/controls/list/listbox.js +187 -0
- package/esm2015/controls/list/listbox.ngfactory.js +7 -0
- package/esm2015/controls/multilanguage/multilanguageinput.js +230 -0
- package/esm2015/controls/multilanguage/multilanguageinput.ngfactory.js +7 -0
- package/esm2015/controls/multilanguage/multilanguageinputarea.js +231 -0
- package/esm2015/controls/multilanguage/multilanguageinputarea.ngfactory.js +7 -0
- package/esm2015/controls/static/formcontainer.js +50 -0
- package/esm2015/controls/static/formcontainer.ngfactory.js +7 -0
- package/esm2015/controls/static/staticlabel.js +31 -0
- package/esm2015/controls/static/staticlabel.ngfactory.js +7 -0
- package/esm2015/controls/tabs/tab.js +72 -0
- package/esm2015/controls/tabs/tab.ngfactory.js +7 -0
- package/esm2015/controls/tabs/tabitem.js +32 -0
- package/esm2015/controls/tabs/tabitem.ngfactory.js +7 -0
- package/esm2015/controls/tinymce/tinymce.js +238 -0
- package/esm2015/controls/tinymce/tinymce.ngfactory.js +7 -0
- package/esm2015/controls/tinymce/tinymcedialogsettings.js +13 -0
- package/esm2015/controls/tinymce/tinymcedialogsettings.ngfactory.js +7 -0
- package/esm2015/controls/tinymce/tinymcedialogsettingsmeta.js +4 -0
- package/esm2015/controls/tinymce/tinymcedialogsettingsmeta.ngfactory.js +7 -0
- package/esm2015/controls/tinymce/tinymceinstance.js +1 -0
- package/esm2015/controls/tinymce/tinymceinstance.ngfactory.js +7 -0
- package/esm2015/controls/tooltip/tooltip.js +361 -0
- package/esm2015/controls/tooltip/tooltip.ngfactory.js +7 -0
- package/esm2015/controls/treeview/ngtreeitemaction.js +60 -0
- package/esm2015/controls/treeview/ngtreeitemaction.ngfactory.js +7 -0
- package/esm2015/controls/treeview/treeview.js +322 -0
- package/esm2015/controls/treeview/treeview.ngfactory.js +7 -0
- package/esm2015/controls/treeview/treeviewchild.js +18 -0
- package/esm2015/controls/treeview/treeviewchild.ngfactory.js +7 -0
- package/esm2015/controls/upload/dropzonemultiple.js +163 -0
- package/esm2015/controls/upload/dropzonemultiple.ngfactory.js +7 -0
- package/esm2015/controls/upload/dropzonesingle.js +108 -0
- package/esm2015/controls/upload/dropzonesingle.ngfactory.js +7 -0
- package/esm2015/controls/upload/uploadmultiple.js +121 -0
- package/esm2015/controls/upload/uploadmultiple.ngfactory.js +7 -0
- package/esm2015/controls/upload/uploadsingle.js +55 -0
- package/esm2015/controls/upload/uploadsingle.ngfactory.js +7 -0
- package/esm2015/controls/validation/validationsummary.js +133 -0
- package/esm2015/controls/validation/validationsummary.ngfactory.js +7 -0
- package/esm2015/controls/wizard/wizard.js +139 -0
- package/esm2015/controls/wizard/wizard.ngfactory.js +7 -0
- package/esm2015/controls/wizard/wizarditem.js +27 -0
- package/esm2015/controls/wizard/wizarditem.ngfactory.js +7 -0
- package/esm2015/enums/ButtonRoleType.js +1 -0
- package/esm2015/enums/ButtonRoleType.ngfactory.js +7 -0
- package/esm2015/enums/ControlHeight.js +19 -0
- package/esm2015/enums/ControlHeight.ngfactory.js +7 -0
- package/esm2015/enums/IconType.js +9 -0
- package/esm2015/enums/IconType.ngfactory.js +7 -0
- package/esm2015/interfaces/ISacConfigurationService.js +1 -0
- package/esm2015/interfaces/ISacConfigurationService.ngfactory.js +7 -0
- package/esm2015/interfaces/ISacFileBrowserService.js +1 -0
- package/esm2015/interfaces/ISacFileBrowserService.ngfactory.js +7 -0
- package/esm2015/interfaces/ISacIconService.js +1 -0
- package/esm2015/interfaces/ISacIconService.ngfactory.js +7 -0
- package/esm2015/interfaces/ISacLabelSizes.js +1 -0
- package/esm2015/interfaces/ISacLabelSizes.ngfactory.js +7 -0
- package/esm2015/interfaces/ISacLanguageService.js +1 -0
- package/esm2015/interfaces/ISacLanguageService.ngfactory.js +7 -0
- package/esm2015/interfaces/ISacLocalisationService.js +1 -0
- package/esm2015/interfaces/ISacLocalisationService.ngfactory.js +7 -0
- package/esm2015/interfaces/ISacValidationKeyService.js +1 -0
- package/esm2015/interfaces/ISacValidationKeyService.ngfactory.js +7 -0
- package/esm2015/interfaces/iabstractcontrollabel.js +1 -0
- package/esm2015/interfaces/iabstractcontrollabel.ngfactory.js +7 -0
- package/esm2015/interfaces/iconfirmcomponent.js +1 -0
- package/esm2015/interfaces/iconfirmcomponent.ngfactory.js +7 -0
- package/esm2015/interfaces/idatetimecontrol.js +1 -0
- package/esm2015/interfaces/idatetimecontrol.ngfactory.js +7 -0
- package/esm2015/interfaces/iuploadcontrol.js +1 -0
- package/esm2015/interfaces/iuploadcontrol.ngfactory.js +7 -0
- package/esm2015/models/languagemodel.js +13 -0
- package/esm2015/models/languagemodel.ngfactory.js +7 -0
- package/esm2015/public_api.js +101 -0
- package/esm2015/public_api.ngfactory.js +7 -0
- package/esm2015/services/index.js +7 -0
- package/esm2015/services/index.ngfactory.js +7 -0
- package/esm2015/services/sac-configuration.service.js +77 -0
- package/esm2015/services/sac-configuration.service.ngfactory.js +7 -0
- package/esm2015/services/sac-filebrowser.service.js +203 -0
- package/esm2015/services/sac-filebrowser.service.ngfactory.js +7 -0
- package/esm2015/services/sac-icon.service.js +155 -0
- package/esm2015/services/sac-icon.service.ngfactory.js +7 -0
- package/esm2015/services/sac-language.service.js +43 -0
- package/esm2015/services/sac-language.service.ngfactory.js +7 -0
- package/esm2015/services/sac-localisation.service.js +460 -0
- package/esm2015/services/sac-localisation.service.ngfactory.js +7 -0
- package/esm2015/services/sac-validationkey.service.js +156 -0
- package/esm2015/services/sac-validationkey.service.ngfactory.js +7 -0
- package/esm2015/simpleangularcontrols-sac-common.js +11 -0
- package/esm2015/simpleangularcontrols-sac-common.ngfactory.js +7 -0
- package/esm2015/utilities/convertion.js +32 -0
- package/esm2015/utilities/convertion.ngfactory.js +7 -0
- package/esm2015/utilities/datatypes.js +9 -0
- package/esm2015/utilities/datatypes.ngfactory.js +7 -0
- package/esm2015/utilities/enums.js +16 -0
- package/esm2015/utilities/enums.ngfactory.js +7 -0
- package/esm2015/utilities/guid.js +16 -0
- package/esm2015/utilities/guid.ngfactory.js +7 -0
- package/esm2015/utilities/interpolation.js +50 -0
- package/esm2015/utilities/interpolation.ngfactory.js +7 -0
- package/esm2015/utilities/positioning.js +301 -0
- package/esm2015/utilities/positioning.ngfactory.js +7 -0
- package/esm2015/validation/email.validator.js +13 -0
- package/esm2015/validation/email.validator.ngfactory.js +7 -0
- package/esm2015/validation/index.js +3 -0
- package/esm2015/validation/index.ngfactory.js +7 -0
- package/esm2015/validation/invaliddate.validator.js +14 -0
- package/esm2015/validation/invaliddate.validator.ngfactory.js +7 -0
- package/esm2015/validation/isDateValid.js +15 -0
- package/esm2015/validation/isDateValid.ngfactory.js +7 -0
- package/esm2015/validation/maxdate.validator.js +21 -0
- package/esm2015/validation/maxdate.validator.ngfactory.js +7 -0
- package/esm2015/validation/maxtime.validator.js +21 -0
- package/esm2015/validation/maxtime.validator.ngfactory.js +7 -0
- package/esm2015/validation/maxvalue.validator.js +16 -0
- package/esm2015/validation/maxvalue.validator.ngfactory.js +7 -0
- package/esm2015/validation/mindate.validator.js +21 -0
- package/esm2015/validation/mindate.validator.ngfactory.js +7 -0
- package/esm2015/validation/minfiles.validator.js +19 -0
- package/esm2015/validation/minfiles.validator.ngfactory.js +7 -0
- package/esm2015/validation/minlength.validator.js +21 -0
- package/esm2015/validation/minlength.validator.ngfactory.js +7 -0
- package/esm2015/validation/mintime.validator.js +21 -0
- package/esm2015/validation/mintime.validator.ngfactory.js +7 -0
- package/esm2015/validation/minvalue.validator.js +16 -0
- package/esm2015/validation/minvalue.validator.ngfactory.js +7 -0
- package/esm2015/validation/multilanguagerequired.validator.js +22 -0
- package/esm2015/validation/multilanguagerequired.validator.ngfactory.js +7 -0
- package/esm2015/validation/multilanguagerequiredany.validator.js +22 -0
- package/esm2015/validation/multilanguagerequiredany.validator.ngfactory.js +7 -0
- package/esm2015/validation/pattern.validator.js +16 -0
- package/esm2015/validation/pattern.validator.ngfactory.js +7 -0
- package/esm2015/validation/required.validator.js +13 -0
- package/esm2015/validation/required.validator.ngfactory.js +7 -0
- package/esm2015/validation/validation.class.js +189 -0
- package/esm2015/validation/validation.class.ngfactory.js +7 -0
- package/esm2015/validation/validationerrorcreator.js +11 -0
- package/esm2015/validation/validationerrorcreator.ngfactory.js +7 -0
- package/esm2015/validation/validationerroritem.js +27 -0
- package/esm2015/validation/validationerroritem.ngfactory.js +7 -0
- package/fesm2015/simpleangularcontrols-sac-common.js +10319 -0
- package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -0
- package/interfaces/ISacConfigurationService.d.ts +38 -0
- package/interfaces/ISacConfigurationService.ngfactory.d.ts +1 -0
- package/interfaces/ISacFileBrowserService.d.ts +65 -0
- package/interfaces/ISacFileBrowserService.ngfactory.d.ts +1 -0
- package/interfaces/ISacIconService.d.ts +89 -0
- package/interfaces/ISacIconService.ngfactory.d.ts +1 -0
- package/interfaces/ISacLabelSizes.d.ts +26 -0
- package/interfaces/ISacLabelSizes.ngfactory.d.ts +1 -0
- package/interfaces/ISacLanguageService.d.ts +12 -0
- package/interfaces/ISacLanguageService.ngfactory.d.ts +1 -0
- package/interfaces/ISacLocalisationService.d.ts +10 -0
- package/interfaces/ISacLocalisationService.ngfactory.d.ts +1 -0
- package/interfaces/ISacValidationKeyService.d.ts +52 -0
- package/interfaces/ISacValidationKeyService.ngfactory.d.ts +1 -0
- package/interfaces/iabstractcontrollabel.d.ts +6 -0
- package/interfaces/iabstractcontrollabel.ngfactory.d.ts +1 -0
- package/interfaces/iconfirmcomponent.d.ts +18 -0
- package/interfaces/iconfirmcomponent.ngfactory.d.ts +1 -0
- package/interfaces/idatetimecontrol.d.ts +7 -0
- package/interfaces/idatetimecontrol.ngfactory.d.ts +1 -0
- package/interfaces/iuploadcontrol.d.ts +9 -0
- package/interfaces/iuploadcontrol.ngfactory.d.ts +1 -0
- package/models/languagemodel.d.ts +22 -0
- package/models/languagemodel.ngfactory.d.ts +1 -0
- package/package.json +28 -0
- package/public_api.d.ts +79 -0
- package/public_api.ngfactory.d.ts +1 -0
- package/services/index.d.ts +6 -0
- package/services/index.ngfactory.d.ts +1 -0
- package/services/sac-configuration.service.d.ts +81 -0
- package/services/sac-configuration.service.ngfactory.d.ts +1 -0
- package/services/sac-filebrowser.service.d.ts +140 -0
- package/services/sac-filebrowser.service.ngfactory.d.ts +1 -0
- package/services/sac-icon.service.d.ts +184 -0
- package/services/sac-icon.service.ngfactory.d.ts +1 -0
- package/services/sac-language.service.d.ts +26 -0
- package/services/sac-language.service.ngfactory.d.ts +1 -0
- package/services/sac-localisation.service.d.ts +137 -0
- package/services/sac-localisation.service.ngfactory.d.ts +1 -0
- package/services/sac-validationkey.service.d.ts +55 -0
- package/services/sac-validationkey.service.ngfactory.d.ts +1 -0
- package/simpleangularcontrols-sac-common-10.0.0-rc.1.tgz +0 -0
- package/simpleangularcontrols-sac-common.d.ts +10 -0
- package/simpleangularcontrols-sac-common.metadata.json +1 -0
- package/simpleangularcontrols-sac-common.ngfactory.d.ts +1 -0
- package/utilities/convertion.d.ts +15 -0
- package/utilities/convertion.ngfactory.d.ts +1 -0
- package/utilities/datatypes.d.ts +6 -0
- package/utilities/datatypes.ngfactory.d.ts +1 -0
- package/utilities/enums.d.ts +10 -0
- package/utilities/enums.ngfactory.d.ts +1 -0
- package/utilities/guid.d.ts +4 -0
- package/utilities/guid.ngfactory.d.ts +1 -0
- package/utilities/interpolation.d.ts +21 -0
- package/utilities/interpolation.ngfactory.d.ts +1 -0
- package/utilities/positioning.d.ts +82 -0
- package/utilities/positioning.ngfactory.d.ts +1 -0
- package/validation/email.validator.d.ts +2 -0
- package/validation/email.validator.ngfactory.d.ts +1 -0
- package/validation/index.d.ts +2 -0
- package/validation/index.ngfactory.d.ts +1 -0
- package/validation/invaliddate.validator.d.ts +2 -0
- package/validation/invaliddate.validator.ngfactory.d.ts +1 -0
- package/validation/isDateValid.d.ts +5 -0
- package/validation/isDateValid.ngfactory.d.ts +1 -0
- package/validation/maxdate.validator.d.ts +2 -0
- package/validation/maxdate.validator.ngfactory.d.ts +1 -0
- package/validation/maxtime.validator.d.ts +2 -0
- package/validation/maxtime.validator.ngfactory.d.ts +1 -0
- package/validation/maxvalue.validator.d.ts +2 -0
- package/validation/maxvalue.validator.ngfactory.d.ts +1 -0
- package/validation/mindate.validator.d.ts +2 -0
- package/validation/mindate.validator.ngfactory.d.ts +1 -0
- package/validation/minfiles.validator.d.ts +2 -0
- package/validation/minfiles.validator.ngfactory.d.ts +1 -0
- package/validation/minlength.validator.d.ts +2 -0
- package/validation/minlength.validator.ngfactory.d.ts +1 -0
- package/validation/mintime.validator.d.ts +2 -0
- package/validation/mintime.validator.ngfactory.d.ts +1 -0
- package/validation/minvalue.validator.d.ts +2 -0
- package/validation/minvalue.validator.ngfactory.d.ts +1 -0
- package/validation/multilanguagerequired.validator.d.ts +3 -0
- package/validation/multilanguagerequired.validator.ngfactory.d.ts +1 -0
- package/validation/multilanguagerequiredany.validator.d.ts +3 -0
- package/validation/multilanguagerequiredany.validator.ngfactory.d.ts +1 -0
- package/validation/pattern.validator.d.ts +2 -0
- package/validation/pattern.validator.ngfactory.d.ts +1 -0
- package/validation/required.validator.d.ts +2 -0
- package/validation/required.validator.ngfactory.d.ts +1 -0
- package/validation/validation.class.d.ts +139 -0
- package/validation/validation.class.ngfactory.d.ts +1 -0
- package/validation/validationerrorcreator.d.ts +1 -0
- package/validation/validationerrorcreator.ngfactory.d.ts +1 -0
- package/validation/validationerroritem.d.ts +33 -0
- package/validation/validationerroritem.ngfactory.d.ts +1 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { EventEmitter, Injector, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { UploadState, UploadxService } from 'ngx-uploadx';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { SacFormLayoutCommon } from '../controls/layout/formlayout';
|
|
6
|
+
import { ISacIconService } from '../interfaces/ISacIconService';
|
|
7
|
+
import { ISacLocalisationService } from '../interfaces/ISacLocalisationService';
|
|
8
|
+
import { SacBaseModelControl } from './basemodelcontrol';
|
|
9
|
+
/**
|
|
10
|
+
* Base Klasse für Uploader Control
|
|
11
|
+
*/
|
|
12
|
+
export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<VALUE> implements OnInit, OnDestroy {
|
|
13
|
+
private renderer;
|
|
14
|
+
private ngZone;
|
|
15
|
+
/**
|
|
16
|
+
* File Input Control
|
|
17
|
+
*/
|
|
18
|
+
private uploadInput;
|
|
19
|
+
/**
|
|
20
|
+
* Erlaubte Dateitypen
|
|
21
|
+
*/
|
|
22
|
+
private _allowedtypes;
|
|
23
|
+
/**
|
|
24
|
+
* Files automatisch hochladen
|
|
25
|
+
*/
|
|
26
|
+
private _autoupload;
|
|
27
|
+
/**
|
|
28
|
+
* Pausieren von Uploads erlauben
|
|
29
|
+
*/
|
|
30
|
+
private _enablepause;
|
|
31
|
+
/**
|
|
32
|
+
* API Endpoint
|
|
33
|
+
*/
|
|
34
|
+
private _endpoint;
|
|
35
|
+
/**
|
|
36
|
+
* Upload Settings
|
|
37
|
+
*/
|
|
38
|
+
private options;
|
|
39
|
+
/**
|
|
40
|
+
* icon service to receive icons for uploader
|
|
41
|
+
*/
|
|
42
|
+
protected iconService: ISacIconService;
|
|
43
|
+
/**
|
|
44
|
+
* Upload Service
|
|
45
|
+
*/
|
|
46
|
+
protected uploadService: UploadxService;
|
|
47
|
+
/**
|
|
48
|
+
* Definiert das Control als Required
|
|
49
|
+
*/
|
|
50
|
+
isrequired: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Max. Dateigrösse für Files die hochgeladen werden können. 0 deaktiviert den Filter
|
|
53
|
+
*/
|
|
54
|
+
maxfilesize: number;
|
|
55
|
+
/**
|
|
56
|
+
* Resource Key für Validation Message Required bei Control
|
|
57
|
+
*/
|
|
58
|
+
validationmessagerequired: string;
|
|
59
|
+
/**
|
|
60
|
+
* Resource Key für Validation Message Required in Validation Summary
|
|
61
|
+
*/
|
|
62
|
+
validationmessagesummaryrequired: string;
|
|
63
|
+
/**
|
|
64
|
+
* Event wenn ein Error in der Komponente ausgelöst wird.
|
|
65
|
+
*/
|
|
66
|
+
onfileerror: EventEmitter<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Handling von neuen Files im Input Control
|
|
69
|
+
*/
|
|
70
|
+
fileListener: () => void;
|
|
71
|
+
/**
|
|
72
|
+
* Listener für Files
|
|
73
|
+
*/
|
|
74
|
+
listenerFn: () => void;
|
|
75
|
+
/**
|
|
76
|
+
* Service für Error Localisation
|
|
77
|
+
*/
|
|
78
|
+
lngResourceService: ISacLocalisationService;
|
|
79
|
+
/**
|
|
80
|
+
* Array von Uploads
|
|
81
|
+
*/
|
|
82
|
+
uploads: SacUploadFile[];
|
|
83
|
+
/**
|
|
84
|
+
* Constructor
|
|
85
|
+
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
86
|
+
* @param injector Injector for injecting services
|
|
87
|
+
* @param renderer angular rendering engine
|
|
88
|
+
* @param ngZone ngzone for handling external scripts
|
|
89
|
+
*/
|
|
90
|
+
constructor(formlayout: SacFormLayoutCommon, injector: Injector, renderer: Renderer2, ngZone: NgZone);
|
|
91
|
+
/**
|
|
92
|
+
* Erlaubte Dateitypen für den Upload. Format: ".xxx,.yyy,.zzz"
|
|
93
|
+
*/
|
|
94
|
+
set allowedtypes(types: string);
|
|
95
|
+
/**
|
|
96
|
+
* Files nach der Auswahl automatisch hochladen
|
|
97
|
+
*/
|
|
98
|
+
set autoupload(v: boolean);
|
|
99
|
+
/**
|
|
100
|
+
* Uploads können unterbrochen werden
|
|
101
|
+
*/
|
|
102
|
+
set enablepause(v: boolean);
|
|
103
|
+
/**
|
|
104
|
+
* Definiert den Registration Endpoint für Uploads.
|
|
105
|
+
*/
|
|
106
|
+
set endpoint(v: string);
|
|
107
|
+
/**
|
|
108
|
+
* Icon for browse button
|
|
109
|
+
*/
|
|
110
|
+
get IconBrowse(): string;
|
|
111
|
+
/**
|
|
112
|
+
* icon for continous buttons
|
|
113
|
+
*/
|
|
114
|
+
get IconContinue(): string;
|
|
115
|
+
/**
|
|
116
|
+
* icon for delete buttons
|
|
117
|
+
*/
|
|
118
|
+
get IconDelete(): string;
|
|
119
|
+
/**
|
|
120
|
+
* icon for pause buttons
|
|
121
|
+
*/
|
|
122
|
+
get IconPause(): string;
|
|
123
|
+
/**
|
|
124
|
+
* icon for upload button
|
|
125
|
+
*/
|
|
126
|
+
get IconUpload(): string;
|
|
127
|
+
get allowedtypes(): string;
|
|
128
|
+
get autoupload(): boolean;
|
|
129
|
+
get enablepause(): boolean;
|
|
130
|
+
get endpoint(): string;
|
|
131
|
+
/**
|
|
132
|
+
* Name der Datei die Hochgeladen wird
|
|
133
|
+
* @returns Observable des Dateinamens.
|
|
134
|
+
*/
|
|
135
|
+
Filename(): Observable<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Gibt an ob Queue Elemente beinhaltet
|
|
138
|
+
* @returns Elemente in der Queue
|
|
139
|
+
*/
|
|
140
|
+
HasQueueItem(): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Gibt an ob ein Upload abgeschlossen ist
|
|
143
|
+
* @returns Upload erfolgreich
|
|
144
|
+
*/
|
|
145
|
+
HasSuccessUpload(): boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Prüft ob ein Upload pausiert
|
|
148
|
+
* @returns Pausierter Upload ist vorhanden
|
|
149
|
+
*/
|
|
150
|
+
IsPaused(): boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Prüft ob in der Queue Elemente die zum Upload bereit sind vorhanden sind.
|
|
153
|
+
* @returns Elemente für Upload vorhanden
|
|
154
|
+
*/
|
|
155
|
+
IsStateToUpload(): boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Prüft ob ein Upload eines Files am laufen ist
|
|
158
|
+
* @returns Upload ist am laufen
|
|
159
|
+
*/
|
|
160
|
+
IsUploading(): boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Gibt den Uploadfortschritt zurück
|
|
163
|
+
* @returns Upload Fortschritt. Wert von 0-100
|
|
164
|
+
*/
|
|
165
|
+
Progress(): number;
|
|
166
|
+
/**
|
|
167
|
+
* Cancel single upload
|
|
168
|
+
* @param uploadId ID of File to cancel
|
|
169
|
+
*/
|
|
170
|
+
cancel(uploadId: any): void;
|
|
171
|
+
/**
|
|
172
|
+
* Cancel all Uploaded files
|
|
173
|
+
*/
|
|
174
|
+
cancelAll(): void;
|
|
175
|
+
/**
|
|
176
|
+
* Destroy des Controls
|
|
177
|
+
*/
|
|
178
|
+
ngOnDestroy(): void;
|
|
179
|
+
/**
|
|
180
|
+
* Initialisiert das Control
|
|
181
|
+
*/
|
|
182
|
+
ngOnInit(): void;
|
|
183
|
+
/**
|
|
184
|
+
* Upload Event
|
|
185
|
+
*
|
|
186
|
+
* @param uploadsOutStream Upload Item
|
|
187
|
+
*/
|
|
188
|
+
onUpload(ufile: UploadState): void;
|
|
189
|
+
/**
|
|
190
|
+
* Cancel Single File
|
|
191
|
+
* @param uploadId ID of File to Cancel
|
|
192
|
+
*/
|
|
193
|
+
pause(uploadId: any): void;
|
|
194
|
+
/**
|
|
195
|
+
* Pause all Uploads
|
|
196
|
+
*/
|
|
197
|
+
pauseAll(): void;
|
|
198
|
+
/**
|
|
199
|
+
* Upload Single File
|
|
200
|
+
*
|
|
201
|
+
* @param uploadId ID of File to Upload
|
|
202
|
+
*/
|
|
203
|
+
upload(uploadId: any): void;
|
|
204
|
+
/**
|
|
205
|
+
* Upload all queued Files
|
|
206
|
+
*/
|
|
207
|
+
uploadAll(): void;
|
|
208
|
+
/**
|
|
209
|
+
* Validiert das Upload Control
|
|
210
|
+
* @param c Control das validiert werden soll
|
|
211
|
+
*/
|
|
212
|
+
validateData(c: AbstractControl): ValidationErrors | null;
|
|
213
|
+
/**
|
|
214
|
+
* Methode kann für Controls verwendet werden, zusätzliche Validierungen bei hinzufügen der Files zu machen
|
|
215
|
+
*
|
|
216
|
+
* @param file File das hinzugefügt wurde.
|
|
217
|
+
* @returns Valdierung ist erfolgreich
|
|
218
|
+
*/
|
|
219
|
+
abstract CustomAddValidation(file: UploadState): boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Methode welche die Upload ID's in das Model setzt oder löscht
|
|
222
|
+
*
|
|
223
|
+
* @param file Type von File ID's
|
|
224
|
+
*/
|
|
225
|
+
abstract SetUploadValue(file: UploadState): void;
|
|
226
|
+
private UpdateFileCount;
|
|
227
|
+
/**
|
|
228
|
+
* Returns the number of uploaded files
|
|
229
|
+
*/
|
|
230
|
+
private UploadedFileCount;
|
|
231
|
+
/**
|
|
232
|
+
* Prüft ob die Dateierweiterung gültig ist
|
|
233
|
+
*
|
|
234
|
+
* @param filename Dateiname
|
|
235
|
+
*/
|
|
236
|
+
private isExtensionValid;
|
|
237
|
+
/**
|
|
238
|
+
* Prüft ob das File nicht zu gross ist.
|
|
239
|
+
*
|
|
240
|
+
* @param filesize Max File Size in Bytes
|
|
241
|
+
*/
|
|
242
|
+
private isFileSizeValid;
|
|
243
|
+
/**
|
|
244
|
+
* Setzt die erlaubten Datentypen für den Upload
|
|
245
|
+
*
|
|
246
|
+
* @param types Erlaubte File Extensions
|
|
247
|
+
*/
|
|
248
|
+
private setAllowedTypes;
|
|
249
|
+
/**
|
|
250
|
+
* Setzt den Upload Endpoit
|
|
251
|
+
* @param url Register URI
|
|
252
|
+
*/
|
|
253
|
+
private setEndpoint;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Klasse für den Upload einer Datei in der Upload Component
|
|
257
|
+
*/
|
|
258
|
+
export declare class SacUploadFile {
|
|
259
|
+
/**
|
|
260
|
+
* Document ID
|
|
261
|
+
*/
|
|
262
|
+
documentid: string;
|
|
263
|
+
/**
|
|
264
|
+
* Dateiname
|
|
265
|
+
*/
|
|
266
|
+
name: string;
|
|
267
|
+
/**
|
|
268
|
+
* Upload Fortschritt
|
|
269
|
+
*/
|
|
270
|
+
progress: number;
|
|
271
|
+
/**
|
|
272
|
+
* Upload Status
|
|
273
|
+
*/
|
|
274
|
+
status: string;
|
|
275
|
+
/**
|
|
276
|
+
* Upload ID
|
|
277
|
+
*/
|
|
278
|
+
uploadId: string;
|
|
279
|
+
/**
|
|
280
|
+
* Konstruktor
|
|
281
|
+
* @param ufile Upload Status
|
|
282
|
+
*/
|
|
283
|
+
constructor(ufile: UploadState);
|
|
284
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { EventEmitter, Injector, OnInit } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ISacLocalisationService } from '../../interfaces/ISacLocalisationService';
|
|
5
|
+
import { ISacValidationKeyService } from '../../interfaces/ISacValidationKeyService';
|
|
6
|
+
import { IBrowserFile } from './models/browserfile';
|
|
7
|
+
import { IBrowserNode } from './models/browsernode';
|
|
8
|
+
/**
|
|
9
|
+
* Base Component für File Browser
|
|
10
|
+
*/
|
|
11
|
+
export declare abstract class SacFileBrowserCommon implements OnInit {
|
|
12
|
+
/**
|
|
13
|
+
* Service für File Browser Zugriff (Backend)
|
|
14
|
+
*/
|
|
15
|
+
private browserService;
|
|
16
|
+
/**
|
|
17
|
+
* Icon service to receive icon classes for ui
|
|
18
|
+
*/
|
|
19
|
+
private iconService;
|
|
20
|
+
/**
|
|
21
|
+
* File welches beim starten des Browsers bereits selektiert ist
|
|
22
|
+
*/
|
|
23
|
+
private preselecedfile;
|
|
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")
|
|
27
|
+
*/
|
|
28
|
+
allowedtypes: string;
|
|
29
|
+
/**
|
|
30
|
+
* Erlaubt das löschen einer Datei
|
|
31
|
+
*/
|
|
32
|
+
allowfiledelete: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Erlaubt das umbenennen einer Datei
|
|
35
|
+
*/
|
|
36
|
+
allowfilerename: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Erlaubt den Upload von Dateien
|
|
39
|
+
*/
|
|
40
|
+
allowfileupload: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Erlaubt das erstellen eines neuen Ordners
|
|
43
|
+
*/
|
|
44
|
+
allowfoldercreate: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Erlaubt das löschen eines Ordners
|
|
47
|
+
*/
|
|
48
|
+
allowfolderdelete: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Erlaubt das Umbenennen eines Ordners
|
|
51
|
+
*/
|
|
52
|
+
allowfolderrename: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* URL für Backend API
|
|
55
|
+
*/
|
|
56
|
+
apiurl: string;
|
|
57
|
+
/**
|
|
58
|
+
* Output Emitter wenn File selektiert wird.
|
|
59
|
+
*/
|
|
60
|
+
file: EventEmitter<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Service für Error Localisation
|
|
63
|
+
*/
|
|
64
|
+
lngResourceService: ISacLocalisationService;
|
|
65
|
+
/**
|
|
66
|
+
* Root Node Item für Tree
|
|
67
|
+
*/
|
|
68
|
+
rootNode: IBrowserNode;
|
|
69
|
+
/**
|
|
70
|
+
* Selected File Name
|
|
71
|
+
*/
|
|
72
|
+
selectedFile: string;
|
|
73
|
+
/**
|
|
74
|
+
* Selected File Item
|
|
75
|
+
*/
|
|
76
|
+
selectedFileItem: IBrowserFile;
|
|
77
|
+
/**
|
|
78
|
+
* Selected Node Item
|
|
79
|
+
*/
|
|
80
|
+
selectedNode: IBrowserNode;
|
|
81
|
+
/**
|
|
82
|
+
* Liste von Uploads
|
|
83
|
+
*/
|
|
84
|
+
uploads: string[];
|
|
85
|
+
/**
|
|
86
|
+
* Service to receive standard validation message keys and texts
|
|
87
|
+
*/
|
|
88
|
+
validationKeyService: ISacValidationKeyService;
|
|
89
|
+
/**
|
|
90
|
+
* Konstruktor
|
|
91
|
+
* @param httpclient Angular HTTP Client
|
|
92
|
+
* @param injector Service Injector
|
|
93
|
+
*/
|
|
94
|
+
constructor(httpclient: HttpClient, injector: Injector);
|
|
95
|
+
/**
|
|
96
|
+
* Setzt den Seleced Node über den Pfad
|
|
97
|
+
*/
|
|
98
|
+
set selectedfile(v: string | null);
|
|
99
|
+
/**
|
|
100
|
+
* CSS icon class for delete icon
|
|
101
|
+
* @returns css class with icon
|
|
102
|
+
*/
|
|
103
|
+
get iconDelete(): string;
|
|
104
|
+
/**
|
|
105
|
+
* CSS icon class for edit icon
|
|
106
|
+
* @returns css class with icon
|
|
107
|
+
*/
|
|
108
|
+
get iconEdit(): string;
|
|
109
|
+
/**
|
|
110
|
+
* CSS icon for folders in tree there are collabsed
|
|
111
|
+
* @returns css class with icon
|
|
112
|
+
*/
|
|
113
|
+
get iconFolderCollabsed(): string;
|
|
114
|
+
/**
|
|
115
|
+
* CSS icon class for folders without subfolders
|
|
116
|
+
* @returns css class with icon
|
|
117
|
+
*/
|
|
118
|
+
get iconFolderEmpty(): string;
|
|
119
|
+
/**
|
|
120
|
+
* CSS icon for new folders action
|
|
121
|
+
* @returns css class with icon
|
|
122
|
+
*/
|
|
123
|
+
get iconFolderNew(): string;
|
|
124
|
+
/**
|
|
125
|
+
* CSS icon for folders in tree there are expanded
|
|
126
|
+
* @returns css class with icon
|
|
127
|
+
*/
|
|
128
|
+
get iconFolderOpen(): string;
|
|
129
|
+
/**
|
|
130
|
+
* CSS icon class for refresh icon
|
|
131
|
+
* @returns css class with icon
|
|
132
|
+
*/
|
|
133
|
+
get iconRefresh(): string;
|
|
134
|
+
/**
|
|
135
|
+
* Getter für Selected File. Ist an Input Property gebunden
|
|
136
|
+
*/
|
|
137
|
+
get selectedfile(): string | null;
|
|
138
|
+
/**
|
|
139
|
+
* HostListener welcher den Edit Mode bei allen Files und Nodes beendet.
|
|
140
|
+
*/
|
|
141
|
+
exitEditMode(targetElement: any): void;
|
|
142
|
+
/**
|
|
143
|
+
* Löscht ein File
|
|
144
|
+
* @param file File welches gelöscht werden soll
|
|
145
|
+
*/
|
|
146
|
+
deleteFile(file: IBrowserFile): void;
|
|
147
|
+
/**
|
|
148
|
+
* Löscht einen Node
|
|
149
|
+
* @param node Node welcher gelöscht werden soll
|
|
150
|
+
*/
|
|
151
|
+
deleteNode(node: IBrowserNode): void;
|
|
152
|
+
/**
|
|
153
|
+
* Setzt ein File in den Edit Mode
|
|
154
|
+
* @param file File welches in den Edit Mode gesetzt werden soll
|
|
155
|
+
*/
|
|
156
|
+
editFile(file: IBrowserFile): void;
|
|
157
|
+
/**
|
|
158
|
+
* Setzt einen Node in den Edit Mode
|
|
159
|
+
* @param node Node welcher bearbeitet werden soll
|
|
160
|
+
*/
|
|
161
|
+
editNode(node: IBrowserNode): void;
|
|
162
|
+
/**
|
|
163
|
+
* Erzeugt einen neuen Node im Tree
|
|
164
|
+
* @param node Node unter welchem ein neuer Node erstellt werden soll
|
|
165
|
+
*/
|
|
166
|
+
newNode(node: IBrowserNode): void;
|
|
167
|
+
/**
|
|
168
|
+
* Init Event der Komponente
|
|
169
|
+
*/
|
|
170
|
+
ngOnInit(): void;
|
|
171
|
+
/**
|
|
172
|
+
* Aktualisiert den Node
|
|
173
|
+
*/
|
|
174
|
+
refreshNode(node: IBrowserNode): void;
|
|
175
|
+
/**
|
|
176
|
+
* Methode wenn eine Datei umbenannt werden soll
|
|
177
|
+
* @param file File welches umbenannt werden soll
|
|
178
|
+
* @param newFilename Neuer Dateiname
|
|
179
|
+
*/
|
|
180
|
+
renameFile(file: IBrowserFile, newFilename: string): void;
|
|
181
|
+
/**
|
|
182
|
+
* Methode wenn ein Node umbenannt werden soll
|
|
183
|
+
* @param node Node welcher umbenannt werden soll
|
|
184
|
+
* @param newFoldername Neuer Ordnername
|
|
185
|
+
*/
|
|
186
|
+
renameNode(node: IBrowserNode, newFoldername: string): void;
|
|
187
|
+
/**
|
|
188
|
+
* Methode wenn ein File selektiert wird
|
|
189
|
+
* @param file File welches selektiert wird
|
|
190
|
+
*/
|
|
191
|
+
selectFile(file: IBrowserFile): void;
|
|
192
|
+
/**
|
|
193
|
+
* Methode wenn ein Node selektiert wird
|
|
194
|
+
* @param node Node welcher selektiert werden soll
|
|
195
|
+
*/
|
|
196
|
+
selectNode(node: IBrowserNode): void;
|
|
197
|
+
/**
|
|
198
|
+
* Expand/Collabse Methode für Nodes
|
|
199
|
+
* @param node Node welcher geöffnet oder geschlossen werden soll
|
|
200
|
+
*/
|
|
201
|
+
switchExpandNode(node: IBrowserNode): void;
|
|
202
|
+
/**
|
|
203
|
+
* Methode die Aufgerufen werden muss, wenn ein Upload beendet ist.
|
|
204
|
+
* @param param Parameter des hochgeladenen Files
|
|
205
|
+
*/
|
|
206
|
+
uploadComplete(node: IBrowserNode, uploadIdList: string[]): void;
|
|
207
|
+
/**
|
|
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
|
|
223
|
+
*/
|
|
224
|
+
abstract uploadedFileMoved(uploadid: string): void;
|
|
225
|
+
/**
|
|
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.
|
|
228
|
+
*/
|
|
229
|
+
private clearNewChildNodes;
|
|
230
|
+
/**
|
|
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
|
|
234
|
+
*/
|
|
235
|
+
private fillPath;
|
|
236
|
+
/**
|
|
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
|
|
241
|
+
*/
|
|
242
|
+
private findParentNode;
|
|
243
|
+
/**
|
|
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
|
|
248
|
+
*/
|
|
249
|
+
private findSelectedNodeByPath;
|
|
250
|
+
/**
|
|
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
|
|
256
|
+
*/
|
|
257
|
+
private findSelectedNodeByPathArray;
|
|
258
|
+
/**
|
|
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
|
|
261
|
+
*/
|
|
262
|
+
private resetNodeEditMode;
|
|
263
|
+
/**
|
|
264
|
+
* Setzt den Pfad in allen Nodes
|
|
265
|
+
*/
|
|
266
|
+
private setPathToAllNodes;
|
|
267
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface für Datei Items in File Browser Component
|
|
3
|
+
*/
|
|
4
|
+
export interface IBrowserFile {
|
|
5
|
+
/**
|
|
6
|
+
* Dateiname
|
|
7
|
+
*/
|
|
8
|
+
Filename: string;
|
|
9
|
+
/**
|
|
10
|
+
* Grösse der Datei
|
|
11
|
+
*/
|
|
12
|
+
Size: number;
|
|
13
|
+
/**
|
|
14
|
+
* Item wird bearbeitet
|
|
15
|
+
*/
|
|
16
|
+
IsEditMode: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Klasse für API Request zum löschen eines Files
|
|
3
|
+
*/
|
|
4
|
+
export declare class BrowserFileDeleteRequest {
|
|
5
|
+
/**
|
|
6
|
+
* Konstruktor
|
|
7
|
+
* @param init Initale Werte der Klasse
|
|
8
|
+
*/
|
|
9
|
+
constructor(init?: Partial<BrowserFileDeleteRequest>);
|
|
10
|
+
/**
|
|
11
|
+
* Pfad
|
|
12
|
+
*/
|
|
13
|
+
Path: string;
|
|
14
|
+
/**
|
|
15
|
+
* Erlaubte Dateitypen
|
|
16
|
+
*/
|
|
17
|
+
AllowedTypes: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Klasse für den API Request zum umbenennen einer Datei
|
|
3
|
+
*/
|
|
4
|
+
export declare class BrowserFileRenameRequest {
|
|
5
|
+
/**
|
|
6
|
+
* Konstruktor
|
|
7
|
+
* @param init Initiale Werte
|
|
8
|
+
*/
|
|
9
|
+
constructor(init?: Partial<BrowserFileRenameRequest>);
|
|
10
|
+
/**
|
|
11
|
+
* Pfad zu Datei
|
|
12
|
+
*/
|
|
13
|
+
Path: string;
|
|
14
|
+
/**
|
|
15
|
+
* Neuer Dateiname
|
|
16
|
+
*/
|
|
17
|
+
NewFilename: string;
|
|
18
|
+
/**
|
|
19
|
+
* Erlaubte Dateierweiterungen
|
|
20
|
+
*/
|
|
21
|
+
AllowedTypes: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request zum speichern einer hochgeladenen Datei
|
|
3
|
+
*/
|
|
4
|
+
export declare class BrowserFileSaveRequest {
|
|
5
|
+
/**
|
|
6
|
+
* Constructor
|
|
7
|
+
* @param init Initale Parameter
|
|
8
|
+
*/
|
|
9
|
+
constructor(init?: Partial<BrowserFileSaveRequest>);
|
|
10
|
+
/**
|
|
11
|
+
* Pfad in welchem der Upload gespeichert werden soll
|
|
12
|
+
*/
|
|
13
|
+
Path: string;
|
|
14
|
+
/**
|
|
15
|
+
* Upload ID
|
|
16
|
+
*/
|
|
17
|
+
UploadId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Erlaubte Dateitypen
|
|
20
|
+
*/
|
|
21
|
+
AllowedTypes: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IBrowserFile } from './browserfile';
|
|
2
|
+
/**
|
|
3
|
+
* Interface für Node in File Browser Component
|
|
4
|
+
*/
|
|
5
|
+
export interface IBrowserNode {
|
|
6
|
+
/**
|
|
7
|
+
* Name des Nodes
|
|
8
|
+
*/
|
|
9
|
+
Name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Child Nodes
|
|
12
|
+
*/
|
|
13
|
+
ChildNodes: IBrowserNode[];
|
|
14
|
+
/**
|
|
15
|
+
* File Items in diesem Node
|
|
16
|
+
*/
|
|
17
|
+
Files: IBrowserFile[];
|
|
18
|
+
/**
|
|
19
|
+
* Pfad für diesen Node
|
|
20
|
+
*/
|
|
21
|
+
Path: string;
|
|
22
|
+
/**
|
|
23
|
+
* Node ist ausgeklappt
|
|
24
|
+
*/
|
|
25
|
+
IsExpanded: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Node wird bearbeitet
|
|
28
|
+
*/
|
|
29
|
+
IsEditMode: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Node wurde erzeugt aber noch nicht gespeichert
|
|
32
|
+
*/
|
|
33
|
+
IsNewNode: boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|