@onemrvapublic/design-system 18.3.0-develop.1 → 19.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/_index.scss +0 -1
- package/_utils.scss +3 -3
- package/fesm2022/onemrvapublic-design-system-core.mjs +7 -7
- package/fesm2022/onemrvapublic-design-system-core.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-layout.mjs +188 -97
- package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +11 -11
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +27 -18
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +6 -6
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +107 -86
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +6 -6
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +4 -4
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +6 -6
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +10 -13
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +31 -51
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +24 -35
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +28 -29
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +20 -20
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +48 -149
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +21 -53
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +14 -17
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +11 -12
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +12 -13
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +16 -41
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +11 -11
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +9 -9
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +26 -41
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +51 -64
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +12 -12
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +18 -18
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-page-error.mjs +6 -6
- package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +32 -26
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs +70 -62
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/layout/index.d.ts +5 -5
- package/layout/src/components/layout/_layout-mixin.component.scss +5 -5
- package/layout/src/components/layout/layout.component.d.ts +1 -1
- package/layout/src/components/layout/layout.component.scss +7 -0
- package/layout/src/components/layout-after-nav/layout-after-nav.component.d.ts +1 -1
- package/layout/src/components/layout-content/layout-content.component.d.ts +1 -1
- package/layout/src/components/layout-footer/layout-footer.component.d.ts +1 -1
- package/layout/src/components/layout-login-menu/layout-login-menu.component.d.ts +1 -1
- package/layout/src/components/layout-route/layout-route.component.d.ts +1 -1
- package/layout/src/components/layout-sidenav/layout-sidenav.component.d.ts +1 -1
- package/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.d.ts +1 -1
- package/layout/src/components/layout-subroute/layout-subroute.component.d.ts +1 -1
- package/layout/src/components/layout-title/layout-title.component.d.ts +1 -1
- package/layout/src/decorators/coerce-boolean-input.decorator.d.ts +1 -0
- package/layout/src/decorators/index.d.ts +2 -0
- package/layout/src/decorators/observable-content.decorator.d.ts +1 -0
- package/layout/src/directives/drawer-host.directive.d.ts +1 -1
- package/layout/src/directives/index.d.ts +2 -0
- package/layout/src/{striphtml.pipe.d.ts → directives/striphtml.pipe.d.ts} +1 -1
- package/layout/src/enums/index.d.ts +1 -0
- package/layout/src/layout.module.d.ts +3 -3
- package/layout/src/models/index.d.ts +2 -0
- package/layout/src/services/index.d.ts +1 -0
- package/mat-avatar/src/onemrva-mat-avatar.component.d.ts +1 -1
- package/mat-avatar/src/onemrva-mat-avatar.module.d.ts +1 -3
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.d.ts +1 -1
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.d.ts +5 -5
- package/mat-datepicker-header/src/_onemrva-mat-datepicker-header.component.scss +1 -1
- package/mat-file-upload/index.d.ts +1 -0
- package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.d.ts +1 -1
- package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +3 -3
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.d.ts +1 -1
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.scss +2 -1
- package/mat-file-upload/src/directives/dnd.directive.d.ts +1 -1
- package/mat-file-upload/src/onemrva-mat-file-upload.module.d.ts +1 -1
- package/mat-message-box/src/onemrva-mat-message-box.component.d.ts +1 -1
- package/mat-message-box/src/onemrva-mat-message-box.module.d.ts +1 -4
- package/mat-multi-select/src/onemrva-mat-multi-select.component.d.ts +1 -1
- package/mat-multi-select/src/onemrva-mat-multi-select.module.d.ts +1 -9
- package/mat-paginator/src/onemrva-mat-paginator.component.d.ts +1 -1
- package/mat-paginator/src/onemrva-mat-paginator.module.d.ts +1 -6
- package/mat-panel/src/onemrva-mat-panel-content.component.d.ts +1 -1
- package/mat-panel/src/onemrva-mat-panel-icon.component.d.ts +1 -1
- package/mat-panel/src/onemrva-mat-panel-title-action.component.d.ts +1 -1
- package/mat-panel/src/onemrva-mat-panel-title.component.d.ts +1 -1
- package/mat-panel/src/onemrva-mat-panel.component.d.ts +1 -1
- package/mat-panel/src/onemrva-mat-panel.module.d.ts +1 -2
- package/mat-pop-over/src/onemrva-mat-pop-over-content.component.d.ts +1 -1
- package/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.d.ts +1 -1
- package/mat-pop-over/src/onemrva-mat-pop-over.component.d.ts +1 -1
- package/mat-pop-over/src/onemrva-mat-pop-over.module.d.ts +1 -3
- package/mat-select-search/src/mat-select-no-entries-found.directive.d.ts +1 -1
- package/mat-select-search/src/mat-select-search-clear.directive.d.ts +1 -1
- package/mat-select-search/src/mat-select-search.component.d.ts +1 -79
- package/mat-select-search/src/mat-select-search.module.d.ts +1 -12
- package/mat-selectable-box/src/onemrva-mat-selectable-box.component.d.ts +1 -1
- package/mat-selectable-box/src/onemrva-mat-selectable-box.module.d.ts +1 -11
- package/mat-side-menu/src/onemrva-mat-side-menu.component.d.ts +1 -1
- package/mat-side-menu/src/onemrva-mat-side-menu.module.d.ts +1 -5
- package/mat-skeleton/src/onemrva-mat-skeleton.component.d.ts +1 -1
- package/mat-skeleton/src/onemrva-mat-skeleton.module.d.ts +1 -2
- package/mat-spinner/src/onemrva-mat-spinner.component.d.ts +1 -1
- package/mat-spinner/src/onemrva-mat-spinner.module.d.ts +1 -1
- package/mat-stepper/src/onemrva-mat-stepper.component.d.ts +1 -1
- package/mat-stepper/src/onemrva-mat-stepper.module.d.ts +2 -7
- package/mat-stepper/src/onemrva-mat-stepper.scss +1 -1
- package/mat-sticker/src/onemrva-mat-sticker.component.d.ts +1 -1
- package/mat-sticker/src/onemrva-mat-sticker.module.d.ts +1 -2
- package/mat-task-list/src/onemrva-mat-task-content.component.d.ts +1 -1
- package/mat-task-list/src/onemrva-mat-task-list.component.d.ts +1 -1
- package/mat-task-list/src/onemrva-mat-task-list.module.d.ts +1 -5
- package/mat-task-list/src/onemrva-mat-task-title.component.d.ts +1 -1
- package/mat-task-list/src/onemrva-mat-task.component.d.ts +1 -1
- package/mat-timepicker/src/clock/clock.component.d.ts +1 -1
- package/mat-timepicker/src/onemrva-mat-timepicker.component.d.ts +1 -1
- package/mat-timepicker/src/onemrva-mat-timepicker.module.d.ts +1 -7
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.d.ts +1 -1
- package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.d.ts +2 -2
- package/mat-timepicker/src/timepicker.directive.d.ts +1 -1
- package/mat-toast/src/onemrva-mat-toast.component.d.ts +1 -1
- package/mat-toast/src/onemrva-mat-toast.module.d.ts +2 -3
- package/mat-tooltip/src/onemrva-mat-tooltip.component.d.ts +1 -1
- package/mat-tooltip/src/onemrva-mat-tooltip.directive.d.ts +1 -1
- package/mat-tooltip/src/onemrva-mat-tooltip.module.d.ts +1 -2
- package/package.json +5 -89
- package/page-not-found/src/page-not-found-action.component.d.ts +1 -1
- package/page-not-found/src/page-not-found-extra.component.d.ts +1 -1
- package/page-not-found/src/page-not-found-invader.component.d.ts +1 -1
- package/page-not-found/src/page-not-found-mixin.component.scss +1 -1
- package/page-not-found/src/page-not-found.component.d.ts +1 -1
- package/page-not-found/src/page-not-found.module.d.ts +1 -3
- package/shared/src/lib/directives/clipboard.directive.d.ts +1 -1
- package/shared/src/lib/directives/color.directive.d.ts +1 -1
- package/shared/src/lib/directives/digit-only.directive.d.ts +1 -1
- package/shared/src/lib/directives/iconRight.directive.d.ts +1 -1
- package/shared/src/lib/directives/if-width-is.directive.d.ts +1 -1
- package/shared/src/lib/directives/mask.directive.d.ts +1 -1
- package/shared/src/lib/directives/mat-row-clickable.directive.d.ts +1 -1
- package/shared/src/lib/shared.module.d.ts +1 -2
- package/esm2022/core/index.mjs +0 -4
- package/esm2022/core/onemrvapublic-design-system-core.mjs +0 -5
- package/esm2022/core/src/lib/core.module.mjs +0 -39
- package/esm2022/core/src/lib/services/index.mjs +0 -3
- package/esm2022/core/src/lib/services/onemrva-error-handler.service.mjs +0 -26
- package/esm2022/core/src/lib/services/onemrva-missing-translation.service.mjs +0 -6
- package/esm2022/flag-icon/index.mjs +0 -2
- package/esm2022/flag-icon/onemrvapublic-design-system-flag-icon.mjs +0 -5
- package/esm2022/flag-icon/src/flag-icon.component.mjs +0 -41
- package/esm2022/layout/index.mjs +0 -8
- package/esm2022/layout/onemrvapublic-design-system-layout.mjs +0 -5
- package/esm2022/layout/src/components/index.mjs +0 -36
- package/esm2022/layout/src/components/layout/layout.component.mjs +0 -177
- package/esm2022/layout/src/components/layout-after-nav/layout-after-nav.component.mjs +0 -25
- package/esm2022/layout/src/components/layout-content/layout-content.component.mjs +0 -25
- package/esm2022/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.mjs +0 -16
- package/esm2022/layout/src/components/layout-drawer-content/layout-drawer-content.component.mjs +0 -16
- package/esm2022/layout/src/components/layout-drawer-title/layout-drawer-title.component.mjs +0 -20
- package/esm2022/layout/src/components/layout-footer/layout-footer.component.mjs +0 -17
- package/esm2022/layout/src/components/layout-login-menu/layout-login-menu.component.mjs +0 -25
- package/esm2022/layout/src/components/layout-route/layout-route.component.mjs +0 -65
- package/esm2022/layout/src/components/layout-sidenav/layout-sidenav.component.mjs +0 -83
- package/esm2022/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.mjs +0 -17
- package/esm2022/layout/src/components/layout-subroute/layout-subroute.component.mjs +0 -55
- package/esm2022/layout/src/components/layout-title/layout-title.component.mjs +0 -25
- package/esm2022/layout/src/directives/drawer-host.directive.mjs +0 -41
- package/esm2022/layout/src/enums/environment.enum.mjs +0 -8
- package/esm2022/layout/src/layout.module.mjs +0 -95
- package/esm2022/layout/src/models/onem-language.model.mjs +0 -2
- package/esm2022/layout/src/models/onemrva-profile.model.mjs +0 -46
- package/esm2022/layout/src/services/drawer.service.mjs +0 -31
- package/esm2022/layout/src/striphtml.pipe.mjs +0 -16
- package/esm2022/mat-avatar/index.mjs +0 -3
- package/esm2022/mat-avatar/onemrvapublic-design-system-mat-avatar.mjs +0 -5
- package/esm2022/mat-avatar/src/onemrva-mat-avatar.component.mjs +0 -440
- package/esm2022/mat-avatar/src/onemrva-mat-avatar.module.mjs +0 -19
- package/esm2022/mat-badge/index.mjs +0 -6
- package/esm2022/mat-badge/onemrvapublic-design-system-mat-badge.mjs +0 -5
- package/esm2022/mat-badge/src/onemrva-mat-badge.component.mjs +0 -250
- package/esm2022/mat-badge/src/onemrva-mat-badge.module.mjs +0 -16
- package/esm2022/mat-breadcrumb/index.mjs +0 -7
- package/esm2022/mat-breadcrumb/onemrvapublic-design-system-mat-breadcrumb.mjs +0 -5
- package/esm2022/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.mjs +0 -19
- package/esm2022/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.mjs +0 -2
- package/esm2022/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.mjs +0 -20
- package/esm2022/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.mjs +0 -59
- package/esm2022/mat-carousel/index.mjs +0 -3
- package/esm2022/mat-carousel/onemrvapublic-design-system-mat-carousel.mjs +0 -5
- package/esm2022/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.mjs +0 -23
- package/esm2022/mat-carousel/src/onemrva-mat-carousel.component.mjs +0 -175
- package/esm2022/mat-copy-to-clipboard/index.mjs +0 -2
- package/esm2022/mat-copy-to-clipboard/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +0 -5
- package/esm2022/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.mjs +0 -85
- package/esm2022/mat-datepicker-header/index.mjs +0 -5
- package/esm2022/mat-datepicker-header/onemrvapublic-design-system-mat-datepicker-header.mjs +0 -5
- package/esm2022/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.mjs +0 -203
- package/esm2022/mat-empty-row/index.mjs +0 -2
- package/esm2022/mat-empty-row/onemrvapublic-design-system-mat-empty-row.mjs +0 -5
- package/esm2022/mat-empty-row/src/onemrva-mat-empty-row.component.mjs +0 -35
- package/esm2022/mat-file-upload/index.mjs +0 -11
- package/esm2022/mat-file-upload/onemrvapublic-design-system-mat-file-upload.mjs +0 -5
- package/esm2022/mat-file-upload/src/components/index.mjs +0 -9
- package/esm2022/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.mjs +0 -88
- package/esm2022/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.mjs +0 -195
- package/esm2022/mat-file-upload/src/directives/dnd.directive.mjs +0 -53
- package/esm2022/mat-file-upload/src/models/action-config.model.mjs +0 -2
- package/esm2022/mat-file-upload/src/models/progress-file.model.mjs +0 -49
- package/esm2022/mat-file-upload/src/onemrva-mat-file-upload-itf.store.mjs +0 -2
- package/esm2022/mat-file-upload/src/onemrva-mat-file-upload.module.mjs +0 -51
- package/esm2022/mat-file-upload/src/onemrva-mat-file-upload.service.mjs +0 -49
- package/esm2022/mat-file-upload/src/onemrva-mat-file-upload.store.mjs +0 -320
- package/esm2022/mat-input-birthplace/index.mjs +0 -5
- package/esm2022/mat-input-birthplace/onemrvapublic-design-system-mat-input-birthplace.mjs +0 -5
- package/esm2022/mat-input-birthplace/src/country-item.component.mjs +0 -31
- package/esm2022/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.mjs +0 -120
- package/esm2022/mat-input-country/index.mjs +0 -5
- package/esm2022/mat-input-country/onemrvapublic-design-system-mat-input-country.mjs +0 -5
- package/esm2022/mat-input-country/src/onemrva-mat-input-country.component.mjs +0 -90
- package/esm2022/mat-input-enterprise-number/index.mjs +0 -5
- package/esm2022/mat-input-enterprise-number/onemrvapublic-design-system-mat-input-enterprise-number.mjs +0 -5
- package/esm2022/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.mjs +0 -180
- package/esm2022/mat-input-iban/index.mjs +0 -5
- package/esm2022/mat-input-iban/onemrvapublic-design-system-mat-input-iban.mjs +0 -5
- package/esm2022/mat-input-iban/src/onemrva-mat-input-iban.component.mjs +0 -295
- package/esm2022/mat-input-phone/index.mjs +0 -6
- package/esm2022/mat-input-phone/onemrvapublic-design-system-mat-input-phone.mjs +0 -5
- package/esm2022/mat-input-phone/src/onemrva-mat-input-phone.component.mjs +0 -234
- package/esm2022/mat-input-phone/src/phone-number.directive.mjs +0 -51
- package/esm2022/mat-message-box/index.mjs +0 -3
- package/esm2022/mat-message-box/onemrvapublic-design-system-mat-message-box.mjs +0 -5
- package/esm2022/mat-message-box/src/onemrva-mat-message-box.component.mjs +0 -175
- package/esm2022/mat-message-box/src/onemrva-mat-message-box.module.mjs +0 -20
- package/esm2022/mat-multi-select/index.mjs +0 -3
- package/esm2022/mat-multi-select/onemrvapublic-design-system-mat-multi-select.mjs +0 -5
- package/esm2022/mat-multi-select/src/onemrva-mat-multi-select.component.mjs +0 -200
- package/esm2022/mat-multi-select/src/onemrva-mat-multi-select.module.mjs +0 -51
- package/esm2022/mat-notification/index.mjs +0 -2
- package/esm2022/mat-notification/onemrvapublic-design-system-mat-notification.mjs +0 -5
- package/esm2022/mat-notification/src/onemrva-mat-notification.component.mjs +0 -165
- package/esm2022/mat-paginator/index.mjs +0 -6
- package/esm2022/mat-paginator/onemrvapublic-design-system-mat-paginator.mjs +0 -5
- package/esm2022/mat-paginator/src/onemrva-mat-paginator.component.mjs +0 -217
- package/esm2022/mat-paginator/src/onemrva-mat-paginator.module.mjs +0 -36
- package/esm2022/mat-panel/index.mjs +0 -7
- package/esm2022/mat-panel/onemrvapublic-design-system-mat-panel.mjs +0 -5
- package/esm2022/mat-panel/src/onemrva-mat-panel-content.component.mjs +0 -17
- package/esm2022/mat-panel/src/onemrva-mat-panel-icon.component.mjs +0 -17
- package/esm2022/mat-panel/src/onemrva-mat-panel-title-action.component.mjs +0 -17
- package/esm2022/mat-panel/src/onemrva-mat-panel-title.component.mjs +0 -27
- package/esm2022/mat-panel/src/onemrva-mat-panel.component.mjs +0 -132
- package/esm2022/mat-panel/src/onemrva-mat-panel.module.mjs +0 -42
- package/esm2022/mat-pop-over/index.mjs +0 -5
- package/esm2022/mat-pop-over/onemrvapublic-design-system-mat-pop-over.mjs +0 -5
- package/esm2022/mat-pop-over/src/onemrva-mat-pop-over-content.component.mjs +0 -23
- package/esm2022/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.mjs +0 -23
- package/esm2022/mat-pop-over/src/onemrva-mat-pop-over.component.mjs +0 -46
- package/esm2022/mat-pop-over/src/onemrva-mat-pop-over.module.mjs +0 -30
- package/esm2022/mat-progress-bar/index.mjs +0 -2
- package/esm2022/mat-progress-bar/onemrvapublic-design-system-mat-progress-bar.mjs +0 -5
- package/esm2022/mat-progress-bar/src/onemrva-mat-progress-bar.component.mjs +0 -29
- package/esm2022/mat-select-search/index.mjs +0 -4
- package/esm2022/mat-select-search/onemrvapublic-design-system-mat-select-search.mjs +0 -5
- package/esm2022/mat-select-search/src/default-options.mjs +0 -35
- package/esm2022/mat-select-search/src/mat-select-no-entries-found.directive.mjs +0 -22
- package/esm2022/mat-select-search/src/mat-select-search-clear.directive.mjs +0 -20
- package/esm2022/mat-select-search/src/mat-select-search.component.mjs +0 -589
- package/esm2022/mat-select-search/src/mat-select-search.module.mjs +0 -79
- package/esm2022/mat-selectable-box/index.mjs +0 -6
- package/esm2022/mat-selectable-box/onemrvapublic-design-system-mat-selectable-box.mjs +0 -5
- package/esm2022/mat-selectable-box/src/onemrva-mat-selectable-box.component.mjs +0 -56
- package/esm2022/mat-selectable-box/src/onemrva-mat-selectable-box.module.mjs +0 -56
- package/esm2022/mat-side-menu/index.mjs +0 -6
- package/esm2022/mat-side-menu/onemrvapublic-design-system-mat-side-menu.mjs +0 -5
- package/esm2022/mat-side-menu/src/onemrva-mat-side-menu.component.mjs +0 -48
- package/esm2022/mat-side-menu/src/onemrva-mat-side-menu.module.mjs +0 -21
- package/esm2022/mat-skeleton/index.mjs +0 -4
- package/esm2022/mat-skeleton/onemrvapublic-design-system-mat-skeleton.mjs +0 -5
- package/esm2022/mat-skeleton/src/onemrva-mat-skeleton-enums.mjs +0 -20
- package/esm2022/mat-skeleton/src/onemrva-mat-skeleton.component.mjs +0 -202
- package/esm2022/mat-skeleton/src/onemrva-mat-skeleton.module.mjs +0 -18
- package/esm2022/mat-spinner/index.mjs +0 -7
- package/esm2022/mat-spinner/onemrvapublic-design-system-mat-spinner.mjs +0 -5
- package/esm2022/mat-spinner/src/onemrva-mat-loading.directive.mjs +0 -33
- package/esm2022/mat-spinner/src/onemrva-mat-spinner.component.mjs +0 -73
- package/esm2022/mat-spinner/src/onemrva-mat-spinner.module.mjs +0 -18
- package/esm2022/mat-stepper/index.mjs +0 -6
- package/esm2022/mat-stepper/onemrvapublic-design-system-mat-stepper.mjs +0 -5
- package/esm2022/mat-stepper/src/onemrva-mat-stepper.component.mjs +0 -74
- package/esm2022/mat-stepper/src/onemrva-mat-stepper.module.mjs +0 -44
- package/esm2022/mat-stepper/src/onemrva-stepper-animations.mjs +0 -28
- package/esm2022/mat-sticker/index.mjs +0 -6
- package/esm2022/mat-sticker/onemrvapublic-design-system-mat-sticker.mjs +0 -5
- package/esm2022/mat-sticker/src/onemrva-mat-sticker.component.mjs +0 -69
- package/esm2022/mat-sticker/src/onemrva-mat-sticker.module.mjs +0 -18
- package/esm2022/mat-table-of-content/index.mjs +0 -8
- package/esm2022/mat-table-of-content/onemrvapublic-design-system-mat-table-of-content.mjs +0 -5
- package/esm2022/mat-table-of-content/src/onemrva-mat-table-of-content.component.mjs +0 -104
- package/esm2022/mat-table-of-content/src/onemrva-mat-table-of-content.directive.mjs +0 -60
- package/esm2022/mat-table-of-content/src/onemrva-mat-table-of-content.service.mjs +0 -46
- package/esm2022/mat-table-of-content/src/onemrva-mat-toc-anchor.model.mjs +0 -11
- package/esm2022/mat-task-list/index.mjs +0 -6
- package/esm2022/mat-task-list/onemrvapublic-design-system-mat-task-list.mjs +0 -5
- package/esm2022/mat-task-list/src/onemrva-mat-task-content.component.mjs +0 -17
- package/esm2022/mat-task-list/src/onemrva-mat-task-list.component.mjs +0 -36
- package/esm2022/mat-task-list/src/onemrva-mat-task-list.module.mjs +0 -51
- package/esm2022/mat-task-list/src/onemrva-mat-task-title.component.mjs +0 -23
- package/esm2022/mat-task-list/src/onemrva-mat-task.component.mjs +0 -140
- package/esm2022/mat-timepicker/index.mjs +0 -7
- package/esm2022/mat-timepicker/onemrvapublic-design-system-mat-timepicker.mjs +0 -5
- package/esm2022/mat-timepicker/src/clock/clock.component.mjs +0 -232
- package/esm2022/mat-timepicker/src/interfaces-and-types.mjs +0 -2
- package/esm2022/mat-timepicker/src/onemrva-mat-timepicker.component.mjs +0 -279
- package/esm2022/mat-timepicker/src/onemrva-mat-timepicker.module.mjs +0 -62
- package/esm2022/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.mjs +0 -129
- package/esm2022/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.mjs +0 -115
- package/esm2022/mat-timepicker/src/timepicker.directive.mjs +0 -512
- package/esm2022/mat-timepicker/src/util.mjs +0 -83
- package/esm2022/mat-toast/index.mjs +0 -6
- package/esm2022/mat-toast/onemrvapublic-design-system-mat-toast.mjs +0 -5
- package/esm2022/mat-toast/src/onemrva-mat-toast.component.mjs +0 -52
- package/esm2022/mat-toast/src/onemrva-mat-toast.module.mjs +0 -19
- package/esm2022/mat-tooltip/index.mjs +0 -5
- package/esm2022/mat-tooltip/onemrvapublic-design-system-mat-tooltip.mjs +0 -5
- package/esm2022/mat-tooltip/src/onemrva-mat-tooltip.component.mjs +0 -36
- package/esm2022/mat-tooltip/src/onemrva-mat-tooltip.directive.mjs +0 -111
- package/esm2022/mat-tooltip/src/onemrva-mat-tooltip.module.mjs +0 -19
- package/esm2022/onemrvapublic-design-system.mjs +0 -5
- package/esm2022/page-error/index.mjs +0 -3
- package/esm2022/page-error/onemrvapublic-design-system-page-error.mjs +0 -5
- package/esm2022/page-error/src/page-error-action.component.mjs +0 -18
- package/esm2022/page-error/src/page-error.component.mjs +0 -61
- package/esm2022/page-not-found/index.mjs +0 -6
- package/esm2022/page-not-found/onemrvapublic-design-system-page-not-found.mjs +0 -5
- package/esm2022/page-not-found/src/page-not-found-action.component.mjs +0 -17
- package/esm2022/page-not-found/src/page-not-found-extra.component.mjs +0 -17
- package/esm2022/page-not-found/src/page-not-found-invader.component.mjs +0 -94
- package/esm2022/page-not-found/src/page-not-found.component.mjs +0 -54
- package/esm2022/page-not-found/src/page-not-found.module.mjs +0 -38
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/shared/index.mjs +0 -19
- package/esm2022/shared/onemrvapublic-design-system-shared.mjs +0 -5
- package/esm2022/shared/src/lib/adapters/index.mjs +0 -3
- package/esm2022/shared/src/lib/adapters/luxon.date.adapter.mjs +0 -251
- package/esm2022/shared/src/lib/adapters/luxon.utils.mjs +0 -23
- package/esm2022/shared/src/lib/adapters/native.date.adapter.mjs +0 -66
- package/esm2022/shared/src/lib/components/clipboard-icon/clipboard-icon.component.mjs +0 -20
- package/esm2022/shared/src/lib/components/index.mjs +0 -2
- package/esm2022/shared/src/lib/constants/CDNUrlModeOptions.mjs +0 -6
- package/esm2022/shared/src/lib/constants/cdn.mjs +0 -3
- package/esm2022/shared/src/lib/constants/constants.mjs +0 -7
- package/esm2022/shared/src/lib/constants/date.format.mjs +0 -95
- package/esm2022/shared/src/lib/constants/index.mjs +0 -5
- package/esm2022/shared/src/lib/containers/WebComponentOverlayContainer.mjs +0 -84
- package/esm2022/shared/src/lib/containers/index.mjs +0 -2
- package/esm2022/shared/src/lib/decorators/HttpCacheDecorator.mjs +0 -123
- package/esm2022/shared/src/lib/decorators/index.mjs +0 -2
- package/esm2022/shared/src/lib/directives/clipboard.directive.mjs +0 -39
- package/esm2022/shared/src/lib/directives/color.directive.mjs +0 -64
- package/esm2022/shared/src/lib/directives/digit-only.directive.mjs +0 -52
- package/esm2022/shared/src/lib/directives/iconRight.directive.mjs +0 -22
- package/esm2022/shared/src/lib/directives/if-width-is.directive.mjs +0 -34
- package/esm2022/shared/src/lib/directives/index.mjs +0 -24
- package/esm2022/shared/src/lib/directives/mask.directive.mjs +0 -198
- package/esm2022/shared/src/lib/directives/mat-row-clickable.directive.mjs +0 -74
- package/esm2022/shared/src/lib/helpers/index.mjs +0 -2
- package/esm2022/shared/src/lib/helpers/translation-helper.mjs +0 -58
- package/esm2022/shared/src/lib/interfaces/OnemRvaCommonCountry.interface.mjs +0 -2
- package/esm2022/shared/src/lib/interfaces/index.mjs +0 -2
- package/esm2022/shared/src/lib/loaders/index.mjs +0 -3
- package/esm2022/shared/src/lib/loaders/onemrva-translate-cdn-loader.mjs +0 -15
- package/esm2022/shared/src/lib/loaders/onemrva-translate-http-loader.mjs +0 -30
- package/esm2022/shared/src/lib/pipes/index.mjs +0 -3
- package/esm2022/shared/src/lib/pipes/onemrva-bce.pipe.mjs +0 -20
- package/esm2022/shared/src/lib/pipes/onemrva-niss.pipe.mjs +0 -20
- package/esm2022/shared/src/lib/providers/index.mjs +0 -5
- package/esm2022/shared/src/lib/providers/onemrva.date.luxon.provider.mjs +0 -16
- package/esm2022/shared/src/lib/providers/onemrva.date.luxon.year.month.provider.mjs +0 -16
- package/esm2022/shared/src/lib/providers/onemrva.date.native.provider.mjs +0 -16
- package/esm2022/shared/src/lib/providers/onemrva.date.native.year.month.provider.mjs +0 -16
- package/esm2022/shared/src/lib/services/cache.service.mjs +0 -31
- package/esm2022/shared/src/lib/services/cdn.service.mjs +0 -105
- package/esm2022/shared/src/lib/services/country-cdn.service.mjs +0 -75
- package/esm2022/shared/src/lib/services/country-lookup.service.mjs +0 -43
- package/esm2022/shared/src/lib/services/index.mjs +0 -5
- package/esm2022/shared/src/lib/services/mime-cdn.service.mjs +0 -45
- package/esm2022/shared/src/lib/shared.module.mjs +0 -25
- package/esm2022/shared/src/lib/tokens/index.mjs +0 -2
- package/esm2022/shared/src/lib/tokens/lookup.token.mjs +0 -7
- package/esm2022/shared/src/lib/validators/bank-account.validator.utils.mjs +0 -56
- package/esm2022/shared/src/lib/validators/index.mjs +0 -3
- package/esm2022/shared/src/lib/validators/onemrva-validators.mjs +0 -75
- package/esm2022/utils/index.mjs +0 -3
- package/esm2022/utils/onemrvapublic-design-system-utils.mjs +0 -5
- package/esm2022/utils/src/enum.utils.mjs +0 -7
- package/esm2022/utils/src/enums/color.enum.mjs +0 -12
- package/esm2022/utils/src/enums/index.mjs +0 -3
- package/esm2022/utils/src/enums/size.enum.mjs +0 -9
- package/fesm2022/onemrvapublic-design-system-mat-badge.mjs +0 -274
- package/fesm2022/onemrvapublic-design-system-mat-badge.mjs.map +0 -1
- package/mat-badge/index.d.ts +0 -2
- package/mat-badge/src/onemrva-mat-badge.component.d.ts +0 -89
- package/mat-badge/src/onemrva-mat-badge.component.scss +0 -157
- package/mat-badge/src/onemrva-mat-badge.module.d.ts +0 -7
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export class OnemrvaValidators {
|
|
2
|
-
static bceValidator(required = false, control) {
|
|
3
|
-
if (control.value === null || control.value.trim() === '') {
|
|
4
|
-
return !required ? null : { bceNull: true };
|
|
5
|
-
}
|
|
6
|
-
const bceCandidate = control.value.trim().replace(/\/|\.|-/g, '');
|
|
7
|
-
if (bceCandidate.length !== 10)
|
|
8
|
-
return { bceLengthError: { value: bceCandidate } };
|
|
9
|
-
if (Number.isNaN(+bceCandidate))
|
|
10
|
-
return { bceNan: { value: bceCandidate } };
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
static bce(required = false) {
|
|
14
|
-
return (control) => {
|
|
15
|
-
return this.bceValidator(required, control);
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
static nissValidator(required = false, control) {
|
|
19
|
-
if (control.value === null || control.value.trim() === '') {
|
|
20
|
-
return !required ? null : { nissNull: true };
|
|
21
|
-
}
|
|
22
|
-
const nissCandidate = control.value.trim().replace(/\/|\.|-/g, '');
|
|
23
|
-
if (nissCandidate.length !== 11) {
|
|
24
|
-
return { nissLengthError: { value: nissCandidate } };
|
|
25
|
-
}
|
|
26
|
-
if (Number.isNaN(+nissCandidate)) {
|
|
27
|
-
return { nissNan: { value: nissCandidate } };
|
|
28
|
-
}
|
|
29
|
-
// Niss day and year are actual values, the month can be different according to the logic below
|
|
30
|
-
// [20-32] & [40-52] => foreigners & temporary NISS values
|
|
31
|
-
// it is not necessary to check for the actual date to be valid
|
|
32
|
-
const checksumValue = nissCandidate.substring(9);
|
|
33
|
-
const nissNumbersToCheck = nissCandidate.substring(0, 9);
|
|
34
|
-
const isValidChecksumYear1900 = 97 - (+nissNumbersToCheck % 97) === +checksumValue;
|
|
35
|
-
const isValidChecksumYear2000 = 97 - (+`2${nissNumbersToCheck}` % 97) === +checksumValue;
|
|
36
|
-
if (!isValidChecksumYear1900 && !isValidChecksumYear2000) {
|
|
37
|
-
return { nissCheckDigitError: { value: nissCandidate } };
|
|
38
|
-
}
|
|
39
|
-
/*
|
|
40
|
-
Below checks aren't really necessary but are here to exclude even more potential errors
|
|
41
|
-
We could still improve this to include february days & 30 day months + the real potential ranges
|
|
42
|
-
*/
|
|
43
|
-
const monthString = nissCandidate.substring(2, 4);
|
|
44
|
-
const month = parseInt(monthString) - 1;
|
|
45
|
-
const real_month = (parseInt(monthString) % 20) - 1;
|
|
46
|
-
if (real_month > 11 || month > 51) {
|
|
47
|
-
return { nissInvalidMonth: { value: nissCandidate } };
|
|
48
|
-
}
|
|
49
|
-
const day = +nissCandidate.substring(4, 6);
|
|
50
|
-
if (day > 31) {
|
|
51
|
-
return { nissInvalidDate: { value: nissCandidate } };
|
|
52
|
-
}
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
static niss(required = false) {
|
|
56
|
-
return (control) => {
|
|
57
|
-
return this.nissValidator(required, control);
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
static nissOrBce(required = false) {
|
|
61
|
-
return (control) => {
|
|
62
|
-
if (control.value === null || control.value.trim() === '')
|
|
63
|
-
return !required ? null : { nissNull: true };
|
|
64
|
-
const nissCandidate = control.value.trim().replace(/\/|\.|-/g, '');
|
|
65
|
-
if (control.value.length === 11) {
|
|
66
|
-
return this.nissValidator(required, control);
|
|
67
|
-
}
|
|
68
|
-
else if (control.value.length === 10) {
|
|
69
|
-
return this.bceValidator(required, control);
|
|
70
|
-
}
|
|
71
|
-
return { lengthError: { value: nissCandidate } };
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib25lbXJ2YS12YWxpZGF0b3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb25lbXJ2YS9kZXNpZ24tc3lzdGVtL3NoYXJlZC9zcmMvbGliL3ZhbGlkYXRvcnMvb25lbXJ2YS12YWxpZGF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE1BQU0sT0FBTyxpQkFBaUI7SUFDcEIsTUFBTSxDQUFDLFlBQVksQ0FBQyxRQUFRLEdBQUcsS0FBSyxFQUFFLE9BQXdCO1FBQ3BFLElBQUksT0FBTyxDQUFDLEtBQUssS0FBSyxJQUFJLElBQUksT0FBTyxDQUFD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F0b3IocmVxdWlyZWQsIGNvbnRyb2wpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHsgbGVuZ3RoRXJyb3I6IHsgdmFsdWU6IG5pc3NDYW5kaWRhdGUgfSB9O1xuICAgIH07XG4gIH1cbn1cbiJdfQ==
|
package/esm2022/utils/index.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './src/enums';
|
|
2
|
-
export * from './src/enum.utils';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9vbmVtcnZhL2Rlc2lnbi1zeXN0ZW0vdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxrQkFBa0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3JjL2VudW1zJztcbmV4cG9ydCAqIGZyb20gJy4vc3JjL2VudW0udXRpbHMnO1xuIl19
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib25lbXJ2YXB1YmxpYy1kZXNpZ24tc3lzdGVtLXV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb25lbXJ2YS9kZXNpZ24tc3lzdGVtL3V0aWxzL29uZW1ydmFwdWJsaWMtZGVzaWduLXN5c3RlbS11dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This utility type fills several purposes:
|
|
3
|
-
* - possibility to merge the enumeration and the list of possible values (not possible with an enum)
|
|
4
|
-
* - possibility to hardcode the value without using the enumeration (with enum, you have to use an enum option, not one of the strings listed among the enum options)
|
|
5
|
-
*/
|
|
6
|
-
export const mkenum = (x) => x;
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW51bS51dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL29uZW1ydmEvZGVzaWduLXN5c3RlbS91dGlscy9zcmMvZW51bS51dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7OztHQUlHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sTUFBTSxHQUFHLENBQWdELENBQUksRUFBRSxFQUFFLENBQzVFLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogVGhpcyB1dGlsaXR5IHR5cGUgZmlsbHMgc2V2ZXJhbCBwdXJwb3NlczpcbiAqIC0gcG9zc2liaWxpdHkgdG8gbWVyZ2UgdGhlIGVudW1lcmF0aW9uIGFuZCB0aGUgbGlzdCBvZiBwb3NzaWJsZSB2YWx1ZXMgKG5vdCBwb3NzaWJsZSB3aXRoIGFuIGVudW0pXG4gKiAtIHBvc3NpYmlsaXR5IHRvIGhhcmRjb2RlIHRoZSB2YWx1ZSB3aXRob3V0IHVzaW5nIHRoZSBlbnVtZXJhdGlvbiAod2l0aCBlbnVtLCB5b3UgaGF2ZSB0byB1c2UgYW4gZW51bSBvcHRpb24sIG5vdCBvbmUgb2YgdGhlIHN0cmluZ3MgbGlzdGVkIGFtb25nIHRoZSBlbnVtIG9wdGlvbnMpXG4gKi9cbmV4cG9ydCBjb25zdCBta2VudW0gPSA8VCBleHRlbmRzIFJlY29yZDxzdHJpbmcsIFU+LCBVIGV4dGVuZHMgc3RyaW5nPih4OiBUKSA9PlxuICB4O1xuIl19
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { mkenum } from '../enum.utils';
|
|
2
|
-
export const OnemrvaMatColor = mkenum({
|
|
3
|
-
NONE: '',
|
|
4
|
-
PRIMARY: 'primary',
|
|
5
|
-
ACCENT: 'accent',
|
|
6
|
-
WARN: 'warn',
|
|
7
|
-
SUCCESS: 'success',
|
|
8
|
-
INFO: 'info',
|
|
9
|
-
ERROR: 'error',
|
|
10
|
-
GRAYSCALE: 'grayscale',
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sb3IuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL29uZW1ydmEvZGVzaWduLXN5c3RlbS91dGlscy9zcmMvZW51bXMvY29sb3IuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXZDLE1BQU0sQ0FBQyxNQUFNLGVBQWUsR0FBRyxNQUFNLENBQUM7SUFDcEMsSUFBSSxFQUFFLEVBQUU7SUFDUixPQUFPLEVBQUUsU0FBUztJQUNsQixNQUFNLEVBQUUsUUFBUTtJQUNoQixJQUFJLEVBQUUsTUFBTTtJQUNaLE9BQU8sRUFBRSxTQUFTO0lBQ2xCLElBQUksRUFBRSxNQUFNO0lBQ1osS0FBSyxFQUFFLE9BQU87SUFDZCxTQUFTLEVBQUUsV0FBVztDQUN2QixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBta2VudW0gfSBmcm9tICcuLi9lbnVtLnV0aWxzJztcblxuZXhwb3J0IGNvbnN0IE9uZW1ydmFNYXRDb2xvciA9IG1rZW51bSh7XG4gIE5PTkU6ICcnLFxuICBQUklNQVJZOiAncHJpbWFyeScsXG4gIEFDQ0VOVDogJ2FjY2VudCcsXG4gIFdBUk46ICd3YXJuJyxcbiAgU1VDQ0VTUzogJ3N1Y2Nlc3MnLFxuICBJTkZPOiAnaW5mbycsXG4gIEVSUk9SOiAnZXJyb3InLFxuICBHUkFZU0NBTEU6ICdncmF5c2NhbGUnLFxufSk7XG5leHBvcnQgdHlwZSBPbmVtcnZhTWF0Q29sb3IgPVxuICAodHlwZW9mIE9uZW1ydmFNYXRDb2xvcilba2V5b2YgdHlwZW9mIE9uZW1ydmFNYXRDb2xvcl07XG4iXX0=
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './color.enum';
|
|
2
|
-
export * from './size.enum';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9vbmVtcnZhL2Rlc2lnbi1zeXN0ZW0vdXRpbHMvc3JjL2VudW1zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb2xvci5lbnVtJztcbmV4cG9ydCAqIGZyb20gJy4vc2l6ZS5lbnVtJztcbiJdfQ==
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { mkenum } from '../enum.utils';
|
|
2
|
-
export const OnemrvaMatSize = m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iJdfQ==
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { Directive, Optional, Inject, Input, HostBinding, NgModule } from '@angular/core';
|
|
4
|
-
import { mixinDisabled } from '@angular/material/core';
|
|
5
|
-
import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
|
6
|
-
import * as i1 from '@angular/cdk/a11y';
|
|
7
|
-
|
|
8
|
-
let nextId = 0;
|
|
9
|
-
// Boilerplate for applying mixins to MatBadge.
|
|
10
|
-
/** @docs-private */
|
|
11
|
-
const _MatBadgeBase = mixinDisabled(class {
|
|
12
|
-
});
|
|
13
|
-
const BADGE_CONTENT_CLASS = 'mat-badge-content';
|
|
14
|
-
/** Directive to display a text badge. */
|
|
15
|
-
class OnemrvaMatBadgeDirective extends _MatBadgeBase {
|
|
16
|
-
/** The color of the badge. Can be `primary`, `accent`, or `warn`. */
|
|
17
|
-
get color() {
|
|
18
|
-
return this._color;
|
|
19
|
-
}
|
|
20
|
-
set color(value) {
|
|
21
|
-
this._setColor(value);
|
|
22
|
-
this._color = value;
|
|
23
|
-
}
|
|
24
|
-
/** Whether the badge should overlap its contents or not */
|
|
25
|
-
get overlap() {
|
|
26
|
-
return this._overlap;
|
|
27
|
-
}
|
|
28
|
-
set overlap(val) {
|
|
29
|
-
this._overlap = coerceBooleanProperty(val);
|
|
30
|
-
}
|
|
31
|
-
/** The content for the badge */
|
|
32
|
-
get content() {
|
|
33
|
-
return this._content;
|
|
34
|
-
}
|
|
35
|
-
set content(newContent) {
|
|
36
|
-
this._updateRenderedContent(newContent);
|
|
37
|
-
}
|
|
38
|
-
/** Message used to describe the decorated element via aria-describedby */
|
|
39
|
-
get description() {
|
|
40
|
-
return this._description;
|
|
41
|
-
}
|
|
42
|
-
set description(newDescription) {
|
|
43
|
-
this._updateHostAriaDescription(newDescription);
|
|
44
|
-
}
|
|
45
|
-
/** Whether the badge is hidden. */
|
|
46
|
-
get hidden() {
|
|
47
|
-
return this._hidden;
|
|
48
|
-
}
|
|
49
|
-
set hidden(val) {
|
|
50
|
-
this._hidden = coerceBooleanProperty(val);
|
|
51
|
-
}
|
|
52
|
-
constructor(_ngZone, _elementRef, _ariaDescriber, _renderer, _animationMode) {
|
|
53
|
-
super();
|
|
54
|
-
this._ngZone = _ngZone;
|
|
55
|
-
this._elementRef = _elementRef;
|
|
56
|
-
this._ariaDescriber = _ariaDescriber;
|
|
57
|
-
this._renderer = _renderer;
|
|
58
|
-
this._animationMode = _animationMode;
|
|
59
|
-
this._color = 'primary';
|
|
60
|
-
this._overlap = true;
|
|
61
|
-
/**
|
|
62
|
-
* Position the badge should reside.
|
|
63
|
-
* Accepts any combination of 'above'|'below' and 'before'|'after'
|
|
64
|
-
*/
|
|
65
|
-
this.position = 'above after';
|
|
66
|
-
this._description = '';
|
|
67
|
-
/** Size of the badge. Can be 'small', 'medium', or 'large'. */
|
|
68
|
-
this.size = 'medium';
|
|
69
|
-
this._hidden = false;
|
|
70
|
-
this.isIcon = false;
|
|
71
|
-
/** Unique id for the badge */
|
|
72
|
-
this._id = nextId++;
|
|
73
|
-
/** Whether the OnInit lifecycle hook has run yet */
|
|
74
|
-
this._isInitialized = false;
|
|
75
|
-
// if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
76
|
-
// const nativeElement = _elementRef.nativeElement;
|
|
77
|
-
// if (nativeElement.nodeType !== nativeElement.ELEMENT_NODE) {
|
|
78
|
-
// throw Error('matBadge must be attached to an element node.');
|
|
79
|
-
// }
|
|
80
|
-
// }
|
|
81
|
-
}
|
|
82
|
-
/** Whether the badge is above the host or not */
|
|
83
|
-
isAbove() {
|
|
84
|
-
return this.position.indexOf('below') === -1;
|
|
85
|
-
}
|
|
86
|
-
/** Whether the badge is after the host or not */
|
|
87
|
-
isAfter() {
|
|
88
|
-
return this.position.indexOf('before') === -1;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Gets the element into which the badge's content is being rendered. Undefined if the element
|
|
92
|
-
* hasn't been created (e.g. if the badge doesn't have content).
|
|
93
|
-
*/
|
|
94
|
-
getBadgeElement() {
|
|
95
|
-
return this._badgeElement;
|
|
96
|
-
}
|
|
97
|
-
ngOnInit() {
|
|
98
|
-
// We may have server-side rendered badge that we need to clear.
|
|
99
|
-
// We need to do this in ngOnInit because the full content of the component
|
|
100
|
-
// on which the badge is attached won't necessarily be in the DOM until this point.
|
|
101
|
-
this._clearExistingBadges();
|
|
102
|
-
if (this.content && !this._badgeElement) {
|
|
103
|
-
this._badgeElement = this._createBadgeElement();
|
|
104
|
-
this._updateRenderedContent(this.content);
|
|
105
|
-
}
|
|
106
|
-
this._isInitialized = true;
|
|
107
|
-
}
|
|
108
|
-
ngOnDestroy() {
|
|
109
|
-
// ViewEngine only: when creating a badge through the Renderer, Angular remembers its index.
|
|
110
|
-
// We have to destroy it ourselves, otherwise it'll be retained in memory.
|
|
111
|
-
if (this._renderer.destroyNode) {
|
|
112
|
-
this._renderer.destroyNode(this._badgeElement);
|
|
113
|
-
}
|
|
114
|
-
this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this.description);
|
|
115
|
-
}
|
|
116
|
-
/** Creates the badge element */
|
|
117
|
-
_createBadgeElement() {
|
|
118
|
-
const badgeElement = this._renderer.createElement('span');
|
|
119
|
-
const activeClass = 'mat-badge-active';
|
|
120
|
-
badgeElement.setAttribute('id', `mat-badge-content-${this._id}`);
|
|
121
|
-
// The badge is aria-hidden because we don't want it to appear in the page's navigation
|
|
122
|
-
// flow. Instead, we use the badge to describe the decorated element with aria-describedby.
|
|
123
|
-
badgeElement.setAttribute('aria-hidden', 'true');
|
|
124
|
-
badgeElement.classList.add(BADGE_CONTENT_CLASS);
|
|
125
|
-
if (this._animationMode === 'NoopAnimations') {
|
|
126
|
-
badgeElement.classList.add('_mat-animation-noopable');
|
|
127
|
-
}
|
|
128
|
-
this._elementRef.nativeElement.appendChild(badgeElement);
|
|
129
|
-
// animate in after insertion
|
|
130
|
-
if (typeof requestAnimationFrame === 'function' &&
|
|
131
|
-
this._animationMode !== 'NoopAnimations') {
|
|
132
|
-
this._ngZone.runOutsideAngular(() => {
|
|
133
|
-
requestAnimationFrame(() => {
|
|
134
|
-
badgeElement.classList.add(activeClass);
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
badgeElement.classList.add(activeClass);
|
|
140
|
-
}
|
|
141
|
-
return badgeElement;
|
|
142
|
-
}
|
|
143
|
-
/** Update the text content of the badge element in the DOM, creating the element if necessary. */
|
|
144
|
-
_updateRenderedContent(newContent) {
|
|
145
|
-
let newContentNormalized = `${newContent ?? ''}`.trim();
|
|
146
|
-
//const newContentNormalized: string = '\uf063';
|
|
147
|
-
if (typeof newContent === 'string' && newContent.substring(0, 2) == '\\u') {
|
|
148
|
-
this.isIcon = true;
|
|
149
|
-
newContentNormalized = String.fromCodePoint(parseInt(newContent.substring(2, newContent.length), 16));
|
|
150
|
-
}
|
|
151
|
-
else if (typeof newContent === 'number' || !isNaN(Number(newContent))) {
|
|
152
|
-
if (typeof newContent === 'string')
|
|
153
|
-
newContent = parseInt(newContent);
|
|
154
|
-
else if (newContent === null || newContent === undefined)
|
|
155
|
-
newContent = 0;
|
|
156
|
-
if (newContent >= 100) {
|
|
157
|
-
newContentNormalized = '99+';
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
// Don't create the badge element if the directive isn't initialized because we want to
|
|
161
|
-
// append the badge element to the *end* of the host element's content for backwards
|
|
162
|
-
// compatibility.
|
|
163
|
-
if (this._isInitialized && newContentNormalized && !this._badgeElement) {
|
|
164
|
-
this._badgeElement = this._createBadgeElement();
|
|
165
|
-
}
|
|
166
|
-
if (this._badgeElement) {
|
|
167
|
-
this._badgeElement.textContent = newContentNormalized;
|
|
168
|
-
}
|
|
169
|
-
this._content = newContentNormalized;
|
|
170
|
-
}
|
|
171
|
-
/** Updates the host element's aria description via AriaDescriber. */
|
|
172
|
-
_updateHostAriaDescription(newDescription) {
|
|
173
|
-
this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this.description);
|
|
174
|
-
if (newDescription) {
|
|
175
|
-
this._ariaDescriber.describe(this._elementRef.nativeElement, newDescription);
|
|
176
|
-
}
|
|
177
|
-
this._description = newDescription;
|
|
178
|
-
}
|
|
179
|
-
/** Adds css theme class given the color to the component host */
|
|
180
|
-
_setColor(colorPalette) {
|
|
181
|
-
const classList = this._elementRef.nativeElement.classList;
|
|
182
|
-
classList.remove(`mat-badge-${this._color}`);
|
|
183
|
-
if (colorPalette) {
|
|
184
|
-
classList.add(`mat-badge-${colorPalette}`);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
/** Clears any existing badges that might be left over from server-side rendering. */
|
|
188
|
-
_clearExistingBadges() {
|
|
189
|
-
// Only check direct children of this host element in order to avoid deleting
|
|
190
|
-
// any badges that might exist in descendant elements.
|
|
191
|
-
const badges = this._elementRef.nativeElement.querySelectorAll(`:scope > .${BADGE_CONTENT_CLASS}`);
|
|
192
|
-
for (const badgeElement of Array.from(badges)) {
|
|
193
|
-
if (badgeElement !== this._badgeElement) {
|
|
194
|
-
badgeElement.remove();
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatBadgeDirective, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i1.AriaDescriber }, { token: i0.Renderer2 }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
199
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: OnemrvaMatBadgeDirective, selector: "[matBadge]", inputs: { disabled: ["matBadgeDisabled", "disabled"], color: ["matBadgeColor", "color"], overlap: ["matBadgeOverlap", "overlap"], position: ["matBadgePosition", "position"], content: ["matBadge", "content"], description: ["matBadgeDescription", "description"], size: ["matBadgeSize", "size"], hidden: ["matBadgeHidden", "hidden"] }, host: { properties: { "class.mat-badge-overlap": "overlap", "class.mat-badge-above": "isAbove()", "class.mat-badge-below": "!isAbove()", "class.mat-badge-before": "!isAfter()", "class.mat-badge-after": "isAfter()", "class.mat-badge-small": "size === \"small\"", "class.mat-badge-medium": "size === \"medium\"", "class.mat-badge-large": "size === \"large\"", "class.mat-badge-hidden": "hidden || !content", "class.mat-badge-disabled": "disabled", "class.mat-badge-icon": "this.isIcon" }, classAttribute: "mat-badge" }, usesInheritance: true, ngImport: i0 }); }
|
|
200
|
-
}
|
|
201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatBadgeDirective, decorators: [{
|
|
202
|
-
type: Directive,
|
|
203
|
-
args: [{
|
|
204
|
-
selector: '[matBadge]',
|
|
205
|
-
// eslint-disable-next-line
|
|
206
|
-
inputs: ['disabled: matBadgeDisabled'],
|
|
207
|
-
host: {
|
|
208
|
-
class: 'mat-badge',
|
|
209
|
-
'[class.mat-badge-overlap]': 'overlap',
|
|
210
|
-
'[class.mat-badge-above]': 'isAbove()',
|
|
211
|
-
'[class.mat-badge-below]': '!isAbove()',
|
|
212
|
-
'[class.mat-badge-before]': '!isAfter()',
|
|
213
|
-
'[class.mat-badge-after]': 'isAfter()',
|
|
214
|
-
'[class.mat-badge-small]': 'size === "small"',
|
|
215
|
-
'[class.mat-badge-medium]': 'size === "medium"',
|
|
216
|
-
'[class.mat-badge-large]': 'size === "large"',
|
|
217
|
-
'[class.mat-badge-hidden]': 'hidden || !content',
|
|
218
|
-
'[class.mat-badge-disabled]': 'disabled',
|
|
219
|
-
},
|
|
220
|
-
}]
|
|
221
|
-
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i1.AriaDescriber }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
|
|
222
|
-
type: Optional
|
|
223
|
-
}, {
|
|
224
|
-
type: Inject,
|
|
225
|
-
args: [ANIMATION_MODULE_TYPE]
|
|
226
|
-
}] }], propDecorators: { color: [{
|
|
227
|
-
type: Input,
|
|
228
|
-
args: ['matBadgeColor']
|
|
229
|
-
}], overlap: [{
|
|
230
|
-
type: Input,
|
|
231
|
-
args: ['matBadgeOverlap']
|
|
232
|
-
}], position: [{
|
|
233
|
-
type: Input,
|
|
234
|
-
args: ['matBadgePosition']
|
|
235
|
-
}], content: [{
|
|
236
|
-
type: Input,
|
|
237
|
-
args: ['matBadge']
|
|
238
|
-
}], description: [{
|
|
239
|
-
type: Input,
|
|
240
|
-
args: ['matBadgeDescription']
|
|
241
|
-
}], size: [{
|
|
242
|
-
type: Input,
|
|
243
|
-
args: ['matBadgeSize']
|
|
244
|
-
}], hidden: [{
|
|
245
|
-
type: Input,
|
|
246
|
-
args: ['matBadgeHidden']
|
|
247
|
-
}], isIcon: [{
|
|
248
|
-
type: HostBinding,
|
|
249
|
-
args: ['class.mat-badge-icon']
|
|
250
|
-
}] } });
|
|
251
|
-
|
|
252
|
-
class OnemrvaMatBadgeModule {
|
|
253
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
254
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatBadgeModule, declarations: [OnemrvaMatBadgeDirective], exports: [OnemrvaMatBadgeDirective] }); }
|
|
255
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatBadgeModule }); }
|
|
256
|
-
}
|
|
257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatBadgeModule, decorators: [{
|
|
258
|
-
type: NgModule,
|
|
259
|
-
args: [{
|
|
260
|
-
declarations: [OnemrvaMatBadgeDirective],
|
|
261
|
-
exports: [OnemrvaMatBadgeDirective],
|
|
262
|
-
}]
|
|
263
|
-
}] });
|
|
264
|
-
|
|
265
|
-
/*
|
|
266
|
-
* Public API Surface of mat-badge
|
|
267
|
-
*/
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Generated bundle index. Do not edit.
|
|
271
|
-
*/
|
|
272
|
-
|
|
273
|
-
export { OnemrvaMatBadgeDirective, OnemrvaMatBadgeModule };
|
|
274
|
-
//# sourceMappingURL=onemrvapublic-design-system-mat-badge.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system-mat-badge.mjs","sources":["../../../../projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.component.ts","../../../../projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.module.ts","../../../../projects/onemrva/design-system/mat-badge/index.ts","../../../../projects/onemrva/design-system/mat-badge/onemrvapublic-design-system-mat-badge.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport { AriaDescriber } from '@angular/cdk/a11y';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n Directive,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n Optional,\n Renderer2,\n} from '@angular/core';\nimport { CanDisable, mixinDisabled } from '@angular/material/core';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\n\nlet nextId = 0;\n\n// Boilerplate for applying mixins to MatBadge.\n/** @docs-private */\nconst _MatBadgeBase = mixinDisabled(class {});\n\n/** Possible color palette values. */\nexport declare type ThemePalette =\n | 'primary'\n | 'accent'\n | 'warn'\n | 'success'\n | 'error'\n | 'info'\n | 'grayscale'\n | undefined;\n\n/** Allowed position options for matBadgePosition */\nexport type MatBadgePosition =\n | 'above after'\n | 'above before'\n | 'below before'\n | 'below after'\n | 'before'\n | 'after'\n | 'above'\n | 'below';\n\n/** Allowed size options for matBadgeSize */\nexport type MatBadgeSize = 'small' | 'medium' | 'large';\n\nconst BADGE_CONTENT_CLASS = 'mat-badge-content';\n\n/** Directive to display a text badge. */\n@Directive({\n selector: '[matBadge]',\n // eslint-disable-next-line\n inputs: ['disabled: matBadgeDisabled'],\n\n host: {\n class: 'mat-badge',\n '[class.mat-badge-overlap]': 'overlap',\n '[class.mat-badge-above]': 'isAbove()',\n '[class.mat-badge-below]': '!isAbove()',\n '[class.mat-badge-before]': '!isAfter()',\n '[class.mat-badge-after]': 'isAfter()',\n '[class.mat-badge-small]': 'size === \"small\"',\n '[class.mat-badge-medium]': 'size === \"medium\"',\n '[class.mat-badge-large]': 'size === \"large\"',\n '[class.mat-badge-hidden]': 'hidden || !content',\n '[class.mat-badge-disabled]': 'disabled',\n },\n})\nexport class OnemrvaMatBadgeDirective\n extends _MatBadgeBase\n implements OnInit, OnDestroy, CanDisable\n{\n /** The color of the badge. Can be `primary`, `accent`, or `warn`. */\n @Input('matBadgeColor')\n get color(): ThemePalette {\n return this._color;\n }\n\n set color(value: ThemePalette) {\n this._setColor(value);\n this._color = value;\n }\n\n private _color: ThemePalette = 'primary';\n\n /** Whether the badge should overlap its contents or not */\n @Input('matBadgeOverlap')\n get overlap(): boolean {\n return this._overlap;\n }\n\n set overlap(val: BooleanInput) {\n this._overlap = coerceBooleanProperty(val);\n }\n\n private _overlap = true;\n\n /**\n * Position the badge should reside.\n * Accepts any combination of 'above'|'below' and 'before'|'after'\n */\n @Input('matBadgePosition') position: MatBadgePosition = 'above after';\n\n /** The content for the badge */\n @Input('matBadge')\n get content(): string | number | undefined | null {\n return this._content;\n }\n\n set content(newContent: string | number | undefined | null) {\n this._updateRenderedContent(newContent);\n }\n\n private _content: string | number | undefined | null;\n\n /** Message used to describe the decorated element via aria-describedby */\n @Input('matBadgeDescription')\n get description(): string {\n return this._description;\n }\n\n set description(newDescription: string) {\n this._updateHostAriaDescription(newDescription);\n }\n\n private _description = '';\n\n /** Size of the badge. Can be 'small', 'medium', or 'large'. */\n @Input('matBadgeSize') size: MatBadgeSize = 'medium';\n\n /** Whether the badge is hidden. */\n @Input('matBadgeHidden')\n get hidden(): boolean {\n return this._hidden;\n }\n\n set hidden(val: BooleanInput) {\n this._hidden = coerceBooleanProperty(val);\n }\n\n private _hidden = false;\n\n @HostBinding('class.mat-badge-icon')\n isIcon = false;\n\n /** Unique id for the badge */\n _id: number = nextId++;\n\n /** Visible badge element. */\n private _badgeElement: HTMLElement | undefined;\n\n /** Whether the OnInit lifecycle hook has run yet */\n private _isInitialized = false;\n\n constructor(\n private _ngZone: NgZone,\n private _elementRef: ElementRef<HTMLElement>,\n private _ariaDescriber: AriaDescriber,\n private _renderer: Renderer2,\n @Optional() @Inject(ANIMATION_MODULE_TYPE) private _animationMode?: string,\n ) {\n super();\n\n // if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // const nativeElement = _elementRef.nativeElement;\n // if (nativeElement.nodeType !== nativeElement.ELEMENT_NODE) {\n // throw Error('matBadge must be attached to an element node.');\n // }\n // }\n }\n\n /** Whether the badge is above the host or not */\n isAbove(): boolean {\n return this.position.indexOf('below') === -1;\n }\n\n /** Whether the badge is after the host or not */\n isAfter(): boolean {\n return this.position.indexOf('before') === -1;\n }\n\n /**\n * Gets the element into which the badge's content is being rendered. Undefined if the element\n * hasn't been created (e.g. if the badge doesn't have content).\n */\n getBadgeElement(): HTMLElement | undefined {\n return this._badgeElement;\n }\n\n ngOnInit() {\n // We may have server-side rendered badge that we need to clear.\n // We need to do this in ngOnInit because the full content of the component\n // on which the badge is attached won't necessarily be in the DOM until this point.\n this._clearExistingBadges();\n\n if (this.content && !this._badgeElement) {\n this._badgeElement = this._createBadgeElement();\n this._updateRenderedContent(this.content);\n }\n\n this._isInitialized = true;\n }\n\n ngOnDestroy() {\n // ViewEngine only: when creating a badge through the Renderer, Angular remembers its index.\n // We have to destroy it ourselves, otherwise it'll be retained in memory.\n if (this._renderer.destroyNode) {\n this._renderer.destroyNode(this._badgeElement);\n }\n\n this._ariaDescriber.removeDescription(\n this._elementRef.nativeElement,\n this.description,\n );\n }\n\n /** Creates the badge element */\n private _createBadgeElement(): HTMLElement {\n const badgeElement = this._renderer.createElement('span');\n const activeClass = 'mat-badge-active';\n\n badgeElement.setAttribute('id', `mat-badge-content-${this._id}`);\n\n // The badge is aria-hidden because we don't want it to appear in the page's navigation\n // flow. Instead, we use the badge to describe the decorated element with aria-describedby.\n badgeElement.setAttribute('aria-hidden', 'true');\n badgeElement.classList.add(BADGE_CONTENT_CLASS);\n\n if (this._animationMode === 'NoopAnimations') {\n badgeElement.classList.add('_mat-animation-noopable');\n }\n\n this._elementRef.nativeElement.appendChild(badgeElement);\n\n // animate in after insertion\n if (\n typeof requestAnimationFrame === 'function' &&\n this._animationMode !== 'NoopAnimations'\n ) {\n this._ngZone.runOutsideAngular(() => {\n requestAnimationFrame(() => {\n badgeElement.classList.add(activeClass);\n });\n });\n } else {\n badgeElement.classList.add(activeClass);\n }\n\n return badgeElement;\n }\n\n /** Update the text content of the badge element in the DOM, creating the element if necessary. */\n private _updateRenderedContent(\n newContent: string | number | undefined | null,\n ): void {\n let newContentNormalized: string = `${newContent ?? ''}`.trim();\n //const newContentNormalized: string = '\\uf063';\n if (typeof newContent === 'string' && newContent.substring(0, 2) == '\\\\u') {\n this.isIcon = true;\n newContentNormalized = String.fromCodePoint(\n parseInt(newContent.substring(2, newContent.length), 16),\n );\n } else if (typeof newContent === 'number' || !isNaN(Number(newContent))) {\n if (typeof newContent === 'string') newContent = parseInt(newContent);\n else if (newContent === null || newContent === undefined) newContent = 0;\n if (newContent >= 100) {\n newContentNormalized = '99+';\n }\n }\n // Don't create the badge element if the directive isn't initialized because we want to\n // append the badge element to the *end* of the host element's content for backwards\n // compatibility.\n if (this._isInitialized && newContentNormalized && !this._badgeElement) {\n this._badgeElement = this._createBadgeElement();\n }\n\n if (this._badgeElement) {\n this._badgeElement.textContent = newContentNormalized;\n }\n\n this._content = newContentNormalized;\n }\n\n /** Updates the host element's aria description via AriaDescriber. */\n private _updateHostAriaDescription(newDescription: string): void {\n this._ariaDescriber.removeDescription(\n this._elementRef.nativeElement,\n this.description,\n );\n if (newDescription) {\n this._ariaDescriber.describe(\n this._elementRef.nativeElement,\n newDescription,\n );\n }\n this._description = newDescription;\n }\n\n /** Adds css theme class given the color to the component host */\n private _setColor(colorPalette: ThemePalette) {\n const classList = this._elementRef.nativeElement.classList;\n classList.remove(`mat-badge-${this._color}`);\n if (colorPalette) {\n classList.add(`mat-badge-${colorPalette}`);\n }\n }\n\n /** Clears any existing badges that might be left over from server-side rendering. */\n private _clearExistingBadges() {\n // Only check direct children of this host element in order to avoid deleting\n // any badges that might exist in descendant elements.\n const badges = this._elementRef.nativeElement.querySelectorAll(\n `:scope > .${BADGE_CONTENT_CLASS}`,\n );\n for (const badgeElement of Array.from(badges)) {\n if (badgeElement !== this._badgeElement) {\n badgeElement.remove();\n }\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatBadgeDirective } from './onemrva-mat-badge.component';\n\n@NgModule({\n declarations: [OnemrvaMatBadgeDirective],\n exports: [OnemrvaMatBadgeDirective],\n})\nexport class OnemrvaMatBadgeModule {}\n","/*\n * Public API Surface of mat-badge\n */\n\nexport * from './src/onemrva-mat-badge.component';\nexport * from './src/onemrva-mat-badge.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAyBA,IAAI,MAAM,GAAG,CAAC,CAAC;AAEf;AACA;AACA,MAAM,aAAa,GAAG,aAAa,CAAC,MAAA;AAAQ,CAAA,CAAC,CAAC;AA2B9C,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEhD;AAoBM,MAAO,wBACX,SAAQ,aAAa,CAAA;;AAIrB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-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { AriaDescriber } from '@angular/cdk/a11y';
|
|
9
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
10
|
-
import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
11
|
-
import { CanDisable } from '@angular/material/core';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
/** @docs-private */
|
|
14
|
-
declare const _MatBadgeBase: import("@angular/material/core")._Constructor<CanDisable> & import("@angular/material/core")._AbstractConstructor<CanDisable> & {
|
|
15
|
-
new (): {};
|
|
16
|
-
};
|
|
17
|
-
/** Possible color palette values. */
|
|
18
|
-
export declare type ThemePalette = 'primary' | 'accent' | 'warn' | 'success' | 'error' | 'info' | 'grayscale' | undefined;
|
|
19
|
-
/** Allowed position options for matBadgePosition */
|
|
20
|
-
export type MatBadgePosition = 'above after' | 'above before' | 'below before' | 'below after' | 'before' | 'after' | 'above' | 'below';
|
|
21
|
-
/** Allowed size options for matBadgeSize */
|
|
22
|
-
export type MatBadgeSize = 'small' | 'medium' | 'large';
|
|
23
|
-
/** Directive to display a text badge. */
|
|
24
|
-
export declare class OnemrvaMatBadgeDirective extends _MatBadgeBase implements OnInit, OnDestroy, CanDisable {
|
|
25
|
-
private _ngZone;
|
|
26
|
-
private _elementRef;
|
|
27
|
-
private _ariaDescriber;
|
|
28
|
-
private _renderer;
|
|
29
|
-
private _animationMode?;
|
|
30
|
-
/** The color of the badge. Can be `primary`, `accent`, or `warn`. */
|
|
31
|
-
get color(): ThemePalette;
|
|
32
|
-
set color(value: ThemePalette);
|
|
33
|
-
private _color;
|
|
34
|
-
/** Whether the badge should overlap its contents or not */
|
|
35
|
-
get overlap(): boolean;
|
|
36
|
-
set overlap(val: BooleanInput);
|
|
37
|
-
private _overlap;
|
|
38
|
-
/**
|
|
39
|
-
* Position the badge should reside.
|
|
40
|
-
* Accepts any combination of 'above'|'below' and 'before'|'after'
|
|
41
|
-
*/
|
|
42
|
-
position: MatBadgePosition;
|
|
43
|
-
/** The content for the badge */
|
|
44
|
-
get content(): string | number | undefined | null;
|
|
45
|
-
set content(newContent: string | number | undefined | null);
|
|
46
|
-
private _content;
|
|
47
|
-
/** Message used to describe the decorated element via aria-describedby */
|
|
48
|
-
get description(): string;
|
|
49
|
-
set description(newDescription: string);
|
|
50
|
-
private _description;
|
|
51
|
-
/** Size of the badge. Can be 'small', 'medium', or 'large'. */
|
|
52
|
-
size: MatBadgeSize;
|
|
53
|
-
/** Whether the badge is hidden. */
|
|
54
|
-
get hidden(): boolean;
|
|
55
|
-
set hidden(val: BooleanInput);
|
|
56
|
-
private _hidden;
|
|
57
|
-
isIcon: boolean;
|
|
58
|
-
/** Unique id for the badge */
|
|
59
|
-
_id: number;
|
|
60
|
-
/** Visible badge element. */
|
|
61
|
-
private _badgeElement;
|
|
62
|
-
/** Whether the OnInit lifecycle hook has run yet */
|
|
63
|
-
private _isInitialized;
|
|
64
|
-
constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _ariaDescriber: AriaDescriber, _renderer: Renderer2, _animationMode?: string | undefined);
|
|
65
|
-
/** Whether the badge is above the host or not */
|
|
66
|
-
isAbove(): boolean;
|
|
67
|
-
/** Whether the badge is after the host or not */
|
|
68
|
-
isAfter(): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Gets the element into which the badge's content is being rendered. Undefined if the element
|
|
71
|
-
* hasn't been created (e.g. if the badge doesn't have content).
|
|
72
|
-
*/
|
|
73
|
-
getBadgeElement(): HTMLElement | undefined;
|
|
74
|
-
ngOnInit(): void;
|
|
75
|
-
ngOnDestroy(): void;
|
|
76
|
-
/** Creates the badge element */
|
|
77
|
-
private _createBadgeElement;
|
|
78
|
-
/** Update the text content of the badge element in the DOM, creating the element if necessary. */
|
|
79
|
-
private _updateRenderedContent;
|
|
80
|
-
/** Updates the host element's aria description via AriaDescriber. */
|
|
81
|
-
private _updateHostAriaDescription;
|
|
82
|
-
/** Adds css theme class given the color to the component host */
|
|
83
|
-
private _setColor;
|
|
84
|
-
/** Clears any existing badges that might be left over from server-side rendering. */
|
|
85
|
-
private _clearExistingBadges;
|
|
86
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaMatBadgeDirective, [null, null, null, null, { optional: true; }]>;
|
|
87
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<OnemrvaMatBadgeDirective, "[matBadge]", never, { "disabled": { "alias": "matBadgeDisabled"; "required": false; }; "color": { "alias": "matBadgeColor"; "required": false; }; "overlap": { "alias": "matBadgeOverlap"; "required": false; }; "position": { "alias": "matBadgePosition"; "required": false; }; "content": { "alias": "matBadge"; "required": false; }; "description": { "alias": "matBadgeDescription"; "required": false; }; "size": { "alias": "matBadgeSize"; "required": false; }; "hidden": { "alias": "matBadgeHidden"; "required": false; }; }, {}, never, never, false, never>;
|
|
88
|
-
}
|
|
89
|
-
export {};
|