@onemrvapublic/design-system 1.0.0-beta.4 → 1.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/assets/i18n/de.json +84 -12
- package/assets/i18n/en.json +78 -6
- package/assets/i18n/fr.json +79 -7
- package/assets/i18n/nl.json +84 -12
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +49 -0
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-layout.mjs +948 -0
- package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-address.mjs +111 -0
- package/fesm2022/onemrvapublic-design-system-mat-address.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +318 -0
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +125 -0
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +208 -0
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +84 -0
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +90 -0
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +33 -0
- package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +211 -0
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +42 -0
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +810 -0
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +138 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +135 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +98 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +189 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +308 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +295 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +210 -0
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +225 -0
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs +169 -0
- package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +103 -0
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +269 -0
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +185 -0
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +118 -0
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +52 -0
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +612 -0
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +96 -0
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +72 -0
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +241 -0
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +65 -0
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +146 -0
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +36 -0
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +232 -0
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +170 -0
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +1363 -0
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +73 -0
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +166 -0
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-page-error.mjs +80 -0
- package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +211 -0
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-shared.mjs +2188 -0
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-utils.mjs +35 -0
- package/fesm2022/onemrvapublic-design-system-utils.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system.mjs +10573 -0
- package/fesm2022/onemrvapublic-design-system.mjs.map +1 -0
- package/flag-icon/index.d.ts +18 -0
- package/flag-icon/src/flag-icon.component.scss +12 -0
- package/index.d.ts +3140 -0
- package/layout/index.d.ts +293 -0
- package/layout/src/components/layout/layout.component.scss +90 -80
- package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.scss +3 -2
- package/layout/src/components/layout-drawer-content/layout-drawer-content.component.scss +9 -0
- package/layout/src/components/layout-drawer-title/layout-drawer-title.component.scss +9 -5
- package/layout/src/components/layout-left-sidenav/layout-left-sidenav.component.scss +5 -0
- package/layout/src/components/layout-sidenav/layout-sidenav.component.scss +43 -0
- package/layout/src/index.scss +0 -1
- package/mat-address/index.d.ts +36 -0
- package/mat-address/src/onemrva-address.scss +14 -0
- package/mat-avatar/index.d.ts +187 -0
- package/mat-avatar/src/onemrva-mat-avatar.component.scss +79 -123
- package/mat-breadcrumb/index.d.ts +40 -0
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +39 -53
- package/mat-carousel/index.d.ts +52 -0
- package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.scss +10 -0
- package/mat-carousel/src/onemrva-mat-carousel.component.scss +38 -45
- package/mat-choice-chip/index.d.ts +20 -0
- package/mat-choice-chip/src/onemrva-mat-choice-chip.component.scss +83 -0
- package/mat-copy-to-clipboard/index.d.ts +26 -0
- package/mat-country-item/index.d.ts +10 -0
- package/{mat-input-birthplace/src/country-item.component.scss → mat-country-item/src/onemrva-mat-country-item.component.scss} +6 -1
- package/mat-datepicker-header/index.d.ts +44 -0
- package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.scss +8 -0
- package/mat-empty-row/index.d.ts +19 -0
- package/mat-empty-row/src/onemrva-mat-empty-row.component.scss +29 -0
- package/mat-file-upload/index.d.ts +301 -0
- package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +48 -16
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.scss +72 -218
- package/mat-input-address/index.d.ts +32 -0
- package/mat-input-address/src/onemrva-mat-input-address.component.scss +8 -0
- package/mat-input-birthplace/index.d.ts +36 -0
- package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.scss +4 -2
- package/mat-input-country/index.d.ts +32 -0
- package/mat-input-country/src/onemrva-mat-input-country.component.scss +13 -0
- package/mat-input-enterprise-number/index.d.ts +37 -0
- package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.scss +7 -0
- package/mat-input-iban/index.d.ts +79 -0
- package/mat-input-iban/src/onemrva-mat-input-iban.component.scss +10 -0
- package/mat-input-phone/index.d.ts +44 -0
- package/mat-message-box/index.d.ts +101 -0
- package/mat-message-box/src/onemrva-mat-message-box.component.scss +13 -65
- package/mat-multi-select/index.d.ts +57 -0
- package/mat-multi-select/src/onemrva-mat-multi-select.component.scss +35 -0
- package/mat-navigation/index.d.ts +54 -0
- package/mat-navigation/src/mat-navigation-item/onemrva-mat-navigation-item.component.scss +66 -0
- package/mat-navigation/src/onemrva-mat-navigation.component.scss +36 -0
- package/mat-notification/index.d.ts +43 -0
- package/mat-notification/src/onemrva-mat-notification.component.scss +26 -0
- package/mat-paginator/index.d.ts +58 -0
- package/mat-paginator/src/onemrva-mat-paginator.component.scss +146 -0
- package/mat-panel/index.d.ts +66 -0
- package/mat-panel/src/mat-expansion-panel-header-arrow-divider.scss +11 -0
- package/mat-panel/src/onemrva-mat-panel-content.scss +8 -0
- package/mat-panel/src/onemrva-mat-panel-icon.scss +7 -0
- package/mat-panel/src/onemrva-mat-panel-title.scss +13 -0
- package/mat-panel/src/onemrva-mat-panel.component.scss +75 -82
- package/mat-pop-over/index.d.ts +40 -0
- package/mat-pop-over/src/onemrva-mat-pop-over.component.scss +11 -11
- package/mat-progress-bar/index.d.ts +18 -0
- package/mat-progress-bar/src/onemrva-mat-progress-bar.component.scss +26 -0
- package/mat-select-search/index.d.ts +197 -0
- package/mat-select-search/src/mat-select-search.component.scss +62 -109
- package/mat-selectable-box/index.d.ts +29 -0
- package/mat-selectable-box/src/onemrva-mat-selectable-box.component.scss +68 -90
- package/mat-side-menu/index.d.ts +33 -0
- package/mat-side-menu/src/onemrva-mat-side-menu.component.scss +36 -38
- package/mat-skeleton/index.d.ts +100 -0
- package/mat-skeleton/src/onemrva-mat-skeleton.component.scss +10 -59
- package/mat-spinner/index.d.ts +25 -0
- package/mat-spinner/src/onemrva-mat-spinner.component.scss +21 -0
- package/mat-stepper/index.d.ts +36 -0
- package/mat-stepper/src/onemrva-mat-stepper.scss +40 -105
- package/mat-sticker/index.d.ts +14 -0
- package/mat-sticker/src/onemrva-mat-sticker.component.scss +26 -63
- package/mat-table-of-content/index.d.ts +84 -0
- package/mat-table-of-content/src/onemrva-mat-table-of-content.component.scss +57 -0
- package/mat-task-list/index.d.ts +57 -0
- package/mat-task-list/src/onemrva-mat-task-content.scss +11 -0
- package/mat-task-list/src/onemrva-mat-task-list.component.scss +0 -150
- package/mat-task-list/src/onemrva-mat-task-title.scss +16 -0
- package/mat-task-list/src/onemrva-mat-task.component.scss +67 -0
- package/mat-timepicker/index.d.ts +386 -0
- package/mat-timepicker/src/clock/clock.component.scss +13 -7
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.scss +2 -7
- package/mat-toast/index.d.ts +30 -0
- package/mat-toast/src/onemrva-mat-toast.component.scss +7 -49
- package/mat-tooltip/index.d.ts +39 -0
- package/mat-tooltip/src/onemrva-mat-tooltip.component.scss +8 -5
- package/package.json +196 -26
- package/page-error/index.d.ts +34 -0
- package/page-error/src/page-error.component.scss +25 -0
- package/page-not-found/index.d.ts +54 -0
- package/page-not-found/src/page-not-found-mixin.component.scss +1 -1
- package/page-not-found/src/page-not-found.component.scss +2 -2
- package/shared/index.d.ts +541 -0
- package/utils/index.d.ts +32 -0
- package/.eslintrc.json +0 -33
- package/_index.scss +0 -34
- package/_utils.scss +0 -30
- package/core/index.ts +0 -3
- package/core/ng-package.json +0 -6
- package/core/src/lib/core.module.ts +0 -26
- package/core/src/lib/modules/index.ts +0 -1
- package/core/src/lib/modules/translate.loader.ts +0 -34
- package/core/src/lib/modules/translate.module.ts +0 -66
- package/core/src/lib/services/index.ts +0 -2
- package/core/src/lib/services/onemrva-error-handler.service.ts +0 -24
- package/core/src/lib/services/onemrva-missing-translation.service.ts +0 -12
- package/core/src/test.ts +0 -30
- package/layout/index.ts +0 -7
- package/layout/ng-package.json +0 -6
- package/layout/src/components/index.ts +0 -37
- package/layout/src/components/layout/_layout-mixin.component.scss +0 -189
- package/layout/src/components/layout/layout.component.html +0 -213
- package/layout/src/components/layout/layout.component.spec.ts +0 -59
- package/layout/src/components/layout/layout.component.ts +0 -185
- package/layout/src/components/layout-after-nav/layout-after-nav.component.spec.ts +0 -24
- package/layout/src/components/layout-after-nav/layout-after-nav.component.ts +0 -24
- package/layout/src/components/layout-content/layout-content.component.spec.ts +0 -24
- package/layout/src/components/layout-content/layout-content.component.ts +0 -24
- package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.html +0 -1
- package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.ts +0 -14
- package/layout/src/components/layout-drawer-content/layout-drawer-content.component.html +0 -1
- package/layout/src/components/layout-drawer-content/layout-drawer-content.component.ts +0 -14
- package/layout/src/components/layout-drawer-title/layout-drawer-title.component.html +0 -7
- package/layout/src/components/layout-drawer-title/layout-drawer-title.component.ts +0 -18
- package/layout/src/components/layout-footer/layout-footer.component.ts +0 -11
- package/layout/src/components/layout-login-menu/layout-login-menu.component.spec.ts +0 -24
- package/layout/src/components/layout-login-menu/layout-login-menu.component.ts +0 -24
- package/layout/src/components/layout-route/layout-route.component.html +0 -64
- package/layout/src/components/layout-route/layout-route.component.spec.ts +0 -24
- package/layout/src/components/layout-route/layout-route.component.ts +0 -57
- package/layout/src/components/layout-sidenav/layout-sidenav.component.html +0 -104
- package/layout/src/components/layout-sidenav/layout-sidenav.component.ts +0 -88
- package/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.ts +0 -9
- package/layout/src/components/layout-subroute/layout-subroute.component.html +0 -43
- package/layout/src/components/layout-subroute/layout-subroute.component.spec.ts +0 -24
- package/layout/src/components/layout-subroute/layout-subroute.component.ts +0 -62
- package/layout/src/components/layout-title/layout-title.component.spec.ts +0 -24
- package/layout/src/components/layout-title/layout-title.component.ts +0 -24
- package/layout/src/decorators/coerce-boolean-input.decorator.ts +0 -19
- package/layout/src/decorators/observable-content.decorator.ts +0 -13
- package/layout/src/directives/drawer-host.directive.ts +0 -42
- package/layout/src/enums/environment.enum.ts +0 -6
- package/layout/src/layout.module.ts +0 -47
- package/layout/src/models/onem-language.model.ts +0 -4
- package/layout/src/models/onemrva-profile.model.ts +0 -57
- package/layout/src/services/drawer.service.ts +0 -30
- package/layout/src/striphtml.pipe.ts +0 -10
- package/layout/src/test.ts +0 -31
- package/mat-avatar/index.ts +0 -2
- package/mat-avatar/ng-package.json +0 -6
- package/mat-avatar/src/onemrva-mat-avatar.component.html +0 -21
- package/mat-avatar/src/onemrva-mat-avatar.component.ts +0 -421
- package/mat-avatar/src/onemrva-mat-avatar.module.ts +0 -11
- package/mat-avatar/src/onemrva-mat.avatar.component.spec.ts +0 -54
- package/mat-badge/index.ts +0 -6
- package/mat-badge/ng-package.json +0 -6
- package/mat-badge/src/onemrva-mat-badge.component.scss +0 -157
- package/mat-badge/src/onemrva-mat-badge.component.ts +0 -331
- package/mat-badge/src/onemrva-mat-badge.module.ts +0 -8
- package/mat-breadcrumb/index.ts +0 -7
- package/mat-breadcrumb/ng-package.json +0 -6
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.html +0 -37
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.ts +0 -16
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.ts +0 -4
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.ts +0 -12
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.ts +0 -65
- package/mat-carousel/index.ts +0 -2
- package/mat-carousel/ng-package.json +0 -6
- package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.html +0 -5
- package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.ts +0 -27
- package/mat-carousel/src/onemrva-mat-carousel-item.directive.ts +0 -8
- package/mat-carousel/src/onemrva-mat-carousel.component.html +0 -43
- package/mat-carousel/src/onemrva-mat-carousel.component.ts +0 -160
- package/mat-copy-to-clipboard/index.ts +0 -1
- package/mat-copy-to-clipboard/ng-package.json +0 -6
- package/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.html +0 -14
- package/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.ts +0 -76
- package/mat-datepicker-header/index.ts +0 -5
- package/mat-datepicker-header/ng-package.json +0 -6
- package/mat-datepicker-header/src/_onemrva-mat-datepicker-header.component.scss +0 -12
- package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.html +0 -54
- package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.ts +0 -283
- package/mat-file-upload/index.ts +0 -11
- package/mat-file-upload/ng-package.json +0 -6
- package/mat-file-upload/src/components/index.ts +0 -10
- package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html +0 -59
- package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts +0 -79
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html +0 -58
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts +0 -209
- package/mat-file-upload/src/directives/dnd.directive.ts +0 -41
- package/mat-file-upload/src/models/action-config.model.ts +0 -10
- package/mat-file-upload/src/models/progress-file.model.ts +0 -94
- package/mat-file-upload/src/onemrva-mat-file-upload-itf.store.ts +0 -79
- package/mat-file-upload/src/onemrva-mat-file-upload.module.ts +0 -28
- package/mat-file-upload/src/onemrva-mat-file-upload.service.ts +0 -68
- package/mat-file-upload/src/onemrva-mat-file-upload.store.ts +0 -482
- package/mat-input-bank-account/index.ts +0 -5
- package/mat-input-bank-account/ng-package.json +0 -6
- package/mat-input-bank-account/src/bank-account.component.html +0 -36
- package/mat-input-bank-account/src/bank-account.component.scss +0 -42
- package/mat-input-bank-account/src/bank-account.component.ts +0 -308
- package/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.html +0 -11
- package/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.scss +0 -14
- package/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.ts +0 -82
- package/mat-input-birthplace/index.ts +0 -5
- package/mat-input-birthplace/ng-package.json +0 -6
- package/mat-input-birthplace/src/country-item.component.html +0 -8
- package/mat-input-birthplace/src/country-item.component.ts +0 -33
- package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.html +0 -28
- package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.ts +0 -129
- package/mat-input-country/index.ts +0 -6
- package/mat-input-country/ng-package.json +0 -6
- package/mat-input-country/src/countries.ts +0 -3198
- package/mat-input-country/src/onemrva-mat-input-country.component.html +0 -25
- package/mat-input-country/src/onemrva-mat-input-country.component.ts +0 -152
- package/mat-input-enterprise-number/index.ts +0 -5
- package/mat-input-enterprise-number/ng-package.json +0 -6
- package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.html +0 -42
- package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.ts +0 -212
- package/mat-input-phone/index.ts +0 -6
- package/mat-input-phone/ng-package.json +0 -6
- package/mat-input-phone/src/onemrva-mat-input-phone.component.html +0 -47
- package/mat-input-phone/src/onemrva-mat-input-phone.component.ts +0 -274
- package/mat-input-phone/src/phone-number.directive.ts +0 -46
- package/mat-message-box/index.ts +0 -2
- package/mat-message-box/ng-package.json +0 -6
- package/mat-message-box/src/onemrva-mat-message-box.component.html +0 -3
- package/mat-message-box/src/onemrva-mat-message-box.component.ts +0 -172
- package/mat-message-box/src/onemrva-mat-message-box.module.ts +0 -12
- package/mat-multi-select/index.ts +0 -2
- package/mat-multi-select/ng-package.json +0 -6
- package/mat-multi-select/src/_onemrva-mat-multi-select.component.scss +0 -66
- package/mat-multi-select/src/onemrva-mat-multi-select.component.html +0 -44
- package/mat-multi-select/src/onemrva-mat-multi-select.component.ts +0 -194
- package/mat-multi-select/src/onemrva-mat-multi-select.module.ts +0 -27
- package/mat-multi-select/src/onemrva-mat-select-counter.component.ts +0 -0
- package/mat-notification/index.ts +0 -1
- package/mat-notification/ng-package.json +0 -6
- package/mat-notification/src/_onemrva-mat-notification.component.scss +0 -102
- package/mat-notification/src/onemrva-mat-notification.component.html +0 -15
- package/mat-notification/src/onemrva-mat-notification.component.ts +0 -158
- package/mat-paginator/index.ts +0 -6
- package/mat-paginator/ng-package.json +0 -6
- package/mat-paginator/src/_onemrva-mat-paginator.component.scss +0 -122
- package/mat-paginator/src/onemrva-mat-paginator.component.html +0 -108
- package/mat-paginator/src/onemrva-mat-paginator.component.spec.ts +0 -184
- package/mat-paginator/src/onemrva-mat-paginator.component.ts +0 -216
- package/mat-paginator/src/onemrva-mat-paginator.module.ts +0 -21
- package/mat-panel/index.ts +0 -6
- package/mat-panel/ng-package.json +0 -6
- package/mat-panel/src/onemrva-mat-panel-content.component.ts +0 -11
- package/mat-panel/src/onemrva-mat-panel-content.html +0 -5
- package/mat-panel/src/onemrva-mat-panel-icon.component.ts +0 -11
- package/mat-panel/src/onemrva-mat-panel-icon.html +0 -5
- package/mat-panel/src/onemrva-mat-panel-title-action.component.ts +0 -11
- package/mat-panel/src/onemrva-mat-panel-title-action.html +0 -5
- package/mat-panel/src/onemrva-mat-panel-title.component.ts +0 -29
- package/mat-panel/src/onemrva-mat-panel-title.html +0 -8
- package/mat-panel/src/onemrva-mat-panel.component.html +0 -10
- package/mat-panel/src/onemrva-mat-panel.component.ts +0 -122
- package/mat-panel/src/onemrva-mat-panel.module.ts +0 -26
- package/mat-pop-over/index.ts +0 -4
- package/mat-pop-over/ng-package.json +0 -6
- package/mat-pop-over/src/onemrva-mat-pop-over-content.component.ts +0 -13
- package/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.ts +0 -13
- package/mat-pop-over/src/onemrva-mat-pop-over.component.html +0 -29
- package/mat-pop-over/src/onemrva-mat-pop-over.component.ts +0 -46
- package/mat-pop-over/src/onemrva-mat-pop-over.module.ts +0 -19
- package/mat-progress-bar/index.ts +0 -1
- package/mat-progress-bar/ng-package.json +0 -6
- package/mat-progress-bar/src/_onemrva-mat-progress-bar-mixin.component.scss +0 -37
- package/mat-progress-bar/src/onemrva-mat-progress-bar.component.html +0 -13
- package/mat-progress-bar/src/onemrva-mat-progress-bar.component.ts +0 -27
- package/mat-select-search/index.ts +0 -3
- package/mat-select-search/ng-package.json +0 -6
- package/mat-select-search/src/default-options.ts +0 -48
- package/mat-select-search/src/mat-select-no-entries-found.directive.ts +0 -15
- package/mat-select-search/src/mat-select-search-clear.directive.ts +0 -13
- package/mat-select-search/src/mat-select-search.component.html +0 -82
- package/mat-select-search/src/mat-select-search.component.spec.ts +0 -790
- package/mat-select-search/src/mat-select-search.component.ts +0 -705
- package/mat-select-search/src/mat-select-search.module.ts +0 -52
- package/mat-selectable-box/index.ts +0 -6
- package/mat-selectable-box/ng-package.json +0 -6
- package/mat-selectable-box/src/onemrva-mat-selectable-box.component.ts +0 -99
- package/mat-selectable-box/src/onemrva-mat-selectable-box.module.ts +0 -30
- package/mat-side-menu/index.ts +0 -6
- package/mat-side-menu/ng-package.json +0 -6
- package/mat-side-menu/src/onemrva-mat-side-menu.component.html +0 -36
- package/mat-side-menu/src/onemrva-mat-side-menu.component.spec.ts +0 -66
- package/mat-side-menu/src/onemrva-mat-side-menu.component.ts +0 -58
- package/mat-side-menu/src/onemrva-mat-side-menu.module.ts +0 -14
- package/mat-skeleton/index.ts +0 -3
- package/mat-skeleton/ng-package.json +0 -6
- package/mat-skeleton/src/onemrva-mat-skeleton-enums.ts +0 -32
- package/mat-skeleton/src/onemrva-mat-skeleton.component.html +0 -14
- package/mat-skeleton/src/onemrva-mat-skeleton.component.ts +0 -187
- package/mat-skeleton/src/onemrva-mat-skeleton.module.ts +0 -10
- package/mat-spinner/index.ts +0 -7
- package/mat-spinner/ng-package.json +0 -6
- package/mat-spinner/src/_onemrva-mat-spinner.component.scss +0 -151
- package/mat-spinner/src/onemrva-mat-loading.directive.ts +0 -41
- package/mat-spinner/src/onemrva-mat-spinner.component.html +0 -2138
- package/mat-spinner/src/onemrva-mat-spinner.component.ts +0 -52
- package/mat-spinner/src/onemrva-mat-spinner.module.ts +0 -10
- package/mat-stepper/index.ts +0 -6
- package/mat-stepper/ng-package.json +0 -6
- package/mat-stepper/src/_stepper-variables.scss +0 -29
- package/mat-stepper/src/onemrva-mat-stepper.component.spec.ts +0 -22
- package/mat-stepper/src/onemrva-mat-stepper.component.ts +0 -57
- package/mat-stepper/src/onemrva-mat-stepper.html +0 -61
- package/mat-stepper/src/onemrva-mat-stepper.module.ts +0 -24
- package/mat-stepper/src/onemrva-stepper-animations.ts +0 -42
- package/mat-sticker/index.ts +0 -6
- package/mat-sticker/ng-package.json +0 -6
- package/mat-sticker/src/onemrva-mat-sticker.component.spec.ts +0 -16
- package/mat-sticker/src/onemrva-mat-sticker.component.ts +0 -58
- package/mat-sticker/src/onemrva-mat-sticker.module.ts +0 -10
- package/mat-table-of-content/index.ts +0 -8
- package/mat-table-of-content/ng-package.json +0 -6
- package/mat-table-of-content/src/_onemrva-mat-table-of-content.component.scss +0 -79
- package/mat-table-of-content/src/onemrva-mat-table-of-content.component.html +0 -23
- package/mat-table-of-content/src/onemrva-mat-table-of-content.component.ts +0 -126
- package/mat-table-of-content/src/onemrva-mat-table-of-content.directive.ts +0 -67
- package/mat-table-of-content/src/onemrva-mat-table-of-content.service.ts +0 -51
- package/mat-table-of-content/src/onemrva-mat-toc-anchor.model.ts +0 -24
- package/mat-task-list/index.ts +0 -5
- package/mat-task-list/ng-package.json +0 -6
- package/mat-task-list/src/onemrva-mat-task-content.component.ts +0 -11
- package/mat-task-list/src/onemrva-mat-task-content.html +0 -5
- package/mat-task-list/src/onemrva-mat-task-list.component.html +0 -1
- package/mat-task-list/src/onemrva-mat-task-list.component.ts +0 -39
- package/mat-task-list/src/onemrva-mat-task-list.module.ts +0 -31
- package/mat-task-list/src/onemrva-mat-task-title.component.ts +0 -24
- package/mat-task-list/src/onemrva-mat-task-title.html +0 -5
- package/mat-task-list/src/onemrva-mat-task.component.html +0 -23
- package/mat-task-list/src/onemrva-mat-task.component.ts +0 -121
- package/mat-timepicker/index.ts +0 -6
- package/mat-timepicker/ng-package.json +0 -6
- package/mat-timepicker/src/clock/clock.component.html +0 -109
- package/mat-timepicker/src/clock/clock.component.spec.ts +0 -38
- package/mat-timepicker/src/clock/clock.component.ts +0 -274
- package/mat-timepicker/src/interfaces-and-types.ts +0 -18
- package/mat-timepicker/src/onemrva-mat-timepicker.component.html +0 -0
- package/mat-timepicker/src/onemrva-mat-timepicker.component.ts +0 -300
- package/mat-timepicker/src/onemrva-mat-timepicker.module.ts +0 -40
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.html +0 -53
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.spec.ts +0 -41
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.ts +0 -176
- package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.html +0 -15
- package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.ts +0 -140
- package/mat-timepicker/src/timepicker.directive.ts +0 -596
- package/mat-timepicker/src/util.ts +0 -109
- package/mat-toast/index.ts +0 -6
- package/mat-toast/ng-package.json +0 -6
- package/mat-toast/src/onemrva-mat-toast.component.ts +0 -36
- package/mat-toast/src/onemrva-mat-toast.module.ts +0 -11
- package/mat-tooltip/index.ts +0 -4
- package/mat-tooltip/ng-package.json +0 -6
- package/mat-tooltip/src/onemrva-mat-tooltip.component.ts +0 -21
- package/mat-tooltip/src/onemrva-mat-tooltip.directive.ts +0 -123
- package/mat-tooltip/src/onemrva-mat-tooltip.module.ts +0 -11
- package/ng-package.json +0 -25
- package/npm-shrinkwrap.json +0 -30
- package/page-not-found/index.ts +0 -5
- package/page-not-found/ng-package.json +0 -6
- package/page-not-found/src/page-not-found-action.component.ts +0 -9
- package/page-not-found/src/page-not-found-extra.component.ts +0 -9
- package/page-not-found/src/page-not-found-invader.component.ts +0 -93
- package/page-not-found/src/page-not-found.component.html +0 -47
- package/page-not-found/src/page-not-found.component.ts +0 -60
- package/page-not-found/src/page-not-found.module.ts +0 -24
- package/shared/index.ts +0 -17
- package/shared/ng-package.json +0 -6
- package/shared/src/lib/OnemrvaDateAdapter.ts +0 -78
- package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.css +0 -0
- package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.html +0 -1
- package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.spec.ts +0 -21
- package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.ts +0 -18
- package/shared/src/lib/containers/WebComponentOverlayContainer.ts +0 -90
- package/shared/src/lib/containers/index.ts +0 -1
- package/shared/src/lib/date.format.ts +0 -11
- package/shared/src/lib/directives/clipboard.directive.ts +0 -52
- package/shared/src/lib/directives/color.directive.ts +0 -46
- package/shared/src/lib/directives/digit-only.directive.ts +0 -46
- package/shared/src/lib/directives/if-width-is.directive.ts +0 -39
- package/shared/src/lib/directives/index.ts +0 -22
- package/shared/src/lib/directives/mask.directive.ts +0 -223
- package/shared/src/lib/directives/mat-row-clickable.directive.ts +0 -66
- package/shared/src/lib/interfaces/OnemRvaCommonCountry.interface.ts +0 -23
- package/shared/src/lib/interfaces/index.ts +0 -1
- package/shared/src/lib/pipes/index.ts +0 -2
- package/shared/src/lib/pipes/onemrva-bce.pipe.ts +0 -18
- package/shared/src/lib/pipes/onemrva-niss.pipe.ts +0 -18
- package/shared/src/lib/services/commonCountryLookup.service.ts +0 -50
- package/shared/src/lib/services/index.ts +0 -1
- package/shared/src/lib/shared.datepicker.module.ts +0 -60
- package/shared/src/lib/shared.module.ts +0 -10
- package/shared/src/lib/validators/bankAccountValidator.utils.ts +0 -61
- package/shared/src/lib/validators/onemrva-validators.spec.ts +0 -79
- package/shared/src/lib/validators/onemrva-validators.ts +0 -97
- package/shared/src/onemrva-validators.spec.ts +0 -14
- package/src/polyfills.ts +0 -52
- package/src/public-api.spec.ts +0 -7
- package/src/public-api.ts +0 -5
- package/tsconfig.lib.json +0 -12
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -10
- package/utils/index.ts +0 -2
- package/utils/ng-package.json +0 -6
- package/utils/src/enum.utils.ts +0 -8
- package/utils/src/enums/color.enum.ts +0 -14
- package/utils/src/enums/index.ts +0 -2
- package/utils/src/enums/size.enum.ts +0 -11
- /package/{assets/.gitkeep → mat-navigation/src/mat-navigation-tree/onemrva-mat-navigation-tree.component.scss} +0 -0
|
@@ -1,790 +0,0 @@
|
|
|
1
|
-
// /**
|
|
2
|
-
// * Copyright (c) 2018 Bithost GmbH All Rights Reserved.
|
|
3
|
-
// *
|
|
4
|
-
// * Use of this source code is governed by an MIT-style license that can be
|
|
5
|
-
// * found in the LICENSE file at https://angular.io/license
|
|
6
|
-
// */
|
|
7
|
-
//
|
|
8
|
-
// import { AfterViewInit, Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
|
|
9
|
-
// import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
10
|
-
// import { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
|
11
|
-
// import { CommonModule } from '@angular/common';
|
|
12
|
-
// import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
13
|
-
// import { MatFormFieldModule } from '@angular/material/form-field';
|
|
14
|
-
// import { MatSelect, MatSelectModule } from '@angular/material/select';
|
|
15
|
-
// import { ReplaySubject } from 'rxjs';
|
|
16
|
-
// import { Subject } from 'rxjs';
|
|
17
|
-
// import { delay, take } from 'rxjs/operators';
|
|
18
|
-
// import { takeUntil } from 'rxjs/operators';
|
|
19
|
-
//
|
|
20
|
-
// import { MatSelectSearchComponent } from './mat-select-search.component';
|
|
21
|
-
// import { MatSelectSearchModule } from './ngx-mat-select-search.module';
|
|
22
|
-
// import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
23
|
-
// import { DOWN_ARROW } from '@angular/cdk/keycodes';
|
|
24
|
-
// import { MAT_SELECTSEARCH_DEFAULT_OPTIONS, MatSelectSearchOptions } from './default-options';
|
|
25
|
-
//
|
|
26
|
-
// /* tslint:disable:component-selector */
|
|
27
|
-
//
|
|
28
|
-
// interface Bank {
|
|
29
|
-
// id: string;
|
|
30
|
-
// name: string;
|
|
31
|
-
// }
|
|
32
|
-
//
|
|
33
|
-
// @Component({
|
|
34
|
-
// selector: 'mat-select-search-test',
|
|
35
|
-
// template: `
|
|
36
|
-
// <h3>Single selection</h3>
|
|
37
|
-
// <p>
|
|
38
|
-
// <mat-form-field>
|
|
39
|
-
// <mat-select [formControl]="bankCtrl" placeholder="Bank" #selectSingle>
|
|
40
|
-
// <ngx-mat-select-search [formControl]="bankFilterCtrl" #selectSearchSingle></ngx-mat-select-search>
|
|
41
|
-
// <mat-option *ngFor="let bank of filteredBanks | async" [value]="bank">
|
|
42
|
-
// {{bank.name}}
|
|
43
|
-
// </mat-option>
|
|
44
|
-
// </mat-select>
|
|
45
|
-
// </mat-form-field>
|
|
46
|
-
// </p>
|
|
47
|
-
// <p>
|
|
48
|
-
// Selected Bank: {{bankCtrl.value?.name}}
|
|
49
|
-
// </p>
|
|
50
|
-
//
|
|
51
|
-
// <h3>Single selection inside mat-option</h3>
|
|
52
|
-
// <p>
|
|
53
|
-
// <mat-form-field>
|
|
54
|
-
// <mat-select [formControl]="bankCtrlMatOption" placeholder="Bank" #selectSingleMatOption>
|
|
55
|
-
// <mat-option>
|
|
56
|
-
// <ngx-mat-select-search [formControl]="bankFilterCtrlMatOption"
|
|
57
|
-
// #selectSearchSingleMatOption></ngx-mat-select-search>
|
|
58
|
-
// </mat-option>
|
|
59
|
-
// <mat-option *ngFor="let bank of filteredBanksMatOption | async" [value]="bank">
|
|
60
|
-
// {{bank.name}}
|
|
61
|
-
// </mat-option>
|
|
62
|
-
// </mat-select>
|
|
63
|
-
// </mat-form-field>
|
|
64
|
-
// </p>
|
|
65
|
-
// <p>
|
|
66
|
-
// Selected Bank: {{bankCtrlMatOption.value?.name}}
|
|
67
|
-
// </p>
|
|
68
|
-
//
|
|
69
|
-
// <h3>Multiple selection</h3>
|
|
70
|
-
// <p>
|
|
71
|
-
// <mat-form-field>
|
|
72
|
-
// <mat-select [formControl]="bankMultiCtrl" placeholder="Banks" [multiple]="true" #selectMulti>
|
|
73
|
-
// <ngx-mat-select-search [formControl]="bankMultiFilterCtrl" #selectSearchMulti></ngx-mat-select-search>
|
|
74
|
-
// <mat-option *ngFor="let bank of filteredBanksMulti | async" [value]="bank">
|
|
75
|
-
// {{bank.name}}
|
|
76
|
-
// </mat-option>
|
|
77
|
-
// </mat-select>
|
|
78
|
-
// </mat-form-field>
|
|
79
|
-
// </p>
|
|
80
|
-
// <p>
|
|
81
|
-
// Selected Banks:
|
|
82
|
-
// </p>
|
|
83
|
-
// <ul *ngFor="let bank of bankMultiCtrl?.value">
|
|
84
|
-
// <li>{{bank.name}}</li>
|
|
85
|
-
// </ul>
|
|
86
|
-
// `,
|
|
87
|
-
// })
|
|
88
|
-
// export class MatSelectSearchTestComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
89
|
-
//
|
|
90
|
-
// @ViewChild('selectSingle') matSelect: MatSelect;
|
|
91
|
-
// @ViewChild('selectSingleMatOption') matSelectMatOption: MatSelect;
|
|
92
|
-
// @ViewChild('selectMulti') matSelectMulti: MatSelect;
|
|
93
|
-
// @ViewChild('selectSearchSingle') matSelectSearch: MatSelectSearchComponent;
|
|
94
|
-
// @ViewChild('selectSearchSingleMatOption') matSelectSearchMatOption: MatSelectSearchComponent;
|
|
95
|
-
// @ViewChild('selectSearchMulti') matSelectSearchMulti: MatSelectSearchComponent;
|
|
96
|
-
//
|
|
97
|
-
// // control for the selected bank
|
|
98
|
-
// public bankCtrl: UntypedFormControl = new UntypedFormControl();
|
|
99
|
-
// // control for the selected bank
|
|
100
|
-
// public bankCtrlMatOption: UntypedFormControl = new UntypedFormControl();
|
|
101
|
-
// // control for the MatSelect filter keyword
|
|
102
|
-
// public bankFilterCtrl: UntypedFormControl = new UntypedFormControl();
|
|
103
|
-
// // control for the MatSelect filter keyword
|
|
104
|
-
// public bankFilterCtrlMatOption: UntypedFormControl = new UntypedFormControl();
|
|
105
|
-
//
|
|
106
|
-
// /** control for the selected bank for multi-selection */
|
|
107
|
-
// public bankMultiCtrl: UntypedFormControl = new UntypedFormControl();
|
|
108
|
-
//
|
|
109
|
-
// /** control for the MatSelect filter keyword multi-selection */
|
|
110
|
-
// public bankMultiFilterCtrl: UntypedFormControl = new UntypedFormControl();
|
|
111
|
-
//
|
|
112
|
-
//
|
|
113
|
-
// // list of banks
|
|
114
|
-
// public banks: Bank[] = [{name: 'Bank A', id: 'A'}, {name: 'Bank B', id: 'B'}, {
|
|
115
|
-
// name: 'Bank C',
|
|
116
|
-
// id: 'C'
|
|
117
|
-
// }, {name: 'Bank DC', id: 'DC'}];
|
|
118
|
-
//
|
|
119
|
-
// public filteredBanks: ReplaySubject<Bank[]> = new ReplaySubject<Bank[]>(1);
|
|
120
|
-
// public filteredBanksMatOption: ReplaySubject<Bank[]> = new ReplaySubject<Bank[]>(1);
|
|
121
|
-
//
|
|
122
|
-
// /** list of banks filtered by search keyword for multi-selection */
|
|
123
|
-
// public filteredBanksMulti: ReplaySubject<Bank[]> = new ReplaySubject<Bank[]>(1);
|
|
124
|
-
//
|
|
125
|
-
// public initialSingleSelection: Bank = null;
|
|
126
|
-
// public initialSingleSelectionMatOption: Bank = null;
|
|
127
|
-
// public initialMultiSelection: Bank[] = [];
|
|
128
|
-
//
|
|
129
|
-
//
|
|
130
|
-
// // Subject that emits when the component has been destroyed.
|
|
131
|
-
// private _onDestroy = new Subject<void>();
|
|
132
|
-
//
|
|
133
|
-
// ngOnInit() {
|
|
134
|
-
// // set initial selection
|
|
135
|
-
// if (this.initialSingleSelection) {
|
|
136
|
-
// this.bankCtrl.setValue(this.initialSingleSelection);
|
|
137
|
-
// }
|
|
138
|
-
// if (this.initialSingleSelectionMatOption) {
|
|
139
|
-
// this.bankCtrlMatOption.setValue(this.initialSingleSelectionMatOption);
|
|
140
|
-
// }
|
|
141
|
-
// if (this.initialMultiSelection) {
|
|
142
|
-
// this.bankMultiCtrl.setValue(this.initialMultiSelection);
|
|
143
|
-
// }
|
|
144
|
-
//
|
|
145
|
-
//
|
|
146
|
-
// // load the initial bank list
|
|
147
|
-
// this.filteredBanks.next(this.banks.slice());
|
|
148
|
-
// this.filteredBanksMatOption.next(this.banks.slice());
|
|
149
|
-
// this.filteredBanksMulti.next(this.banks.slice());
|
|
150
|
-
//
|
|
151
|
-
// // listen for search field value changes
|
|
152
|
-
// this.bankFilterCtrl.valueChanges
|
|
153
|
-
// .pipe(takeUntil(this._onDestroy))
|
|
154
|
-
// .subscribe(() => {
|
|
155
|
-
// this.filterBanks();
|
|
156
|
-
// });
|
|
157
|
-
// this.bankFilterCtrlMatOption.valueChanges
|
|
158
|
-
// .pipe(takeUntil(this._onDestroy))
|
|
159
|
-
// .subscribe(() => {
|
|
160
|
-
// this.filterBanksMatOption();
|
|
161
|
-
// });
|
|
162
|
-
// this.bankMultiFilterCtrl.valueChanges
|
|
163
|
-
// .pipe(takeUntil(this._onDestroy))
|
|
164
|
-
// .subscribe(() => {
|
|
165
|
-
// this.filterBanksMulti();
|
|
166
|
-
// });
|
|
167
|
-
// }
|
|
168
|
-
//
|
|
169
|
-
// ngAfterViewInit() {
|
|
170
|
-
// this.setInitialValue();
|
|
171
|
-
// }
|
|
172
|
-
//
|
|
173
|
-
// ngOnDestroy() {
|
|
174
|
-
// this._onDestroy.next();
|
|
175
|
-
// this._onDestroy.complete();
|
|
176
|
-
// }
|
|
177
|
-
//
|
|
178
|
-
// /**
|
|
179
|
-
// * Sets the initial value after the filteredBanks are loaded initially
|
|
180
|
-
// */
|
|
181
|
-
// private setInitialValue() {
|
|
182
|
-
// this.filteredBanks
|
|
183
|
-
// .pipe(take(1), takeUntil(this._onDestroy))
|
|
184
|
-
// .subscribe(() => {
|
|
185
|
-
// // setting the compareWith property to a comparison function
|
|
186
|
-
// // triggers initializing the selection according to the initial value of
|
|
187
|
-
// // the form control (i.e. _initializeSelection())
|
|
188
|
-
// // this needs to be done after the filteredBanks are loaded initially
|
|
189
|
-
// // and after the mat-option elements are available
|
|
190
|
-
// this.matSelect.compareWith = (a: Bank, b: Bank) => a && b && a.id === b.id;
|
|
191
|
-
// this.matSelectMatOption.compareWith = (a: Bank, b: Bank) => a && b && a.id === b.id;
|
|
192
|
-
// this.matSelectMulti.compareWith = (a: Bank, b: Bank) => a && b && a.id === b.id;
|
|
193
|
-
// });
|
|
194
|
-
// }
|
|
195
|
-
//
|
|
196
|
-
// private filterBanks() {
|
|
197
|
-
// if (!this.banks) {
|
|
198
|
-
// return;
|
|
199
|
-
// }
|
|
200
|
-
//
|
|
201
|
-
// // get the search keyword
|
|
202
|
-
// let search = this.bankFilterCtrl.value;
|
|
203
|
-
// if (!search) {
|
|
204
|
-
// this.filteredBanks.next(this.banks.slice());
|
|
205
|
-
// return;
|
|
206
|
-
// } else {
|
|
207
|
-
// search = search.toLowerCase();
|
|
208
|
-
// }
|
|
209
|
-
//
|
|
210
|
-
// // filter the banks
|
|
211
|
-
// this.filteredBanks.next(
|
|
212
|
-
// this.banks.filter(bank => bank.name.toLowerCase().indexOf(search) > -1)
|
|
213
|
-
// );
|
|
214
|
-
// }
|
|
215
|
-
//
|
|
216
|
-
// private filterBanksMatOption() {
|
|
217
|
-
// if (!this.banks) {
|
|
218
|
-
// return;
|
|
219
|
-
// }
|
|
220
|
-
//
|
|
221
|
-
// // get the search keyword
|
|
222
|
-
// let search = this.bankFilterCtrlMatOption.value;
|
|
223
|
-
// if (!search) {
|
|
224
|
-
// this.filteredBanksMatOption.next(this.banks.slice());
|
|
225
|
-
// return;
|
|
226
|
-
// } else {
|
|
227
|
-
// search = search.toLowerCase();
|
|
228
|
-
// }
|
|
229
|
-
//
|
|
230
|
-
// // filter the banks
|
|
231
|
-
// this.filteredBanksMatOption.next(
|
|
232
|
-
// this.banks.filter(bank => bank.name.toLowerCase().indexOf(search) > -1)
|
|
233
|
-
// );
|
|
234
|
-
// }
|
|
235
|
-
//
|
|
236
|
-
//
|
|
237
|
-
// private filterBanksMulti() {
|
|
238
|
-
// if (!this.banks) {
|
|
239
|
-
// return;
|
|
240
|
-
// }
|
|
241
|
-
// // get the search keyword
|
|
242
|
-
// let search = this.bankMultiFilterCtrl.value;
|
|
243
|
-
// if (!search) {
|
|
244
|
-
// this.filteredBanksMulti.next(this.banks.slice());
|
|
245
|
-
// return;
|
|
246
|
-
// } else {
|
|
247
|
-
// search = search.toLowerCase();
|
|
248
|
-
// }
|
|
249
|
-
// // filter the banks
|
|
250
|
-
// this.filteredBanksMulti.next(
|
|
251
|
-
// this.banks.filter(bank => bank.name.toLowerCase().indexOf(search) > -1)
|
|
252
|
-
// );
|
|
253
|
-
// }
|
|
254
|
-
// }
|
|
255
|
-
//
|
|
256
|
-
// describe('MatSelectSearchComponent', () => {
|
|
257
|
-
// let component: MatSelectSearchTestComponent;
|
|
258
|
-
// let fixture: ComponentFixture<MatSelectSearchTestComponent>;
|
|
259
|
-
//
|
|
260
|
-
// beforeEach(waitForAsync(() => {
|
|
261
|
-
// TestBed.configureTestingModule({
|
|
262
|
-
// imports: [
|
|
263
|
-
// CommonModule,
|
|
264
|
-
// NoopAnimationsModule,
|
|
265
|
-
// ReactiveFormsModule,
|
|
266
|
-
// MatFormFieldModule,
|
|
267
|
-
// MatSelectModule,
|
|
268
|
-
// MatSelectSearchModule
|
|
269
|
-
// ],
|
|
270
|
-
// declarations: [MatSelectSearchTestComponent],
|
|
271
|
-
// providers: [{
|
|
272
|
-
// provide: LiveAnnouncer,
|
|
273
|
-
// useValue: {
|
|
274
|
-
// announce: jasmine.createSpy('announce')
|
|
275
|
-
// }
|
|
276
|
-
// }
|
|
277
|
-
// ]
|
|
278
|
-
// })
|
|
279
|
-
// .compileComponents();
|
|
280
|
-
// }));
|
|
281
|
-
//
|
|
282
|
-
//
|
|
283
|
-
// beforeEach(() => {
|
|
284
|
-
// fixture = TestBed.createComponent(MatSelectSearchTestComponent);
|
|
285
|
-
// component = fixture.componentInstance;
|
|
286
|
-
// });
|
|
287
|
-
//
|
|
288
|
-
// describe('without initial selection', () => {
|
|
289
|
-
//
|
|
290
|
-
// beforeEach(() => {
|
|
291
|
-
// fixture.detectChanges();
|
|
292
|
-
// });
|
|
293
|
-
//
|
|
294
|
-
// it('should create', () => {
|
|
295
|
-
// expect(component).toBeTruthy();
|
|
296
|
-
// });
|
|
297
|
-
//
|
|
298
|
-
// it('should show a search field and focus it when opening the select', (done) => {
|
|
299
|
-
//
|
|
300
|
-
// component.filteredBanks
|
|
301
|
-
// .pipe(
|
|
302
|
-
// take(1),
|
|
303
|
-
// delay(1)
|
|
304
|
-
// )
|
|
305
|
-
// .subscribe(() => {
|
|
306
|
-
// // when the filtered banks are initialized
|
|
307
|
-
// fixture.detectChanges();
|
|
308
|
-
//
|
|
309
|
-
// component.matSelect.open();
|
|
310
|
-
// fixture.detectChanges();
|
|
311
|
-
//
|
|
312
|
-
// component.matSelect.openedChange
|
|
313
|
-
// .pipe(
|
|
314
|
-
// take(1),
|
|
315
|
-
// delay(1)
|
|
316
|
-
// )
|
|
317
|
-
// .subscribe((opened) => {
|
|
318
|
-
// expect(opened).toBe(true);
|
|
319
|
-
// const searchField = document.querySelector('.mat-select-search-inner .mat-select-search-input');
|
|
320
|
-
// const searchInner = document.querySelector('.mat-select-search-inner');
|
|
321
|
-
// expect(searchInner).toBeTruthy();
|
|
322
|
-
// expect(searchField).toBeTruthy();
|
|
323
|
-
// // check focus
|
|
324
|
-
// expect(searchField).toBe(document.activeElement);
|
|
325
|
-
//
|
|
326
|
-
// const optionElements = document.querySelectorAll('mat-option');
|
|
327
|
-
// expect(component.matSelect.options.length).toBe(4);
|
|
328
|
-
// expect(optionElements.length).toBe(4);
|
|
329
|
-
//
|
|
330
|
-
// done();
|
|
331
|
-
// });
|
|
332
|
-
//
|
|
333
|
-
// });
|
|
334
|
-
//
|
|
335
|
-
// });
|
|
336
|
-
//
|
|
337
|
-
//
|
|
338
|
-
// it('should filter the options available and hightlight the first option in the list, filter the options by input "c" and reset the list', (done) => {
|
|
339
|
-
//
|
|
340
|
-
// component.filteredBanks
|
|
341
|
-
// .pipe(
|
|
342
|
-
// take(1),
|
|
343
|
-
// delay(1)
|
|
344
|
-
// )
|
|
345
|
-
// .subscribe(() => {
|
|
346
|
-
// // when the filtered banks are initialized
|
|
347
|
-
// fixture.detectChanges();
|
|
348
|
-
//
|
|
349
|
-
// component.matSelect.open();
|
|
350
|
-
// fixture.detectChanges();
|
|
351
|
-
//
|
|
352
|
-
// component.matSelect.openedChange
|
|
353
|
-
// .pipe(take(1))
|
|
354
|
-
// .subscribe((opened) => {
|
|
355
|
-
// expect(opened).toBe(true);
|
|
356
|
-
// const searchField = document.querySelector('.mat-select-search-inner .mat-select-search-input');
|
|
357
|
-
// expect(searchField).toBeTruthy();
|
|
358
|
-
//
|
|
359
|
-
// expect(component.matSelect.options.length).toBe(4);
|
|
360
|
-
//
|
|
361
|
-
// // search for "c"
|
|
362
|
-
// component.matSelectSearch._formControl.setValue('c');
|
|
363
|
-
// fixture.detectChanges();
|
|
364
|
-
//
|
|
365
|
-
// expect(component.bankFilterCtrl.value).toBe('c');
|
|
366
|
-
// expect(component.matSelect.panelOpen).toBe(true);
|
|
367
|
-
//
|
|
368
|
-
// component.filteredBanks
|
|
369
|
-
// .pipe(take(1))
|
|
370
|
-
// .subscribe(() => {
|
|
371
|
-
// fixture.detectChanges();
|
|
372
|
-
//
|
|
373
|
-
// setTimeout(() => {
|
|
374
|
-
// expect(component.matSelect.options.length).toBe(2);
|
|
375
|
-
// expect(component.matSelect.options.first.value.id).toBe('C');
|
|
376
|
-
// expect(component.matSelect.options.first.active).toBe(true, 'first active');
|
|
377
|
-
//
|
|
378
|
-
// component.matSelectSearch._reset(true);
|
|
379
|
-
// fixture.detectChanges();
|
|
380
|
-
//
|
|
381
|
-
// // check focus
|
|
382
|
-
// expect(searchField).toBe(document.activeElement);
|
|
383
|
-
// expect(component.matSelect.panelOpen).toBe(true);
|
|
384
|
-
//
|
|
385
|
-
// component.filteredBanks
|
|
386
|
-
// .pipe(take(1))
|
|
387
|
-
// .subscribe(() => {
|
|
388
|
-
// fixture.detectChanges();
|
|
389
|
-
// if (component.matSelectSearch.clearSearchInput) {
|
|
390
|
-
// expect(component.matSelect.options.length).toBe(4);
|
|
391
|
-
// } else {
|
|
392
|
-
// expect(component.matSelect.options.length).toBe(2);
|
|
393
|
-
// }
|
|
394
|
-
//
|
|
395
|
-
// done();
|
|
396
|
-
// });
|
|
397
|
-
// });
|
|
398
|
-
//
|
|
399
|
-
// });
|
|
400
|
-
//
|
|
401
|
-
// });
|
|
402
|
-
//
|
|
403
|
-
// });
|
|
404
|
-
//
|
|
405
|
-
// });
|
|
406
|
-
//
|
|
407
|
-
// it('should not announce active option if there are no options', (done) => {
|
|
408
|
-
// const announcer = TestBed.get(LiveAnnouncer);
|
|
409
|
-
// component.filteredBanks
|
|
410
|
-
// .pipe(
|
|
411
|
-
// take(1),
|
|
412
|
-
// delay(1)
|
|
413
|
-
// )
|
|
414
|
-
// .subscribe(() => {
|
|
415
|
-
// // when the filtered banks are initialized
|
|
416
|
-
// fixture.detectChanges();
|
|
417
|
-
//
|
|
418
|
-
// component.matSelect.open();
|
|
419
|
-
// fixture.detectChanges();
|
|
420
|
-
//
|
|
421
|
-
// component.matSelect.openedChange
|
|
422
|
-
// .pipe(take(1))
|
|
423
|
-
// .subscribe((opened) => {
|
|
424
|
-
//
|
|
425
|
-
// // search for "something definitely not in the list"
|
|
426
|
-
// component.matSelectSearch._formControl.setValue('something definitely not in the list');
|
|
427
|
-
// fixture.detectChanges();
|
|
428
|
-
//
|
|
429
|
-
// component.filteredBanks
|
|
430
|
-
// .pipe(take(1))
|
|
431
|
-
// .subscribe(() => {
|
|
432
|
-
// fixture.detectChanges();
|
|
433
|
-
//
|
|
434
|
-
// setTimeout(() => {
|
|
435
|
-
// expect(component.matSelect.options.length).toBe(0);
|
|
436
|
-
//
|
|
437
|
-
// component.matSelectSearch._handleKeyup(<KeyboardEvent>{keyCode: DOWN_ARROW});
|
|
438
|
-
// expect(announcer.announce).not.toHaveBeenCalled();
|
|
439
|
-
// done();
|
|
440
|
-
// });
|
|
441
|
-
// });
|
|
442
|
-
// });
|
|
443
|
-
// });
|
|
444
|
-
// });
|
|
445
|
-
//
|
|
446
|
-
// describe('inside mat-option', () => {
|
|
447
|
-
//
|
|
448
|
-
// it('should show a search field and focus it when opening the select', (done) => {
|
|
449
|
-
//
|
|
450
|
-
// component.filteredBanksMatOption
|
|
451
|
-
// .pipe(
|
|
452
|
-
// take(1),
|
|
453
|
-
// delay(1)
|
|
454
|
-
// )
|
|
455
|
-
// .subscribe(() => {
|
|
456
|
-
// // when the filtered banks are initialized
|
|
457
|
-
// fixture.detectChanges();
|
|
458
|
-
//
|
|
459
|
-
// component.matSelectMatOption.open();
|
|
460
|
-
// fixture.detectChanges();
|
|
461
|
-
//
|
|
462
|
-
// component.matSelectMatOption.openedChange
|
|
463
|
-
// .pipe(
|
|
464
|
-
// take(1),
|
|
465
|
-
// delay(1)
|
|
466
|
-
// )
|
|
467
|
-
// .subscribe((opened) => {
|
|
468
|
-
// expect(opened).toBe(true);
|
|
469
|
-
// const searchField = document.querySelector('.mat-select-search-inner .mat-select-search-input');
|
|
470
|
-
// const searchInner = document.querySelector('.mat-select-search-inner');
|
|
471
|
-
// expect(searchInner).toBeTruthy();
|
|
472
|
-
// expect(searchField).toBeTruthy();
|
|
473
|
-
// // check focus
|
|
474
|
-
// expect(searchField).toBe(document.activeElement);
|
|
475
|
-
//
|
|
476
|
-
// const optionElements = document.querySelectorAll('mat-option');
|
|
477
|
-
// expect(component.matSelectMatOption.options.length).toBe(5);
|
|
478
|
-
// expect(optionElements.length).toBe(5);
|
|
479
|
-
//
|
|
480
|
-
// done();
|
|
481
|
-
// });
|
|
482
|
-
//
|
|
483
|
-
// });
|
|
484
|
-
//
|
|
485
|
-
// });
|
|
486
|
-
//
|
|
487
|
-
//
|
|
488
|
-
// it('should filter the options available and hightlight the first option in the list, filter the options by input "c" and reset the list', (done) => {
|
|
489
|
-
//
|
|
490
|
-
// component.filteredBanksMatOption
|
|
491
|
-
// .pipe(
|
|
492
|
-
// take(1),
|
|
493
|
-
// delay(1)
|
|
494
|
-
// )
|
|
495
|
-
// .subscribe(() => {
|
|
496
|
-
// // when the filtered banks are initialized
|
|
497
|
-
// fixture.detectChanges();
|
|
498
|
-
//
|
|
499
|
-
// component.matSelectMatOption.open();
|
|
500
|
-
// fixture.detectChanges();
|
|
501
|
-
//
|
|
502
|
-
// component.matSelectMatOption.openedChange
|
|
503
|
-
// .pipe(take(1))
|
|
504
|
-
// .subscribe((opened) => {
|
|
505
|
-
// expect(opened).toBe(true);
|
|
506
|
-
// const searchField = document.querySelector('.mat-select-search-inner .mat-select-search-input');
|
|
507
|
-
// expect(searchField).toBeTruthy();
|
|
508
|
-
//
|
|
509
|
-
// expect(component.matSelectMatOption.options.length).toBe(5);
|
|
510
|
-
//
|
|
511
|
-
// // search for "c"
|
|
512
|
-
// component.matSelectSearchMatOption._formControl.setValue('c');
|
|
513
|
-
// fixture.detectChanges();
|
|
514
|
-
//
|
|
515
|
-
// expect(component.bankFilterCtrlMatOption.value).toBe('c');
|
|
516
|
-
// expect(component.matSelectMatOption.panelOpen).toBe(true);
|
|
517
|
-
//
|
|
518
|
-
// component.filteredBanks
|
|
519
|
-
// .pipe(take(1))
|
|
520
|
-
// .subscribe(() => {
|
|
521
|
-
// fixture.detectChanges();
|
|
522
|
-
//
|
|
523
|
-
// setTimeout(() => {
|
|
524
|
-
// expect(component.matSelectMatOption.options.length).toBe(3);
|
|
525
|
-
// expect(component.matSelectMatOption.options.toArray()[1].value.id).toBe('C');
|
|
526
|
-
// expect(component.matSelectMatOption.options.toArray()[1].active).toBe(true, 'first active');
|
|
527
|
-
//
|
|
528
|
-
// component.matSelectSearchMatOption._reset(true);
|
|
529
|
-
// fixture.detectChanges();
|
|
530
|
-
//
|
|
531
|
-
// // check focus
|
|
532
|
-
// expect(searchField).toBe(document.activeElement);
|
|
533
|
-
// expect(component.matSelectMatOption.panelOpen).toBe(true);
|
|
534
|
-
//
|
|
535
|
-
// component.filteredBanks
|
|
536
|
-
// .pipe(take(1))
|
|
537
|
-
// .subscribe(() => {
|
|
538
|
-
// fixture.detectChanges();
|
|
539
|
-
// expect(component.matSelectMatOption.options.length).toBe(5);
|
|
540
|
-
//
|
|
541
|
-
// done();
|
|
542
|
-
// });
|
|
543
|
-
// });
|
|
544
|
-
//
|
|
545
|
-
// });
|
|
546
|
-
//
|
|
547
|
-
// });
|
|
548
|
-
//
|
|
549
|
-
// });
|
|
550
|
-
//
|
|
551
|
-
// });
|
|
552
|
-
//
|
|
553
|
-
// })
|
|
554
|
-
//
|
|
555
|
-
// });
|
|
556
|
-
//
|
|
557
|
-
// describe('with initial selection', () => {
|
|
558
|
-
//
|
|
559
|
-
// it('should set the initial selection of MatSelect', waitForAsync((done) => {
|
|
560
|
-
// component.initialSingleSelection = component.banks[3];
|
|
561
|
-
// fixture.detectChanges();
|
|
562
|
-
//
|
|
563
|
-
// component.filteredBanks
|
|
564
|
-
// .pipe(
|
|
565
|
-
// take(1),
|
|
566
|
-
// delay(1)
|
|
567
|
-
// )
|
|
568
|
-
// .subscribe(() => {
|
|
569
|
-
//
|
|
570
|
-
// // when the filtered banks are initialized
|
|
571
|
-
// fixture.detectChanges();
|
|
572
|
-
// fixture.whenStable().then(() => {
|
|
573
|
-
// fixture.detectChanges();
|
|
574
|
-
// component.matSelect.options.changes
|
|
575
|
-
// .pipe(take(1))
|
|
576
|
-
// .subscribe(() => {
|
|
577
|
-
//
|
|
578
|
-
// expect(component.matSelect.value).toEqual(component.banks[3]);
|
|
579
|
-
//
|
|
580
|
-
// component.matSelect.open();
|
|
581
|
-
// fixture.detectChanges();
|
|
582
|
-
//
|
|
583
|
-
// component.matSelect.openedChange
|
|
584
|
-
// .pipe(take(1))
|
|
585
|
-
// .subscribe((opened) => {
|
|
586
|
-
// expect(opened).toBe(true);
|
|
587
|
-
// expect(component.matSelect.value).toEqual(component.banks[3]);
|
|
588
|
-
// expect(component.bankCtrl.value).toEqual(component.banks[3]);
|
|
589
|
-
//
|
|
590
|
-
// done();
|
|
591
|
-
// });
|
|
592
|
-
// });
|
|
593
|
-
//
|
|
594
|
-
// });
|
|
595
|
-
//
|
|
596
|
-
// });
|
|
597
|
-
//
|
|
598
|
-
// }));
|
|
599
|
-
//
|
|
600
|
-
// it('set the initial selection with multi=true and filter the options available, filter the options by input "c" and select an option', waitForAsync((done) => {
|
|
601
|
-
// component.initialMultiSelection = [component.banks[1]];
|
|
602
|
-
// fixture.detectChanges();
|
|
603
|
-
//
|
|
604
|
-
// component.filteredBanksMulti
|
|
605
|
-
// .pipe(
|
|
606
|
-
// take(1),
|
|
607
|
-
// delay(1)
|
|
608
|
-
// )
|
|
609
|
-
// .subscribe(() => {
|
|
610
|
-
// // when the filtered banks are initialized
|
|
611
|
-
// fixture.detectChanges();
|
|
612
|
-
// fixture.whenStable().then(() => {
|
|
613
|
-
// fixture.detectChanges();
|
|
614
|
-
// component.matSelect.options.changes
|
|
615
|
-
// .pipe(take(1))
|
|
616
|
-
// .subscribe(() => {
|
|
617
|
-
//
|
|
618
|
-
// component.matSelectMulti.open();
|
|
619
|
-
// fixture.detectChanges();
|
|
620
|
-
//
|
|
621
|
-
// component.matSelectMulti.openedChange
|
|
622
|
-
// .pipe(take(1))
|
|
623
|
-
// .subscribe((opened) => {
|
|
624
|
-
// expect(opened).toBe(true);
|
|
625
|
-
// expect(component.matSelectMulti.value).toEqual([component.banks[1]]);
|
|
626
|
-
// expect(component.bankMultiCtrl.value).toEqual([component.banks[1]]);
|
|
627
|
-
//
|
|
628
|
-
// const searchField = document.querySelector('.mat-select-search-inner .mat-select-search-input');
|
|
629
|
-
// expect(searchField).toBeTruthy();
|
|
630
|
-
//
|
|
631
|
-
// expect(component.matSelectMulti.options.length).toBe(4);
|
|
632
|
-
//
|
|
633
|
-
// // search for "c"
|
|
634
|
-
// component.matSelectSearchMulti._formControl.setValue('c');
|
|
635
|
-
// fixture.detectChanges();
|
|
636
|
-
//
|
|
637
|
-
// expect(component.bankFilterCtrl.value).toBe('c');
|
|
638
|
-
// expect(component.matSelectMulti.panelOpen).toBe(true);
|
|
639
|
-
//
|
|
640
|
-
// component.filteredBanks
|
|
641
|
-
// .pipe(take(1))
|
|
642
|
-
// .subscribe(() => {
|
|
643
|
-
// fixture.detectChanges();
|
|
644
|
-
//
|
|
645
|
-
// setTimeout(() => {
|
|
646
|
-
// expect(component.matSelectMulti.options.length).toBe(2);
|
|
647
|
-
// expect(component.matSelectMulti.options.first.value.id).toBe('C');
|
|
648
|
-
// expect(component.matSelectMulti.options.first.active).toBe(true, 'first active');
|
|
649
|
-
//
|
|
650
|
-
// component.matSelectMulti.options.first._selectViaInteraction();
|
|
651
|
-
//
|
|
652
|
-
// fixture.detectChanges();
|
|
653
|
-
//
|
|
654
|
-
// // check focus
|
|
655
|
-
// expect(component.matSelectMulti.panelOpen).toBe(true);
|
|
656
|
-
//
|
|
657
|
-
// setTimeout(() => {
|
|
658
|
-
// fixture.detectChanges();
|
|
659
|
-
// expect(component.matSelectMulti.value).toEqual([component.banks[1], component.banks[2]]);
|
|
660
|
-
// expect(component.bankMultiCtrl.value).toEqual([component.banks[1], component.banks[2]]);
|
|
661
|
-
//
|
|
662
|
-
// // search for "d"
|
|
663
|
-
// component.matSelectSearchMulti._formControl.setValue('d');
|
|
664
|
-
// fixture.detectChanges();
|
|
665
|
-
//
|
|
666
|
-
// expect(component.bankFilterCtrl.value).toBe('d');
|
|
667
|
-
// expect(component.matSelectMulti.panelOpen).toBe(true);
|
|
668
|
-
//
|
|
669
|
-
// component.filteredBanks
|
|
670
|
-
// .pipe(take(1))
|
|
671
|
-
// .subscribe(() => {
|
|
672
|
-
// fixture.detectChanges();
|
|
673
|
-
//
|
|
674
|
-
// setTimeout(() => {
|
|
675
|
-
// expect(component.matSelectMulti.options.length).toBe(1);
|
|
676
|
-
// expect(component.matSelectMulti.options.first.value.id).toBe('DC');
|
|
677
|
-
// expect(component.matSelectMulti.options.first.active).toBe(true, 'first active');
|
|
678
|
-
//
|
|
679
|
-
// component.matSelectMulti.options.first._selectViaInteraction();
|
|
680
|
-
//
|
|
681
|
-
// fixture.detectChanges();
|
|
682
|
-
//
|
|
683
|
-
// // check focus
|
|
684
|
-
// expect(component.matSelectMulti.panelOpen).toBe(true);
|
|
685
|
-
//
|
|
686
|
-
// setTimeout(() => {
|
|
687
|
-
// fixture.detectChanges();
|
|
688
|
-
// expect(component.matSelectMulti.value).toEqual([component.banks[1], component.banks[2], component.banks[3]]);
|
|
689
|
-
// expect(component.bankMultiCtrl.value).toEqual([component.banks[1], component.banks[2], component.banks[3]]);
|
|
690
|
-
// done();
|
|
691
|
-
//
|
|
692
|
-
// });
|
|
693
|
-
// });
|
|
694
|
-
//
|
|
695
|
-
// });
|
|
696
|
-
//
|
|
697
|
-
// });
|
|
698
|
-
// });
|
|
699
|
-
//
|
|
700
|
-
// });
|
|
701
|
-
//
|
|
702
|
-
// });
|
|
703
|
-
// });
|
|
704
|
-
// });
|
|
705
|
-
//
|
|
706
|
-
//
|
|
707
|
-
// });
|
|
708
|
-
// }));
|
|
709
|
-
//
|
|
710
|
-
// });
|
|
711
|
-
//
|
|
712
|
-
// });
|
|
713
|
-
//
|
|
714
|
-
//
|
|
715
|
-
// describe('MatSelectSearchComponent with default options', () => {
|
|
716
|
-
// let component: MatSelectSearchTestComponent;
|
|
717
|
-
// let fixture: ComponentFixture<MatSelectSearchTestComponent>;
|
|
718
|
-
//
|
|
719
|
-
// beforeEach(waitForAsync(() => {
|
|
720
|
-
// TestBed.configureTestingModule({
|
|
721
|
-
// imports: [
|
|
722
|
-
// CommonModule,
|
|
723
|
-
// NoopAnimationsModule,
|
|
724
|
-
// ReactiveFormsModule,
|
|
725
|
-
// MatFormFieldModule,
|
|
726
|
-
// MatSelectModule,
|
|
727
|
-
// MatSelectSearchModule
|
|
728
|
-
// ],
|
|
729
|
-
// declarations: [MatSelectSearchTestComponent],
|
|
730
|
-
// providers: [
|
|
731
|
-
// {
|
|
732
|
-
// provide: LiveAnnouncer,
|
|
733
|
-
// useValue: {
|
|
734
|
-
// announce: jasmine.createSpy('announce')
|
|
735
|
-
// }
|
|
736
|
-
// },
|
|
737
|
-
// {
|
|
738
|
-
// provide: MAT_SELECTSEARCH_DEFAULT_OPTIONS,
|
|
739
|
-
// useValue: <MatSelectSearchOptions>{
|
|
740
|
-
// placeholderLabel: 'Mega bla',
|
|
741
|
-
// },
|
|
742
|
-
// },
|
|
743
|
-
// ]
|
|
744
|
-
// })
|
|
745
|
-
// .compileComponents();
|
|
746
|
-
// }));
|
|
747
|
-
//
|
|
748
|
-
//
|
|
749
|
-
// beforeEach(() => {
|
|
750
|
-
// fixture = TestBed.createComponent(MatSelectSearchTestComponent);
|
|
751
|
-
// component = fixture.componentInstance;
|
|
752
|
-
// fixture.detectChanges();
|
|
753
|
-
// });
|
|
754
|
-
//
|
|
755
|
-
//
|
|
756
|
-
// it('should create', () => {
|
|
757
|
-
// expect(component).toBeTruthy();
|
|
758
|
-
// });
|
|
759
|
-
//
|
|
760
|
-
// it('should show a search field and focus it when opening the select', (done) => {
|
|
761
|
-
//
|
|
762
|
-
// component.filteredBanks
|
|
763
|
-
// .pipe(
|
|
764
|
-
// take(1),
|
|
765
|
-
// delay(1)
|
|
766
|
-
// )
|
|
767
|
-
// .subscribe(() => {
|
|
768
|
-
// // when the filtered banks are initialized
|
|
769
|
-
// fixture.detectChanges();
|
|
770
|
-
//
|
|
771
|
-
// component.matSelect.open();
|
|
772
|
-
// fixture.detectChanges();
|
|
773
|
-
//
|
|
774
|
-
// component.matSelect.openedChange
|
|
775
|
-
// .pipe(
|
|
776
|
-
// take(1),
|
|
777
|
-
// delay(1)
|
|
778
|
-
// )
|
|
779
|
-
// .subscribe((opened) => {
|
|
780
|
-
// const searchField = document.querySelector('.mat-select-search-inner .mat-select-search-input') as HTMLInputElement;
|
|
781
|
-
//
|
|
782
|
-
// expect(searchField.placeholder).toBe('Mega bla');
|
|
783
|
-
// done();
|
|
784
|
-
// });
|
|
785
|
-
//
|
|
786
|
-
// });
|
|
787
|
-
//
|
|
788
|
-
// });
|
|
789
|
-
//
|
|
790
|
-
// });
|