@verisoft/ui-core 18.5.0 → 18.6.0
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/esm2022/index.mjs +7 -0
- package/esm2022/lib/common/angular-helper.mjs +23 -0
- package/esm2022/lib/common/constants.mjs +4 -0
- package/esm2022/lib/common/control.models.mjs +63 -0
- package/esm2022/lib/common/datasource-component.model.mjs +14 -0
- package/esm2022/lib/common/deactivate-guard.model.mjs +2 -0
- package/esm2022/lib/common/download-file.mjs +13 -0
- package/esm2022/lib/common/filter.mjs +7 -0
- package/esm2022/lib/common/icons.mjs +2 -0
- package/esm2022/lib/common/index.mjs +11 -0
- package/esm2022/lib/common/notificable-property.model.mjs +2 -0
- package/esm2022/lib/common/rxjs.mjs +11 -0
- package/esm2022/lib/components/action-button-group/action-button-group.model.mjs +3 -0
- package/esm2022/lib/components/action-button-group/action-button.model.mjs +2 -0
- package/esm2022/lib/components/action-button-group/index.mjs +3 -0
- package/esm2022/lib/components/base-form/base-form-input.component.mjs +100 -0
- package/esm2022/lib/components/base-form/base-form.component.mjs +187 -0
- package/esm2022/lib/components/base-form/directives/detail-store.directive.mjs +163 -0
- package/esm2022/lib/components/base-form/index.mjs +5 -0
- package/esm2022/lib/components/base-form/models/base-form-input.models.mjs +7 -0
- package/esm2022/lib/components/base-form/models/base-form.models.mjs +10 -0
- package/esm2022/lib/components/base-form/models/index.mjs +3 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.model.mjs +3 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.service.mjs +16 -0
- package/esm2022/lib/components/breadcrumb/breadcrumbcore.component.mjs +88 -0
- package/esm2022/lib/components/breadcrumb/index.mjs +4 -0
- package/esm2022/lib/components/button/button.model.mjs +3 -0
- package/esm2022/lib/components/button/index.mjs +2 -0
- package/esm2022/lib/components/calendar/calendar.model.mjs +3 -0
- package/esm2022/lib/components/calendar/index.mjs +2 -0
- package/esm2022/lib/components/checkbox/checkbox.model.mjs +3 -0
- package/esm2022/lib/components/checkbox/index.mjs +2 -0
- package/esm2022/lib/components/confirm-dialog/confirm-dialog.model.mjs +3 -0
- package/esm2022/lib/components/confirm-dialog/index.mjs +2 -0
- package/esm2022/lib/components/dropdown/dropdown.model.mjs +3 -0
- package/esm2022/lib/components/dropdown/index.mjs +2 -0
- package/esm2022/lib/components/dynamic-component/dynamic-component.model.mjs +2 -0
- package/esm2022/lib/components/dynamic-component/index.mjs +2 -0
- package/esm2022/lib/components/filter/filter.model.mjs +3 -0
- package/esm2022/lib/components/filter/index.mjs +2 -0
- package/esm2022/lib/components/form-field/form-field.model.mjs +3 -0
- package/esm2022/lib/components/form-field/index.mjs +2 -0
- package/esm2022/lib/components/generic-field/generic-field.model.mjs +3 -0
- package/esm2022/lib/components/generic-field/index.mjs +2 -0
- package/esm2022/lib/components/generic-form/generic-form.component.mjs +10 -0
- package/esm2022/lib/components/generic-form/index.mjs +2 -0
- package/esm2022/lib/components/header/header.model.mjs +4 -0
- package/esm2022/lib/components/header/index.mjs +2 -0
- package/esm2022/lib/components/icons/icons.component.mjs +29 -0
- package/esm2022/lib/components/icons/icons.model.mjs +3 -0
- package/esm2022/lib/components/icons/index.mjs +3 -0
- package/esm2022/lib/components/index.mjs +36 -0
- package/esm2022/lib/components/input-group/index.mjs +2 -0
- package/esm2022/lib/components/input-group/input-group.model.mjs +3 -0
- package/esm2022/lib/components/loader/index.mjs +2 -0
- package/esm2022/lib/components/loader/loader.model.mjs +3 -0
- package/esm2022/lib/components/multiselect/index.mjs +2 -0
- package/esm2022/lib/components/multiselect/mutiselect.model.mjs +3 -0
- package/esm2022/lib/components/number-input/index.mjs +2 -0
- package/esm2022/lib/components/number-input/number-input.model.mjs +3 -0
- package/esm2022/lib/components/page-header/index.mjs +4 -0
- package/esm2022/lib/components/page-header/page-header.model.mjs +3 -0
- package/esm2022/lib/components/page-header/page-header.service.mjs +16 -0
- package/esm2022/lib/components/page-header/page-headercore.component.mjs +52 -0
- package/esm2022/lib/components/password/index.mjs +2 -0
- package/esm2022/lib/components/password/password.model.mjs +11 -0
- package/esm2022/lib/components/radiobutton/index.mjs +2 -0
- package/esm2022/lib/components/radiobutton/radiobutton.model.mjs +3 -0
- package/esm2022/lib/components/section/index.mjs +2 -0
- package/esm2022/lib/components/section/section.model.mjs +3 -0
- package/esm2022/lib/components/side-menu/directives/side-menu-service.directive.mjs +31 -0
- package/esm2022/lib/components/side-menu/index.mjs +5 -0
- package/esm2022/lib/components/side-menu/services/side-menu-provider.service.mjs +25 -0
- package/esm2022/lib/components/side-menu/services/side-menu.service.mjs +50 -0
- package/esm2022/lib/components/side-menu/side-menu.model.mjs +6 -0
- package/esm2022/lib/components/slider/index.mjs +2 -0
- package/esm2022/lib/components/slider/slider.model.mjs +3 -0
- package/esm2022/lib/components/snackbar/index.mjs +2 -0
- package/esm2022/lib/components/snackbar/snackbar.model.mjs +3 -0
- package/esm2022/lib/components/stepper/index.mjs +2 -0
- package/esm2022/lib/components/stepper/stepper.model.mjs +3 -0
- package/esm2022/lib/components/switch/index.mjs +2 -0
- package/esm2022/lib/components/switch/switch.model.mjs +3 -0
- package/esm2022/lib/components/tab-view/index.mjs +2 -0
- package/esm2022/lib/components/tab-view/tab-view.model.mjs +3 -0
- package/esm2022/lib/components/table/column-configuration.mjs +32 -0
- package/esm2022/lib/components/table/index.mjs +5 -0
- package/esm2022/lib/components/table/table-builder.mjs +68 -0
- package/esm2022/lib/components/table/table-column.directive.mjs +86 -0
- package/esm2022/lib/components/table/table.models.mjs +150 -0
- package/esm2022/lib/components/table-filter/index.mjs +2 -0
- package/esm2022/lib/components/table-filter/table-filter.model.mjs +3 -0
- package/esm2022/lib/components/textarea/index.mjs +2 -0
- package/esm2022/lib/components/textarea/textarea.model.mjs +3 -0
- package/esm2022/lib/components/textfield/index.mjs +2 -0
- package/esm2022/lib/components/textfield/textfield.model.mjs +3 -0
- package/esm2022/lib/components/tristatecheckbox/index.mjs +2 -0
- package/esm2022/lib/components/tristatecheckbox/tristatecheckbox.model.mjs +3 -0
- package/esm2022/lib/components/unsubscribe.component.mjs +16 -0
- package/esm2022/lib/directives/datasource.directive.mjs +175 -0
- package/esm2022/lib/directives/index.mjs +5 -0
- package/esm2022/lib/directives/shortcut.directive.mjs +46 -0
- package/esm2022/lib/directives/table-datasource.directive.mjs +124 -0
- package/esm2022/lib/directives/table-filter.directive.mjs +56 -0
- package/esm2022/lib/format/format.mjs +63 -0
- package/esm2022/lib/pipes/error/error.codes.mjs +10 -0
- package/esm2022/lib/pipes/error/error.models.mjs +21 -0
- package/esm2022/lib/pipes/error/error.pipe.mjs +31 -0
- package/esm2022/lib/pipes/error/warning.codes.mjs +4 -0
- package/esm2022/lib/pipes/error/warning.pipe.mjs +31 -0
- package/esm2022/lib/pipes/helper/enumToList.pipe.mjs +22 -0
- package/esm2022/lib/pipes/index.mjs +8 -0
- package/esm2022/lib/pipes/keyOrFn/keyOrFn.pipe.mjs +31 -0
- package/esm2022/lib/services/confirm-dialog.service.mjs +45 -0
- package/esm2022/lib/services/index.mjs +5 -0
- package/esm2022/lib/services/leave-form.service.mjs +52 -0
- package/esm2022/lib/services/screen-size.service.mjs +29 -0
- package/esm2022/lib/services/table.service.mjs +27 -0
- package/esm2022/verisoft-ui-core.mjs +5 -0
- package/fesm2022/verisoft-ui-core.mjs +2014 -0
- package/fesm2022/verisoft-ui-core.mjs.map +1 -0
- package/{src/index.ts → index.d.ts} +6 -6
- package/lib/common/angular-helper.d.ts +1 -0
- package/lib/common/constants.d.ts +3 -0
- package/lib/common/control.models.d.ts +62 -0
- package/lib/common/datasource-component.model.d.ts +19 -0
- package/{src/lib/common/deactivate-guard.model.ts → lib/common/deactivate-guard.model.d.ts} +4 -5
- package/lib/common/download-file.d.ts +2 -0
- package/lib/common/filter.d.ts +1 -0
- package/{src/lib/common/icons.ts → lib/common/icons.d.ts} +34 -34
- package/{src/lib/common/index.ts → lib/common/index.d.ts} +10 -10
- package/{src/lib/common/notificable-property.model.ts → lib/common/notificable-property.model.d.ts} +4 -5
- package/lib/common/rxjs.d.ts +2 -0
- package/lib/components/action-button-group/action-button-group.model.d.ts +12 -0
- package/lib/components/action-button-group/action-button.model.d.ts +14 -0
- package/{src/lib/components/action-button-group/index.ts → lib/components/action-button-group/index.d.ts} +2 -2
- package/lib/components/base-form/base-form-input.component.d.ts +30 -0
- package/lib/components/base-form/base-form.component.d.ts +50 -0
- package/lib/components/base-form/directives/detail-store.directive.d.ts +35 -0
- package/{src/lib/components/base-form/index.ts → lib/components/base-form/index.d.ts} +4 -4
- package/lib/components/base-form/models/base-form-input.models.d.ts +7 -0
- package/lib/components/base-form/models/base-form.models.d.ts +18 -0
- package/{src/lib/components/base-form/models/index.ts → lib/components/base-form/models/index.d.ts} +2 -2
- package/{src/lib/components/breadcrumb/breadcrumb.model.ts → lib/components/breadcrumb/breadcrumb.model.d.ts} +16 -21
- package/lib/components/breadcrumb/breadcrumb.service.d.ts +8 -0
- package/lib/components/breadcrumb/breadcrumbcore.component.d.ts +30 -0
- package/lib/components/breadcrumb/index.d.ts +3 -0
- package/{src/lib/components/button/button.model.ts → lib/components/button/button.model.d.ts} +17 -21
- package/lib/components/button/index.d.ts +1 -0
- package/{src/lib/components/calendar/calendar.model.ts → lib/components/calendar/calendar.model.d.ts} +12 -16
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/checkbox/checkbox.model.d.ts +4 -0
- package/lib/components/checkbox/index.d.ts +1 -0
- package/lib/components/confirm-dialog/confirm-dialog.model.d.ts +25 -0
- package/lib/components/confirm-dialog/index.d.ts +1 -0
- package/{src/lib/components/dropdown/dropdown.model.ts → lib/components/dropdown/dropdown.model.d.ts} +12 -16
- package/lib/components/dropdown/index.d.ts +1 -0
- package/lib/components/dynamic-component/dynamic-component.model.d.ts +3 -0
- package/lib/components/dynamic-component/index.d.ts +1 -0
- package/lib/components/filter/filter.model.d.ts +13 -0
- package/{src/lib/components/filter/index.ts → lib/components/filter/index.d.ts} +1 -1
- package/{src/lib/components/form-field/form-field.model.ts → lib/components/form-field/form-field.model.d.ts} +11 -15
- package/lib/components/form-field/index.d.ts +1 -0
- package/{src/lib/components/generic-field/generic-field.model.ts → lib/components/generic-field/generic-field.model.d.ts} +6 -10
- package/lib/components/generic-field/index.d.ts +1 -0
- package/lib/components/generic-form/generic-form.component.d.ts +30 -0
- package/{src/lib/components/generic-form/index.ts → lib/components/generic-form/index.d.ts} +1 -1
- package/{src/lib/components/header/header.model.ts → lib/components/header/header.model.d.ts} +11 -18
- package/lib/components/header/index.d.ts +1 -0
- package/lib/components/icons/icons.component.d.ts +6 -0
- package/lib/components/icons/icons.model.d.ts +6 -0
- package/lib/components/icons/index.d.ts +2 -0
- package/{src/lib/components/index.ts → lib/components/index.d.ts} +35 -35
- package/lib/components/input-group/index.d.ts +1 -0
- package/{src/lib/components/input-group/input-group.model.ts → lib/components/input-group/input-group.model.d.ts} +12 -17
- package/lib/components/loader/index.d.ts +1 -0
- package/lib/components/loader/loader.model.d.ts +3 -0
- package/lib/components/multiselect/index.d.ts +1 -0
- package/{src/lib/components/multiselect/mutiselect.model.ts → lib/components/multiselect/mutiselect.model.d.ts} +9 -13
- package/lib/components/number-input/index.d.ts +1 -0
- package/{src/lib/components/number-input/number-input.model.ts → lib/components/number-input/number-input.model.d.ts} +10 -14
- package/{src/lib/components/page-header/index.ts → lib/components/page-header/index.d.ts} +3 -3
- package/{src/lib/components/page-header/page-header.model.ts → lib/components/page-header/page-header.model.d.ts} +7 -11
- package/lib/components/page-header/page-header.service.d.ts +8 -0
- package/lib/components/page-header/page-headercore.component.d.ts +20 -0
- package/lib/components/password/index.d.ts +1 -0
- package/{src/lib/components/password/password.model.ts → lib/components/password/password.model.d.ts} +19 -25
- package/lib/components/radiobutton/index.d.ts +1 -0
- package/{src/lib/components/radiobutton/radiobutton.model.ts → lib/components/radiobutton/radiobutton.model.d.ts} +11 -16
- package/lib/components/section/index.d.ts +1 -0
- package/{src/lib/components/section/section.model.ts → lib/components/section/section.model.d.ts} +7 -11
- package/lib/components/side-menu/directives/side-menu-service.directive.d.ts +11 -0
- package/{src/lib/components/side-menu/index.ts → lib/components/side-menu/index.d.ts} +4 -4
- package/lib/components/side-menu/services/side-menu-provider.service.d.ts +10 -0
- package/lib/components/side-menu/services/side-menu.service.d.ts +15 -0
- package/lib/components/side-menu/side-menu.model.d.ts +42 -0
- package/lib/components/slider/index.d.ts +1 -0
- package/{src/lib/components/slider/slider.model.ts → lib/components/slider/slider.model.d.ts} +9 -13
- package/lib/components/snackbar/index.d.ts +1 -0
- package/lib/components/snackbar/snackbar.model.d.ts +3 -0
- package/lib/components/stepper/index.d.ts +1 -0
- package/{src/lib/components/stepper/stepper.model.ts → lib/components/stepper/stepper.model.d.ts} +19 -24
- package/lib/components/switch/index.d.ts +1 -0
- package/lib/components/switch/switch.model.d.ts +4 -0
- package/lib/components/tab-view/index.d.ts +1 -0
- package/{src/lib/components/tab-view/tab-view.model.ts → lib/components/tab-view/tab-view.model.d.ts} +17 -22
- package/lib/components/table/column-configuration.d.ts +12 -0
- package/{src/lib/components/table/index.ts → lib/components/table/index.d.ts} +4 -4
- package/lib/components/table/table-builder.d.ts +15 -0
- package/lib/components/table/table-column.directive.d.ts +25 -0
- package/lib/components/table/table.models.d.ts +132 -0
- package/lib/components/table-filter/index.d.ts +1 -0
- package/{src/lib/components/table-filter/table-filter.model.ts → lib/components/table-filter/table-filter.model.d.ts} +17 -22
- package/lib/components/textarea/index.d.ts +1 -0
- package/{src/lib/components/textarea/textarea.model.ts → lib/components/textarea/textarea.model.d.ts} +9 -13
- package/lib/components/textfield/index.d.ts +1 -0
- package/{src/lib/components/textfield/textfield.model.ts → lib/components/textfield/textfield.model.d.ts} +9 -13
- package/lib/components/tristatecheckbox/index.d.ts +1 -0
- package/lib/components/tristatecheckbox/tristatecheckbox.model.d.ts +4 -0
- package/lib/components/unsubscribe.component.d.ts +9 -0
- package/lib/directives/datasource.directive.d.ts +32 -0
- package/{src/lib/directives/index.ts → lib/directives/index.d.ts} +4 -4
- package/lib/directives/shortcut.directive.d.ts +11 -0
- package/lib/directives/table-datasource.directive.d.ts +29 -0
- package/lib/directives/table-filter.directive.d.ts +17 -0
- package/lib/format/format.d.ts +9 -0
- package/lib/pipes/error/error.codes.d.ts +5 -0
- package/lib/pipes/error/error.models.d.ts +8 -0
- package/lib/pipes/error/error.pipe.d.ts +8 -0
- package/lib/pipes/error/warning.codes.d.ts +5 -0
- package/lib/pipes/error/warning.pipe.d.ts +8 -0
- package/lib/pipes/helper/enumToList.pipe.d.ts +7 -0
- package/{src/lib/pipes/index.ts → lib/pipes/index.d.ts} +7 -7
- package/lib/pipes/keyOrFn/keyOrFn.pipe.d.ts +7 -0
- package/lib/services/confirm-dialog.service.d.ts +12 -0
- package/{src/lib/services/index.ts → lib/services/index.d.ts} +4 -4
- package/lib/services/leave-form.service.d.ts +13 -0
- package/lib/services/screen-size.service.d.ts +10 -0
- package/lib/services/table.service.d.ts +13 -0
- package/package.json +35 -19
- package/.eslintrc.json +0 -48
- package/jest.config.ts +0 -21
- package/ng-package.json +0 -7
- package/project.json +0 -43
- package/src/lib/common/angular-helper.ts +0 -44
- package/src/lib/common/constants.ts +0 -5
- package/src/lib/common/control.models.ts +0 -71
- package/src/lib/common/datasource-component.model.spec.ts +0 -42
- package/src/lib/common/datasource-component.model.ts +0 -43
- package/src/lib/common/download-file.ts +0 -20
- package/src/lib/common/filter.ts +0 -7
- package/src/lib/common/rxjs.spec.ts +0 -58
- package/src/lib/common/rxjs.ts +0 -21
- package/src/lib/components/action-button-group/action-button-group.model.ts +0 -15
- package/src/lib/components/action-button-group/action-button.model.ts +0 -15
- package/src/lib/components/base-form/base-form-input.component.ts +0 -121
- package/src/lib/components/base-form/base-form.component.ts +0 -236
- package/src/lib/components/base-form/directives/detail-store.directive.ts +0 -219
- package/src/lib/components/base-form/models/base-form-input.models.ts +0 -11
- package/src/lib/components/base-form/models/base-form.models.ts +0 -31
- package/src/lib/components/breadcrumb/breadcrumb.service.ts +0 -9
- package/src/lib/components/breadcrumb/breadcrumbcore.component.ts +0 -115
- package/src/lib/components/breadcrumb/index.ts +0 -3
- package/src/lib/components/button/index.ts +0 -1
- package/src/lib/components/calendar/index.ts +0 -1
- package/src/lib/components/checkbox/checkbox.model.ts +0 -8
- package/src/lib/components/checkbox/index.ts +0 -1
- package/src/lib/components/confirm-dialog/confirm-dialog.model.ts +0 -31
- package/src/lib/components/confirm-dialog/index.ts +0 -1
- package/src/lib/components/dropdown/index.ts +0 -1
- package/src/lib/components/dynamic-component/dynamic-component.model.ts +0 -2
- package/src/lib/components/dynamic-component/index.ts +0 -1
- package/src/lib/components/filter/filter.model.ts +0 -17
- package/src/lib/components/form-field/index.ts +0 -1
- package/src/lib/components/generic-field/index.ts +0 -1
- package/src/lib/components/generic-form/generic-form.component.ts +0 -33
- package/src/lib/components/header/index.ts +0 -1
- package/src/lib/components/icons/icons.component.ts +0 -17
- package/src/lib/components/icons/icons.model.ts +0 -10
- package/src/lib/components/icons/index.ts +0 -2
- package/src/lib/components/input-group/index.ts +0 -1
- package/src/lib/components/loader/index.ts +0 -1
- package/src/lib/components/loader/loader.model.ts +0 -7
- package/src/lib/components/multiselect/index.ts +0 -1
- package/src/lib/components/number-input/index.ts +0 -1
- package/src/lib/components/page-header/page-header.service.ts +0 -9
- package/src/lib/components/page-header/page-headercore.component.ts +0 -40
- package/src/lib/components/password/index.ts +0 -1
- package/src/lib/components/radiobutton/index.ts +0 -1
- package/src/lib/components/section/index.ts +0 -1
- package/src/lib/components/side-menu/directives/side-menu-service.directive.ts +0 -31
- package/src/lib/components/side-menu/services/side-menu-provider.service.ts +0 -13
- package/src/lib/components/side-menu/services/side-menu.service.ts +0 -62
- package/src/lib/components/side-menu/side-menu.model.ts +0 -67
- package/src/lib/components/slider/index.ts +0 -1
- package/src/lib/components/snackbar/index.ts +0 -1
- package/src/lib/components/snackbar/snackbar.model.ts +0 -7
- package/src/lib/components/stepper/index.ts +0 -1
- package/src/lib/components/switch/index.ts +0 -1
- package/src/lib/components/switch/switch.model.ts +0 -8
- package/src/lib/components/tab-view/index.ts +0 -1
- package/src/lib/components/table/column-configuration.ts +0 -38
- package/src/lib/components/table/table-builder.ts +0 -93
- package/src/lib/components/table/table-column.directive.ts +0 -62
- package/src/lib/components/table/table.models.ts +0 -261
- package/src/lib/components/table-filter/index.ts +0 -1
- package/src/lib/components/textarea/index.ts +0 -1
- package/src/lib/components/textfield/index.ts +0 -1
- package/src/lib/components/tristatecheckbox/index.ts +0 -1
- package/src/lib/components/tristatecheckbox/tristatecheckbox.model.ts +0 -8
- package/src/lib/components/unsubscribe.component.ts +0 -12
- package/src/lib/directives/datasource.directive.ts +0 -275
- package/src/lib/directives/shortcut.directive.ts +0 -37
- package/src/lib/directives/table-datasource.directive.ts +0 -184
- package/src/lib/directives/table-filter.directive.ts +0 -69
- package/src/lib/format/format.ts +0 -74
- package/src/lib/pipes/error/error.codes.ts +0 -11
- package/src/lib/pipes/error/error.models.ts +0 -27
- package/src/lib/pipes/error/error.pipe.ts +0 -27
- package/src/lib/pipes/error/warning.codes.ts +0 -5
- package/src/lib/pipes/error/warning.pipe.ts +0 -27
- package/src/lib/pipes/helper/enumToList.pipe.ts +0 -16
- package/src/lib/pipes/keyOrFn/keyOrFn.pipe.ts +0 -23
- package/src/lib/services/confirm-dialog.service.ts +0 -44
- package/src/lib/services/leave-form.service.ts +0 -53
- package/src/lib/services/screen-size.service.ts +0 -25
- package/src/lib/services/table.service.ts +0 -22
- package/src/test-setup.ts +0 -8
- package/tsconfig.json +0 -30
- package/tsconfig.lib.json +0 -17
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -16
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './angular-helper';
|
|
2
|
-
export * from './control.models';
|
|
3
|
-
export * from './constants';
|
|
4
|
-
export * from './datasource-component.model';
|
|
5
|
-
export * from './filter';
|
|
6
|
-
export * from './notificable-property.model';
|
|
7
|
-
export * from './rxjs';
|
|
8
|
-
export * from './icons';
|
|
9
|
-
export * from './download-file';
|
|
10
|
-
export * from './deactivate-guard.model'
|
|
1
|
+
export * from './angular-helper';
|
|
2
|
+
export * from './control.models';
|
|
3
|
+
export * from './constants';
|
|
4
|
+
export * from './datasource-component.model';
|
|
5
|
+
export * from './filter';
|
|
6
|
+
export * from './notificable-property.model';
|
|
7
|
+
export * from './rxjs';
|
|
8
|
+
export * from './icons';
|
|
9
|
+
export * from './download-file';
|
|
10
|
+
export * from './deactivate-guard.model';
|
package/{src/lib/common/notificable-property.model.ts → lib/common/notificable-property.model.d.ts}
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
export interface NotificableProperty {
|
|
3
|
+
propertyChanged: Observable<unknown>;
|
|
4
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { IconPositionType } from '../../common';
|
|
3
|
+
import { ActionButton } from './action-button.model';
|
|
4
|
+
export declare const ACTION_BUTTON_GROUP_COMPONENT_TOKEN: InjectionToken<ActionButtonGroupCore>;
|
|
5
|
+
export interface ActionButtonGroupCore {
|
|
6
|
+
maxItems: number;
|
|
7
|
+
maxItemsMobile: number;
|
|
8
|
+
items: ActionButton[];
|
|
9
|
+
menuIconPos: IconPositionType;
|
|
10
|
+
menuIcon: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlSeverityType, FieldSizeType, NotificableProperty } from '../../common';
|
|
3
|
+
export interface ActionButton extends NotificableProperty {
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
toolTip?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
outlined: boolean;
|
|
9
|
+
raised: boolean;
|
|
10
|
+
severity?: ControlSeverityType;
|
|
11
|
+
label?: string;
|
|
12
|
+
size?: FieldSizeType;
|
|
13
|
+
click: EventEmitter<MouseEvent>;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './action-button-group.model';
|
|
2
|
-
export * from './action-button.model';
|
|
1
|
+
export * from './action-button-group.model';
|
|
2
|
+
export * from './action-button.model';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
3
|
+
import { BaseInputControls } from './models/base-form-input.models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BaseFormInputComponent implements BaseInputControls<any>, ControlValueAccessor, OnInit {
|
|
6
|
+
private readonly control;
|
|
7
|
+
readonly ngControl?: NgControl;
|
|
8
|
+
readonly errorService: import("@verisoft/core").ErrorProvider;
|
|
9
|
+
formControl: FormControl;
|
|
10
|
+
constructor(control: NgControl);
|
|
11
|
+
label?: string;
|
|
12
|
+
required: boolean;
|
|
13
|
+
readonly: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
tooltip: string;
|
|
16
|
+
formDisplay: 'flex' | 'block';
|
|
17
|
+
clearable: boolean;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
testId?: string;
|
|
20
|
+
inputId: string;
|
|
21
|
+
selectionChanged: any;
|
|
22
|
+
onTouch: any;
|
|
23
|
+
registerOnChange(fn: any): void;
|
|
24
|
+
registerOnTouched(fn: any): void;
|
|
25
|
+
writeValue(value: any): void;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
isRequired(): any;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormInputComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormInputComponent, "ng-component", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "formDisplay": { "alias": "formDisplay"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { Subject, Observable } from 'rxjs';
|
|
4
|
+
import { PreventUnsavedChangesCore } from '../../common';
|
|
5
|
+
import { PreventUnsavedChangesDirective } from '../../services';
|
|
6
|
+
import { FormState } from './models';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare abstract class BaseFormDirective<T extends object> implements OnInit, OnChanges, OnDestroy, AfterViewInit, PreventUnsavedChangesCore {
|
|
9
|
+
data: T | any;
|
|
10
|
+
dataChange: EventEmitter<T>;
|
|
11
|
+
statusChange: EventEmitter<FormState>;
|
|
12
|
+
formSubmit: EventEmitter<T>;
|
|
13
|
+
formClear: EventEmitter<void>;
|
|
14
|
+
formDestroyed$: Subject<void>;
|
|
15
|
+
keys: {
|
|
16
|
+
key: string;
|
|
17
|
+
alias?: string;
|
|
18
|
+
type?: string;
|
|
19
|
+
readOnly: string;
|
|
20
|
+
}[];
|
|
21
|
+
formGroup: FormGroup;
|
|
22
|
+
cd: ChangeDetectorRef;
|
|
23
|
+
valueInitialization: boolean;
|
|
24
|
+
lastState: FormState;
|
|
25
|
+
guardViewChild: ViewChild;
|
|
26
|
+
formSubmitted: boolean;
|
|
27
|
+
protected guard: PreventUnsavedChangesDirective;
|
|
28
|
+
unloadHandler(event: BeforeUnloadEvent): void;
|
|
29
|
+
canDeactivate(): Observable<boolean> | Promise<boolean> | boolean;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
abstract createFormGroup(): FormGroup;
|
|
35
|
+
createCompleteData(): T;
|
|
36
|
+
submit(): void;
|
|
37
|
+
clear(): void;
|
|
38
|
+
private initializeFormGroup;
|
|
39
|
+
private initValueChanges;
|
|
40
|
+
private initStatusChanges;
|
|
41
|
+
private createAndEmitIfFormStateChanged;
|
|
42
|
+
protected applyChanges(data: T, changes: Partial<T>): T;
|
|
43
|
+
protected toModel(data: T): Partial<T>;
|
|
44
|
+
protected fromModel(data: T): T;
|
|
45
|
+
private recursiveObjectAttributesTransformation;
|
|
46
|
+
private recursiveObjectAttributesTraversal;
|
|
47
|
+
private transformEmptyStringToNullStringFn;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormDirective<any>, never>;
|
|
49
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormDirective<any>, "[v-baseForm]", never, { "data": { "alias": "data"; "required": false; }; }, { "dataChange": "dataChange"; "statusChange": "statusChange"; "formSubmit": "formSubmit"; "formClear": "formClear"; }, never, never, true, never>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AfterViewInit, OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { Store } from '@ngrx/store';
|
|
4
|
+
import { UnsubscribeComponent } from '../../unsubscribe.component';
|
|
5
|
+
import { BaseFormDirective } from '../base-form.component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DetailStoreDirective extends UnsubscribeComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
8
|
+
form: BaseFormDirective<any>;
|
|
9
|
+
detailsRepository: string;
|
|
10
|
+
autoBind: boolean;
|
|
11
|
+
detailId: string | number | undefined;
|
|
12
|
+
ngrxFeatureKey: string;
|
|
13
|
+
destroyForm: boolean;
|
|
14
|
+
readonly: boolean;
|
|
15
|
+
readonlyControlNames: string[];
|
|
16
|
+
store: Store<any>;
|
|
17
|
+
cdr: ChangeDetectorRef;
|
|
18
|
+
route: ActivatedRoute;
|
|
19
|
+
private itemCache;
|
|
20
|
+
private loaded;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
ngAfterViewInit(): void;
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
private initForm;
|
|
25
|
+
private listenFormState;
|
|
26
|
+
private listenFormChange;
|
|
27
|
+
private listenFormStatusChange;
|
|
28
|
+
private handleValidation;
|
|
29
|
+
private handleBackendValidation;
|
|
30
|
+
private dispatchErrors;
|
|
31
|
+
private normalizePropertyNames;
|
|
32
|
+
private isStateChanged;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetailStoreDirective, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DetailStoreDirective, "[v-useDetailStore]", ["useDetailStore"], { "form": { "alias": "form"; "required": true; }; "detailsRepository": { "alias": "detailsRepository"; "required": true; }; "autoBind": { "alias": "autoBind"; "required": false; }; "detailId": { "alias": "detailId"; "required": false; }; "ngrxFeatureKey": { "alias": "ngrxFeatureKey"; "required": true; }; "destroyForm": { "alias": "destroyForm"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "readonlyControlNames": { "alias": "readonlyControlNames"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './base-form-input.component';
|
|
2
|
-
export * from './base-form.component'
|
|
3
|
-
export * from './directives/detail-store.directive';
|
|
4
|
-
export * from './models';
|
|
1
|
+
export * from './base-form-input.component';
|
|
2
|
+
export * from './base-form.component';
|
|
3
|
+
export * from './directives/detail-store.directive';
|
|
4
|
+
export * from './models';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface BaseFormCore {
|
|
2
|
+
label?: string;
|
|
3
|
+
required: boolean;
|
|
4
|
+
readonly: boolean;
|
|
5
|
+
tooltip: string;
|
|
6
|
+
formDisplay: 'flex' | 'block';
|
|
7
|
+
clearable: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface BaseFormDirectiveCore<T> {
|
|
12
|
+
initialData: T | any;
|
|
13
|
+
}
|
|
14
|
+
export interface FormState {
|
|
15
|
+
dirty: boolean;
|
|
16
|
+
valid: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function isFormStateEqual(current: FormState, other: FormState): boolean;
|
package/{src/lib/components/base-form/models/index.ts → lib/components/base-form/models/index.d.ts}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './base-form-input.models';
|
|
2
|
-
export * from './base-form.models';
|
|
1
|
+
export * from './base-form-input.models';
|
|
2
|
+
export * from './base-form.models';
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from "@angular/router";
|
|
3
|
-
import { MenuItem } from '../side-menu';
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
routerLink?: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
active?: boolean;
|
|
20
|
-
activatedRoute?: ActivatedRoute;
|
|
21
|
-
}
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from "@angular/router";
|
|
3
|
+
import { MenuItem } from '../side-menu';
|
|
4
|
+
export declare const BREADCRUMB_COMPONENT_TOKEN: InjectionToken<BreadcrumbCore>;
|
|
5
|
+
export interface BreadcrumbCore {
|
|
6
|
+
items: MenuItem[];
|
|
7
|
+
homeRoute: string;
|
|
8
|
+
useHomeRoute: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface Breadcrumb {
|
|
11
|
+
label: string;
|
|
12
|
+
routerLink?: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
activatedRoute?: ActivatedRoute;
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Breadcrumb } from './breadcrumb.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BreadcrumbService {
|
|
5
|
+
routeChange: EventEmitter<Breadcrumb>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { MenuItem } from '../side-menu';
|
|
4
|
+
import { UnsubscribeComponent } from '../unsubscribe.component';
|
|
5
|
+
import { BreadcrumbCore } from './breadcrumb.model';
|
|
6
|
+
import { BreadcrumbService } from './breadcrumb.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class BreadcrumbCoreComponent extends UnsubscribeComponent implements BreadcrumbCore, OnInit {
|
|
9
|
+
items: MenuItem[];
|
|
10
|
+
homeRoute: string;
|
|
11
|
+
useHomeRoute: boolean;
|
|
12
|
+
static readonly ROUTE_DATA_BREADCRUMB = "breadcrumb";
|
|
13
|
+
static readonly ROUTE_DATA_BREADCRUMB_URL = "breadcrumb_url";
|
|
14
|
+
static readonly ROUTE_DATA_NO_BREADCRUMB_ROUTE = "breadcrumb_no_route";
|
|
15
|
+
static readonly BREADCRUMB_HIDE = "breadcrumb_hide";
|
|
16
|
+
readonly home: {
|
|
17
|
+
icon: string;
|
|
18
|
+
routerLink: string;
|
|
19
|
+
};
|
|
20
|
+
router: Router;
|
|
21
|
+
activatedRoute: ActivatedRoute;
|
|
22
|
+
breadcrumbService: BreadcrumbService;
|
|
23
|
+
cdr: ChangeDetectorRef;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
private initBreadcrumbsCreation;
|
|
26
|
+
private initRouteChangeListen;
|
|
27
|
+
private createBreadcrumbs;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbCoreComponent, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BreadcrumbCoreComponent, never, never, { "items": { "alias": "items"; "required": false; }; "homeRoute": { "alias": "homeRoute"; "required": false; }; "useHomeRoute": { "alias": "useHomeRoute"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
|
+
}
|
package/{src/lib/components/button/button.model.ts → lib/components/button/button.model.d.ts}
RENAMED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { Params } from '@angular/router';
|
|
3
|
-
import { ControlSeverityType, FieldSizeType, IconPositionType } from '../../common';
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
routerLink: any[];
|
|
19
|
-
size: FieldSizeType | undefined;
|
|
20
|
-
queryParams?: Params;
|
|
21
|
-
}
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { Params } from '@angular/router';
|
|
3
|
+
import { ControlSeverityType, FieldSizeType, IconPositionType } from '../../common';
|
|
4
|
+
export declare const BUTTON_COMPONENT_TOKEN: InjectionToken<ButtonCore>;
|
|
5
|
+
export interface ButtonCore {
|
|
6
|
+
label?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
badge?: string;
|
|
9
|
+
iconPos: IconPositionType;
|
|
10
|
+
rounded: boolean;
|
|
11
|
+
outlined: boolean;
|
|
12
|
+
raised: boolean;
|
|
13
|
+
severity?: ControlSeverityType;
|
|
14
|
+
routerLink: any[];
|
|
15
|
+
size: FieldSizeType | undefined;
|
|
16
|
+
queryParams?: Params;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './button.model';
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { BaseFormCore } from '../base-form';
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
footer: string;
|
|
14
|
-
floatLabel: string | undefined;
|
|
15
|
-
selectionMode: "single" | "multiple" | "range" | undefined;
|
|
16
|
-
}
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { BaseFormCore } from '../base-form';
|
|
3
|
+
export declare const CALENDAR_COMPONENT_TOKEN: InjectionToken<CalendarCore>;
|
|
4
|
+
export interface CalendarCore extends BaseFormCore {
|
|
5
|
+
maxDate: Date;
|
|
6
|
+
icon: string;
|
|
7
|
+
minDate: Date;
|
|
8
|
+
header: string;
|
|
9
|
+
footer: string;
|
|
10
|
+
floatLabel: string | undefined;
|
|
11
|
+
selectionMode: "single" | "multiple" | "range" | undefined;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calendar.model';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './checkbox.model';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { InjectionToken, Type } from '@angular/core';
|
|
2
|
+
import { SafeHtml } from "@angular/platform-browser";
|
|
3
|
+
import { ControlSeverityType } from '../../common';
|
|
4
|
+
export declare const CONFIRM_DIALOG_COMPONENT_TOKEN: InjectionToken<object>;
|
|
5
|
+
export type ConfirmDialogCore = object;
|
|
6
|
+
export interface DialogData {
|
|
7
|
+
title?: string;
|
|
8
|
+
headerIcon?: string;
|
|
9
|
+
severity?: ControlSeverityType;
|
|
10
|
+
showCancelButton?: boolean;
|
|
11
|
+
buttonOrder?: 'confirm-cancel' | 'cancel-confirm';
|
|
12
|
+
confirmButtonText?: string;
|
|
13
|
+
confirmButtonFn?: () => void;
|
|
14
|
+
cancelButtonFn?: () => void;
|
|
15
|
+
cancelButtonText?: string;
|
|
16
|
+
innerHTML?: string | SafeHtml;
|
|
17
|
+
data?: unknown;
|
|
18
|
+
componentType?: Type<unknown>;
|
|
19
|
+
closable?: boolean;
|
|
20
|
+
width?: string;
|
|
21
|
+
height?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ExtendedDialogData<TInputs = any, TOutputs = any> extends DialogData {
|
|
24
|
+
data?: TInputs & TOutputs;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './confirm-dialog.model';
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { DataSourceComponentModel } from '../../common';
|
|
3
|
-
import { BaseFormCore } from '../base-form';
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
forceMinWidth: boolean;
|
|
14
|
-
showFilter: boolean;
|
|
15
|
-
localSearch: boolean;
|
|
16
|
-
}
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { DataSourceComponentModel } from '../../common';
|
|
3
|
+
import { BaseFormCore } from '../base-form';
|
|
4
|
+
export declare const DROPDOWN_COMPONENT_TOKEN: InjectionToken<DropdownCore<any>>;
|
|
5
|
+
export interface DropdownCore<T> extends DataSourceComponentModel<T>, BaseFormCore {
|
|
6
|
+
dropdownIcon?: string;
|
|
7
|
+
floatLabel?: string;
|
|
8
|
+
editable: boolean;
|
|
9
|
+
forceMinWidth: boolean;
|
|
10
|
+
showFilter: boolean;
|
|
11
|
+
localSearch: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dropdown.model';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dynamic-component.model';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { GenericFieldDefinition } from '../generic-form';
|
|
4
|
+
export declare const FILTER_COMPONENT_TOKEN: InjectionToken<FilterCore>;
|
|
5
|
+
export interface FilterCore extends ControlValueAccessor {
|
|
6
|
+
fields: GenericFieldDefinition[];
|
|
7
|
+
title?: string;
|
|
8
|
+
fulltextFieldName: string;
|
|
9
|
+
showFulltext: boolean;
|
|
10
|
+
showFilters: boolean;
|
|
11
|
+
autoBind: boolean;
|
|
12
|
+
debounceTime?: number;
|
|
13
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './filter.model';
|
|
1
|
+
export * from './filter.model';
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { NgControl } from '@angular/forms';
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
required: boolean;
|
|
13
|
-
testId?: string;
|
|
14
|
-
display: 'flex' | 'block';
|
|
15
|
-
}
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { NgControl } from '@angular/forms';
|
|
3
|
+
export declare const FORM_FIELD_COMPONENT_TOKEN: InjectionToken<FormFieldCore>;
|
|
4
|
+
export interface FormFieldCore {
|
|
5
|
+
ngControl?: NgControl;
|
|
6
|
+
label?: string;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
required: boolean;
|
|
9
|
+
testId?: string;
|
|
10
|
+
display: 'flex' | 'block';
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './form-field.model';
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { DataSourceComponentModel } from '../../common';
|
|
3
|
-
import { BaseFormCore } from '../base-form';
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
export interface GenericFieldCore<T> extends DataSourceComponentModel<T>, BaseFormCore {
|
|
10
|
-
}
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { DataSourceComponentModel } from '../../common';
|
|
3
|
+
import { BaseFormCore } from '../base-form';
|
|
4
|
+
export declare const GENERIC_FIELD_COMPONENT_TOKEN: InjectionToken<GenericFieldCore<any>>;
|
|
5
|
+
export interface GenericFieldCore<T> extends DataSourceComponentModel<T>, BaseFormCore {
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generic-field.model';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { DatasourceType } from '@verisoft/core';
|
|
3
|
+
import { FieldSizeType } from '../../common';
|
|
4
|
+
export interface GenericFieldDefinition {
|
|
5
|
+
validator?: ValidatorFn[];
|
|
6
|
+
type?: GenericFieldTypeType;
|
|
7
|
+
label?: string;
|
|
8
|
+
floatLabel?: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
optionLabel?: string;
|
|
11
|
+
optionValue?: string;
|
|
12
|
+
options?: unknown[];
|
|
13
|
+
value?: unknown;
|
|
14
|
+
testId?: string;
|
|
15
|
+
size?: FieldSizeType;
|
|
16
|
+
readonly?: boolean;
|
|
17
|
+
datasource?: DatasourceType<any>;
|
|
18
|
+
filterField?: string;
|
|
19
|
+
showFilter?: boolean;
|
|
20
|
+
localSearch?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare enum GenericFieldType {
|
|
23
|
+
'dropdown' = "dropdown",
|
|
24
|
+
'checkbox' = "checkbox",
|
|
25
|
+
'simplecheckbox' = "simplecheckbox",
|
|
26
|
+
'calendar' = "calendar",
|
|
27
|
+
'multiselect' = "multiselect",
|
|
28
|
+
'text' = "text"
|
|
29
|
+
}
|
|
30
|
+
export type GenericFieldTypeType = keyof typeof GenericFieldType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './generic-form.component';
|
|
1
|
+
export * from './generic-form.component';
|
package/{src/lib/components/header/header.model.ts → lib/components/header/header.model.d.ts}
RENAMED
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { MenuItem } from '../side-menu/side-menu.model';
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export interface HeaderCore {
|
|
13
|
-
title: string;
|
|
14
|
-
userName: string;
|
|
15
|
-
logoUrl: string;
|
|
16
|
-
userRole: any | any[] | undefined;
|
|
17
|
-
menuRef: HTMLDivElement;
|
|
18
|
-
}
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { MenuItem } from '../side-menu/side-menu.model';
|
|
3
|
+
export declare const HEADER_COMPONENT_TOKEN: InjectionToken<HeaderCore>;
|
|
4
|
+
export declare const SETTINGS_MENU: InjectionToken<MenuItem[]>;
|
|
5
|
+
export interface HeaderCore {
|
|
6
|
+
title: string;
|
|
7
|
+
userName: string;
|
|
8
|
+
logoUrl: string;
|
|
9
|
+
userRole: any | any[] | undefined;
|
|
10
|
+
menuRef: HTMLDivElement;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './header.model';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class IconsComponent {
|
|
3
|
+
name: string;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconsComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconsComponent, "ng-component", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
|
+
}
|