@testgorilla/tgo-ui 2.24.9999 → 2.99.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/accordion.component.d.ts +100 -0
- package/components/accordion/accordion.component.module.d.ts +12 -0
- package/components/accordion/accordion.model.d.ts +2 -0
- package/components/autocomplete/autocomplete.component.d.ts +289 -0
- package/components/autocomplete/autocomplete.component.module.d.ts +23 -0
- package/components/autocomplete/autocomplete.model.d.ts +22 -0
- package/components/autocomplete/includes.pipe.d.ts +12 -0
- package/components/autocomplete/prevent-input.directive.d.ts +7 -0
- package/components/autocomplete/transform-Item.pipe.d.ts +11 -0
- package/components/checklist/checklist.component.d.ts +78 -0
- package/components/checklist/checklist.model.d.ts +7 -0
- package/components/confirm-dialog/confirm-dialog.component.d.ts +29 -0
- package/components/confirm-dialog/confirm-dialog.component.module.d.ts +12 -0
- package/components/confirm-dialog/confirm-dialog.model.d.ts +11 -0
- package/components/datepicker/DateAdapter.d.ts +30 -0
- package/components/datepicker/datepicker.component.d.ts +214 -0
- package/components/datepicker/datepicker.component.module.d.ts +18 -0
- package/components/datepicker/datepicker.service.d.ts +8 -0
- package/components/datepicker/no-date-format.directive.d.ts +11 -0
- package/components/deprecated-paginator/deprecated-paginator.component.d.ts +38 -0
- package/components/deprecated-paginator/deprecated-paginator.component.module.d.ts +9 -0
- package/components/deprecated-table/deprecated-table.component.d.ts +91 -0
- package/components/deprecated-table/deprecated-table.component.module.d.ts +14 -0
- package/components/deprecated-table/deprecated-table.model.d.ts +45 -0
- package/components/deprecated-table/directives/dynamic-component.directive.d.ts +13 -0
- package/components/dialog/dialog.component.d.ts +147 -0
- package/components/dialog/dialog.component.module.d.ts +11 -0
- package/components/dialog/dialog.service.d.ts +13 -0
- package/components/divider/divider.component.d.ts +39 -0
- package/components/divider/divider.component.module.d.ts +9 -0
- package/components/divider/divider.model.d.ts +1 -0
- package/components/dropdown/dropdown.component.d.ts +189 -0
- package/components/dropdown/dropdown.component.module.d.ts +17 -0
- package/components/dropdown/dropdown.model.d.ts +5 -0
- package/components/elevation-shadow/elevation-shadow.component.d.ts +26 -0
- package/components/elevation-shadow/elevation-shadow.component.module.d.ts +8 -0
- package/components/elevation-shadow/elevation-shadow.constant.d.ts +8 -0
- package/components/empty-state/empty-state.component.d.ts +118 -0
- package/components/empty-state/empty-state.component.module.d.ts +11 -0
- package/components/empty-state/empty-state.model.d.ts +3 -0
- package/components/file-upload/file-upload.component.d.ts +120 -0
- package/components/file-upload/file-upload.component.module.d.ts +14 -0
- package/components/icon-label/icon-label.component.d.ts +39 -0
- package/components/icon-label/icon-label.component.module.d.ts +9 -0
- package/components/media-card/media-card.component.d.ts +32 -0
- package/components/multi-input/multi-input.component.d.ts +164 -0
- package/components/multi-input/multi-input.component.module.d.ts +18 -0
- package/components/multi-input/multi-input.model.d.ts +1 -0
- package/components/navbar/mobile-navbar-side-sheet/mobile-navbar-side-sheet.component.d.ts +25 -0
- package/components/navbar/navbar.component.d.ts +119 -0
- package/components/navbar/navbar.component.module.d.ts +21 -0
- package/components/navbar/navbar.model.d.ts +21 -0
- package/components/overflow-menu/overflow-menu.component.d.ts +86 -0
- package/components/overflow-menu/overflow-menu.component.module.d.ts +15 -0
- package/components/overflow-menu/overflow-menu.model.d.ts +20 -0
- package/components/page-header/page-header.component.d.ts +38 -0
- package/components/page-header/page-header.component.module.d.ts +10 -0
- package/components/paginator/paginator.component.d.ts +58 -0
- package/components/paginator/paginator.component.module.d.ts +9 -0
- package/components/password-criteria/password.component.d.ts +42 -0
- package/components/password-criteria/password.component.module.d.ts +13 -0
- package/components/password-strength/password-strength.component.d.ts +45 -0
- package/components/password-strength/password-strength.component.module.d.ts +11 -0
- package/components/phone-input/join-strings.pipe.d.ts +7 -0
- package/components/phone-input/phone-input.component.d.ts +147 -0
- package/components/phone-input/phone-input.component.module.d.ts +20 -0
- package/components/phone-input/phone-input.model.d.ts +8 -0
- package/components/progress-bar/progress-bar.component.d.ts +73 -0
- package/components/progress-bar/progress-bar.component.module.d.ts +10 -0
- package/components/radial-progress/radial-progress.component.d.ts +68 -0
- package/components/radial-progress/radial-progress.component.module.d.ts +10 -0
- package/components/radial-progress/radial-progress.model.d.ts +10 -0
- package/components/rating/half-star.pipe.d.ts +14 -0
- package/components/rating/rating.component.d.ts +64 -0
- package/components/rating/rating.component.module.d.ts +10 -0
- package/components/scale/scale.component.d.ts +53 -0
- package/components/scale/scale.component.module.d.ts +8 -0
- package/components/segmented-bar/segmented-bar.component.d.ts +63 -0
- package/components/segmented-bar/segmented-bar.component.module.d.ts +13 -0
- package/components/segmented-bar/segmented-bar.model.d.ts +12 -0
- package/components/segmented-button/segmented-button.component.d.ts +55 -0
- package/components/segmented-button/segmented-button.component.module.d.ts +11 -0
- package/components/segmented-button/segmented-button.model.d.ts +8 -0
- package/components/side-panel/side-panel.component.d.ts +1 -1
- package/components/side-sheet/side-sheet.component.d.ts +43 -0
- package/components/side-sheet/side-sheet.component.module.d.ts +14 -0
- package/components/side-sheet/side-sheet.model.d.ts +10 -0
- package/components/side-sheet/side-sheet.service.d.ts +14 -0
- package/components/skeleton/skeleton.component.d.ts +26 -0
- package/components/skeleton/skeleton.model.d.ts +2 -0
- package/components/slider/slider.component.d.ts +105 -0
- package/components/slider/slider.component.module.d.ts +14 -0
- package/components/slider/slider.model.d.ts +5 -0
- package/components/spider-chart/spider-chart.component.d.ts +88 -0
- package/components/spider-chart/spider-chart.model.d.ts +12 -0
- package/components/spider-chart/spider-chart.module.d.ts +12 -0
- package/components/step/step.component.d.ts +161 -0
- package/components/step/step.component.module.d.ts +10 -0
- package/components/stepper/stepper.component.d.ts +86 -0
- package/components/stepper/stepper.component.module.d.ts +15 -0
- package/components/stepper/stepper.model.d.ts +22 -0
- package/components/table/sentence-case.pipe.d.ts +7 -0
- package/components/table/table.component.d.ts +94 -0
- package/components/table/table.component.module.d.ts +20 -0
- package/components/table/table.model.d.ts +95 -0
- package/components/tabs/tab.directive.d.ts +24 -0
- package/components/tabs/tabs.component.d.ts +73 -0
- package/components/tabs/tabs.component.module.d.ts +11 -0
- package/components/tabs/tabs.model.d.ts +15 -0
- package/components/tag/tag.component.d.ts +131 -0
- package/components/tag/tag.component.module.d.ts +13 -0
- package/components/tag/tag.model.d.ts +1 -0
- package/components/toggle/toggle.component.d.ts +113 -0
- package/components/toggle/toggle.component.module.d.ts +14 -0
- package/components/toggle/toggle.model.d.ts +1 -0
- package/components/universal-skills-report/universal-skills-report.component.d.ts +33 -0
- package/components/universal-skills-report/universal-skills-report.component.module.d.ts +14 -0
- package/components/universal-skills-report/universal-skills-report.model.d.ts +33 -0
- package/directives/drag-drop.directive.d.ts +12 -0
- package/directives/select-text.directive.d.ts +19 -0
- package/directives/step-line-element.directive.d.ts +17 -0
- package/esm2022/assets/i18n/en.json +7 -24
- package/esm2022/components/accordion/accordion.component.mjs +135 -0
- package/esm2022/components/accordion/accordion.component.module.mjs +40 -0
- package/esm2022/components/accordion/accordion.model.mjs +2 -0
- package/esm2022/components/autocomplete/autocomplete.component.mjs +716 -0
- package/esm2022/components/autocomplete/autocomplete.component.module.mjs +73 -0
- package/esm2022/components/autocomplete/autocomplete.model.mjs +25 -0
- package/esm2022/components/autocomplete/includes.pipe.mjs +25 -0
- package/esm2022/components/autocomplete/prevent-input.directive.mjs +27 -0
- package/esm2022/components/autocomplete/transform-Item.pipe.mjs +32 -0
- package/esm2022/components/checklist/checklist.component.mjs +147 -0
- package/esm2022/components/checklist/checklist.model.mjs +2 -0
- package/esm2022/components/confirm-dialog/confirm-dialog.component.mjs +54 -0
- package/esm2022/components/confirm-dialog/confirm-dialog.component.module.mjs +29 -0
- package/esm2022/components/confirm-dialog/confirm-dialog.model.mjs +2 -0
- package/esm2022/components/datepicker/DateAdapter.mjs +30 -0
- package/esm2022/components/datepicker/datepicker.component.mjs +335 -0
- package/esm2022/components/datepicker/datepicker.component.module.mjs +60 -0
- package/esm2022/components/datepicker/datepicker.service.mjs +20 -0
- package/esm2022/components/datepicker/no-date-format.directive.mjs +56 -0
- package/esm2022/components/deprecated-paginator/deprecated-paginator.component.mjs +55 -0
- package/esm2022/components/deprecated-paginator/deprecated-paginator.component.module.mjs +20 -0
- package/esm2022/components/deprecated-table/deprecated-table.component.mjs +158 -0
- package/esm2022/components/deprecated-table/deprecated-table.component.module.mjs +43 -0
- package/esm2022/components/deprecated-table/deprecated-table.model.mjs +13 -0
- package/esm2022/components/deprecated-table/directives/dynamic-component.directive.mjs +40 -0
- package/esm2022/components/dialog/dialog.component.mjs +253 -0
- package/esm2022/components/dialog/dialog.component.module.mjs +23 -0
- package/esm2022/components/dialog/dialog.service.mjs +35 -0
- package/esm2022/components/divider/divider.component.mjs +65 -0
- package/esm2022/components/divider/divider.component.module.mjs +19 -0
- package/esm2022/components/divider/divider.model.mjs +2 -0
- package/esm2022/components/dropdown/dropdown.component.mjs +349 -0
- package/esm2022/components/dropdown/dropdown.component.module.mjs +57 -0
- package/esm2022/components/dropdown/dropdown.model.mjs +2 -0
- package/esm2022/components/elevation-shadow/elevation-shadow.component.mjs +45 -0
- package/esm2022/components/elevation-shadow/elevation-shadow.component.module.mjs +18 -0
- package/esm2022/components/elevation-shadow/elevation-shadow.constant.mjs +9 -0
- package/esm2022/components/empty-state/empty-state.component.mjs +186 -0
- package/esm2022/components/empty-state/empty-state.component.module.mjs +21 -0
- package/esm2022/components/empty-state/empty-state.model.mjs +2 -0
- package/esm2022/components/file-upload/file-upload.component.mjs +282 -0
- package/esm2022/components/file-upload/file-upload.component.module.mjs +40 -0
- package/esm2022/components/icon/icon.component.mjs +2 -2
- package/esm2022/components/icon-label/icon-label.component.mjs +53 -0
- package/esm2022/components/icon-label/icon-label.component.module.mjs +20 -0
- package/esm2022/components/media-card/media-card.component.mjs +47 -0
- package/esm2022/components/multi-input/multi-input.component.mjs +318 -0
- package/esm2022/components/multi-input/multi-input.component.module.mjs +58 -0
- package/esm2022/components/multi-input/multi-input.model.mjs +2 -0
- package/esm2022/components/navbar/mobile-navbar-side-sheet/mobile-navbar-side-sheet.component.mjs +82 -0
- package/esm2022/components/navbar/navbar.component.mjs +209 -0
- package/esm2022/components/navbar/navbar.component.module.mjs +71 -0
- package/esm2022/components/navbar/navbar.model.mjs +2 -0
- package/esm2022/components/overflow-menu/overflow-menu.component.mjs +195 -0
- package/esm2022/components/overflow-menu/overflow-menu.component.module.mjs +25 -0
- package/esm2022/components/overflow-menu/overflow-menu.model.mjs +2 -0
- package/esm2022/components/page-header/page-header.component.mjs +71 -0
- package/esm2022/components/page-header/page-header.component.module.mjs +20 -0
- package/esm2022/components/paginator/paginator.component.mjs +87 -0
- package/esm2022/components/paginator/paginator.component.module.mjs +19 -0
- package/esm2022/components/password-criteria/password.component.mjs +105 -0
- package/esm2022/components/password-criteria/password.component.module.mjs +39 -0
- package/esm2022/components/password-strength/password-strength.component.mjs +93 -0
- package/esm2022/components/password-strength/password-strength.component.module.mjs +21 -0
- package/esm2022/components/phone-input/join-strings.pipe.mjs +14 -0
- package/esm2022/components/phone-input/phone-input.component.mjs +353 -0
- package/esm2022/components/phone-input/phone-input.component.module.mjs +63 -0
- package/esm2022/components/phone-input/phone-input.model.mjs +2 -0
- package/esm2022/components/progress-bar/progress-bar.component.mjs +103 -0
- package/esm2022/components/progress-bar/progress-bar.component.module.mjs +21 -0
- package/esm2022/components/radial-progress/radial-progress.component.mjs +106 -0
- package/esm2022/components/radial-progress/radial-progress.component.module.mjs +20 -0
- package/esm2022/components/radial-progress/radial-progress.model.mjs +11 -0
- package/esm2022/components/rating/half-star.pipe.mjs +23 -0
- package/esm2022/components/rating/rating.component.mjs +92 -0
- package/esm2022/components/rating/rating.component.module.mjs +20 -0
- package/esm2022/components/scale/scale.component.mjs +124 -0
- package/esm2022/components/scale/scale.component.module.mjs +18 -0
- package/esm2022/components/segmented-bar/segmented-bar.component.mjs +106 -0
- package/esm2022/components/segmented-bar/segmented-bar.component.module.mjs +23 -0
- package/esm2022/components/segmented-bar/segmented-bar.model.mjs +2 -0
- package/esm2022/components/segmented-button/segmented-button.component.mjs +104 -0
- package/esm2022/components/segmented-button/segmented-button.component.module.mjs +21 -0
- package/esm2022/components/segmented-button/segmented-button.model.mjs +2 -0
- package/esm2022/components/side-sheet/side-sheet.component.mjs +105 -0
- package/esm2022/components/side-sheet/side-sheet.component.module.mjs +43 -0
- package/esm2022/components/side-sheet/side-sheet.model.mjs +2 -0
- package/esm2022/components/side-sheet/side-sheet.service.mjs +31 -0
- package/esm2022/components/skeleton/skeleton.component.mjs +71 -0
- package/esm2022/components/skeleton/skeleton.model.mjs +2 -0
- package/esm2022/components/slider/slider.component.mjs +198 -0
- package/esm2022/components/slider/slider.component.module.mjs +43 -0
- package/esm2022/components/slider/slider.model.mjs +2 -0
- package/esm2022/components/spider-chart/spider-chart.component.mjs +425 -0
- package/esm2022/components/spider-chart/spider-chart.model.mjs +4 -0
- package/esm2022/components/spider-chart/spider-chart.module.mjs +41 -0
- package/esm2022/components/step/step.component.mjs +149 -0
- package/esm2022/components/step/step.component.module.mjs +20 -0
- package/esm2022/components/stepper/stepper.component.mjs +150 -0
- package/esm2022/components/stepper/stepper.component.module.mjs +44 -0
- package/esm2022/components/stepper/stepper.model.mjs +2 -0
- package/esm2022/components/table/sentence-case.pipe.mjs +19 -0
- package/esm2022/components/table/table.component.mjs +226 -0
- package/esm2022/components/table/table.component.module.mjs +61 -0
- package/esm2022/components/table/table.model.mjs +13 -0
- package/esm2022/components/tabs/tab.directive.mjs +54 -0
- package/esm2022/components/tabs/tabs.component.mjs +188 -0
- package/esm2022/components/tabs/tabs.component.module.mjs +21 -0
- package/esm2022/components/tabs/tabs.model.mjs +2 -0
- package/esm2022/components/tag/tag.component.mjs +212 -0
- package/esm2022/components/tag/tag.component.module.mjs +24 -0
- package/esm2022/components/tag/tag.model.mjs +2 -0
- package/esm2022/components/toggle/toggle.component.mjs +190 -0
- package/esm2022/components/toggle/toggle.component.module.mjs +24 -0
- package/esm2022/components/toggle/toggle.model.mjs +2 -0
- package/esm2022/components/tooltip/tooltip-template.directive.mjs +9 -11
- package/esm2022/components/universal-skills-report/universal-skills-report.component.mjs +115 -0
- package/esm2022/components/universal-skills-report/universal-skills-report.component.module.mjs +43 -0
- package/esm2022/components/universal-skills-report/universal-skills-report.model.mjs +19 -0
- package/esm2022/directives/drag-drop.directive.mjs +55 -0
- package/esm2022/directives/select-text.directive.mjs +40 -0
- package/esm2022/directives/step-line-element.directive.mjs +51 -0
- package/esm2022/models/keyboard-events.model.mjs +13 -0
- package/esm2022/models/screen-breakpoints.model.mjs +6 -0
- package/esm2022/pipes/data-property-getter.mjs +33 -0
- package/esm2022/pipes/ui-ordinal-suffix.pipe.mjs +31 -0
- package/esm2022/providers/is-mobile.mjs +11 -0
- package/esm2022/public-api.mjs +214 -189
- package/esm2022/utils/autocomplete-utils.mjs +66 -0
- package/esm2022/utils/hex-to-rgb.mjs +9 -0
- package/esm2022/utils/table.utils.mjs +19 -0
- package/fesm2022/testgorilla-tgo-ui.mjs +11137 -3138
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/models/keyboard-events.model.d.ts +11 -0
- package/models/screen-breakpoints.model.d.ts +4 -0
- package/package.json +2 -4
- package/pipes/data-property-getter.d.ts +8 -0
- package/pipes/ui-ordinal-suffix.pipe.d.ts +7 -0
- package/projects/tgo-canopy-ui/assets/i18n/en.json +7 -24
- package/providers/is-mobile.d.ts +2 -0
- package/public-api.d.ts +151 -17
- package/utils/autocomplete-utils.d.ts +12 -0
- package/utils/hex-to-rgb.d.ts +1 -0
- package/utils/table.utils.d.ts +6 -0
- package/components/alert-banner/index.d.ts +0 -1
- package/components/alert-banner/public-api.d.ts +0 -2
- package/components/avatar/index.d.ts +0 -1
- package/components/avatar/public-api.d.ts +0 -3
- package/components/badge/index.d.ts +0 -1
- package/components/badge/public-api.d.ts +0 -3
- package/components/button/index.d.ts +0 -1
- package/components/button/public-api.d.ts +0 -3
- package/components/card/index.d.ts +0 -1
- package/components/card/public-api.d.ts +0 -3
- package/components/checkbox/index.d.ts +0 -1
- package/components/checkbox/public-api.d.ts +0 -2
- package/components/field/index.d.ts +0 -1
- package/components/field/public-api.d.ts +0 -3
- package/components/gaussian-chart/gaussian-chart.component.d.ts +0 -75
- package/components/gaussian-chart/gaussian-chart.module.d.ts +0 -13
- package/components/icon/index.d.ts +0 -1
- package/components/icon/public-api.d.ts +0 -3
- package/components/logo/index.d.ts +0 -1
- package/components/logo/public-api.d.ts +0 -3
- package/components/radio-button/index.d.ts +0 -1
- package/components/radio-button/public-api.d.ts +0 -2
- package/components/side-panel/index.d.ts +0 -1
- package/components/side-panel/public-api.d.ts +0 -3
- package/components/snackbar/index.d.ts +0 -1
- package/components/snackbar/public-api.d.ts +0 -4
- package/components/spinner/index.d.ts +0 -1
- package/components/spinner/public-api.d.ts +0 -3
- package/components/tooltip/index.d.ts +0 -1
- package/components/tooltip/public-api.d.ts +0 -3
- package/esm2022/components/alert-banner/index.mjs +0 -2
- package/esm2022/components/alert-banner/public-api.mjs +0 -3
- package/esm2022/components/avatar/index.mjs +0 -2
- package/esm2022/components/avatar/public-api.mjs +0 -4
- package/esm2022/components/badge/index.mjs +0 -2
- package/esm2022/components/badge/public-api.mjs +0 -4
- package/esm2022/components/button/index.mjs +0 -2
- package/esm2022/components/button/public-api.mjs +0 -4
- package/esm2022/components/card/index.mjs +0 -2
- package/esm2022/components/card/public-api.mjs +0 -4
- package/esm2022/components/checkbox/index.mjs +0 -2
- package/esm2022/components/checkbox/public-api.mjs +0 -3
- package/esm2022/components/field/index.mjs +0 -2
- package/esm2022/components/field/public-api.mjs +0 -4
- package/esm2022/components/gaussian-chart/gaussian-chart.component.mjs +0 -246
- package/esm2022/components/gaussian-chart/gaussian-chart.module.mjs +0 -42
- package/esm2022/components/icon/index.mjs +0 -2
- package/esm2022/components/icon/public-api.mjs +0 -4
- package/esm2022/components/logo/index.mjs +0 -2
- package/esm2022/components/logo/public-api.mjs +0 -4
- package/esm2022/components/radio-button/index.mjs +0 -2
- package/esm2022/components/radio-button/public-api.mjs +0 -3
- package/esm2022/components/side-panel/index.mjs +0 -2
- package/esm2022/components/side-panel/public-api.mjs +0 -4
- package/esm2022/components/snackbar/index.mjs +0 -2
- package/esm2022/components/snackbar/public-api.mjs +0 -5
- package/esm2022/components/spinner/index.mjs +0 -2
- package/esm2022/components/spinner/public-api.mjs +0 -4
- package/esm2022/components/tooltip/index.mjs +0 -2
- package/esm2022/components/tooltip/public-api.mjs +0 -4
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Step, StepperPosition } from './stepper.model';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ApplicationTheme } from "../../models/application-theme.model";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class StepperComponent {
|
|
7
|
+
private readonly defaultAppTheme;
|
|
8
|
+
protected readonly isMobile$: Observable<boolean>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* Auto selects first step as visited
|
|
12
|
+
* Defaults to true
|
|
13
|
+
*
|
|
14
|
+
* @memberof StepperComponent
|
|
15
|
+
*/
|
|
16
|
+
set setFirstStepAutoSelect(value: boolean);
|
|
17
|
+
/**
|
|
18
|
+
* Input property to set the steps for the stepper.
|
|
19
|
+
* The first step will be marked as visited automatically.
|
|
20
|
+
*
|
|
21
|
+
* @memberof StepperComponent
|
|
22
|
+
*/
|
|
23
|
+
set steps(itemSteps: Step[]);
|
|
24
|
+
/**
|
|
25
|
+
* Input property to set the selected index of the stepper.
|
|
26
|
+
* Default value is 0.
|
|
27
|
+
*
|
|
28
|
+
* @memberof StepperComponent
|
|
29
|
+
*/
|
|
30
|
+
set setSelectedIndex(value: number);
|
|
31
|
+
/**
|
|
32
|
+
* Input property indicating whether the final icon should be displayed.
|
|
33
|
+
* Default value is false.
|
|
34
|
+
*
|
|
35
|
+
* @memberof StepperComponent
|
|
36
|
+
*/
|
|
37
|
+
lastStepFinalIcon: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* Defines the application theme
|
|
41
|
+
*
|
|
42
|
+
* @type {ApplicationTheme}
|
|
43
|
+
* @memberof StepperComponent
|
|
44
|
+
*/
|
|
45
|
+
applicationTheme: ApplicationTheme;
|
|
46
|
+
/**
|
|
47
|
+
* A string representing the ARIA label for accessibility.
|
|
48
|
+
* This label is used to provide an accessible name for the input element.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof StepperComponent
|
|
51
|
+
*/
|
|
52
|
+
ariaLabel: string;
|
|
53
|
+
/**
|
|
54
|
+
* Defines the stepper position
|
|
55
|
+
*
|
|
56
|
+
* @type {StepperPosition}
|
|
57
|
+
* @memberof StepperComponent
|
|
58
|
+
*/
|
|
59
|
+
position: StepperPosition;
|
|
60
|
+
/**
|
|
61
|
+
* A string representing the ARIA requirement for accessibility.
|
|
62
|
+
* This attribute is used to indicate whether an input field is required for form submission.
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof StepperComponent
|
|
65
|
+
*/
|
|
66
|
+
ariaRequired: boolean;
|
|
67
|
+
selectionChange: EventEmitter<{
|
|
68
|
+
selectedIndex: number;
|
|
69
|
+
previousIndex: number;
|
|
70
|
+
step: Step;
|
|
71
|
+
}>;
|
|
72
|
+
private isOpened;
|
|
73
|
+
private firstStepAutoSelect;
|
|
74
|
+
protected itemSteps: Step[];
|
|
75
|
+
protected progressValue: number;
|
|
76
|
+
protected translationContext: string;
|
|
77
|
+
protected selectedIndex: number;
|
|
78
|
+
get isOpen(): boolean;
|
|
79
|
+
set isOpen(value: boolean);
|
|
80
|
+
constructor(defaultAppTheme: ApplicationTheme, isMobile$: Observable<boolean>);
|
|
81
|
+
protected onSelect(changedIndex: number, step: Step): void;
|
|
82
|
+
protected showStepsToggle(): void;
|
|
83
|
+
protected onCloseStepList(): void;
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, [{ optional: true; }, null]>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "ui-stepper", never, { "setFirstStepAutoSelect": { "alias": "firstStepAutoSelect"; "required": false; }; "steps": { "alias": "steps"; "required": false; }; "setSelectedIndex": { "alias": "selectedIndex"; "required": false; }; "lastStepFinalIcon": { "alias": "lastStepFinalIcon"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "position": { "alias": "position"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, false, never>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./stepper.component";
|
|
3
|
+
import * as i2 from "../../directives/step-line-element.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "../icon/icon.component.module";
|
|
6
|
+
import * as i5 from "../step/step.component.module";
|
|
7
|
+
import * as i6 from "@angular/material/progress-spinner";
|
|
8
|
+
import * as i7 from "../radial-progress/radial-progress.component.module";
|
|
9
|
+
import * as i8 from "../../pipes/ui-translate.pipe";
|
|
10
|
+
import * as i9 from "@angular/material/input";
|
|
11
|
+
export declare class StepperComponentModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponentModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StepperComponentModule, [typeof i1.StepperComponent, typeof i2.StepLineElementDirective], [typeof i3.CommonModule, typeof i4.IconComponentModule, typeof i5.StepComponentModule, typeof i6.MatProgressSpinnerModule, typeof i7.RadialProgressComponentModule, typeof i8.UiTranslatePipe, typeof i9.MatInputModule], [typeof i1.StepperComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<StepperComponentModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IconName } from '../icon/icon.model';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
export interface Step {
|
|
4
|
+
label: string;
|
|
5
|
+
isVisited?: boolean;
|
|
6
|
+
iconName?: IconName;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
submitted?: boolean;
|
|
9
|
+
showIconWhenSelected?: boolean;
|
|
10
|
+
htmlDescription?: HtmlDescription[];
|
|
11
|
+
boldLabel?: boolean;
|
|
12
|
+
descriptionTpl?: TemplateRef<any>;
|
|
13
|
+
labelTooltip?: string;
|
|
14
|
+
alwaysShowIcon?: boolean;
|
|
15
|
+
context?: any;
|
|
16
|
+
}
|
|
17
|
+
export interface HtmlDescription {
|
|
18
|
+
text?: string;
|
|
19
|
+
iconName?: IconName;
|
|
20
|
+
iconTooltip?: string;
|
|
21
|
+
}
|
|
22
|
+
export type StepperPosition = 'horizontal' | 'vertical';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SentenceCasePipe implements PipeTransform {
|
|
4
|
+
transform(value: string | undefined): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SentenceCasePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SentenceCasePipe, "sentencecase", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { AfterViewInit, DestroyRef, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ColumnEllipse, ColumnType, ComponentRenderer, DataSource, ScrollSettings, TableColumn, TableConfig, TableConfigWithPagination, TableData, TableDetailColumn } from './table.model';
|
|
3
|
+
import { PageEvent } from '@angular/material/paginator';
|
|
4
|
+
import { ApplicationTheme } from '../../models/application-theme.model';
|
|
5
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
6
|
+
import { Sort } from '@angular/material/sort';
|
|
7
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class TableComponent<T extends DataSource, TDetail extends DataSource> implements OnChanges, AfterViewInit {
|
|
10
|
+
private readonly defaultAppTheme;
|
|
11
|
+
private destroyRef;
|
|
12
|
+
protected readonly isMobile$: Observable<boolean>;
|
|
13
|
+
/**
|
|
14
|
+
* Table configuration
|
|
15
|
+
*
|
|
16
|
+
* @type {TableConfig}
|
|
17
|
+
* @memberof TableComponent
|
|
18
|
+
*/
|
|
19
|
+
set config(config: TableConfig<T>);
|
|
20
|
+
/**
|
|
21
|
+
* Input property for providing the table data.
|
|
22
|
+
*
|
|
23
|
+
* @type {TableData}
|
|
24
|
+
* @memberof TableComponent
|
|
25
|
+
*/
|
|
26
|
+
set data(tableData: TableData);
|
|
27
|
+
/**
|
|
28
|
+
* Input property indicating whether the table is in a loading state.
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof TableComponent
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
loading: boolean;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* Defines the application theme
|
|
38
|
+
* @type {ApplicationTheme}
|
|
39
|
+
* @memberof TableComponent
|
|
40
|
+
*/
|
|
41
|
+
applicationTheme: ApplicationTheme;
|
|
42
|
+
/**
|
|
43
|
+
* Data structure to select which columns should be rendered and their capabilities
|
|
44
|
+
*
|
|
45
|
+
* @type {TableDetailColumn}
|
|
46
|
+
* @memberof TableComponent
|
|
47
|
+
*/
|
|
48
|
+
tableDetailColumns: TableDetailColumn<T, TDetail>;
|
|
49
|
+
tableDetails: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Disable border radius for table
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof TableComponent
|
|
55
|
+
*/
|
|
56
|
+
disableBorderRadius: boolean;
|
|
57
|
+
onRowClickEvent: EventEmitter<any>;
|
|
58
|
+
onDetailRowClickEvent: EventEmitter<any>;
|
|
59
|
+
paginatorChange: EventEmitter<PageEvent>;
|
|
60
|
+
sortChange: EventEmitter<Sort>;
|
|
61
|
+
table: ElementRef;
|
|
62
|
+
protected tableData: TableData;
|
|
63
|
+
protected sourceData: TableData;
|
|
64
|
+
protected columnsTooltipState: ColumnEllipse[];
|
|
65
|
+
protected tableConfig: TableConfigWithPagination<T>;
|
|
66
|
+
protected displayedColumns: string[];
|
|
67
|
+
protected columnsDetailToDisplay: string[];
|
|
68
|
+
protected skeletonStyleConfig: {
|
|
69
|
+
background: string;
|
|
70
|
+
'border-radius': string;
|
|
71
|
+
height: string;
|
|
72
|
+
};
|
|
73
|
+
protected dataSourceDetail: MatTableDataSource<any, import("@angular/material/table").MatTableDataSourcePaginator>;
|
|
74
|
+
protected elementDetail: any;
|
|
75
|
+
protected readonly DataType: typeof ColumnType;
|
|
76
|
+
protected scrollSettings$: BehaviorSubject<ScrollSettings>;
|
|
77
|
+
constructor(defaultAppTheme: ApplicationTheme, destroyRef: DestroyRef, isMobile$: Observable<boolean>);
|
|
78
|
+
ngOnInit(): void;
|
|
79
|
+
ngAfterViewInit(): void;
|
|
80
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
81
|
+
hasTableScroll(): void;
|
|
82
|
+
callRenderer([rendererFn, element]: [(v: T) => ComponentRenderer | string, T]): any;
|
|
83
|
+
protected onPaginatorChange(event: PageEvent): void;
|
|
84
|
+
protected onChangeColumnSize(columnIndex: number, showTooltip: boolean): void;
|
|
85
|
+
protected onSortChange(sortState: Sort): void;
|
|
86
|
+
protected onRowClick(rowParams: any): void;
|
|
87
|
+
protected onDetailRowClick(rowParams: any): void;
|
|
88
|
+
protected toggleRow(element: T): void;
|
|
89
|
+
private setTableDetailDataSource;
|
|
90
|
+
private defaultPaginationConfig;
|
|
91
|
+
trackColumnUniqueId: (index: number, column: TableColumn<T>) => string;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any, any>, [{ optional: true; }, null, null]>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any, any>, "ui-table", never, { "config": { "alias": "config"; "required": true; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "tableDetailColumns": { "alias": "tableDetailColumns"; "required": false; }; "tableDetails": { "alias": "tableDetails"; "required": false; }; "disableBorderRadius": { "alias": "disableBorderRadius"; "required": false; }; }, { "onRowClickEvent": "onRowClickEvent"; "onDetailRowClickEvent": "onDetailRowClickEvent"; "paginatorChange": "paginatorChange"; "sortChange": "sortChange"; }, never, ["[title-actions]"], false, never>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./table.component";
|
|
3
|
+
import * as i2 from "./sentence-case.pipe";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/material/table";
|
|
6
|
+
import * as i5 from "@angular/material/tooltip";
|
|
7
|
+
import * as i6 from "../skeleton/skeleton.component";
|
|
8
|
+
import * as i7 from "../paginator/paginator.component.module";
|
|
9
|
+
import * as i8 from "../button/button.component.module";
|
|
10
|
+
import * as i9 from "@angular/material/sort";
|
|
11
|
+
import * as i10 from "../icon/icon.component.module";
|
|
12
|
+
import * as i11 from "../../directives/ellipse-text.directive";
|
|
13
|
+
import * as i12 from "../deprecated-table/directives/dynamic-component.directive";
|
|
14
|
+
import * as i13 from "../../pipes/data-property-getter";
|
|
15
|
+
import * as i14 from "../../pipes/memoize-func.pipe";
|
|
16
|
+
export declare class TableComponentModule {
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponentModule, never>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TableComponentModule, [typeof i1.TableComponent, typeof i2.SentenceCasePipe], [typeof i3.CommonModule, typeof i4.MatTableModule, typeof i5.MatTooltipModule, typeof i6.SkeletonComponent, typeof i7.PaginatorComponentModule, typeof i8.ButtonComponentModule, typeof i9.MatSortModule, typeof i10.IconComponentModule, typeof i11.EllipseTextDirective, typeof i12.DynamicComponentDirective, typeof i13.DataPropertyGetterPipe, typeof i14.MemoizeFuncPipe], [typeof i1.TableComponent]>;
|
|
19
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TableComponentModule>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { TemplateRef, Type } from '@angular/core';
|
|
2
|
+
export interface TableConfig<T = any> {
|
|
3
|
+
columns: TableColumn<T>[];
|
|
4
|
+
pagination?: Pagination;
|
|
5
|
+
title?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
sort?: Sort;
|
|
8
|
+
hidePagination?: boolean;
|
|
9
|
+
noDataRowTpl?: TemplateRef<any>;
|
|
10
|
+
}
|
|
11
|
+
export interface TableConfigWithPagination<T> extends TableConfig<T> {
|
|
12
|
+
pagination: Pagination;
|
|
13
|
+
}
|
|
14
|
+
export interface TableColumn<T = any> {
|
|
15
|
+
title: string;
|
|
16
|
+
key: string;
|
|
17
|
+
widthPerc?: number;
|
|
18
|
+
minWidthPx?: number;
|
|
19
|
+
allowMultiline?: boolean;
|
|
20
|
+
bold?: boolean;
|
|
21
|
+
showTooltip?: boolean;
|
|
22
|
+
tooltip?: string;
|
|
23
|
+
allowSort?: boolean;
|
|
24
|
+
isSticky?: boolean;
|
|
25
|
+
headerCellTemplate?: TemplateRef<any>;
|
|
26
|
+
rowCellTemplate?: TemplateRef<any>;
|
|
27
|
+
rowCellTemplateClick?: () => any;
|
|
28
|
+
sortHeader?: string;
|
|
29
|
+
hidden?: boolean;
|
|
30
|
+
order?: number;
|
|
31
|
+
fontSize?: '12px' | '14px';
|
|
32
|
+
field?: string;
|
|
33
|
+
type?: ColumnType;
|
|
34
|
+
function?: (v: T) => string;
|
|
35
|
+
renderer?: (v: T) => ComponentRenderer | string;
|
|
36
|
+
styles?: ColumnStyles;
|
|
37
|
+
sortStart?: SortDirection;
|
|
38
|
+
uniqueId?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface Pagination {
|
|
41
|
+
itemsPerPageOptions: number[];
|
|
42
|
+
itemsPerPage: number;
|
|
43
|
+
currentPage: number;
|
|
44
|
+
totalItems: number;
|
|
45
|
+
}
|
|
46
|
+
export type TableData = Record<string, any>[];
|
|
47
|
+
export interface ColumnEllipse {
|
|
48
|
+
index: number;
|
|
49
|
+
showTooltip: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface Sort {
|
|
52
|
+
active: string;
|
|
53
|
+
direction: SortDirection;
|
|
54
|
+
defaultSortStart?: SortDirection;
|
|
55
|
+
}
|
|
56
|
+
export type SortDirection = 'asc' | 'desc' | '';
|
|
57
|
+
export interface TableDetailColumn<T, TDetail> {
|
|
58
|
+
columnDefs: TableColumn<TDetail>[];
|
|
59
|
+
setDetailRowData: (params: DetailRowDataParams<T, TDetail>) => void;
|
|
60
|
+
}
|
|
61
|
+
export interface DetailRowDataParams<T, TDetail> {
|
|
62
|
+
data: T;
|
|
63
|
+
setDetailDataSource(rowData: TDetail[]): void;
|
|
64
|
+
}
|
|
65
|
+
export declare enum ColumnType {
|
|
66
|
+
FIELD = "field",
|
|
67
|
+
FUNCTION = "function",
|
|
68
|
+
RENDERER = "renderer"
|
|
69
|
+
}
|
|
70
|
+
export interface ComponentRenderer {
|
|
71
|
+
component: Type<any>;
|
|
72
|
+
inputs?: any;
|
|
73
|
+
outputs?: {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export interface ColumnStyles {
|
|
78
|
+
alignment?: ColumnAlignment;
|
|
79
|
+
width?: string;
|
|
80
|
+
'min-width'?: string;
|
|
81
|
+
padding?: string;
|
|
82
|
+
}
|
|
83
|
+
export declare enum ColumnAlignment {
|
|
84
|
+
LEFT = "left",
|
|
85
|
+
RIGHT = "right",
|
|
86
|
+
CENTER = "center"
|
|
87
|
+
}
|
|
88
|
+
export type DataSource = {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
};
|
|
91
|
+
export type ScrollSettings = {
|
|
92
|
+
scrollEnd: boolean;
|
|
93
|
+
horizontalScroll: boolean;
|
|
94
|
+
scrollStart: boolean;
|
|
95
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { IconName } from '../icon/icon.model';
|
|
3
|
+
import { Tab } from './tabs.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TabDirective implements OnInit {
|
|
6
|
+
tabLabel: import("@angular/core").InputSignal<string>;
|
|
7
|
+
tabName: import("@angular/core").InputSignal<string>;
|
|
8
|
+
iconLeft: import("@angular/core").InputSignal<IconName | undefined>;
|
|
9
|
+
iconRight: import("@angular/core").InputSignal<IconName | undefined>;
|
|
10
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, string>;
|
|
11
|
+
canLeave: import("@angular/core").InputSignal<((ctx?: {
|
|
12
|
+
currentTab: Tab;
|
|
13
|
+
nextTab: Tab;
|
|
14
|
+
}) => boolean | Promise<boolean>) | undefined>;
|
|
15
|
+
linkUrl: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
+
private tabsComponent;
|
|
17
|
+
private template;
|
|
18
|
+
private syncProps;
|
|
19
|
+
private cleanup;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
private addTab;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabDirective, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabDirective, "ng-template[uiTab]", never, { "tabLabel": { "alias": "tabLabel"; "required": true; "isSignal": true; }; "tabName": { "alias": "tabName"; "required": true; "isSignal": true; }; "iconLeft": { "alias": "iconLeft"; "required": false; "isSignal": true; }; "iconRight": { "alias": "iconRight"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "canLeave": { "alias": "canLeave"; "required": false; "isSignal": true; }; "linkUrl": { "alias": "linkUrl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Tab, TabsType } from './tabs.model';
|
|
3
|
+
import { ApplicationTheme } from '../../models/application-theme.model';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { MatTabChangeEvent, MatTabGroup } from '@angular/material/tabs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TabsComponent {
|
|
8
|
+
private readonly defaultAppTheme;
|
|
9
|
+
protected readonly isMobile$: Observable<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* Color of the Tabs.
|
|
12
|
+
* Defaults to Test Gorilla primary color.
|
|
13
|
+
*
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof TabsComponent
|
|
16
|
+
*/
|
|
17
|
+
companyColor: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Type the Tabs.
|
|
20
|
+
* Defaults underlined.
|
|
21
|
+
*
|
|
22
|
+
* @type {TabsType}
|
|
23
|
+
* @memberof TabsComponent
|
|
24
|
+
*/
|
|
25
|
+
type: TabsType;
|
|
26
|
+
/**
|
|
27
|
+
* Animation duration when switching tabs
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof TabsComponent
|
|
31
|
+
*/
|
|
32
|
+
animationDuration: number;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the padding for content and header
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof TabsComponent
|
|
38
|
+
*/
|
|
39
|
+
headerContentPadding: string;
|
|
40
|
+
/**
|
|
41
|
+
* Sets the dynamic height of the tab
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof TabsComponent
|
|
44
|
+
*/
|
|
45
|
+
dynamicHeight: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* Defines the application theme
|
|
49
|
+
*
|
|
50
|
+
* @type {ApplicationTheme}
|
|
51
|
+
* @memberof TabsComponent
|
|
52
|
+
*/
|
|
53
|
+
applicationTheme: ApplicationTheme;
|
|
54
|
+
selectedTabIndex: EventEmitter<number>;
|
|
55
|
+
selectedTab: EventEmitter<Tab>;
|
|
56
|
+
tabGroup: MatTabGroup;
|
|
57
|
+
protected tabs: Tab[];
|
|
58
|
+
readonly tabIndex: import("@angular/core").WritableSignal<number>;
|
|
59
|
+
protected tabIndexMap: Record<string, number>;
|
|
60
|
+
constructor(defaultAppTheme: ApplicationTheme, isMobile$: Observable<boolean>);
|
|
61
|
+
ngAfterViewInit(): void;
|
|
62
|
+
addTab(tab: Tab): void;
|
|
63
|
+
onTabChange(ev: MatTabChangeEvent): void;
|
|
64
|
+
selectTab(tabName: string): void;
|
|
65
|
+
indexOf(tabName: string): number;
|
|
66
|
+
trackByTabName(index: number, tab: Tab): string;
|
|
67
|
+
removeTab(tabName: string): void;
|
|
68
|
+
updateTab(tabName: string, tab: Partial<Omit<Tab, 'tabName'>>): void;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, [{ optional: true; }, null]>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "ui-tabs", never, { "companyColor": { "alias": "companyColor"; "required": false; }; "type": { "alias": "type"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "headerContentPadding": { "alias": "headerContentPadding"; "required": false; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; }, { "selectedTabIndex": "selectedTabIndex"; "selectedTab": "selectedTab"; }, never, never, false, never>;
|
|
71
|
+
static ngAcceptInputType_headerContentPadding: number;
|
|
72
|
+
static ngAcceptInputType_dynamicHeight: unknown;
|
|
73
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tabs.component";
|
|
3
|
+
import * as i2 from "./tab.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/material/tabs";
|
|
6
|
+
import * as i5 from "../icon/icon.component.module";
|
|
7
|
+
export declare class TabsComponentModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponentModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TabsComponentModule, [typeof i1.TabsComponent], [typeof i2.TabDirective, typeof i3.CommonModule, typeof i4.MatTabsModule, typeof i5.IconComponentModule], [typeof i1.TabsComponent, typeof i2.TabDirective]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TabsComponentModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IconName } from '../icon/icon.model';
|
|
2
|
+
export interface Tab {
|
|
3
|
+
tabName: string;
|
|
4
|
+
tabLabel: string;
|
|
5
|
+
contentTemplateRef: any;
|
|
6
|
+
iconLeft?: IconName;
|
|
7
|
+
iconRight?: IconName;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
canLeave?: (ctx?: {
|
|
10
|
+
currentTab: Tab;
|
|
11
|
+
nextTab: Tab;
|
|
12
|
+
}) => boolean | Promise<boolean>;
|
|
13
|
+
linkUrl?: string;
|
|
14
|
+
}
|
|
15
|
+
export type TabsType = 'underlined' | 'filled';
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { IconColor, IconName } from '../icon/icon.model';
|
|
3
|
+
import { ApplicationTheme } from '../../models/application-theme.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TagComponent implements AfterViewInit, OnInit {
|
|
6
|
+
private readonly defaultAppTheme;
|
|
7
|
+
/**
|
|
8
|
+
* Tag's label
|
|
9
|
+
*
|
|
10
|
+
* @memberof TagComponent
|
|
11
|
+
*/
|
|
12
|
+
set label(value: string);
|
|
13
|
+
/**
|
|
14
|
+
* Icon
|
|
15
|
+
*
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof TagComponent
|
|
18
|
+
*/
|
|
19
|
+
icon: IconName;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to allow the tag to be closed.
|
|
22
|
+
*
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @default false
|
|
25
|
+
* @memberof TagComponent
|
|
26
|
+
*/
|
|
27
|
+
allowClose: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the tag is in read-only mode.
|
|
30
|
+
*
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @default false
|
|
33
|
+
* @memberof TagComponent
|
|
34
|
+
*/
|
|
35
|
+
readOnly: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the tag is selected.
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @default false
|
|
41
|
+
* @memberof TagComponent
|
|
42
|
+
*/
|
|
43
|
+
isSelected: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Display icon when is selected
|
|
46
|
+
*
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
* @default false
|
|
49
|
+
* @memberof TagComponent
|
|
50
|
+
*/
|
|
51
|
+
showIconWhenSelected: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies whether the element is disabled.
|
|
54
|
+
*
|
|
55
|
+
* @type {boolean}
|
|
56
|
+
* @default false
|
|
57
|
+
* @memberof TagComponent
|
|
58
|
+
*/
|
|
59
|
+
isDisabled: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* Defines the application theme
|
|
63
|
+
*
|
|
64
|
+
* @type {ApplicationTheme}
|
|
65
|
+
* @memberof TagComponent
|
|
66
|
+
*/
|
|
67
|
+
applicationTheme: ApplicationTheme;
|
|
68
|
+
/**
|
|
69
|
+
* A string representing the ARIA label for accessibility.
|
|
70
|
+
* This label is used to provide an accessible name for the input element.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof TagComponent
|
|
73
|
+
*/
|
|
74
|
+
ariaLabel: string;
|
|
75
|
+
/**
|
|
76
|
+
* A string representing the ARIA requirement for accessibility.
|
|
77
|
+
* This attribute is used to indicate whether an input field is required for form submission.
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof TagComponent
|
|
80
|
+
*/
|
|
81
|
+
ariaRequired: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Event triggered when the tag should be closed.
|
|
84
|
+
*
|
|
85
|
+
* @event
|
|
86
|
+
* @memberof TagComponent
|
|
87
|
+
*/
|
|
88
|
+
close: EventEmitter<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Event triggered when a press action occurs.
|
|
91
|
+
*
|
|
92
|
+
* @event
|
|
93
|
+
* @memberof TagComponent
|
|
94
|
+
*/
|
|
95
|
+
press: EventEmitter<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Subject that needs to be triggered when Label input changes, to check if it's truncated
|
|
98
|
+
* @private
|
|
99
|
+
* @type {void}
|
|
100
|
+
* @memberof TagComponent
|
|
101
|
+
*/
|
|
102
|
+
private checkLabelEllipsis$;
|
|
103
|
+
/**
|
|
104
|
+
* Observable that indicates if the Label is truncated
|
|
105
|
+
* debounceTime is used to wait for view to be initialized after receiving a new Label input
|
|
106
|
+
* @protected
|
|
107
|
+
* @type {boolean}
|
|
108
|
+
* @memberof TagComponent
|
|
109
|
+
*/
|
|
110
|
+
protected isEllipseActiveObs$: import("rxjs").Observable<boolean>;
|
|
111
|
+
protected labelText: string;
|
|
112
|
+
protected isHovered: boolean;
|
|
113
|
+
protected shrink: boolean;
|
|
114
|
+
protected iconToPass: IconName;
|
|
115
|
+
protected iconColor: IconColor;
|
|
116
|
+
protected closeBtnFocused: import("@angular/core").WritableSignal<boolean>;
|
|
117
|
+
labelElement: ElementRef<HTMLElement>;
|
|
118
|
+
constructor(defaultAppTheme: ApplicationTheme);
|
|
119
|
+
ngOnInit(): void;
|
|
120
|
+
ngAfterViewInit(): void;
|
|
121
|
+
onPress(): void;
|
|
122
|
+
setHoverState(state: boolean): void;
|
|
123
|
+
setShrinkState(state: boolean): void;
|
|
124
|
+
onClose(): void;
|
|
125
|
+
private isLabelEllipseActive;
|
|
126
|
+
get tabIndex(): number;
|
|
127
|
+
get filled(): boolean;
|
|
128
|
+
onKeydown($event: KeyboardEvent): void;
|
|
129
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TagComponent, [{ optional: true; }]>;
|
|
130
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "ui-tag", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "allowClose": { "alias": "allowClose"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; "showIconWhenSelected": { "alias": "showIconWhenSelected"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; }, { "close": "close"; "press": "press"; }, never, never, false, never>;
|
|
131
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tag.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../icon/icon.component.module";
|
|
5
|
+
import * as i4 from "../tooltip/tooltip.component.module";
|
|
6
|
+
import * as i5 from "@angular/material/tooltip";
|
|
7
|
+
import * as i6 from "@angular/material/input";
|
|
8
|
+
import * as i7 from "../../pipes/ui-translate.pipe";
|
|
9
|
+
export declare class TagComponentModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TagComponentModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TagComponentModule, [typeof i1.TagComponent], [typeof i2.CommonModule, typeof i3.IconComponentModule, typeof i4.TooltipComponentModule, typeof i5.MatTooltipModule, typeof i6.MatInputModule, typeof i7.UiTranslatePipe], [typeof i1.TagComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TagComponentModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TagColor = 'teal' | 'petrol' | 'grey' | 'red' | 'gold';
|