@testgorilla/tgo-ui 0.0.34 → 1.0.3
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/alert-banner/alert-banner.component.d.ts +66 -0
- package/components/alert-banner/alert-banner.component.module.d.ts +10 -0
- package/components/alert-banner/alert-banner.model.d.ts +1 -0
- package/components/banner-action/banner-action.component.d.ts +23 -17
- package/components/banner-action/banner-action.component.module.d.ts +3 -3
- package/components/button/button.component.d.ts +57 -11
- package/components/button/button.component.module.d.ts +2 -2
- package/components/button/button.model.d.ts +4 -2
- package/components/card/card.component.d.ts +1 -1
- package/components/checkbox/checkbox.component.d.ts +87 -0
- package/components/checkbox/checkbox.component.module.d.ts +10 -0
- package/components/create-account/create-account.component.d.ts +20 -4
- package/components/create-account/create-account.component.module.d.ts +2 -2
- package/components/create-password/create-password.component.d.ts +4 -4
- package/components/dialog/dialog.component.d.ts +45 -6
- package/components/dialog/dialog.component.module.d.ts +4 -7
- package/components/dialog/dialog.service.d.ts +2 -5
- package/components/dropdown/dropdown.component.d.ts +112 -0
- package/components/dropdown/dropdown.component.module.d.ts +14 -0
- package/components/dropdown/dropdown.model.d.ts +4 -0
- package/components/elevation-shadow/elevation-shadow.component.d.ts +14 -0
- package/components/elevation-shadow/elevation-shadow.component.module.d.ts +8 -0
- package/components/elevation-shadow/elevation-shadow.constant.d.ts +4 -0
- package/components/field/field.component.d.ts +40 -37
- package/components/field/field.component.module.d.ts +3 -2
- package/components/field/field.model.d.ts +1 -0
- package/components/file-upload/file-upload.component.d.ts +68 -0
- package/components/file-upload/file-upload.component.module.d.ts +13 -0
- package/components/forgot-password/forgot-password.component.d.ts +4 -4
- package/components/icon/icon.component.d.ts +44 -0
- package/components/icon/icon.component.module.d.ts +10 -0
- package/components/icon/icon.config.d.ts +1 -0
- package/components/icon/icon.model.d.ts +4 -0
- package/components/icon-label/icon-label.component.d.ts +29 -0
- package/components/icon-label/icon-label.component.module.d.ts +9 -0
- package/components/label/label.component.d.ts +1 -1
- package/components/login/login.component.d.ts +8 -4
- package/components/login/login.component.module.d.ts +2 -2
- package/components/logo/logo.component.d.ts +25 -2
- package/components/logo/logo.model.d.ts +10 -0
- package/components/navbar/navbar.component.d.ts +1 -1
- package/components/navigation/navigation.component.d.ts +1 -1
- package/components/paginator/paginator.component.d.ts +1 -1
- package/components/progress-bar/progress-bar.component.d.ts +16 -12
- package/components/radio-button/radio-button.component.d.ts +84 -0
- package/components/radio-button/radio-button.component.module.d.ts +10 -0
- package/components/radio-button/radio-button.model.d.ts +4 -0
- package/components/snackbar/snackbar.component.d.ts +55 -0
- package/components/snackbar/snackbar.component.module.d.ts +10 -0
- package/components/snackbar/snackbar.model.d.ts +1 -0
- package/components/table/directives/dynamic-component.directive.d.ts +1 -1
- package/components/table/pipes/data-property-getter.d.ts +1 -1
- package/components/table/table.component.d.ts +3 -3
- package/components/table/table.model.d.ts +1 -1
- package/components/tag/tag.component.d.ts +20 -0
- package/components/tag/tag.component.module.d.ts +8 -0
- package/components/tag/tag.model.d.ts +1 -0
- package/components/tooltip/tooltip.component.d.ts +25 -0
- package/components/tooltip/tooltip.component.module.d.ts +8 -0
- package/components/tooltip/tooltip.model.d.ts +6 -0
- package/directives/drag-drop.directive.d.ts +12 -0
- package/esm2020/components/alert-banner/alert-banner.component.mjs +98 -0
- package/esm2020/components/alert-banner/alert-banner.component.module.mjs +21 -0
- package/esm2020/components/alert-banner/alert-banner.model.mjs +2 -0
- package/esm2020/components/banner-action/banner-action.component.mjs +42 -21
- package/esm2020/components/banner-action/banner-action.component.module.mjs +7 -7
- package/esm2020/components/button/button.component.mjs +97 -16
- package/esm2020/components/button/button.component.module.mjs +7 -7
- package/esm2020/components/button/button.model.mjs +1 -1
- package/esm2020/components/card/card.component.mjs +5 -5
- package/esm2020/components/card/card.component.module.mjs +5 -5
- package/esm2020/components/checkbox/checkbox.component.mjs +151 -0
- package/esm2020/components/checkbox/checkbox.component.module.mjs +20 -0
- package/esm2020/components/create-account/create-account.component.mjs +59 -27
- package/esm2020/components/create-account/create-account.component.module.mjs +15 -17
- package/esm2020/components/create-password/create-password.component.mjs +16 -16
- package/esm2020/components/create-password/create-password.component.module.mjs +11 -13
- package/esm2020/components/dialog/dialog.component.mjs +92 -23
- package/esm2020/components/dialog/dialog.component.module.mjs +10 -13
- package/esm2020/components/dialog/dialog.service.mjs +6 -10
- package/esm2020/components/dropdown/dropdown.component.mjs +158 -0
- package/esm2020/components/dropdown/dropdown.component.module.mjs +48 -0
- package/esm2020/components/dropdown/dropdown.model.mjs +2 -0
- package/esm2020/components/elevation-shadow/elevation-shadow.component.mjs +25 -0
- package/esm2020/components/elevation-shadow/elevation-shadow.component.module.mjs +18 -0
- package/esm2020/components/elevation-shadow/elevation-shadow.constant.mjs +6 -0
- package/esm2020/components/field/field.component.mjs +97 -35
- package/esm2020/components/field/field.component.module.mjs +28 -7
- package/esm2020/components/field/field.model.mjs +2 -0
- package/esm2020/components/file-upload/file-upload.component.mjs +183 -0
- package/esm2020/components/file-upload/file-upload.component.module.mjs +24 -0
- package/esm2020/components/forgot-password/forgot-password.component.mjs +17 -17
- package/esm2020/components/forgot-password/forgot-password.component.module.mjs +11 -13
- package/esm2020/components/icon/icon.component.mjs +69 -0
- package/esm2020/components/icon/icon.component.module.mjs +21 -0
- package/esm2020/components/icon/icon.config.mjs +146 -0
- package/esm2020/components/icon/icon.model.mjs +2 -0
- package/esm2020/components/icon-label/icon-label.component.mjs +34 -0
- package/esm2020/components/icon-label/icon-label.component.module.mjs +20 -0
- package/esm2020/components/label/label.component.mjs +4 -4
- package/esm2020/components/label/label.component.module.mjs +5 -5
- package/esm2020/components/login/login.component.mjs +24 -14
- package/esm2020/components/login/login.component.module.mjs +14 -16
- package/esm2020/components/logo/logo.component.mjs +51 -8
- package/esm2020/components/logo/logo.component.module.mjs +5 -5
- package/esm2020/components/logo/logo.model.mjs +14 -0
- package/esm2020/components/navbar/navbar.component.mjs +10 -10
- package/esm2020/components/navbar/navbar.component.module.mjs +11 -13
- package/esm2020/components/navigation/navigation.component.mjs +7 -7
- package/esm2020/components/navigation/navigation.component.module.mjs +5 -5
- package/esm2020/components/paginator/paginator.component.mjs +9 -9
- package/esm2020/components/paginator/paginator.component.module.mjs +5 -5
- package/esm2020/components/progress-bar/progress-bar.component.mjs +46 -10
- package/esm2020/components/progress-bar/progress-bar.component.module.mjs +5 -5
- package/esm2020/components/radio-button/radio-button.component.mjs +138 -0
- package/esm2020/components/radio-button/radio-button.component.module.mjs +20 -0
- package/esm2020/components/radio-button/radio-button.model.mjs +2 -0
- package/esm2020/components/snackbar/snackbar.component.mjs +123 -0
- package/esm2020/components/snackbar/snackbar.component.module.mjs +21 -0
- package/esm2020/components/snackbar/snackbar.model.mjs +2 -0
- package/esm2020/components/table/directives/dynamic-component.directive.mjs +8 -8
- package/esm2020/components/table/pipes/data-property-getter.mjs +4 -4
- package/esm2020/components/table/table.component.mjs +36 -36
- package/esm2020/components/table/table.component.module.mjs +5 -5
- package/esm2020/components/tag/tag.component.mjs +24 -0
- package/esm2020/components/tag/tag.component.module.mjs +19 -0
- package/esm2020/components/tag/tag.model.mjs +2 -0
- package/esm2020/components/tooltip/tooltip.component.mjs +50 -0
- package/esm2020/components/tooltip/tooltip.component.module.mjs +18 -0
- package/esm2020/components/tooltip/tooltip.model.mjs +8 -0
- package/esm2020/directives/drag-drop.directive.mjs +55 -0
- package/esm2020/public-api.mjs +47 -4
- package/esm2020/utils/alert-bar.model.mjs +2 -0
- package/esm2020/utils/alert-bars.utils.mjs +33 -0
- package/fesm2015/testgorilla-tgo-ui.mjs +2237 -503
- package/fesm2015/testgorilla-tgo-ui.mjs.map +1 -1
- package/fesm2020/testgorilla-tgo-ui.mjs +2234 -503
- package/fesm2020/testgorilla-tgo-ui.mjs.map +1 -1
- package/package.json +15 -15
- package/public-api.d.ts +34 -2
- package/src/assets/icons/Add.svg +3 -0
- package/src/assets/icons/Archive.svg +3 -0
- package/src/assets/icons/Arrow_down.svg +3 -0
- package/src/assets/icons/Arrow_left.svg +3 -0
- package/src/assets/icons/Arrow_right.svg +3 -0
- package/src/assets/icons/Arrow_up.svg +3 -0
- package/src/assets/icons/Assessment.svg +3 -0
- package/src/assets/icons/Attempts.svg +3 -0
- package/src/assets/icons/Book.svg +3 -0
- package/src/assets/icons/Calendar.svg +3 -0
- package/src/assets/icons/Candidates.svg +8 -0
- package/src/assets/icons/Chat-notifications.svg +4 -0
- package/src/assets/icons/Chat.svg +3 -0
- package/src/assets/icons/Check.svg +3 -0
- package/src/assets/icons/Clone.svg +3 -0
- package/src/assets/icons/Close.svg +3 -0
- package/src/assets/icons/Code.svg +3 -0
- package/src/assets/icons/Company.svg +3 -0
- package/src/assets/icons/Copy.svg +3 -0
- package/src/assets/icons/Custom-questions.svg +3 -0
- package/src/assets/icons/Delete.svg +3 -0
- package/src/assets/icons/Devices.svg +3 -0
- package/src/assets/icons/Document.svg +3 -0
- package/src/assets/icons/Download.svg +3 -0
- package/src/assets/icons/Edit.svg +3 -0
- package/src/assets/icons/Email-message.svg +3 -0
- package/src/assets/icons/Empty-placeholder.svg +3 -0
- package/src/assets/icons/Error.svg +3 -0
- package/src/assets/icons/Essay.svg +3 -0
- package/src/assets/icons/Eye-hide.svg +3 -0
- package/src/assets/icons/Eye-view.svg +3 -0
- package/src/assets/icons/Feedback-1.svg +3 -0
- package/src/assets/icons/Feedback-2.svg +3 -0
- package/src/assets/icons/Feedback-3.svg +6 -0
- package/src/assets/icons/Feedback-4.svg +3 -0
- package/src/assets/icons/Feedback-5.svg +3 -0
- package/src/assets/icons/File-attach.svg +3 -0
- package/src/assets/icons/File-upload.svg +3 -0
- package/src/assets/icons/Filter.svg +3 -0
- package/src/assets/icons/Folder.svg +3 -0
- package/src/assets/icons/Format-add-file.svg +3 -0
- package/src/assets/icons/Format-add-table.svg +3 -0
- package/src/assets/icons/Format-align-L.svg +3 -0
- package/src/assets/icons/Format-align-R.svg +3 -0
- package/src/assets/icons/Format-align-center.svg +3 -0
- package/src/assets/icons/Format-align-justify.svg +3 -0
- package/src/assets/icons/Format-bold.svg +3 -0
- package/src/assets/icons/Format-code-active.svg +3 -0
- package/src/assets/icons/Format-code-block.svg +3 -0
- package/src/assets/icons/Format-edit-table.svg +3 -0
- package/src/assets/icons/Format-format.svg +3 -0
- package/src/assets/icons/Format-function.svg +3 -0
- package/src/assets/icons/Format-italics.svg +3 -0
- package/src/assets/icons/Format-list-bulleted.svg +3 -0
- package/src/assets/icons/Format-list-numbered.svg +3 -0
- package/src/assets/icons/Format-picker.svg +3 -0
- package/src/assets/icons/Format-quote.svg +3 -0
- package/src/assets/icons/Format-subscript.svg +3 -0
- package/src/assets/icons/Format-superscript.svg +3 -0
- package/src/assets/icons/Format-text-direction-L.svg +3 -0
- package/src/assets/icons/Format-text-direction-R.svg +3 -0
- package/src/assets/icons/Format-text-size.svg +3 -0
- package/src/assets/icons/Format-underline.svg +3 -0
- package/src/assets/icons/Format-variable.svg +3 -0
- package/src/assets/icons/Full-screen.svg +3 -0
- package/src/assets/icons/Gender-female.svg +3 -0
- package/src/assets/icons/Gender-male.svg +3 -0
- package/src/assets/icons/Help-2.svg +3 -0
- package/src/assets/icons/Help.svg +3 -0
- package/src/assets/icons/Image.svg +3 -0
- package/src/assets/icons/Info.svg +3 -0
- package/src/assets/icons/Integration.svg +3 -0
- package/src/assets/icons/Language.svg +3 -0
- package/src/assets/icons/Layout.svg +3 -0
- package/src/assets/icons/Learn.svg +3 -0
- package/src/assets/icons/Level.svg +3 -0
- package/src/assets/icons/Light-bulb.svg +3 -0
- package/src/assets/icons/Link.svg +3 -0
- package/src/assets/icons/Loading-spinner.svg +10 -0
- package/src/assets/icons/Localisation.svg +3 -0
- package/src/assets/icons/Location.svg +3 -0
- package/src/assets/icons/Lock.svg +3 -0
- package/src/assets/icons/Log-out.svg +3 -0
- package/src/assets/icons/Menu-burger.svg +3 -0
- package/src/assets/icons/Menu-ellipsis.svg +3 -0
- package/src/assets/icons/Microphone.svg +3 -0
- package/src/assets/icons/Minus.svg +3 -0
- package/src/assets/icons/Mouse-cursor.svg +3 -0
- package/src/assets/icons/Mouse-grab-cursor.svg +3 -0
- package/src/assets/icons/Mouse.svg +3 -0
- package/src/assets/icons/Multi-choice.svg +3 -0
- package/src/assets/icons/Notifications.svg +3 -0
- package/src/assets/icons/Password.svg +4 -0
- package/src/assets/icons/Path.svg +3 -0
- package/src/assets/icons/Plan-billing.svg +3 -0
- package/src/assets/icons/Plus.svg +3 -0
- package/src/assets/icons/Premium.svg +4 -0
- package/src/assets/icons/Promotion.svg +3 -0
- package/src/assets/icons/Question-count.svg +3 -0
- package/src/assets/icons/Refer.svg +3 -0
- package/src/assets/icons/Reset.svg +3 -0
- package/src/assets/icons/Review.svg +3 -0
- package/src/assets/icons/Round-check-filled.svg +3 -0
- package/src/assets/icons/Round-check.svg +3 -0
- package/src/assets/icons/Search.svg +3 -0
- package/src/assets/icons/Secure-checkout.svg +3 -0
- package/src/assets/icons/Send.svg +3 -0
- package/src/assets/icons/Settings.svg +8 -0
- package/src/assets/icons/Social-facebook.svg +3 -0
- package/src/assets/icons/Social-instagram.svg +3 -0
- package/src/assets/icons/Social-linkedin.svg +3 -0
- package/src/assets/icons/Sorting-down-1.svg +3 -0
- package/src/assets/icons/Sorting-down.svg +3 -0
- package/src/assets/icons/Speedometer.svg +3 -0
- package/src/assets/icons/Star-filled.svg +3 -0
- package/src/assets/icons/Star-half.svg +3 -0
- package/src/assets/icons/Star-outline.svg +3 -0
- package/src/assets/icons/Support.svg +3 -0
- package/src/assets/icons/Sync.svg +3 -0
- package/src/assets/icons/Team.svg +3 -0
- package/src/assets/icons/Test.svg +3 -0
- package/src/assets/icons/Thunder.svg +3 -0
- package/src/assets/icons/Timer.svg +3 -0
- package/src/assets/icons/Type.svg +3 -0
- package/src/assets/icons/Unarchive.svg +3 -0
- package/src/assets/icons/Unlock.svg +3 -0
- package/src/assets/icons/Upgrade.svg +3 -0
- package/src/assets/icons/Upload.svg +3 -0
- package/src/assets/icons/User-access.svg +3 -0
- package/src/assets/icons/User-add.svg +3 -0
- package/src/assets/icons/User-invite.svg +3 -0
- package/src/assets/icons/User-profile.svg +3 -0
- package/src/assets/icons/User-reject.svg +4 -0
- package/src/assets/icons/User-switch.svg +3 -0
- package/src/assets/icons/Video-pause.svg +3 -0
- package/src/assets/icons/Video-play.svg +3 -0
- package/src/assets/icons/Video-record.svg +3 -0
- package/src/assets/icons/Video.svg +3 -0
- package/src/assets/icons/Volume.svg +3 -0
- package/src/assets/icons/Warning.svg +3 -0
- package/src/assets/icons/Zoom-in.svg +6 -0
- package/src/assets/icons/Zoom-out.svg +5 -0
- package/src/assets/images/poweredbyTG.svg +37 -0
- package/src/assets/images/reverseTG.svg +84 -0
- package/src/assets/images/testgorilla.svg +75 -8
- package/src/theme/_alert-bars.scss +88 -0
- package/src/theme/_breakpoints-mixin.scss +12 -0
- package/src/theme/_core.scss +0 -1
- package/src/theme/_palette.scss +73 -73
- package/src/theme/_tooltip.scss +75 -0
- package/src/theme/_typography.scss +59 -16
- package/src/theme/_variables.scss +49 -0
- package/src/theme/theme.scss +4 -73
- package/utils/alert-bar.model.d.ts +1 -0
- package/utils/alert-bars.utils.d.ts +6 -0
- package/.github/README.md +0 -79
- package/components/banner/banner.component.d.ts +0 -27
- package/components/banner/banner.component.module.d.ts +0 -9
- package/components/dialog/dialog.model.d.ts +0 -4
- package/components/dialog/launch-dialog.component.d.ts +0 -9
- package/esm2020/components/banner/banner.component.mjs +0 -44
- package/esm2020/components/banner/banner.component.module.mjs +0 -20
- package/esm2020/components/dialog/dialog.model.mjs +0 -2
- package/esm2020/components/dialog/launch-dialog.component.mjs +0 -24
- package/src/assets/.gitkeep +0 -0
- /package/{testgorilla-tgo-ui.d.ts → index.d.ts} +0 -0
|
@@ -1,110 +1,312 @@
|
|
|
1
|
+
import { trigger, transition, animate, style, state } from '@angular/animations';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component,
|
|
3
|
-
import * as
|
|
4
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
-
import * as i5 from '@angular/common';
|
|
3
|
+
import { Component, ViewEncapsulation, Input, EventEmitter, Output, ChangeDetectionStrategy, NgModule, forwardRef, HostBinding, Injectable, Directive, HostListener, Pipe, ViewChild } from '@angular/core';
|
|
4
|
+
import * as i1$1 from '@angular/common';
|
|
6
5
|
import { CommonModule } from '@angular/common';
|
|
7
|
-
import * as
|
|
6
|
+
import * as i2$1 from '@angular/material/button';
|
|
8
7
|
import { MatButtonModule } from '@angular/material/button';
|
|
9
|
-
import * as
|
|
8
|
+
import * as i1 from '@angular/material/icon';
|
|
9
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
10
|
+
import * as i2 from '@angular/platform-browser';
|
|
11
|
+
import * as i4 from '@angular/material/progress-spinner';
|
|
10
12
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
11
|
-
import
|
|
13
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
14
|
+
import * as i1$2 from '@angular/material/card';
|
|
12
15
|
import { MatCardModule } from '@angular/material/card';
|
|
13
16
|
import * as i1$3 from '@angular/forms';
|
|
14
|
-
import {
|
|
15
|
-
import * as
|
|
17
|
+
import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
18
|
+
import * as i2$2 from '@angular/material/checkbox';
|
|
19
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
20
|
+
import * as i2$3 from '@angular/material/form-field';
|
|
16
21
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
17
|
-
import * as
|
|
22
|
+
import * as i3 from '@angular/material/input';
|
|
18
23
|
import { MatInputModule } from '@angular/material/input';
|
|
19
|
-
import * as
|
|
24
|
+
import * as i5 from '@angular-material-extensions/password-strength';
|
|
20
25
|
import { MatPasswordStrengthModule } from '@angular-material-extensions/password-strength';
|
|
21
|
-
import * as i5$1 from '@angular/material/checkbox';
|
|
22
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
23
26
|
import * as i1$4 from '@angular/material/dialog';
|
|
24
|
-
import { MAT_DIALOG_DATA,
|
|
25
|
-
import * as i1$5 from '@angular/material/
|
|
27
|
+
import { MatDialogModule, MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
28
|
+
import * as i1$5 from '@angular/material/progress-bar';
|
|
29
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
30
|
+
import * as i2$4 from '@angular/material/toolbar';
|
|
26
31
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
27
|
-
import * as i5$
|
|
32
|
+
import * as i5$1 from '@angular/material/menu';
|
|
28
33
|
import { MatMenuModule } from '@angular/material/menu';
|
|
34
|
+
import * as i6$1 from '@angular/material/core';
|
|
29
35
|
import { MatRippleModule } from '@angular/material/core';
|
|
30
36
|
import * as i1$6 from '@angular/material/paginator';
|
|
31
37
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
32
|
-
import * as
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
import * as i3$1 from '@angular/material/sort';
|
|
38
|
+
import * as i2$5 from '@angular/material/radio';
|
|
39
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
40
|
+
import * as i4$1 from '@angular/material/sort';
|
|
36
41
|
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
37
|
-
import * as
|
|
42
|
+
import * as i3$1 from '@angular/material/table';
|
|
38
43
|
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
39
|
-
import
|
|
40
|
-
import * as i7 from '@angular/material/tooltip';
|
|
44
|
+
import * as i6 from '@angular/material/tooltip';
|
|
41
45
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
46
|
+
import { Subscription } from 'rxjs';
|
|
47
|
+
import * as i5$2 from '@angular/material/select';
|
|
48
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
42
49
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
const alertBarsUtil = {
|
|
51
|
+
//Set css class and iconName according type
|
|
52
|
+
setIcon: (alertType) => {
|
|
53
|
+
if (alertType === 'success') {
|
|
54
|
+
return 'Round-check';
|
|
55
|
+
}
|
|
56
|
+
if (alertType === 'info') {
|
|
57
|
+
return 'Info';
|
|
58
|
+
}
|
|
59
|
+
if (alertType === 'warning') {
|
|
60
|
+
return 'Warning';
|
|
61
|
+
}
|
|
62
|
+
if (alertType === 'error') {
|
|
63
|
+
return 'Error';
|
|
64
|
+
}
|
|
65
|
+
return '';
|
|
66
|
+
},
|
|
67
|
+
//Set cssClass for fixed or static position
|
|
68
|
+
setPosition: (fixed) => {
|
|
69
|
+
if (fixed === true) {
|
|
70
|
+
return 'fixed';
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
return 'static';
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
//Set css class for alertbanner
|
|
77
|
+
setCssClass: (fullWidth, type, position) => {
|
|
78
|
+
const isFullWidth = !!fullWidth ? 'full-width' : '';
|
|
79
|
+
return `${type} ${position} ${isFullWidth}`;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// Data of all tgoIcons
|
|
84
|
+
const tgoIcons = [
|
|
85
|
+
'Add',
|
|
86
|
+
'Archive',
|
|
87
|
+
'Arrow_down',
|
|
88
|
+
'Arrow_left',
|
|
89
|
+
'Arrow_right',
|
|
90
|
+
'Arrow_up',
|
|
91
|
+
'Assessment',
|
|
92
|
+
'Attempts',
|
|
93
|
+
'Book',
|
|
94
|
+
'Calendar',
|
|
95
|
+
'Candidates',
|
|
96
|
+
'Chat-notifications',
|
|
97
|
+
'Chat',
|
|
98
|
+
'Check',
|
|
99
|
+
'Clone',
|
|
100
|
+
'Close',
|
|
101
|
+
'Code',
|
|
102
|
+
'Company',
|
|
103
|
+
'Copy',
|
|
104
|
+
'Custom-questions',
|
|
105
|
+
'Delete',
|
|
106
|
+
'Devices',
|
|
107
|
+
'Document',
|
|
108
|
+
'Download',
|
|
109
|
+
'Edit',
|
|
110
|
+
'Email-message',
|
|
111
|
+
'Empty-placeholder',
|
|
112
|
+
'Error',
|
|
113
|
+
'Essay',
|
|
114
|
+
'Eye-hide',
|
|
115
|
+
'Eye-view',
|
|
116
|
+
'Feedback-1',
|
|
117
|
+
'Feedback-2',
|
|
118
|
+
'Feedback-3',
|
|
119
|
+
'Feedback-4',
|
|
120
|
+
'Feedback-5',
|
|
121
|
+
'File-attach',
|
|
122
|
+
'File-upload',
|
|
123
|
+
'Filter',
|
|
124
|
+
'Folder',
|
|
125
|
+
'Format-add-file',
|
|
126
|
+
'Format-add-table',
|
|
127
|
+
'Format-align-L',
|
|
128
|
+
'Format-align-R',
|
|
129
|
+
'Format-align-center',
|
|
130
|
+
'Format-align-justify',
|
|
131
|
+
'Format-bold',
|
|
132
|
+
'Format-code-active',
|
|
133
|
+
'Format-code-block',
|
|
134
|
+
'Format-edit-table',
|
|
135
|
+
'Format-format',
|
|
136
|
+
'Format-function',
|
|
137
|
+
'Format-italics',
|
|
138
|
+
'Format-list-bulleted',
|
|
139
|
+
'Format-list-numbered',
|
|
140
|
+
'Format-picker',
|
|
141
|
+
'Format-quote',
|
|
142
|
+
'Format-subscript',
|
|
143
|
+
'Format-superscript',
|
|
144
|
+
'Format-text-direction-L',
|
|
145
|
+
'Format-text-direction-R',
|
|
146
|
+
'Format-text-size',
|
|
147
|
+
'Format-underline',
|
|
148
|
+
'Format-variable',
|
|
149
|
+
'Full-screen',
|
|
150
|
+
'Gender-female',
|
|
151
|
+
'Gender-male',
|
|
152
|
+
'Help-2',
|
|
153
|
+
'Help',
|
|
154
|
+
'Image',
|
|
155
|
+
'Info',
|
|
156
|
+
'Integration',
|
|
157
|
+
'Language',
|
|
158
|
+
'Layout',
|
|
159
|
+
'Learn',
|
|
160
|
+
'Level',
|
|
161
|
+
'Light-bulb',
|
|
162
|
+
'Link',
|
|
163
|
+
'Loading-spinner',
|
|
164
|
+
'Localisation',
|
|
165
|
+
'Location',
|
|
166
|
+
'Lock',
|
|
167
|
+
'Log-out',
|
|
168
|
+
'Menu-burger',
|
|
169
|
+
'Menu-ellipsis',
|
|
170
|
+
'Microphone',
|
|
171
|
+
'Minus',
|
|
172
|
+
'Mouse-cursor',
|
|
173
|
+
'Mouse-grab-cursor',
|
|
174
|
+
'Mouse',
|
|
175
|
+
'Multi-choice',
|
|
176
|
+
'Notifications',
|
|
177
|
+
'Password',
|
|
178
|
+
'Path',
|
|
179
|
+
'Plan-billing',
|
|
180
|
+
'Plus',
|
|
181
|
+
'Premium',
|
|
182
|
+
'Promotion',
|
|
183
|
+
'Question-count',
|
|
184
|
+
'Refer',
|
|
185
|
+
'Reset',
|
|
186
|
+
'Review',
|
|
187
|
+
'Round-check-filled',
|
|
188
|
+
'Round-check',
|
|
189
|
+
'Search',
|
|
190
|
+
'Secure-checkout',
|
|
191
|
+
'Send',
|
|
192
|
+
'Settings',
|
|
193
|
+
'Social-facebook',
|
|
194
|
+
'Social-instagram',
|
|
195
|
+
'Social-linkedin',
|
|
196
|
+
'Sorting-down-1',
|
|
197
|
+
'Sorting-down',
|
|
198
|
+
'Speedometer',
|
|
199
|
+
'Star-filled',
|
|
200
|
+
'Star-half',
|
|
201
|
+
'Star-outline',
|
|
202
|
+
'Support',
|
|
203
|
+
'Sync',
|
|
204
|
+
'Team',
|
|
205
|
+
'Test',
|
|
206
|
+
'Thunder',
|
|
207
|
+
'Timer',
|
|
208
|
+
'Type',
|
|
209
|
+
'Unarchive',
|
|
210
|
+
'Unlock',
|
|
211
|
+
'Upgrade',
|
|
212
|
+
'Upload',
|
|
213
|
+
'User-access',
|
|
214
|
+
'User-add',
|
|
215
|
+
'User-invite',
|
|
216
|
+
'User-profile',
|
|
217
|
+
'User-reject',
|
|
218
|
+
'User-switch',
|
|
219
|
+
'Video-pause',
|
|
220
|
+
'Video-play',
|
|
221
|
+
'Video-record',
|
|
222
|
+
'Video',
|
|
223
|
+
'Volume',
|
|
224
|
+
'Warning',
|
|
225
|
+
'Zoom-in',
|
|
226
|
+
'Zoom-out',
|
|
227
|
+
];
|
|
228
|
+
|
|
229
|
+
class IconComponent {
|
|
230
|
+
constructor(matIconRegistry, domSanitzer) {
|
|
231
|
+
this.matIconRegistry = matIconRegistry;
|
|
232
|
+
this.domSanitzer = domSanitzer;
|
|
48
233
|
/**
|
|
49
|
-
*
|
|
234
|
+
* Icon size
|
|
50
235
|
*
|
|
51
|
-
* @type {
|
|
52
|
-
* @memberof
|
|
236
|
+
* @type {IconSize}
|
|
237
|
+
* @memberof IconComponent
|
|
53
238
|
*/
|
|
54
|
-
this.
|
|
239
|
+
this.size = '16';
|
|
55
240
|
/**
|
|
56
|
-
*
|
|
241
|
+
* Icon css class
|
|
57
242
|
*
|
|
58
|
-
* @
|
|
59
|
-
* @memberof BannerComponent
|
|
243
|
+
* @memberof IconComponent
|
|
60
244
|
*/
|
|
61
|
-
this.
|
|
245
|
+
this.cssClass = '';
|
|
62
246
|
/**
|
|
63
|
-
*
|
|
247
|
+
* Icon color
|
|
64
248
|
*
|
|
65
|
-
* @type {
|
|
66
|
-
* @memberof
|
|
249
|
+
* @type {IconColor}
|
|
250
|
+
* @memberof IconComponent
|
|
67
251
|
*/
|
|
68
|
-
this.
|
|
252
|
+
this.color = 'black';
|
|
253
|
+
}
|
|
254
|
+
ngOnInit() {
|
|
255
|
+
this.customCssClass = this.setCssClass();
|
|
256
|
+
this.addIcon();
|
|
257
|
+
}
|
|
258
|
+
ngOnChanges(changes) {
|
|
259
|
+
if (changes['size'] || changes['cssClass'] || changes['color']) {
|
|
260
|
+
this.customCssClass = this.setCssClass();
|
|
261
|
+
}
|
|
262
|
+
if (changes['name']) {
|
|
263
|
+
this.addIcon();
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
//set css class for size
|
|
267
|
+
setCssClass() {
|
|
268
|
+
return `${this.cssClass} size-${this.size} ${this.color}`;
|
|
269
|
+
}
|
|
270
|
+
//Add icon to matIcon registry
|
|
271
|
+
addIcon() {
|
|
272
|
+
const filename = tgoIcons.find(icon => icon === this.name);
|
|
273
|
+
if (filename) {
|
|
274
|
+
this.matIconRegistry.addSvgIcon(filename, this.domSanitzer.bypassSecurityTrustResourceUrl(`/icons/${filename}.svg`));
|
|
275
|
+
}
|
|
69
276
|
}
|
|
70
277
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
278
|
+
IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponent, deps: [{ token: i1.MatIconRegistry }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
279
|
+
IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: IconComponent, selector: "ui-icon", inputs: { size: "size", cssClass: "cssClass", name: "name", color: "color" }, usesOnChanges: true, ngImport: i0, template: "<mat-icon [svgIcon]=\"name\" [attr.class]=\"customCssClass\"></mat-icon>\n", styles: ["mat-icon{display:flex}mat-icon.size-16 svg{width:16px;height:16px}mat-icon.size-24 svg{width:24px;height:24px}mat-icon.dark svg{color:#888}mat-icon.white svg{color:#fff}mat-icon.teal svg{color:#46a997}mat-icon.petrol svg{color:#276678}mat-icon.black svg{color:#000}\n"], dependencies: [{ kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponent, decorators: [{
|
|
74
281
|
type: Component,
|
|
75
|
-
args: [{ selector: 'ui-
|
|
76
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
282
|
+
args: [{ selector: 'ui-icon', encapsulation: ViewEncapsulation.None, template: "<mat-icon [svgIcon]=\"name\" [attr.class]=\"customCssClass\"></mat-icon>\n", styles: ["mat-icon{display:flex}mat-icon.size-16 svg{width:16px;height:16px}mat-icon.size-24 svg{width:24px;height:24px}mat-icon.dark svg{color:#888}mat-icon.white svg{color:#fff}mat-icon.teal svg{color:#46a997}mat-icon.petrol svg{color:#276678}mat-icon.black svg{color:#000}\n"] }]
|
|
283
|
+
}], ctorParameters: function () { return [{ type: i1.MatIconRegistry }, { type: i2.DomSanitizer }]; }, propDecorators: { size: [{
|
|
77
284
|
type: Input
|
|
78
|
-
}],
|
|
285
|
+
}], cssClass: [{
|
|
79
286
|
type: Input
|
|
80
|
-
}],
|
|
287
|
+
}], name: [{
|
|
288
|
+
type: Input
|
|
289
|
+
}], color: [{
|
|
81
290
|
type: Input
|
|
82
291
|
}] } });
|
|
83
292
|
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
BannerComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BannerComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
87
|
-
BannerComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BannerComponentModule, declarations: [BannerComponent], imports: [CommonModule, MatIconModule], exports: [BannerComponent] });
|
|
88
|
-
BannerComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BannerComponentModule, providers: [], imports: [[CommonModule, MatIconModule]] });
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BannerComponentModule, decorators: [{
|
|
90
|
-
type: NgModule,
|
|
91
|
-
args: [{
|
|
92
|
-
declarations: [BannerComponent],
|
|
93
|
-
imports: [CommonModule, MatIconModule],
|
|
94
|
-
exports: [BannerComponent],
|
|
95
|
-
providers: [],
|
|
96
|
-
}]
|
|
97
|
-
}] });
|
|
98
|
-
|
|
293
|
+
/* eslint-disable @angular-eslint/use-lifecycle-interface */
|
|
99
294
|
class ButtonComponent {
|
|
100
295
|
constructor() {
|
|
296
|
+
/**
|
|
297
|
+
* Define button height
|
|
298
|
+
*
|
|
299
|
+
* @type {ButtonSize}
|
|
300
|
+
* @memberof ButtonComponent
|
|
301
|
+
*/
|
|
302
|
+
this.size = 'big';
|
|
101
303
|
/**
|
|
102
304
|
* Background color of the button while in active state
|
|
103
305
|
*
|
|
104
306
|
* @type {ButtonColor}
|
|
105
307
|
* @memberof ButtonComponent
|
|
106
308
|
*/
|
|
107
|
-
this.
|
|
309
|
+
this.type = 'primary';
|
|
108
310
|
/**
|
|
109
311
|
* Text content to appear on the button
|
|
110
312
|
*
|
|
@@ -112,8 +314,22 @@ class ButtonComponent {
|
|
|
112
314
|
*/
|
|
113
315
|
this.label = '';
|
|
114
316
|
/**
|
|
115
|
-
*
|
|
317
|
+
* Positioning of the icon (when existant)
|
|
116
318
|
*
|
|
319
|
+
* @type {ButtonIconPosition}
|
|
320
|
+
* @memberof ButtonComponent
|
|
321
|
+
*/
|
|
322
|
+
this.iconPosition = 'right';
|
|
323
|
+
/**
|
|
324
|
+
* Define if button has only icon without text
|
|
325
|
+
*
|
|
326
|
+
* @memberof ButtonComponent
|
|
327
|
+
*/
|
|
328
|
+
this.justIcon = false;
|
|
329
|
+
/**
|
|
330
|
+
* Name of ui-icon
|
|
331
|
+
*
|
|
332
|
+
* @type {IconName}
|
|
117
333
|
* @memberof ButtonComponent
|
|
118
334
|
*/
|
|
119
335
|
this.iconName = '';
|
|
@@ -135,23 +351,74 @@ class ButtonComponent {
|
|
|
135
351
|
* @memberof ButtonComponent
|
|
136
352
|
*/
|
|
137
353
|
this.fullWidth = false;
|
|
138
|
-
this.
|
|
354
|
+
this.buttonClickEvent = new EventEmitter();
|
|
355
|
+
this.buttonHoverEvent = new EventEmitter();
|
|
356
|
+
}
|
|
357
|
+
ngOnInit() {
|
|
358
|
+
this.classCss = this.setCssClass();
|
|
359
|
+
this.isButtonLink = this.showButtonLink();
|
|
360
|
+
this.isLabel = this.showLabel();
|
|
361
|
+
}
|
|
362
|
+
ngOnChanges(changes) {
|
|
363
|
+
if (changes['type']) {
|
|
364
|
+
this.isButtonLink = this.showButtonLink();
|
|
365
|
+
}
|
|
366
|
+
if (changes['loading']) {
|
|
367
|
+
this.isLabel = this.showLabel();
|
|
368
|
+
}
|
|
369
|
+
if (changes['type'] ||
|
|
370
|
+
changes['fullWidth'] ||
|
|
371
|
+
changes['iconName'] ||
|
|
372
|
+
changes['justIcon'] ||
|
|
373
|
+
changes['iconPosition']) {
|
|
374
|
+
this.classCss = this.setCssClass();
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
buttonClick(event) {
|
|
378
|
+
this.buttonClickEvent.emit(event);
|
|
379
|
+
}
|
|
380
|
+
buttonHover(event) {
|
|
381
|
+
this.buttonHoverEvent.emit(event);
|
|
139
382
|
}
|
|
140
|
-
|
|
141
|
-
|
|
383
|
+
//Show or hide label
|
|
384
|
+
showLabel() {
|
|
385
|
+
return !this.loading;
|
|
386
|
+
}
|
|
387
|
+
//Set css class according inputs
|
|
388
|
+
setCssClass() {
|
|
389
|
+
const width = this.fullWidth ? 'full-width' : '';
|
|
390
|
+
const hasIcon = this.iconName === null ? '' : 'icon';
|
|
391
|
+
const justIcon = this.justIcon ? 'only-icon' : '';
|
|
392
|
+
const iconPosition = this.iconPosition === undefined ? '' : this.iconPosition;
|
|
393
|
+
return `${this.size} ${iconPosition} ${this.type} ${width} ${hasIcon} ${justIcon}`;
|
|
394
|
+
}
|
|
395
|
+
//Show or hide spinner
|
|
396
|
+
showSpinner() {
|
|
397
|
+
const isNotTab = this.type !== 'tab';
|
|
398
|
+
const isNotLink = this.type !== 'link';
|
|
399
|
+
const isLoading = this.loading === true;
|
|
400
|
+
return isLoading && isNotTab && isNotLink;
|
|
401
|
+
}
|
|
402
|
+
//Show button with <button> or <a> tag
|
|
403
|
+
showButtonLink() {
|
|
404
|
+
return this.type !== 'link';
|
|
142
405
|
}
|
|
143
406
|
}
|
|
144
|
-
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
145
|
-
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ButtonComponent, selector: "ui-button", inputs: { color: "color", label: "label", iconPosition: "iconPosition", iconName: "iconName", disabled: "disabled", loading: "loading", fullWidth: "fullWidth" }, outputs: { onClickEvent: "onClickEvent" }, ngImport: i0, template: "<button mat-flat-button [ngStyle]=\"{'width': fullWidth ? '100%' : 'auto'}\" [ngClass]=\"{'primary': color === 'primary', 'secondary' : color === 'secondary', 'tertiary' : color === 'tertiary' }\" [disabled]=\"disabled || loading\" (click)=\"onClick()\" >\n <div class=\"label-icon-wrapper\" [ngClass]=\"{ hidden: loading }\">\n <span class=\"icon icon-left\" *ngIf=\"iconPosition === 'left'\"\n ><mat-icon>{{ iconName }}</mat-icon></span\n >\n <span [ngClass]=\"{ 'label-without-icon': iconName === '', 'label-with-icon': iconName !== '' }\">{{ label }}</span>\n <span class=\"icon icon-right\" *ngIf=\"iconPosition === 'right'\"\n ><mat-icon>{{ iconName }}</mat-icon></span\n >\n </div>\n <mat-spinner *ngIf=\"loading\" class=\"position-spinner\" aria-label=\"loading\" mode=\"indeterminate\" diameter=\"16\"></mat-spinner>\n</button>\n", styles: ["button{padding:16px}button.primary{background-color:#46a997;color:#fff}button.primary.mat-flat-button.mat-button-disabled{background-color:#a2d4cb!important}button.secondary{background-color:#ededed;color:#000}button.secondary.mat-flat-button.mat-button-disabled{background-color:#f6f6f6!important;color:#000!important}button.tertiary{background-color:inherit;border-color:inherit;color:#46a997}button.tertiary.mat-flat-button.mat-button-disabled{background-color:inherit!important;border-color:inherit!important;color:#a2d4cb!important}button .label-icon-wrapper{display:flex;justify-content:center}button .label-icon-wrapper .label-without-icon{margin:0 16px;line-height:16px}button .label-icon-wrapper .label-with-icon{margin:0;line-height:16px}button .label-icon-wrapper .mat-icon{font-size:16px;height:16px;width:16px}button .label-icon-wrapper .icon-left{margin:0 16px 0 0}button .label-icon-wrapper .icon-right{margin:0 0 0 16px}button .position-spinner{width:16px;height:16px;display:inline-flex;margin-top:-16px}\n"], components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], directives: [{ type: i5.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
407
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
408
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ButtonComponent, selector: "ui-button", inputs: { size: "size", type: "type", label: "label", iconPosition: "iconPosition", justIcon: "justIcon", iconName: "iconName", disabled: "disabled", loading: "loading", fullWidth: "fullWidth", url: "url", urlTarget: "urlTarget", value: "value" }, outputs: { buttonClickEvent: "buttonClickEvent", buttonHoverEvent: "buttonHoverEvent" }, usesOnChanges: true, ngImport: i0, template: "<button\n [ngClass]=\"classCss\"\n [disabled]=\"disabled\"\n (click)=\"buttonClick($event)\"\n (mouseenter)=\"buttonHover($event)\"\n [disableRipple]=\"true\"\n *ngIf=\"isButtonLink\"\n mat-flat-button>\n <span class=\"icon-only-wrapper\" *ngIf=\"justIcon === true && !!iconName\">\n <span class=\"icon only\" role=\"label\" [attr.aria-label]=\"label\"><ui-icon [name]=\"iconName\" size=\"24\"></ui-icon></span>\n </span>\n <span class=\"icon-label-wrapper\" [ngClass]=\"{'center-text': iconName === ''}\" *ngIf=\"justIcon === false\">\n <span class=\"icon\" *ngIf=\"iconPosition === 'left' && !!iconName\" aria-hidden=\"true\"><ui-icon [name]=\"iconName\" size=\"24\"></ui-icon></span>\n <span *ngIf=\"isLabel\" class=\"label\">{{ label }}</span>\n <span class=\"icon\" *ngIf=\"iconPosition === 'right' && !!iconName\" aria-hidden=\"true\"><ui-icon [name]=\"iconName\" size=\"24\"></ui-icon></span>\n <span class=\"spinner-wrapper\" *ngIf=\"showSpinner()\">\n <mat-spinner class=\"position-spinner\" aria-label=\"loading\" mode=\"indeterminate\" diameter=\"24\"></mat-spinner>\n </span>\n </span>\n</button>\n<a\n [ngClass]=\"classCss\"\n [disabled]=\"disabled\"\n (click)=\"buttonClick($event)\"\n (mouseenter)=\"buttonHover($event)\"\n [disableRipple]=\"true\"\n *ngIf=\"!isButtonLink\" \n [href]=\"url\" \n [target]=\"urlTarget\"\n mat-flat-button>\n <span class=\"icon-label-wrapper\">\n {{ label }}\n </span>\n</a>\n", styles: [":host{display:flex}button.mat-mdc-unelevated-button,a.mat-mdc-unelevated-button{font-size:14px;font-weight:600;line-height:normal;letter-spacing:normal}button.mat-mdc-unelevated-button .spinner-wrapper,a.mat-mdc-unelevated-button .spinner-wrapper{display:flex;align-items:center;flex-flow:column;width:100%}button.mat-mdc-unelevated-button .icon,a.mat-mdc-unelevated-button .icon{display:flex;height:100%;align-items:center}button.mat-mdc-unelevated-button .icon.only,a.mat-mdc-unelevated-button .icon.only{align-items:center;flex-flow:column;justify-content:center;margin-left:0}button.mat-mdc-unelevated-button .icon-label-wrapper,a.mat-mdc-unelevated-button .icon-label-wrapper{display:flex;align-items:center;justify-content:center;height:100%}button.mat-mdc-unelevated-button .icon-label-wrapper.center-text,a.mat-mdc-unelevated-button .icon-label-wrapper.center-text{flex-flow:column;width:100%}button.mat-mdc-unelevated-button .icon-label-wrapper .label,a.mat-mdc-unelevated-button .icon-label-wrapper .label{display:flex;height:100%;align-items:center}button.mat-mdc-unelevated-button.big,a.mat-mdc-unelevated-button.big{height:48px;padding:12px 16px}button.mat-mdc-unelevated-button.small,a.mat-mdc-unelevated-button.small{height:38px;padding:7px 11px}button.mat-mdc-unelevated-button.small.left .icon,button.mat-mdc-unelevated-button.big.left .icon,a.mat-mdc-unelevated-button.small.left .icon,a.mat-mdc-unelevated-button.big.left .icon{margin-right:8px}button.mat-mdc-unelevated-button.small.right .icon,button.mat-mdc-unelevated-button.big.right .icon,a.mat-mdc-unelevated-button.small.right .icon,a.mat-mdc-unelevated-button.big.right .icon{margin-left:8px}button.mat-mdc-unelevated-button.small.only-icon .icon,button.mat-mdc-unelevated-button.big.only-icon .icon,a.mat-mdc-unelevated-button.small.only-icon .icon,a.mat-mdc-unelevated-button.big.only-icon .icon{margin-left:0}button.mat-mdc-unelevated-button.primary,button.mat-mdc-unelevated-button.secondary,button.mat-mdc-unelevated-button.outlined,button.mat-mdc-unelevated-button.destructive,button.mat-mdc-unelevated-button.tertiary,button.mat-mdc-unelevated-button.link,a.mat-mdc-unelevated-button.primary,a.mat-mdc-unelevated-button.secondary,a.mat-mdc-unelevated-button.outlined,a.mat-mdc-unelevated-button.destructive,a.mat-mdc-unelevated-button.tertiary,a.mat-mdc-unelevated-button.link{min-width:80px}button.mat-mdc-unelevated-button.primary.only-icon,button.mat-mdc-unelevated-button.secondary.only-icon,button.mat-mdc-unelevated-button.outlined.only-icon,button.mat-mdc-unelevated-button.destructive.only-icon,button.mat-mdc-unelevated-button.tertiary.only-icon,button.mat-mdc-unelevated-button.link.only-icon,a.mat-mdc-unelevated-button.primary.only-icon,a.mat-mdc-unelevated-button.secondary.only-icon,a.mat-mdc-unelevated-button.outlined.only-icon,a.mat-mdc-unelevated-button.destructive.only-icon,a.mat-mdc-unelevated-button.tertiary.only-icon,a.mat-mdc-unelevated-button.link.only-icon{min-width:1px}button.mat-mdc-unelevated-button.primary.full-width,button.mat-mdc-unelevated-button.secondary.full-width,button.mat-mdc-unelevated-button.outlined.full-width,button.mat-mdc-unelevated-button.destructive.full-width,button.mat-mdc-unelevated-button.tertiary.full-width,button.mat-mdc-unelevated-button.link.full-width,a.mat-mdc-unelevated-button.primary.full-width,a.mat-mdc-unelevated-button.secondary.full-width,a.mat-mdc-unelevated-button.outlined.full-width,a.mat-mdc-unelevated-button.destructive.full-width,a.mat-mdc-unelevated-button.tertiary.full-width,a.mat-mdc-unelevated-button.link.full-width{width:100%;min-width:100%}button.mat-mdc-unelevated-button.primary.full-width .icon-label-wrapper,button.mat-mdc-unelevated-button.secondary.full-width .icon-label-wrapper,button.mat-mdc-unelevated-button.outlined.full-width .icon-label-wrapper,button.mat-mdc-unelevated-button.destructive.full-width .icon-label-wrapper,button.mat-mdc-unelevated-button.tertiary.full-width .icon-label-wrapper,button.mat-mdc-unelevated-button.link.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.primary.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.secondary.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.outlined.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.destructive.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.tertiary.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.link.full-width .icon-label-wrapper{justify-content:center}button.mat-mdc-unelevated-button.primary:focus,button.mat-mdc-unelevated-button.secondary:focus,button.mat-mdc-unelevated-button.outlined:focus,button.mat-mdc-unelevated-button.destructive:focus,button.mat-mdc-unelevated-button.tertiary:focus,button.mat-mdc-unelevated-button.link:focus,button.mat-mdc-unelevated-button.tab:focus,button.mat-mdc-unelevated-button.squareicon:focus,button.mat-mdc-unelevated-button.menuTrigger:focus,a.mat-mdc-unelevated-button.primary:focus,a.mat-mdc-unelevated-button.secondary:focus,a.mat-mdc-unelevated-button.outlined:focus,a.mat-mdc-unelevated-button.destructive:focus,a.mat-mdc-unelevated-button.tertiary:focus,a.mat-mdc-unelevated-button.link:focus,a.mat-mdc-unelevated-button.tab:focus,a.mat-mdc-unelevated-button.squareicon:focus,a.mat-mdc-unelevated-button.menuTrigger:focus{outline:1px dashed #888888;outline-offset:4px}button.mat-mdc-unelevated-button.menuCell:focus,a.mat-mdc-unelevated-button.menuCell:focus{outline:1px dashed #888888;outline-offset:-1px}button.mat-mdc-unelevated-button.primary,a.mat-mdc-unelevated-button.primary{background-color:#46a997;color:#fff}button.mat-mdc-unelevated-button.primary:hover,a.mat-mdc-unelevated-button.primary:hover{background-color:#31766a}button.mat-mdc-unelevated-button.primary:disabled,button.mat-mdc-unelevated-button.primary:disabled:hover,a.mat-mdc-unelevated-button.primary:disabled,a.mat-mdc-unelevated-button.primary:disabled:hover{background-color:#b5ddd5}button.mat-mdc-unelevated-button.primary:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.primary:focus.cdk-focused.cdk-mouse-focused{background-color:#1c443c}button.mat-mdc-unelevated-button.primary ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.primary ::ng-deep mat-icon.black svg{color:#fff}button.mat-mdc-unelevated-button.primary .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.primary .mat-mdc-progress-spinner ::ng-deep circle{stroke:#fff}button.mat-mdc-unelevated-button.secondary,a.mat-mdc-unelevated-button.secondary{background-color:#ededed;color:#000}button.mat-mdc-unelevated-button.secondary:hover,a.mat-mdc-unelevated-button.secondary:hover{background-color:#e0e0e0}button.mat-mdc-unelevated-button.secondary:disabled,button.mat-mdc-unelevated-button.secondary:disabled:hover,a.mat-mdc-unelevated-button.secondary:disabled,a.mat-mdc-unelevated-button.secondary:disabled:hover{background-color:#ededed;color:#888}button.mat-mdc-unelevated-button.secondary:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.secondary:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.secondary:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.secondary:disabled:hover ::ng-deep mat-icon.black svg{color:#888}button.mat-mdc-unelevated-button.secondary:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.secondary:focus.cdk-focused.cdk-mouse-focused{background-color:#888}button.mat-mdc-unelevated-button.secondary .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.secondary .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.outlined,a.mat-mdc-unelevated-button.outlined{background-color:#fff;color:#000;border-width:1px;border-style:solid;border-color:#000}button.mat-mdc-unelevated-button.outlined:hover,a.mat-mdc-unelevated-button.outlined:hover{background-color:#f6f6f6}button.mat-mdc-unelevated-button.outlined:disabled,button.mat-mdc-unelevated-button.outlined:disabled:hover,a.mat-mdc-unelevated-button.outlined:disabled,a.mat-mdc-unelevated-button.outlined:disabled:hover{color:#ededed;border-color:#ededed}button.mat-mdc-unelevated-button.outlined:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.outlined:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.outlined:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.outlined:disabled:hover ::ng-deep mat-icon.black svg{color:#888}button.mat-mdc-unelevated-button.outlined:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.outlined:focus.cdk-focused.cdk-mouse-focused{background-color:#e0e0e0}button.mat-mdc-unelevated-button.outlined .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.outlined .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.destructive,a.mat-mdc-unelevated-button.destructive{background-color:#cb7b7a;color:#fff}button.mat-mdc-unelevated-button.destructive:hover,a.mat-mdc-unelevated-button.destructive:hover{background-color:#8e5655}button.mat-mdc-unelevated-button.destructive:disabled,button.mat-mdc-unelevated-button.destructive:disabled:hover,a.mat-mdc-unelevated-button.destructive:disabled,a.mat-mdc-unelevated-button.destructive:disabled:hover{background-color:#e3c3c6}button.mat-mdc-unelevated-button.destructive:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.destructive:focus.cdk-focused.cdk-mouse-focused{background-color:#513131}button.mat-mdc-unelevated-button.destructive ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.destructive ::ng-deep mat-icon.black svg{color:#fff}button.mat-mdc-unelevated-button.destructive .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.destructive .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.tertiary,a.mat-mdc-unelevated-button.tertiary{background-color:transparent;color:#46a997}button.mat-mdc-unelevated-button.tertiary:hover,a.mat-mdc-unelevated-button.tertiary:hover{background-color:#f6f6f6;color:#31766a}button.mat-mdc-unelevated-button.tertiary:disabled,button.mat-mdc-unelevated-button.tertiary:disabled:hover,a.mat-mdc-unelevated-button.tertiary:disabled,a.mat-mdc-unelevated-button.tertiary:disabled:hover{background-color:#fff;color:#b5ddd5}button.mat-mdc-unelevated-button.tertiary:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.tertiary:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.tertiary:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.tertiary:disabled:hover ::ng-deep mat-icon.black svg{color:#b5ddd5}button.mat-mdc-unelevated-button.tertiary:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.tertiary:focus.cdk-focused.cdk-mouse-focused{background-color:#e0e0e0;color:#1c443c}button.mat-mdc-unelevated-button.tertiary ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.tertiary ::ng-deep mat-icon.black svg{color:#46a997}button.mat-mdc-unelevated-button.tertiary .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.tertiary .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.link,a.mat-mdc-unelevated-button.link{background-color:transparent;color:#46a997;border-radius:0}button.mat-mdc-unelevated-button.link span.icon-label-wrapper,a.mat-mdc-unelevated-button.link span.icon-label-wrapper{text-decoration:underline}button.mat-mdc-unelevated-button.link:hover,a.mat-mdc-unelevated-button.link:hover{color:#31766a}button.mat-mdc-unelevated-button.link:disabled,button.mat-mdc-unelevated-button.link:disabled:hover,a.mat-mdc-unelevated-button.link:disabled,a.mat-mdc-unelevated-button.link:disabled:hover{color:#b5ddd5}button.mat-mdc-unelevated-button.link:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.link:focus.cdk-focused.cdk-mouse-focused{color:#1c443c}button.mat-mdc-unelevated-button.link ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.link ::ng-deep mat-icon.black svg{color:#46a997}button.mat-mdc-unelevated-button.text,a.mat-mdc-unelevated-button.text{background-color:transparent;color:#000;border-radius:0;text-decoration:underline}button.mat-mdc-unelevated-button.text span.icon-label-wrapper,a.mat-mdc-unelevated-button.text span.icon-label-wrapper{text-decoration:underline}button.mat-mdc-unelevated-button.text:hover,a.mat-mdc-unelevated-button.text:hover{color:#000}button.mat-mdc-unelevated-button.text:disabled,button.mat-mdc-unelevated-button.text:disabled:hover,a.mat-mdc-unelevated-button.text:disabled,a.mat-mdc-unelevated-button.text:disabled:hover{color:#888}button.mat-mdc-unelevated-button.text:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.text:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.text:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.text:disabled:hover ::ng-deep mat-icon.black svg{color:#888}button.mat-mdc-unelevated-button.text:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.text:focus.cdk-focused.cdk-mouse-focused{color:#000}button.mat-mdc-unelevated-button.text .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.text .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.squareicon,a.mat-mdc-unelevated-button.squareicon{background-color:#ededed;color:#000;min-width:56px}button.mat-mdc-unelevated-button.squareicon:hover,a.mat-mdc-unelevated-button.squareicon:hover{background-color:#e0e0e0}button.mat-mdc-unelevated-button.squareicon:disabled,button.mat-mdc-unelevated-button.squareicon:disabled:hover,a.mat-mdc-unelevated-button.squareicon:disabled,a.mat-mdc-unelevated-button.squareicon:disabled:hover{background-color:#ededed;color:#888}button.mat-mdc-unelevated-button.squareicon:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.squareicon:focus.cdk-focused.cdk-mouse-focused{background-color:#ededed}button.mat-mdc-unelevated-button.squareicon .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.squareicon .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.squareicon .icon-label-wrapper,a.mat-mdc-unelevated-button.squareicon .icon-label-wrapper{flex-flow:column}button.mat-mdc-unelevated-button.squareicon.left .icon,button.mat-mdc-unelevated-button.squareicon.right .icon,a.mat-mdc-unelevated-button.squareicon.left .icon,a.mat-mdc-unelevated-button.squareicon.right .icon{margin:0 auto}button.mat-mdc-unelevated-button.tab,a.mat-mdc-unelevated-button.tab{background-color:#fff;color:#000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#e0e0e0;border-radius:0}button.mat-mdc-unelevated-button.tab:hover .label,button.mat-mdc-unelevated-button.tab:hover .icon.only,a.mat-mdc-unelevated-button.tab:hover .label,a.mat-mdc-unelevated-button.tab:hover .icon.only{text-decoration:underline}button.mat-mdc-unelevated-button.tab:disabled,button.mat-mdc-unelevated-button.tab:disabled:hover,a.mat-mdc-unelevated-button.tab:disabled,a.mat-mdc-unelevated-button.tab:disabled:hover{color:#888}button.mat-mdc-unelevated-button.tab:disabled .label,button.mat-mdc-unelevated-button.tab:disabled:hover .label,a.mat-mdc-unelevated-button.tab:disabled .label,a.mat-mdc-unelevated-button.tab:disabled:hover .label{text-decoration:none}button.mat-mdc-unelevated-button.tab:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.tab:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.tab:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.tab:disabled:hover ::ng-deep mat-icon.black svg{color:#888}button.mat-mdc-unelevated-button.tab:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.tab:focus.cdk-focused.cdk-mouse-focused{font-weight:700;border-color:#276678}button.mat-mdc-unelevated-button.menuTrigger,a.mat-mdc-unelevated-button.menuTrigger{background:transparent;min-width:24px;height:24px;padding:0}button.mat-mdc-unelevated-button.menuTrigger:hover,a.mat-mdc-unelevated-button.menuTrigger:hover{background-color:#e0e0e0}button.mat-mdc-unelevated-button.menuTrigger:disabled,button.mat-mdc-unelevated-button.menuTrigger:disabled:hover,a.mat-mdc-unelevated-button.menuTrigger:disabled,a.mat-mdc-unelevated-button.menuTrigger:disabled:hover{background-color:#fff;color:#888}button.mat-mdc-unelevated-button.menuTrigger:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.menuTrigger:focus.cdk-focused.cdk-mouse-focused{background-color:transparent}button.mat-mdc-unelevated-button.menuTrigger .icon-label-wrapper,a.mat-mdc-unelevated-button.menuTrigger .icon-label-wrapper{flex-flow:column}button.mat-mdc-unelevated-button.menuTrigger.left .icon,button.mat-mdc-unelevated-button.menuTrigger.right .icon,a.mat-mdc-unelevated-button.menuTrigger.left .icon,a.mat-mdc-unelevated-button.menuTrigger.right .icon{margin:0 auto}button.mat-mdc-unelevated-button.menuCell,a.mat-mdc-unelevated-button.menuCell{background-color:#fff;color:#000;font-weight:400;border-radius:0;min-width:100%;justify-content:flex-start}button.mat-mdc-unelevated-button.menuCell.big.left .icon,a.mat-mdc-unelevated-button.menuCell.big.left .icon{margin-right:16px}button.mat-mdc-unelevated-button.menuCell .icon-label-wrapper,a.mat-mdc-unelevated-button.menuCell .icon-label-wrapper{justify-content:flex-start}button.mat-mdc-unelevated-button.menuCell:hover,a.mat-mdc-unelevated-button.menuCell:hover{background-color:#e0e0e0}button.mat-mdc-unelevated-button.menuCell:disabled,button.mat-mdc-unelevated-button.menuCell:disabled:hover,a.mat-mdc-unelevated-button.menuCell:disabled,a.mat-mdc-unelevated-button.menuCell:disabled:hover{background-color:#fff;color:#888}button.mat-mdc-unelevated-button.menuCell:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.menuCell:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.menuCell:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.menuCell:disabled:hover ::ng-deep mat-icon.black svg{color:#888}button.mat-mdc-unelevated-button.menuCell:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.menuCell:focus.cdk-focused.cdk-mouse-focused{background-color:#888}button.mat-mdc-unelevated-button.menuCell .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.menuCell .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color"] }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
|
|
409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
147
410
|
type: Component,
|
|
148
|
-
args: [{ selector: 'ui-button', template: "<button mat-flat-button [ngStyle]=\"{'width': fullWidth ? '100%' : 'auto'}\" [ngClass]=\"{'primary': color === 'primary', 'secondary' : color === 'secondary', 'tertiary' : color === 'tertiary' }\" [disabled]=\"disabled || loading\" (click)=\"onClick()\" >\n <div class=\"label-icon-wrapper\" [ngClass]=\"{ hidden: loading }\">\n <span class=\"icon icon-left\" *ngIf=\"iconPosition === 'left'\"\n ><mat-icon>{{ iconName }}</mat-icon></span\n >\n <span [ngClass]=\"{ 'label-without-icon': iconName === '', 'label-with-icon': iconName !== '' }\">{{ label }}</span>\n <span class=\"icon icon-right\" *ngIf=\"iconPosition === 'right'\"\n ><mat-icon>{{ iconName }}</mat-icon></span\n >\n </div>\n <mat-spinner *ngIf=\"loading\" class=\"position-spinner\" aria-label=\"loading\" mode=\"indeterminate\" diameter=\"16\"></mat-spinner>\n</button>\n", styles: ["button{padding:16px}button.primary{background-color:#46a997;color:#fff}button.primary.mat-flat-button.mat-button-disabled{background-color:#a2d4cb!important}button.secondary{background-color:#ededed;color:#000}button.secondary.mat-flat-button.mat-button-disabled{background-color:#f6f6f6!important;color:#000!important}button.tertiary{background-color:inherit;border-color:inherit;color:#46a997}button.tertiary.mat-flat-button.mat-button-disabled{background-color:inherit!important;border-color:inherit!important;color:#a2d4cb!important}button .label-icon-wrapper{display:flex;justify-content:center}button .label-icon-wrapper .label-without-icon{margin:0 16px;line-height:16px}button .label-icon-wrapper .label-with-icon{margin:0;line-height:16px}button .label-icon-wrapper .mat-icon{font-size:16px;height:16px;width:16px}button .label-icon-wrapper .icon-left{margin:0 16px 0 0}button .label-icon-wrapper .icon-right{margin:0 0 0 16px}button .position-spinner{width:16px;height:16px;display:inline-flex;margin-top:-16px}\n"] }]
|
|
149
|
-
}], propDecorators: {
|
|
411
|
+
args: [{ selector: 'ui-button', template: "<button\n [ngClass]=\"classCss\"\n [disabled]=\"disabled\"\n (click)=\"buttonClick($event)\"\n (mouseenter)=\"buttonHover($event)\"\n [disableRipple]=\"true\"\n *ngIf=\"isButtonLink\"\n mat-flat-button>\n <span class=\"icon-only-wrapper\" *ngIf=\"justIcon === true && !!iconName\">\n <span class=\"icon only\" role=\"label\" [attr.aria-label]=\"label\"><ui-icon [name]=\"iconName\" size=\"24\"></ui-icon></span>\n </span>\n <span class=\"icon-label-wrapper\" [ngClass]=\"{'center-text': iconName === ''}\" *ngIf=\"justIcon === false\">\n <span class=\"icon\" *ngIf=\"iconPosition === 'left' && !!iconName\" aria-hidden=\"true\"><ui-icon [name]=\"iconName\" size=\"24\"></ui-icon></span>\n <span *ngIf=\"isLabel\" class=\"label\">{{ label }}</span>\n <span class=\"icon\" *ngIf=\"iconPosition === 'right' && !!iconName\" aria-hidden=\"true\"><ui-icon [name]=\"iconName\" size=\"24\"></ui-icon></span>\n <span class=\"spinner-wrapper\" *ngIf=\"showSpinner()\">\n <mat-spinner class=\"position-spinner\" aria-label=\"loading\" mode=\"indeterminate\" diameter=\"24\"></mat-spinner>\n </span>\n </span>\n</button>\n<a\n [ngClass]=\"classCss\"\n [disabled]=\"disabled\"\n (click)=\"buttonClick($event)\"\n (mouseenter)=\"buttonHover($event)\"\n [disableRipple]=\"true\"\n *ngIf=\"!isButtonLink\" \n [href]=\"url\" \n [target]=\"urlTarget\"\n mat-flat-button>\n <span class=\"icon-label-wrapper\">\n {{ label }}\n </span>\n</a>\n", styles: [":host{display:flex}button.mat-mdc-unelevated-button,a.mat-mdc-unelevated-button{font-size:14px;font-weight:600;line-height:normal;letter-spacing:normal}button.mat-mdc-unelevated-button .spinner-wrapper,a.mat-mdc-unelevated-button .spinner-wrapper{display:flex;align-items:center;flex-flow:column;width:100%}button.mat-mdc-unelevated-button .icon,a.mat-mdc-unelevated-button .icon{display:flex;height:100%;align-items:center}button.mat-mdc-unelevated-button .icon.only,a.mat-mdc-unelevated-button .icon.only{align-items:center;flex-flow:column;justify-content:center;margin-left:0}button.mat-mdc-unelevated-button .icon-label-wrapper,a.mat-mdc-unelevated-button .icon-label-wrapper{display:flex;align-items:center;justify-content:center;height:100%}button.mat-mdc-unelevated-button .icon-label-wrapper.center-text,a.mat-mdc-unelevated-button .icon-label-wrapper.center-text{flex-flow:column;width:100%}button.mat-mdc-unelevated-button .icon-label-wrapper .label,a.mat-mdc-unelevated-button .icon-label-wrapper .label{display:flex;height:100%;align-items:center}button.mat-mdc-unelevated-button.big,a.mat-mdc-unelevated-button.big{height:48px;padding:12px 16px}button.mat-mdc-unelevated-button.small,a.mat-mdc-unelevated-button.small{height:38px;padding:7px 11px}button.mat-mdc-unelevated-button.small.left .icon,button.mat-mdc-unelevated-button.big.left .icon,a.mat-mdc-unelevated-button.small.left .icon,a.mat-mdc-unelevated-button.big.left .icon{margin-right:8px}button.mat-mdc-unelevated-button.small.right .icon,button.mat-mdc-unelevated-button.big.right .icon,a.mat-mdc-unelevated-button.small.right .icon,a.mat-mdc-unelevated-button.big.right .icon{margin-left:8px}button.mat-mdc-unelevated-button.small.only-icon .icon,button.mat-mdc-unelevated-button.big.only-icon .icon,a.mat-mdc-unelevated-button.small.only-icon .icon,a.mat-mdc-unelevated-button.big.only-icon .icon{margin-left:0}button.mat-mdc-unelevated-button.primary,button.mat-mdc-unelevated-button.secondary,button.mat-mdc-unelevated-button.outlined,button.mat-mdc-unelevated-button.destructive,button.mat-mdc-unelevated-button.tertiary,button.mat-mdc-unelevated-button.link,a.mat-mdc-unelevated-button.primary,a.mat-mdc-unelevated-button.secondary,a.mat-mdc-unelevated-button.outlined,a.mat-mdc-unelevated-button.destructive,a.mat-mdc-unelevated-button.tertiary,a.mat-mdc-unelevated-button.link{min-width:80px}button.mat-mdc-unelevated-button.primary.only-icon,button.mat-mdc-unelevated-button.secondary.only-icon,button.mat-mdc-unelevated-button.outlined.only-icon,button.mat-mdc-unelevated-button.destructive.only-icon,button.mat-mdc-unelevated-button.tertiary.only-icon,button.mat-mdc-unelevated-button.link.only-icon,a.mat-mdc-unelevated-button.primary.only-icon,a.mat-mdc-unelevated-button.secondary.only-icon,a.mat-mdc-unelevated-button.outlined.only-icon,a.mat-mdc-unelevated-button.destructive.only-icon,a.mat-mdc-unelevated-button.tertiary.only-icon,a.mat-mdc-unelevated-button.link.only-icon{min-width:1px}button.mat-mdc-unelevated-button.primary.full-width,button.mat-mdc-unelevated-button.secondary.full-width,button.mat-mdc-unelevated-button.outlined.full-width,button.mat-mdc-unelevated-button.destructive.full-width,button.mat-mdc-unelevated-button.tertiary.full-width,button.mat-mdc-unelevated-button.link.full-width,a.mat-mdc-unelevated-button.primary.full-width,a.mat-mdc-unelevated-button.secondary.full-width,a.mat-mdc-unelevated-button.outlined.full-width,a.mat-mdc-unelevated-button.destructive.full-width,a.mat-mdc-unelevated-button.tertiary.full-width,a.mat-mdc-unelevated-button.link.full-width{width:100%;min-width:100%}button.mat-mdc-unelevated-button.primary.full-width .icon-label-wrapper,button.mat-mdc-unelevated-button.secondary.full-width .icon-label-wrapper,button.mat-mdc-unelevated-button.outlined.full-width .icon-label-wrapper,button.mat-mdc-unelevated-button.destructive.full-width .icon-label-wrapper,button.mat-mdc-unelevated-button.tertiary.full-width .icon-label-wrapper,button.mat-mdc-unelevated-button.link.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.primary.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.secondary.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.outlined.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.destructive.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.tertiary.full-width .icon-label-wrapper,a.mat-mdc-unelevated-button.link.full-width .icon-label-wrapper{justify-content:center}button.mat-mdc-unelevated-button.primary:focus,button.mat-mdc-unelevated-button.secondary:focus,button.mat-mdc-unelevated-button.outlined:focus,button.mat-mdc-unelevated-button.destructive:focus,button.mat-mdc-unelevated-button.tertiary:focus,button.mat-mdc-unelevated-button.link:focus,button.mat-mdc-unelevated-button.tab:focus,button.mat-mdc-unelevated-button.squareicon:focus,button.mat-mdc-unelevated-button.menuTrigger:focus,a.mat-mdc-unelevated-button.primary:focus,a.mat-mdc-unelevated-button.secondary:focus,a.mat-mdc-unelevated-button.outlined:focus,a.mat-mdc-unelevated-button.destructive:focus,a.mat-mdc-unelevated-button.tertiary:focus,a.mat-mdc-unelevated-button.link:focus,a.mat-mdc-unelevated-button.tab:focus,a.mat-mdc-unelevated-button.squareicon:focus,a.mat-mdc-unelevated-button.menuTrigger:focus{outline:1px dashed #888888;outline-offset:4px}button.mat-mdc-unelevated-button.menuCell:focus,a.mat-mdc-unelevated-button.menuCell:focus{outline:1px dashed #888888;outline-offset:-1px}button.mat-mdc-unelevated-button.primary,a.mat-mdc-unelevated-button.primary{background-color:#46a997;color:#fff}button.mat-mdc-unelevated-button.primary:hover,a.mat-mdc-unelevated-button.primary:hover{background-color:#31766a}button.mat-mdc-unelevated-button.primary:disabled,button.mat-mdc-unelevated-button.primary:disabled:hover,a.mat-mdc-unelevated-button.primary:disabled,a.mat-mdc-unelevated-button.primary:disabled:hover{background-color:#b5ddd5}button.mat-mdc-unelevated-button.primary:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.primary:focus.cdk-focused.cdk-mouse-focused{background-color:#1c443c}button.mat-mdc-unelevated-button.primary ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.primary ::ng-deep mat-icon.black svg{color:#fff}button.mat-mdc-unelevated-button.primary .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.primary .mat-mdc-progress-spinner ::ng-deep circle{stroke:#fff}button.mat-mdc-unelevated-button.secondary,a.mat-mdc-unelevated-button.secondary{background-color:#ededed;color:#000}button.mat-mdc-unelevated-button.secondary:hover,a.mat-mdc-unelevated-button.secondary:hover{background-color:#e0e0e0}button.mat-mdc-unelevated-button.secondary:disabled,button.mat-mdc-unelevated-button.secondary:disabled:hover,a.mat-mdc-unelevated-button.secondary:disabled,a.mat-mdc-unelevated-button.secondary:disabled:hover{background-color:#ededed;color:#888}button.mat-mdc-unelevated-button.secondary:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.secondary:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.secondary:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.secondary:disabled:hover ::ng-deep mat-icon.black svg{color:#888}button.mat-mdc-unelevated-button.secondary:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.secondary:focus.cdk-focused.cdk-mouse-focused{background-color:#888}button.mat-mdc-unelevated-button.secondary .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.secondary .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.outlined,a.mat-mdc-unelevated-button.outlined{background-color:#fff;color:#000;border-width:1px;border-style:solid;border-color:#000}button.mat-mdc-unelevated-button.outlined:hover,a.mat-mdc-unelevated-button.outlined:hover{background-color:#f6f6f6}button.mat-mdc-unelevated-button.outlined:disabled,button.mat-mdc-unelevated-button.outlined:disabled:hover,a.mat-mdc-unelevated-button.outlined:disabled,a.mat-mdc-unelevated-button.outlined:disabled:hover{color:#ededed;border-color:#ededed}button.mat-mdc-unelevated-button.outlined:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.outlined:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.outlined:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.outlined:disabled:hover ::ng-deep mat-icon.black svg{color:#888}button.mat-mdc-unelevated-button.outlined:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.outlined:focus.cdk-focused.cdk-mouse-focused{background-color:#e0e0e0}button.mat-mdc-unelevated-button.outlined .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.outlined .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.destructive,a.mat-mdc-unelevated-button.destructive{background-color:#cb7b7a;color:#fff}button.mat-mdc-unelevated-button.destructive:hover,a.mat-mdc-unelevated-button.destructive:hover{background-color:#8e5655}button.mat-mdc-unelevated-button.destructive:disabled,button.mat-mdc-unelevated-button.destructive:disabled:hover,a.mat-mdc-unelevated-button.destructive:disabled,a.mat-mdc-unelevated-button.destructive:disabled:hover{background-color:#e3c3c6}button.mat-mdc-unelevated-button.destructive:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.destructive:focus.cdk-focused.cdk-mouse-focused{background-color:#513131}button.mat-mdc-unelevated-button.destructive ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.destructive ::ng-deep mat-icon.black svg{color:#fff}button.mat-mdc-unelevated-button.destructive .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.destructive .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.tertiary,a.mat-mdc-unelevated-button.tertiary{background-color:transparent;color:#46a997}button.mat-mdc-unelevated-button.tertiary:hover,a.mat-mdc-unelevated-button.tertiary:hover{background-color:#f6f6f6;color:#31766a}button.mat-mdc-unelevated-button.tertiary:disabled,button.mat-mdc-unelevated-button.tertiary:disabled:hover,a.mat-mdc-unelevated-button.tertiary:disabled,a.mat-mdc-unelevated-button.tertiary:disabled:hover{background-color:#fff;color:#b5ddd5}button.mat-mdc-unelevated-button.tertiary:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.tertiary:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.tertiary:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.tertiary:disabled:hover ::ng-deep mat-icon.black svg{color:#b5ddd5}button.mat-mdc-unelevated-button.tertiary:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.tertiary:focus.cdk-focused.cdk-mouse-focused{background-color:#e0e0e0;color:#1c443c}button.mat-mdc-unelevated-button.tertiary ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.tertiary ::ng-deep mat-icon.black svg{color:#46a997}button.mat-mdc-unelevated-button.tertiary .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.tertiary .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.link,a.mat-mdc-unelevated-button.link{background-color:transparent;color:#46a997;border-radius:0}button.mat-mdc-unelevated-button.link span.icon-label-wrapper,a.mat-mdc-unelevated-button.link span.icon-label-wrapper{text-decoration:underline}button.mat-mdc-unelevated-button.link:hover,a.mat-mdc-unelevated-button.link:hover{color:#31766a}button.mat-mdc-unelevated-button.link:disabled,button.mat-mdc-unelevated-button.link:disabled:hover,a.mat-mdc-unelevated-button.link:disabled,a.mat-mdc-unelevated-button.link:disabled:hover{color:#b5ddd5}button.mat-mdc-unelevated-button.link:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.link:focus.cdk-focused.cdk-mouse-focused{color:#1c443c}button.mat-mdc-unelevated-button.link ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.link ::ng-deep mat-icon.black svg{color:#46a997}button.mat-mdc-unelevated-button.text,a.mat-mdc-unelevated-button.text{background-color:transparent;color:#000;border-radius:0;text-decoration:underline}button.mat-mdc-unelevated-button.text span.icon-label-wrapper,a.mat-mdc-unelevated-button.text span.icon-label-wrapper{text-decoration:underline}button.mat-mdc-unelevated-button.text:hover,a.mat-mdc-unelevated-button.text:hover{color:#000}button.mat-mdc-unelevated-button.text:disabled,button.mat-mdc-unelevated-button.text:disabled:hover,a.mat-mdc-unelevated-button.text:disabled,a.mat-mdc-unelevated-button.text:disabled:hover{color:#888}button.mat-mdc-unelevated-button.text:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.text:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.text:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.text:disabled:hover ::ng-deep mat-icon.black svg{color:#888}button.mat-mdc-unelevated-button.text:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.text:focus.cdk-focused.cdk-mouse-focused{color:#000}button.mat-mdc-unelevated-button.text .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.text .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.squareicon,a.mat-mdc-unelevated-button.squareicon{background-color:#ededed;color:#000;min-width:56px}button.mat-mdc-unelevated-button.squareicon:hover,a.mat-mdc-unelevated-button.squareicon:hover{background-color:#e0e0e0}button.mat-mdc-unelevated-button.squareicon:disabled,button.mat-mdc-unelevated-button.squareicon:disabled:hover,a.mat-mdc-unelevated-button.squareicon:disabled,a.mat-mdc-unelevated-button.squareicon:disabled:hover{background-color:#ededed;color:#888}button.mat-mdc-unelevated-button.squareicon:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.squareicon:focus.cdk-focused.cdk-mouse-focused{background-color:#ededed}button.mat-mdc-unelevated-button.squareicon .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.squareicon .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}button.mat-mdc-unelevated-button.squareicon .icon-label-wrapper,a.mat-mdc-unelevated-button.squareicon .icon-label-wrapper{flex-flow:column}button.mat-mdc-unelevated-button.squareicon.left .icon,button.mat-mdc-unelevated-button.squareicon.right .icon,a.mat-mdc-unelevated-button.squareicon.left .icon,a.mat-mdc-unelevated-button.squareicon.right .icon{margin:0 auto}button.mat-mdc-unelevated-button.tab,a.mat-mdc-unelevated-button.tab{background-color:#fff;color:#000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#e0e0e0;border-radius:0}button.mat-mdc-unelevated-button.tab:hover .label,button.mat-mdc-unelevated-button.tab:hover .icon.only,a.mat-mdc-unelevated-button.tab:hover .label,a.mat-mdc-unelevated-button.tab:hover .icon.only{text-decoration:underline}button.mat-mdc-unelevated-button.tab:disabled,button.mat-mdc-unelevated-button.tab:disabled:hover,a.mat-mdc-unelevated-button.tab:disabled,a.mat-mdc-unelevated-button.tab:disabled:hover{color:#888}button.mat-mdc-unelevated-button.tab:disabled .label,button.mat-mdc-unelevated-button.tab:disabled:hover .label,a.mat-mdc-unelevated-button.tab:disabled .label,a.mat-mdc-unelevated-button.tab:disabled:hover .label{text-decoration:none}button.mat-mdc-unelevated-button.tab:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.tab:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.tab:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.tab:disabled:hover ::ng-deep mat-icon.black svg{color:#888}button.mat-mdc-unelevated-button.tab:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.tab:focus.cdk-focused.cdk-mouse-focused{font-weight:700;border-color:#276678}button.mat-mdc-unelevated-button.menuTrigger,a.mat-mdc-unelevated-button.menuTrigger{background:transparent;min-width:24px;height:24px;padding:0}button.mat-mdc-unelevated-button.menuTrigger:hover,a.mat-mdc-unelevated-button.menuTrigger:hover{background-color:#e0e0e0}button.mat-mdc-unelevated-button.menuTrigger:disabled,button.mat-mdc-unelevated-button.menuTrigger:disabled:hover,a.mat-mdc-unelevated-button.menuTrigger:disabled,a.mat-mdc-unelevated-button.menuTrigger:disabled:hover{background-color:#fff;color:#888}button.mat-mdc-unelevated-button.menuTrigger:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.menuTrigger:focus.cdk-focused.cdk-mouse-focused{background-color:transparent}button.mat-mdc-unelevated-button.menuTrigger .icon-label-wrapper,a.mat-mdc-unelevated-button.menuTrigger .icon-label-wrapper{flex-flow:column}button.mat-mdc-unelevated-button.menuTrigger.left .icon,button.mat-mdc-unelevated-button.menuTrigger.right .icon,a.mat-mdc-unelevated-button.menuTrigger.left .icon,a.mat-mdc-unelevated-button.menuTrigger.right .icon{margin:0 auto}button.mat-mdc-unelevated-button.menuCell,a.mat-mdc-unelevated-button.menuCell{background-color:#fff;color:#000;font-weight:400;border-radius:0;min-width:100%;justify-content:flex-start}button.mat-mdc-unelevated-button.menuCell.big.left .icon,a.mat-mdc-unelevated-button.menuCell.big.left .icon{margin-right:16px}button.mat-mdc-unelevated-button.menuCell .icon-label-wrapper,a.mat-mdc-unelevated-button.menuCell .icon-label-wrapper{justify-content:flex-start}button.mat-mdc-unelevated-button.menuCell:hover,a.mat-mdc-unelevated-button.menuCell:hover{background-color:#e0e0e0}button.mat-mdc-unelevated-button.menuCell:disabled,button.mat-mdc-unelevated-button.menuCell:disabled:hover,a.mat-mdc-unelevated-button.menuCell:disabled,a.mat-mdc-unelevated-button.menuCell:disabled:hover{background-color:#fff;color:#888}button.mat-mdc-unelevated-button.menuCell:disabled ::ng-deep mat-icon.black svg,button.mat-mdc-unelevated-button.menuCell:disabled:hover ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.menuCell:disabled ::ng-deep mat-icon.black svg,a.mat-mdc-unelevated-button.menuCell:disabled:hover ::ng-deep mat-icon.black svg{color:#888}button.mat-mdc-unelevated-button.menuCell:focus.cdk-focused.cdk-mouse-focused,a.mat-mdc-unelevated-button.menuCell:focus.cdk-focused.cdk-mouse-focused{background-color:#888}button.mat-mdc-unelevated-button.menuCell .mat-mdc-progress-spinner ::ng-deep circle,a.mat-mdc-unelevated-button.menuCell .mat-mdc-progress-spinner ::ng-deep circle{stroke:#000}\n"] }]
|
|
412
|
+
}], ctorParameters: function () { return []; }, propDecorators: { size: [{
|
|
413
|
+
type: Input
|
|
414
|
+
}], type: [{
|
|
150
415
|
type: Input
|
|
151
416
|
}], label: [{
|
|
152
417
|
type: Input
|
|
153
418
|
}], iconPosition: [{
|
|
154
419
|
type: Input
|
|
420
|
+
}], justIcon: [{
|
|
421
|
+
type: Input
|
|
155
422
|
}], iconName: [{
|
|
156
423
|
type: Input
|
|
157
424
|
}], disabled: [{
|
|
@@ -160,87 +427,291 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
160
427
|
type: Input
|
|
161
428
|
}], fullWidth: [{
|
|
162
429
|
type: Input
|
|
163
|
-
}],
|
|
430
|
+
}], url: [{
|
|
431
|
+
type: Input
|
|
432
|
+
}], urlTarget: [{
|
|
433
|
+
type: Input
|
|
434
|
+
}], value: [{
|
|
435
|
+
type: Input
|
|
436
|
+
}], buttonClickEvent: [{
|
|
437
|
+
type: Output
|
|
438
|
+
}], buttonHoverEvent: [{
|
|
164
439
|
type: Output
|
|
165
440
|
}] } });
|
|
166
441
|
|
|
167
|
-
class
|
|
442
|
+
class AlertBannerComponent {
|
|
168
443
|
constructor() {
|
|
169
|
-
// TODO: Some properties and methods are ignored on purpose because of a current issue with compodoc and angular 13
|
|
170
|
-
// https://github.com/storybookjs/storybook/issues/16865
|
|
171
|
-
// https://github.com/storybookjs/storybook/issues/17004
|
|
172
444
|
/**
|
|
173
|
-
*
|
|
445
|
+
* Alert Banner type
|
|
174
446
|
*
|
|
175
|
-
* @type {
|
|
176
|
-
* @memberof
|
|
447
|
+
* @type {AlertBarType}
|
|
448
|
+
* @memberof AlertBannerComponent
|
|
177
449
|
*/
|
|
178
|
-
this.
|
|
450
|
+
this.alertType = 'success';
|
|
179
451
|
/**
|
|
180
|
-
*
|
|
452
|
+
* Alert banner message
|
|
453
|
+
*
|
|
454
|
+
* @memberof AlertBannerComponent
|
|
455
|
+
*/
|
|
456
|
+
this.message = '';
|
|
457
|
+
/**
|
|
458
|
+
* Include dismmiss button
|
|
459
|
+
*
|
|
460
|
+
* @memberof AlertBannerComponent
|
|
461
|
+
*/
|
|
462
|
+
this.includeDismissButton = true;
|
|
463
|
+
/**
|
|
464
|
+
* Static or fixed position
|
|
465
|
+
*
|
|
466
|
+
* @memberof AlertBannerComponent
|
|
467
|
+
*/
|
|
468
|
+
this.fixed = false;
|
|
469
|
+
/**
|
|
470
|
+
* Full width for alert banner
|
|
471
|
+
*
|
|
472
|
+
* @memberof AlertBannerComponent
|
|
473
|
+
*/
|
|
474
|
+
this.fullWidth = true;
|
|
475
|
+
/**
|
|
476
|
+
* Link text that will appended at the end of message
|
|
477
|
+
*
|
|
478
|
+
* @memberof AlertBannerComponent
|
|
479
|
+
*/
|
|
480
|
+
this.linkText = '';
|
|
481
|
+
/**
|
|
482
|
+
* Link target
|
|
483
|
+
*
|
|
484
|
+
* @type {@type {LinkTargetType}}
|
|
485
|
+
* @memberof AlertBannerComponent
|
|
181
486
|
*/
|
|
182
|
-
this.
|
|
487
|
+
this.linkTarget = '_blank';
|
|
488
|
+
this.visible = true;
|
|
183
489
|
}
|
|
184
|
-
|
|
185
|
-
this.
|
|
490
|
+
ngOnInit() {
|
|
491
|
+
this.iconName = alertBarsUtil.setIcon(this.alertType);
|
|
492
|
+
this.position = alertBarsUtil.setPosition(this.fixed);
|
|
493
|
+
this.cssClass = alertBarsUtil.setCssClass(this.fullWidth, this.alertType, this.position);
|
|
494
|
+
}
|
|
495
|
+
//Hide snackbar when dismiss button is clicked
|
|
496
|
+
dismissClick() {
|
|
497
|
+
this.visible = false;
|
|
186
498
|
}
|
|
187
499
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
500
|
+
AlertBannerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AlertBannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
501
|
+
AlertBannerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AlertBannerComponent, selector: "ui-alert-banner", inputs: { alertType: "alertType", message: "message", includeDismissButton: "includeDismissButton", fixed: "fixed", fullWidth: "fullWidth", linkText: "linkText", linkUrl: "linkUrl", linkTarget: "linkTarget" }, ngImport: i0, template: "<div [ngClass]=\"cssClass\" [@openClose] *ngIf=\"visible\" class=\"alert-container\">\n <div class=\"alert-text\">\n <ui-icon [name]=\"iconName\" size=\"24\"></ui-icon>\n {{ message }}\n <a *ngIf=\"!!linkText\" [target]=\"linkTarget\" [href]=\"linkUrl\">{{ linkText }}</a>\n </div>\n <ui-button *ngIf=\"includeDismissButton\" type=\"text\" [justIcon]=\"true\" class=\"close\" iconName=\"Close\" label=\"Close alert banner\" (buttonClickEvent)=\"dismissClick()\"></ui-button>\n</div>", styles: [":host{display:flex;width:100%;justify-content:center}:host .snackbar-container{max-width:600px}:host .alert-container,:host .snackbar-container{margin:0 auto;display:flex;padding:0 14px;border-radius:4px;align-items:center;justify-content:space-between;opacity:1;min-height:48px}:host .alert-container.fixed,:host .snackbar-container.fixed{position:fixed}:host .alert-container.static,:host .snackbar-container.static{position:relative}:host .alert-container ui-icon,:host .snackbar-container ui-icon{margin-right:14px}:host .alert-container ui-button,:host .snackbar-container ui-button{margin-left:14px}:host .alert-container ::ng-deep button.mat-mdc-unelevated-button.big,:host .snackbar-container ::ng-deep button.mat-mdc-unelevated-button.big{padding:0;min-width:auto}:host .alert-container .alert-text,:host .alert-container .snackbar-text,:host .snackbar-container .alert-text,:host .snackbar-container .snackbar-text{display:flex;align-items:center}:host .alert-container .alert-text a,:host .alert-container .snackbar-text a,:host .snackbar-container .alert-text a,:host .snackbar-container .snackbar-text a{color:#000;text-decoration:underline;font-weight:700}:host .alert-container .alert-text a:hover,:host .alert-container .alert-text a:visited,:host .alert-container .alert-text a:focus,:host .alert-container .snackbar-text a:hover,:host .alert-container .snackbar-text a:visited,:host .alert-container .snackbar-text a:focus,:host .snackbar-container .alert-text a:hover,:host .snackbar-container .alert-text a:visited,:host .snackbar-container .alert-text a:focus,:host .snackbar-container .snackbar-text a:hover,:host .snackbar-container .snackbar-text a:visited,:host .snackbar-container .snackbar-text a:focus{text-decoration:none}:host .alert-container.success,:host .snackbar-container.success{background-color:#cbd6cb}:host .alert-container.info,:host .snackbar-container.info{background-color:#c8d7de}:host .alert-container.warning,:host .snackbar-container.warning{background-color:#f0d6bb}:host .alert-container.error,:host .snackbar-container.error{background-color:#e3c3c6}@media (max-width: 600px){:host .alert-container,:host .snackbar-container{padding:8px 14px}}:host .alert-container.fixed{top:0;z-index:98}:host .alert-container.full-width{width:100%;min-width:100%}:host .alert-container a{margin-left:7px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "type", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "component", type: IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color"] }], animations: [
|
|
502
|
+
trigger('openClose', [
|
|
503
|
+
transition(':enter', [animate('0.2s ease-out', style({ opacity: 1 }))]),
|
|
504
|
+
transition(':leave', [animate('0.2s ease-in', style({ opacity: 0 }))]),
|
|
505
|
+
]),
|
|
506
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AlertBannerComponent, decorators: [{
|
|
191
508
|
type: Component,
|
|
192
|
-
args: [{ selector: 'ui-
|
|
193
|
-
|
|
509
|
+
args: [{ selector: 'ui-alert-banner', animations: [
|
|
510
|
+
trigger('openClose', [
|
|
511
|
+
transition(':enter', [animate('0.2s ease-out', style({ opacity: 1 }))]),
|
|
512
|
+
transition(':leave', [animate('0.2s ease-in', style({ opacity: 0 }))]),
|
|
513
|
+
]),
|
|
514
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"cssClass\" [@openClose] *ngIf=\"visible\" class=\"alert-container\">\n <div class=\"alert-text\">\n <ui-icon [name]=\"iconName\" size=\"24\"></ui-icon>\n {{ message }}\n <a *ngIf=\"!!linkText\" [target]=\"linkTarget\" [href]=\"linkUrl\">{{ linkText }}</a>\n </div>\n <ui-button *ngIf=\"includeDismissButton\" type=\"text\" [justIcon]=\"true\" class=\"close\" iconName=\"Close\" label=\"Close alert banner\" (buttonClickEvent)=\"dismissClick()\"></ui-button>\n</div>", styles: [":host{display:flex;width:100%;justify-content:center}:host .snackbar-container{max-width:600px}:host .alert-container,:host .snackbar-container{margin:0 auto;display:flex;padding:0 14px;border-radius:4px;align-items:center;justify-content:space-between;opacity:1;min-height:48px}:host .alert-container.fixed,:host .snackbar-container.fixed{position:fixed}:host .alert-container.static,:host .snackbar-container.static{position:relative}:host .alert-container ui-icon,:host .snackbar-container ui-icon{margin-right:14px}:host .alert-container ui-button,:host .snackbar-container ui-button{margin-left:14px}:host .alert-container ::ng-deep button.mat-mdc-unelevated-button.big,:host .snackbar-container ::ng-deep button.mat-mdc-unelevated-button.big{padding:0;min-width:auto}:host .alert-container .alert-text,:host .alert-container .snackbar-text,:host .snackbar-container .alert-text,:host .snackbar-container .snackbar-text{display:flex;align-items:center}:host .alert-container .alert-text a,:host .alert-container .snackbar-text a,:host .snackbar-container .alert-text a,:host .snackbar-container .snackbar-text a{color:#000;text-decoration:underline;font-weight:700}:host .alert-container .alert-text a:hover,:host .alert-container .alert-text a:visited,:host .alert-container .alert-text a:focus,:host .alert-container .snackbar-text a:hover,:host .alert-container .snackbar-text a:visited,:host .alert-container .snackbar-text a:focus,:host .snackbar-container .alert-text a:hover,:host .snackbar-container .alert-text a:visited,:host .snackbar-container .alert-text a:focus,:host .snackbar-container .snackbar-text a:hover,:host .snackbar-container .snackbar-text a:visited,:host .snackbar-container .snackbar-text a:focus{text-decoration:none}:host .alert-container.success,:host .snackbar-container.success{background-color:#cbd6cb}:host .alert-container.info,:host .snackbar-container.info{background-color:#c8d7de}:host .alert-container.warning,:host .snackbar-container.warning{background-color:#f0d6bb}:host .alert-container.error,:host .snackbar-container.error{background-color:#e3c3c6}@media (max-width: 600px){:host .alert-container,:host .snackbar-container{padding:8px 14px}}:host .alert-container.fixed{top:0;z-index:98}:host .alert-container.full-width{width:100%;min-width:100%}:host .alert-container a{margin-left:7px}\n"] }]
|
|
515
|
+
}], ctorParameters: function () { return []; }, propDecorators: { alertType: [{
|
|
194
516
|
type: Input
|
|
195
|
-
}],
|
|
517
|
+
}], message: [{
|
|
196
518
|
type: Input
|
|
197
|
-
}],
|
|
519
|
+
}], includeDismissButton: [{
|
|
198
520
|
type: Input
|
|
199
|
-
}],
|
|
521
|
+
}], fixed: [{
|
|
522
|
+
type: Input
|
|
523
|
+
}], fullWidth: [{
|
|
524
|
+
type: Input
|
|
525
|
+
}], linkText: [{
|
|
526
|
+
type: Input
|
|
527
|
+
}], linkUrl: [{
|
|
528
|
+
type: Input
|
|
529
|
+
}], linkTarget: [{
|
|
200
530
|
type: Input
|
|
201
|
-
}], buttonClickedEvent: [{
|
|
202
|
-
type: Output
|
|
203
531
|
}] } });
|
|
204
532
|
|
|
533
|
+
class IconComponentModule {
|
|
534
|
+
}
|
|
535
|
+
IconComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
536
|
+
IconComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IconComponentModule, declarations: [IconComponent], imports: [CommonModule, MatIconModule, HttpClientModule], exports: [IconComponent] });
|
|
537
|
+
IconComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponentModule, providers: [HttpClientModule], imports: [CommonModule, MatIconModule, HttpClientModule] });
|
|
538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponentModule, decorators: [{
|
|
539
|
+
type: NgModule,
|
|
540
|
+
args: [{
|
|
541
|
+
declarations: [IconComponent],
|
|
542
|
+
imports: [CommonModule, MatIconModule, HttpClientModule],
|
|
543
|
+
exports: [IconComponent],
|
|
544
|
+
providers: [HttpClientModule],
|
|
545
|
+
}]
|
|
546
|
+
}] });
|
|
547
|
+
|
|
205
548
|
class ButtonComponentModule {
|
|
206
549
|
}
|
|
207
|
-
ButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
208
|
-
ButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
209
|
-
ButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
550
|
+
ButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
551
|
+
ButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponentModule, declarations: [ButtonComponent], imports: [CommonModule, MatButtonModule, IconComponentModule, MatProgressSpinnerModule], exports: [ButtonComponent] });
|
|
552
|
+
ButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponentModule, imports: [CommonModule, MatButtonModule, IconComponentModule, MatProgressSpinnerModule] });
|
|
553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponentModule, decorators: [{
|
|
211
554
|
type: NgModule,
|
|
212
555
|
args: [{
|
|
213
556
|
declarations: [ButtonComponent],
|
|
214
|
-
imports: [CommonModule, MatButtonModule,
|
|
557
|
+
imports: [CommonModule, MatButtonModule, IconComponentModule, MatProgressSpinnerModule],
|
|
215
558
|
exports: [ButtonComponent],
|
|
216
559
|
providers: [],
|
|
217
560
|
}]
|
|
218
561
|
}] });
|
|
219
562
|
|
|
563
|
+
class AlertBannerComponentModule {
|
|
564
|
+
}
|
|
565
|
+
AlertBannerComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AlertBannerComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
566
|
+
AlertBannerComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AlertBannerComponentModule, declarations: [AlertBannerComponent], imports: [CommonModule, ButtonComponentModule, IconComponentModule], exports: [AlertBannerComponent] });
|
|
567
|
+
AlertBannerComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AlertBannerComponentModule, imports: [CommonModule, ButtonComponentModule, IconComponentModule] });
|
|
568
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AlertBannerComponentModule, decorators: [{
|
|
569
|
+
type: NgModule,
|
|
570
|
+
args: [{
|
|
571
|
+
declarations: [AlertBannerComponent],
|
|
572
|
+
imports: [CommonModule, ButtonComponentModule, IconComponentModule],
|
|
573
|
+
exports: [AlertBannerComponent],
|
|
574
|
+
providers: [],
|
|
575
|
+
}]
|
|
576
|
+
}] });
|
|
577
|
+
|
|
578
|
+
class BannerActionComponent {
|
|
579
|
+
constructor() {
|
|
580
|
+
/**
|
|
581
|
+
* BannerAction text
|
|
582
|
+
*
|
|
583
|
+
* @memberof BannerActionComponent
|
|
584
|
+
*/
|
|
585
|
+
this.message = '';
|
|
586
|
+
/**
|
|
587
|
+
* BannerAction type
|
|
588
|
+
*
|
|
589
|
+
* @type {AlertBarType}
|
|
590
|
+
* @memberof BannerActionComponent
|
|
591
|
+
*/
|
|
592
|
+
this.bannerActionType = 'success';
|
|
593
|
+
/**
|
|
594
|
+
* Static or fixed position
|
|
595
|
+
*
|
|
596
|
+
* @memberof AlertBannerComponent
|
|
597
|
+
*/
|
|
598
|
+
this.fixed = false;
|
|
599
|
+
/**
|
|
600
|
+
* Full width for alert banner
|
|
601
|
+
*
|
|
602
|
+
* @memberof AlertBannerComponent
|
|
603
|
+
*/
|
|
604
|
+
this.fullWidth = true;
|
|
605
|
+
this.buttonClickEvent = new EventEmitter();
|
|
606
|
+
}
|
|
607
|
+
buttonClick(event) {
|
|
608
|
+
this.buttonClickEvent.emit(event);
|
|
609
|
+
}
|
|
610
|
+
ngOnInit() {
|
|
611
|
+
this.iconName = alertBarsUtil.setIcon(this.bannerActionType);
|
|
612
|
+
this.position = alertBarsUtil.setPosition(this.fixed);
|
|
613
|
+
this.cssClass = alertBarsUtil.setCssClass(this.fullWidth, this.bannerActionType, this.position);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
BannerActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BannerActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
617
|
+
BannerActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BannerActionComponent, selector: "ui-banner-action", inputs: { message: "message", bannerActionType: "bannerActionType", buttonText: "buttonText", fixed: "fixed", fullWidth: "fullWidth" }, outputs: { buttonClickEvent: "buttonClickEvent" }, ngImport: i0, template: "<div id=\"banner-action\" class=\"banner-action-container\" [ngClass]=\"cssClass\">\n <div class=\"banner-action-text\">\n <ui-icon [name]=\"iconName\" size=\"24\"></ui-icon>\n {{ message }}\n </div>\n <ui-button [label]=\"buttonText\" (buttonClickEvent)=\"buttonClick($event)\"></ui-button>\n</div>", styles: [":host{display:flex;width:100%;justify-content:center}:host .banner-action-container{height:72px;padding:0 16px;color:#000;font-size:16px;display:flex;align-items:center;background:#ffffff;border-radius:8px;justify-content:space-between;border-width:2px;border-style:solid}:host .banner-action-container.fixed{position:fixed;z-index:98;top:0}:host .banner-action-container.static{position:relative}:host .banner-action-container.full-width{width:100%;min-width:100%}:host .banner-action-container .banner-action-text{display:flex;align-items:center}:host .banner-action-container ui-icon{margin-right:14px}:host .banner-action-container ui-button{margin-left:14px}:host .banner-action-container.success{border-color:#46a997}:host .banner-action-container.info{border-color:#276678}:host .banner-action-container.warning{border-color:#cca45f}:host .banner-action-container.error{border-color:#cb7b7a}@media (max-width: 600px){:host .banner-action-container{height:auto;padding:16px;display:flex;flex-flow:column}:host .banner-action-container .banner-action-text{margin-bottom:10px}:host .banner-action-container ui-button{margin:0;width:100%}:host .banner-action-container ui-button ::ng-deep button{min-width:100%}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "type", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "component", type: IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BannerActionComponent, decorators: [{
|
|
619
|
+
type: Component,
|
|
620
|
+
args: [{ selector: 'ui-banner-action', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div id=\"banner-action\" class=\"banner-action-container\" [ngClass]=\"cssClass\">\n <div class=\"banner-action-text\">\n <ui-icon [name]=\"iconName\" size=\"24\"></ui-icon>\n {{ message }}\n </div>\n <ui-button [label]=\"buttonText\" (buttonClickEvent)=\"buttonClick($event)\"></ui-button>\n</div>", styles: [":host{display:flex;width:100%;justify-content:center}:host .banner-action-container{height:72px;padding:0 16px;color:#000;font-size:16px;display:flex;align-items:center;background:#ffffff;border-radius:8px;justify-content:space-between;border-width:2px;border-style:solid}:host .banner-action-container.fixed{position:fixed;z-index:98;top:0}:host .banner-action-container.static{position:relative}:host .banner-action-container.full-width{width:100%;min-width:100%}:host .banner-action-container .banner-action-text{display:flex;align-items:center}:host .banner-action-container ui-icon{margin-right:14px}:host .banner-action-container ui-button{margin-left:14px}:host .banner-action-container.success{border-color:#46a997}:host .banner-action-container.info{border-color:#276678}:host .banner-action-container.warning{border-color:#cca45f}:host .banner-action-container.error{border-color:#cb7b7a}@media (max-width: 600px){:host .banner-action-container{height:auto;padding:16px;display:flex;flex-flow:column}:host .banner-action-container .banner-action-text{margin-bottom:10px}:host .banner-action-container ui-button{margin:0;width:100%}:host .banner-action-container ui-button ::ng-deep button{min-width:100%}}\n"] }]
|
|
621
|
+
}], ctorParameters: function () { return []; }, propDecorators: { message: [{
|
|
622
|
+
type: Input
|
|
623
|
+
}], bannerActionType: [{
|
|
624
|
+
type: Input
|
|
625
|
+
}], buttonText: [{
|
|
626
|
+
type: Input
|
|
627
|
+
}], fixed: [{
|
|
628
|
+
type: Input
|
|
629
|
+
}], fullWidth: [{
|
|
630
|
+
type: Input
|
|
631
|
+
}], buttonClickEvent: [{
|
|
632
|
+
type: Output
|
|
633
|
+
}] } });
|
|
634
|
+
|
|
220
635
|
class BannerActionComponentModule {
|
|
221
636
|
}
|
|
222
|
-
BannerActionComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
223
|
-
BannerActionComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
224
|
-
BannerActionComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
637
|
+
BannerActionComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BannerActionComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
638
|
+
BannerActionComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: BannerActionComponentModule, declarations: [BannerActionComponent], imports: [CommonModule, ButtonComponentModule, IconComponentModule], exports: [BannerActionComponent] });
|
|
639
|
+
BannerActionComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BannerActionComponentModule, imports: [CommonModule, ButtonComponentModule, IconComponentModule] });
|
|
640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BannerActionComponentModule, decorators: [{
|
|
226
641
|
type: NgModule,
|
|
227
642
|
args: [{
|
|
228
643
|
declarations: [BannerActionComponent],
|
|
229
|
-
imports: [CommonModule,
|
|
644
|
+
imports: [CommonModule, ButtonComponentModule, IconComponentModule],
|
|
230
645
|
exports: [BannerActionComponent],
|
|
231
646
|
providers: [],
|
|
232
647
|
}]
|
|
233
648
|
}] });
|
|
234
649
|
|
|
650
|
+
var LogoTypeEnum;
|
|
651
|
+
(function (LogoTypeEnum) {
|
|
652
|
+
LogoTypeEnum["DEFAULT"] = "default";
|
|
653
|
+
LogoTypeEnum["POWEREDBY"] = "poweredby";
|
|
654
|
+
LogoTypeEnum["REVERSE"] = "reverse";
|
|
655
|
+
})(LogoTypeEnum || (LogoTypeEnum = {}));
|
|
656
|
+
;
|
|
657
|
+
var LogoPathEnum;
|
|
658
|
+
(function (LogoPathEnum) {
|
|
659
|
+
LogoPathEnum["DEFAULT"] = "/images/testgorilla.svg";
|
|
660
|
+
LogoPathEnum["POWEREDBY"] = "/images/poweredbyTG.svg";
|
|
661
|
+
LogoPathEnum["REVERSE"] = "/images/reverseTG.svg";
|
|
662
|
+
})(LogoPathEnum || (LogoPathEnum = {}));
|
|
663
|
+
|
|
235
664
|
class LogoComponent {
|
|
236
|
-
constructor() {
|
|
665
|
+
constructor() {
|
|
666
|
+
/**
|
|
667
|
+
* Logo type
|
|
668
|
+
*
|
|
669
|
+
* @type {LogoTypeEnum}
|
|
670
|
+
* @memberof LogoComponent
|
|
671
|
+
*/
|
|
672
|
+
this.type = LogoTypeEnum.DEFAULT;
|
|
673
|
+
/**
|
|
674
|
+
* @ignore
|
|
675
|
+
*/
|
|
676
|
+
this.setURL = () => {
|
|
677
|
+
switch (this.type) {
|
|
678
|
+
case LogoTypeEnum.POWEREDBY: {
|
|
679
|
+
this.logoURL = LogoPathEnum.POWEREDBY;
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
682
|
+
case LogoTypeEnum.REVERSE: {
|
|
683
|
+
this.logoURL = LogoPathEnum.REVERSE;
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
default: {
|
|
687
|
+
this.logoURL = LogoPathEnum.DEFAULT;
|
|
688
|
+
break;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* @ignore
|
|
695
|
+
*/
|
|
696
|
+
ngOnInit() {
|
|
697
|
+
this.setURL();
|
|
698
|
+
}
|
|
699
|
+
;
|
|
700
|
+
/**
|
|
701
|
+
* @ignore
|
|
702
|
+
*/
|
|
703
|
+
ngOnChanges() {
|
|
704
|
+
this.setURL();
|
|
705
|
+
}
|
|
237
706
|
}
|
|
238
|
-
LogoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
239
|
-
LogoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
707
|
+
LogoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
708
|
+
LogoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: LogoComponent, selector: "ui-logo", inputs: { type: "type" }, usesOnChanges: true, ngImport: i0, template: "<img [src]=\"logoURL\" [alt]=\"type\">\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogoComponent, decorators: [{
|
|
241
710
|
type: Component,
|
|
242
|
-
args: [{ selector: 'ui-logo', changeDetection: ChangeDetectionStrategy.OnPush, template: "<img src=\"
|
|
243
|
-
}],
|
|
711
|
+
args: [{ selector: 'ui-logo', changeDetection: ChangeDetectionStrategy.OnPush, template: "<img [src]=\"logoURL\" [alt]=\"type\">\n" }]
|
|
712
|
+
}], propDecorators: { type: [{
|
|
713
|
+
type: Input
|
|
714
|
+
}] } });
|
|
244
715
|
|
|
245
716
|
class CardComponent {
|
|
246
717
|
constructor() {
|
|
@@ -248,11 +719,11 @@ class CardComponent {
|
|
|
248
719
|
this.subTitle = '';
|
|
249
720
|
}
|
|
250
721
|
}
|
|
251
|
-
CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
252
|
-
CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
722
|
+
CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
723
|
+
CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CardComponent, selector: "ui-card", inputs: { title: "title", subTitle: "subTitle" }, ngImport: i0, template: "<mat-card appearance=\"outlined\" class=\"container\">\n <ui-logo class=\"logo\"></ui-logo>\n <mat-card-title>{{title}}</mat-card-title>\n <mat-card-subtitle>{{subTitle}}</mat-card-subtitle>\n</mat-card>\n", styles: [".container{width:672px;box-sizing:border-box;padding:80px!important}.container .mat-mdc-card-title{margin-bottom:24px;font-weight:700;font-size:22px;line-height:135%;width:100%;word-wrap:break-word}.container .mat-mdc-card-subtitle{color:#000;font-weight:400;font-size:16px;line-height:135%}\n"], dependencies: [{ kind: "component", type: i1$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$2.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i1$2.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: LogoComponent, selector: "ui-logo", inputs: ["type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardComponent, decorators: [{
|
|
254
725
|
type: Component,
|
|
255
|
-
args: [{ selector: 'ui-card', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-card class=\"container\">\n <ui-logo class=\"logo\"></ui-logo>\n <mat-card-title>{{title}}</mat-card-title>\n <mat-card-subtitle>{{subTitle}}</mat-card-subtitle>\n</mat-card>\n", styles: [".container{width:672px;box-sizing:border-box;padding:80px!important}.container .
|
|
726
|
+
args: [{ selector: 'ui-card', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-card appearance=\"outlined\" class=\"container\">\n <ui-logo class=\"logo\"></ui-logo>\n <mat-card-title>{{title}}</mat-card-title>\n <mat-card-subtitle>{{subTitle}}</mat-card-subtitle>\n</mat-card>\n", styles: [".container{width:672px;box-sizing:border-box;padding:80px!important}.container .mat-mdc-card-title{margin-bottom:24px;font-weight:700;font-size:22px;line-height:135%;width:100%;word-wrap:break-word}.container .mat-mdc-card-subtitle{color:#000;font-weight:400;font-size:16px;line-height:135%}\n"] }]
|
|
256
727
|
}], propDecorators: { title: [{
|
|
257
728
|
type: Input
|
|
258
729
|
}], subTitle: [{
|
|
@@ -261,10 +732,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
261
732
|
|
|
262
733
|
class LogoComponentModule {
|
|
263
734
|
}
|
|
264
|
-
LogoComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
265
|
-
LogoComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
266
|
-
LogoComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
735
|
+
LogoComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogoComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
736
|
+
LogoComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LogoComponentModule, declarations: [LogoComponent], exports: [LogoComponent] });
|
|
737
|
+
LogoComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogoComponentModule });
|
|
738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogoComponentModule, decorators: [{
|
|
268
739
|
type: NgModule,
|
|
269
740
|
args: [{
|
|
270
741
|
declarations: [LogoComponent],
|
|
@@ -275,10 +746,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
275
746
|
|
|
276
747
|
class CardComponentModule {
|
|
277
748
|
}
|
|
278
|
-
CardComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
279
|
-
CardComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
280
|
-
CardComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
749
|
+
CardComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
750
|
+
CardComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CardComponentModule, declarations: [CardComponent], imports: [CommonModule, MatCardModule, LogoComponentModule], exports: [CardComponent] });
|
|
751
|
+
CardComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardComponentModule, imports: [CommonModule, MatCardModule, LogoComponentModule] });
|
|
752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CardComponentModule, decorators: [{
|
|
282
753
|
type: NgModule,
|
|
283
754
|
args: [{
|
|
284
755
|
declarations: [CardComponent],
|
|
@@ -287,63 +758,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
287
758
|
}]
|
|
288
759
|
}] });
|
|
289
760
|
|
|
290
|
-
|
|
291
|
-
class ValidatorsUtil {
|
|
292
|
-
static validatePassword() {
|
|
293
|
-
return [Validators.required, Validators.minLength(12), Validators.pattern(PASSWORD_REGEX)];
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
const CREATE_ACCOUNT_i18n = {
|
|
298
|
-
title: 'Create your Career Passport',
|
|
299
|
-
subtitle: 'Enter the email address to which you received an assessment invite.',
|
|
300
|
-
email_label: 'Email',
|
|
301
|
-
password_label: 'Password',
|
|
302
|
-
terms_conditions: 'I have read and I accept the ',
|
|
303
|
-
terms_conditions_link_label: 'terms of use',
|
|
304
|
-
button_label: 'Next',
|
|
305
|
-
have_career_passport: 'Already have a Career Passport?',
|
|
306
|
-
login: 'Log in here',
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
class FieldComponent {
|
|
761
|
+
class CheckboxComponent {
|
|
310
762
|
constructor() {
|
|
311
|
-
this.class = 'ui-field';
|
|
312
763
|
/**
|
|
313
|
-
*
|
|
764
|
+
* Determines whether the checkbox is disabled.
|
|
765
|
+
* Default: false.
|
|
314
766
|
*
|
|
315
|
-
* @type {
|
|
316
|
-
* @memberof
|
|
767
|
+
* @type {boolean}
|
|
768
|
+
* @memberof CheckboxComponent
|
|
317
769
|
*/
|
|
318
|
-
this.
|
|
770
|
+
this.disabled = false;
|
|
319
771
|
/**
|
|
320
|
-
*
|
|
772
|
+
* Determines whether the checkbox is checked.
|
|
773
|
+
* Default: false.
|
|
774
|
+
*
|
|
775
|
+
* @type {boolean}
|
|
776
|
+
* @memberof CheckboxComponent
|
|
777
|
+
*/
|
|
778
|
+
this.checked = false;
|
|
779
|
+
/**
|
|
780
|
+
* Determines whether the checkbox is indeterminate.
|
|
781
|
+
* It can be used to represent a checkbox with three states, e.g. a checkbox that represents a nested list of checkable items.
|
|
782
|
+
* Default: false.
|
|
783
|
+
*
|
|
784
|
+
* @type {boolean}
|
|
785
|
+
* @memberof CheckboxComponent
|
|
786
|
+
*/
|
|
787
|
+
this.indeterminate = false;
|
|
788
|
+
/**
|
|
789
|
+
* Determines whether the checkbox color.
|
|
790
|
+
* Default: Test Gorilla primary color.
|
|
321
791
|
*
|
|
322
792
|
* @type {string}
|
|
323
|
-
* @memberof
|
|
793
|
+
* @memberof CheckboxComponent
|
|
324
794
|
*/
|
|
325
|
-
this.
|
|
795
|
+
this.color = '#46A997';
|
|
326
796
|
/**
|
|
327
|
-
*
|
|
797
|
+
* Name value will be applied to the input element if present.
|
|
328
798
|
*
|
|
329
799
|
* @type {string}
|
|
330
|
-
* @memberof
|
|
800
|
+
* @memberof CheckboxComponent
|
|
331
801
|
*/
|
|
332
|
-
this.
|
|
802
|
+
this.name = '';
|
|
333
803
|
/**
|
|
334
|
-
*
|
|
804
|
+
* Text content will be applied to the input element if present.
|
|
335
805
|
*
|
|
336
806
|
* @type {string}
|
|
337
|
-
* @memberof
|
|
807
|
+
* @memberof CheckboxComponent
|
|
338
808
|
*/
|
|
339
|
-
this.
|
|
809
|
+
this.label = '';
|
|
340
810
|
/**
|
|
341
|
-
* Determines
|
|
811
|
+
* Determines whether the checkbox is a multiple choice cell.
|
|
812
|
+
* Default: false
|
|
342
813
|
*
|
|
343
814
|
* @type {boolean}
|
|
344
|
-
* @memberof
|
|
815
|
+
* @memberof CheckboxComponent
|
|
816
|
+
*/
|
|
817
|
+
this.multiple = false;
|
|
818
|
+
/**
|
|
819
|
+
* Event emitted when the checkbox's checked value changes.
|
|
820
|
+
*
|
|
821
|
+
* @type {boolean}
|
|
822
|
+
* @memberof CheckboxComponent
|
|
345
823
|
*/
|
|
346
|
-
this.
|
|
824
|
+
this.changed = new EventEmitter();
|
|
347
825
|
/**
|
|
348
826
|
* @ignore
|
|
349
827
|
*/
|
|
@@ -353,27 +831,30 @@ class FieldComponent {
|
|
|
353
831
|
*/
|
|
354
832
|
this.onTouch = () => { };
|
|
355
833
|
}
|
|
834
|
+
emitChange(event) {
|
|
835
|
+
this.changed.emit(event.checked);
|
|
836
|
+
}
|
|
356
837
|
ngOnInit() {
|
|
357
|
-
|
|
358
|
-
this.passwordField = true;
|
|
359
|
-
this.suffixIcon = 'visibility';
|
|
360
|
-
}
|
|
838
|
+
this.classMultiple = this.setClass();
|
|
361
839
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
onInput(event) {
|
|
366
|
-
this.value = event.target.value;
|
|
840
|
+
toggleChecked(event) {
|
|
841
|
+
this.changed.emit(event.checked);
|
|
842
|
+
this.checked = event.checked;
|
|
367
843
|
this.onTouch();
|
|
368
|
-
this.onChange(this.
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
this.value = value || '';
|
|
844
|
+
this.onChange(this.checked);
|
|
845
|
+
if (!this.disabled) {
|
|
846
|
+
this.indeterminate = false;
|
|
847
|
+
this.classMultiple = this.setClass();
|
|
373
848
|
}
|
|
374
|
-
|
|
375
|
-
|
|
849
|
+
}
|
|
850
|
+
setClass() {
|
|
851
|
+
if (this.multiple) {
|
|
852
|
+
return this.checked || this.indeterminate ? 'multiple-checked' : 'multiple-unchecked';
|
|
376
853
|
}
|
|
854
|
+
return '';
|
|
855
|
+
}
|
|
856
|
+
writeValue(value) {
|
|
857
|
+
this.checked = value;
|
|
377
858
|
}
|
|
378
859
|
registerOnChange(fn) {
|
|
379
860
|
this.onChange = fn;
|
|
@@ -382,58 +863,288 @@ class FieldComponent {
|
|
|
382
863
|
this.onTouch = fn;
|
|
383
864
|
}
|
|
384
865
|
setDisabledState(isDisabled) {
|
|
385
|
-
this.
|
|
386
|
-
}
|
|
387
|
-
suffixIconClicked() {
|
|
388
|
-
if (this.passwordField) {
|
|
389
|
-
this.type = this.type === 'password' ? 'text' : 'password';
|
|
390
|
-
this.suffixIcon = this.type === 'password' ? 'visibility' : 'visibility_off';
|
|
391
|
-
}
|
|
866
|
+
this.disabled = isDisabled;
|
|
392
867
|
}
|
|
393
868
|
}
|
|
394
|
-
|
|
395
|
-
|
|
869
|
+
CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
870
|
+
CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CheckboxComponent, selector: "ui-checkbox", inputs: { disabled: "disabled", checked: "checked", indeterminate: "indeterminate", color: "color", name: "name", label: "label", multiple: "multiple" }, outputs: { changed: "changed" }, host: { properties: { "style.--color": "this.color" } }, providers: [
|
|
396
871
|
{
|
|
397
872
|
provide: NG_VALUE_ACCESSOR,
|
|
398
|
-
useExisting: forwardRef(() =>
|
|
873
|
+
useExisting: forwardRef(() => CheckboxComponent),
|
|
399
874
|
multi: true,
|
|
400
875
|
},
|
|
401
|
-
], ngImport: i0, template: "<
|
|
402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
876
|
+
], ngImport: i0, template: "<div [ngClass]=\"classMultiple\">\n <mat-checkbox\n [indeterminate]=\"indeterminate\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [name]=\"name\"\n (change)=\"toggleChecked($event)\"\n [aria-label]=\"label\"\n class=\"checkbox\"\n >\n {{ label }}\n </mat-checkbox>\n</div>", styles: [".mat-mdc-checkbox.checkbox.mat-accent ::ng-deep .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--color)!important;border-color:var(--color)!important}::ng-deep .mat-mdc-checkbox.checkbox.mat-accent.mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:var(--color)!important;border-color:var(--color)!important}.mat-mdc-checkbox.checkbox.mat-accent ::ng-deep .mdc-checkbox__ripple{background-color:var(--color)}::ng-deep .mat-mdc-checkbox.checkbox.mat-accent.mdc-checkbox__native-control:indeterminate~.mat-mdc-checkbox-disabled .mdc-checkbox__background{background-color:#888}::ng-deep .mat-mdc-checkbox.checkbox.mat-accent.mat-mdc-checkbox-checked.mat-mdc-checkbox-disabled .mdc-checkbox__background{background-color:#888}.multiple-checked{border:1px solid #46A997;display:flex;flex-direction:row;align-items:center;gap:16px;background:#46A997;border-radius:8px}.multiple-checked ::ng-deep .mat-mdc-checkbox{width:100%;height:100%}.multiple-checked ::ng-deep .mdc-form-field{padding:8px;width:100%;height:100%;align-items:center}.multiple-checked .mat-mdc-checkbox.checkbox.mat-accent ::ng-deep .mdc-checkbox__background{border:1px solid #ffffff!important;border-color:#fff!important}.multiple-checked ::ng-deep label{color:#fff}.multiple-unchecked{border:1px solid #E0E0E0;display:flex;flex-direction:row;align-items:center;gap:16px;background:#ffffff;border-radius:8px}.multiple-unchecked ::ng-deep .mat-mdc-checkbox{width:100%;height:100%}.multiple-unchecked ::ng-deep .mdc-form-field{padding:8px;width:100%;height:100%;align-items:center}.multiple-unchecked:hover{background:#F6F6F6;border:1px solid #E0E0E0}.multiple-unchecked ::ng-deep .mdc-checkbox__background{border:1px solid #000000}.multiple-unchecked ::ng-deep .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:0!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
403
878
|
type: Component,
|
|
404
|
-
args: [{ selector: 'ui-
|
|
879
|
+
args: [{ selector: 'ui-checkbox', providers: [
|
|
405
880
|
{
|
|
406
881
|
provide: NG_VALUE_ACCESSOR,
|
|
407
|
-
useExisting: forwardRef(() =>
|
|
882
|
+
useExisting: forwardRef(() => CheckboxComponent),
|
|
408
883
|
multi: true,
|
|
409
884
|
},
|
|
410
|
-
], template: "<
|
|
411
|
-
}],
|
|
412
|
-
type: HostBinding
|
|
413
|
-
}], label: [{
|
|
885
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"classMultiple\">\n <mat-checkbox\n [indeterminate]=\"indeterminate\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [name]=\"name\"\n (change)=\"toggleChecked($event)\"\n [aria-label]=\"label\"\n class=\"checkbox\"\n >\n {{ label }}\n </mat-checkbox>\n</div>", styles: [".mat-mdc-checkbox.checkbox.mat-accent ::ng-deep .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--color)!important;border-color:var(--color)!important}::ng-deep .mat-mdc-checkbox.checkbox.mat-accent.mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:var(--color)!important;border-color:var(--color)!important}.mat-mdc-checkbox.checkbox.mat-accent ::ng-deep .mdc-checkbox__ripple{background-color:var(--color)}::ng-deep .mat-mdc-checkbox.checkbox.mat-accent.mdc-checkbox__native-control:indeterminate~.mat-mdc-checkbox-disabled .mdc-checkbox__background{background-color:#888}::ng-deep .mat-mdc-checkbox.checkbox.mat-accent.mat-mdc-checkbox-checked.mat-mdc-checkbox-disabled .mdc-checkbox__background{background-color:#888}.multiple-checked{border:1px solid #46A997;display:flex;flex-direction:row;align-items:center;gap:16px;background:#46A997;border-radius:8px}.multiple-checked ::ng-deep .mat-mdc-checkbox{width:100%;height:100%}.multiple-checked ::ng-deep .mdc-form-field{padding:8px;width:100%;height:100%;align-items:center}.multiple-checked .mat-mdc-checkbox.checkbox.mat-accent ::ng-deep .mdc-checkbox__background{border:1px solid #ffffff!important;border-color:#fff!important}.multiple-checked ::ng-deep label{color:#fff}.multiple-unchecked{border:1px solid #E0E0E0;display:flex;flex-direction:row;align-items:center;gap:16px;background:#ffffff;border-radius:8px}.multiple-unchecked ::ng-deep .mat-mdc-checkbox{width:100%;height:100%}.multiple-unchecked ::ng-deep .mdc-form-field{padding:8px;width:100%;height:100%;align-items:center}.multiple-unchecked:hover{background:#F6F6F6;border:1px solid #E0E0E0}.multiple-unchecked ::ng-deep .mdc-checkbox__background{border:1px solid #000000}.multiple-unchecked ::ng-deep .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:0!important}\n"] }]
|
|
886
|
+
}], propDecorators: { disabled: [{
|
|
414
887
|
type: Input
|
|
415
|
-
}],
|
|
888
|
+
}], checked: [{
|
|
416
889
|
type: Input
|
|
417
|
-
}],
|
|
890
|
+
}], indeterminate: [{
|
|
418
891
|
type: Input
|
|
419
|
-
}],
|
|
892
|
+
}], color: [{
|
|
893
|
+
type: HostBinding,
|
|
894
|
+
args: ['style.--color']
|
|
895
|
+
}, {
|
|
420
896
|
type: Input
|
|
421
|
-
}],
|
|
897
|
+
}], name: [{
|
|
422
898
|
type: Input
|
|
423
|
-
}],
|
|
899
|
+
}], label: [{
|
|
900
|
+
type: Input
|
|
901
|
+
}], multiple: [{
|
|
902
|
+
type: Input
|
|
903
|
+
}], changed: [{
|
|
904
|
+
type: Output
|
|
905
|
+
}] } });
|
|
906
|
+
|
|
907
|
+
class CheckboxComponentModule {
|
|
908
|
+
}
|
|
909
|
+
CheckboxComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
910
|
+
CheckboxComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CheckboxComponentModule, declarations: [CheckboxComponent], imports: [CommonModule, MatCheckboxModule, FormsModule, ReactiveFormsModule], exports: [CheckboxComponent] });
|
|
911
|
+
CheckboxComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxComponentModule, imports: [CommonModule, MatCheckboxModule, FormsModule, ReactiveFormsModule] });
|
|
912
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxComponentModule, decorators: [{
|
|
913
|
+
type: NgModule,
|
|
914
|
+
args: [{
|
|
915
|
+
declarations: [CheckboxComponent],
|
|
916
|
+
imports: [CommonModule, MatCheckboxModule, FormsModule, ReactiveFormsModule],
|
|
917
|
+
exports: [CheckboxComponent],
|
|
918
|
+
}]
|
|
919
|
+
}] });
|
|
920
|
+
|
|
921
|
+
const PASSWORD_REGEX = /^(?=\D*\d)(?=[^a-z]*[a-z])(?=.*[#$%&'()*+,\-./:;<=>?@!^_~|"`{}\[\]])(?=[^A-Z]*[A-Z]).{12,}$/;
|
|
922
|
+
class ValidatorsUtil {
|
|
923
|
+
static validatePassword() {
|
|
924
|
+
return [Validators.required, Validators.minLength(12), Validators.pattern(PASSWORD_REGEX)];
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
const CREATE_ACCOUNT_i18n = {
|
|
929
|
+
title: 'Create your Career Passport',
|
|
930
|
+
subtitle: 'Enter the email address to which you received an assessment invite.',
|
|
931
|
+
email_label: 'Email',
|
|
932
|
+
password_label: 'Password',
|
|
933
|
+
terms_conditions: 'I have read and I accept the ',
|
|
934
|
+
terms_conditions_link_label: 'terms of use',
|
|
935
|
+
button_label: 'Next',
|
|
936
|
+
have_career_passport: 'Already have a Career Passport?',
|
|
937
|
+
login: 'Log in here',
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
/* eslint-disable no-underscore-dangle */
|
|
941
|
+
class FieldComponent {
|
|
942
|
+
/**
|
|
943
|
+
* Input field errors
|
|
944
|
+
*
|
|
945
|
+
* @type {string}
|
|
946
|
+
* @memberof FieldComponent
|
|
947
|
+
*/
|
|
948
|
+
set errors(errors) {
|
|
949
|
+
this._errors = errors;
|
|
950
|
+
this.errorsLength = this.setErrorsLength();
|
|
951
|
+
}
|
|
952
|
+
constructor() {
|
|
953
|
+
this.class = 'ui-field';
|
|
954
|
+
/**
|
|
955
|
+
* Form field label
|
|
956
|
+
*
|
|
957
|
+
* @type {string}
|
|
958
|
+
* @memberof FieldComponent
|
|
959
|
+
*/
|
|
960
|
+
this.label = '';
|
|
961
|
+
/**
|
|
962
|
+
* Input placeholder
|
|
963
|
+
*
|
|
964
|
+
* @type {string}
|
|
965
|
+
* @memberof FieldComponent
|
|
966
|
+
*/
|
|
967
|
+
this.placeholder = '';
|
|
968
|
+
/**
|
|
969
|
+
* Input id
|
|
970
|
+
*
|
|
971
|
+
* @type {string}
|
|
972
|
+
* @memberof FieldComponent
|
|
973
|
+
*/
|
|
974
|
+
this.id = '';
|
|
975
|
+
/**
|
|
976
|
+
* Input value
|
|
977
|
+
*
|
|
978
|
+
* @type {string}
|
|
979
|
+
* @memberof FieldComponent
|
|
980
|
+
*/
|
|
981
|
+
this.value = '';
|
|
982
|
+
/**
|
|
983
|
+
* Hint text
|
|
984
|
+
*
|
|
985
|
+
* @type {string}
|
|
986
|
+
* @memberof FieldComponent
|
|
987
|
+
*/
|
|
988
|
+
this.hintMessage = '';
|
|
989
|
+
/**
|
|
990
|
+
* Input type
|
|
991
|
+
*
|
|
992
|
+
* @type {FieldType}
|
|
993
|
+
* @memberof FieldComponent
|
|
994
|
+
*/
|
|
995
|
+
this.type = 'text';
|
|
996
|
+
/**
|
|
997
|
+
* @ignore
|
|
998
|
+
*/
|
|
999
|
+
this.onChange = (_) => { };
|
|
1000
|
+
/**
|
|
1001
|
+
* @ignore
|
|
1002
|
+
*/
|
|
1003
|
+
this.onTouch = () => { };
|
|
1004
|
+
}
|
|
1005
|
+
ngOnInit() {
|
|
1006
|
+
this.setSearchInput();
|
|
1007
|
+
this.currentType = this.getType();
|
|
1008
|
+
}
|
|
1009
|
+
//set search input initial value
|
|
1010
|
+
setSearchInput() {
|
|
1011
|
+
if (this.type === 'search') {
|
|
1012
|
+
this.showSearch = true;
|
|
1013
|
+
}
|
|
1014
|
+
else {
|
|
1015
|
+
this.showClose = false;
|
|
1016
|
+
this.showSearch = false;
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
//change type for reveal password
|
|
1020
|
+
getType() {
|
|
1021
|
+
if (this.type === 'password' && this.showPassword) {
|
|
1022
|
+
return 'text';
|
|
1023
|
+
}
|
|
1024
|
+
return this.type;
|
|
1025
|
+
}
|
|
1026
|
+
//Clear input value
|
|
1027
|
+
clearValue() {
|
|
1028
|
+
this.value = '';
|
|
1029
|
+
this.onChangeInputSearch();
|
|
1030
|
+
}
|
|
1031
|
+
//toggle for password
|
|
1032
|
+
showPasswordClick() {
|
|
1033
|
+
this.showPassword = !this.showPassword;
|
|
1034
|
+
this.currentType = this.getType();
|
|
1035
|
+
}
|
|
1036
|
+
//Set options for search input
|
|
1037
|
+
onChangeInputSearch() {
|
|
1038
|
+
if (this.type === 'search') {
|
|
1039
|
+
if (!this.value) {
|
|
1040
|
+
this.showClose = false;
|
|
1041
|
+
this.showSearch = true;
|
|
1042
|
+
}
|
|
1043
|
+
if (this.value) {
|
|
1044
|
+
this.showClose = true;
|
|
1045
|
+
this.showSearch = false;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
// Set errors length for validation
|
|
1050
|
+
// Consider only those errors which which are not empty
|
|
1051
|
+
setErrorsLength() {
|
|
1052
|
+
if (!!this._errors) {
|
|
1053
|
+
return this._errors.filter(err => !!err).length > 0 ? true : false;
|
|
1054
|
+
}
|
|
1055
|
+
return false;
|
|
1056
|
+
}
|
|
1057
|
+
//Save input value
|
|
1058
|
+
onInput(event) {
|
|
1059
|
+
this.value = event.target.value;
|
|
1060
|
+
this.errorsLength = this.setErrorsLength();
|
|
1061
|
+
this.onTouch();
|
|
1062
|
+
this.onChange(this.value);
|
|
1063
|
+
}
|
|
1064
|
+
writeValue(value) {
|
|
1065
|
+
if (value) {
|
|
1066
|
+
this.value = value || '';
|
|
1067
|
+
}
|
|
1068
|
+
else {
|
|
1069
|
+
this.value = '';
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
registerOnChange(fn) {
|
|
1073
|
+
this.onChange = fn;
|
|
1074
|
+
}
|
|
1075
|
+
registerOnTouched(fn) {
|
|
1076
|
+
this.onTouch = fn;
|
|
1077
|
+
}
|
|
1078
|
+
setDisabledState(isDisabled) {
|
|
1079
|
+
this.disabled = isDisabled;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
FieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1083
|
+
FieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FieldComponent, selector: "ui-field", inputs: { label: "label", fieldName: "fieldName", placeholder: "placeholder", id: "id", value: "value", errors: "errors", disabled: "disabled", required: "required", hintMessage: "hintMessage", type: "type" }, host: { properties: { "class": "this.class" } }, providers: [
|
|
1084
|
+
{
|
|
1085
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1086
|
+
useExisting: forwardRef(() => FieldComponent),
|
|
1087
|
+
multi: true,
|
|
1088
|
+
},
|
|
1089
|
+
], ngImport: i0, template: "<mat-form-field #uiField appearance=\"outline\" [color]=\"errorsLength ? 'warn' : 'accent'\">\n <mat-label *ngIf=\"label\">{{ label }} <span *ngIf=\"required\">*</span></mat-label>\n <input matInput (input)=\"onInput($event)\" [id]=\"id!\" (keyup)=\"onChangeInputSearch()\" [placeholder]=\"placeholder!\" [value]=\"value\" [disabled]=\"disabled\" [type]=\"currentType\" [name]=\"fieldName!\">\n <div class=\"options\" *ngIf=\"type === 'search' || type === 'password'\">\n <div class=\"options-container\">\n <ui-button *ngIf=\"showClose\" type=\"secondary\" [justIcon]=\"true\" class=\"close\" iconName=\"Close\" label=\"Clear\" (buttonClickEvent)=\"clearValue()\"></ui-button>\n <ui-icon *ngIf=\"showSearch\" size=\"24\" class=\"search\" name=\"Search\"></ui-icon>\n <ui-button *ngIf=\"type === 'password'\" type=\"secondary\" [justIcon]=\"true\" class=\"password\" [iconName]=\"showPassword ? 'Eye-hide' : 'Eye-view'\" label=\"View password\" (buttonClickEvent)=\"showPasswordClick()\"></ui-button>\n </div>\n </div>\n <mat-hint class=\"info\" *ngIf=\"hintMessage && !_errors\">{{ hintMessage }}</mat-hint>\n <mat-hint class=\"error\" *ngIf=\"errorsLength\">\n <div class=\"errors\" *ngFor=\"let error of _errors\">\n <ui-icon name=\"Error\"></ui-icon>{{ error }}\n </div>\n </mat-hint>\n</mat-form-field>\n\n", styles: [".ui-field input[type=search]::-webkit-search-decoration,.ui-field input[type=search]::-webkit-search-cancel-button,.ui-field input[type=search]::-webkit-search-results-button,.ui-field input[type=search]::-webkit-search-results-decoration{display:none}.ui-field .mat-mdc-form-field{margin-top:0;width:100%}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper{height:48px}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:22px}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-notched-outline{color:#888}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-notched-outline .mdc-floating-label--float-above{transform:translateY(-30px) scale(.75)}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-infix{min-height:48px;padding:4px 0;line-height:22px;display:inline-flex;align-items:center}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-subscript-wrapper{padding:0 0 12px;margin-top:4px;font-size:12px;line-height:16px;position:relative}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-subscript-wrapper .mat-form-field-hint-spacer{display:none}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.info{color:#888;width:100%;text-align:right}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-bottom-align:before{height:0}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint-wrapper{padding:0}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error,.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error svg{color:#cb7b7a}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error{display:flex}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error ui-icon{margin-right:9px}.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__leading,.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__trailing,.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__notch{border-color:#cb7b7a}.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__leading,.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__trailing,.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__notch{border-color:#cb7b7a}.ui-field .mat-mdc-form-field.mat-warn.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-form-field-label mat-label{color:#cb7b7a}.ui-field .mat-mdc-form-field .mat-mdc-form-field-hint.error{display:flex;flex-flow:column;row-gap:4px}.ui-field .mat-mdc-form-field .mat-mdc-form-field-hint.error .errors{display:flex}.ui-field .mat-mdc-form-field.mat-accent.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline{color:#276678}.ui-field .mat-mdc-form-field.mat-accent.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-mdc-form-field-flex:hover .options .options-container ui-button.search svg,.ui-field .mat-mdc-form-field.mat-accent.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-mdc-form-field-flex:hover .options .options-container ui-button.password svg{color:#276678}.ui-field .mat-mdc-form-field.mat-accent.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-form-field-label mat-label{color:#276678}.ui-field .mat-mdc-form-field.mat-accent.mat-focused .options .options-container ui-button svg,.ui-field .mat-mdc-form-field.mat-accent.mat-focused .options .options-container ui-icon svg{color:#276678}.ui-field .mat-mdc-form-field.mat-accent.mat-focused .options .options-container ui-button.close svg{color:#888}.ui-field .mat-mdc-form-field .options{position:inline-flex}.ui-field .mat-mdc-form-field .options .options-container{display:flex;column-gap:8px;padding-left:8px}.ui-field .mat-mdc-form-field .options .options-container ui-button,.ui-field .mat-mdc-form-field .options .options-container ui-icon{display:flex}.ui-field .mat-mdc-form-field .options .options-container ui-button svg,.ui-field .mat-mdc-form-field .options .options-container ui-icon svg{color:#888}.ui-field .mat-mdc-form-field .options ui-button button.secondary.only-icon{padding:0;height:auto;background:transparent}.ui-field .mat-mdc-form-field .options ui-button button.secondary.only-icon:hover,.ui-field .mat-mdc-form-field .options ui-button button.secondary.only-icon:focus{background:transparent;color:inherit;border:none;outline:none}.ui-field .mat-mdc-form-field.mat-form-field-disabled.mat-form-field-appearance-outline .mdc-notched-outline{color:#e0e0e0}.ui-field .mat-mdc-form-field.mat-form-field-disabled .options .options-container ui-button svg,.ui-field .mat-mdc-form-field.mat-form-field-disabled .options .options-container ui-icon svg{color:#e0e0e0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "type", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FieldComponent, decorators: [{
|
|
1091
|
+
type: Component,
|
|
1092
|
+
args: [{ selector: 'ui-field', encapsulation: ViewEncapsulation.None, providers: [
|
|
1093
|
+
{
|
|
1094
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1095
|
+
useExisting: forwardRef(() => FieldComponent),
|
|
1096
|
+
multi: true,
|
|
1097
|
+
},
|
|
1098
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field #uiField appearance=\"outline\" [color]=\"errorsLength ? 'warn' : 'accent'\">\n <mat-label *ngIf=\"label\">{{ label }} <span *ngIf=\"required\">*</span></mat-label>\n <input matInput (input)=\"onInput($event)\" [id]=\"id!\" (keyup)=\"onChangeInputSearch()\" [placeholder]=\"placeholder!\" [value]=\"value\" [disabled]=\"disabled\" [type]=\"currentType\" [name]=\"fieldName!\">\n <div class=\"options\" *ngIf=\"type === 'search' || type === 'password'\">\n <div class=\"options-container\">\n <ui-button *ngIf=\"showClose\" type=\"secondary\" [justIcon]=\"true\" class=\"close\" iconName=\"Close\" label=\"Clear\" (buttonClickEvent)=\"clearValue()\"></ui-button>\n <ui-icon *ngIf=\"showSearch\" size=\"24\" class=\"search\" name=\"Search\"></ui-icon>\n <ui-button *ngIf=\"type === 'password'\" type=\"secondary\" [justIcon]=\"true\" class=\"password\" [iconName]=\"showPassword ? 'Eye-hide' : 'Eye-view'\" label=\"View password\" (buttonClickEvent)=\"showPasswordClick()\"></ui-button>\n </div>\n </div>\n <mat-hint class=\"info\" *ngIf=\"hintMessage && !_errors\">{{ hintMessage }}</mat-hint>\n <mat-hint class=\"error\" *ngIf=\"errorsLength\">\n <div class=\"errors\" *ngFor=\"let error of _errors\">\n <ui-icon name=\"Error\"></ui-icon>{{ error }}\n </div>\n </mat-hint>\n</mat-form-field>\n\n", styles: [".ui-field input[type=search]::-webkit-search-decoration,.ui-field input[type=search]::-webkit-search-cancel-button,.ui-field input[type=search]::-webkit-search-results-button,.ui-field input[type=search]::-webkit-search-results-decoration{display:none}.ui-field .mat-mdc-form-field{margin-top:0;width:100%}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper{height:48px}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:22px}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-notched-outline{color:#888}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-notched-outline .mdc-floating-label--float-above{transform:translateY(-30px) scale(.75)}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-infix{min-height:48px;padding:4px 0;line-height:22px;display:inline-flex;align-items:center}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-subscript-wrapper{padding:0 0 12px;margin-top:4px;font-size:12px;line-height:16px;position:relative}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-subscript-wrapper .mat-form-field-hint-spacer{display:none}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.info{color:#888;width:100%;text-align:right}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-bottom-align:before{height:0}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint-wrapper{padding:0}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error,.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error svg{color:#cb7b7a}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error{display:flex}.ui-field .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error ui-icon{margin-right:9px}.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__leading,.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__trailing,.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__notch{border-color:#cb7b7a}.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__leading,.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__trailing,.ui-field .mat-mdc-form-field.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__notch{border-color:#cb7b7a}.ui-field .mat-mdc-form-field.mat-warn.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-form-field-label mat-label{color:#cb7b7a}.ui-field .mat-mdc-form-field .mat-mdc-form-field-hint.error{display:flex;flex-flow:column;row-gap:4px}.ui-field .mat-mdc-form-field .mat-mdc-form-field-hint.error .errors{display:flex}.ui-field .mat-mdc-form-field.mat-accent.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline{color:#276678}.ui-field .mat-mdc-form-field.mat-accent.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-mdc-form-field-flex:hover .options .options-container ui-button.search svg,.ui-field .mat-mdc-form-field.mat-accent.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-mdc-form-field-flex:hover .options .options-container ui-button.password svg{color:#276678}.ui-field .mat-mdc-form-field.mat-accent.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-form-field-label mat-label{color:#276678}.ui-field .mat-mdc-form-field.mat-accent.mat-focused .options .options-container ui-button svg,.ui-field .mat-mdc-form-field.mat-accent.mat-focused .options .options-container ui-icon svg{color:#276678}.ui-field .mat-mdc-form-field.mat-accent.mat-focused .options .options-container ui-button.close svg{color:#888}.ui-field .mat-mdc-form-field .options{position:inline-flex}.ui-field .mat-mdc-form-field .options .options-container{display:flex;column-gap:8px;padding-left:8px}.ui-field .mat-mdc-form-field .options .options-container ui-button,.ui-field .mat-mdc-form-field .options .options-container ui-icon{display:flex}.ui-field .mat-mdc-form-field .options .options-container ui-button svg,.ui-field .mat-mdc-form-field .options .options-container ui-icon svg{color:#888}.ui-field .mat-mdc-form-field .options ui-button button.secondary.only-icon{padding:0;height:auto;background:transparent}.ui-field .mat-mdc-form-field .options ui-button button.secondary.only-icon:hover,.ui-field .mat-mdc-form-field .options ui-button button.secondary.only-icon:focus{background:transparent;color:inherit;border:none;outline:none}.ui-field .mat-mdc-form-field.mat-form-field-disabled.mat-form-field-appearance-outline .mdc-notched-outline{color:#e0e0e0}.ui-field .mat-mdc-form-field.mat-form-field-disabled .options .options-container ui-button svg,.ui-field .mat-mdc-form-field.mat-form-field-disabled .options .options-container ui-icon svg{color:#e0e0e0}\n"] }]
|
|
1099
|
+
}], ctorParameters: function () { return []; }, propDecorators: { class: [{
|
|
1100
|
+
type: HostBinding
|
|
1101
|
+
}], label: [{
|
|
1102
|
+
type: Input
|
|
1103
|
+
}], fieldName: [{
|
|
424
1104
|
type: Input
|
|
425
1105
|
}], placeholder: [{
|
|
426
1106
|
type: Input
|
|
1107
|
+
}], id: [{
|
|
1108
|
+
type: Input
|
|
1109
|
+
}], value: [{
|
|
1110
|
+
type: Input
|
|
1111
|
+
}], errors: [{
|
|
1112
|
+
type: Input
|
|
1113
|
+
}], disabled: [{
|
|
1114
|
+
type: Input
|
|
1115
|
+
}], required: [{
|
|
1116
|
+
type: Input
|
|
1117
|
+
}], hintMessage: [{
|
|
1118
|
+
type: Input
|
|
427
1119
|
}], type: [{
|
|
428
1120
|
type: Input
|
|
429
1121
|
}] } });
|
|
430
1122
|
|
|
431
1123
|
class CreateAccountComponent {
|
|
1124
|
+
/**
|
|
1125
|
+
* @ignore
|
|
1126
|
+
*/
|
|
1127
|
+
ngOnInit() {
|
|
1128
|
+
if (this.email) {
|
|
1129
|
+
this.registerForm.get('username')?.setValue(this.email);
|
|
1130
|
+
}
|
|
1131
|
+
if (!this.emailEditable) {
|
|
1132
|
+
this.registerForm.get('username')?.disable();
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
432
1135
|
constructor(fb) {
|
|
433
1136
|
this.fb = fb;
|
|
434
1137
|
// TODO: Some properties and methods are ignored on purpose because of a current issue with compodoc and angular 13
|
|
435
1138
|
// https://github.com/storybookjs/storybook/issues/16865
|
|
436
1139
|
// https://github.com/storybookjs/storybook/issues/17004
|
|
1140
|
+
/**
|
|
1141
|
+
* @ignore
|
|
1142
|
+
*/
|
|
1143
|
+
this.email = '';
|
|
1144
|
+
/**
|
|
1145
|
+
* @ignore
|
|
1146
|
+
*/
|
|
1147
|
+
this.emailEditable = true;
|
|
437
1148
|
/**
|
|
438
1149
|
* @ignore
|
|
439
1150
|
*/
|
|
@@ -474,11 +1185,20 @@ class CreateAccountComponent {
|
|
|
474
1185
|
* @ignore
|
|
475
1186
|
*/
|
|
476
1187
|
this.loginEvent = new EventEmitter();
|
|
1188
|
+
/**
|
|
1189
|
+
* @ignore
|
|
1190
|
+
*/
|
|
1191
|
+
this.errorMessages = {
|
|
1192
|
+
email: 'Enter a valid email',
|
|
1193
|
+
required: 'This field is required',
|
|
1194
|
+
};
|
|
1195
|
+
/**
|
|
1196
|
+
* @ignore
|
|
1197
|
+
*/
|
|
1198
|
+
this.passwordErrorMessages = {
|
|
1199
|
+
pattern: 'Password is invalid',
|
|
1200
|
+
};
|
|
477
1201
|
}
|
|
478
|
-
/**
|
|
479
|
-
* @ignore
|
|
480
|
-
*/
|
|
481
|
-
ngOnInit() { }
|
|
482
1202
|
submit() {
|
|
483
1203
|
this.submitEvent.emit({
|
|
484
1204
|
username: this.registerForm.get('username')?.value,
|
|
@@ -489,29 +1209,33 @@ class CreateAccountComponent {
|
|
|
489
1209
|
this.loginEvent.emit();
|
|
490
1210
|
}
|
|
491
1211
|
checkErrors(field) {
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
if (this.registerForm.controls[field].hasError('email')) {
|
|
498
|
-
this.formErrors[field][0] = 'Enter a valid email';
|
|
499
|
-
return;
|
|
1212
|
+
const errorsMap = this.registerForm.controls[field].errors || {};
|
|
1213
|
+
const errors = [];
|
|
1214
|
+
for (const key in errorsMap) {
|
|
1215
|
+
if (errorsMap[key] && this.errorMessages[key]) {
|
|
1216
|
+
errors.push(this.errorMessages[key]);
|
|
500
1217
|
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
1218
|
+
}
|
|
1219
|
+
if (field === 'password') {
|
|
1220
|
+
for (const key in errorsMap) {
|
|
1221
|
+
if (errorsMap[key] && this.passwordErrorMessages[key]) {
|
|
1222
|
+
errors.push(this.passwordErrorMessages[key]);
|
|
1223
|
+
}
|
|
504
1224
|
}
|
|
505
1225
|
}
|
|
506
|
-
this.formErrors[field]
|
|
1226
|
+
this.formErrors[field] = errors;
|
|
507
1227
|
}
|
|
508
1228
|
}
|
|
509
|
-
CreateAccountComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
510
|
-
CreateAccountComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1229
|
+
CreateAccountComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CreateAccountComponent, deps: [{ token: i1$3.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
1230
|
+
CreateAccountComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CreateAccountComponent, selector: "ui-create-account", inputs: { email: "email", emailEditable: "emailEditable", termsOfusePath: "termsOfusePath", formErrors: "formErrors", loading: "loading", i18n: "i18n" }, outputs: { submitEvent: "submitEvent", loginEvent: "loginEvent" }, ngImport: i0, template: "<div class=\"form-box\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <div class=\"subtitle\">{{ i18n.subtitle }}</div>\n <form [formGroup]=\"registerForm\">\n <div class=\"field\">\n <ui-field\n formControlName=\"username\"\n [label]=\"i18n.email_label\"\n [type]=\"'email'\"\n [required]=\"true\"\n [errors]=\"formErrors['username']\"\n (ngModelChange)=\"checkErrors('username')\"\n ></ui-field>\n </div>\n <div class=\"field\">\n <ui-field\n formControlName=\"password\"\n [label]=\"i18n.password_label\"\n [type]=\"'password'\"\n [required]=\"true\"\n [errors]=\"formErrors['password']\"\n (ngModelChange)=\"checkErrors('password')\"\n ></ui-field>\n <div class=\"password-strength-container\">\n <mat-password-strength\n [min]=\"12\"\n #passwordComponentWithValidation\n [password]=\"registerForm.controls['password'].value\"\n aria-hidden=\"true\"\n >\n </mat-password-strength>\n </div>\n <mat-password-strength-info [passwordComponent]=\"passwordComponentWithValidation\"> </mat-password-strength-info>\n </div>\n <div class=\"terms-conditions-container\">\n <ui-checkbox formControlName=\"agree_terms_and_conditions\" [label]=\"i18n.terms_conditions\"></ui-checkbox>\n <a class=\"link\" [href]=\"termsOfusePath\" target=\"_blank\">{{ i18n.terms_conditions_link_label }}</a>.\n </div>\n <div class=\"submit-button\">\n <ui-button\n [label]=\"i18n.button_label\"\n [disabled]=\"registerForm.invalid\"\n [fullWidth]=\"true\"\n [loading]=\"loading\"\n (buttonClickEvent)=\"submit()\"\n ></ui-button>\n </div>\n <div>\n {{ i18n.have_career_passport }} <span class=\"link\" (click)=\"login()\">{{ i18n.login }}</span>\n </div>\n </form>\n</div>\n", styles: [".form-box{width:672px;padding:64px;background:#ffffff;box-shadow:0 8px 16px #0000001a;border-radius:8px;margin:auto;color:#000}.form-box ui-logo{width:160px;display:inline-flex}.form-box .title{font-weight:700;font-size:22px;line-height:29.7px;margin-top:40px}.form-box .subtitle{font-weight:400;font-size:16px;line-height:21.6px;margin:24px 0}.form-box .field{width:100%}.form-box .password-strength-container{margin:2.7px 0 1px}.form-box .terms-conditions-container{display:flex;align-items:center;gap:4px;margin-left:-8px}.form-box .submit-button{margin:24px 0}.form-box .mat-mdc-checkbox{font-weight:400}.form-box .mat-mdc-checkbox ::ng-deep .mdc-checkbox{padding-left:4px}.form-box .mat-mdc-checkbox ::ng-deep .mdc-checkbox .mdc-checkbox__background{left:4px}.form-box .link{font-weight:600;cursor:pointer;color:#46a997;text-decoration:none}.form-box .link:hover{text-decoration:underline}.form-box ::ng-deep .mat-mdc-card-content{padding:0!important}.row{display:flex;flex-direction:row}.row.space-between{justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FieldComponent, selector: "ui-field", inputs: ["label", "fieldName", "placeholder", "id", "value", "errors", "disabled", "required", "hintMessage", "type"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "type", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "component", type: CheckboxComponent, selector: "ui-checkbox", inputs: ["disabled", "checked", "indeterminate", "color", "name", "label", "multiple"], outputs: ["changed"] }, { kind: "component", type: i5.MatPasswordStrengthComponent, selector: "mat-password-strength", inputs: ["password", "externalError", "enableLengthRule", "enableLowerCaseLetterRule", "enableUpperCaseLetterRule", "enableDigitRule", "enableSpecialCharRule", "min", "max", "customValidator", "warnThreshold", "accentThreshold"], outputs: ["onStrengthChanged"], exportAs: ["matPasswordStrength"] }, { kind: "component", type: i5.MatPasswordStrengthInfoComponent, selector: "mat-password-strength-info", inputs: ["passwordComponent", "enableScoreInfo", "lowerCaseCriteriaMsg", "upperCaseCriteriaMsg", "digitsCriteriaMsg", "specialCharsCriteriaMsg", "customCharsCriteriaMsg", "minCharsCriteriaMsg", "matIconDone", "matIconError"], exportAs: ["matPasswordStrengthInfo"] }, { kind: "component", type: LogoComponent, selector: "ui-logo", inputs: ["type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CreateAccountComponent, decorators: [{
|
|
512
1232
|
type: Component,
|
|
513
|
-
args: [{ selector: 'ui-create-account', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-box\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <div class=\"subtitle\">{{ i18n.subtitle }}</div>\n <form [formGroup]=\"registerForm\">\n <div class=\"field\">\n <ui-field\n formControlName=\"username\"\n [label]=\"i18n.email_label\"\n [type]=\"'email'\"\n [required]=\"true\"\n [
|
|
514
|
-
}], ctorParameters: function () { return [{ type: i1$3.
|
|
1233
|
+
args: [{ selector: 'ui-create-account', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-box\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <div class=\"subtitle\">{{ i18n.subtitle }}</div>\n <form [formGroup]=\"registerForm\">\n <div class=\"field\">\n <ui-field\n formControlName=\"username\"\n [label]=\"i18n.email_label\"\n [type]=\"'email'\"\n [required]=\"true\"\n [errors]=\"formErrors['username']\"\n (ngModelChange)=\"checkErrors('username')\"\n ></ui-field>\n </div>\n <div class=\"field\">\n <ui-field\n formControlName=\"password\"\n [label]=\"i18n.password_label\"\n [type]=\"'password'\"\n [required]=\"true\"\n [errors]=\"formErrors['password']\"\n (ngModelChange)=\"checkErrors('password')\"\n ></ui-field>\n <div class=\"password-strength-container\">\n <mat-password-strength\n [min]=\"12\"\n #passwordComponentWithValidation\n [password]=\"registerForm.controls['password'].value\"\n aria-hidden=\"true\"\n >\n </mat-password-strength>\n </div>\n <mat-password-strength-info [passwordComponent]=\"passwordComponentWithValidation\"> </mat-password-strength-info>\n </div>\n <div class=\"terms-conditions-container\">\n <ui-checkbox formControlName=\"agree_terms_and_conditions\" [label]=\"i18n.terms_conditions\"></ui-checkbox>\n <a class=\"link\" [href]=\"termsOfusePath\" target=\"_blank\">{{ i18n.terms_conditions_link_label }}</a>.\n </div>\n <div class=\"submit-button\">\n <ui-button\n [label]=\"i18n.button_label\"\n [disabled]=\"registerForm.invalid\"\n [fullWidth]=\"true\"\n [loading]=\"loading\"\n (buttonClickEvent)=\"submit()\"\n ></ui-button>\n </div>\n <div>\n {{ i18n.have_career_passport }} <span class=\"link\" (click)=\"login()\">{{ i18n.login }}</span>\n </div>\n </form>\n</div>\n", styles: [".form-box{width:672px;padding:64px;background:#ffffff;box-shadow:0 8px 16px #0000001a;border-radius:8px;margin:auto;color:#000}.form-box ui-logo{width:160px;display:inline-flex}.form-box .title{font-weight:700;font-size:22px;line-height:29.7px;margin-top:40px}.form-box .subtitle{font-weight:400;font-size:16px;line-height:21.6px;margin:24px 0}.form-box .field{width:100%}.form-box .password-strength-container{margin:2.7px 0 1px}.form-box .terms-conditions-container{display:flex;align-items:center;gap:4px;margin-left:-8px}.form-box .submit-button{margin:24px 0}.form-box .mat-mdc-checkbox{font-weight:400}.form-box .mat-mdc-checkbox ::ng-deep .mdc-checkbox{padding-left:4px}.form-box .mat-mdc-checkbox ::ng-deep .mdc-checkbox .mdc-checkbox__background{left:4px}.form-box .link{font-weight:600;cursor:pointer;color:#46a997;text-decoration:none}.form-box .link:hover{text-decoration:underline}.form-box ::ng-deep .mat-mdc-card-content{padding:0!important}.row{display:flex;flex-direction:row}.row.space-between{justify-content:space-between}\n"] }]
|
|
1234
|
+
}], ctorParameters: function () { return [{ type: i1$3.UntypedFormBuilder }]; }, propDecorators: { email: [{
|
|
1235
|
+
type: Input
|
|
1236
|
+
}], emailEditable: [{
|
|
1237
|
+
type: Input
|
|
1238
|
+
}], termsOfusePath: [{
|
|
515
1239
|
type: Input
|
|
516
1240
|
}], formErrors: [{
|
|
517
1241
|
type: Input
|
|
@@ -527,14 +1251,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
527
1251
|
|
|
528
1252
|
class FieldComponentModule {
|
|
529
1253
|
}
|
|
530
|
-
FieldComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
531
|
-
FieldComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
532
|
-
|
|
533
|
-
|
|
1254
|
+
FieldComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FieldComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1255
|
+
FieldComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FieldComponentModule, declarations: [FieldComponent], imports: [CommonModule,
|
|
1256
|
+
MatFormFieldModule,
|
|
1257
|
+
MatInputModule,
|
|
1258
|
+
IconComponentModule,
|
|
1259
|
+
FormsModule,
|
|
1260
|
+
ReactiveFormsModule,
|
|
1261
|
+
ButtonComponentModule], exports: [FieldComponent] });
|
|
1262
|
+
FieldComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FieldComponentModule, imports: [CommonModule,
|
|
1263
|
+
MatFormFieldModule,
|
|
1264
|
+
MatInputModule,
|
|
1265
|
+
IconComponentModule,
|
|
1266
|
+
FormsModule,
|
|
1267
|
+
ReactiveFormsModule,
|
|
1268
|
+
ButtonComponentModule] });
|
|
1269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FieldComponentModule, decorators: [{
|
|
534
1270
|
type: NgModule,
|
|
535
1271
|
args: [{
|
|
536
1272
|
declarations: [FieldComponent],
|
|
537
|
-
imports: [
|
|
1273
|
+
imports: [
|
|
1274
|
+
CommonModule,
|
|
1275
|
+
MatFormFieldModule,
|
|
1276
|
+
MatInputModule,
|
|
1277
|
+
IconComponentModule,
|
|
1278
|
+
FormsModule,
|
|
1279
|
+
ReactiveFormsModule,
|
|
1280
|
+
ButtonComponentModule,
|
|
1281
|
+
],
|
|
538
1282
|
exports: [FieldComponent],
|
|
539
1283
|
providers: [],
|
|
540
1284
|
}]
|
|
@@ -542,26 +1286,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
542
1286
|
|
|
543
1287
|
class CreateAccountComponentModule {
|
|
544
1288
|
}
|
|
545
|
-
CreateAccountComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
546
|
-
CreateAccountComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
1289
|
+
CreateAccountComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CreateAccountComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1290
|
+
CreateAccountComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CreateAccountComponentModule, declarations: [CreateAccountComponent], imports: [CommonModule,
|
|
547
1291
|
FormsModule,
|
|
548
1292
|
ReactiveFormsModule,
|
|
549
1293
|
FieldComponentModule,
|
|
550
1294
|
ButtonComponentModule,
|
|
551
|
-
|
|
1295
|
+
CheckboxComponentModule,
|
|
552
1296
|
MatPasswordStrengthModule,
|
|
553
1297
|
LogoComponentModule], exports: [CreateAccountComponent] });
|
|
554
|
-
CreateAccountComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
]] });
|
|
564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CreateAccountComponentModule, decorators: [{
|
|
1298
|
+
CreateAccountComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CreateAccountComponentModule, imports: [CommonModule,
|
|
1299
|
+
FormsModule,
|
|
1300
|
+
ReactiveFormsModule,
|
|
1301
|
+
FieldComponentModule,
|
|
1302
|
+
ButtonComponentModule,
|
|
1303
|
+
CheckboxComponentModule,
|
|
1304
|
+
MatPasswordStrengthModule,
|
|
1305
|
+
LogoComponentModule] });
|
|
1306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CreateAccountComponentModule, decorators: [{
|
|
565
1307
|
type: NgModule,
|
|
566
1308
|
args: [{
|
|
567
1309
|
declarations: [CreateAccountComponent],
|
|
@@ -571,7 +1313,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
571
1313
|
ReactiveFormsModule,
|
|
572
1314
|
FieldComponentModule,
|
|
573
1315
|
ButtonComponentModule,
|
|
574
|
-
|
|
1316
|
+
CheckboxComponentModule,
|
|
575
1317
|
MatPasswordStrengthModule,
|
|
576
1318
|
LogoComponentModule,
|
|
577
1319
|
],
|
|
@@ -587,6 +1329,10 @@ const CREATE_PASSWORD_i18n = {
|
|
|
587
1329
|
};
|
|
588
1330
|
|
|
589
1331
|
class CreatePasswordComponent {
|
|
1332
|
+
/**
|
|
1333
|
+
* @ignore
|
|
1334
|
+
*/
|
|
1335
|
+
ngOnInit() { }
|
|
590
1336
|
constructor(fb) {
|
|
591
1337
|
this.fb = fb;
|
|
592
1338
|
// TODO: Some properties and methods are ignored on purpose because of a current issue with compodoc and angular 13
|
|
@@ -622,10 +1368,6 @@ class CreatePasswordComponent {
|
|
|
622
1368
|
*/
|
|
623
1369
|
this.submitEvent = new EventEmitter();
|
|
624
1370
|
}
|
|
625
|
-
/**
|
|
626
|
-
* @ignore
|
|
627
|
-
*/
|
|
628
|
-
ngOnInit() { }
|
|
629
1371
|
submit() {
|
|
630
1372
|
this.submitEvent.emit({
|
|
631
1373
|
password: this.createPasswordForm.get('password')?.value,
|
|
@@ -634,23 +1376,23 @@ class CreatePasswordComponent {
|
|
|
634
1376
|
checkErrors(field) {
|
|
635
1377
|
if (this.createPasswordForm.controls[field].touched) {
|
|
636
1378
|
if (this.createPasswordForm.controls[field].hasError('required')) {
|
|
637
|
-
this.formErrors[field]
|
|
1379
|
+
this.formErrors[field] = ['This field is required'];
|
|
638
1380
|
return;
|
|
639
1381
|
}
|
|
640
1382
|
if (field === 'password' && this.createPasswordForm.controls[field].hasError('pattern')) {
|
|
641
|
-
this.formErrors.password
|
|
1383
|
+
this.formErrors.password = ['Password is invalid'];
|
|
642
1384
|
return;
|
|
643
1385
|
}
|
|
644
1386
|
}
|
|
645
|
-
this.formErrors[field]
|
|
1387
|
+
this.formErrors[field] = [''];
|
|
646
1388
|
}
|
|
647
1389
|
}
|
|
648
|
-
CreatePasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
649
|
-
CreatePasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1390
|
+
CreatePasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CreatePasswordComponent, deps: [{ token: i1$3.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
1391
|
+
CreatePasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CreatePasswordComponent, selector: "ui-create-password", inputs: { formErrors: "formErrors", loading: "loading", i18n: "i18n" }, outputs: { submitEvent: "submitEvent" }, ngImport: i0, template: "<div class=\"form-box\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <form [formGroup]=\"createPasswordForm\">\n <div class=\"field\">\n <ui-field\n formControlName=\"password\"\n [label]=\"i18n.password_label\"\n [type]=\"'password'\"\n [required]=\"true\"\n [errors]=\"formErrors.password\"\n (ngModelChange)=\"checkErrors('password')\"\n ></ui-field>\n <mat-password-strength\n [min]=\"12\"\n #passwordComponentWithValidation\n [password]=\"createPasswordForm.controls['password'].value\"\n aria-hidden=\"true\"\n >\n </mat-password-strength>\n <mat-password-strength-info [passwordComponent]=\"passwordComponentWithValidation\"> </mat-password-strength-info>\n </div>\n <div></div>\n <div class=\"submit-button\">\n <ui-button\n [label]=\"i18n.button\"\n [disabled]=\"createPasswordForm.invalid\"\n [fullWidth]=\"true\"\n [loading]=\"loading\"\n (buttonClickEvent)=\"submit()\"\n ></ui-button>\n </div>\n </form>\n</div>\n", styles: [".form-box{width:672px;padding:64px;background:#ffffff;box-shadow:0 8px 16px #0000001a;border-radius:8px;margin:auto;color:#000}.form-box ui-logo{width:160px;display:inline-flex}.form-box .title{font-weight:700;font-size:22px;line-height:29.7px;margin:40px 0 24px}.form-box .field{width:100%}.form-box .submit-button{margin-top:25px}.form-box ::ng-deep .mat-mdc-card-content{padding:0!important}\n"], dependencies: [{ kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FieldComponent, selector: "ui-field", inputs: ["label", "fieldName", "placeholder", "id", "value", "errors", "disabled", "required", "hintMessage", "type"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "type", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "component", type: i5.MatPasswordStrengthComponent, selector: "mat-password-strength", inputs: ["password", "externalError", "enableLengthRule", "enableLowerCaseLetterRule", "enableUpperCaseLetterRule", "enableDigitRule", "enableSpecialCharRule", "min", "max", "customValidator", "warnThreshold", "accentThreshold"], outputs: ["onStrengthChanged"], exportAs: ["matPasswordStrength"] }, { kind: "component", type: i5.MatPasswordStrengthInfoComponent, selector: "mat-password-strength-info", inputs: ["passwordComponent", "enableScoreInfo", "lowerCaseCriteriaMsg", "upperCaseCriteriaMsg", "digitsCriteriaMsg", "specialCharsCriteriaMsg", "customCharsCriteriaMsg", "minCharsCriteriaMsg", "matIconDone", "matIconError"], exportAs: ["matPasswordStrengthInfo"] }, { kind: "component", type: LogoComponent, selector: "ui-logo", inputs: ["type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CreatePasswordComponent, decorators: [{
|
|
651
1393
|
type: Component,
|
|
652
|
-
args: [{ selector: 'ui-create-password', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-box\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <form [formGroup]=\"createPasswordForm\">\n <div class=\"field\">\n <ui-field\n formControlName=\"password\"\n [label]=\"i18n.password_label\"\n [type]=\"'password'\"\n [required]=\"true\"\n [
|
|
653
|
-
}], ctorParameters: function () { return [{ type: i1$3.
|
|
1394
|
+
args: [{ selector: 'ui-create-password', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-box\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <form [formGroup]=\"createPasswordForm\">\n <div class=\"field\">\n <ui-field\n formControlName=\"password\"\n [label]=\"i18n.password_label\"\n [type]=\"'password'\"\n [required]=\"true\"\n [errors]=\"formErrors.password\"\n (ngModelChange)=\"checkErrors('password')\"\n ></ui-field>\n <mat-password-strength\n [min]=\"12\"\n #passwordComponentWithValidation\n [password]=\"createPasswordForm.controls['password'].value\"\n aria-hidden=\"true\"\n >\n </mat-password-strength>\n <mat-password-strength-info [passwordComponent]=\"passwordComponentWithValidation\"> </mat-password-strength-info>\n </div>\n <div></div>\n <div class=\"submit-button\">\n <ui-button\n [label]=\"i18n.button\"\n [disabled]=\"createPasswordForm.invalid\"\n [fullWidth]=\"true\"\n [loading]=\"loading\"\n (buttonClickEvent)=\"submit()\"\n ></ui-button>\n </div>\n </form>\n</div>\n", styles: [".form-box{width:672px;padding:64px;background:#ffffff;box-shadow:0 8px 16px #0000001a;border-radius:8px;margin:auto;color:#000}.form-box ui-logo{width:160px;display:inline-flex}.form-box .title{font-weight:700;font-size:22px;line-height:29.7px;margin:40px 0 24px}.form-box .field{width:100%}.form-box .submit-button{margin-top:25px}.form-box ::ng-deep .mat-mdc-card-content{padding:0!important}\n"] }]
|
|
1395
|
+
}], ctorParameters: function () { return [{ type: i1$3.UntypedFormBuilder }]; }, propDecorators: { formErrors: [{
|
|
654
1396
|
type: Input
|
|
655
1397
|
}], loading: [{
|
|
656
1398
|
type: Input
|
|
@@ -662,24 +1404,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
662
1404
|
|
|
663
1405
|
class CreatePasswordComponentModule {
|
|
664
1406
|
}
|
|
665
|
-
CreatePasswordComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
666
|
-
CreatePasswordComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
1407
|
+
CreatePasswordComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CreatePasswordComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1408
|
+
CreatePasswordComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CreatePasswordComponentModule, declarations: [CreatePasswordComponent], imports: [CommonModule,
|
|
667
1409
|
FormsModule,
|
|
668
1410
|
ReactiveFormsModule,
|
|
669
1411
|
FieldComponentModule,
|
|
670
1412
|
ButtonComponentModule,
|
|
671
1413
|
MatPasswordStrengthModule,
|
|
672
1414
|
LogoComponentModule], exports: [CreatePasswordComponent] });
|
|
673
|
-
CreatePasswordComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
]] });
|
|
682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CreatePasswordComponentModule, decorators: [{
|
|
1415
|
+
CreatePasswordComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CreatePasswordComponentModule, imports: [CommonModule,
|
|
1416
|
+
FormsModule,
|
|
1417
|
+
ReactiveFormsModule,
|
|
1418
|
+
FieldComponentModule,
|
|
1419
|
+
ButtonComponentModule,
|
|
1420
|
+
MatPasswordStrengthModule,
|
|
1421
|
+
LogoComponentModule] });
|
|
1422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CreatePasswordComponentModule, decorators: [{
|
|
683
1423
|
type: NgModule,
|
|
684
1424
|
args: [{
|
|
685
1425
|
declarations: [CreatePasswordComponent],
|
|
@@ -698,94 +1438,499 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
698
1438
|
}] });
|
|
699
1439
|
|
|
700
1440
|
class DialogComponent {
|
|
701
|
-
|
|
702
|
-
// https://github.com/storybookjs/storybook/issues/16865
|
|
703
|
-
// https://github.com/storybookjs/storybook/issues/17004
|
|
704
|
-
constructor(data, dialogRef) {
|
|
705
|
-
this.data = data;
|
|
1441
|
+
constructor(dialogRef) {
|
|
706
1442
|
this.dialogRef = dialogRef;
|
|
1443
|
+
/**
|
|
1444
|
+
* Dialog title
|
|
1445
|
+
*
|
|
1446
|
+
* @memberof DialogComponent
|
|
1447
|
+
*/
|
|
1448
|
+
this.title = '';
|
|
1449
|
+
/**
|
|
1450
|
+
* Show close button
|
|
1451
|
+
*
|
|
1452
|
+
* @memberof DialogComponent
|
|
1453
|
+
*/
|
|
1454
|
+
this.showCloseButton = true;
|
|
1455
|
+
/**
|
|
1456
|
+
* Fuction called before dialgo is closed
|
|
1457
|
+
*
|
|
1458
|
+
* @memberof DialogComponent
|
|
1459
|
+
*/
|
|
1460
|
+
this.canCloseFn = () => true;
|
|
1461
|
+
/**
|
|
1462
|
+
* Secondary button label
|
|
1463
|
+
*
|
|
1464
|
+
* @memberof DialogComponent
|
|
1465
|
+
*/
|
|
1466
|
+
this.secondaryButtonLabel = '';
|
|
1467
|
+
/**
|
|
1468
|
+
* Primary button label
|
|
1469
|
+
*
|
|
1470
|
+
* @memberof DialogComponent
|
|
1471
|
+
*/
|
|
1472
|
+
this.primaryButtonLabel = '';
|
|
1473
|
+
this.closeEvent = new EventEmitter();
|
|
1474
|
+
this.secondaryButtonClickEvent = new EventEmitter();
|
|
1475
|
+
this.primaryButtonClickEvent = new EventEmitter();
|
|
1476
|
+
this.disableButtons = false;
|
|
1477
|
+
}
|
|
1478
|
+
ngOnInit() {
|
|
1479
|
+
this.areButtonsDisabled();
|
|
1480
|
+
}
|
|
1481
|
+
ngOnChanges(changes) {
|
|
1482
|
+
if (changes['canCloseFn']) {
|
|
1483
|
+
this.dialogRef.disableClose = !this.canCloseFn();
|
|
1484
|
+
this.areButtonsDisabled();
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
//Disable primary button when canClose is false
|
|
1488
|
+
areButtonsDisabled() {
|
|
1489
|
+
if (this.canCloseFn() === false) {
|
|
1490
|
+
this.disableButtons = true;
|
|
1491
|
+
}
|
|
1492
|
+
else {
|
|
1493
|
+
this.disableButtons = false;
|
|
1494
|
+
}
|
|
707
1495
|
}
|
|
1496
|
+
//Close modal
|
|
708
1497
|
dismiss() {
|
|
709
|
-
this.
|
|
1498
|
+
if (this.canCloseFn()) {
|
|
1499
|
+
this.dialogRef.disableClose = false;
|
|
1500
|
+
this.dialogRef.close();
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
onClose(event) {
|
|
1504
|
+
this.closeEvent.emit(event);
|
|
1505
|
+
}
|
|
1506
|
+
onSecondaryButtonClick(event) {
|
|
1507
|
+
this.secondaryButtonClickEvent.emit(event);
|
|
1508
|
+
}
|
|
1509
|
+
onPrimaryButtonClick(event) {
|
|
1510
|
+
this.primaryButtonClickEvent.emit(event);
|
|
710
1511
|
}
|
|
711
1512
|
}
|
|
712
|
-
DialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
713
|
-
DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1513
|
+
DialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogComponent, deps: [{ token: i1$4.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1514
|
+
DialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DialogComponent, selector: "ui-dialog", inputs: { title: "title", showCloseButton: "showCloseButton", canCloseFn: "canCloseFn", secondaryButtonLabel: "secondaryButtonLabel", primaryButtonLabel: "primaryButtonLabel" }, outputs: { closeEvent: "closeEvent", secondaryButtonClickEvent: "secondaryButtonClickEvent", primaryButtonClickEvent: "primaryButtonClickEvent" }, usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <div mat-dialog-title class=\"title\">\n {{ title }}\n <div *ngIf=\"showCloseButton\">\n <ui-button type=\"text\" [justIcon]=\"true\" [disabled]=\"disableButtons\" class=\"close\" iconName=\"Close\" label=\"Close dialog\" (click)=\"onClose($event)\" (buttonClickEvent)=\"dismiss()\"></ui-button>\n </div>\n </div>\n <mat-dialog-content>\n <ng-content></ng-content>\n </mat-dialog-content>\n <div mat-dialog-actions *ngIf=\"secondaryButtonLabel !== '' || primaryButtonLabel !== ''\">\n <ui-button type=\"secondary\" *ngIf=\"!!secondaryButtonLabel\" [label]=\"secondaryButtonLabel\" (click)=\"onSecondaryButtonClick($event)\"></ui-button>\n <ui-button type=\"primary\" *ngIf=\"!!primaryButtonLabel\" [disabled]=\"disableButtons\" (click)=\"onPrimaryButtonClick($event)\" [label]=\"primaryButtonLabel\" (buttonClickEvent)=\"dismiss()\"></ui-button>\n </div>\n</ng-container>\n", styles: [".ui-dialog-wrapper{display:flex;flex-flow:column}.ui-dialog-wrapper .mat-mdc-dialog-container .mdc-dialog__container .mat-mdc-dialog-surface{border-radius:8px;padding:32px}.ui-dialog-wrapper .mat-mdc-dialog-content{font-size:14px;color:#000}.title{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin:0;font-size:20px;font-weight:500}.title .close{margin-right:-24px}.title:before{content:none}.mat-mdc-dialog-actions{display:flex;justify-content:flex-end;column-gap:16px;padding:16px 0 0;margin-bottom:0;min-height:48px}@media (max-width: 1024px){.ui-dialog-wrapper .mat-mdc-dialog-container .mdc-dialog__container .mat-mdc-dialog-surface{min-width:320px;max-width:600px;border-radius:0}.mat-mdc-dialog-content{max-height:524px}}@media (max-width: 600px){.cdk-overlay-pane.ui-dialog-wrapper{max-width:100%!important;min-height:100%;display:flex;flex-flow:column}.cdk-overlay-pane.ui-dialog-wrapper .mat-mdc-dialog-container .mdc-dialog__container .mat-mdc-dialog-surface{min-width:100%;max-width:100%;height:100%;display:flex;flex-grow:1;border-radius:0}ui-dialog{height:100%;display:flex;flex-flow:column}.mat-mdc-dialog-content{max-height:unset;display:flex;flex-grow:1;flex-direction:column}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "type", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogComponent, decorators: [{
|
|
715
1516
|
type: Component,
|
|
716
|
-
args: [{ selector: 'ui-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container>\n <div mat-dialog-title class=\"title\">\n
|
|
717
|
-
}], ctorParameters: function () { return [{ type:
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
1517
|
+
args: [{ selector: 'ui-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container>\n <div mat-dialog-title class=\"title\">\n {{ title }}\n <div *ngIf=\"showCloseButton\">\n <ui-button type=\"text\" [justIcon]=\"true\" [disabled]=\"disableButtons\" class=\"close\" iconName=\"Close\" label=\"Close dialog\" (click)=\"onClose($event)\" (buttonClickEvent)=\"dismiss()\"></ui-button>\n </div>\n </div>\n <mat-dialog-content>\n <ng-content></ng-content>\n </mat-dialog-content>\n <div mat-dialog-actions *ngIf=\"secondaryButtonLabel !== '' || primaryButtonLabel !== ''\">\n <ui-button type=\"secondary\" *ngIf=\"!!secondaryButtonLabel\" [label]=\"secondaryButtonLabel\" (click)=\"onSecondaryButtonClick($event)\"></ui-button>\n <ui-button type=\"primary\" *ngIf=\"!!primaryButtonLabel\" [disabled]=\"disableButtons\" (click)=\"onPrimaryButtonClick($event)\" [label]=\"primaryButtonLabel\" (buttonClickEvent)=\"dismiss()\"></ui-button>\n </div>\n</ng-container>\n", styles: [".ui-dialog-wrapper{display:flex;flex-flow:column}.ui-dialog-wrapper .mat-mdc-dialog-container .mdc-dialog__container .mat-mdc-dialog-surface{border-radius:8px;padding:32px}.ui-dialog-wrapper .mat-mdc-dialog-content{font-size:14px;color:#000}.title{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin:0;font-size:20px;font-weight:500}.title .close{margin-right:-24px}.title:before{content:none}.mat-mdc-dialog-actions{display:flex;justify-content:flex-end;column-gap:16px;padding:16px 0 0;margin-bottom:0;min-height:48px}@media (max-width: 1024px){.ui-dialog-wrapper .mat-mdc-dialog-container .mdc-dialog__container .mat-mdc-dialog-surface{min-width:320px;max-width:600px;border-radius:0}.mat-mdc-dialog-content{max-height:524px}}@media (max-width: 600px){.cdk-overlay-pane.ui-dialog-wrapper{max-width:100%!important;min-height:100%;display:flex;flex-flow:column}.cdk-overlay-pane.ui-dialog-wrapper .mat-mdc-dialog-container .mdc-dialog__container .mat-mdc-dialog-surface{min-width:100%;max-width:100%;height:100%;display:flex;flex-grow:1;border-radius:0}ui-dialog{height:100%;display:flex;flex-flow:column}.mat-mdc-dialog-content{max-height:unset;display:flex;flex-grow:1;flex-direction:column}}\n"] }]
|
|
1518
|
+
}], ctorParameters: function () { return [{ type: i1$4.MatDialogRef }]; }, propDecorators: { title: [{
|
|
1519
|
+
type: Input
|
|
1520
|
+
}], showCloseButton: [{
|
|
1521
|
+
type: Input
|
|
1522
|
+
}], canCloseFn: [{
|
|
1523
|
+
type: Input
|
|
1524
|
+
}], secondaryButtonLabel: [{
|
|
1525
|
+
type: Input
|
|
1526
|
+
}], primaryButtonLabel: [{
|
|
1527
|
+
type: Input
|
|
1528
|
+
}], closeEvent: [{
|
|
1529
|
+
type: Output
|
|
1530
|
+
}], secondaryButtonClickEvent: [{
|
|
1531
|
+
type: Output
|
|
1532
|
+
}], primaryButtonClickEvent: [{
|
|
1533
|
+
type: Output
|
|
1534
|
+
}] } });
|
|
725
1535
|
|
|
726
1536
|
class DialogService {
|
|
727
|
-
/**
|
|
728
|
-
* Constructor
|
|
729
|
-
*/
|
|
730
1537
|
constructor(matDialog) {
|
|
731
1538
|
this.matDialog = matDialog;
|
|
732
1539
|
}
|
|
733
|
-
open(dialogComponent
|
|
1540
|
+
open(dialogComponent) {
|
|
734
1541
|
// Open the dialog using UI custom styles
|
|
735
1542
|
return this.matDialog.open(dialogComponent, {
|
|
736
|
-
panelClass: 'ui-dialog',
|
|
737
|
-
...config,
|
|
1543
|
+
panelClass: 'ui-dialog-wrapper',
|
|
738
1544
|
});
|
|
739
1545
|
}
|
|
740
1546
|
}
|
|
741
|
-
DialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
742
|
-
DialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1547
|
+
DialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogService, deps: [{ token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1548
|
+
DialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogService });
|
|
1549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogService, decorators: [{
|
|
744
1550
|
type: Injectable
|
|
745
1551
|
}], ctorParameters: function () { return [{ type: i1$4.MatDialog }]; } });
|
|
746
1552
|
|
|
747
|
-
class LaunchDialogComponent {
|
|
748
|
-
// TODO: Some properties and methods are ignored on purpose because of a current issue with compodoc and angular 13
|
|
749
|
-
// https://github.com/storybookjs/storybook/issues/16865
|
|
750
|
-
// https://github.com/storybookjs/storybook/issues/17004
|
|
751
|
-
constructor(dialogService) {
|
|
752
|
-
this.dialogService = dialogService;
|
|
753
|
-
this.openModal();
|
|
754
|
-
}
|
|
755
|
-
openModal() {
|
|
756
|
-
this.dialogService.open(DialogComponent);
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
LaunchDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LaunchDialogComponent, deps: [{ token: DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
760
|
-
LaunchDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: LaunchDialogComponent, selector: "ui-launch-dialog", ngImport: i0, template: "<ui-button [label]=\"'Launch modal'\" (onClickEvent)=\"openModal()\"></ui-button>", components: [{ type: ButtonComponent, selector: "ui-button", inputs: ["color", "label", "iconPosition", "iconName", "disabled", "loading", "fullWidth"], outputs: ["onClickEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LaunchDialogComponent, decorators: [{
|
|
762
|
-
type: Component,
|
|
763
|
-
args: [{ selector: 'ui-launch-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ui-button [label]=\"'Launch modal'\" (onClickEvent)=\"openModal()\"></ui-button>" }]
|
|
764
|
-
}], ctorParameters: function () { return [{ type: DialogService }]; } });
|
|
765
|
-
|
|
766
1553
|
class DialogComponentModule {
|
|
767
1554
|
}
|
|
768
|
-
DialogComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
769
|
-
DialogComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
770
|
-
DialogComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1555
|
+
DialogComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1556
|
+
DialogComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DialogComponentModule, declarations: [DialogComponent], imports: [CommonModule, MatDialogModule, ButtonComponentModule], exports: [DialogComponent] });
|
|
1557
|
+
DialogComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogComponentModule, providers: [{ provide: MAT_DIALOG_DATA, useValue: {} }, { provide: MatDialogRef, useValue: {} }, DialogService], imports: [CommonModule, MatDialogModule, ButtonComponentModule] });
|
|
1558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogComponentModule, decorators: [{
|
|
772
1559
|
type: NgModule,
|
|
773
1560
|
args: [{
|
|
774
|
-
declarations: [DialogComponent
|
|
775
|
-
imports: [CommonModule,
|
|
776
|
-
exports: [
|
|
777
|
-
providers: [DialogService],
|
|
1561
|
+
declarations: [DialogComponent],
|
|
1562
|
+
imports: [CommonModule, MatDialogModule, ButtonComponentModule],
|
|
1563
|
+
exports: [DialogComponent],
|
|
1564
|
+
providers: [{ provide: MAT_DIALOG_DATA, useValue: {} }, { provide: MatDialogRef, useValue: {} }, DialogService],
|
|
778
1565
|
}]
|
|
779
1566
|
}] });
|
|
780
1567
|
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
1568
|
+
var ElevationType;
|
|
1569
|
+
(function (ElevationType) {
|
|
1570
|
+
ElevationType["DEFAULT"] = "default";
|
|
1571
|
+
ElevationType["MODAL"] = "modal";
|
|
1572
|
+
})(ElevationType || (ElevationType = {}));
|
|
1573
|
+
|
|
1574
|
+
class ElevationShadowComponent {
|
|
1575
|
+
constructor() {
|
|
1576
|
+
/**
|
|
1577
|
+
* The type of elevation shadow.
|
|
1578
|
+
* Default: default.
|
|
1579
|
+
*
|
|
1580
|
+
* @type {ElevationType}
|
|
1581
|
+
* @memberof ElevationShadowComponent
|
|
1582
|
+
*/
|
|
1583
|
+
this.elevationType = ElevationType.DEFAULT;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
ElevationShadowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ElevationShadowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1587
|
+
ElevationShadowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ElevationShadowComponent, selector: "ui-elevation-shadow", inputs: { elevationType: "elevationType" }, ngImport: i0, template: "<div [ngClass]=\"elevationType\">\n <ng-content></ng-content>\n</div>", styles: [".modal{border:2px solid #E0E0E0;box-shadow:2px 24px 48px 8px #00000014;border-radius:8px}.default{border:2px solid #E0E0E0;box-shadow:0 8px 24px 4px #00000014;border-radius:8px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ElevationShadowComponent, decorators: [{
|
|
1589
|
+
type: Component,
|
|
1590
|
+
args: [{ selector: 'ui-elevation-shadow', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"elevationType\">\n <ng-content></ng-content>\n</div>", styles: [".modal{border:2px solid #E0E0E0;box-shadow:2px 24px 48px 8px #00000014;border-radius:8px}.default{border:2px solid #E0E0E0;box-shadow:0 8px 24px 4px #00000014;border-radius:8px}\n"] }]
|
|
1591
|
+
}], propDecorators: { elevationType: [{
|
|
1592
|
+
type: Input
|
|
1593
|
+
}] } });
|
|
1594
|
+
|
|
1595
|
+
class ElevationShadowComponentModule {
|
|
1596
|
+
}
|
|
1597
|
+
ElevationShadowComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ElevationShadowComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1598
|
+
ElevationShadowComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ElevationShadowComponentModule, declarations: [ElevationShadowComponent], imports: [CommonModule], exports: [ElevationShadowComponent] });
|
|
1599
|
+
ElevationShadowComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ElevationShadowComponentModule, imports: [CommonModule] });
|
|
1600
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ElevationShadowComponentModule, decorators: [{
|
|
1601
|
+
type: NgModule,
|
|
1602
|
+
args: [{
|
|
1603
|
+
declarations: [ElevationShadowComponent],
|
|
1604
|
+
imports: [CommonModule],
|
|
1605
|
+
exports: [ElevationShadowComponent],
|
|
1606
|
+
}]
|
|
1607
|
+
}] });
|
|
1608
|
+
|
|
1609
|
+
class ProgressBarComponent {
|
|
1610
|
+
constructor() {
|
|
1611
|
+
/**
|
|
1612
|
+
* Color of the progress bar.
|
|
1613
|
+
* Defaults to Test Gorilla primary color.
|
|
1614
|
+
*
|
|
1615
|
+
* @type {string}
|
|
1616
|
+
* @memberof ProgressBarComponent
|
|
1617
|
+
*/
|
|
1618
|
+
this.color = '#46A997';
|
|
1619
|
+
/**
|
|
1620
|
+
* Progress value of the progress bar.
|
|
1621
|
+
* Defaults to zero.
|
|
1622
|
+
*
|
|
1623
|
+
* @type {number}
|
|
1624
|
+
* @memberof ProgressBarComponent
|
|
1625
|
+
*/
|
|
1626
|
+
this.progress = 0;
|
|
1627
|
+
/**
|
|
1628
|
+
* Mode of the progress bar.
|
|
1629
|
+
* Mode must be one of these values: determinate, indeterminate, buffer, query.
|
|
1630
|
+
* Defaults to 'determinate'.
|
|
1631
|
+
*
|
|
1632
|
+
* @type {ProgressBarMode}
|
|
1633
|
+
* @memberof ProgressBarComponent
|
|
1634
|
+
*/
|
|
1635
|
+
this.mode = 'determinate';
|
|
1636
|
+
/**
|
|
1637
|
+
* Buffer value of the progress bar.
|
|
1638
|
+
* Defaults to zero.
|
|
1639
|
+
*
|
|
1640
|
+
* @type {number}
|
|
1641
|
+
* @memberof ProgressBarComponent
|
|
1642
|
+
*/
|
|
1643
|
+
this.buffer = 0;
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
ProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1647
|
+
ProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ProgressBarComponent, selector: "ui-progress-bar", inputs: { color: "color", progress: "progress", mode: "mode", buffer: "buffer" }, host: { properties: { "style.--color": "this.color" } }, ngImport: i0, template: "<mat-progress-bar\n [mode]=\"mode\"\n [value]=\"progress\"\n [bufferValue]=\"buffer\"\n aria-label=\"Progress bar\"\n title=\"progress-bar\"\n class=\"progress-bar\"\n></mat-progress-bar>\n", styles: [".mat-mdc-progress-bar.progress-bar{height:8px;border-radius:8px}.mat-mdc-progress-bar.progress-bar ::ng-deep .mdc-linear-progress__buffer-bar{background-color:#e0e0e0}.mat-mdc-progress-bar.progress-bar ::ng-deep .mdc-linear-progress__bar-inner{border-top-width:8px}\n"], dependencies: [{ kind: "component", type: i1$5.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1648
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
1649
|
+
type: Component,
|
|
1650
|
+
args: [{ selector: 'ui-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-progress-bar\n [mode]=\"mode\"\n [value]=\"progress\"\n [bufferValue]=\"buffer\"\n aria-label=\"Progress bar\"\n title=\"progress-bar\"\n class=\"progress-bar\"\n></mat-progress-bar>\n", styles: [".mat-mdc-progress-bar.progress-bar{height:8px;border-radius:8px}.mat-mdc-progress-bar.progress-bar ::ng-deep .mdc-linear-progress__buffer-bar{background-color:#e0e0e0}.mat-mdc-progress-bar.progress-bar ::ng-deep .mdc-linear-progress__bar-inner{border-top-width:8px}\n"] }]
|
|
1651
|
+
}], ctorParameters: function () { return []; }, propDecorators: { color: [{
|
|
1652
|
+
type: HostBinding,
|
|
1653
|
+
args: ['style.--color']
|
|
1654
|
+
}, {
|
|
1655
|
+
type: Input
|
|
1656
|
+
}], progress: [{
|
|
1657
|
+
type: Input
|
|
1658
|
+
}], mode: [{
|
|
1659
|
+
type: Input
|
|
1660
|
+
}], buffer: [{
|
|
1661
|
+
type: Input
|
|
1662
|
+
}] } });
|
|
1663
|
+
|
|
1664
|
+
class DragDropDirective {
|
|
1665
|
+
constructor() {
|
|
1666
|
+
this.fileDropped = new EventEmitter();
|
|
1667
|
+
}
|
|
1668
|
+
// Dragover listener
|
|
1669
|
+
onDragOver(event) {
|
|
1670
|
+
event.preventDefault();
|
|
1671
|
+
event.stopPropagation();
|
|
1672
|
+
this.file = true;
|
|
1673
|
+
}
|
|
1674
|
+
// Dragleave listener
|
|
1675
|
+
onDragLeave(event) {
|
|
1676
|
+
event.preventDefault();
|
|
1677
|
+
event.stopPropagation();
|
|
1678
|
+
this.file = false;
|
|
1679
|
+
}
|
|
1680
|
+
// Drop listener
|
|
1681
|
+
ondrop(event) {
|
|
1682
|
+
event.preventDefault();
|
|
1683
|
+
event.stopPropagation();
|
|
1684
|
+
this.file = false;
|
|
1685
|
+
let files;
|
|
1686
|
+
if (!!event.dataTransfer) {
|
|
1687
|
+
files = event.dataTransfer.files;
|
|
1688
|
+
if (files.length > 0) {
|
|
1689
|
+
this.fileDropped.emit(files);
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
DragDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DragDropDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1695
|
+
DragDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: DragDropDirective, selector: "[uiDragDrop]", outputs: { fileDropped: "fileDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "class.file-over": "this.file" } }, ngImport: i0 });
|
|
1696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DragDropDirective, decorators: [{
|
|
1697
|
+
type: Directive,
|
|
1698
|
+
args: [{
|
|
1699
|
+
selector: '[uiDragDrop]'
|
|
1700
|
+
}]
|
|
1701
|
+
}], ctorParameters: function () { return []; }, propDecorators: { file: [{
|
|
1702
|
+
type: HostBinding,
|
|
1703
|
+
args: ['class.file-over']
|
|
1704
|
+
}], fileDropped: [{
|
|
1705
|
+
type: Output
|
|
1706
|
+
}], onDragOver: [{
|
|
1707
|
+
type: HostListener,
|
|
1708
|
+
args: ['dragover', ['$event']]
|
|
1709
|
+
}], onDragLeave: [{
|
|
1710
|
+
type: HostListener,
|
|
1711
|
+
args: ['dragleave', ['$event']]
|
|
1712
|
+
}], ondrop: [{
|
|
1713
|
+
type: HostListener,
|
|
1714
|
+
args: ['drop', ['$event']]
|
|
1715
|
+
}] } });
|
|
1716
|
+
|
|
1717
|
+
class FileUploadComponent {
|
|
1718
|
+
constructor() {
|
|
1719
|
+
this.class = 'ui-file-upload';
|
|
1720
|
+
this.OnDrop = new EventEmitter();
|
|
1721
|
+
/**
|
|
1722
|
+
* @ignore
|
|
1723
|
+
*/
|
|
1724
|
+
this.onChange = (_) => { };
|
|
1725
|
+
/**
|
|
1726
|
+
* @ignore
|
|
1727
|
+
*/
|
|
1728
|
+
this.onTouch = () => { };
|
|
1729
|
+
this.file = null;
|
|
1730
|
+
this.progress = false;
|
|
1731
|
+
this.success = false;
|
|
1732
|
+
}
|
|
1733
|
+
ngOnInit() {
|
|
1734
|
+
this.browse = true;
|
|
1735
|
+
}
|
|
1736
|
+
//When file is dropped
|
|
1737
|
+
onFileDropped(files) {
|
|
1738
|
+
this.emitFile(files);
|
|
1739
|
+
}
|
|
1740
|
+
//When input changes
|
|
1741
|
+
onChangeUpload(event) {
|
|
1742
|
+
const element = event.currentTarget;
|
|
1743
|
+
this.emitFile(element.files || new FileList());
|
|
1744
|
+
}
|
|
1745
|
+
//Emit drop file
|
|
1746
|
+
emitFile(files) {
|
|
1747
|
+
const [file] = Array.from(files);
|
|
1748
|
+
this.file = file;
|
|
1749
|
+
this.errors = null;
|
|
1750
|
+
this.onTouch();
|
|
1751
|
+
this.onChange(this.file);
|
|
1752
|
+
this.OnDrop.emit(file);
|
|
1753
|
+
}
|
|
1754
|
+
//Show progress-bar
|
|
1755
|
+
showProgress() {
|
|
1756
|
+
this.browse = false;
|
|
1757
|
+
return this.file && !this.errors ? true : false;
|
|
1758
|
+
}
|
|
1759
|
+
//Show success elements
|
|
1760
|
+
showSuccess() {
|
|
1761
|
+
return this.file && this.uploadProgress === 100 && !this.errors ? true : false;
|
|
1762
|
+
}
|
|
1763
|
+
//Show browse when there are error
|
|
1764
|
+
showBrowse() {
|
|
1765
|
+
return this.errors ? true : false;
|
|
1766
|
+
}
|
|
1767
|
+
ngOnChanges(changes) {
|
|
1768
|
+
if (changes['uploadProgress']) {
|
|
1769
|
+
this.progress = this.showProgress();
|
|
1770
|
+
this.success = this.showSuccess();
|
|
1771
|
+
this.browse = this.showBrowse();
|
|
1772
|
+
}
|
|
1773
|
+
if (changes['errors']) {
|
|
1774
|
+
this.progress = this.showProgress();
|
|
1775
|
+
this.success = this.showSuccess();
|
|
1776
|
+
this.browse = this.showBrowse();
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
writeValue(value) {
|
|
1780
|
+
if (value) {
|
|
1781
|
+
this.file = value || null;
|
|
1782
|
+
}
|
|
1783
|
+
else {
|
|
1784
|
+
this.file = null;
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
registerOnChange(fn) {
|
|
1788
|
+
this.onChange = fn;
|
|
1789
|
+
}
|
|
1790
|
+
registerOnTouched(fn) {
|
|
1791
|
+
this.onTouch = fn;
|
|
1792
|
+
}
|
|
1793
|
+
setDisabledState(isDisabled) {
|
|
1794
|
+
this.disabled = isDisabled;
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
FileUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1798
|
+
FileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FileUploadComponent, selector: "ui-file-upload", inputs: { maxFileSizeMB: "maxFileSizeMB", supportedFileTypes: "supportedFileTypes", uploadProgress: "uploadProgress", errors: "errors", disabled: "disabled" }, outputs: { OnDrop: "OnDrop" }, host: { properties: { "class": "this.class" } }, providers: [
|
|
1799
|
+
{
|
|
1800
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1801
|
+
useExisting: forwardRef(() => FileUploadComponent),
|
|
1802
|
+
multi: true,
|
|
1803
|
+
},
|
|
1804
|
+
], usesOnChanges: true, ngImport: i0, template: "<div class=\"upload-file-container\" uiDragDrop [ngClass]=\"{'upload-errors': !!errors}\" (fileDropped)=\"onFileDropped($event)\">\n <div *ngIf=\"browse\" [@inOutAnimation] class=\"upload-files\">\n <div class=\"upload-browse\">\n <ui-icon class=\"upload-icon\" name=\"File-upload\"></ui-icon>\n <div class=\"errors\" *ngIf=\"!!errors\">\n <span *ngFor=\"let error of errors\">\n <ui-icon name=\"Error\"></ui-icon> {{ error }}\n </span>\n </div>\n <input class=\"form-control\" #fileDrop type=\"file\" id=\"fileDrop\" (change)=\"onChangeUpload($event)\">\n <p>Drag and drop or <label for=\"fileDrop\" class=\"semibold\">browse</label> your files</p>\n <span class=\"upload-text\">{{ maxFileSizeMB }}MB max file size.</span>\n </div>\n </div>\n <div class=\"upload-change\" [@inOutAnimationChange] *ngIf=\"!!success && !!file && !!progress\">\n <ui-icon class=\"upload-icon\" name=\"File-upload\"></ui-icon>\n <input class=\"form-control\" #fileDrop type=\"file\" id=\"fileDrop\" (change)=\"onChangeUpload($event)\" [disabled]=\"disabled\">\n <p>Drag and drop or <label for=\"fileDrop\" class=\"semibold\">change</label> your files</p>\n <span class=\"upload-text\"><strong>{{ file.name }}</strong></span>\n </div>\n <div class=\"upload-progress\" [@inOutAnimationProgress] *ngIf=\"!!progress && !!file && !success\">\n <p>{{ file.name }}</p>\n <ui-progress-bar\n [progress]=\"uploadProgress\"\n ></ui-progress-bar>\n <p class=\"upload-text\">Uploading <span>{{uploadProgress}}</span>%</p>\n </div>\n</div>\n<div class=\"upload-supported-files\" *ngIf=\"!!supportedFileTypes\">\n <span>Supported file types:</span>{{ supportedFileTypes }}\n</div>", styles: [".upload-file-container{border-radius:8px;border:1px dashed #888888;background:#F6F6F6;display:flex;justify-content:center;align-items:center;height:196px;flex-flow:column;position:relative;max-width:563px}.upload-file-container.upload-errors{border:1px dashed #cb7b7a}.upload-file-container .upload-files{display:flex;flex-flow:column;align-items:center;justify-content:center;width:100%;height:196px}.upload-file-container .upload-change,.upload-file-container .upload-browse{display:flex;flex-flow:column;align-items:center;justify-content:center;width:100%;position:relative;height:196px}.upload-file-container .upload-change ui-icon.upload-icon,.upload-file-container .upload-browse ui-icon.upload-icon{margin-bottom:16px}.upload-file-container .upload-change ui-icon.upload-icon mat-icon.size-16 svg,.upload-file-container .upload-browse ui-icon.upload-icon mat-icon.size-16 svg{width:32px;height:32px}.upload-file-container .upload-change input,.upload-file-container .upload-browse input{opacity:0;position:absolute;z-index:2;width:100%;height:100%;cursor:pointer}.upload-file-container .upload-change .upload-text,.upload-file-container .upload-browse .upload-text{margin-top:20px}.upload-file-container .upload-change p,.upload-file-container .upload-browse p{margin:0}.upload-file-container .upload-change p .semibold,.upload-file-container .upload-browse p .semibold{font-weight:400;text-decoration:underline}.upload-file-container .upload-change .errors,.upload-file-container .upload-browse .errors{width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;margin-bottom:20px;font-size:12px;line-height:16px;color:#cb7b7a}.upload-file-container .upload-change .errors span,.upload-file-container .upload-browse .errors span{display:flex;align-items:center;margin-bottom:5px}.upload-file-container .upload-change .errors span:last-child,.upload-file-container .upload-browse .errors span:last-child{margin-bottom:0}.upload-file-container .upload-change .errors ui-icon,.upload-file-container .upload-browse .errors ui-icon{margin-right:4px}.upload-file-container .upload-change .errors ui-icon mat-icon.size-16 svg,.upload-file-container .upload-browse .errors ui-icon mat-icon.size-16 svg{width:16px;height:16px;color:#cb7b7a}.upload-file-container .upload-progress{padding:0 32px;width:100%}.upload-file-container .upload-text{text-align:right}.upload-supported-files{font-size:12px;line-height:16px;margin-top:8px;display:flex}.upload-supported-files span{font-weight:700;margin-right:5px}@media (max-width: 600px){.upload-file-container{max-width:100%}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color"] }, { kind: "component", type: ProgressBarComponent, selector: "ui-progress-bar", inputs: ["color", "progress", "mode", "buffer"] }, { kind: "directive", type: DragDropDirective, selector: "[uiDragDrop]", outputs: ["fileDropped"] }], animations: [
|
|
1805
|
+
trigger('inOutAnimation', [
|
|
1806
|
+
transition(':enter', [
|
|
1807
|
+
style({ opacity: 0, height: 0 }),
|
|
1808
|
+
animate('0.2s ease-out', style({ opacity: 1, height: '196px' })),
|
|
1809
|
+
]),
|
|
1810
|
+
transition(':leave', [
|
|
1811
|
+
style({ opacity: 1, height: '196px' }),
|
|
1812
|
+
animate('0.2s ease-in', style({ opacity: 0, height: 0 })),
|
|
1813
|
+
]),
|
|
1814
|
+
]),
|
|
1815
|
+
trigger('inOutAnimationProgress', [
|
|
1816
|
+
transition(':enter', [
|
|
1817
|
+
style({ opacity: 0, height: 0 }),
|
|
1818
|
+
animate('0.2s ease-out', style({ opacity: 1, height: '196px' })),
|
|
1819
|
+
]),
|
|
1820
|
+
transition(':leave', [
|
|
1821
|
+
style({ opacity: 1, height: '196px' }),
|
|
1822
|
+
animate('0.2s ease-in', style({ opacity: 0, height: 0 })),
|
|
1823
|
+
]),
|
|
1824
|
+
]),
|
|
1825
|
+
trigger('inOutAnimationChange', [
|
|
1826
|
+
transition(':enter', [
|
|
1827
|
+
style({ opacity: 0, height: 0 }),
|
|
1828
|
+
animate('0.2s ease-out', style({ opacity: 1, height: '196px' })),
|
|
1829
|
+
]),
|
|
1830
|
+
transition(':leave', [
|
|
1831
|
+
style({ opacity: 1, height: '196px' }),
|
|
1832
|
+
animate('0.2s ease-in', style({ opacity: 0, height: 0 })),
|
|
1833
|
+
]),
|
|
1834
|
+
]),
|
|
1835
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileUploadComponent, decorators: [{
|
|
1837
|
+
type: Component,
|
|
1838
|
+
args: [{ selector: 'ui-file-upload', encapsulation: ViewEncapsulation.None, providers: [
|
|
1839
|
+
{
|
|
1840
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1841
|
+
useExisting: forwardRef(() => FileUploadComponent),
|
|
1842
|
+
multi: true,
|
|
1843
|
+
},
|
|
1844
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
1845
|
+
trigger('inOutAnimation', [
|
|
1846
|
+
transition(':enter', [
|
|
1847
|
+
style({ opacity: 0, height: 0 }),
|
|
1848
|
+
animate('0.2s ease-out', style({ opacity: 1, height: '196px' })),
|
|
1849
|
+
]),
|
|
1850
|
+
transition(':leave', [
|
|
1851
|
+
style({ opacity: 1, height: '196px' }),
|
|
1852
|
+
animate('0.2s ease-in', style({ opacity: 0, height: 0 })),
|
|
1853
|
+
]),
|
|
1854
|
+
]),
|
|
1855
|
+
trigger('inOutAnimationProgress', [
|
|
1856
|
+
transition(':enter', [
|
|
1857
|
+
style({ opacity: 0, height: 0 }),
|
|
1858
|
+
animate('0.2s ease-out', style({ opacity: 1, height: '196px' })),
|
|
1859
|
+
]),
|
|
1860
|
+
transition(':leave', [
|
|
1861
|
+
style({ opacity: 1, height: '196px' }),
|
|
1862
|
+
animate('0.2s ease-in', style({ opacity: 0, height: 0 })),
|
|
1863
|
+
]),
|
|
1864
|
+
]),
|
|
1865
|
+
trigger('inOutAnimationChange', [
|
|
1866
|
+
transition(':enter', [
|
|
1867
|
+
style({ opacity: 0, height: 0 }),
|
|
1868
|
+
animate('0.2s ease-out', style({ opacity: 1, height: '196px' })),
|
|
1869
|
+
]),
|
|
1870
|
+
transition(':leave', [
|
|
1871
|
+
style({ opacity: 1, height: '196px' }),
|
|
1872
|
+
animate('0.2s ease-in', style({ opacity: 0, height: 0 })),
|
|
1873
|
+
]),
|
|
1874
|
+
]),
|
|
1875
|
+
], template: "<div class=\"upload-file-container\" uiDragDrop [ngClass]=\"{'upload-errors': !!errors}\" (fileDropped)=\"onFileDropped($event)\">\n <div *ngIf=\"browse\" [@inOutAnimation] class=\"upload-files\">\n <div class=\"upload-browse\">\n <ui-icon class=\"upload-icon\" name=\"File-upload\"></ui-icon>\n <div class=\"errors\" *ngIf=\"!!errors\">\n <span *ngFor=\"let error of errors\">\n <ui-icon name=\"Error\"></ui-icon> {{ error }}\n </span>\n </div>\n <input class=\"form-control\" #fileDrop type=\"file\" id=\"fileDrop\" (change)=\"onChangeUpload($event)\">\n <p>Drag and drop or <label for=\"fileDrop\" class=\"semibold\">browse</label> your files</p>\n <span class=\"upload-text\">{{ maxFileSizeMB }}MB max file size.</span>\n </div>\n </div>\n <div class=\"upload-change\" [@inOutAnimationChange] *ngIf=\"!!success && !!file && !!progress\">\n <ui-icon class=\"upload-icon\" name=\"File-upload\"></ui-icon>\n <input class=\"form-control\" #fileDrop type=\"file\" id=\"fileDrop\" (change)=\"onChangeUpload($event)\" [disabled]=\"disabled\">\n <p>Drag and drop or <label for=\"fileDrop\" class=\"semibold\">change</label> your files</p>\n <span class=\"upload-text\"><strong>{{ file.name }}</strong></span>\n </div>\n <div class=\"upload-progress\" [@inOutAnimationProgress] *ngIf=\"!!progress && !!file && !success\">\n <p>{{ file.name }}</p>\n <ui-progress-bar\n [progress]=\"uploadProgress\"\n ></ui-progress-bar>\n <p class=\"upload-text\">Uploading <span>{{uploadProgress}}</span>%</p>\n </div>\n</div>\n<div class=\"upload-supported-files\" *ngIf=\"!!supportedFileTypes\">\n <span>Supported file types:</span>{{ supportedFileTypes }}\n</div>", styles: [".upload-file-container{border-radius:8px;border:1px dashed #888888;background:#F6F6F6;display:flex;justify-content:center;align-items:center;height:196px;flex-flow:column;position:relative;max-width:563px}.upload-file-container.upload-errors{border:1px dashed #cb7b7a}.upload-file-container .upload-files{display:flex;flex-flow:column;align-items:center;justify-content:center;width:100%;height:196px}.upload-file-container .upload-change,.upload-file-container .upload-browse{display:flex;flex-flow:column;align-items:center;justify-content:center;width:100%;position:relative;height:196px}.upload-file-container .upload-change ui-icon.upload-icon,.upload-file-container .upload-browse ui-icon.upload-icon{margin-bottom:16px}.upload-file-container .upload-change ui-icon.upload-icon mat-icon.size-16 svg,.upload-file-container .upload-browse ui-icon.upload-icon mat-icon.size-16 svg{width:32px;height:32px}.upload-file-container .upload-change input,.upload-file-container .upload-browse input{opacity:0;position:absolute;z-index:2;width:100%;height:100%;cursor:pointer}.upload-file-container .upload-change .upload-text,.upload-file-container .upload-browse .upload-text{margin-top:20px}.upload-file-container .upload-change p,.upload-file-container .upload-browse p{margin:0}.upload-file-container .upload-change p .semibold,.upload-file-container .upload-browse p .semibold{font-weight:400;text-decoration:underline}.upload-file-container .upload-change .errors,.upload-file-container .upload-browse .errors{width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;margin-bottom:20px;font-size:12px;line-height:16px;color:#cb7b7a}.upload-file-container .upload-change .errors span,.upload-file-container .upload-browse .errors span{display:flex;align-items:center;margin-bottom:5px}.upload-file-container .upload-change .errors span:last-child,.upload-file-container .upload-browse .errors span:last-child{margin-bottom:0}.upload-file-container .upload-change .errors ui-icon,.upload-file-container .upload-browse .errors ui-icon{margin-right:4px}.upload-file-container .upload-change .errors ui-icon mat-icon.size-16 svg,.upload-file-container .upload-browse .errors ui-icon mat-icon.size-16 svg{width:16px;height:16px;color:#cb7b7a}.upload-file-container .upload-progress{padding:0 32px;width:100%}.upload-file-container .upload-text{text-align:right}.upload-supported-files{font-size:12px;line-height:16px;margin-top:8px;display:flex}.upload-supported-files span{font-weight:700;margin-right:5px}@media (max-width: 600px){.upload-file-container{max-width:100%}}\n"] }]
|
|
1876
|
+
}], ctorParameters: function () { return []; }, propDecorators: { class: [{
|
|
1877
|
+
type: HostBinding
|
|
1878
|
+
}], maxFileSizeMB: [{
|
|
1879
|
+
type: Input
|
|
1880
|
+
}], supportedFileTypes: [{
|
|
1881
|
+
type: Input
|
|
1882
|
+
}], uploadProgress: [{
|
|
1883
|
+
type: Input
|
|
1884
|
+
}], errors: [{
|
|
1885
|
+
type: Input
|
|
1886
|
+
}], disabled: [{
|
|
1887
|
+
type: Input
|
|
1888
|
+
}], OnDrop: [{
|
|
1889
|
+
type: Output
|
|
1890
|
+
}] } });
|
|
1891
|
+
|
|
1892
|
+
class ProgressBarComponentModule {
|
|
1893
|
+
}
|
|
1894
|
+
ProgressBarComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProgressBarComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1895
|
+
ProgressBarComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ProgressBarComponentModule, declarations: [ProgressBarComponent], imports: [CommonModule, MatProgressBarModule], exports: [ProgressBarComponent] });
|
|
1896
|
+
ProgressBarComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProgressBarComponentModule, imports: [CommonModule, MatProgressBarModule] });
|
|
1897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProgressBarComponentModule, decorators: [{
|
|
1898
|
+
type: NgModule,
|
|
1899
|
+
args: [{
|
|
1900
|
+
declarations: [ProgressBarComponent],
|
|
1901
|
+
imports: [CommonModule, MatProgressBarModule],
|
|
1902
|
+
exports: [ProgressBarComponent],
|
|
1903
|
+
providers: [],
|
|
1904
|
+
}]
|
|
1905
|
+
}] });
|
|
1906
|
+
|
|
1907
|
+
class FileUploadComponentModule {
|
|
1908
|
+
}
|
|
1909
|
+
FileUploadComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileUploadComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1910
|
+
FileUploadComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FileUploadComponentModule, declarations: [FileUploadComponent, DragDropDirective], imports: [CommonModule, MatFormFieldModule, MatInputModule, IconComponentModule, ProgressBarComponentModule], exports: [FileUploadComponent] });
|
|
1911
|
+
FileUploadComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileUploadComponentModule, imports: [CommonModule, MatFormFieldModule, MatInputModule, IconComponentModule, ProgressBarComponentModule] });
|
|
1912
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileUploadComponentModule, decorators: [{
|
|
1913
|
+
type: NgModule,
|
|
1914
|
+
args: [{
|
|
1915
|
+
declarations: [FileUploadComponent, DragDropDirective],
|
|
1916
|
+
imports: [CommonModule, MatFormFieldModule, MatInputModule, IconComponentModule, ProgressBarComponentModule],
|
|
1917
|
+
exports: [FileUploadComponent],
|
|
1918
|
+
providers: [],
|
|
1919
|
+
}]
|
|
1920
|
+
}] });
|
|
1921
|
+
|
|
1922
|
+
const FORGOT_PASSWORD_i18n = {
|
|
1923
|
+
title: 'Reset your password',
|
|
1924
|
+
email_label: 'Email',
|
|
1925
|
+
button_label: 'Send reset link',
|
|
1926
|
+
back_to_login: 'Back to log in',
|
|
786
1927
|
};
|
|
787
1928
|
|
|
788
1929
|
class ForgotPasswordComponent {
|
|
1930
|
+
/**
|
|
1931
|
+
* @ignore
|
|
1932
|
+
*/
|
|
1933
|
+
ngOnInit() { }
|
|
789
1934
|
constructor(fb) {
|
|
790
1935
|
this.fb = fb;
|
|
791
1936
|
// TODO: Some properties and methods are ignored on purpose because of a current issue with compodoc and angular 13
|
|
@@ -819,10 +1964,6 @@ class ForgotPasswordComponent {
|
|
|
819
1964
|
*/
|
|
820
1965
|
this.backToLoginEvent = new EventEmitter();
|
|
821
1966
|
}
|
|
822
|
-
/**
|
|
823
|
-
* @ignore
|
|
824
|
-
*/
|
|
825
|
-
ngOnInit() { }
|
|
826
1967
|
submit() {
|
|
827
1968
|
this.submitEvent.emit({
|
|
828
1969
|
email: this.forgotPasswordForm.get('email')?.value,
|
|
@@ -834,23 +1975,23 @@ class ForgotPasswordComponent {
|
|
|
834
1975
|
checkErrors(field) {
|
|
835
1976
|
if (this.forgotPasswordForm.controls[field].touched) {
|
|
836
1977
|
if (this.forgotPasswordForm.controls[field].hasError('required')) {
|
|
837
|
-
this.formErrors[field]
|
|
1978
|
+
this.formErrors[field] = ['This field is required'];
|
|
838
1979
|
return;
|
|
839
1980
|
}
|
|
840
1981
|
if (this.forgotPasswordForm.controls[field].hasError('email')) {
|
|
841
|
-
this.formErrors[field]
|
|
1982
|
+
this.formErrors[field] = ['Enter a valid email'];
|
|
842
1983
|
return;
|
|
843
1984
|
}
|
|
844
1985
|
}
|
|
845
|
-
this.formErrors[field]
|
|
1986
|
+
this.formErrors[field] = [''];
|
|
846
1987
|
}
|
|
847
1988
|
}
|
|
848
|
-
ForgotPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
849
|
-
ForgotPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1989
|
+
ForgotPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ForgotPasswordComponent, deps: [{ token: i1$3.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
1990
|
+
ForgotPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ForgotPasswordComponent, selector: "ui-forgot-password", inputs: { formErrors: "formErrors", loading: "loading", i18n: "i18n" }, outputs: { submitEvent: "submitEvent", backToLoginEvent: "backToLoginEvent" }, ngImport: i0, template: "<div class=\"form-box\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <form [formGroup]=\"forgotPasswordForm\">\n <div class=\"field\">\n <ui-field\n formControlName=\"email\"\n [label]=\"i18n.email_label\"\n [type]=\"'email'\"\n [required]=\"true\"\n [errors]=\"formErrors.email\"\n (ngModelChange)=\"checkErrors('email')\"\n ></ui-field>\n </div>\n <div></div>\n <div class=\"submit-button\">\n <ui-button\n [label]=\"i18n.button_label\"\n [disabled]=\"forgotPasswordForm.invalid\"\n [fullWidth]=\"true\"\n [loading]=\"loading\"\n (buttonClickEvent)=\"submit()\"\n ></ui-button>\n </div>\n <div class=\"back-login\" (click)=\"backToLogin()\">\n <mat-icon>arrow_back</mat-icon>\n <span>{{ i18n.back_to_login }}</span>\n </div>\n </form>\n</div>\n", styles: [".form-box{width:672px;padding:64px;background:#ffffff;box-shadow:0 8px 16px #0000001a;border-radius:8px;margin:auto;color:#000}.form-box ui-logo{width:160px;display:inline-flex}.form-box .title{font-weight:700;font-size:22px;line-height:29.7px;margin:40px 0 21px}.form-box .field{width:100%}.form-box .submit-button{margin:3px 0 24px}.form-box .back-login{display:flex;align-content:center;color:#46a997;cursor:pointer}.form-box .back-login mat-icon{margin-right:8px}.form-box .back-login span{padding-top:2px;font-weight:700}\n"], dependencies: [{ kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FieldComponent, selector: "ui-field", inputs: ["label", "fieldName", "placeholder", "id", "value", "errors", "disabled", "required", "hintMessage", "type"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "type", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: LogoComponent, selector: "ui-logo", inputs: ["type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ForgotPasswordComponent, decorators: [{
|
|
851
1992
|
type: Component,
|
|
852
|
-
args: [{ selector: 'ui-forgot-password', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-box\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <form [formGroup]=\"forgotPasswordForm\">\n <div class=\"field\">\n <ui-field\n formControlName=\"email\"\n [label]=\"i18n.email_label\"\n [type]=\"'email'\"\n [required]=\"true\"\n [
|
|
853
|
-
}], ctorParameters: function () { return [{ type: i1$3.
|
|
1993
|
+
args: [{ selector: 'ui-forgot-password', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-box\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <form [formGroup]=\"forgotPasswordForm\">\n <div class=\"field\">\n <ui-field\n formControlName=\"email\"\n [label]=\"i18n.email_label\"\n [type]=\"'email'\"\n [required]=\"true\"\n [errors]=\"formErrors.email\"\n (ngModelChange)=\"checkErrors('email')\"\n ></ui-field>\n </div>\n <div></div>\n <div class=\"submit-button\">\n <ui-button\n [label]=\"i18n.button_label\"\n [disabled]=\"forgotPasswordForm.invalid\"\n [fullWidth]=\"true\"\n [loading]=\"loading\"\n (buttonClickEvent)=\"submit()\"\n ></ui-button>\n </div>\n <div class=\"back-login\" (click)=\"backToLogin()\">\n <mat-icon>arrow_back</mat-icon>\n <span>{{ i18n.back_to_login }}</span>\n </div>\n </form>\n</div>\n", styles: [".form-box{width:672px;padding:64px;background:#ffffff;box-shadow:0 8px 16px #0000001a;border-radius:8px;margin:auto;color:#000}.form-box ui-logo{width:160px;display:inline-flex}.form-box .title{font-weight:700;font-size:22px;line-height:29.7px;margin:40px 0 21px}.form-box .field{width:100%}.form-box .submit-button{margin:3px 0 24px}.form-box .back-login{display:flex;align-content:center;color:#46a997;cursor:pointer}.form-box .back-login mat-icon{margin-right:8px}.form-box .back-login span{padding-top:2px;font-weight:700}\n"] }]
|
|
1994
|
+
}], ctorParameters: function () { return [{ type: i1$3.UntypedFormBuilder }]; }, propDecorators: { formErrors: [{
|
|
854
1995
|
type: Input
|
|
855
1996
|
}], loading: [{
|
|
856
1997
|
type: Input
|
|
@@ -864,24 +2005,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
864
2005
|
|
|
865
2006
|
class ForgotPasswordComponentModule {
|
|
866
2007
|
}
|
|
867
|
-
ForgotPasswordComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
868
|
-
ForgotPasswordComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
2008
|
+
ForgotPasswordComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ForgotPasswordComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2009
|
+
ForgotPasswordComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ForgotPasswordComponentModule, declarations: [ForgotPasswordComponent], imports: [CommonModule,
|
|
869
2010
|
FormsModule,
|
|
870
2011
|
ReactiveFormsModule,
|
|
871
2012
|
FieldComponentModule,
|
|
872
2013
|
ButtonComponentModule,
|
|
873
2014
|
MatIconModule,
|
|
874
2015
|
LogoComponentModule], exports: [ForgotPasswordComponent] });
|
|
875
|
-
ForgotPasswordComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
]] });
|
|
884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ForgotPasswordComponentModule, decorators: [{
|
|
2016
|
+
ForgotPasswordComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ForgotPasswordComponentModule, imports: [CommonModule,
|
|
2017
|
+
FormsModule,
|
|
2018
|
+
ReactiveFormsModule,
|
|
2019
|
+
FieldComponentModule,
|
|
2020
|
+
ButtonComponentModule,
|
|
2021
|
+
MatIconModule,
|
|
2022
|
+
LogoComponentModule] });
|
|
2023
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ForgotPasswordComponentModule, decorators: [{
|
|
885
2024
|
type: NgModule,
|
|
886
2025
|
args: [{
|
|
887
2026
|
declarations: [ForgotPasswordComponent],
|
|
@@ -899,6 +2038,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
899
2038
|
}]
|
|
900
2039
|
}] });
|
|
901
2040
|
|
|
2041
|
+
class IconLabelComponent {
|
|
2042
|
+
constructor() {
|
|
2043
|
+
/**
|
|
2044
|
+
* Icon size
|
|
2045
|
+
*
|
|
2046
|
+
* @type {IconSize}
|
|
2047
|
+
* @memberof IconLabelComponent
|
|
2048
|
+
*/
|
|
2049
|
+
this.iconSize = '16';
|
|
2050
|
+
/**
|
|
2051
|
+
* Label
|
|
2052
|
+
*
|
|
2053
|
+
* @memberof IconLabelComponent
|
|
2054
|
+
*/
|
|
2055
|
+
this.text = '';
|
|
2056
|
+
}
|
|
2057
|
+
ngOnInit() { }
|
|
2058
|
+
}
|
|
2059
|
+
IconLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2060
|
+
IconLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: IconLabelComponent, selector: "ui-icon-label", inputs: { iconSize: "iconSize", iconName: "iconName", text: "text" }, ngImport: i0, template: "<ui-icon [name]=\"iconName\" [size]=\"iconSize\" aria-hidden=\"true\"></ui-icon>\n<span>{{ text }}</span>\n", styles: [":host{display:flex;align-items:center}:host ui-icon{margin-right:8px}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color"] }] });
|
|
2061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconLabelComponent, decorators: [{
|
|
2062
|
+
type: Component,
|
|
2063
|
+
args: [{ selector: 'ui-icon-label', template: "<ui-icon [name]=\"iconName\" [size]=\"iconSize\" aria-hidden=\"true\"></ui-icon>\n<span>{{ text }}</span>\n", styles: [":host{display:flex;align-items:center}:host ui-icon{margin-right:8px}\n"] }]
|
|
2064
|
+
}], ctorParameters: function () { return []; }, propDecorators: { iconSize: [{
|
|
2065
|
+
type: Input
|
|
2066
|
+
}], iconName: [{
|
|
2067
|
+
type: Input
|
|
2068
|
+
}], text: [{
|
|
2069
|
+
type: Input
|
|
2070
|
+
}] } });
|
|
2071
|
+
|
|
2072
|
+
class IconLabelComponentModule {
|
|
2073
|
+
}
|
|
2074
|
+
IconLabelComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconLabelComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2075
|
+
IconLabelComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: IconLabelComponentModule, declarations: [IconLabelComponent], imports: [CommonModule, IconComponentModule], exports: [IconLabelComponent] });
|
|
2076
|
+
IconLabelComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconLabelComponentModule, imports: [CommonModule, IconComponentModule] });
|
|
2077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconLabelComponentModule, decorators: [{
|
|
2078
|
+
type: NgModule,
|
|
2079
|
+
args: [{
|
|
2080
|
+
declarations: [IconLabelComponent],
|
|
2081
|
+
imports: [CommonModule, IconComponentModule],
|
|
2082
|
+
exports: [IconLabelComponent],
|
|
2083
|
+
providers: [],
|
|
2084
|
+
}]
|
|
2085
|
+
}] });
|
|
2086
|
+
|
|
902
2087
|
var LabelSizeEnum;
|
|
903
2088
|
(function (LabelSizeEnum) {
|
|
904
2089
|
LabelSizeEnum["SMALL"] = "small";
|
|
@@ -951,9 +2136,9 @@ class LabelComponent {
|
|
|
951
2136
|
this.size = LabelSizeEnum.SMALL;
|
|
952
2137
|
}
|
|
953
2138
|
}
|
|
954
|
-
LabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
955
|
-
LabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
956
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2139
|
+
LabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2140
|
+
LabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: LabelComponent, selector: "ui-label", inputs: { backgroundColor: "backgroundColor", textColor: "textColor", title: "title", description: "description", size: "size" }, ngImport: i0, template: "<div\n class=\"label\"\n [ngStyle]=\"{ 'background-color': backgroundColor, color: textColor }\"\n [ngClass]=\"{\n small: size === LabelSizeEnum.SMALL,\n medium: size === LabelSizeEnum.MEDIUM,\n large: size === LabelSizeEnum.LARGE,\n big: size === LabelSizeEnum.BIG,\n huge: size === LabelSizeEnum.HUGE\n }\"\n>\n <div [innerHTML]=\"title\"></div>\n <div [innerHTML]=\"description\" class=\"description\" *ngIf=\"description && size === LabelSizeEnum.HUGE\"></div>\n</div>\n", styles: [".label{display:flex;flex-direction:column;justify-content:center;align-items:center;font-weight:600;border-radius:4px;width:-moz-fit-content;width:fit-content}.label.small{padding:0 8px;font-size:10px;min-height:16px}.label.medium{padding:2px 8px;font-size:12px;min-height:20px}.label.large{padding:8px 12px;font-size:14px;min-height:32px}.label.big{padding:8px 16px;font-size:14px;min-height:32px}.label.huge{padding:16px;font-size:12px;font-weight:700;min-height:48px;width:100%;max-width:166px;align-items:start}.label.huge .description{font-weight:400;font-size:12px;line-height:16px;padding-top:10px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LabelComponent, decorators: [{
|
|
957
2142
|
type: Component,
|
|
958
2143
|
args: [{ selector: 'ui-label', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"label\"\n [ngStyle]=\"{ 'background-color': backgroundColor, color: textColor }\"\n [ngClass]=\"{\n small: size === LabelSizeEnum.SMALL,\n medium: size === LabelSizeEnum.MEDIUM,\n large: size === LabelSizeEnum.LARGE,\n big: size === LabelSizeEnum.BIG,\n huge: size === LabelSizeEnum.HUGE\n }\"\n>\n <div [innerHTML]=\"title\"></div>\n <div [innerHTML]=\"description\" class=\"description\" *ngIf=\"description && size === LabelSizeEnum.HUGE\"></div>\n</div>\n", styles: [".label{display:flex;flex-direction:column;justify-content:center;align-items:center;font-weight:600;border-radius:4px;width:-moz-fit-content;width:fit-content}.label.small{padding:0 8px;font-size:10px;min-height:16px}.label.medium{padding:2px 8px;font-size:12px;min-height:20px}.label.large{padding:8px 12px;font-size:14px;min-height:32px}.label.big{padding:8px 16px;font-size:14px;min-height:32px}.label.huge{padding:16px;font-size:12px;font-weight:700;min-height:48px;width:100%;max-width:166px;align-items:start}.label.huge .description{font-weight:400;font-size:12px;line-height:16px;padding-top:10px}\n"] }]
|
|
959
2144
|
}], ctorParameters: function () { return []; }, propDecorators: { backgroundColor: [{
|
|
@@ -970,10 +2155,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
970
2155
|
|
|
971
2156
|
class LabelComponentModule {
|
|
972
2157
|
}
|
|
973
|
-
LabelComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
974
|
-
LabelComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
975
|
-
LabelComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
976
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2158
|
+
LabelComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LabelComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2159
|
+
LabelComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LabelComponentModule, declarations: [LabelComponent], imports: [CommonModule], exports: [LabelComponent] });
|
|
2160
|
+
LabelComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LabelComponentModule, imports: [CommonModule] });
|
|
2161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LabelComponentModule, decorators: [{
|
|
977
2162
|
type: NgModule,
|
|
978
2163
|
args: [{
|
|
979
2164
|
declarations: [LabelComponent],
|
|
@@ -995,11 +2180,23 @@ const LOGIN_i18n = {
|
|
|
995
2180
|
};
|
|
996
2181
|
|
|
997
2182
|
class LoginComponent {
|
|
2183
|
+
/**
|
|
2184
|
+
* @ignore
|
|
2185
|
+
*/
|
|
2186
|
+
ngOnInit() {
|
|
2187
|
+
if (this.email) {
|
|
2188
|
+
this.loginForm.get('email')?.setValue(this.email);
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
998
2191
|
constructor(fb) {
|
|
999
2192
|
this.fb = fb;
|
|
1000
2193
|
// TODO: Some properties and methods are ignored on purpose because of a current issue with compodoc and angular 13
|
|
1001
2194
|
// https://github.com/storybookjs/storybook/issues/16865
|
|
1002
2195
|
// https://github.com/storybookjs/storybook/issues/17004
|
|
2196
|
+
/**
|
|
2197
|
+
* @ignore
|
|
2198
|
+
*/
|
|
2199
|
+
this.email = '';
|
|
1003
2200
|
/**
|
|
1004
2201
|
* @ignore
|
|
1005
2202
|
*/
|
|
@@ -1040,10 +2237,6 @@ class LoginComponent {
|
|
|
1040
2237
|
*/
|
|
1041
2238
|
this.createAccountEvent = new EventEmitter();
|
|
1042
2239
|
}
|
|
1043
|
-
/**
|
|
1044
|
-
* @ignore
|
|
1045
|
-
*/
|
|
1046
|
-
ngOnInit() { }
|
|
1047
2240
|
submit() {
|
|
1048
2241
|
this.submitEvent.emit({
|
|
1049
2242
|
username: this.loginForm.get('email')?.value,
|
|
@@ -1071,12 +2264,14 @@ class LoginComponent {
|
|
|
1071
2264
|
this.formErrors[field] = '';
|
|
1072
2265
|
}
|
|
1073
2266
|
}
|
|
1074
|
-
LoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1075
|
-
LoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2267
|
+
LoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoginComponent, deps: [{ token: i1$3.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
2268
|
+
LoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: LoginComponent, selector: "ui-login", inputs: { email: "email", loading: "loading", i18n: "i18n" }, outputs: { submitEvent: "submitEvent", forgotPasswordEvent: "forgotPasswordEvent", createAccountEvent: "createAccountEvent" }, ngImport: i0, template: "<div class=\"ui-login-container\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <form [formGroup]=\"loginForm\" class=\"form-wrapper\">\n <div class=\"field-email\">\n <ui-field\n formControlName=\"email\"\n [label]=\"i18n.email_label\"\n [type]=\"'email'\"\n [required]=\"true\"\n [errors]=\"[formErrors.email]\"\n (ngModelChange)=\"checkErrors('email')\"\n ></ui-field>\n </div>\n <div class=\"field-password\">\n <ui-field\n formControlName=\"password\"\n [label]=\"i18n.password_label\"\n [type]=\"'password'\"\n [required]=\"true\"\n [errors]=\"[formErrors.password]\"\n (ngModelChange)=\"checkErrors('password')\"\n ></ui-field>\n </div>\n <div class=\"actions\">\n <div class=\"remember-me\">\n <ui-checkbox formControlName=\"remember_me\" [label]=\"i18n.remember_me\"></ui-checkbox>\n </div>\n <div class=\"forgot-password\" (click)=\"forgotPassword()\">{{ i18n.forgot_password }}</div>\n </div>\n <div class=\"submit-button\">\n <ui-button\n [label]=\"i18n.button_label\"\n [disabled]=\"loginForm.invalid\"\n [fullWidth]=\"true\"\n [loading]=\"loading\"\n (buttonClickEvent)=\"submit()\"\n ></ui-button>\n </div>\n <div class=\"create-account-wrapper\">\n <p>\n {{ i18n.not_have_account }}\n <span class=\"create-account\" (click)=\"createAccount()\">{{ i18n.create_account }}</span>\n </p>\n </div>\n </form>\n</div>\n", styles: [".ui-login-container{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(7,auto);max-width:672px;max-height:594px;height:100%;width:100%;padding:60px;background:#ffffff}.ui-login-container ui-logo{grid-column:1/5;grid-row:1/2;width:160px}.ui-login-container .title{grid-column:1/5;grid-row:2/3;font-weight:700;font-size:22px;line-height:29.7px;margin:24px 0;letter-spacing:-.04em}.ui-login-container .form-wrapper{grid-column:1/5;grid-row:3/8;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(5,auto)}.ui-login-container .form-wrapper .field-email{grid-column:1/5;grid-row:1/2}.ui-login-container .form-wrapper .field-password{grid-column:1/5;grid-row:2/3}.ui-login-container .form-wrapper .actions{grid-column:1/5;grid-row:3/4;display:flex;height:-moz-fit-content;height:fit-content;max-height:20px;justify-content:space-between;margin-top:3px;align-items:center}.ui-login-container .form-wrapper .actions .forgot-password{cursor:pointer;font-weight:700;text-decoration:underline}.ui-login-container .form-wrapper .actions .remember-me{margin-left:-10px}.ui-login-container .form-wrapper .submit-button{margin-top:40px;grid-column:1/5;grid-row:4/5}.ui-login-container .form-wrapper .create-account-wrapper{margin-top:24px;grid-column:1/5;grid-row:5/6}.ui-login-container .form-wrapper .create-account-wrapper p{margin:0;line-height:19.07px}.ui-login-container .form-wrapper .create-account-wrapper .create-account{color:#46a997;cursor:pointer}.ui-login-container .form-wrapper .create-account-wrapper .create-account:hover{text-decoration:underline}@media (min-width: 1024px){.ui-login-container{box-shadow:0 8px 16px #0000001a;border-radius:8px;padding:80px}}\n"], dependencies: [{ kind: "directive", type: i1$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FieldComponent, selector: "ui-field", inputs: ["label", "fieldName", "placeholder", "id", "value", "errors", "disabled", "required", "hintMessage", "type"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "type", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "component", type: CheckboxComponent, selector: "ui-checkbox", inputs: ["disabled", "checked", "indeterminate", "color", "name", "label", "multiple"], outputs: ["changed"] }, { kind: "component", type: LogoComponent, selector: "ui-logo", inputs: ["type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoginComponent, decorators: [{
|
|
1077
2270
|
type: Component,
|
|
1078
|
-
args: [{ selector: 'ui-login', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ui-login-container\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <form [formGroup]=\"loginForm\" class=\"form-wrapper\">\n <div class=\"field-email\">\n <ui-field\n formControlName=\"email\"\n [label]=\"i18n.email_label\"\n [type]=\"'email'\"\n [required]=\"true\"\n [
|
|
1079
|
-
}], ctorParameters: function () { return [{ type: i1$3.
|
|
2271
|
+
args: [{ selector: 'ui-login', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ui-login-container\">\n <ui-logo></ui-logo>\n <div class=\"title\">{{ i18n.title }}</div>\n <form [formGroup]=\"loginForm\" class=\"form-wrapper\">\n <div class=\"field-email\">\n <ui-field\n formControlName=\"email\"\n [label]=\"i18n.email_label\"\n [type]=\"'email'\"\n [required]=\"true\"\n [errors]=\"[formErrors.email]\"\n (ngModelChange)=\"checkErrors('email')\"\n ></ui-field>\n </div>\n <div class=\"field-password\">\n <ui-field\n formControlName=\"password\"\n [label]=\"i18n.password_label\"\n [type]=\"'password'\"\n [required]=\"true\"\n [errors]=\"[formErrors.password]\"\n (ngModelChange)=\"checkErrors('password')\"\n ></ui-field>\n </div>\n <div class=\"actions\">\n <div class=\"remember-me\">\n <ui-checkbox formControlName=\"remember_me\" [label]=\"i18n.remember_me\"></ui-checkbox>\n </div>\n <div class=\"forgot-password\" (click)=\"forgotPassword()\">{{ i18n.forgot_password }}</div>\n </div>\n <div class=\"submit-button\">\n <ui-button\n [label]=\"i18n.button_label\"\n [disabled]=\"loginForm.invalid\"\n [fullWidth]=\"true\"\n [loading]=\"loading\"\n (buttonClickEvent)=\"submit()\"\n ></ui-button>\n </div>\n <div class=\"create-account-wrapper\">\n <p>\n {{ i18n.not_have_account }}\n <span class=\"create-account\" (click)=\"createAccount()\">{{ i18n.create_account }}</span>\n </p>\n </div>\n </form>\n</div>\n", styles: [".ui-login-container{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(7,auto);max-width:672px;max-height:594px;height:100%;width:100%;padding:60px;background:#ffffff}.ui-login-container ui-logo{grid-column:1/5;grid-row:1/2;width:160px}.ui-login-container .title{grid-column:1/5;grid-row:2/3;font-weight:700;font-size:22px;line-height:29.7px;margin:24px 0;letter-spacing:-.04em}.ui-login-container .form-wrapper{grid-column:1/5;grid-row:3/8;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(5,auto)}.ui-login-container .form-wrapper .field-email{grid-column:1/5;grid-row:1/2}.ui-login-container .form-wrapper .field-password{grid-column:1/5;grid-row:2/3}.ui-login-container .form-wrapper .actions{grid-column:1/5;grid-row:3/4;display:flex;height:-moz-fit-content;height:fit-content;max-height:20px;justify-content:space-between;margin-top:3px;align-items:center}.ui-login-container .form-wrapper .actions .forgot-password{cursor:pointer;font-weight:700;text-decoration:underline}.ui-login-container .form-wrapper .actions .remember-me{margin-left:-10px}.ui-login-container .form-wrapper .submit-button{margin-top:40px;grid-column:1/5;grid-row:4/5}.ui-login-container .form-wrapper .create-account-wrapper{margin-top:24px;grid-column:1/5;grid-row:5/6}.ui-login-container .form-wrapper .create-account-wrapper p{margin:0;line-height:19.07px}.ui-login-container .form-wrapper .create-account-wrapper .create-account{color:#46a997;cursor:pointer}.ui-login-container .form-wrapper .create-account-wrapper .create-account:hover{text-decoration:underline}@media (min-width: 1024px){.ui-login-container{box-shadow:0 8px 16px #0000001a;border-radius:8px;padding:80px}}\n"] }]
|
|
2272
|
+
}], ctorParameters: function () { return [{ type: i1$3.UntypedFormBuilder }]; }, propDecorators: { email: [{
|
|
2273
|
+
type: Input
|
|
2274
|
+
}], loading: [{
|
|
1080
2275
|
type: Input
|
|
1081
2276
|
}], i18n: [{
|
|
1082
2277
|
type: Input
|
|
@@ -1090,24 +2285,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1090
2285
|
|
|
1091
2286
|
class LoginComponentModule {
|
|
1092
2287
|
}
|
|
1093
|
-
LoginComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1094
|
-
LoginComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
2288
|
+
LoginComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoginComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2289
|
+
LoginComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LoginComponentModule, declarations: [LoginComponent], imports: [CommonModule,
|
|
1095
2290
|
FormsModule,
|
|
1096
2291
|
ReactiveFormsModule,
|
|
1097
2292
|
FieldComponentModule,
|
|
1098
2293
|
ButtonComponentModule,
|
|
1099
|
-
|
|
2294
|
+
CheckboxComponentModule,
|
|
1100
2295
|
LogoComponentModule], exports: [LoginComponent] });
|
|
1101
|
-
LoginComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
]] });
|
|
1110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LoginComponentModule, decorators: [{
|
|
2296
|
+
LoginComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoginComponentModule, imports: [CommonModule,
|
|
2297
|
+
FormsModule,
|
|
2298
|
+
ReactiveFormsModule,
|
|
2299
|
+
FieldComponentModule,
|
|
2300
|
+
ButtonComponentModule,
|
|
2301
|
+
CheckboxComponentModule,
|
|
2302
|
+
LogoComponentModule] });
|
|
2303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoginComponentModule, decorators: [{
|
|
1111
2304
|
type: NgModule,
|
|
1112
2305
|
args: [{
|
|
1113
2306
|
declarations: [LoginComponent],
|
|
@@ -1117,7 +2310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1117
2310
|
ReactiveFormsModule,
|
|
1118
2311
|
FieldComponentModule,
|
|
1119
2312
|
ButtonComponentModule,
|
|
1120
|
-
|
|
2313
|
+
CheckboxComponentModule,
|
|
1121
2314
|
LogoComponentModule,
|
|
1122
2315
|
],
|
|
1123
2316
|
exports: [LoginComponent],
|
|
@@ -1168,11 +2361,11 @@ class NavbarComponent {
|
|
|
1168
2361
|
this.logoutEvent.emit();
|
|
1169
2362
|
}
|
|
1170
2363
|
}
|
|
1171
|
-
NavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1172
|
-
NavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2364
|
+
NavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2365
|
+
NavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NavbarComponent, selector: "ui-navbar", inputs: { routes: "routes", activedRoute: "activedRoute", userName: "userName" }, outputs: { navigateEvent: "navigateEvent", logoutEvent: "logoutEvent" }, ngImport: i0, template: "<mat-toolbar>\n <div class=\"custom-toolbar row\">\n <ui-logo class=\"logo\" (click)=\"navigate('')\"></ui-logo>\n <div class=\"navigation row\">\n <a *ngFor=\"let route of routes\" (click)=\"navigate(route.id)\" [ngClass]=\"{'active': activedRoute === route.id}\">\n <span>{{ route.title }}</span>\n </a>\n </div>\n <div class=\"actions\">\n <button mat-button class=\"profile-menu\" [matMenuTriggerFor]=\"menu\">\n {{ userName }}\n <mat-icon iconPositionEnd>expand_more</mat-icon>\n </button>\n </div>\n </div>\n</mat-toolbar>\n\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"logout()\">\n <mat-icon>power_settings_new</mat-icon>\n Log out\n </button>\n</mat-menu>\n", styles: [".mat-toolbar{height:80px!important;background-color:#fff!important;padding:0 192px!important}.mat-toolbar .custom-toolbar{width:100%;height:100%;background-color:#fff}.mat-toolbar .custom-toolbar ui-logo.logo{cursor:pointer;width:105px;height:32px;align-self:center;flex:1 0 216px;display:flex}.mat-toolbar .custom-toolbar .navigation{height:100%}.mat-toolbar .custom-toolbar .navigation a{display:flex;align-items:center;height:100%;background:#fff;cursor:pointer}.mat-toolbar .custom-toolbar .navigation a.active{border-top:2px solid #276678}.mat-toolbar .custom-toolbar .navigation a.active span{font-weight:700}.mat-toolbar .custom-toolbar .navigation a span{width:100%;text-align:center;font-weight:400;font-size:14px;line-height:16px}.mat-toolbar .custom-toolbar .navigation a:not(:first-of-type){margin-left:32px}.mat-toolbar .custom-toolbar .actions{width:100%;display:flex;align-items:center;justify-content:flex-end}.mat-toolbar .custom-toolbar .actions .profile-menu{font-weight:600;font-size:14px;height:100%;margin-right:-20px}.mat-toolbar .custom-toolbar .actions .profile-menu mat-icon{font-size:16px;position:relative;top:3px;left:3px}.row{display:flex;flex-direction:row}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2$4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i5$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i5$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: LogoComponent, selector: "ui-logo", inputs: ["type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NavbarComponent, decorators: [{
|
|
1174
2367
|
type: Component,
|
|
1175
|
-
args: [{ selector: 'ui-navbar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-toolbar>\n <div class=\"custom-toolbar row\">\n <ui-logo class=\"logo\" (click)=\"navigate('')\"></ui-logo>\n <div class=\"navigation row\">\n <a *ngFor=\"let route of routes\" (click)=\"navigate(route.id)\" [ngClass]=\"{'active': activedRoute === route.id}\">\n <span>{{ route.title }}</span>\n </a>\n </div>\n <div class=\"actions\">\n <button mat-button class=\"profile-menu\" [matMenuTriggerFor]=\"menu\">\n {{ userName }}\n <mat-icon>expand_more</mat-icon>\n </button>\n </div>\n </div>\n</mat-toolbar>\n\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"logout()\">\n <mat-icon>power_settings_new</mat-icon>\n Log out\n </button>\n</mat-menu>\n", styles: [".mat-toolbar{height:80px!important;background-color:#fff!important;padding:0 192px!important}.mat-toolbar .custom-toolbar{width:100%;height:100%;background-color:#fff}.mat-toolbar .custom-toolbar ui-logo.logo{cursor:pointer;width:105px;height:32px;align-self:center;flex:1 0 216px}.mat-toolbar .custom-toolbar .navigation{height:100%}.mat-toolbar .custom-toolbar .navigation a{display:flex;align-items:center;height:100%;background:#fff;cursor:pointer}.mat-toolbar .custom-toolbar .navigation a.active{border-top:2px solid #276678}.mat-toolbar .custom-toolbar .navigation a.active span{font-weight:700}.mat-toolbar .custom-toolbar .navigation a span{width:100%;text-align:center;font-weight:400;font-size:14px;line-height:16px}.mat-toolbar .custom-toolbar .navigation a:not(:first-of-type){margin-left:32px}.mat-toolbar .custom-toolbar .actions{width:100%;display:flex;align-items:center;justify-content:flex-end}.mat-toolbar .custom-toolbar .actions .profile-menu{font-weight:600;font-size:14px;height:100%;margin-right:-20px}.mat-toolbar .custom-toolbar .actions .profile-menu mat-icon{font-size:16px;position:relative;top:3px;left:3px}.row{display:flex;flex-direction:row}\n"] }]
|
|
2368
|
+
args: [{ selector: 'ui-navbar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-toolbar>\n <div class=\"custom-toolbar row\">\n <ui-logo class=\"logo\" (click)=\"navigate('')\"></ui-logo>\n <div class=\"navigation row\">\n <a *ngFor=\"let route of routes\" (click)=\"navigate(route.id)\" [ngClass]=\"{'active': activedRoute === route.id}\">\n <span>{{ route.title }}</span>\n </a>\n </div>\n <div class=\"actions\">\n <button mat-button class=\"profile-menu\" [matMenuTriggerFor]=\"menu\">\n {{ userName }}\n <mat-icon iconPositionEnd>expand_more</mat-icon>\n </button>\n </div>\n </div>\n</mat-toolbar>\n\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"logout()\">\n <mat-icon>power_settings_new</mat-icon>\n Log out\n </button>\n</mat-menu>\n", styles: [".mat-toolbar{height:80px!important;background-color:#fff!important;padding:0 192px!important}.mat-toolbar .custom-toolbar{width:100%;height:100%;background-color:#fff}.mat-toolbar .custom-toolbar ui-logo.logo{cursor:pointer;width:105px;height:32px;align-self:center;flex:1 0 216px;display:flex}.mat-toolbar .custom-toolbar .navigation{height:100%}.mat-toolbar .custom-toolbar .navigation a{display:flex;align-items:center;height:100%;background:#fff;cursor:pointer}.mat-toolbar .custom-toolbar .navigation a.active{border-top:2px solid #276678}.mat-toolbar .custom-toolbar .navigation a.active span{font-weight:700}.mat-toolbar .custom-toolbar .navigation a span{width:100%;text-align:center;font-weight:400;font-size:14px;line-height:16px}.mat-toolbar .custom-toolbar .navigation a:not(:first-of-type){margin-left:32px}.mat-toolbar .custom-toolbar .actions{width:100%;display:flex;align-items:center;justify-content:flex-end}.mat-toolbar .custom-toolbar .actions .profile-menu{font-weight:600;font-size:14px;height:100%;margin-right:-20px}.mat-toolbar .custom-toolbar .actions .profile-menu mat-icon{font-size:16px;position:relative;top:3px;left:3px}.row{display:flex;flex-direction:row}\n"] }]
|
|
1176
2369
|
}], ctorParameters: function () { return []; }, propDecorators: { routes: [{
|
|
1177
2370
|
type: Input
|
|
1178
2371
|
}], activedRoute: [{
|
|
@@ -1187,24 +2380,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1187
2380
|
|
|
1188
2381
|
class NavbarComponentModule {
|
|
1189
2382
|
}
|
|
1190
|
-
NavbarComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1191
|
-
NavbarComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
2383
|
+
NavbarComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NavbarComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2384
|
+
NavbarComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NavbarComponentModule, declarations: [NavbarComponent], imports: [CommonModule,
|
|
1192
2385
|
MatToolbarModule,
|
|
1193
2386
|
MatIconModule,
|
|
1194
2387
|
MatButtonModule,
|
|
1195
2388
|
MatRippleModule,
|
|
1196
2389
|
MatMenuModule,
|
|
1197
2390
|
LogoComponentModule], exports: [NavbarComponent] });
|
|
1198
|
-
NavbarComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
]] });
|
|
1207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NavbarComponentModule, decorators: [{
|
|
2391
|
+
NavbarComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NavbarComponentModule, imports: [CommonModule,
|
|
2392
|
+
MatToolbarModule,
|
|
2393
|
+
MatIconModule,
|
|
2394
|
+
MatButtonModule,
|
|
2395
|
+
MatRippleModule,
|
|
2396
|
+
MatMenuModule,
|
|
2397
|
+
LogoComponentModule] });
|
|
2398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NavbarComponentModule, decorators: [{
|
|
1208
2399
|
type: NgModule,
|
|
1209
2400
|
args: [{
|
|
1210
2401
|
declarations: [NavbarComponent],
|
|
@@ -1233,9 +2424,9 @@ class NavigationComponent {
|
|
|
1233
2424
|
this.goBackClickedEvent.emit();
|
|
1234
2425
|
}
|
|
1235
2426
|
}
|
|
1236
|
-
NavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1237
|
-
NavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2427
|
+
NavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2428
|
+
NavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NavigationComponent, selector: "ui-navigation", inputs: { title: "title", subtitle: "subtitle", labelItem: "labelItem" }, outputs: { goBackClickedEvent: "goBackClickedEvent" }, ngImport: i0, template: "<div class=\"navigation\">\n <button aria-label=\"Go back\" mat-icon-button (click)=\"goBackClicked()\">\n <mat-icon aria-hidden=\"true\">arrow_back</mat-icon>\n </button>\n <div class=\"content\">\n <div class=\"title\">\n <span >{{ title }}</span>\n <div class=\"status\" *ngIf=\"labelItem\">\n <ui-label [backgroundColor]=\"labelItem.backgroundColor\" [textColor]=\"labelItem.textColor\"\n [title]=\"labelItem.title\" [size]=\"labelItem.size\">\n </ui-label>\n </div>\n </div>\n <div class=\"subtitle\">\n {{ subtitle }}\n </div>\n </div>\n</div>\n", styles: [".navigation{width:100%;display:flex;align-items:center}.navigation mat-icon{color:#000}.navigation .content{margin-left:32px;display:flex;flex-direction:column}.navigation .content .title{color:#000;font-weight:700;font-size:20px;display:flex;align-items:center;margin-bottom:8px}.navigation .content .title .status{margin-left:8px}.navigation .content .subtitle{color:#528593;font-weight:700;font-size:14px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: LabelComponent, selector: "ui-label", inputs: ["backgroundColor", "textColor", "title", "description", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NavigationComponent, decorators: [{
|
|
1239
2430
|
type: Component,
|
|
1240
2431
|
args: [{ selector: 'ui-navigation', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"navigation\">\n <button aria-label=\"Go back\" mat-icon-button (click)=\"goBackClicked()\">\n <mat-icon aria-hidden=\"true\">arrow_back</mat-icon>\n </button>\n <div class=\"content\">\n <div class=\"title\">\n <span >{{ title }}</span>\n <div class=\"status\" *ngIf=\"labelItem\">\n <ui-label [backgroundColor]=\"labelItem.backgroundColor\" [textColor]=\"labelItem.textColor\"\n [title]=\"labelItem.title\" [size]=\"labelItem.size\">\n </ui-label>\n </div>\n </div>\n <div class=\"subtitle\">\n {{ subtitle }}\n </div>\n </div>\n</div>\n", styles: [".navigation{width:100%;display:flex;align-items:center}.navigation mat-icon{color:#000}.navigation .content{margin-left:32px;display:flex;flex-direction:column}.navigation .content .title{color:#000;font-weight:700;font-size:20px;display:flex;align-items:center;margin-bottom:8px}.navigation .content .title .status{margin-left:8px}.navigation .content .subtitle{color:#528593;font-weight:700;font-size:14px}\n"] }]
|
|
1241
2432
|
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
@@ -1250,10 +2441,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1250
2441
|
|
|
1251
2442
|
class NavigationComponentModule {
|
|
1252
2443
|
}
|
|
1253
|
-
NavigationComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1254
|
-
NavigationComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
1255
|
-
NavigationComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2444
|
+
NavigationComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NavigationComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2445
|
+
NavigationComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NavigationComponentModule, declarations: [NavigationComponent], imports: [CommonModule, MatIconModule, MatButtonModule, LabelComponentModule], exports: [NavigationComponent] });
|
|
2446
|
+
NavigationComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NavigationComponentModule, imports: [CommonModule, MatIconModule, MatButtonModule, LabelComponentModule] });
|
|
2447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NavigationComponentModule, decorators: [{
|
|
1257
2448
|
type: NgModule,
|
|
1258
2449
|
args: [{
|
|
1259
2450
|
declarations: [NavigationComponent],
|
|
@@ -1264,6 +2455,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1264
2455
|
}] });
|
|
1265
2456
|
|
|
1266
2457
|
class PaginatorComponent {
|
|
2458
|
+
/**
|
|
2459
|
+
* @ignore
|
|
2460
|
+
*/
|
|
2461
|
+
ngOnInit() { }
|
|
1267
2462
|
constructor() {
|
|
1268
2463
|
// TODO: Some properties and methods are ignored on purpose because of a current issue with compodoc and angular 13
|
|
1269
2464
|
// https://github.com/storybookjs/storybook/issues/16865
|
|
@@ -1294,19 +2489,15 @@ class PaginatorComponent {
|
|
|
1294
2489
|
*/
|
|
1295
2490
|
this.paginatorChangedEvent = new EventEmitter();
|
|
1296
2491
|
}
|
|
1297
|
-
/**
|
|
1298
|
-
* @ignore
|
|
1299
|
-
*/
|
|
1300
|
-
ngOnInit() { }
|
|
1301
2492
|
paginatorChanged(paginator) {
|
|
1302
2493
|
this.paginatorChangedEvent.emit(paginator);
|
|
1303
2494
|
}
|
|
1304
2495
|
}
|
|
1305
|
-
PaginatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1306
|
-
PaginatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2496
|
+
PaginatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2497
|
+
PaginatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginatorComponent, selector: "ui-paginator", inputs: { length: "length", defaultPageSize: "defaultPageSize" }, outputs: { paginatorChangedEvent: "paginatorChangedEvent" }, ngImport: i0, template: "<mat-paginator [length]=\"length\"\n [pageSize]=\"defaultPageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"paginatorChanged($event)\">\n</mat-paginator>", styles: [".mat-mdc-paginator{border-radius:0 0 8px 8px}.mat-mdc-paginator .mat-mdc-paginator-outer-container{border-radius:0 0 8px 8px;font-weight:400;font-size:14px;line-height:16px;color:#000}.mat-mdc-paginator .mat-mdc-paginator-outer-container .mat-mdc-paginator-container{padding:0}.mat-mdc-paginator .mat-mdc-paginator-outer-container .mat-mdc-paginator-container .mat-mdc-select-value-text{font-size:14px}.mat-mdc-paginator .mat-mdc-paginator-outer-container .mat-mdc-paginator-container .mat-mdc-paginator-range-actions{height:100%}.mat-mdc-paginator .mat-mdc-paginator-outer-container .mat-mdc-paginator-container .mat-mdc-paginator-range-actions button{height:100%;width:70px;border-radius:0}\n"], dependencies: [{ kind: "component", type: i1$6.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginatorComponent, decorators: [{
|
|
1308
2499
|
type: Component,
|
|
1309
|
-
args: [{ selector: 'ui-paginator', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-paginator [length]=\"length\"\n [pageSize]=\"defaultPageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"paginatorChanged($event)\">\n</mat-paginator>", styles: ["mat-paginator{border-radius:0 0 8px 8px}mat-paginator .mat-paginator-outer-container{border-radius:0 0 8px 8px;font-weight:400;font-size:14px;line-height:16px;color:#000}mat-paginator .mat-paginator-outer-container .mat-paginator-container{padding:0}mat-paginator .mat-paginator-outer-container .mat-paginator-container .mat-select-value-text{font-size:14px}mat-paginator .mat-paginator-outer-container .mat-paginator-container .mat-paginator-range-actions{height:100%}mat-paginator .mat-paginator-outer-container .mat-paginator-container .mat-paginator-range-actions button{height:100%;width:70px;border-radius:0}\n"] }]
|
|
2500
|
+
args: [{ selector: 'ui-paginator', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-paginator [length]=\"length\"\n [pageSize]=\"defaultPageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"paginatorChanged($event)\">\n</mat-paginator>", styles: [".mat-mdc-paginator{border-radius:0 0 8px 8px}.mat-mdc-paginator .mat-mdc-paginator-outer-container{border-radius:0 0 8px 8px;font-weight:400;font-size:14px;line-height:16px;color:#000}.mat-mdc-paginator .mat-mdc-paginator-outer-container .mat-mdc-paginator-container{padding:0}.mat-mdc-paginator .mat-mdc-paginator-outer-container .mat-mdc-paginator-container .mat-mdc-select-value-text{font-size:14px}.mat-mdc-paginator .mat-mdc-paginator-outer-container .mat-mdc-paginator-container .mat-mdc-paginator-range-actions{height:100%}.mat-mdc-paginator .mat-mdc-paginator-outer-container .mat-mdc-paginator-container .mat-mdc-paginator-range-actions button{height:100%;width:70px;border-radius:0}\n"] }]
|
|
1310
2501
|
}], ctorParameters: function () { return []; }, propDecorators: { length: [{
|
|
1311
2502
|
type: Input
|
|
1312
2503
|
}], defaultPageSize: [{
|
|
@@ -1317,10 +2508,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1317
2508
|
|
|
1318
2509
|
class PaginatorComponentModule {
|
|
1319
2510
|
}
|
|
1320
|
-
PaginatorComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1321
|
-
PaginatorComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
1322
|
-
PaginatorComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2511
|
+
PaginatorComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginatorComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2512
|
+
PaginatorComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PaginatorComponentModule, declarations: [PaginatorComponent], imports: [CommonModule, MatPaginatorModule], exports: [PaginatorComponent] });
|
|
2513
|
+
PaginatorComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginatorComponentModule, imports: [CommonModule, MatPaginatorModule] });
|
|
2514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginatorComponentModule, decorators: [{
|
|
1324
2515
|
type: NgModule,
|
|
1325
2516
|
args: [{
|
|
1326
2517
|
declarations: [PaginatorComponent],
|
|
@@ -1330,53 +2521,299 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1330
2521
|
}]
|
|
1331
2522
|
}] });
|
|
1332
2523
|
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
2524
|
+
/* eslint-disable no-underscore-dangle */
|
|
2525
|
+
class RadioButtonComponent {
|
|
2526
|
+
constructor() {
|
|
2527
|
+
/**
|
|
2528
|
+
* Determines whether the radio button is disabled.
|
|
2529
|
+
* Default: false.
|
|
2530
|
+
*
|
|
2531
|
+
* @type {boolean}
|
|
2532
|
+
* @memberof RadioButtonComponent
|
|
2533
|
+
*/
|
|
2534
|
+
this.disabled = false;
|
|
2535
|
+
/**
|
|
2536
|
+
* Determines whether the radio button is checked.
|
|
2537
|
+
* Default: false.
|
|
2538
|
+
*
|
|
2539
|
+
* @type {boolean}
|
|
2540
|
+
* @memberof RadioButtonComponent
|
|
2541
|
+
*/
|
|
2542
|
+
//@Input() selected = false;
|
|
2543
|
+
this._selected = false;
|
|
2544
|
+
/**
|
|
2545
|
+
* Determines whether the radio button can be unchecked.
|
|
2546
|
+
* Default: false.
|
|
2547
|
+
*
|
|
2548
|
+
* @type {boolean}
|
|
2549
|
+
* @memberof RadioButtonComponent
|
|
2550
|
+
*/
|
|
2551
|
+
this.allowUnselect = false;
|
|
2552
|
+
/**
|
|
2553
|
+
* Determines the radio button color.
|
|
2554
|
+
* Default: Test Gorilla primary color.
|
|
2555
|
+
*
|
|
2556
|
+
* @type {string}
|
|
2557
|
+
* @memberof RadioButtonComponent
|
|
2558
|
+
*/
|
|
2559
|
+
this.color = '#46A997';
|
|
2560
|
+
/**
|
|
2561
|
+
* Used to group radios for unique selection.
|
|
2562
|
+
*
|
|
2563
|
+
* @type {string}
|
|
2564
|
+
* @memberof RadioButtonComponent
|
|
2565
|
+
*/
|
|
2566
|
+
this.name = '';
|
|
2567
|
+
/**
|
|
2568
|
+
* Text content will be applied to the input element if present.
|
|
2569
|
+
*
|
|
2570
|
+
* @type {string}
|
|
2571
|
+
* @memberof RadioButtonComponent
|
|
2572
|
+
*/
|
|
2573
|
+
this.label = '';
|
|
2574
|
+
/**
|
|
2575
|
+
* Determines whether the radio button is a multiple choice cell.
|
|
2576
|
+
* Default: false
|
|
2577
|
+
*
|
|
2578
|
+
* @type {boolean}
|
|
2579
|
+
* @memberof RadioButtonComponent
|
|
2580
|
+
*/
|
|
2581
|
+
this.multiple = false;
|
|
2582
|
+
/**
|
|
2583
|
+
* Event emitted when the checked state of the radio button changes.
|
|
2584
|
+
*
|
|
2585
|
+
* @type {boolean}
|
|
2586
|
+
* @memberof RadioButtonComponent
|
|
2587
|
+
*/
|
|
2588
|
+
this.changeRadio = new EventEmitter();
|
|
2589
|
+
}
|
|
2590
|
+
get selected() {
|
|
2591
|
+
return this._selected;
|
|
2592
|
+
}
|
|
2593
|
+
set selected(selected) {
|
|
2594
|
+
this._selected = selected;
|
|
2595
|
+
}
|
|
2596
|
+
ngOnInit() {
|
|
2597
|
+
this.classMultiple = this.setClass();
|
|
2598
|
+
}
|
|
2599
|
+
ngOnChanges(changes) {
|
|
2600
|
+
if (changes['selected']) {
|
|
2601
|
+
this.classMultiple = this.setClass();
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
//Click method
|
|
2605
|
+
clickRadio(element, event) {
|
|
2606
|
+
//event.preventDefault();
|
|
2607
|
+
if (this.allowUnselect) {
|
|
2608
|
+
element.checked = !element.checked;
|
|
2609
|
+
this._selected = element.checked;
|
|
2610
|
+
this.classMultiple = this.setClass();
|
|
2611
|
+
this.changeRadio.emit({ optionName: element.value, optionChecked: element.checked });
|
|
2612
|
+
}
|
|
2613
|
+
else {
|
|
2614
|
+
this._selected = true;
|
|
2615
|
+
this.changeRadio.emit({ optionName: element.value, optionChecked: true });
|
|
2616
|
+
}
|
|
2617
|
+
if (this.disabled) {
|
|
2618
|
+
this._selected = false;
|
|
2619
|
+
this.changeRadio.emit({ optionName: '', optionChecked: false });
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
//Set class for multiple radio
|
|
2623
|
+
setClass() {
|
|
2624
|
+
if (this.multiple) {
|
|
2625
|
+
return this._selected ? 'multiple-checked' : 'multiple-unchecked';
|
|
2626
|
+
}
|
|
2627
|
+
return '';
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
RadioButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RadioButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2631
|
+
RadioButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: RadioButtonComponent, selector: "ui-radio-button", inputs: { disabled: "disabled", selected: "selected", allowUnselect: "allowUnselect", color: "color", name: "name", label: "label", multiple: "multiple", value: "value" }, outputs: { changeRadio: "changeRadio" }, host: { properties: { "style.--color": "this.color" } }, usesOnChanges: true, ngImport: i0, template: "<div [ngClass]=\"classMultiple\">\n <mat-radio-button\n #radio\n [checked]=\"selected\"\n [disabled]=\"disabled\"\n [name]=\"name\"\n [aria-label]=\"label\"\n [value]=\"value\"\n class=\"radio-button\"\n (click)=\"clickRadio(radio, $event)\"\n >\n {{ label }}\n </mat-radio-button>\n</div>", styles: ["::ng-deep .mat-mdc-radio-checked .mdc-radio__outer-circle{border-color:var(--color)!important}::ng-deep .mat-mdc-radio-checked .mdc-radio__inner-circle{background-color:var(--color)!important;border-color:var(--color)!important}::ng-deep .mat-mdc-radio-button .mat-ripple-element{background-color:var(--color)!important}::ng-deep .mat-mdc-radio-button.mat-radio-disabled.mat-radio-checked .mdc-radio__outer-circle,.mat-radio-button.mat-radio-disabled .mdc-radio__outer-circle{border-color:#888!important}::ng-deep .mat-mdc-radio-button.mat-radio-disabled .mdc-radio__inner-circle{background-color:#888!important}.multiple-checked{border:1px solid #46A997;display:flex;flex-direction:row;align-items:center;gap:16px;background:#46A997;border-radius:8px}.multiple-checked ::ng-deep .mat-mdc-radio-button{width:100%;height:100%}.multiple-checked ::ng-deep .mat-mdc-radio-checked .mdc-radio__outer-circle{border:1px solid #ffffff;border-radius:64px;background:#ffffff}.multiple-checked ::ng-deep label{color:#fff;padding:16px 0;height:100%;width:100%}.multiple-unchecked{border:1px solid #E0E0E0;display:flex;flex-direction:row;align-items:center;gap:16px;background:#ffffff;border-radius:8px}.multiple-unchecked ::ng-deep .mat-mdc-radio-button{width:100%;height:100%}.multiple-unchecked:hover{background:#F6F6F6;border:1px solid #E0E0E0}.multiple-unchecked ::ng-deep label{padding:16px 0;height:100%;width:100%}.multiple-unchecked ::ng-deep .mat-mdc-radio-button .mdc-radio .mdc-radio__background:before{opacity:0!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$5.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
2633
|
+
type: Component,
|
|
2634
|
+
args: [{ selector: 'ui-radio-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"classMultiple\">\n <mat-radio-button\n #radio\n [checked]=\"selected\"\n [disabled]=\"disabled\"\n [name]=\"name\"\n [aria-label]=\"label\"\n [value]=\"value\"\n class=\"radio-button\"\n (click)=\"clickRadio(radio, $event)\"\n >\n {{ label }}\n </mat-radio-button>\n</div>", styles: ["::ng-deep .mat-mdc-radio-checked .mdc-radio__outer-circle{border-color:var(--color)!important}::ng-deep .mat-mdc-radio-checked .mdc-radio__inner-circle{background-color:var(--color)!important;border-color:var(--color)!important}::ng-deep .mat-mdc-radio-button .mat-ripple-element{background-color:var(--color)!important}::ng-deep .mat-mdc-radio-button.mat-radio-disabled.mat-radio-checked .mdc-radio__outer-circle,.mat-radio-button.mat-radio-disabled .mdc-radio__outer-circle{border-color:#888!important}::ng-deep .mat-mdc-radio-button.mat-radio-disabled .mdc-radio__inner-circle{background-color:#888!important}.multiple-checked{border:1px solid #46A997;display:flex;flex-direction:row;align-items:center;gap:16px;background:#46A997;border-radius:8px}.multiple-checked ::ng-deep .mat-mdc-radio-button{width:100%;height:100%}.multiple-checked ::ng-deep .mat-mdc-radio-checked .mdc-radio__outer-circle{border:1px solid #ffffff;border-radius:64px;background:#ffffff}.multiple-checked ::ng-deep label{color:#fff;padding:16px 0;height:100%;width:100%}.multiple-unchecked{border:1px solid #E0E0E0;display:flex;flex-direction:row;align-items:center;gap:16px;background:#ffffff;border-radius:8px}.multiple-unchecked ::ng-deep .mat-mdc-radio-button{width:100%;height:100%}.multiple-unchecked:hover{background:#F6F6F6;border:1px solid #E0E0E0}.multiple-unchecked ::ng-deep label{padding:16px 0;height:100%;width:100%}.multiple-unchecked ::ng-deep .mat-mdc-radio-button .mdc-radio .mdc-radio__background:before{opacity:0!important}\n"] }]
|
|
2635
|
+
}], propDecorators: { disabled: [{
|
|
2636
|
+
type: Input
|
|
2637
|
+
}], selected: [{
|
|
2638
|
+
type: Input
|
|
2639
|
+
}], allowUnselect: [{
|
|
2640
|
+
type: Input
|
|
2641
|
+
}], color: [{
|
|
2642
|
+
type: HostBinding,
|
|
2643
|
+
args: ['style.--color']
|
|
2644
|
+
}, {
|
|
2645
|
+
type: Input
|
|
2646
|
+
}], name: [{
|
|
2647
|
+
type: Input
|
|
2648
|
+
}], label: [{
|
|
2649
|
+
type: Input
|
|
2650
|
+
}], multiple: [{
|
|
2651
|
+
type: Input
|
|
2652
|
+
}], value: [{
|
|
2653
|
+
type: Input
|
|
2654
|
+
}], changeRadio: [{
|
|
2655
|
+
type: Output
|
|
2656
|
+
}] } });
|
|
2657
|
+
|
|
2658
|
+
class RadioButtonComponentModule {
|
|
2659
|
+
}
|
|
2660
|
+
RadioButtonComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RadioButtonComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2661
|
+
RadioButtonComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: RadioButtonComponentModule, declarations: [RadioButtonComponent], imports: [CommonModule, MatRadioModule, FormsModule, ReactiveFormsModule], exports: [RadioButtonComponent] });
|
|
2662
|
+
RadioButtonComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RadioButtonComponentModule, imports: [CommonModule, MatRadioModule, FormsModule, ReactiveFormsModule] });
|
|
2663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RadioButtonComponentModule, decorators: [{
|
|
2664
|
+
type: NgModule,
|
|
2665
|
+
args: [{
|
|
2666
|
+
declarations: [RadioButtonComponent],
|
|
2667
|
+
imports: [CommonModule, MatRadioModule, FormsModule, ReactiveFormsModule],
|
|
2668
|
+
exports: [RadioButtonComponent],
|
|
2669
|
+
}]
|
|
2670
|
+
}] });
|
|
2671
|
+
|
|
2672
|
+
class SnackbarComponent {
|
|
2673
|
+
constructor() {
|
|
2674
|
+
/**
|
|
2675
|
+
* Background color of the button while in active state
|
|
2676
|
+
*
|
|
2677
|
+
* @type {SnackbarType}
|
|
2678
|
+
* @memberof SnackbarComponent
|
|
2679
|
+
*/
|
|
2680
|
+
this.snackbarType = 'success';
|
|
2681
|
+
/**
|
|
2682
|
+
* Snackbar message
|
|
2683
|
+
*
|
|
2684
|
+
* @memberof SnackbarComponent
|
|
2685
|
+
*/
|
|
2686
|
+
this.message = '';
|
|
2687
|
+
/**
|
|
2688
|
+
* Set the time that the snackbar will be visible
|
|
2689
|
+
*
|
|
2690
|
+
* @memberof SnackbarComponent
|
|
2691
|
+
*/
|
|
2692
|
+
this.seconds = 5;
|
|
2693
|
+
/**
|
|
2694
|
+
* Include dismmiss button
|
|
2695
|
+
*
|
|
2696
|
+
* @memberof SnackbarComponent
|
|
2697
|
+
*/
|
|
2698
|
+
this.includeDismissButton = true;
|
|
2699
|
+
/**
|
|
2700
|
+
* Static or fixed position
|
|
2701
|
+
*
|
|
2702
|
+
* @memberof SnackbarComponent
|
|
2703
|
+
*/
|
|
2704
|
+
this.fixed = true;
|
|
2705
|
+
this.showSnackbar = true;
|
|
2706
|
+
this.visible = false;
|
|
2707
|
+
this.timerStartedAt = 0;
|
|
2708
|
+
this.timerPausedAt = 0;
|
|
2709
|
+
}
|
|
2710
|
+
ngOnInit() {
|
|
2711
|
+
this.milisenconds = this.seconds * 1000;
|
|
2712
|
+
this.iconName = alertBarsUtil.setIcon(this.snackbarType);
|
|
2713
|
+
this.show();
|
|
2714
|
+
this.position = alertBarsUtil.setPosition(this.fixed);
|
|
2715
|
+
}
|
|
2716
|
+
//Show snackbar
|
|
2717
|
+
show() {
|
|
2718
|
+
this.timerStartedAt = Date.now();
|
|
2719
|
+
this.visible = true;
|
|
2720
|
+
this.timer = setTimeout(() => this.hide(), this.milisenconds);
|
|
2721
|
+
}
|
|
2722
|
+
//Hide snackbar
|
|
2723
|
+
hide() {
|
|
2724
|
+
this.visible = false;
|
|
2725
|
+
this.timerPausedAt = 0;
|
|
2726
|
+
this.timerStartedAt = 0;
|
|
2727
|
+
clearTimeout(this.timer);
|
|
2728
|
+
this.timer = undefined;
|
|
2729
|
+
}
|
|
2730
|
+
//Pause timer when mouse enter
|
|
2731
|
+
onMouseEnter() {
|
|
2732
|
+
this.visible = true;
|
|
2733
|
+
this.timerPausedAt = Date.now();
|
|
2734
|
+
clearTimeout(this.timer);
|
|
2735
|
+
}
|
|
2736
|
+
//Continue timer when mouse leave
|
|
2737
|
+
onMouseLeave() {
|
|
2738
|
+
const diff = this.timerPausedAt - this.timerStartedAt;
|
|
2739
|
+
if (diff <= 0) {
|
|
2740
|
+
return this.hide();
|
|
2741
|
+
}
|
|
2742
|
+
this.timer = setTimeout(() => this.hide(), this.milisenconds - diff);
|
|
2743
|
+
}
|
|
2744
|
+
//Hide snackbar when dismiss button is clicked
|
|
2745
|
+
dismissClick() {
|
|
2746
|
+
this.visible = false;
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
SnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SnackbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2750
|
+
SnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SnackbarComponent, selector: "ui-snackbar", inputs: { snackbarType: "snackbarType", message: "message", seconds: "seconds", includeDismissButton: "includeDismissButton", fixed: "fixed" }, ngImport: i0, template: "<div [ngClass]=\"snackbarType + ' ' + position\" [@openClose] *ngIf=\"visible\" class=\"snackbar-container\" (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\">\n <div class=\"snackbar-text\">\n <ui-icon [name]=\"iconName\" size=\"24\"></ui-icon>\n {{ message }}\n </div>\n <ui-button *ngIf=\"includeDismissButton\" type=\"text\" label=\"Dismiss\" (buttonClickEvent)=\"dismissClick()\"></ui-button>\n</div>", styles: [":host{display:flex;width:100%;justify-content:center}:host .snackbar-container{max-width:600px}:host .alert-container,:host .snackbar-container{margin:0 auto;display:flex;padding:0 14px;border-radius:4px;align-items:center;justify-content:space-between;opacity:1;min-height:48px}:host .alert-container.fixed,:host .snackbar-container.fixed{position:fixed}:host .alert-container.static,:host .snackbar-container.static{position:relative}:host .alert-container ui-icon,:host .snackbar-container ui-icon{margin-right:14px}:host .alert-container ui-button,:host .snackbar-container ui-button{margin-left:14px}:host .alert-container ::ng-deep button.mat-mdc-unelevated-button.big,:host .snackbar-container ::ng-deep button.mat-mdc-unelevated-button.big{padding:0;min-width:auto}:host .alert-container .alert-text,:host .alert-container .snackbar-text,:host .snackbar-container .alert-text,:host .snackbar-container .snackbar-text{display:flex;align-items:center}:host .alert-container .alert-text a,:host .alert-container .snackbar-text a,:host .snackbar-container .alert-text a,:host .snackbar-container .snackbar-text a{color:#000;text-decoration:underline;font-weight:700}:host .alert-container .alert-text a:hover,:host .alert-container .alert-text a:visited,:host .alert-container .alert-text a:focus,:host .alert-container .snackbar-text a:hover,:host .alert-container .snackbar-text a:visited,:host .alert-container .snackbar-text a:focus,:host .snackbar-container .alert-text a:hover,:host .snackbar-container .alert-text a:visited,:host .snackbar-container .alert-text a:focus,:host .snackbar-container .snackbar-text a:hover,:host .snackbar-container .snackbar-text a:visited,:host .snackbar-container .snackbar-text a:focus{text-decoration:none}:host .alert-container.success,:host .snackbar-container.success{background-color:#cbd6cb}:host .alert-container.info,:host .snackbar-container.info{background-color:#c8d7de}:host .alert-container.warning,:host .snackbar-container.warning{background-color:#f0d6bb}:host .alert-container.error,:host .snackbar-container.error{background-color:#e3c3c6}@media (max-width: 600px){:host .alert-container,:host .snackbar-container{padding:8px 14px}}:host .snackbar-container{bottom:10px;z-index:98}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "type", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "component", type: IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color"] }], animations: [
|
|
2751
|
+
trigger('openClose', [
|
|
2752
|
+
transition(':enter', [
|
|
2753
|
+
style({ bottom: '-55px', opacity: 0 }),
|
|
2754
|
+
animate('0.2s ease-out', style({ opacity: 1, bottom: '10px' })),
|
|
2755
|
+
]),
|
|
2756
|
+
transition(':leave', [
|
|
2757
|
+
style({ bottom: '10px', opacity: 1 }),
|
|
2758
|
+
animate('0.2s ease-in', style({ bottom: '-55px', opacity: 0 })),
|
|
2759
|
+
]),
|
|
2760
|
+
]),
|
|
2761
|
+
] });
|
|
2762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SnackbarComponent, decorators: [{
|
|
2763
|
+
type: Component,
|
|
2764
|
+
args: [{ selector: 'ui-snackbar', animations: [
|
|
2765
|
+
trigger('openClose', [
|
|
2766
|
+
transition(':enter', [
|
|
2767
|
+
style({ bottom: '-55px', opacity: 0 }),
|
|
2768
|
+
animate('0.2s ease-out', style({ opacity: 1, bottom: '10px' })),
|
|
2769
|
+
]),
|
|
2770
|
+
transition(':leave', [
|
|
2771
|
+
style({ bottom: '10px', opacity: 1 }),
|
|
2772
|
+
animate('0.2s ease-in', style({ bottom: '-55px', opacity: 0 })),
|
|
2773
|
+
]),
|
|
2774
|
+
]),
|
|
2775
|
+
], template: "<div [ngClass]=\"snackbarType + ' ' + position\" [@openClose] *ngIf=\"visible\" class=\"snackbar-container\" (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\">\n <div class=\"snackbar-text\">\n <ui-icon [name]=\"iconName\" size=\"24\"></ui-icon>\n {{ message }}\n </div>\n <ui-button *ngIf=\"includeDismissButton\" type=\"text\" label=\"Dismiss\" (buttonClickEvent)=\"dismissClick()\"></ui-button>\n</div>", styles: [":host{display:flex;width:100%;justify-content:center}:host .snackbar-container{max-width:600px}:host .alert-container,:host .snackbar-container{margin:0 auto;display:flex;padding:0 14px;border-radius:4px;align-items:center;justify-content:space-between;opacity:1;min-height:48px}:host .alert-container.fixed,:host .snackbar-container.fixed{position:fixed}:host .alert-container.static,:host .snackbar-container.static{position:relative}:host .alert-container ui-icon,:host .snackbar-container ui-icon{margin-right:14px}:host .alert-container ui-button,:host .snackbar-container ui-button{margin-left:14px}:host .alert-container ::ng-deep button.mat-mdc-unelevated-button.big,:host .snackbar-container ::ng-deep button.mat-mdc-unelevated-button.big{padding:0;min-width:auto}:host .alert-container .alert-text,:host .alert-container .snackbar-text,:host .snackbar-container .alert-text,:host .snackbar-container .snackbar-text{display:flex;align-items:center}:host .alert-container .alert-text a,:host .alert-container .snackbar-text a,:host .snackbar-container .alert-text a,:host .snackbar-container .snackbar-text a{color:#000;text-decoration:underline;font-weight:700}:host .alert-container .alert-text a:hover,:host .alert-container .alert-text a:visited,:host .alert-container .alert-text a:focus,:host .alert-container .snackbar-text a:hover,:host .alert-container .snackbar-text a:visited,:host .alert-container .snackbar-text a:focus,:host .snackbar-container .alert-text a:hover,:host .snackbar-container .alert-text a:visited,:host .snackbar-container .alert-text a:focus,:host .snackbar-container .snackbar-text a:hover,:host .snackbar-container .snackbar-text a:visited,:host .snackbar-container .snackbar-text a:focus{text-decoration:none}:host .alert-container.success,:host .snackbar-container.success{background-color:#cbd6cb}:host .alert-container.info,:host .snackbar-container.info{background-color:#c8d7de}:host .alert-container.warning,:host .snackbar-container.warning{background-color:#f0d6bb}:host .alert-container.error,:host .snackbar-container.error{background-color:#e3c3c6}@media (max-width: 600px){:host .alert-container,:host .snackbar-container{padding:8px 14px}}:host .snackbar-container{bottom:10px;z-index:98}\n"] }]
|
|
2776
|
+
}], ctorParameters: function () { return []; }, propDecorators: { snackbarType: [{
|
|
2777
|
+
type: Input
|
|
2778
|
+
}], message: [{
|
|
2779
|
+
type: Input
|
|
2780
|
+
}], seconds: [{
|
|
2781
|
+
type: Input
|
|
2782
|
+
}], includeDismissButton: [{
|
|
2783
|
+
type: Input
|
|
2784
|
+
}], fixed: [{
|
|
2785
|
+
type: Input
|
|
2786
|
+
}] } });
|
|
2787
|
+
|
|
2788
|
+
class SnackbarComponentModule {
|
|
2789
|
+
}
|
|
2790
|
+
SnackbarComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SnackbarComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2791
|
+
SnackbarComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SnackbarComponentModule, declarations: [SnackbarComponent], imports: [CommonModule, ButtonComponentModule, IconComponentModule], exports: [SnackbarComponent] });
|
|
2792
|
+
SnackbarComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SnackbarComponentModule, imports: [CommonModule, ButtonComponentModule, IconComponentModule] });
|
|
2793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SnackbarComponentModule, decorators: [{
|
|
2794
|
+
type: NgModule,
|
|
2795
|
+
args: [{
|
|
2796
|
+
declarations: [SnackbarComponent],
|
|
2797
|
+
imports: [CommonModule, ButtonComponentModule, IconComponentModule],
|
|
2798
|
+
exports: [SnackbarComponent],
|
|
2799
|
+
providers: [],
|
|
2800
|
+
}]
|
|
2801
|
+
}] });
|
|
2802
|
+
|
|
2803
|
+
class DataPropertyGetterPipe {
|
|
2804
|
+
transform(obj, keyName = '') {
|
|
2805
|
+
return this.getDeepVal(obj, keyName);
|
|
2806
|
+
}
|
|
2807
|
+
getDeepVal(obj, path) {
|
|
2808
|
+
if (typeof obj === 'undefined' || obj === null) {
|
|
2809
|
+
return '';
|
|
2810
|
+
}
|
|
2811
|
+
const splittedPath = path.split(/[\.\[\]\"\']{1,2}/);
|
|
2812
|
+
for (let i = 0, l = splittedPath.length; i < l; i++) {
|
|
2813
|
+
if (splittedPath[i] === '') {
|
|
2814
|
+
continue;
|
|
2815
|
+
}
|
|
2816
|
+
obj = obj[splittedPath[i]];
|
|
1380
2817
|
if (typeof obj === 'undefined' || obj === null) {
|
|
1381
2818
|
return '';
|
|
1382
2819
|
}
|
|
@@ -1384,9 +2821,9 @@ class DataPropertyGetterPipe {
|
|
|
1384
2821
|
return obj;
|
|
1385
2822
|
}
|
|
1386
2823
|
}
|
|
1387
|
-
DataPropertyGetterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1388
|
-
DataPropertyGetterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "
|
|
1389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2824
|
+
DataPropertyGetterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataPropertyGetterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2825
|
+
DataPropertyGetterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DataPropertyGetterPipe, name: "dataPropertyGetter" });
|
|
2826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataPropertyGetterPipe, decorators: [{
|
|
1390
2827
|
type: Pipe,
|
|
1391
2828
|
args: [{
|
|
1392
2829
|
name: 'dataPropertyGetter',
|
|
@@ -1407,10 +2844,6 @@ var ColumnAlignmentEnum;
|
|
|
1407
2844
|
})(ColumnAlignmentEnum || (ColumnAlignmentEnum = {}));
|
|
1408
2845
|
|
|
1409
2846
|
class DynamicComponentDirective {
|
|
1410
|
-
constructor(vcr) {
|
|
1411
|
-
this.vcr = vcr;
|
|
1412
|
-
this.subscription = new Subscription();
|
|
1413
|
-
}
|
|
1414
2847
|
set dynamicComponent(componentRenderer) {
|
|
1415
2848
|
if (componentRenderer.component) {
|
|
1416
2849
|
this.compRef = this.vcr.createComponent(componentRenderer.component);
|
|
@@ -1424,6 +2857,10 @@ class DynamicComponentDirective {
|
|
|
1424
2857
|
}
|
|
1425
2858
|
}
|
|
1426
2859
|
}
|
|
2860
|
+
constructor(vcr) {
|
|
2861
|
+
this.vcr = vcr;
|
|
2862
|
+
this.subscription = new Subscription();
|
|
2863
|
+
}
|
|
1427
2864
|
ngOnDestroy() {
|
|
1428
2865
|
if (this.compRef) {
|
|
1429
2866
|
this.compRef.destroy();
|
|
@@ -1431,9 +2868,9 @@ class DynamicComponentDirective {
|
|
|
1431
2868
|
this.subscription.unsubscribe();
|
|
1432
2869
|
}
|
|
1433
2870
|
}
|
|
1434
|
-
DynamicComponentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1435
|
-
DynamicComponentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2871
|
+
DynamicComponentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DynamicComponentDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2872
|
+
DynamicComponentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: DynamicComponentDirective, selector: "[dynamicComponent]", inputs: { dynamicComponent: "dynamicComponent" }, ngImport: i0 });
|
|
2873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DynamicComponentDirective, decorators: [{
|
|
1437
2874
|
type: Directive,
|
|
1438
2875
|
args: [{
|
|
1439
2876
|
selector: '[dynamicComponent]',
|
|
@@ -1443,6 +2880,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1443
2880
|
}] } });
|
|
1444
2881
|
|
|
1445
2882
|
class TableComponent {
|
|
2883
|
+
/**
|
|
2884
|
+
* @ignore
|
|
2885
|
+
*/
|
|
2886
|
+
set matSort(matSort) {
|
|
2887
|
+
this.dataSource.sort = matSort;
|
|
2888
|
+
this.dataSource.sortingDataAccessor = (item, property) => this.dataPropertyGetterPipe.transform(item, property);
|
|
2889
|
+
}
|
|
2890
|
+
/**
|
|
2891
|
+
* Data to be rendered
|
|
2892
|
+
*
|
|
2893
|
+
* @ignore
|
|
2894
|
+
* @type {IDataSource}
|
|
2895
|
+
* @memberof TableComponent
|
|
2896
|
+
*/
|
|
2897
|
+
set tableData(data) {
|
|
2898
|
+
if (data?.length) {
|
|
2899
|
+
this.setTableDataSource(data);
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
ngOnInit() {
|
|
2903
|
+
this.columnsToDisplay = this.tableColumns.map((tableColumn) => tableColumn.headerName);
|
|
2904
|
+
if (this.tableDetailColumns) {
|
|
2905
|
+
this.columnsDetailToDisplay = this.tableDetailColumns.columnDefs.map((tableColumn) => tableColumn.headerName);
|
|
2906
|
+
}
|
|
2907
|
+
}
|
|
1446
2908
|
constructor(dataPropertyGetterPipe) {
|
|
1447
2909
|
this.dataPropertyGetterPipe = dataPropertyGetterPipe;
|
|
1448
2910
|
/**
|
|
@@ -1489,31 +2951,6 @@ class TableComponent {
|
|
|
1489
2951
|
*/
|
|
1490
2952
|
this.DataType = ColumnTypeEnum;
|
|
1491
2953
|
}
|
|
1492
|
-
/**
|
|
1493
|
-
* @ignore
|
|
1494
|
-
*/
|
|
1495
|
-
set matSort(matSort) {
|
|
1496
|
-
this.dataSource.sort = matSort;
|
|
1497
|
-
this.dataSource.sortingDataAccessor = (item, property) => this.dataPropertyGetterPipe.transform(item, property);
|
|
1498
|
-
}
|
|
1499
|
-
/**
|
|
1500
|
-
* Data to be rendered
|
|
1501
|
-
*
|
|
1502
|
-
* @ignore
|
|
1503
|
-
* @type {IDataSource}
|
|
1504
|
-
* @memberof TableComponent
|
|
1505
|
-
*/
|
|
1506
|
-
set tableData(data) {
|
|
1507
|
-
if (data?.length) {
|
|
1508
|
-
this.setTableDataSource(data);
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
ngOnInit() {
|
|
1512
|
-
this.columnsToDisplay = this.tableColumns.map((tableColumn) => tableColumn.headerName);
|
|
1513
|
-
if (this.tableDetailColumns) {
|
|
1514
|
-
this.columnsDetailToDisplay = this.tableDetailColumns.columnDefs.map((tableColumn) => tableColumn.headerName);
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
2954
|
onSort(sortParams) {
|
|
1518
2955
|
const columnSort = this.tableColumns.find((column) => column.headerName === sortParams.active);
|
|
1519
2956
|
if (columnSort?.field) {
|
|
@@ -1549,8 +2986,8 @@ class TableComponent {
|
|
|
1549
2986
|
this.dataSourceDetail = new MatTableDataSource(rowData);
|
|
1550
2987
|
}
|
|
1551
2988
|
}
|
|
1552
|
-
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1553
|
-
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: TableComponent, selector: "ui-table", inputs: { tableDetails: "tableDetails", tableData: "tableData", tableColumns: "tableColumns", tableDetailColumns: "tableDetailColumns" }, outputs: { onSortEvent: "onSortEvent", onRowClickEvent: "onRowClickEvent", onDetailRowClickEvent: "onDetailRowClickEvent" }, viewQueries: [{ propertyName: "matSort", first: true, predicate: MatSort, descendants: true }], ngImport: i0, template: "<table *ngIf=\"!tableDetails\" mat-table [dataSource]=\"dataSource\" matSort (matSortChange)=\"onSort($event)\">\n <ng-container *ngFor=\"let tableColumn of tableColumns; let i = index\" [matColumnDef]=\"tableColumn.headerName\">\n <ng-container *ngIf=\"tableColumn.sortable; else notSortable\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" [mat-sort-header]=\"tableColumn.field || ''\"\n arrowPosition=\"after\" [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-container>\n <ng-template #notSortable>\n <th mat-header-cell *matHeaderCellDef [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-template>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"[tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : '', onRowClickEvent.observed && i === tableColumns.length - 1 ? 'row-detail': '']\">\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n <mat-icon *ngIf=\"onRowClickEvent.observed && i === tableColumns.length - 1\" class=\"row-detail-icon\">navigate_next</mat-icon>\n </td>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnsToDisplay;\" [ngClass]=\"{'row-clickable': onRowClickEvent.observed}\"></tr>\n</table>\n\n<table *ngIf=\"tableDetails\" mat-table [dataSource]=\"dataSource\" matSort (matSortChange)=\"onSort($event)\"\n multiTemplateDataRows>\n <ng-container *ngFor=\"let tableColumn of tableColumns; let i = index\" [matColumnDef]=\"tableColumn.headerName\">\n <ng-container *ngIf=\"tableColumn.sortable; else notSortable\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" [mat-sort-header]=\"tableColumn.field || ''\"\n arrowPosition=\"after\" [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-container>\n <ng-template #notSortable>\n <th mat-header-cell *matHeaderCellDef [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-template>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"[tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : '', i === 0 ? 'row-expand' : '']\">\n <mat-icon *ngIf=\"i === 0\" class=\"row-expand-icon\">{{ element === elementDetail ? 'expand_less' : 'expand_more' }}</mat-icon>\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n </td>\n </ng-container>\n\n <!-- Expanded Content Column -->\n <ng-container matColumnDef=\"expandedDetail\">\n <td mat-cell *matCellDef=\"let element\" [attr.colspan]=\"columnsToDisplay.length\">\n <div class=\"element-detail\" *ngIf=\"dataSourceDetail.data.length\"\n [@expandDetail]=\"element === elementDetail ? 'expanded' : 'collapsed'\">\n <table mat-table [dataSource]=\"dataSourceDetail\">\n <ng-container *ngFor=\"let tableColumn of tableDetailColumns.columnDefs\"\n [matColumnDef]=\"tableColumn.headerName\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" arrowPosition=\"after\"\n [ngStyle]=\"{width: tableColumn.styles?.width}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n {{tableColumn.headerName | uppercase}}\n </th>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onDetailRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : ''\"\n [ngStyle]=\"{padding: tableColumn.styles?.padding}\">\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnsDetailToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let rowDetail; columns: columnsDetailToDisplay;\"></tr>\n </table>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let element; columns: columnsToDisplay;\" class=\"element-row\"\n [ngClass]=\"{'expanded-row': elementDetail === element, 'row-clickable': tableDetails}\"\n (click)=\"toggleRow(element)\">\n </tr>\n <tr mat-row *matRowDef=\"let row; columns: ['expandedDetail']\" class=\"detail-row\"></tr>\n</table>\n\n<ng-template #tableDataTpl let-element=\"element\" let-tableColumn=\"tableColumn\">\n <div class=\"align-wrapper\">\n <ng-container [ngSwitch]=\"tableColumn.type\">\n <ng-container *ngSwitchCase=\"DataType.FIELD\">\n {{element | dataPropertyGetter: tableColumn.field}}\n </ng-container>\n <ng-container *ngSwitchCase=\"DataType.FUNCTION\">\n {{tableColumn.function?.(element)}}\n </ng-container>\n <ng-container *ngSwitchCase=\"DataType.RENDERER\">\n <ng-template\n [dynamicComponent]=\"tableColumn.renderer?.(element)\">\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{element | dataPropertyGetter: tableColumn.field}}\n </ng-container>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tableHeader let-tableColumn=\"tableColumn\">\n <div class=\"tooltip\" [ngStyle]=\"{'justify-content': tableColumn.styles?.alignment}\" [ngClass]=\"tableColumn.styles?.alignment\">\n <span>{{tableColumn.headerName | uppercase}}</span>\n <mat-icon *ngIf=\"tableColumn.headerTooltip\" [matTooltip]=\"tableColumn.headerTooltip\" class=\"tooltip-icon\" (click)=\"$event.stopPropagation()\">help</mat-icon>\n </div>\n</ng-template>\n", styles: ["table{cursor:initial;width:100%;overflow:hidden;border-radius:8px 8px 0 0;-webkit-user-select:none;user-select:none}table .mat-header-cell{font-weight:700;color:#000;padding:16px}table .mat-header-cell .tooltip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}table .mat-header-cell .tooltip mat-icon{color:#1f5260;font-size:18px;position:relative;top:3px;left:4px;cursor:pointer}table .mat-cell{padding:16px;text-align:justify}table td,table th,table .mat-row{border-width:.5px}table .mat-row:hover:not(.element-detail .mat-row).row-clickable{background-color:#ecf6f5;cursor:pointer}table ::ng-deep .mat-sort-header-arrow{color:#276678}table .label.active{background-color:#46a997;color:#fff}table .label{padding:0 8px;width:-moz-fit-content;width:fit-content;font-weight:600;font-size:10px;border-radius:4px;background-color:#e9f0f1;color:#000}table th.th-right{text-align:right}table th.th-right ::ng-deep .mat-sort-header-container{justify-content:end}table th.th-left{text-align:left}table th.th-left ::ng-deep .mat-sort-header-container{justify-content:start}table th.th-center{text-align:center}table th.th-center ::ng-deep .mat-sort-header-container{justify-content:center}table .row-detail{display:flex;justify-content:space-between}table .row-detail-icon{align-self:center;font-size:16px;height:16px;width:16px}table .row-expand{display:flex}table .row-expand-icon{align-self:center;font-size:14px;height:14px;width:14px;margin-right:8px}table .align-wrapper{display:flex}table td.td-right{text-align:right}table td.td-right .align-wrapper{justify-content:end}table td.td-left{text-align:left}table td.td-left .align-wrapper{justify-content:start}table td.td-center{text-align:center}table td.td-center .align-wrapper{justify-content:center}table tr.detail-row{height:0}table tr.element-row:not(.expanded-row):hover{background:whitesmoke}table tr.element-row:not(.expanded-row):active{background:#efefef}table .element-row td{border-bottom-width:0}table .mat-column-expandedDetail{padding:0}table .element-detail{overflow:hidden;display:flex}table .element-detail table{background-color:#f6f6f6}table .element-detail table .mat-header-row{visibility:collapse}table .element-detail table .mat-cell{border-width:0px}\n"], components: [{ type: i2$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { type: i3$1.MatSortHeader, selector: "[mat-sort-header]", inputs: ["disabled", "mat-sort-header", "arrowPosition", "start", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i2$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { type: i2$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.MatSort, selector: "[matSort]", inputs: ["matSortDisabled", "matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i2$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i2$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i5.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2$1.MatCellDef, selector: "[matCellDef]" }, { type: i2$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: i2$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { type: i2$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { type: i5.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i5.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: DynamicComponentDirective, selector: "[dynamicComponent]", inputs: ["dynamicComponent"] }, { type: i5.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i7.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "uppercase": i5.UpperCasePipe, "dataPropertyGetter": DataPropertyGetterPipe }, animations: [
|
|
2989
|
+
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableComponent, deps: [{ token: DataPropertyGetterPipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
2990
|
+
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableComponent, selector: "ui-table", inputs: { tableDetails: "tableDetails", tableData: "tableData", tableColumns: "tableColumns", tableDetailColumns: "tableDetailColumns" }, outputs: { onSortEvent: "onSortEvent", onRowClickEvent: "onRowClickEvent", onDetailRowClickEvent: "onDetailRowClickEvent" }, viewQueries: [{ propertyName: "matSort", first: true, predicate: MatSort, descendants: true }], ngImport: i0, template: "<table *ngIf=\"!tableDetails\" mat-table [dataSource]=\"dataSource\" matSort (matSortChange)=\"onSort($event)\">\n <ng-container *ngFor=\"let tableColumn of tableColumns; let i = index\" [matColumnDef]=\"tableColumn.headerName\">\n <ng-container *ngIf=\"tableColumn.sortable; else notSortable\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" [mat-sort-header]=\"tableColumn.field || ''\"\n arrowPosition=\"after\" [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-container>\n <ng-template #notSortable>\n <th mat-header-cell *matHeaderCellDef [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-template>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"[tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : '', onRowClickEvent.observed && i === tableColumns.length - 1 ? 'row-detail': '']\">\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n <mat-icon *ngIf=\"onRowClickEvent.observed && i === tableColumns.length - 1\" class=\"row-detail-icon\">navigate_next</mat-icon>\n </td>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnsToDisplay;\" [ngClass]=\"{'row-clickable': onRowClickEvent.observed}\"></tr>\n</table>\n\n<table *ngIf=\"tableDetails\" mat-table [dataSource]=\"dataSource\" matSort (matSortChange)=\"onSort($event)\"\n multiTemplateDataRows>\n <ng-container *ngFor=\"let tableColumn of tableColumns; let i = index\" [matColumnDef]=\"tableColumn.headerName\">\n <ng-container *ngIf=\"tableColumn.sortable; else notSortable\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" [mat-sort-header]=\"tableColumn.field || ''\"\n arrowPosition=\"after\" [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-container>\n <ng-template #notSortable>\n <th mat-header-cell *matHeaderCellDef [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-template>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"[tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : '', i === 0 ? 'row-expand' : '']\">\n <mat-icon *ngIf=\"i === 0\" class=\"row-expand-icon\">{{ element === elementDetail ? 'expand_less' : 'expand_more' }}</mat-icon>\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n </td>\n </ng-container>\n\n <!-- Expanded Content Column -->\n <ng-container matColumnDef=\"expandedDetail\">\n <td mat-cell *matCellDef=\"let element\" [attr.colspan]=\"columnsToDisplay.length\">\n <div class=\"element-detail\" *ngIf=\"dataSourceDetail.data.length\"\n [@expandDetail]=\"element === elementDetail ? 'expanded' : 'collapsed'\">\n <table mat-table [dataSource]=\"dataSourceDetail\">\n <ng-container *ngFor=\"let tableColumn of tableDetailColumns.columnDefs\"\n [matColumnDef]=\"tableColumn.headerName\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" arrowPosition=\"after\"\n [ngStyle]=\"{width: tableColumn.styles?.width}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n {{tableColumn.headerName | uppercase}}\n </th>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onDetailRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : ''\"\n [ngStyle]=\"{padding: tableColumn.styles?.padding}\">\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnsDetailToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let rowDetail; columns: columnsDetailToDisplay;\"></tr>\n </table>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let element; columns: columnsToDisplay;\" class=\"element-row\"\n [ngClass]=\"{'expanded-row': elementDetail === element, 'row-clickable': tableDetails}\"\n (click)=\"toggleRow(element)\">\n </tr>\n <tr mat-row *matRowDef=\"let row; columns: ['expandedDetail']\" class=\"detail-row\"></tr>\n</table>\n\n<ng-template #tableDataTpl let-element=\"element\" let-tableColumn=\"tableColumn\">\n <div class=\"align-wrapper\">\n <ng-container [ngSwitch]=\"tableColumn.type\">\n <ng-container *ngSwitchCase=\"DataType.FIELD\">\n {{element | dataPropertyGetter: tableColumn.field}}\n </ng-container>\n <ng-container *ngSwitchCase=\"DataType.FUNCTION\">\n {{tableColumn.function?.(element)}}\n </ng-container>\n <ng-container *ngSwitchCase=\"DataType.RENDERER\">\n <ng-template\n [dynamicComponent]=\"tableColumn.renderer?.(element)\">\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{element | dataPropertyGetter: tableColumn.field}}\n </ng-container>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tableHeader let-tableColumn=\"tableColumn\">\n <div class=\"tooltip\" [ngStyle]=\"{'justify-content': tableColumn.styles?.alignment}\" [ngClass]=\"tableColumn.styles?.alignment\">\n <span>{{tableColumn.headerName | uppercase}}</span>\n <mat-icon *ngIf=\"tableColumn.headerTooltip\" [matTooltip]=\"tableColumn.headerTooltip\" class=\"tooltip-icon\" (click)=\"$event.stopPropagation()\">help</mat-icon>\n </div>\n</ng-template>\n", styles: ["table{cursor:initial;width:100%;overflow:hidden;border-radius:8px 8px 0 0;-webkit-user-select:none;user-select:none}table .mat-mdc-header-cell{font-weight:700;color:#000;padding:16px}table .mat-mdc-header-cell .tooltip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}table .mat-mdc-header-cell .tooltip mat-icon{color:#1f5260;font-size:18px;position:relative;top:3px;left:4px;cursor:pointer}table .mat-mdc-cell{padding:16px;text-align:justify}table td,table th,table .mat-mdc-row{border-width:.5px}table .mat-mdc-row:hover:not(.element-detail .mat-row).row-clickable{background-color:#ecf6f5;cursor:pointer}table ::ng-deep .mat-sort-header-arrow{color:#276678}table .label.active{background-color:#46a997;color:#fff}table .label{padding:0 8px;width:-moz-fit-content;width:fit-content;font-weight:600;font-size:10px;border-radius:4px;background-color:#e9f0f1;color:#000}table th.th-right{text-align:right}table th.th-right ::ng-deep .mat-sort-header-container{justify-content:end}table th.th-left{text-align:left}table th.th-left ::ng-deep .mat-sort-header-container{justify-content:start}table th.th-center{text-align:center}table th.th-center ::ng-deep .mat-sort-header-container{justify-content:center}table .row-detail{display:flex;justify-content:space-between}table .row-detail-icon{align-self:center;font-size:16px;height:16px;width:16px}table .row-expand{display:flex}table .row-expand-icon{align-self:center;font-size:14px;height:14px;width:14px;margin-right:8px}table .align-wrapper{display:flex}table td.td-right{text-align:right}table td.td-right .align-wrapper{justify-content:end}table td.td-left{text-align:left}table td.td-left .align-wrapper{justify-content:start}table td.td-center{text-align:center}table td.td-center .align-wrapper{justify-content:center}table tr.detail-row{height:0}table tr.element-row:not(.expanded-row):hover{background:whitesmoke}table tr.element-row:not(.expanded-row):active{background:#efefef}table .element-row td{border-bottom-width:0}table .mat-column-expandedDetail{padding:0}table .element-detail{overflow:hidden;display:flex}table .element-detail table{background-color:#f6f6f6}table .element-detail table .mat-mdc-header-row{visibility:collapse}table .element-detail table .mat-mdc-cell{border-width:0px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i3$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i3$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i4$1.MatSort, selector: "[matSort]", inputs: ["matSortDisabled", "matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i4$1.MatSortHeader, selector: "[mat-sort-header]", inputs: ["disabled", "mat-sort-header", "arrowPosition", "start", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: DynamicComponentDirective, selector: "[dynamicComponent]", inputs: ["dynamicComponent"] }, { kind: "pipe", type: i1$1.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: DataPropertyGetterPipe, name: "dataPropertyGetter" }], animations: [
|
|
1554
2991
|
trigger('expandDetail', [
|
|
1555
2992
|
state('collapsed, void', style({ height: '0px' })),
|
|
1556
2993
|
state('expanded', style({ height: '*' })),
|
|
@@ -1558,7 +2995,7 @@ TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
|
1558
2995
|
transition('expanded <=> void', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
|
|
1559
2996
|
]),
|
|
1560
2997
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableComponent, decorators: [{
|
|
1562
2999
|
type: Component,
|
|
1563
3000
|
args: [{ selector: 'ui-table', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
1564
3001
|
trigger('expandDetail', [
|
|
@@ -1567,7 +3004,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1567
3004
|
transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
|
|
1568
3005
|
transition('expanded <=> void', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
|
|
1569
3006
|
]),
|
|
1570
|
-
], template: "<table *ngIf=\"!tableDetails\" mat-table [dataSource]=\"dataSource\" matSort (matSortChange)=\"onSort($event)\">\n <ng-container *ngFor=\"let tableColumn of tableColumns; let i = index\" [matColumnDef]=\"tableColumn.headerName\">\n <ng-container *ngIf=\"tableColumn.sortable; else notSortable\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" [mat-sort-header]=\"tableColumn.field || ''\"\n arrowPosition=\"after\" [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-container>\n <ng-template #notSortable>\n <th mat-header-cell *matHeaderCellDef [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-template>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"[tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : '', onRowClickEvent.observed && i === tableColumns.length - 1 ? 'row-detail': '']\">\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n <mat-icon *ngIf=\"onRowClickEvent.observed && i === tableColumns.length - 1\" class=\"row-detail-icon\">navigate_next</mat-icon>\n </td>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnsToDisplay;\" [ngClass]=\"{'row-clickable': onRowClickEvent.observed}\"></tr>\n</table>\n\n<table *ngIf=\"tableDetails\" mat-table [dataSource]=\"dataSource\" matSort (matSortChange)=\"onSort($event)\"\n multiTemplateDataRows>\n <ng-container *ngFor=\"let tableColumn of tableColumns; let i = index\" [matColumnDef]=\"tableColumn.headerName\">\n <ng-container *ngIf=\"tableColumn.sortable; else notSortable\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" [mat-sort-header]=\"tableColumn.field || ''\"\n arrowPosition=\"after\" [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-container>\n <ng-template #notSortable>\n <th mat-header-cell *matHeaderCellDef [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-template>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"[tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : '', i === 0 ? 'row-expand' : '']\">\n <mat-icon *ngIf=\"i === 0\" class=\"row-expand-icon\">{{ element === elementDetail ? 'expand_less' : 'expand_more' }}</mat-icon>\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n </td>\n </ng-container>\n\n <!-- Expanded Content Column -->\n <ng-container matColumnDef=\"expandedDetail\">\n <td mat-cell *matCellDef=\"let element\" [attr.colspan]=\"columnsToDisplay.length\">\n <div class=\"element-detail\" *ngIf=\"dataSourceDetail.data.length\"\n [@expandDetail]=\"element === elementDetail ? 'expanded' : 'collapsed'\">\n <table mat-table [dataSource]=\"dataSourceDetail\">\n <ng-container *ngFor=\"let tableColumn of tableDetailColumns.columnDefs\"\n [matColumnDef]=\"tableColumn.headerName\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" arrowPosition=\"after\"\n [ngStyle]=\"{width: tableColumn.styles?.width}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n {{tableColumn.headerName | uppercase}}\n </th>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onDetailRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : ''\"\n [ngStyle]=\"{padding: tableColumn.styles?.padding}\">\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnsDetailToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let rowDetail; columns: columnsDetailToDisplay;\"></tr>\n </table>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let element; columns: columnsToDisplay;\" class=\"element-row\"\n [ngClass]=\"{'expanded-row': elementDetail === element, 'row-clickable': tableDetails}\"\n (click)=\"toggleRow(element)\">\n </tr>\n <tr mat-row *matRowDef=\"let row; columns: ['expandedDetail']\" class=\"detail-row\"></tr>\n</table>\n\n<ng-template #tableDataTpl let-element=\"element\" let-tableColumn=\"tableColumn\">\n <div class=\"align-wrapper\">\n <ng-container [ngSwitch]=\"tableColumn.type\">\n <ng-container *ngSwitchCase=\"DataType.FIELD\">\n {{element | dataPropertyGetter: tableColumn.field}}\n </ng-container>\n <ng-container *ngSwitchCase=\"DataType.FUNCTION\">\n {{tableColumn.function?.(element)}}\n </ng-container>\n <ng-container *ngSwitchCase=\"DataType.RENDERER\">\n <ng-template\n [dynamicComponent]=\"tableColumn.renderer?.(element)\">\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{element | dataPropertyGetter: tableColumn.field}}\n </ng-container>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tableHeader let-tableColumn=\"tableColumn\">\n <div class=\"tooltip\" [ngStyle]=\"{'justify-content': tableColumn.styles?.alignment}\" [ngClass]=\"tableColumn.styles?.alignment\">\n <span>{{tableColumn.headerName | uppercase}}</span>\n <mat-icon *ngIf=\"tableColumn.headerTooltip\" [matTooltip]=\"tableColumn.headerTooltip\" class=\"tooltip-icon\" (click)=\"$event.stopPropagation()\">help</mat-icon>\n </div>\n</ng-template>\n", styles: ["table{cursor:initial;width:100%;overflow:hidden;border-radius:8px 8px 0 0;-webkit-user-select:none;user-select:none}table .mat-header-cell{font-weight:700;color:#000;padding:16px}table .mat-header-cell .tooltip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}table .mat-header-cell .tooltip mat-icon{color:#1f5260;font-size:18px;position:relative;top:3px;left:4px;cursor:pointer}table .mat-cell{padding:16px;text-align:justify}table td,table th,table .mat-row{border-width:.5px}table .mat-row:hover:not(.element-detail .mat-row).row-clickable{background-color:#ecf6f5;cursor:pointer}table ::ng-deep .mat-sort-header-arrow{color:#276678}table .label.active{background-color:#46a997;color:#fff}table .label{padding:0 8px;width:-moz-fit-content;width:fit-content;font-weight:600;font-size:10px;border-radius:4px;background-color:#e9f0f1;color:#000}table th.th-right{text-align:right}table th.th-right ::ng-deep .mat-sort-header-container{justify-content:end}table th.th-left{text-align:left}table th.th-left ::ng-deep .mat-sort-header-container{justify-content:start}table th.th-center{text-align:center}table th.th-center ::ng-deep .mat-sort-header-container{justify-content:center}table .row-detail{display:flex;justify-content:space-between}table .row-detail-icon{align-self:center;font-size:16px;height:16px;width:16px}table .row-expand{display:flex}table .row-expand-icon{align-self:center;font-size:14px;height:14px;width:14px;margin-right:8px}table .align-wrapper{display:flex}table td.td-right{text-align:right}table td.td-right .align-wrapper{justify-content:end}table td.td-left{text-align:left}table td.td-left .align-wrapper{justify-content:start}table td.td-center{text-align:center}table td.td-center .align-wrapper{justify-content:center}table tr.detail-row{height:0}table tr.element-row:not(.expanded-row):hover{background:whitesmoke}table tr.element-row:not(.expanded-row):active{background:#efefef}table .element-row td{border-bottom-width:0}table .mat-column-expandedDetail{padding:0}table .element-detail{overflow:hidden;display:flex}table .element-detail table{background-color:#f6f6f6}table .element-detail table .mat-header-row{visibility:collapse}table .element-detail table .mat-cell{border-width:0px}\n"] }]
|
|
3007
|
+
], template: "<table *ngIf=\"!tableDetails\" mat-table [dataSource]=\"dataSource\" matSort (matSortChange)=\"onSort($event)\">\n <ng-container *ngFor=\"let tableColumn of tableColumns; let i = index\" [matColumnDef]=\"tableColumn.headerName\">\n <ng-container *ngIf=\"tableColumn.sortable; else notSortable\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" [mat-sort-header]=\"tableColumn.field || ''\"\n arrowPosition=\"after\" [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-container>\n <ng-template #notSortable>\n <th mat-header-cell *matHeaderCellDef [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-template>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"[tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : '', onRowClickEvent.observed && i === tableColumns.length - 1 ? 'row-detail': '']\">\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n <mat-icon *ngIf=\"onRowClickEvent.observed && i === tableColumns.length - 1\" class=\"row-detail-icon\">navigate_next</mat-icon>\n </td>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnsToDisplay;\" [ngClass]=\"{'row-clickable': onRowClickEvent.observed}\"></tr>\n</table>\n\n<table *ngIf=\"tableDetails\" mat-table [dataSource]=\"dataSource\" matSort (matSortChange)=\"onSort($event)\"\n multiTemplateDataRows>\n <ng-container *ngFor=\"let tableColumn of tableColumns; let i = index\" [matColumnDef]=\"tableColumn.headerName\">\n <ng-container *ngIf=\"tableColumn.sortable; else notSortable\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" [mat-sort-header]=\"tableColumn.field || ''\"\n arrowPosition=\"after\" [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-container>\n <ng-template #notSortable>\n <th mat-header-cell *matHeaderCellDef [ngStyle]=\"{width: tableColumn.styles?.width, minWidth: tableColumn.styles?.['min-width']}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n <ng-container *ngTemplateOutlet=\"tableHeader; context: {tableColumn}\"></ng-container>\n </th>\n </ng-template>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"[tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : '', i === 0 ? 'row-expand' : '']\">\n <mat-icon *ngIf=\"i === 0\" class=\"row-expand-icon\">{{ element === elementDetail ? 'expand_less' : 'expand_more' }}</mat-icon>\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n </td>\n </ng-container>\n\n <!-- Expanded Content Column -->\n <ng-container matColumnDef=\"expandedDetail\">\n <td mat-cell *matCellDef=\"let element\" [attr.colspan]=\"columnsToDisplay.length\">\n <div class=\"element-detail\" *ngIf=\"dataSourceDetail.data.length\"\n [@expandDetail]=\"element === elementDetail ? 'expanded' : 'collapsed'\">\n <table mat-table [dataSource]=\"dataSourceDetail\">\n <ng-container *ngFor=\"let tableColumn of tableDetailColumns.columnDefs\"\n [matColumnDef]=\"tableColumn.headerName\">\n <th mat-header-cell *matHeaderCellDef=\"let element\" arrowPosition=\"after\"\n [ngStyle]=\"{width: tableColumn.styles?.width}\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'th-'+tableColumn.styles?.alignment : ''\">\n {{tableColumn.headerName | uppercase}}\n </th>\n <td mat-cell *matCellDef=\"let element\" (click)=\"onDetailRowClick(element)\"\n [align]=\"tableColumn.styles?.alignment\"\n [ngClass]=\"tableColumn.styles?.alignment ? 'td-'+tableColumn.styles?.alignment : ''\"\n [ngStyle]=\"{padding: tableColumn.styles?.padding}\">\n <ng-container *ngTemplateOutlet=\"tableDataTpl; context: {element, tableColumn}\"></ng-container>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnsDetailToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let rowDetail; columns: columnsDetailToDisplay;\"></tr>\n </table>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplay\"></tr>\n <tr mat-row *matRowDef=\"let element; columns: columnsToDisplay;\" class=\"element-row\"\n [ngClass]=\"{'expanded-row': elementDetail === element, 'row-clickable': tableDetails}\"\n (click)=\"toggleRow(element)\">\n </tr>\n <tr mat-row *matRowDef=\"let row; columns: ['expandedDetail']\" class=\"detail-row\"></tr>\n</table>\n\n<ng-template #tableDataTpl let-element=\"element\" let-tableColumn=\"tableColumn\">\n <div class=\"align-wrapper\">\n <ng-container [ngSwitch]=\"tableColumn.type\">\n <ng-container *ngSwitchCase=\"DataType.FIELD\">\n {{element | dataPropertyGetter: tableColumn.field}}\n </ng-container>\n <ng-container *ngSwitchCase=\"DataType.FUNCTION\">\n {{tableColumn.function?.(element)}}\n </ng-container>\n <ng-container *ngSwitchCase=\"DataType.RENDERER\">\n <ng-template\n [dynamicComponent]=\"tableColumn.renderer?.(element)\">\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{element | dataPropertyGetter: tableColumn.field}}\n </ng-container>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #tableHeader let-tableColumn=\"tableColumn\">\n <div class=\"tooltip\" [ngStyle]=\"{'justify-content': tableColumn.styles?.alignment}\" [ngClass]=\"tableColumn.styles?.alignment\">\n <span>{{tableColumn.headerName | uppercase}}</span>\n <mat-icon *ngIf=\"tableColumn.headerTooltip\" [matTooltip]=\"tableColumn.headerTooltip\" class=\"tooltip-icon\" (click)=\"$event.stopPropagation()\">help</mat-icon>\n </div>\n</ng-template>\n", styles: ["table{cursor:initial;width:100%;overflow:hidden;border-radius:8px 8px 0 0;-webkit-user-select:none;user-select:none}table .mat-mdc-header-cell{font-weight:700;color:#000;padding:16px}table .mat-mdc-header-cell .tooltip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}table .mat-mdc-header-cell .tooltip mat-icon{color:#1f5260;font-size:18px;position:relative;top:3px;left:4px;cursor:pointer}table .mat-mdc-cell{padding:16px;text-align:justify}table td,table th,table .mat-mdc-row{border-width:.5px}table .mat-mdc-row:hover:not(.element-detail .mat-row).row-clickable{background-color:#ecf6f5;cursor:pointer}table ::ng-deep .mat-sort-header-arrow{color:#276678}table .label.active{background-color:#46a997;color:#fff}table .label{padding:0 8px;width:-moz-fit-content;width:fit-content;font-weight:600;font-size:10px;border-radius:4px;background-color:#e9f0f1;color:#000}table th.th-right{text-align:right}table th.th-right ::ng-deep .mat-sort-header-container{justify-content:end}table th.th-left{text-align:left}table th.th-left ::ng-deep .mat-sort-header-container{justify-content:start}table th.th-center{text-align:center}table th.th-center ::ng-deep .mat-sort-header-container{justify-content:center}table .row-detail{display:flex;justify-content:space-between}table .row-detail-icon{align-self:center;font-size:16px;height:16px;width:16px}table .row-expand{display:flex}table .row-expand-icon{align-self:center;font-size:14px;height:14px;width:14px;margin-right:8px}table .align-wrapper{display:flex}table td.td-right{text-align:right}table td.td-right .align-wrapper{justify-content:end}table td.td-left{text-align:left}table td.td-left .align-wrapper{justify-content:start}table td.td-center{text-align:center}table td.td-center .align-wrapper{justify-content:center}table tr.detail-row{height:0}table tr.element-row:not(.expanded-row):hover{background:whitesmoke}table tr.element-row:not(.expanded-row):active{background:#efefef}table .element-row td{border-bottom-width:0}table .mat-column-expandedDetail{padding:0}table .element-detail{overflow:hidden;display:flex}table .element-detail table{background-color:#f6f6f6}table .element-detail table .mat-mdc-header-row{visibility:collapse}table .element-detail table .mat-mdc-cell{border-width:0px}\n"] }]
|
|
1571
3008
|
}], ctorParameters: function () { return [{ type: DataPropertyGetterPipe }]; }, propDecorators: { matSort: [{
|
|
1572
3009
|
type: ViewChild,
|
|
1573
3010
|
args: [MatSort]
|
|
@@ -1589,10 +3026,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1589
3026
|
|
|
1590
3027
|
class TableComponentModule {
|
|
1591
3028
|
}
|
|
1592
|
-
TableComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1593
|
-
TableComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
1594
|
-
TableComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3029
|
+
TableComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3030
|
+
TableComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TableComponentModule, declarations: [TableComponent, DataPropertyGetterPipe, DynamicComponentDirective], imports: [CommonModule, MatTableModule, MatSortModule, MatIconModule, MatTooltipModule], exports: [TableComponent] });
|
|
3031
|
+
TableComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableComponentModule, providers: [DataPropertyGetterPipe], imports: [CommonModule, MatTableModule, MatSortModule, MatIconModule, MatTooltipModule] });
|
|
3032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableComponentModule, decorators: [{
|
|
1596
3033
|
type: NgModule,
|
|
1597
3034
|
args: [{
|
|
1598
3035
|
declarations: [TableComponent, DataPropertyGetterPipe, DynamicComponentDirective],
|
|
@@ -1602,11 +3039,305 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1602
3039
|
}]
|
|
1603
3040
|
}] });
|
|
1604
3041
|
|
|
3042
|
+
class TagComponent {
|
|
3043
|
+
constructor() {
|
|
3044
|
+
/**
|
|
3045
|
+
* Color
|
|
3046
|
+
*
|
|
3047
|
+
* @type {TagColor}
|
|
3048
|
+
* @memberof TagComponent
|
|
3049
|
+
*/
|
|
3050
|
+
this.color = 'teal';
|
|
3051
|
+
}
|
|
3052
|
+
}
|
|
3053
|
+
TagComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3054
|
+
TagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TagComponent, selector: "ui-tag", inputs: { text: "text", color: "color" }, ngImport: i0, template: "<span [class]=\"color\">{{ text }}</span>\n", styles: [":host span{display:inline-flex;color:#fff;font-size:12px;line-height:16px;padding:3px 8px;border-radius:4px;text-transform:uppercase;margin-right:8px}:host span.teal{background-color:#46a997}:host span.petrol{background-color:#276678}:host span.grey{background-color:#e0e0e0;color:#000}:host span.red{background-color:#cb7b7a}:host span.gold{background-color:#cca45f}\n"] });
|
|
3055
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagComponent, decorators: [{
|
|
3056
|
+
type: Component,
|
|
3057
|
+
args: [{ selector: 'ui-tag', template: "<span [class]=\"color\">{{ text }}</span>\n", styles: [":host span{display:inline-flex;color:#fff;font-size:12px;line-height:16px;padding:3px 8px;border-radius:4px;text-transform:uppercase;margin-right:8px}:host span.teal{background-color:#46a997}:host span.petrol{background-color:#276678}:host span.grey{background-color:#e0e0e0;color:#000}:host span.red{background-color:#cb7b7a}:host span.gold{background-color:#cca45f}\n"] }]
|
|
3058
|
+
}], ctorParameters: function () { return []; }, propDecorators: { text: [{
|
|
3059
|
+
type: Input
|
|
3060
|
+
}], color: [{
|
|
3061
|
+
type: Input
|
|
3062
|
+
}] } });
|
|
3063
|
+
|
|
3064
|
+
class TagComponentModule {
|
|
3065
|
+
}
|
|
3066
|
+
TagComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3067
|
+
TagComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TagComponentModule, declarations: [TagComponent], imports: [CommonModule], exports: [TagComponent] });
|
|
3068
|
+
TagComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagComponentModule, imports: [CommonModule] });
|
|
3069
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagComponentModule, decorators: [{
|
|
3070
|
+
type: NgModule,
|
|
3071
|
+
args: [{
|
|
3072
|
+
declarations: [TagComponent],
|
|
3073
|
+
imports: [CommonModule],
|
|
3074
|
+
exports: [TagComponent],
|
|
3075
|
+
providers: [],
|
|
3076
|
+
}]
|
|
3077
|
+
}] });
|
|
3078
|
+
|
|
3079
|
+
var TooltipPositionType;
|
|
3080
|
+
(function (TooltipPositionType) {
|
|
3081
|
+
TooltipPositionType["TOP"] = "top";
|
|
3082
|
+
TooltipPositionType["BOTTOM"] = "bottom";
|
|
3083
|
+
TooltipPositionType["LEFT"] = "left";
|
|
3084
|
+
TooltipPositionType["RIGHT"] = "right";
|
|
3085
|
+
})(TooltipPositionType || (TooltipPositionType = {}));
|
|
3086
|
+
|
|
3087
|
+
class TooltipComponent {
|
|
3088
|
+
constructor() {
|
|
3089
|
+
/**
|
|
3090
|
+
* Allows the user to define the position of the tooltip relative to the parent element.
|
|
3091
|
+
*
|
|
3092
|
+
* @type {TooltipPositionType}
|
|
3093
|
+
* @memberof TooltipComponent
|
|
3094
|
+
*/
|
|
3095
|
+
this.position = TooltipPositionType.TOP;
|
|
3096
|
+
/**
|
|
3097
|
+
* The message to be displayed in the tooltip.
|
|
3098
|
+
*
|
|
3099
|
+
* @type {string}
|
|
3100
|
+
* @memberof TooltipComponent
|
|
3101
|
+
*/
|
|
3102
|
+
this.message = '';
|
|
3103
|
+
}
|
|
3104
|
+
ngOnInit() {
|
|
3105
|
+
this.setPosition();
|
|
3106
|
+
}
|
|
3107
|
+
//set position
|
|
3108
|
+
setPosition() {
|
|
3109
|
+
switch (this.position) {
|
|
3110
|
+
case TooltipPositionType.TOP:
|
|
3111
|
+
this.matPosition = 'above';
|
|
3112
|
+
break;
|
|
3113
|
+
case TooltipPositionType.BOTTOM:
|
|
3114
|
+
this.matPosition = 'below';
|
|
3115
|
+
break;
|
|
3116
|
+
default:
|
|
3117
|
+
this.matPosition = this.position;
|
|
3118
|
+
break;
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3123
|
+
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TooltipComponent, selector: "ui-tooltip", inputs: { position: "position", message: "message" }, ngImport: i0, template: "<div [matTooltip]=\"message\" [matTooltipPosition]=\"matPosition\" matTooltipClass=\"tooltip\" aria-label=\"tooltip\">\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
3125
|
+
type: Component,
|
|
3126
|
+
args: [{ selector: 'ui-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [matTooltip]=\"message\" [matTooltipPosition]=\"matPosition\" matTooltipClass=\"tooltip\" aria-label=\"tooltip\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
3127
|
+
}], propDecorators: { position: [{
|
|
3128
|
+
type: Input
|
|
3129
|
+
}], message: [{
|
|
3130
|
+
type: Input
|
|
3131
|
+
}] } });
|
|
3132
|
+
|
|
3133
|
+
class TooltipComponentModule {
|
|
3134
|
+
}
|
|
3135
|
+
TooltipComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TooltipComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3136
|
+
TooltipComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TooltipComponentModule, declarations: [TooltipComponent], imports: [MatTooltipModule], exports: [TooltipComponent] });
|
|
3137
|
+
TooltipComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TooltipComponentModule, imports: [MatTooltipModule] });
|
|
3138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TooltipComponentModule, decorators: [{
|
|
3139
|
+
type: NgModule,
|
|
3140
|
+
args: [{
|
|
3141
|
+
declarations: [TooltipComponent],
|
|
3142
|
+
imports: [MatTooltipModule],
|
|
3143
|
+
exports: [TooltipComponent],
|
|
3144
|
+
}]
|
|
3145
|
+
}] });
|
|
3146
|
+
|
|
3147
|
+
class DropdownComponent {
|
|
3148
|
+
constructor() {
|
|
3149
|
+
this.class = 'ui-dropdown';
|
|
3150
|
+
/**
|
|
3151
|
+
* Text content will be applied to the input element if present.
|
|
3152
|
+
*
|
|
3153
|
+
* @type {string}
|
|
3154
|
+
* @memberof DropdownComponent
|
|
3155
|
+
*/
|
|
3156
|
+
this.label = '';
|
|
3157
|
+
/**
|
|
3158
|
+
* Unique id of the element.
|
|
3159
|
+
*
|
|
3160
|
+
* @type {string}
|
|
3161
|
+
* @memberof DropdownComponent
|
|
3162
|
+
*/
|
|
3163
|
+
this.id = '';
|
|
3164
|
+
/**
|
|
3165
|
+
* Whether the component is disabled.
|
|
3166
|
+
* Default: false.
|
|
3167
|
+
*
|
|
3168
|
+
* @type {boolean}
|
|
3169
|
+
* @memberof DropdownComponent
|
|
3170
|
+
*/
|
|
3171
|
+
this.disabled = false;
|
|
3172
|
+
/**
|
|
3173
|
+
* List of options.
|
|
3174
|
+
*
|
|
3175
|
+
* @type {OptionType}
|
|
3176
|
+
* @memberof DropdownComponent
|
|
3177
|
+
*/
|
|
3178
|
+
this.valueList = [];
|
|
3179
|
+
/**
|
|
3180
|
+
* Whether the user should be allowed to clear the values.
|
|
3181
|
+
* Default: true.
|
|
3182
|
+
*
|
|
3183
|
+
* @type {boolean}
|
|
3184
|
+
* @memberof DropdownComponent
|
|
3185
|
+
*/
|
|
3186
|
+
this.allowClear = true;
|
|
3187
|
+
/**
|
|
3188
|
+
* This will allow the user to select multiple values at once.
|
|
3189
|
+
* Default: true.
|
|
3190
|
+
*
|
|
3191
|
+
* @type {boolean}
|
|
3192
|
+
* @memberof DropdownComponent
|
|
3193
|
+
*/
|
|
3194
|
+
this.allowMultipleSelection = false;
|
|
3195
|
+
/**
|
|
3196
|
+
* Whether the component is required.
|
|
3197
|
+
* Default: false.
|
|
3198
|
+
*
|
|
3199
|
+
* @type {boolean}
|
|
3200
|
+
* @memberof DropdownComponent
|
|
3201
|
+
*/
|
|
3202
|
+
this.required = false;
|
|
3203
|
+
/**
|
|
3204
|
+
* @ignore
|
|
3205
|
+
*/
|
|
3206
|
+
this.onChange = (_) => { };
|
|
3207
|
+
/**
|
|
3208
|
+
* @ignore
|
|
3209
|
+
*/
|
|
3210
|
+
this.onTouch = () => { };
|
|
3211
|
+
this.errors = [];
|
|
3212
|
+
this.valueList = [];
|
|
3213
|
+
}
|
|
3214
|
+
ngOnInit() {
|
|
3215
|
+
this.errorsLength = this.setErrorsLength();
|
|
3216
|
+
}
|
|
3217
|
+
clearValue(event) {
|
|
3218
|
+
event?.stopPropagation();
|
|
3219
|
+
this.value = '';
|
|
3220
|
+
}
|
|
3221
|
+
//Save select value
|
|
3222
|
+
onChangeOption(event) {
|
|
3223
|
+
this.value = event.value;
|
|
3224
|
+
this.errorsLength = this.setErrorsLength();
|
|
3225
|
+
this.onTouch();
|
|
3226
|
+
this.onChange(this.value);
|
|
3227
|
+
}
|
|
3228
|
+
//Set errors length for validation
|
|
3229
|
+
setErrorsLength() {
|
|
3230
|
+
if (!!this.errors) {
|
|
3231
|
+
return this.errors.length > 0 ? true : false;
|
|
3232
|
+
}
|
|
3233
|
+
return false;
|
|
3234
|
+
}
|
|
3235
|
+
writeValue(value) {
|
|
3236
|
+
if (value) {
|
|
3237
|
+
this.value = value || '';
|
|
3238
|
+
}
|
|
3239
|
+
else {
|
|
3240
|
+
this.value = '';
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
registerOnChange(fn) {
|
|
3244
|
+
this.onChange = fn;
|
|
3245
|
+
}
|
|
3246
|
+
registerOnTouched(fn) {
|
|
3247
|
+
this.onTouch = fn;
|
|
3248
|
+
}
|
|
3249
|
+
setDisabledState(isDisabled) {
|
|
3250
|
+
this.disabled = isDisabled;
|
|
3251
|
+
}
|
|
3252
|
+
}
|
|
3253
|
+
DropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3254
|
+
DropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DropdownComponent, selector: "ui-dropdown", inputs: { label: "label", name: "name", placeholder: "placeholder", id: "id", value: "value", errors: "errors", disabled: "disabled", valueList: "valueList", allowClear: "allowClear", allowMultipleSelection: "allowMultipleSelection", required: "required" }, host: { properties: { "class": "this.class" } }, providers: [
|
|
3255
|
+
{
|
|
3256
|
+
provide: NG_VALUE_ACCESSOR,
|
|
3257
|
+
useExisting: forwardRef(() => DropdownComponent),
|
|
3258
|
+
multi: true,
|
|
3259
|
+
},
|
|
3260
|
+
], ngImport: i0, template: "<mat-form-field appearance=\"outline\" [color]=\"errorsLength ? 'warn' : 'accent'\">\n <mat-label>{{ label }} <span *ngIf=\"required\">*</span></mat-label>\n <mat-select\n #matSelect\n [id]=\"id!\"\n panelClass=\"ui-dropdown-list\"\n [disabled]=\"disabled\"\n [multiple]=\"allowMultipleSelection\"\n [placeholder]=\"placeholder\"\n [value]=\"value\"\n (selectionChange)=\"onChangeOption($event)\"\n [attr.name]=\"name\">\n <div class=\"mat-option-section\" *ngFor=\"let section of valueList\">\n <span *ngIf=\"section.sectionTitle\" class=\"section-title\">{{ section.sectionTitle }}</span>\n <mat-option *ngIf=\"section.value\" #matOption [value]=\"section.value\">\n {{ section.value }}\n </mat-option>\n </div>\n </mat-select>\n <ui-button *ngIf=\"allowClear && !matSelect.empty\" type=\"secondary\" [justIcon]=\"true\" class=\"clear\" iconName=\"Close\" label=\"Clear\" (click)=\"clearValue($event)\"></ui-button>\n <ui-icon color=\"dark\" *ngIf=\"!matSelect.panelOpen\" size=\"24\" name=\"Arrow_down\"></ui-icon>\n <ui-icon color=\"petrol\" *ngIf=\"matSelect.panelOpen\" size=\"24\" name=\"Arrow_up\"></ui-icon>\n <mat-hint class=\"error\" *ngIf=\"errorsLength\">\n <div class=\"errors\" *ngFor=\"let error of errors\">\n <ui-icon name=\"Error\"></ui-icon>{{ error }}\n </div>\n </mat-hint>\n</mat-form-field>\n", styles: ["ui-dropdown{display:flex}ui-dropdown .mat-mdc-form-field{margin-top:0;width:100%}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper{height:48px;flex:none}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:22px}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-notched-outline{color:#888}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-notched-outline .mdc-floating-label--float-above{transform:translateY(-30px) scale(.75)}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-infix{min-height:48px;padding:4px 0;line-height:22px;display:inline-flex;align-items:center}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-select-arrow-wrapper{display:none}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-floating-label{color:#888}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-bottom-align:before{height:0}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint-wrapper{padding:0}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label mat-label{color:#276678}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused ui-icon:not(.clear) svg{color:#276678}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline button.mat-mdc-unelevated-button.secondary.only-icon{padding:0;height:auto;background:transparent}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline button.mat-mdc-unelevated-button.secondary.only-icon:hover,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline button.mat-mdc-unelevated-button.secondary.only-icon:focus{background:transparent;color:inherit;border:none;outline:none}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline button.mat-mdc-unelevated-button.secondary.only-icon.focus.cdk-focused.cdk-mouse-focused{background-color:transparent!important}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .clear{position:absolute;right:24px}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .clear mat-icon.black svg{color:#888}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__leading,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__trailing,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__notch{border-color:#cb7b7a}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__leading,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__trailing,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__notch{border-color:#cb7b7a}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label mat-label{color:#cb7b7a}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-focused ui-icon svg{color:#888}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-subscript-wrapper{padding:0;margin-top:9px;font-size:12px;line-height:16px;position:relative}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-spacer{display:none}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error{display:flex;flex-flow:column;row-gap:4px}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error .errors{display:flex}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error svg{color:#cb7b7a}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error{display:flex}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error ui-icon{margin-right:9px}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled.mat-form-field-appearance-outline .mdc-notched-outline{color:#e0e0e0}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .options .options-container ui-button svg,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .options .options-container ui-icon svg{color:#e0e0e0}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list{margin-top:4px;border-radius:8px!important;box-shadow:0 8px 24px 4px #00000014}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list .mat-mdc-option{display:flex;height:48px;color:#000}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list .mat-mdc-option .mdc-list-item__primary-text{display:flex;align-items:center;justify-content:space-between}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list .mat-option-section .section-title{font-size:12px;text-transform:uppercase;display:flex;height:48px;align-items:center;font-weight:700;padding:0 16px}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple:focus:not(.mdc-list-item--disabled){background-color:#e0e0e0}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mat-mdc-option-active,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mdc-list-item--selected,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mat-mdc-option-active,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mdc-list-item--selected{background-color:#e9f0f1;color:#000}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mat-mdc-option-active:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mat-mdc-option-active:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mdc-list-item--selected:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mdc-list-item--selected:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mat-mdc-option-active:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mat-mdc-option-active:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mdc-list-item--selected:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mdc-list-item--selected:focus:not(.mdc-list-item--disabled){background-color:#c8d7de}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple:focus:not(.mdc-list-item--disabled){background-color:#e0e0e0}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mat-mdc-option-active,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mdc-list-item--selected,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mat-mdc-option-active,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mdc-list-item--selected{background-color:#f0dad9;color:#000}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mat-mdc-option-active:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mat-mdc-option-active:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mdc-list-item--selected:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mdc-list-item--selected:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mat-mdc-option-active:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mat-mdc-option-active:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mdc-list-item--selected:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mdc-list-item--selected:focus:not(.mdc-list-item--disabled){background-color:#e3c3c6}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list .mat-mdc-form-field-hint.error{display:flex;flex-flow:column;row-gap:4px}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list .mat-mdc-form-field-hint.error .errors{display:flex}.cdk-overlay-pane:has(.ui-dropdown-list){width:100%!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color"] }, { kind: "component", type: ButtonComponent, selector: "ui-button", inputs: ["size", "type", "label", "iconPosition", "justIcon", "iconName", "disabled", "loading", "fullWidth", "url", "urlTarget", "value"], outputs: ["buttonClickEvent", "buttonHoverEvent"] }, { kind: "component", type: i5$2.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i6$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
3262
|
+
type: Component,
|
|
3263
|
+
args: [{ selector: 'ui-dropdown', encapsulation: ViewEncapsulation.None, providers: [
|
|
3264
|
+
{
|
|
3265
|
+
provide: NG_VALUE_ACCESSOR,
|
|
3266
|
+
useExisting: forwardRef(() => DropdownComponent),
|
|
3267
|
+
multi: true,
|
|
3268
|
+
},
|
|
3269
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field appearance=\"outline\" [color]=\"errorsLength ? 'warn' : 'accent'\">\n <mat-label>{{ label }} <span *ngIf=\"required\">*</span></mat-label>\n <mat-select\n #matSelect\n [id]=\"id!\"\n panelClass=\"ui-dropdown-list\"\n [disabled]=\"disabled\"\n [multiple]=\"allowMultipleSelection\"\n [placeholder]=\"placeholder\"\n [value]=\"value\"\n (selectionChange)=\"onChangeOption($event)\"\n [attr.name]=\"name\">\n <div class=\"mat-option-section\" *ngFor=\"let section of valueList\">\n <span *ngIf=\"section.sectionTitle\" class=\"section-title\">{{ section.sectionTitle }}</span>\n <mat-option *ngIf=\"section.value\" #matOption [value]=\"section.value\">\n {{ section.value }}\n </mat-option>\n </div>\n </mat-select>\n <ui-button *ngIf=\"allowClear && !matSelect.empty\" type=\"secondary\" [justIcon]=\"true\" class=\"clear\" iconName=\"Close\" label=\"Clear\" (click)=\"clearValue($event)\"></ui-button>\n <ui-icon color=\"dark\" *ngIf=\"!matSelect.panelOpen\" size=\"24\" name=\"Arrow_down\"></ui-icon>\n <ui-icon color=\"petrol\" *ngIf=\"matSelect.panelOpen\" size=\"24\" name=\"Arrow_up\"></ui-icon>\n <mat-hint class=\"error\" *ngIf=\"errorsLength\">\n <div class=\"errors\" *ngFor=\"let error of errors\">\n <ui-icon name=\"Error\"></ui-icon>{{ error }}\n </div>\n </mat-hint>\n</mat-form-field>\n", styles: ["ui-dropdown{display:flex}ui-dropdown .mat-mdc-form-field{margin-top:0;width:100%}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper{height:48px;flex:none}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:22px}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-notched-outline{color:#888}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-notched-outline .mdc-floating-label--float-above{transform:translateY(-30px) scale(.75)}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-infix{min-height:48px;padding:4px 0;line-height:22px;display:inline-flex;align-items:center}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-select-arrow-wrapper{display:none}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-floating-label{color:#888}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-bottom-align:before{height:0}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint-wrapper{padding:0}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label mat-label{color:#276678}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused ui-icon:not(.clear) svg{color:#276678}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline button.mat-mdc-unelevated-button.secondary.only-icon{padding:0;height:auto;background:transparent}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline button.mat-mdc-unelevated-button.secondary.only-icon:hover,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline button.mat-mdc-unelevated-button.secondary.only-icon:focus{background:transparent;color:inherit;border:none;outline:none}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline button.mat-mdc-unelevated-button.secondary.only-icon.focus.cdk-focused.cdk-mouse-focused{background-color:transparent!important}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .clear{position:absolute;right:24px}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .clear mat-icon.black svg{color:#888}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__leading,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__trailing,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline:not(.mdc-text-field--disabled) .mat-mdc-form-field-flex:hover .mdc-notched-outline .mdc-notched-outline__notch{border-color:#cb7b7a}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__leading,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__trailing,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-form-field-appearance-outline .mdc-notched-outline .mdc-notched-outline__notch{border-color:#cb7b7a}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label mat-label{color:#cb7b7a}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-warn.mat-focused ui-icon svg{color:#888}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-subscript-wrapper{padding:0;margin-top:9px;font-size:12px;line-height:16px;position:relative}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-spacer{display:none}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error{display:flex;flex-flow:column;row-gap:4px}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error .errors{display:flex}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error svg{color:#cb7b7a}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error{display:flex}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-form-field-hint.error ui-icon{margin-right:9px}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled.mat-form-field-appearance-outline .mdc-notched-outline{color:#e0e0e0}ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .options .options-container ui-button svg,ui-dropdown .mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .options .options-container ui-icon svg{color:#e0e0e0}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list{margin-top:4px;border-radius:8px!important;box-shadow:0 8px 24px 4px #00000014}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list .mat-mdc-option{display:flex;height:48px;color:#000}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list .mat-mdc-option .mdc-list-item__primary-text{display:flex;align-items:center;justify-content:space-between}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list .mat-option-section .section-title{font-size:12px;text-transform:uppercase;display:flex;height:48px;align-items:center;font-weight:700;padding:0 16px}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple:focus:not(.mdc-list-item--disabled){background-color:#e0e0e0}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mat-mdc-option-active,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mdc-list-item--selected,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mat-mdc-option-active,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mdc-list-item--selected{background-color:#e9f0f1;color:#000}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mat-mdc-option-active:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mat-mdc-option-active:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mdc-list-item--selected:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent mat-option.mdc-list-item--selected:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mat-mdc-option-active:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mat-mdc-option-active:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mdc-list-item--selected:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-accent .mat-mdc-option-multiple.mdc-list-item--selected:focus:not(.mdc-list-item--disabled){background-color:#c8d7de}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple:focus:not(.mdc-list-item--disabled){background-color:#e0e0e0}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mat-mdc-option-active,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mdc-list-item--selected,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mat-mdc-option-active,.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mdc-list-item--selected{background-color:#f0dad9;color:#000}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mat-mdc-option-active:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mat-mdc-option-active:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mdc-list-item--selected:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn mat-option.mdc-list-item--selected:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mat-mdc-option-active:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mat-mdc-option-active:focus:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mdc-list-item--selected:hover:not(.mdc-list-item--disabled),.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list.mat-warn .mat-mdc-option-multiple.mdc-list-item--selected:focus:not(.mdc-list-item--disabled){background-color:#e3c3c6}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list .mat-mdc-form-field-hint.error{display:flex;flex-flow:column;row-gap:4px}.cdk-overlay-container .cdk-overlay-pane .ui-dropdown-list .mat-mdc-form-field-hint.error .errors{display:flex}.cdk-overlay-pane:has(.ui-dropdown-list){width:100%!important}\n"] }]
|
|
3270
|
+
}], ctorParameters: function () { return []; }, propDecorators: { class: [{
|
|
3271
|
+
type: HostBinding
|
|
3272
|
+
}], label: [{
|
|
3273
|
+
type: Input
|
|
3274
|
+
}], name: [{
|
|
3275
|
+
type: Input
|
|
3276
|
+
}], placeholder: [{
|
|
3277
|
+
type: Input
|
|
3278
|
+
}], id: [{
|
|
3279
|
+
type: Input
|
|
3280
|
+
}], value: [{
|
|
3281
|
+
type: Input
|
|
3282
|
+
}], errors: [{
|
|
3283
|
+
type: Input
|
|
3284
|
+
}], disabled: [{
|
|
3285
|
+
type: Input
|
|
3286
|
+
}], valueList: [{
|
|
3287
|
+
type: Input
|
|
3288
|
+
}], allowClear: [{
|
|
3289
|
+
type: Input
|
|
3290
|
+
}], allowMultipleSelection: [{
|
|
3291
|
+
type: Input
|
|
3292
|
+
}], required: [{
|
|
3293
|
+
type: Input
|
|
3294
|
+
}] } });
|
|
3295
|
+
|
|
3296
|
+
class DropdownComponentModule {
|
|
3297
|
+
}
|
|
3298
|
+
DropdownComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DropdownComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3299
|
+
DropdownComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DropdownComponentModule, declarations: [DropdownComponent], imports: [CommonModule,
|
|
3300
|
+
MatFormFieldModule,
|
|
3301
|
+
MatInputModule,
|
|
3302
|
+
IconComponentModule,
|
|
3303
|
+
FormsModule,
|
|
3304
|
+
ReactiveFormsModule,
|
|
3305
|
+
ButtonComponentModule,
|
|
3306
|
+
MatSelectModule], exports: [DropdownComponent] });
|
|
3307
|
+
DropdownComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DropdownComponentModule, imports: [CommonModule,
|
|
3308
|
+
MatFormFieldModule,
|
|
3309
|
+
MatInputModule,
|
|
3310
|
+
IconComponentModule,
|
|
3311
|
+
FormsModule,
|
|
3312
|
+
ReactiveFormsModule,
|
|
3313
|
+
ButtonComponentModule,
|
|
3314
|
+
MatSelectModule] });
|
|
3315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DropdownComponentModule, decorators: [{
|
|
3316
|
+
type: NgModule,
|
|
3317
|
+
args: [{
|
|
3318
|
+
declarations: [DropdownComponent],
|
|
3319
|
+
imports: [
|
|
3320
|
+
CommonModule,
|
|
3321
|
+
MatFormFieldModule,
|
|
3322
|
+
MatInputModule,
|
|
3323
|
+
IconComponentModule,
|
|
3324
|
+
FormsModule,
|
|
3325
|
+
ReactiveFormsModule,
|
|
3326
|
+
ButtonComponentModule,
|
|
3327
|
+
MatSelectModule,
|
|
3328
|
+
],
|
|
3329
|
+
exports: [DropdownComponent],
|
|
3330
|
+
providers: [],
|
|
3331
|
+
}]
|
|
3332
|
+
}] });
|
|
3333
|
+
|
|
1605
3334
|
/* eslint-disable */
|
|
3335
|
+
/* Components */
|
|
3336
|
+
// Alert Banner
|
|
1606
3337
|
|
|
1607
3338
|
/**
|
|
1608
3339
|
* Generated bundle index. Do not edit.
|
|
1609
3340
|
*/
|
|
1610
3341
|
|
|
1611
|
-
export { BannerActionComponent, BannerActionComponentModule,
|
|
3342
|
+
export { AlertBannerComponent, AlertBannerComponentModule, BannerActionComponent, BannerActionComponentModule, ButtonComponent, ButtonComponentModule, CardComponent, CardComponentModule, CheckboxComponent, CheckboxComponentModule, ColumnAlignmentEnum, ColumnTypeEnum, CreateAccountComponent, CreateAccountComponentModule, CreatePasswordComponent, CreatePasswordComponentModule, DataPropertyGetterPipe, DialogComponent, DialogComponentModule, DialogService, DropdownComponent, DropdownComponentModule, ElevationShadowComponent, ElevationShadowComponentModule, ElevationType, FieldComponent, FieldComponentModule, FileUploadComponent, FileUploadComponentModule, ForgotPasswordComponent, ForgotPasswordComponentModule, IconComponent, IconComponentModule, IconLabelComponent, IconLabelComponentModule, LabelComponent, LabelComponentModule, LabelSizeEnum, LoginComponent, LoginComponentModule, LogoComponent, LogoComponentModule, LogoPathEnum, LogoTypeEnum, NavbarComponent, NavbarComponentModule, NavigationComponent, NavigationComponentModule, PaginatorComponent, PaginatorComponentModule, ProgressBarComponent, ProgressBarComponentModule, RadioButtonComponent, RadioButtonComponentModule, SnackbarComponent, SnackbarComponentModule, TableComponent, TableComponentModule, TagComponent, TagComponentModule, TooltipComponent, TooltipComponentModule, TooltipPositionType };
|
|
1612
3343
|
//# sourceMappingURL=testgorilla-tgo-ui.mjs.map
|