@verisoft/ui-primeng 18.6.0 → 18.7.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/.eslintrc.json +43 -0
- package/README.md +53 -3
- package/assets/.gitkeep +0 -0
- package/assets/fonts/orbitron-black.ttf +0 -0
- package/assets/fonts/orbitron-bold.otf +0 -0
- package/assets/icons/complex/v-logo.svg +4 -0
- package/assets/images/_global/elon.jpg +0 -0
- package/assets/images/_global/jara.png +0 -0
- package/assets/images/_global/logos/v-logo.webp +0 -0
- package/assets/sass/base/_scrollbar.scss +18 -0
- package/assets/sass/base/_typography.scss +25 -0
- package/assets/sass/layout/_app.scss +27 -0
- package/assets/sass/layout/_button.scss +57 -0
- package/assets/sass/layout/_checkbox.scss +33 -0
- package/assets/sass/layout/_dialog.scss +13 -0
- package/assets/sass/layout/_dropdown.scss +9 -0
- package/assets/sass/layout/_formField.scss +5 -0
- package/assets/sass/layout/_header.scss +63 -0
- package/assets/sass/layout/_icons.scss +13 -0
- package/assets/sass/layout/_inputSwitch.scss +13 -0
- package/assets/sass/layout/_layout.scss +6 -0
- package/assets/sass/layout/_loader.scss +9 -0
- package/assets/sass/layout/_radiobutton.scss +21 -0
- package/assets/sass/layout/_sidemenu.scss +173 -0
- package/assets/sass/layout/_snackbar.scss +8 -0
- package/assets/sass/layout/_tables.scss +5 -0
- package/assets/sass/layout/_tree.scss +12 -0
- package/assets/sass/layout/_tristatecheckbox.scss +15 -0
- package/assets/sass/main.scss +28 -0
- package/assets/sass/themes/_verisoft_theme.scss +46 -0
- package/assets/sass/utils/_mixins.scss +0 -0
- package/assets/sass/utils/_utils.scss +39 -0
- package/assets/sass/utils/_variables.scss +12 -0
- package/assets/sass/vendors/_bootstrap.scss +2 -0
- package/assets/sass/vendors/_primeng.scss +2 -0
- package/jest.config.ts +22 -0
- package/ng-package.json +15 -0
- package/package.json +22 -37
- package/project.json +36 -0
- package/{index.d.ts → src/index.ts} +29 -29
- package/src/lib/components/breadcrumb/breadcrumb.component.html +12 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.scss +18 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.spec.ts +21 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.stories.ts +36 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.ts +29 -0
- package/src/lib/components/breadcrumb/breadcrumb.pipe.ts +13 -0
- package/{lib/components/breadcrumb/index.d.ts → src/lib/components/breadcrumb/index.ts} +1 -1
- package/src/lib/components/button/button.component.html +20 -0
- package/src/lib/components/button/button.component.scss +0 -0
- package/src/lib/components/button/button.component.spec.ts +21 -0
- package/src/lib/components/button/button.component.ts +49 -0
- package/{lib/components/button/index.d.ts → src/lib/components/button/index.ts} +1 -1
- package/src/lib/components/calendar/calendar.component.html +53 -0
- package/src/lib/components/calendar/calendar.component.scss +0 -0
- package/src/lib/components/calendar/calendar.component.spec.ts +21 -0
- package/src/lib/components/calendar/calendar.component.ts +72 -0
- package/{lib/components/calendar/index.d.ts → src/lib/components/calendar/index.ts} +1 -1
- package/src/lib/components/checkbox/checkbox.component.html +19 -0
- package/src/lib/components/checkbox/checkbox.component.scss +15 -0
- package/src/lib/components/checkbox/checkbox.component.spec.ts +21 -0
- package/src/lib/components/checkbox/checkbox.component.stories.ts +72 -0
- package/src/lib/components/checkbox/checkbox.component.ts +45 -0
- package/{lib/components/checkbox/index.d.ts → src/lib/components/checkbox/index.ts} +1 -1
- package/src/lib/components/confirm-dialog/confirm-dialog.component.html +48 -0
- package/src/lib/components/confirm-dialog/confirm-dialog.component.scss +3 -0
- package/src/lib/components/confirm-dialog/confirm-dialog.component.spec.ts +21 -0
- package/src/lib/components/confirm-dialog/confirm-dialog.component.stories.ts +74 -0
- package/src/lib/components/confirm-dialog/confirm-dialog.component.ts +74 -0
- package/{lib/components/confirm-dialog/index.d.ts → src/lib/components/confirm-dialog/index.ts} +1 -1
- package/src/lib/components/dropdown/dropdown.component.html +96 -0
- package/src/lib/components/dropdown/dropdown.component.scss +16 -0
- package/src/lib/components/dropdown/dropdown.component.spec.ts +21 -0
- package/src/lib/components/dropdown/dropdown.component.stories.ts +90 -0
- package/src/lib/components/dropdown/dropdown.component.ts +144 -0
- package/{lib/components/dropdown/index.d.ts → src/lib/components/dropdown/index.ts} +1 -1
- package/src/lib/components/errors/error.component.html +6 -0
- package/src/lib/components/errors/error.component.scss +3 -0
- package/src/lib/components/errors/error.component.ts +35 -0
- package/src/lib/components/errors/index.ts +1 -0
- package/src/lib/components/form-field/form-field.component.html +36 -0
- package/src/lib/components/form-field/form-field.component.scss +0 -0
- package/src/lib/components/form-field/form-field.component.spec.ts +21 -0
- package/src/lib/components/form-field/form-field.component.stories.ts +69 -0
- package/src/lib/components/form-field/form-field.component.ts +38 -0
- package/{lib/components/form-field/index.d.ts → src/lib/components/form-field/index.ts} +1 -1
- package/src/lib/components/header/header.component.html +84 -0
- package/src/lib/components/header/header.component.scss +0 -0
- package/src/lib/components/header/header.component.spec.ts +21 -0
- package/src/lib/components/header/header.component.stories.ts +24 -0
- package/src/lib/components/header/header.component.ts +66 -0
- package/{lib/components/header/index.d.ts → src/lib/components/header/index.ts} +2 -2
- package/src/lib/components/header/services/header-provider.service.ts +15 -0
- package/{lib/components/input-group/index.d.ts → src/lib/components/input-group/index.ts} +1 -1
- package/src/lib/components/input-group/input-group.component.html +30 -0
- package/src/lib/components/input-group/input-group.component.spec.ts +21 -0
- package/src/lib/components/input-group/input-group.component.ts +60 -0
- package/{lib/components/loader/index.d.ts → src/lib/components/loader/index.ts} +1 -1
- package/src/lib/components/loader/loader.component.html +5 -0
- package/src/lib/components/loader/loader.component.scss +0 -0
- package/src/lib/components/loader/loader.component.spec.ts +21 -0
- package/src/lib/components/loader/loader.component.ts +17 -0
- package/{lib/components/multiselect/index.d.ts → src/lib/components/multiselect/index.ts} +1 -1
- package/src/lib/components/multiselect/multiselect.component.html +70 -0
- package/src/lib/components/multiselect/multiselect.component.scss +0 -0
- package/src/lib/components/multiselect/multiselect.component.spec.ts +21 -0
- package/src/lib/components/multiselect/multiselect.component.ts +122 -0
- package/{lib/components/number-input/index.d.ts → src/lib/components/number-input/index.ts} +1 -1
- package/src/lib/components/number-input/number-input.component.html +22 -0
- package/src/lib/components/number-input/number-input.component.spec.ts +21 -0
- package/src/lib/components/number-input/number-input.component.ts +57 -0
- package/{lib/components/page-header/index.d.ts → src/lib/components/page-header/index.ts} +1 -1
- package/src/lib/components/page-header/page-header.component.html +31 -0
- package/src/lib/components/page-header/page-header.component.scss +0 -0
- package/src/lib/components/page-header/page-header.component.spec.ts +21 -0
- package/src/lib/components/page-header/page-header.component.ts +32 -0
- package/{lib/components/password/index.d.ts → src/lib/components/password/index.ts} +1 -1
- package/src/lib/components/password/password.component.html +24 -0
- package/src/lib/components/password/password.component.scss +0 -0
- package/src/lib/components/password/password.component.spec.ts +21 -0
- package/src/lib/components/password/password.component.ts +58 -0
- package/{lib/components/radiobutton/index.d.ts → src/lib/components/radiobutton/index.ts} +1 -1
- package/src/lib/components/radiobutton/radiobutton.component.html +32 -0
- package/src/lib/components/radiobutton/radiobutton.component.scss +6 -0
- package/src/lib/components/radiobutton/radiobutton.component.spec.ts +21 -0
- package/src/lib/components/radiobutton/radiobutton.component.stories.ts +71 -0
- package/src/lib/components/radiobutton/radiobutton.component.ts +62 -0
- package/{lib/components/section/index.d.ts → src/lib/components/section/index.ts} +1 -1
- package/src/lib/components/section/section.component.html +23 -0
- package/src/lib/components/section/section.component.scss +0 -0
- package/src/lib/components/section/section.component.spec.ts +21 -0
- package/src/lib/components/section/section.component.ts +32 -0
- package/src/lib/components/shared-components/action-button-group/action-button-group.component.html +27 -0
- package/src/lib/components/shared-components/action-button-group/action-button-group.component.scss +0 -0
- package/src/lib/components/shared-components/action-button-group/action-button-group.component.spec.ts +21 -0
- package/src/lib/components/shared-components/action-button-group/action-button-group.component.ts +114 -0
- package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.html +11 -0
- package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.scss +0 -0
- package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.spec.ts +21 -0
- package/src/lib/components/shared-components/action-button-group/components/action-button/action-button.component.ts +71 -0
- package/{lib/components/shared-components/action-button-group/index.d.ts → src/lib/components/shared-components/action-button-group/index.ts} +2 -2
- package/src/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.ts +142 -0
- package/src/lib/components/shared-components/dynamic-component/dynamic-component.component.ts +56 -0
- package/{lib/components/shared-components/dynamic-component/index.d.ts → src/lib/components/shared-components/dynamic-component/index.ts} +2 -2
- package/src/lib/components/shared-components/feature-list/directives/feature-list-column.directive.ts +32 -0
- package/src/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.ts +8 -0
- package/src/lib/components/shared-components/feature-list/feature-list-filter.pipe.ts +21 -0
- package/src/lib/components/shared-components/feature-list/feature-list-page.component.ts +31 -0
- package/src/lib/components/shared-components/feature-list/feature-list-page.model.ts +42 -0
- package/src/lib/components/shared-components/feature-list/feature-list.component.html +59 -0
- package/src/lib/components/shared-components/feature-list/feature-list.component.scss +10 -0
- package/src/lib/components/shared-components/feature-list/feature-list.component.ts +342 -0
- package/{lib/components/shared-components/feature-list/index.d.ts → src/lib/components/shared-components/feature-list/index.ts} +5 -5
- package/src/lib/components/shared-components/filter/directives/filter-field.directive.ts +35 -0
- package/src/lib/components/shared-components/filter/filter.component.html +68 -0
- package/src/lib/components/shared-components/filter/filter.component.scss +0 -0
- package/src/lib/components/shared-components/filter/filter.component.spec.ts +21 -0
- package/src/lib/components/shared-components/filter/filter.component.stories.ts +23 -0
- package/src/lib/components/shared-components/filter/filter.component.ts +284 -0
- package/src/lib/components/shared-components/filter/filter.model.ts +18 -0
- package/{lib/components/shared-components/filter/index.d.ts → src/lib/components/shared-components/filter/index.ts} +2 -2
- package/src/lib/components/shared-components/generic-field/generic-field.component.html +97 -0
- package/src/lib/components/shared-components/generic-field/generic-field.component.spec.ts +21 -0
- package/src/lib/components/shared-components/generic-field/generic-field.component.ts +94 -0
- package/{lib/components/shared-components/generic-field/index.d.ts → src/lib/components/shared-components/generic-field/index.ts} +1 -1
- package/src/lib/components/shared-components/generic-form/generic-form.component.html +46 -0
- package/src/lib/components/shared-components/generic-form/generic-form.component.spec.ts +21 -0
- package/src/lib/components/shared-components/generic-form/generic-form.component.ts +57 -0
- package/src/lib/components/shared-components/generic-form/generic-form.model.spec.ts +82 -0
- package/src/lib/components/shared-components/generic-form/generic-form.model.ts +68 -0
- package/{lib/components/shared-components/generic-form/index.d.ts → src/lib/components/shared-components/generic-form/index.ts} +2 -2
- package/{lib/components/shared-components/index.d.ts → src/lib/components/shared-components/index.ts} +6 -6
- package/{lib/components/side-menu/index.d.ts → src/lib/components/side-menu/index.ts} +2 -2
- package/src/lib/components/side-menu/side-menu.component.html +52 -0
- package/src/lib/components/side-menu/side-menu.component.scss +0 -0
- package/src/lib/components/side-menu/side-menu.component.spec.ts +21 -0
- package/src/lib/components/side-menu/side-menu.component.ts +98 -0
- package/src/lib/components/side-menu/side-menu.module.ts +66 -0
- package/{lib/components/slider/index.d.ts → src/lib/components/slider/index.ts} +1 -1
- package/src/lib/components/slider/slider.component.html +19 -0
- package/src/lib/components/slider/slider.component.spec.ts +21 -0
- package/src/lib/components/slider/slider.component.ts +58 -0
- package/{lib/components/snackbar/index.d.ts → src/lib/components/snackbar/index.ts} +2 -2
- package/src/lib/components/snackbar/services/snackbar.service.ts +45 -0
- package/src/lib/components/snackbar/snackbar.component.html +3 -0
- package/src/lib/components/snackbar/snackbar.component.scss +0 -0
- package/src/lib/components/snackbar/snackbar.component.spec.ts +21 -0
- package/src/lib/components/snackbar/snackbar.component.stories.ts +70 -0
- package/src/lib/components/snackbar/snackbar.component.ts +26 -0
- package/{lib/components/stepper/index.d.ts → src/lib/components/stepper/index.ts} +1 -1
- package/src/lib/components/stepper/stepper.component.html +43 -0
- package/src/lib/components/stepper/stepper.component.spec.ts +21 -0
- package/src/lib/components/stepper/stepper.component.ts +40 -0
- package/{lib/components/switch/index.d.ts → src/lib/components/switch/index.ts} +1 -1
- package/src/lib/components/switch/switch.component.html +18 -0
- package/src/lib/components/switch/switch.component.scss +0 -0
- package/src/lib/components/switch/switch.component.spec.ts +21 -0
- package/src/lib/components/switch/switch.component.stories.ts +65 -0
- package/src/lib/components/switch/switch.component.ts +54 -0
- package/{lib/components/tab-view/index.d.ts → src/lib/components/tab-view/index.ts} +3 -3
- package/src/lib/components/tab-view/tab-menu.pipe.ts +23 -0
- package/src/lib/components/tab-view/tab-view-item.component.ts +22 -0
- package/src/lib/components/tab-view/tab-view.component.html +23 -0
- package/src/lib/components/tab-view/tab-view.component.ts +55 -0
- package/src/lib/components/tab-view/tab-view.module.ts +19 -0
- package/{lib/components/table/index.d.ts → src/lib/components/table/index.ts} +1 -1
- package/src/lib/components/table/table-filter.pipe.ts +59 -0
- package/src/lib/components/table/table.component.html +123 -0
- package/src/lib/components/table/table.component.scss +11 -0
- package/src/lib/components/table/table.component.spec.ts +21 -0
- package/src/lib/components/table/table.component.stories.ts +55 -0
- package/src/lib/components/table/table.component.ts +289 -0
- package/src/lib/components/table/table.models.ts +26 -0
- package/{lib/components/textarea/index.d.ts → src/lib/components/textarea/index.ts} +1 -1
- package/src/lib/components/textarea/textarea.component.html +40 -0
- package/src/lib/components/textarea/textarea.component.scss +5 -0
- package/src/lib/components/textarea/textarea.component.spec.ts +21 -0
- package/src/lib/components/textarea/textarea.component.stories.ts +98 -0
- package/src/lib/components/textarea/textarea.component.ts +64 -0
- package/{lib/components/textfield/index.d.ts → src/lib/components/textfield/index.ts} +1 -1
- package/src/lib/components/textfield/textfield.component.html +83 -0
- package/src/lib/components/textfield/textfield.component.scss +23 -0
- package/src/lib/components/textfield/textfield.component.spec.ts +21 -0
- package/src/lib/components/textfield/textfield.component.stories.ts +85 -0
- package/src/lib/components/textfield/textfield.component.ts +69 -0
- package/{lib/components/tristatecheckbox/index.d.ts → src/lib/components/tristatecheckbox/index.ts} +1 -1
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.html +23 -0
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.scss +0 -0
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.spec.ts +21 -0
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.stories.ts +22 -0
- package/src/lib/components/tristatecheckbox/tristatecheckbox.component.ts +50 -0
- package/src/lib/icons.ts +36 -0
- package/src/lib/interceptors/http-error-message.interceptor.ts +35 -0
- package/src/lib/pages/not-found-page/not-found-page.component.html +26 -0
- package/src/lib/pages/not-found-page/not-found-page.component.scss +0 -0
- package/src/lib/pages/not-found-page/not-found-page.component.spec.ts +21 -0
- package/src/lib/pages/not-found-page/not-found-page.component.ts +17 -0
- package/src/tab-view.ts +1 -0
- package/src/test-setup.ts +8 -0
- package/tsconfig.json +29 -0
- package/tsconfig.lib.json +18 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.spec.json +16 -0
- package/esm2022/index.mjs +0 -30
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +0 -31
- package/esm2022/lib/components/breadcrumb/breadcrumb.pipe.mjs +0 -17
- package/esm2022/lib/components/breadcrumb/index.mjs +0 -2
- package/esm2022/lib/components/button/button.component.mjs +0 -61
- package/esm2022/lib/components/button/index.mjs +0 -2
- package/esm2022/lib/components/calendar/calendar.component.mjs +0 -73
- package/esm2022/lib/components/calendar/index.mjs +0 -2
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +0 -47
- package/esm2022/lib/components/checkbox/index.mjs +0 -2
- package/esm2022/lib/components/confirm-dialog/confirm-dialog.component.mjs +0 -65
- package/esm2022/lib/components/confirm-dialog/index.mjs +0 -2
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +0 -139
- package/esm2022/lib/components/dropdown/index.mjs +0 -2
- package/esm2022/lib/components/errors/error.component.mjs +0 -41
- package/esm2022/lib/components/errors/index.mjs +0 -2
- package/esm2022/lib/components/form-field/form-field.component.mjs +0 -41
- package/esm2022/lib/components/form-field/index.mjs +0 -2
- package/esm2022/lib/components/header/header.component.mjs +0 -58
- package/esm2022/lib/components/header/index.mjs +0 -3
- package/esm2022/lib/components/header/services/header-provider.service.mjs +0 -24
- package/esm2022/lib/components/input-group/index.mjs +0 -2
- package/esm2022/lib/components/input-group/input-group.component.mjs +0 -57
- package/esm2022/lib/components/loader/index.mjs +0 -2
- package/esm2022/lib/components/loader/loader.component.mjs +0 -19
- package/esm2022/lib/components/multiselect/index.mjs +0 -2
- package/esm2022/lib/components/multiselect/multiselect.component.mjs +0 -124
- package/esm2022/lib/components/number-input/index.mjs +0 -2
- package/esm2022/lib/components/number-input/number-input.component.mjs +0 -64
- package/esm2022/lib/components/page-header/index.mjs +0 -2
- package/esm2022/lib/components/page-header/page-header.component.mjs +0 -28
- package/esm2022/lib/components/password/index.mjs +0 -2
- package/esm2022/lib/components/password/password.component.mjs +0 -59
- package/esm2022/lib/components/radiobutton/index.mjs +0 -2
- package/esm2022/lib/components/radiobutton/radiobutton.component.mjs +0 -57
- package/esm2022/lib/components/section/index.mjs +0 -2
- package/esm2022/lib/components/section/section.component.mjs +0 -35
- package/esm2022/lib/components/shared-components/action-button-group/action-button-group.component.mjs +0 -92
- package/esm2022/lib/components/shared-components/action-button-group/components/action-button/action-button.component.mjs +0 -60
- package/esm2022/lib/components/shared-components/action-button-group/index.mjs +0 -3
- package/esm2022/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.mjs +0 -90
- package/esm2022/lib/components/shared-components/dynamic-component/dynamic-component.component.mjs +0 -41
- package/esm2022/lib/components/shared-components/dynamic-component/index.mjs +0 -3
- package/esm2022/lib/components/shared-components/feature-list/directives/feature-list-column.directive.mjs +0 -46
- package/esm2022/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.mjs +0 -16
- package/esm2022/lib/components/shared-components/feature-list/feature-list-filter.pipe.mjs +0 -24
- package/esm2022/lib/components/shared-components/feature-list/feature-list-page.component.mjs +0 -42
- package/esm2022/lib/components/shared-components/feature-list/feature-list-page.model.mjs +0 -16
- package/esm2022/lib/components/shared-components/feature-list/feature-list.component.mjs +0 -275
- package/esm2022/lib/components/shared-components/feature-list/index.mjs +0 -6
- package/esm2022/lib/components/shared-components/filter/directives/filter-field.directive.mjs +0 -44
- package/esm2022/lib/components/shared-components/filter/filter.component.mjs +0 -190
- package/esm2022/lib/components/shared-components/filter/filter.model.mjs +0 -16
- package/esm2022/lib/components/shared-components/filter/index.mjs +0 -3
- package/esm2022/lib/components/shared-components/generic-field/generic-field.component.mjs +0 -93
- package/esm2022/lib/components/shared-components/generic-field/index.mjs +0 -2
- package/esm2022/lib/components/shared-components/generic-form/generic-form.component.mjs +0 -40
- package/esm2022/lib/components/shared-components/generic-form/generic-form.model.mjs +0 -50
- package/esm2022/lib/components/shared-components/generic-form/index.mjs +0 -3
- package/esm2022/lib/components/shared-components/index.mjs +0 -7
- package/esm2022/lib/components/side-menu/index.mjs +0 -3
- package/esm2022/lib/components/side-menu/side-menu.component.mjs +0 -92
- package/esm2022/lib/components/side-menu/side-menu.module.mjs +0 -74
- package/esm2022/lib/components/slider/index.mjs +0 -2
- package/esm2022/lib/components/slider/slider.component.mjs +0 -62
- package/esm2022/lib/components/snackbar/index.mjs +0 -3
- package/esm2022/lib/components/snackbar/services/snackbar.service.mjs +0 -50
- package/esm2022/lib/components/snackbar/snackbar.component.mjs +0 -33
- package/esm2022/lib/components/stepper/index.mjs +0 -2
- package/esm2022/lib/components/stepper/stepper.component.mjs +0 -48
- package/esm2022/lib/components/switch/index.mjs +0 -2
- package/esm2022/lib/components/switch/switch.component.mjs +0 -54
- package/esm2022/lib/components/tab-view/index.mjs +0 -4
- package/esm2022/lib/components/tab-view/tab-menu.pipe.mjs +0 -25
- package/esm2022/lib/components/tab-view/tab-view-item.component.mjs +0 -31
- package/esm2022/lib/components/tab-view/tab-view.component.mjs +0 -50
- package/esm2022/lib/components/tab-view/tab-view.module.mjs +0 -29
- package/esm2022/lib/components/table/index.mjs +0 -2
- package/esm2022/lib/components/table/table-filter.pipe.mjs +0 -49
- package/esm2022/lib/components/table/table.component.mjs +0 -220
- package/esm2022/lib/components/table/table.models.mjs +0 -17
- package/esm2022/lib/components/textarea/index.mjs +0 -2
- package/esm2022/lib/components/textarea/textarea.component.mjs +0 -65
- package/esm2022/lib/components/textfield/index.mjs +0 -2
- package/esm2022/lib/components/textfield/textfield.component.mjs +0 -65
- package/esm2022/lib/components/tristatecheckbox/index.mjs +0 -2
- package/esm2022/lib/components/tristatecheckbox/tristatecheckbox.component.mjs +0 -53
- package/esm2022/lib/icons.mjs +0 -35
- package/esm2022/lib/interceptors/http-error-message.interceptor.mjs +0 -31
- package/esm2022/verisoft-ui-primeng.mjs +0 -5
- package/fesm2022/verisoft-ui-primeng.mjs +0 -2909
- package/fesm2022/verisoft-ui-primeng.mjs.map +0 -1
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -6
- package/lib/components/breadcrumb/breadcrumb.pipe.d.ts +0 -9
- package/lib/components/button/button.component.d.ts +0 -20
- package/lib/components/calendar/calendar.component.d.ts +0 -17
- package/lib/components/checkbox/checkbox.component.d.ts +0 -9
- package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +0 -15
- package/lib/components/dropdown/dropdown.component.d.ts +0 -38
- package/lib/components/errors/error.component.d.ts +0 -16
- package/lib/components/errors/index.d.ts +0 -1
- package/lib/components/form-field/form-field.component.d.ts +0 -12
- package/lib/components/header/header.component.d.ts +0 -23
- package/lib/components/header/services/header-provider.service.d.ts +0 -10
- package/lib/components/input-group/input-group.component.d.ts +0 -9
- package/lib/components/loader/loader.component.d.ts +0 -6
- package/lib/components/multiselect/multiselect.component.d.ts +0 -34
- package/lib/components/number-input/number-input.component.d.ts +0 -14
- package/lib/components/page-header/page-header.component.d.ts +0 -10
- package/lib/components/password/password.component.d.ts +0 -11
- package/lib/components/radiobutton/radiobutton.component.d.ts +0 -10
- package/lib/components/section/section.component.d.ts +0 -12
- package/lib/components/shared-components/action-button-group/action-button-group.component.d.ts +0 -29
- package/lib/components/shared-components/action-button-group/components/action-button/action-button.component.d.ts +0 -24
- package/lib/components/shared-components/dynamic-component/dynamic-component-factory.service.d.ts +0 -17
- package/lib/components/shared-components/dynamic-component/dynamic-component.component.d.ts +0 -16
- package/lib/components/shared-components/feature-list/directives/feature-list-column.directive.d.ts +0 -10
- package/lib/components/shared-components/feature-list/directives/feature-list-filter-field.directive.d.ts +0 -6
- package/lib/components/shared-components/feature-list/feature-list-filter.pipe.d.ts +0 -9
- package/lib/components/shared-components/feature-list/feature-list-page.component.d.ts +0 -9
- package/lib/components/shared-components/feature-list/feature-list-page.model.d.ts +0 -23
- package/lib/components/shared-components/feature-list/feature-list.component.d.ts +0 -62
- package/lib/components/shared-components/filter/directives/filter-field.directive.d.ts +0 -20
- package/lib/components/shared-components/filter/filter.component.d.ts +0 -53
- package/lib/components/shared-components/filter/filter.model.d.ts +0 -2
- package/lib/components/shared-components/generic-field/generic-field.component.d.ts +0 -28
- package/lib/components/shared-components/generic-form/generic-form.component.d.ts +0 -15
- package/lib/components/shared-components/generic-form/generic-form.model.d.ts +0 -4
- package/lib/components/side-menu/side-menu.component.d.ts +0 -27
- package/lib/components/side-menu/side-menu.module.d.ts +0 -13
- package/lib/components/slider/slider.component.d.ts +0 -12
- package/lib/components/snackbar/services/snackbar.service.d.ts +0 -12
- package/lib/components/snackbar/snackbar.component.d.ts +0 -9
- package/lib/components/stepper/stepper.component.d.ts +0 -17
- package/lib/components/switch/switch.component.d.ts +0 -9
- package/lib/components/tab-view/tab-menu.pipe.d.ts +0 -9
- package/lib/components/tab-view/tab-view-item.component.d.ts +0 -12
- package/lib/components/tab-view/tab-view.component.d.ts +0 -17
- package/lib/components/tab-view/tab-view.module.d.ts +0 -13
- package/lib/components/table/table-filter.pipe.d.ts +0 -13
- package/lib/components/table/table.component.d.ts +0 -67
- package/lib/components/table/table.models.d.ts +0 -4
- package/lib/components/textarea/textarea.component.d.ts +0 -12
- package/lib/components/textfield/textfield.component.d.ts +0 -12
- package/lib/components/tristatecheckbox/tristatecheckbox.component.d.ts +0 -9
- package/lib/icons.d.ts +0 -2
- package/lib/interceptors/http-error-message.interceptor.d.ts +0 -11
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, ContentChild, } from '@angular/core';
|
|
3
|
-
import { PAGE_HEADER_COMPONENT_TOKEN, PageHeaderCoreComponent } from '@verisoft/ui-core';
|
|
4
|
-
import { Icons } from '../../icons';
|
|
5
|
-
import { ButtonComponent } from '../button';
|
|
6
|
-
import { ActionButtonGroupComponent } from '../shared-components';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/common";
|
|
9
|
-
export class PageHeaderComponent extends PageHeaderCoreComponent {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.icons = Icons;
|
|
13
|
-
}
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PageHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: PageHeaderComponent, isStandalone: true, selector: "v-page-header", providers: [
|
|
16
|
-
{ provide: PAGE_HEADER_COMPONENT_TOKEN, useExisting: PageHeaderComponent },
|
|
17
|
-
], queries: [{ propertyName: "buttonGroup", first: true, predicate: ActionButtonGroupComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\r\n class=\"v-page-header d-block d-md-flex px-3 w-100 gap-0 gap-md-4 align-items-center text-center text-md-start\"\r\n>\r\n <v-button\r\n *ngIf=\"showBackButton\"\r\n size=\"small\"\r\n [icon]=\"icons.arrowLeft\"\r\n label=\"Back\"\r\n [outlined]=\"true\"\r\n (click)=\"locationBack()\"\r\n ></v-button>\r\n <div\r\n class=\"align-items-center justify-content-center justify-content-md-start gap-2 w-100 d-flex\"\r\n >\r\n <h1 class=\"text-primary m-0\" [innerText]=\"title\"></h1>\r\n <div\r\n *ngIf=\"subtitle\"\r\n class=\"d-flex gap-2 align-items-center text-center text-md-start\"\r\n >\r\n <h1 class=\"text-default m-0\" [innerText]=\"'-'\"></h1>\r\n <h1 class=\"text-default\" [innerText]=\"subtitle\"></h1>\r\n </div>\r\n </div>\r\n <div\r\n class=\"align-content-center page-header-action-buttons justify-content-center w-100\"\r\n >\r\n <div *ngIf=\"buttonGroup\">\r\n <ng-content [select]=\"buttonGroup\"></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
18
|
-
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PageHeaderComponent, decorators: [{
|
|
20
|
-
type: Component,
|
|
21
|
-
args: [{ selector: 'v-page-header', standalone: true, imports: [CommonModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
22
|
-
{ provide: PAGE_HEADER_COMPONENT_TOKEN, useExisting: PageHeaderComponent },
|
|
23
|
-
], template: "<div\r\n class=\"v-page-header d-block d-md-flex px-3 w-100 gap-0 gap-md-4 align-items-center text-center text-md-start\"\r\n>\r\n <v-button\r\n *ngIf=\"showBackButton\"\r\n size=\"small\"\r\n [icon]=\"icons.arrowLeft\"\r\n label=\"Back\"\r\n [outlined]=\"true\"\r\n (click)=\"locationBack()\"\r\n ></v-button>\r\n <div\r\n class=\"align-items-center justify-content-center justify-content-md-start gap-2 w-100 d-flex\"\r\n >\r\n <h1 class=\"text-primary m-0\" [innerText]=\"title\"></h1>\r\n <div\r\n *ngIf=\"subtitle\"\r\n class=\"d-flex gap-2 align-items-center text-center text-md-start\"\r\n >\r\n <h1 class=\"text-default m-0\" [innerText]=\"'-'\"></h1>\r\n <h1 class=\"text-default\" [innerText]=\"subtitle\"></h1>\r\n </div>\r\n </div>\r\n <div\r\n class=\"align-content-center page-header-action-buttons justify-content-center w-100\"\r\n >\r\n <div *ngIf=\"buttonGroup\">\r\n <ng-content [select]=\"buttonGroup\"></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
24
|
-
}], propDecorators: { buttonGroup: [{
|
|
25
|
-
type: ContentChild,
|
|
26
|
-
args: [ActionButtonGroupComponent]
|
|
27
|
-
}] } });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS1oZWFkZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktcHJpbWVuZy9zcmMvbGliL2NvbXBvbmVudHMvcGFnZS1oZWFkZXIvcGFnZS1oZWFkZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktcHJpbWVuZy9zcmMvbGliL2NvbXBvbmVudHMvcGFnZS1oZWFkZXIvcGFnZS1oZWFkZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksR0FFYixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsMkJBQTJCLEVBQWtCLHVCQUF1QixFQUFFLE1BQU0sbUJBQW1CLENBQ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xyXG4gIDwvZGl2PlxyXG4gIDxkaXZcclxuICAgIGNsYXNzPVwiYWxpZ24tY29udGVudC1jZW50ZXIgcGFnZS1oZWFkZXItYWN0aW9uLWJ1dHRvbnMganVzdGlmeS1jb250ZW50LWNlbnRlciB3LTEwMFwiXHJcbiAgPlxyXG4gICAgPGRpdiAqbmdJZj1cImJ1dHRvbkdyb3VwXCI+XHJcbiAgICAgIDxuZy1jb250ZW50IFtzZWxlY3RdPVwiYnV0dG9uR3JvdXBcIj48L25nLWNvbnRlbnQ+XHJcbiAgICA8L2Rpdj5cclxuICA8L2Rpdj5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './password.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1wcmltZW5nL3NyYy9saWIvY29tcG9uZW50cy9wYXNzd29yZC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wYXNzd29yZC5jb21wb25lbnQnO1xyXG4iXX0=
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, Optional, Self, } from '@angular/core';
|
|
3
|
-
import { NgControl, ReactiveFormsModule, } from '@angular/forms';
|
|
4
|
-
import { BaseFormInputComponent, BaseInputControls, PASSWORD_COMPONENT_TOKEN } from '@verisoft/ui-core';
|
|
5
|
-
import { FloatLabelModule } from 'primeng/floatlabel';
|
|
6
|
-
import { PasswordModule } from 'primeng/password';
|
|
7
|
-
import { ErrorComponent } from '../errors';
|
|
8
|
-
import { FormFieldComponent } from '../form-field';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "@angular/forms";
|
|
11
|
-
import * as i2 from "primeng/password";
|
|
12
|
-
export class PasswordComponent extends BaseFormInputComponent {
|
|
13
|
-
constructor(ngControl) {
|
|
14
|
-
super(ngControl);
|
|
15
|
-
this.toggleMask = true;
|
|
16
|
-
this.feedback = false;
|
|
17
|
-
this.formDisplay = "block";
|
|
18
|
-
}
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PasswordComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: PasswordComponent, isStandalone: true, selector: "v-password", inputs: { toggleMask: "toggleMask", feedback: "feedback" }, providers: [
|
|
21
|
-
{
|
|
22
|
-
provide: BaseInputControls,
|
|
23
|
-
useExisting: PasswordComponent,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
provide: PASSWORD_COMPONENT_TOKEN,
|
|
27
|
-
useExisting: PasswordComponent,
|
|
28
|
-
},
|
|
29
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"v-password d-flex align-items-center\">\r\n <v-form-field\r\n class=\"w-100\"\r\n [label]=\"label\"\r\n [tooltip]=\"tooltip\"\r\n [required]=\"isRequired()\"\r\n [testId]=\"testId\"\r\n [display]=\"formDisplay\"\r\n >\r\n <p-password\r\n [style]=\"{'width':'100%'}\"\r\n [inputStyle]=\"{'width':'100%'}\" \r\n [formControl]=\"formControl\"\r\n [placeholder]=\"placeholder\"\r\n [showClear]=\"clearable\"\r\n [feedback]=\"feedback\"\r\n [required]=\"isRequired()\"\r\n [label]=\"label\"\r\n [id]=\"inputId\"\r\n [toggleMask]=\"toggleMask\"\r\n />\r\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\r\n </v-form-field>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i2.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "disabled", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "appendTo", "toggleMask", "inputStyleClass", "styleClass", "style", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "variant"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "ngmodule", type: FloatLabelModule }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PasswordComponent, decorators: [{
|
|
32
|
-
type: Component,
|
|
33
|
-
args: [{ selector: 'v-password', standalone: true, imports: [
|
|
34
|
-
CommonModule,
|
|
35
|
-
ReactiveFormsModule,
|
|
36
|
-
PasswordModule,
|
|
37
|
-
FloatLabelModule,
|
|
38
|
-
FormFieldComponent,
|
|
39
|
-
ErrorComponent
|
|
40
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
41
|
-
{
|
|
42
|
-
provide: BaseInputControls,
|
|
43
|
-
useExisting: PasswordComponent,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
provide: PASSWORD_COMPONENT_TOKEN,
|
|
47
|
-
useExisting: PasswordComponent,
|
|
48
|
-
},
|
|
49
|
-
], template: "<div class=\"v-password d-flex align-items-center\">\r\n <v-form-field\r\n class=\"w-100\"\r\n [label]=\"label\"\r\n [tooltip]=\"tooltip\"\r\n [required]=\"isRequired()\"\r\n [testId]=\"testId\"\r\n [display]=\"formDisplay\"\r\n >\r\n <p-password\r\n [style]=\"{'width':'100%'}\"\r\n [inputStyle]=\"{'width':'100%'}\" \r\n [formControl]=\"formControl\"\r\n [placeholder]=\"placeholder\"\r\n [showClear]=\"clearable\"\r\n [feedback]=\"feedback\"\r\n [required]=\"isRequired()\"\r\n [label]=\"label\"\r\n [id]=\"inputId\"\r\n [toggleMask]=\"toggleMask\"\r\n />\r\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\r\n </v-form-field>\r\n</div>\r\n" }]
|
|
50
|
-
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
51
|
-
type: Optional
|
|
52
|
-
}, {
|
|
53
|
-
type: Self
|
|
54
|
-
}] }], propDecorators: { toggleMask: [{
|
|
55
|
-
type: Input
|
|
56
|
-
}], feedback: [{
|
|
57
|
-
type: Input
|
|
58
|
-
}] } });
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFzc3dvcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktcHJpbWVuZy9zcmMvbGliL2NvbXBvbmVudHMvcGFzc3dvcmQvcGFzc3dvcmQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktcHJpbWVuZy9zcmMvbGliL2NvbX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fVwiXHJcbiAgICAgIFtpbnB1dFN0eWxlXT1cInsnd2lkdGgnOicxMDAlJ31cIiBcclxuICAgICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcclxuICAgICAgW3BsYWNlaG9sZGVyXT1cInBsYWNlaG9sZGVyXCJcclxuICAgICAgW3Nob3dDbGVhcl09XCJjbGVhcmFibGVcIlxyXG4gICAgICBbZmVlZGJhY2tdPVwiZmVlZGJhY2tcIlxyXG4gICAgICBbcmVxdWlyZWRdPVwiaXNSZXF1aXJlZCgpXCJcclxuICAgICAgW2xhYmVsXT1cImxhYmVsXCJcclxuICAgICAgW2lkXT1cImlucHV0SWRcIlxyXG4gICAgICBbdG9nZ2xlTWFza109XCJ0b2dnbGVNYXNrXCJcclxuICAgIC8+XHJcbiAgICA8di12YWxpZGF0aW9uLW1lc3NhZ2UgW25nQ29udHJvbF09XCJuZ0NvbnRyb2xcIj48L3YtdmFsaWRhdGlvbi1tZXNzYWdlPlxyXG4gIDwvdi1mb3JtLWZpZWxkPlxyXG48L2Rpdj5cclxuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './radiobutton.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1wcmltZW5nL3NyYy9saWIvY29tcG9uZW50cy9yYWRpb2J1dHRvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9yYWRpb2J1dHRvbi5jb21wb25lbnQnO1xyXG4iXX0=
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, Optional, Self, ViewEncapsulation, } from '@angular/core';
|
|
3
|
-
import { NgControl, ReactiveFormsModule, } from '@angular/forms';
|
|
4
|
-
import { BaseFormInputComponent, BaseInputControls, RADIOBUTTON_COMPONENT_TOKEN, } from '@verisoft/ui-core';
|
|
5
|
-
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
6
|
-
import { ErrorComponent } from '../errors';
|
|
7
|
-
import { FormFieldComponent } from '../form-field/form-field.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@angular/forms";
|
|
10
|
-
import * as i2 from "@angular/common";
|
|
11
|
-
import * as i3 from "primeng/radiobutton";
|
|
12
|
-
export class RadioButtonComponent extends BaseFormInputComponent {
|
|
13
|
-
constructor(ngControl) {
|
|
14
|
-
super(ngControl);
|
|
15
|
-
this.radioGroupName = Math.random().toString();
|
|
16
|
-
this.items = [];
|
|
17
|
-
}
|
|
18
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: RadioButtonComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
19
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: RadioButtonComponent, isStandalone: true, selector: "v-radiobutton", inputs: { radioGroupName: "radioGroupName", items: "items" }, providers: [
|
|
20
|
-
{
|
|
21
|
-
provide: BaseInputControls,
|
|
22
|
-
useExisting: RadioButtonComponent,
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
provide: RADIOBUTTON_COMPONENT_TOKEN,
|
|
26
|
-
useExisting: RadioButtonComponent,
|
|
27
|
-
},
|
|
28
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"v-radiobutton\">\r\n <v-form-field\r\n [label]=\"label\"\r\n [required]=\"required\"\r\n [tooltip]=\"tooltip\"\r\n [testId]=\"testId\"\r\n >\r\n <div class=\"d-flex align-items-center gap-3\">\r\n <div *ngFor=\"let item of items\">\r\n <p-radioButton\r\n [inputId]=\"item.id\"\r\n [ngClass]=\"{\r\n 'radio-error': ngControl?.invalid && ngControl?.dirty,\r\n }\"\r\n [name]=\"radioGroupName\"\r\n [value]=\"item.value\"\r\n [formControl]=\"formControl\"\r\n />\r\n <label [for]=\"item.id\" class=\"ps-2\">\r\n <span\r\n [ngClass]=\"{\r\n 'text-error': ngControl?.invalid && ngControl?.dirty,\r\n 'text-primary': ngControl?.value === item.value\r\n }\"\r\n >{{ item.value }}</span\r\n >\r\n </label>\r\n </div>\r\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\r\n </div>\r\n </v-form-field>\r\n</div>\r\n", styles: [".radio-error .p-radiobutton .p-radiobutton-box.p-highlight{border-color:var(--error-color);background:var(--error-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: FormFieldComponent, selector: "v-form-field", inputs: ["display", "variant"] }, { kind: "ngmodule", type: RadioButtonModule }, { kind: "component", type: i3.RadioButton, selector: "p-radioButton", inputs: ["value", "formControlName", "name", "disabled", "label", "variant", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "labelStyleClass", "autofocus"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: ErrorComponent, selector: "v-validation-message", inputs: ["ngControl", "errorSlot", "messageSlot", "variant", "severity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
29
|
-
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
31
|
-
type: Component,
|
|
32
|
-
args: [{ selector: 'v-radiobutton', standalone: true, imports: [
|
|
33
|
-
CommonModule,
|
|
34
|
-
FormFieldComponent,
|
|
35
|
-
RadioButtonModule,
|
|
36
|
-
ReactiveFormsModule,
|
|
37
|
-
ErrorComponent
|
|
38
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
39
|
-
{
|
|
40
|
-
provide: BaseInputControls,
|
|
41
|
-
useExisting: RadioButtonComponent,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
provide: RADIOBUTTON_COMPONENT_TOKEN,
|
|
45
|
-
useExisting: RadioButtonComponent,
|
|
46
|
-
},
|
|
47
|
-
], template: "<div class=\"v-radiobutton\">\r\n <v-form-field\r\n [label]=\"label\"\r\n [required]=\"required\"\r\n [tooltip]=\"tooltip\"\r\n [testId]=\"testId\"\r\n >\r\n <div class=\"d-flex align-items-center gap-3\">\r\n <div *ngFor=\"let item of items\">\r\n <p-radioButton\r\n [inputId]=\"item.id\"\r\n [ngClass]=\"{\r\n 'radio-error': ngControl?.invalid && ngControl?.dirty,\r\n }\"\r\n [name]=\"radioGroupName\"\r\n [value]=\"item.value\"\r\n [formControl]=\"formControl\"\r\n />\r\n <label [for]=\"item.id\" class=\"ps-2\">\r\n <span\r\n [ngClass]=\"{\r\n 'text-error': ngControl?.invalid && ngControl?.dirty,\r\n 'text-primary': ngControl?.value === item.value\r\n }\"\r\n >{{ item.value }}</span\r\n >\r\n </label>\r\n </div>\r\n <v-validation-message [ngControl]=\"ngControl\"></v-validation-message>\r\n </div>\r\n </v-form-field>\r\n</div>\r\n", styles: [".radio-error .p-radiobutton .p-radiobutton-box.p-highlight{border-color:var(--error-color);background:var(--error-color)}\n"] }]
|
|
48
|
-
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
49
|
-
type: Optional
|
|
50
|
-
}, {
|
|
51
|
-
type: Self
|
|
52
|
-
}] }], propDecorators: { radioGroupName: [{
|
|
53
|
-
type: Input
|
|
54
|
-
}], items: [{
|
|
55
|
-
type: Input
|
|
56
|
-
}] } });
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW9idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktcHJpbWVuZy9zcmMvbGliL2NvbXBvbmVudHMvcmFkaW9idXR0b24vcmFkaW9idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktcHJpbWVuZy9zcmMvbGliL2NvbXBvbmVudHMvcmFkaW9idXR0b24vcmFkaW9idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULEtBQUssRUFDTCxRQUFRLEVBQ1IsSUFBSSxFQUNKLGlCQUFpQixHQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBRUwsU0FBUyxFQUNULG1CQUFtQixHQUNwQixNQUFNLGdCQUFnQixDQUFDO0FBQ3hCLE9BQU8sRUFDTCxzQkFBc0IsRUFDdEIsaUJBQWlCLEVBQ2pCLDJCQUEyQixHQUc1QixNQUFNLG1CQUFtQixDQUFDO0FBQzNCLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxjQUFjLEV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sYXNzXT1cIntcclxuICAgICAgICAgICAgICAndGV4dC1lcnJvcic6IG5nQ29udHJvbD8uaW52YWxpZCAmJiBuZ0NvbnRyb2w/LmRpcnR5LFxyXG4gICAgICAgICAgICAgICd0ZXh0LXByaW1hcnknOiBuZ0NvbnRyb2w/LnZhbHVlID09PSBpdGVtLnZhbHVlXHJcbiAgICAgICAgICAgIH1cIlxyXG4gICAgICAgICAgICA+e3sgaXRlbS52YWx1ZSB9fTwvc3BhblxyXG4gICAgICAgICAgPlxyXG4gICAgICAgIDwvbGFiZWw+XHJcbiAgICAgIDwvZGl2PlxyXG4gICAgICA8di12YWxpZGF0aW9uLW1lc3NhZ2UgW25nQ29udHJvbF09XCJuZ0NvbnRyb2xcIj48L3YtdmFsaWRhdGlvbi1tZXNzYWdlPlxyXG4gICAgPC9kaXY+XHJcbiAgPC92LWZvcm0tZmllbGQ+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './section.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1wcmltZW5nL3NyYy9saWIvY29tcG9uZW50cy9zZWN0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NlY3Rpb24uY29tcG9uZW50JztcclxuIl19
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
3
|
-
import { SECTION_COMPONENT_TOKEN } from '@verisoft/ui-core';
|
|
4
|
-
import { Icons } from '../../icons';
|
|
5
|
-
import { ButtonComponent } from '../button';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/common";
|
|
8
|
-
export class SectionComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.showContent = true;
|
|
11
|
-
this.icons = Icons;
|
|
12
|
-
this.icon = Icons.chevronDown;
|
|
13
|
-
}
|
|
14
|
-
toggle() {
|
|
15
|
-
this.showContent = !this.showContent;
|
|
16
|
-
this.icon = this.showContent ? Icons.chevronDown : Icons.chevronUp;
|
|
17
|
-
}
|
|
18
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
19
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: SectionComponent, isStandalone: true, selector: "v-section", inputs: { title: "title", showContent: "showContent", backgroundColor: "backgroundColor" }, providers: [
|
|
20
|
-
{ provide: SECTION_COMPONENT_TOKEN, useExisting: SectionComponent },
|
|
21
|
-
], ngImport: i0, template: "<div class=\"v-section\">\r\n <div\r\n class=\"v-section-header text-align-center d-flex\"\r\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\r\n >\r\n <p\r\n class=\"text-primary align-items-center text-nowrap d-none d-md-block ps-3 m-0 w-100\"\r\n >\r\n {{ title }}\r\n </p>\r\n <div class=\"d-flex\">\r\n <ng-content select=\"[actions]\"></ng-content>\r\n <v-button\r\n size=\"small\"\r\n [icon]=\"icon\"\r\n (click)=\"toggle()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"v-section-content\" *ngIf=\"showContent\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
22
|
-
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: SectionComponent, decorators: [{
|
|
24
|
-
type: Component,
|
|
25
|
-
args: [{ selector: 'v-section', standalone: true, imports: [CommonModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
26
|
-
{ provide: SECTION_COMPONENT_TOKEN, useExisting: SectionComponent },
|
|
27
|
-
], template: "<div class=\"v-section\">\r\n <div\r\n class=\"v-section-header text-align-center d-flex\"\r\n [ngStyle]=\"{ 'background-color': backgroundColor }\"\r\n >\r\n <p\r\n class=\"text-primary align-items-center text-nowrap d-none d-md-block ps-3 m-0 w-100\"\r\n >\r\n {{ title }}\r\n </p>\r\n <div class=\"d-flex\">\r\n <ng-content select=\"[actions]\"></ng-content>\r\n <v-button\r\n size=\"small\"\r\n [icon]=\"icon\"\r\n (click)=\"toggle()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"v-section-content\" *ngIf=\"showContent\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n" }]
|
|
28
|
-
}], propDecorators: { title: [{
|
|
29
|
-
type: Input
|
|
30
|
-
}], showContent: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}], backgroundColor: [{
|
|
33
|
-
type: Input
|
|
34
|
-
}] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1wcmltZW5nL3NyYy9saWIvY29tcG9uZW50cy9zZWN0a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LTEwMFwiXHJcbiAgICA+XHJcbiAgICAgIHt7IHRpdGxlIH19XHJcbiAgICA8L3A+XHJcbiAgICA8ZGl2IGNsYXNzPVwiZC1mbGV4XCI+XHJcbiAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cIlthY3Rpb25zXVwiPjwvbmctY29udGVudD5cclxuICAgICAgPHYtYnV0dG9uXHJcbiAgICAgICAgc2l6ZT1cInNtYWxsXCJcclxuICAgICAgICBbaWNvbl09XCJpY29uXCJcclxuICAgICAgICAoY2xpY2spPVwidG9nZ2xlKClcIlxyXG4gICAgICAvPlxyXG4gICAgPC9kaXY+XHJcbiAgPC9kaXY+XHJcbiAgPGRpdiBjbGFzcz1cInYtc2VjdGlvbi1jb250ZW50XCIgKm5nSWY9XCJzaG93Q29udGVudFwiPlxyXG4gICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxyXG4gIDwvZGl2PlxyXG48L2Rpdj5cclxuIl19
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Input, QueryList, } from '@angular/core';
|
|
2
|
-
import { ACTION_BUTTON_GROUP_COMPONENT_TOKEN, queryListChanged, ScreenSizeService, UnsubscribeComponent, } from '@verisoft/ui-core';
|
|
3
|
-
import { MenuModule } from 'primeng/menu';
|
|
4
|
-
import { combineLatestWith, takeUntil, } from 'rxjs';
|
|
5
|
-
import { Icons } from '../../../icons';
|
|
6
|
-
import { ButtonComponent } from '../../button';
|
|
7
|
-
import { ActionButtonComponent } from './components/action-button/action-button.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@verisoft/ui-core";
|
|
10
|
-
import * as i2 from "primeng/menu";
|
|
11
|
-
export class ActionButtonGroupComponent extends UnsubscribeComponent {
|
|
12
|
-
constructor(changeDetectorRef, screenSizeService) {
|
|
13
|
-
super();
|
|
14
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
15
|
-
this.screenSizeService = screenSizeService;
|
|
16
|
-
this.maxItems = 3;
|
|
17
|
-
this.maxItemsMobile = 0;
|
|
18
|
-
this.items = [];
|
|
19
|
-
this.menuIconPos = 'right';
|
|
20
|
-
this.menuIcon = Icons.action;
|
|
21
|
-
this.icons = Icons;
|
|
22
|
-
this.allItems = [];
|
|
23
|
-
this.visibleActions = [];
|
|
24
|
-
this.menuItems = [];
|
|
25
|
-
}
|
|
26
|
-
ngAfterContentInit() {
|
|
27
|
-
this.subscribeItemChange();
|
|
28
|
-
}
|
|
29
|
-
fireClick(item, event) {
|
|
30
|
-
event.stopPropagation();
|
|
31
|
-
item.click.emit();
|
|
32
|
-
}
|
|
33
|
-
subscribeItemChange() {
|
|
34
|
-
const screenResize$ = this.screenSizeService.isMobileBlock;
|
|
35
|
-
const actions$ = queryListChanged(this.actions);
|
|
36
|
-
screenResize$
|
|
37
|
-
.pipe(takeUntil(this.destroyed$), combineLatestWith(actions$))
|
|
38
|
-
.subscribe(([isMobile, actions]) => {
|
|
39
|
-
this.computeItems(actions, isMobile);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
computeItems(actions, isMobile) {
|
|
43
|
-
const allItems = [...(this.items ?? []), ...actions];
|
|
44
|
-
const maxItems = isMobile ? this.maxItemsMobile : this.maxItems;
|
|
45
|
-
this.visibleActions = allItems.slice(0, maxItems);
|
|
46
|
-
this.menuItems = allItems.slice(maxItems).map(this.convertToMenuItem);
|
|
47
|
-
this.changeDetectorRef.detectChanges();
|
|
48
|
-
}
|
|
49
|
-
convertToMenuItem(item) {
|
|
50
|
-
return {
|
|
51
|
-
label: item.label,
|
|
52
|
-
icon: item.icon,
|
|
53
|
-
command: () => {
|
|
54
|
-
item.click.emit();
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ActionButtonGroupComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.ScreenSizeService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
59
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ActionButtonGroupComponent, isStandalone: true, selector: "v-action-button-group", inputs: { maxItems: "maxItems", maxItemsMobile: "maxItemsMobile", items: "items", menuIconPos: "menuIconPos", menuIcon: "menuIcon", label: "label", icon: "icon" }, providers: [
|
|
60
|
-
{
|
|
61
|
-
provide: ACTION_BUTTON_GROUP_COMPONENT_TOKEN,
|
|
62
|
-
useExisting: ActionButtonGroupComponent,
|
|
63
|
-
},
|
|
64
|
-
], queries: [{ propertyName: "actions", predicate: ActionButtonComponent }], usesInheritance: true, ngImport: i0, template: "<div\r\n class=\"v-action-button-group align-items-center justify-content-center justify-content-md-end\"\r\n>\r\n <div class=\"v-action-button-group__actions d-flex gap-2\">\r\n @for (action of visibleActions; track action) {\r\n <v-action-button\r\n [disabled]=\"action.disabled\"\r\n [icon]=\"action.icon\"\r\n [id]=\"action.id\"\r\n [outlined]=\"action.outlined\"\r\n [raised]=\"action.raised\"\r\n [toolTip]=\"action.toolTip || action.label\"\r\n [severity]=\"action.severity\"\r\n [size]=\"action.size\"\r\n (click)=\"fireClick(action, $event)\"\r\n ></v-action-button>\r\n } @if (actions.length > visibleActions.length) {\r\n <v-button\r\n (click)=\"menu.toggle($event)\"\r\n [label]=\"label\"\r\n [iconPos]=\"menuIconPos\"\r\n [icon]=\"menuIcon\"\r\n />\r\n }\r\n </div>\r\n</div>\r\n<p-menu #menu [model]=\"menuItems\" [popup]=\"true\" appendTo=\"body\" />\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MenuModule }, { kind: "component", type: i2.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }, { kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }, { kind: "component", type: ActionButtonComponent, selector: "v-action-button", inputs: ["disabled", "toolTip", "id", "icon", "outlined", "raised", "severity", "label", "size"], outputs: ["click"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
65
|
-
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ActionButtonGroupComponent, decorators: [{
|
|
67
|
-
type: Component,
|
|
68
|
-
args: [{ selector: 'v-action-button-group', standalone: true, imports: [MenuModule, ButtonComponent, ActionButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
69
|
-
{
|
|
70
|
-
provide: ACTION_BUTTON_GROUP_COMPONENT_TOKEN,
|
|
71
|
-
useExisting: ActionButtonGroupComponent,
|
|
72
|
-
},
|
|
73
|
-
], template: "<div\r\n class=\"v-action-button-group align-items-center justify-content-center justify-content-md-end\"\r\n>\r\n <div class=\"v-action-button-group__actions d-flex gap-2\">\r\n @for (action of visibleActions; track action) {\r\n <v-action-button\r\n [disabled]=\"action.disabled\"\r\n [icon]=\"action.icon\"\r\n [id]=\"action.id\"\r\n [outlined]=\"action.outlined\"\r\n [raised]=\"action.raised\"\r\n [toolTip]=\"action.toolTip || action.label\"\r\n [severity]=\"action.severity\"\r\n [size]=\"action.size\"\r\n (click)=\"fireClick(action, $event)\"\r\n ></v-action-button>\r\n } @if (actions.length > visibleActions.length) {\r\n <v-button\r\n (click)=\"menu.toggle($event)\"\r\n [label]=\"label\"\r\n [iconPos]=\"menuIconPos\"\r\n [icon]=\"menuIcon\"\r\n />\r\n }\r\n </div>\r\n</div>\r\n<p-menu #menu [model]=\"menuItems\" [popup]=\"true\" appendTo=\"body\" />\r\n" }]
|
|
74
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.ScreenSizeService }], propDecorators: { actions: [{
|
|
75
|
-
type: ContentChildren,
|
|
76
|
-
args: [ActionButtonComponent]
|
|
77
|
-
}], maxItems: [{
|
|
78
|
-
type: Input
|
|
79
|
-
}], maxItemsMobile: [{
|
|
80
|
-
type: Input
|
|
81
|
-
}], items: [{
|
|
82
|
-
type: Input
|
|
83
|
-
}], menuIconPos: [{
|
|
84
|
-
type: Input
|
|
85
|
-
}], menuIcon: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], label: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], icon: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}] } });
|
|
92
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLWJ1dHRvbi1ncm91cC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1wcmltZW5nL3NyYy9saWIvY29tcG9uZW50cy9zaGFyZWQtY29tcG9uZW50cy9hY3Rpb24tYnV0dG9uLWdyb3VwL2FjdGlvbi1idXR0b24tZ3JvdXAuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktcHJpbWVuZy9zcmMvbGliL2NvbXBvbmVudHMvc2hhcmVkLWNvbXBvbmVudHMvYWN0aW9uLWJ1dHRvbi1ncm91cC9hY3Rpb24tYnV0dG9uLWdyb3VwLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCx1QkFBdUIsRUFDdkIsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxlQUFlLEVBQ2YsS0FBSyxFQUNMLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQ0wsbUNBQW1DLEVBSW5DLGdCQUFnQixFQUNoQixpQkF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WJlbF09XCJsYWJlbFwiXHJcbiAgICAgIFtpY29uUG9zXT1cIm1lbnVJY29uUG9zXCJcclxuICAgICAgW2ljb25dPVwibWVudUljb25cIlxyXG4gICAgLz5cclxuICAgIH1cclxuICA8L2Rpdj5cclxuPC9kaXY+XHJcbjxwLW1lbnUgI21lbnUgW21vZGVsXT1cIm1lbnVJdGVtc1wiIFtwb3B1cF09XCJ0cnVlXCIgYXBwZW5kVG89XCJib2R5XCIgLz5cclxuIl19
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, Output, } from '@angular/core';
|
|
2
|
-
import { ACTION_BUTTON_GROUP_COMPONENT_TOKEN, } from '@verisoft/ui-core';
|
|
3
|
-
import { TooltipModule } from 'primeng/tooltip';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
|
-
import { Icons } from '../../../../../icons';
|
|
6
|
-
import { ButtonComponent } from '../../../../button';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "primeng/tooltip";
|
|
9
|
-
export class ActionButtonComponent {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.disabled = false;
|
|
12
|
-
this.outlined = false;
|
|
13
|
-
this.raised = false;
|
|
14
|
-
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
15
|
-
this.click = new EventEmitter();
|
|
16
|
-
this.icons = Icons;
|
|
17
|
-
this.propertyChangeSubject = new Subject();
|
|
18
|
-
this.propertyChanged = this.propertyChangeSubject.asObservable();
|
|
19
|
-
this.buttonGroup = inject(ACTION_BUTTON_GROUP_COMPONENT_TOKEN, {
|
|
20
|
-
optional: true,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
ngOnChanges(changes) {
|
|
24
|
-
const isValueChange = Object.keys(changes).some((x) => !changes[x].firstChange);
|
|
25
|
-
if (isValueChange) {
|
|
26
|
-
this.propertyChangeSubject.next(null);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
handleClick(event) {
|
|
30
|
-
event.stopPropagation();
|
|
31
|
-
this.click.emit(event);
|
|
32
|
-
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ActionButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: ActionButtonComponent, isStandalone: true, selector: "v-action-button", inputs: { disabled: "disabled", toolTip: "toolTip", id: "id", icon: "icon", outlined: "outlined", raised: "raised", severity: "severity", label: "label", size: "size" }, outputs: { click: "click" }, usesOnChanges: true, ngImport: i0, template: "<v-button\r\n [label]=\"label\"\r\n [disabled]=\"disabled\"\r\n [icon]=\"icon\"\r\n [pTooltip]=\"toolTip\"\r\n [outlined]=\"outlined\"\r\n tooltipPosition=\"bottom\"\r\n [size]=\"size\"\r\n [severity]=\"severity\"\r\n (click)=\"handleClick($event)\"\r\n></v-button>\r\n", styles: [""], dependencies: [{ kind: "component", type: ButtonComponent, selector: "v-button", inputs: ["label", "icon", "badge", "iconPos", "disabled", "rounded", "outlined", "raised", "severity", "routerLink", "size", "queryParams"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
35
|
-
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ActionButtonComponent, decorators: [{
|
|
37
|
-
type: Component,
|
|
38
|
-
args: [{ selector: 'v-action-button', standalone: true, imports: [ButtonComponent, TooltipModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<v-button\r\n [label]=\"label\"\r\n [disabled]=\"disabled\"\r\n [icon]=\"icon\"\r\n [pTooltip]=\"toolTip\"\r\n [outlined]=\"outlined\"\r\n tooltipPosition=\"bottom\"\r\n [size]=\"size\"\r\n [severity]=\"severity\"\r\n (click)=\"handleClick($event)\"\r\n></v-button>\r\n" }]
|
|
39
|
-
}], propDecorators: { disabled: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], toolTip: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], id: [{
|
|
44
|
-
type: Input
|
|
45
|
-
}], icon: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}], outlined: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], raised: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], severity: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], label: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], size: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}], click: [{
|
|
58
|
-
type: Output
|
|
59
|
-
}] } });
|
|
60
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1wcmltZW5nL3NyYy9saWIvY29tcG9uZW50cy9zaGFyZWQtY29tcG9uZW50cy9hY3Rpb24tYnV0dG9uLWdyb3VwL2NvbXBvbmVudHMvYWN0aW9uLWJ1dHRvbi9hY3Rpb24tYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWJzL3VpLXByaW1lbmcvc3JjL2xpYi9jb21wb25lbnRzL3NoYXJlZC1jb21wb25lbnRzL2FjdGlvbi1idXR0b24tZ3JvdXAvY29tcG9uZW50cy9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clxuICAgIH1cclxuICApO1xyXG5cclxuICBuZ09uQ2hhbmdlcyhjaGFuZ2VzOiBTaW1wbGVDaGFuZ2VzKTogdm9pZCB7XHJcbiAgICBjb25zdCBpc1ZhbHVlQ2hhbmdlID0gT2JqZWN0LmtleXMoY2hhbmdlcykuc29tZShcclxuICAgICAgKHgpID0+ICFjaGFuZ2VzW3hdLmZpcnN0Q2hhbmdlXHJcbiAgICApO1xyXG4gICAgaWYgKGlzVmFsdWVDaGFuZ2UpIHtcclxuICAgICAgdGhpcy5wcm9wZXJ0eUNoYW5nZVN1YmplY3QubmV4dChudWxsKTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIGhhbmRsZUNsaWNrKGV2ZW50OiBNb3VzZUV2ZW50KSB7XHJcbiAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcclxuICAgIHRoaXMuY2xpY2suZW1pdChldmVudCk7XHJcbiAgfVxyXG59XHJcbiIsIjx2LWJ1dHRvblxyXG4gIFtsYWJlbF09XCJsYWJlbFwiXHJcbiAgW2Rpc2FibGVkXT1cImRpc2FibGVkXCJcclxuICBbaWNvbl09XCJpY29uXCJcclxuICBbcFRvb2x0aXBdPVwidG9vbFRpcFwiXHJcbiAgW291dGxpbmVkXT1cIm91dGxpbmVkXCJcclxuICB0b29sdGlwUG9zaXRpb249XCJib3R0b21cIlxyXG4gIFtzaXplXT1cInNpemVcIlxyXG4gIFtzZXZlcml0eV09XCJzZXZlcml0eVwiXHJcbiAgKGNsaWNrKT1cImhhbmRsZUNsaWNrKCRldmVudClcIlxyXG4+PC92LWJ1dHRvbj5cclxuIl19
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './action-button-group.component';
|
|
2
|
-
export * from './components/action-button/action-button.component';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGlicy91aS1wcmltZW5nL3NyYy9saWIvY29tcG9uZW50cy9zaGFyZWQtY29tcG9uZW50cy9hY3Rpb24tYnV0dG9uLWdyb3VwL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYyxvREFBb0QsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYWN0aW9uLWJ1dHRvbi1ncm91cC5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMvYWN0aW9uLWJ1dHRvbi9hY3Rpb24tYnV0dG9uLmNvbXBvbmVudCc7XHJcbiJdfQ==
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { Injectable, ComponentFactoryResolver, SimpleChange, EventEmitter, } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class DynamicComponentFactoryService {
|
|
5
|
-
constructor(componentFactoryResolver) {
|
|
6
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
7
|
-
}
|
|
8
|
-
ngOnDestroy() {
|
|
9
|
-
this.unsubscribeComponentEvents(this);
|
|
10
|
-
}
|
|
11
|
-
async createDynamicComponent(componentType, viewContainerRef, inputs, injector = undefined) {
|
|
12
|
-
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(componentType);
|
|
13
|
-
viewContainerRef.clear();
|
|
14
|
-
const component = viewContainerRef.createComponent(componentFactory, undefined, injector);
|
|
15
|
-
this.setComponentDataInt(componentFactory, component, inputs);
|
|
16
|
-
this.fireComponentEvents(component.instance, inputs);
|
|
17
|
-
return component;
|
|
18
|
-
}
|
|
19
|
-
setComponentData(component, inputs) {
|
|
20
|
-
const factory = this.componentFactoryResolver.resolveComponentFactory(component.componentType);
|
|
21
|
-
this.setComponentDataInt(factory, component, inputs);
|
|
22
|
-
}
|
|
23
|
-
unsubscribeComponentEvents(instance) {
|
|
24
|
-
const subscriptionStoreKey = '__outputSubscriptions__';
|
|
25
|
-
const subscriptions = instance[subscriptionStoreKey];
|
|
26
|
-
if (subscriptions) {
|
|
27
|
-
subscriptions.forEach((sub) => sub.unsubscribe());
|
|
28
|
-
subscriptions.clear();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
fireComponentEvents(instance, inputs) {
|
|
32
|
-
if (!instance || typeof instance !== 'object')
|
|
33
|
-
return;
|
|
34
|
-
this.fireInputComponentEvents(instance, inputs);
|
|
35
|
-
this.fireOutputComponentEvents(instance, inputs);
|
|
36
|
-
}
|
|
37
|
-
setComponentDataInt(factory, component, inputs) {
|
|
38
|
-
if (inputs) {
|
|
39
|
-
const propertyNames = factory.inputs.map((x) => x.propName);
|
|
40
|
-
const inputsHash = new Set(propertyNames);
|
|
41
|
-
Object.keys(inputs)
|
|
42
|
-
.filter((x) => inputsHash.has(x))
|
|
43
|
-
.forEach((x) => {
|
|
44
|
-
component.instance[x] = inputs[x];
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
fireInputComponentEvents(instance, inputs) {
|
|
49
|
-
const onChangeComponent = instance;
|
|
50
|
-
if (onChangeComponent.ngOnChanges && inputs) {
|
|
51
|
-
const changeEventArgs = Object.keys(inputs).reduce((changes, key) => {
|
|
52
|
-
const inputValue = inputs[key];
|
|
53
|
-
changes[key] = new SimpleChange(undefined, inputValue, true);
|
|
54
|
-
return changes;
|
|
55
|
-
}, {});
|
|
56
|
-
onChangeComponent.ngOnChanges(changeEventArgs);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
fireOutputComponentEvents(instance, inputs) {
|
|
60
|
-
const outputs = Object.keys(inputs).filter((key) => {
|
|
61
|
-
const emitter = instance[key];
|
|
62
|
-
return emitter instanceof EventEmitter;
|
|
63
|
-
});
|
|
64
|
-
const subscriptionStoreKey = '__outputSubscriptions__';
|
|
65
|
-
if (!(subscriptionStoreKey in instance)) {
|
|
66
|
-
instance[subscriptionStoreKey] = new Map();
|
|
67
|
-
}
|
|
68
|
-
const subscriptions = instance[subscriptionStoreKey];
|
|
69
|
-
for (const outputKey of outputs) {
|
|
70
|
-
const eventEmitter = instance[outputKey];
|
|
71
|
-
const callback = inputs[outputKey];
|
|
72
|
-
if (eventEmitter && typeof callback === 'function') {
|
|
73
|
-
if (subscriptions.has(outputKey)) {
|
|
74
|
-
subscriptions.get(outputKey).unsubscribe();
|
|
75
|
-
}
|
|
76
|
-
const subscription = eventEmitter.subscribe((value) => callback(value));
|
|
77
|
-
subscriptions.set(outputKey, subscription);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DynamicComponentFactoryService, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
82
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DynamicComponentFactoryService, providedIn: 'root' }); }
|
|
83
|
-
}
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: DynamicComponentFactoryService, decorators: [{
|
|
85
|
-
type: Injectable,
|
|
86
|
-
args: [{
|
|
87
|
-
providedIn: 'root',
|
|
88
|
-
}]
|
|
89
|
-
}], ctorParameters: () => [{ type: i0.ComponentFactoryResolver }] });
|
|
90
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1jb21wb25lbnQtZmFjdG9yeS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYnMvdWktcHJpbW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