@recursyve/nice-ui-kit.v2 14.0.0-beta.99 → 15.0.0-beta.119
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/esm2020/lib/api/interceptors/transform-response.interceptor.mjs +3 -3
- package/esm2020/lib/components/alert/alert.component.mjs +4 -4
- package/esm2020/lib/components/alert/alert.module.mjs +4 -4
- package/esm2020/lib/components/alert/alert.service.mjs +3 -3
- package/esm2020/lib/components/assets-carousel/assets-carousel.component.mjs +78 -49
- package/esm2020/lib/components/assets-carousel/assets-carousel.module.mjs +15 -10
- package/esm2020/lib/components/assets-carousel/directives/assets-carousel-active-content.directive.mjs +14 -0
- package/esm2020/lib/components/assets-carousel/public-api.mjs +2 -1
- package/esm2020/lib/components/async-typeahead/async-typeahead.component.mjs +48 -35
- package/esm2020/lib/components/async-typeahead/async-typeahead.module.mjs +4 -4
- package/esm2020/lib/components/async-typeahead/providers/async-typeahead.service.mjs +15 -4
- package/esm2020/lib/components/async-typeahead/public-api.mjs +2 -1
- package/esm2020/lib/components/base-form/base-form.component.mjs +3 -3
- package/esm2020/lib/components/base-form/base-form.module.mjs +4 -4
- package/esm2020/lib/components/base-form/form-submit.directive.mjs +3 -3
- package/esm2020/lib/components/card/card.component.mjs +3 -3
- package/esm2020/lib/components/card/card.module.mjs +4 -4
- package/esm2020/lib/components/carousel/carousel.component.mjs +7 -7
- package/esm2020/lib/components/carousel/carousel.module.mjs +4 -4
- package/esm2020/lib/components/carousel/picture-modal/picture-modal.component.mjs +3 -3
- package/esm2020/lib/components/carousel/picture-modal/picture-modal.service.mjs +3 -3
- package/esm2020/lib/components/carousel/pipe/carousel-layout.pipe.mjs +3 -3
- package/esm2020/lib/components/collapsable/collapsable.component.mjs +36 -0
- package/esm2020/lib/components/collapsable/collapsable.module.mjs +25 -0
- package/esm2020/lib/components/collapsable/index.mjs +2 -0
- package/esm2020/lib/components/collapsable/public-api.mjs +3 -0
- package/esm2020/lib/components/date-range-picker/components/header/header.component.mjs +57 -0
- package/esm2020/lib/components/date-range-picker/components/range-preset/range-preset.component.mjs +107 -0
- package/esm2020/lib/components/date-range-picker/date-range-picker.component.mjs +74 -0
- package/esm2020/lib/components/date-range-picker/date-range-picker.module.mjs +56 -0
- package/esm2020/lib/components/date-range-picker/index.mjs +2 -0
- package/esm2020/lib/components/date-range-picker/providers/date-range-picker.service.mjs +17 -0
- package/esm2020/lib/components/date-range-picker/public-api.mjs +3 -0
- package/esm2020/lib/components/drawer/drawer.component.mjs +3 -3
- package/esm2020/lib/components/drawer/drawer.module.mjs +4 -4
- package/esm2020/lib/components/drawer/drawer.service.mjs +3 -3
- package/esm2020/lib/components/export-bottom-sheet/export-bottom-sheet.component.mjs +5 -6
- package/esm2020/lib/components/export-bottom-sheet/export-bottom-sheet.module.mjs +4 -4
- package/esm2020/lib/components/export-bottom-sheet/providers/export-bottom-sheet.service.mjs +6 -6
- package/esm2020/lib/components/form-error/control-status.directive.mjs +31 -11
- package/esm2020/lib/components/form-error/form-error.component.mjs +12 -21
- package/esm2020/lib/components/form-error/form-error.module.mjs +6 -7
- package/esm2020/lib/components/horizontal-stepper/horizontal-stepper.component.mjs +3 -3
- package/esm2020/lib/components/horizontal-stepper/horizontal-stepper.module.mjs +4 -4
- package/esm2020/lib/components/horizontal-stepper/step.component.mjs +3 -3
- package/esm2020/lib/components/image-cropper/image-cropper.component.mjs +35 -35
- package/esm2020/lib/components/image-cropper/image-cropper.module.mjs +4 -4
- package/esm2020/lib/components/layout/layout.component.mjs +3 -3
- package/esm2020/lib/components/layout/layout.module.mjs +4 -4
- package/esm2020/lib/components/loading-spinner/loading-spinner.component.mjs +3 -3
- package/esm2020/lib/components/loading-spinner/loading-spinner.module.mjs +4 -4
- package/esm2020/lib/components/loading-spinner/loading.directive.mjs +10 -10
- package/esm2020/lib/components/lottie/lottie.component.mjs +3 -3
- package/esm2020/lib/components/lottie/lottie.module.mjs +4 -4
- package/esm2020/lib/components/navigation/components/hint-component-base.mjs +120 -0
- package/esm2020/lib/components/navigation/directives/show-hint.directive.mjs +187 -0
- package/esm2020/lib/components/navigation/horizontal/components/basic/basic.component.mjs +3 -3
- package/esm2020/lib/components/navigation/horizontal/components/branch/branch.component.mjs +6 -5
- package/esm2020/lib/components/navigation/horizontal/components/divider/divider.component.mjs +3 -3
- package/esm2020/lib/components/navigation/horizontal/components/spacer/spacer.component.mjs +3 -3
- package/esm2020/lib/components/navigation/horizontal/horizontal.component.mjs +13 -12
- package/esm2020/lib/components/navigation/navigation.component.mjs +3 -3
- package/esm2020/lib/components/navigation/navigation.module.mjs +18 -7
- package/esm2020/lib/components/navigation/navigation.service.mjs +3 -3
- package/esm2020/lib/components/navigation/navigation.types.mjs +1 -1
- package/esm2020/lib/components/navigation/pipes/should-hide.pipe.mjs +31 -0
- package/esm2020/lib/components/navigation/pipes/should-show-hint.pipe.mjs +32 -0
- package/esm2020/lib/components/navigation/providers/hide-item.resolver.mjs +3 -0
- package/esm2020/lib/components/navigation/providers/hint.resolver.mjs +3 -0
- package/esm2020/lib/components/navigation/providers/hint.service.mjs +20 -0
- package/esm2020/lib/components/navigation/public-api.mjs +4 -1
- package/esm2020/lib/components/navigation/vertical/components/aside/aside.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/components/basic/basic.component.mjs +8 -6
- package/esm2020/lib/components/navigation/vertical/components/collapsable/collapsable.component.mjs +7 -5
- package/esm2020/lib/components/navigation/vertical/components/divider/divider.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/components/group/group.component.mjs +6 -5
- package/esm2020/lib/components/navigation/vertical/components/spacer/spacer.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/vertical.component.mjs +47 -24
- package/esm2020/lib/components/public-api.mjs +4 -1
- package/esm2020/lib/components/search-bar/search-bar.component.mjs +5 -5
- package/esm2020/lib/components/search-bar/search-bar.module.mjs +4 -4
- package/esm2020/lib/components/sweet-alert/sweet-alert.component.mjs +3 -3
- package/esm2020/lib/components/sweet-alert/sweet-alert.directive.mjs +3 -3
- package/esm2020/lib/components/sweet-alert/sweet-alert.module.mjs +4 -4
- package/esm2020/lib/components/sweet-alert/sweet-alert.service.mjs +3 -3
- package/esm2020/lib/components/toast/toast.component.mjs +4 -4
- package/esm2020/lib/components/toast/toast.module.mjs +4 -4
- package/esm2020/lib/components/toast/toast.service.mjs +3 -3
- package/esm2020/lib/components/toggle-button-group/toggle-button-group.component.mjs +5 -5
- package/esm2020/lib/components/toggle-button-group/toggle-button-group.module.mjs +4 -4
- package/esm2020/lib/components/toggle-button-group/toggle-button.component.mjs +3 -3
- package/esm2020/lib/components/translation-form/components/textarea/translation-form-textarea.component.mjs +37 -0
- package/esm2020/lib/components/translation-form/components/textfield/translation-form-textfield.component.mjs +25 -0
- package/esm2020/lib/components/translation-form/components/translation-form.component.mjs +164 -0
- package/esm2020/lib/components/translation-form/components/translation-form.module.mjs +71 -0
- package/esm2020/lib/components/translation-form/decorators/translation-form.decorator.mjs +4 -0
- package/esm2020/lib/components/translation-form/directives/translation-context.directive.mjs +34 -0
- package/esm2020/lib/components/translation-form/index.mjs +2 -0
- package/esm2020/lib/components/translation-form/providers/translation-form.service.mjs +46 -0
- package/esm2020/lib/components/translation-form/public-api.mjs +10 -0
- package/esm2020/lib/components/translation-form/toggle/translation-toggle.component.mjs +26 -0
- package/esm2020/lib/components/translation-form/translation.form.mjs +6 -0
- package/esm2020/lib/components/translation-form/validators/require-for-languages.validator.mjs +42 -0
- package/esm2020/lib/components/typeahead/directives/options-scroll.directive.mjs +3 -3
- package/esm2020/lib/components/typeahead/directives/options-scroll.module.mjs +4 -4
- package/esm2020/lib/components/typeahead/typeahead.component.mjs +60 -60
- package/esm2020/lib/components/typeahead/typeahead.module.mjs +4 -4
- package/esm2020/lib/directives/autofocus/autofocus.directive.mjs +3 -3
- package/esm2020/lib/directives/autofocus/autofocus.module.mjs +4 -4
- package/esm2020/lib/directives/autogrow/autogrow.directive.mjs +3 -3
- package/esm2020/lib/directives/autogrow/autogrow.module.mjs +4 -4
- package/esm2020/lib/directives/chip-async-typeahead/chip-async-typeahead.directive.mjs +3 -3
- package/esm2020/lib/directives/chip-list/chip-list-items/chip-list-item-label.directive.mjs +3 -3
- package/esm2020/lib/directives/chip-list/chip-list-items/chip-list-items.component.mjs +22 -8
- package/esm2020/lib/directives/chip-list/chip-list.constant.mjs +3 -0
- package/esm2020/lib/directives/chip-list/chip-list.directive.mjs +44 -17
- package/esm2020/lib/directives/chip-list/chip-list.module.mjs +24 -5
- package/esm2020/lib/directives/draggable-list/draggable-list.directive.mjs +94 -0
- package/esm2020/lib/directives/draggable-list/draggable-list.module.mjs +18 -0
- package/esm2020/lib/directives/draggable-list/index.mjs +2 -0
- package/esm2020/lib/directives/draggable-list/public-api.mjs +3 -0
- package/esm2020/lib/directives/dropzone/dropzone.directive.mjs +3 -3
- package/esm2020/lib/directives/dropzone/dropzone.module.mjs +4 -4
- package/esm2020/lib/directives/image-error-placeholder/image-error-placeholder.directive.mjs +3 -3
- package/esm2020/lib/directives/image-error-placeholder/image-error-placeholder.module.mjs +4 -4
- package/esm2020/lib/directives/material/material.module.mjs +4 -4
- package/esm2020/lib/directives/material/nice-material-style.directive.mjs +4 -4
- package/esm2020/lib/directives/material/nice-rounded-style.directive.mjs +4 -4
- package/esm2020/lib/directives/modals/modal-on-click.directive.mjs +3 -3
- package/esm2020/lib/directives/modals/modal-opener.directive.mjs +3 -3
- package/esm2020/lib/directives/public-api.mjs +4 -1
- package/esm2020/lib/directives/rerender/index.mjs +2 -0
- package/esm2020/lib/directives/rerender/public-api.mjs +2 -0
- package/esm2020/lib/directives/rerender/rerender.directive.mjs +22 -0
- package/esm2020/lib/directives/resolve/index.mjs +2 -0
- package/esm2020/lib/directives/resolve/public-api.mjs +2 -0
- package/esm2020/lib/directives/resolve/resolve.directive.mjs +32 -0
- package/esm2020/lib/directives/scroll-reset/scroll-reset.directive.mjs +3 -3
- package/esm2020/lib/directives/scroll-reset/scroll-reset.module.mjs +4 -4
- package/esm2020/lib/directives/scrollbar/scrollbar.directive.mjs +3 -3
- package/esm2020/lib/directives/scrollbar/scrollbar.module.mjs +4 -4
- package/esm2020/lib/directives/stop-propagation/click-stop-propagation.directive.mjs +3 -3
- package/esm2020/lib/directives/stop-propagation/stop-propagation.module.mjs +4 -4
- package/esm2020/lib/directives/window/prevent-close-window.directive.mjs +3 -3
- package/esm2020/lib/directives/window/window-directive.module.mjs +4 -4
- package/esm2020/lib/nice.module.mjs +57 -5
- package/esm2020/lib/pipes/boolean.pipe.mjs +3 -3
- package/esm2020/lib/pipes/capitalize-first-letter.pipe.mjs +3 -3
- package/esm2020/lib/pipes/ceil.pipe.mjs +3 -3
- package/esm2020/lib/pipes/entries.pipe.mjs +3 -3
- package/esm2020/lib/pipes/find-by-key.pipe.mjs +3 -3
- package/esm2020/lib/pipes/first-letter.pipe.mjs +3 -3
- package/esm2020/lib/pipes/floor.pipe.mjs +3 -3
- package/esm2020/lib/pipes/join-if-defined.pipe.mjs +3 -3
- package/esm2020/lib/pipes/link.pipe.mjs +3 -3
- package/esm2020/lib/pipes/localized-boolean.pipe.mjs +3 -3
- package/esm2020/lib/pipes/localized-currency.pipe.mjs +3 -3
- package/esm2020/lib/pipes/localized-date-only.pipe.mjs +3 -3
- package/esm2020/lib/pipes/localized-date.pipe.mjs +3 -3
- package/esm2020/lib/pipes/minutes-to-time.pipe.mjs +3 -3
- package/esm2020/lib/pipes/number-to-ordinal-indicator.pipe.mjs +3 -3
- package/esm2020/lib/pipes/pad.pipe.mjs +3 -3
- package/esm2020/lib/pipes/phone.pipe.mjs +9 -9
- package/esm2020/lib/pipes/pipes.module.mjs +14 -9
- package/esm2020/lib/pipes/postal-code.pipe.mjs +9 -9
- package/esm2020/lib/pipes/public-api.mjs +2 -1
- package/esm2020/lib/pipes/range.pipe.mjs +3 -3
- package/esm2020/lib/pipes/round.pipe.mjs +3 -3
- package/esm2020/lib/pipes/sanitize-bypass.pipe.mjs +3 -3
- package/esm2020/lib/pipes/seconds-to-time.pipe.mjs +3 -3
- package/esm2020/lib/pipes/track-by-prop.pipe.mjs +14 -0
- package/esm2020/lib/providers/config/config.module.mjs +4 -4
- package/esm2020/lib/providers/config/config.service.mjs +3 -3
- package/esm2020/lib/providers/media-watcher/media-watcher.module.mjs +4 -4
- package/esm2020/lib/providers/media-watcher/media-watcher.service.mjs +3 -3
- package/esm2020/lib/providers/overlay/dynamic-overlay-container.service.mjs +3 -3
- package/esm2020/lib/providers/overlay/dynamic-overlay.service.mjs +3 -3
- package/esm2020/lib/providers/splash-screen/splash-screen.module.mjs +4 -4
- package/esm2020/lib/providers/splash-screen/splash-screen.service.mjs +3 -3
- package/esm2020/lib/providers/utils/utils.module.mjs +4 -4
- package/esm2020/lib/providers/utils/utils.service.mjs +3 -3
- package/esm2020/lib/utils/case.utils.mjs +7 -5
- package/esm2020/lib/utils/keyboard.utils.mjs +2 -1
- package/esm2020/lib/utils/lexorank.utils.mjs +28 -0
- package/esm2020/lib/utils/public-api.mjs +2 -1
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +3129 -1630
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +3068 -1577
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/api/nice.api.d.ts +1 -1
- package/lib/components/alert/alert.component.d.ts +1 -1
- package/lib/components/alert/alert.types.d.ts +3 -3
- package/lib/components/assets-carousel/assets-carousel.component.d.ts +9 -3
- package/lib/components/assets-carousel/assets-carousel.module.d.ts +10 -8
- package/lib/components/assets-carousel/directives/assets-carousel-active-content.directive.d.ts +8 -0
- package/lib/components/assets-carousel/public-api.d.ts +1 -0
- package/lib/components/async-typeahead/async-typeahead.component.d.ts +5 -1
- package/lib/components/async-typeahead/public-api.d.ts +1 -0
- package/lib/components/base-form/base-form.component.d.ts +1 -1
- package/lib/components/base-form/form-submit.directive.d.ts +1 -1
- package/lib/components/card/card.component.d.ts +1 -1
- package/lib/components/card/card.types.d.ts +1 -1
- package/lib/components/carousel/carousel.component.d.ts +1 -1
- package/lib/components/carousel/picture-modal/picture-modal.component.d.ts +1 -1
- package/lib/components/collapsable/collapsable.component.d.ts +15 -0
- package/lib/components/collapsable/collapsable.module.d.ts +9 -0
- package/lib/components/collapsable/index.d.ts +1 -0
- package/lib/components/collapsable/public-api.d.ts +2 -0
- package/lib/components/date-range-picker/components/header/header.component.d.ts +20 -0
- package/lib/components/date-range-picker/components/range-preset/range-preset.component.d.ts +23 -0
- package/lib/components/date-range-picker/date-range-picker.component.d.ts +29 -0
- package/lib/components/date-range-picker/date-range-picker.module.d.ts +18 -0
- package/lib/components/date-range-picker/index.d.ts +1 -0
- package/lib/components/date-range-picker/providers/date-range-picker.service.d.ts +8 -0
- package/lib/components/date-range-picker/public-api.d.ts +2 -0
- package/lib/components/drawer/drawer.component.d.ts +1 -1
- package/lib/components/drawer/drawer.types.d.ts +2 -2
- package/lib/components/export-bottom-sheet/export-bottom-sheet.component.d.ts +1 -1
- package/lib/components/export-bottom-sheet/models/export-strategy.model.d.ts +1 -1
- package/lib/components/form-error/control-status.directive.d.ts +1 -1
- package/lib/components/form-error/form-error.component.d.ts +1 -1
- package/lib/components/horizontal-stepper/horizontal-stepper.component.d.ts +1 -1
- package/lib/components/horizontal-stepper/step.component.d.ts +1 -1
- package/lib/components/image-cropper/image-cropper.component.d.ts +2 -2
- package/lib/components/layout/layout.component.d.ts +1 -1
- package/lib/components/loading-spinner/loading-spinner.component.d.ts +1 -1
- package/lib/components/loading-spinner/loading.directive.d.ts +1 -1
- package/lib/components/lottie/lottie.component.d.ts +1 -1
- package/lib/components/navigation/components/hint-component-base.d.ts +65 -0
- package/lib/components/navigation/directives/show-hint.directive.d.ts +39 -0
- package/lib/components/navigation/horizontal/components/basic/basic.component.d.ts +1 -1
- package/lib/components/navigation/horizontal/components/branch/branch.component.d.ts +1 -1
- package/lib/components/navigation/horizontal/components/divider/divider.component.d.ts +1 -1
- package/lib/components/navigation/horizontal/components/spacer/spacer.component.d.ts +1 -1
- package/lib/components/navigation/horizontal/horizontal.component.d.ts +1 -1
- package/lib/components/navigation/navigation.component.d.ts +1 -1
- package/lib/components/navigation/navigation.module.d.ts +13 -10
- package/lib/components/navigation/navigation.types.d.ts +12 -5
- package/lib/components/navigation/pipes/should-hide.pipe.d.ts +11 -0
- package/lib/components/navigation/pipes/should-show-hint.pipe.d.ts +12 -0
- package/lib/components/navigation/providers/hide-item.resolver.d.ts +5 -0
- package/lib/components/navigation/providers/hint.resolver.d.ts +4 -0
- package/lib/components/navigation/providers/hint.service.d.ts +9 -0
- package/lib/components/navigation/public-api.d.ts +3 -0
- package/lib/components/navigation/vertical/components/aside/aside.component.d.ts +1 -1
- package/lib/components/navigation/vertical/components/basic/basic.component.d.ts +1 -1
- package/lib/components/navigation/vertical/components/collapsable/collapsable.component.d.ts +1 -1
- package/lib/components/navigation/vertical/components/divider/divider.component.d.ts +1 -1
- package/lib/components/navigation/vertical/components/group/group.component.d.ts +1 -1
- package/lib/components/navigation/vertical/components/spacer/spacer.component.d.ts +1 -1
- package/lib/components/navigation/vertical/vertical.component.d.ts +8 -2
- package/lib/components/public-api.d.ts +3 -0
- package/lib/components/search-bar/search-bar.component.d.ts +1 -1
- package/lib/components/sweet-alert/sweet-alert.component.d.ts +1 -1
- package/lib/components/sweet-alert/sweet-alert.directive.d.ts +1 -1
- package/lib/components/toast/toast.component.d.ts +1 -1
- package/lib/components/toggle-button-group/toggle-button-group.component.d.ts +2 -2
- package/lib/components/toggle-button-group/toggle-button.component.d.ts +1 -1
- package/lib/components/translation-form/components/textarea/translation-form-textarea.component.d.ts +9 -0
- package/lib/components/translation-form/components/textfield/translation-form-textfield.component.d.ts +6 -0
- package/lib/components/translation-form/components/translation-form.component.d.ts +55 -0
- package/lib/components/translation-form/components/translation-form.module.d.ts +16 -0
- package/lib/components/translation-form/decorators/translation-form.decorator.d.ts +1 -0
- package/lib/components/translation-form/directives/translation-context.directive.d.ts +15 -0
- package/lib/components/translation-form/index.d.ts +1 -0
- package/lib/components/translation-form/providers/translation-form.service.d.ts +12 -0
- package/lib/components/translation-form/public-api.d.ts +9 -0
- package/lib/components/translation-form/toggle/translation-toggle.component.d.ts +14 -0
- package/lib/components/translation-form/translation.form.d.ts +5 -0
- package/lib/components/translation-form/validators/require-for-languages.validator.d.ts +14 -0
- package/lib/components/typeahead/directives/options-scroll.directive.d.ts +1 -1
- package/lib/components/typeahead/typeahead.component.d.ts +1 -1
- package/lib/directives/autofocus/autofocus.directive.d.ts +1 -1
- package/lib/directives/autogrow/autogrow.directive.d.ts +1 -1
- package/lib/directives/chip-async-typeahead/chip-async-typeahead.directive.d.ts +1 -1
- package/lib/directives/chip-list/chip-list-items/chip-list-item-label.directive.d.ts +1 -1
- package/lib/directives/chip-list/chip-list-items/chip-list-items.component.d.ts +14 -2
- package/lib/directives/chip-list/chip-list.constant.d.ts +2 -0
- package/lib/directives/chip-list/chip-list.directive.d.ts +7 -4
- package/lib/directives/chip-list/chip-list.module.d.ts +3 -0
- package/lib/directives/draggable-list/draggable-list.directive.d.ts +24 -0
- package/lib/directives/draggable-list/draggable-list.module.d.ts +8 -0
- package/lib/directives/draggable-list/index.d.ts +1 -0
- package/lib/directives/draggable-list/public-api.d.ts +2 -0
- package/lib/directives/dropzone/dropzone.directive.d.ts +1 -1
- package/lib/directives/image-error-placeholder/image-error-placeholder.directive.d.ts +1 -1
- package/lib/directives/material/nice-material-style.directive.d.ts +1 -1
- package/lib/directives/material/nice-rounded-style.directive.d.ts +1 -1
- package/lib/directives/modals/modal-on-click.directive.d.ts +1 -1
- package/lib/directives/modals/modal-opener.directive.d.ts +1 -1
- package/lib/directives/public-api.d.ts +3 -0
- package/lib/directives/rerender/index.d.ts +1 -0
- package/lib/directives/rerender/public-api.d.ts +1 -0
- package/lib/directives/rerender/rerender.directive.d.ts +10 -0
- package/lib/directives/resolve/index.d.ts +1 -0
- package/lib/directives/resolve/public-api.d.ts +1 -0
- package/lib/directives/resolve/resolve.directive.d.ts +18 -0
- package/lib/directives/scroll-reset/scroll-reset.directive.d.ts +1 -1
- package/lib/directives/scrollbar/scrollbar.directive.d.ts +1 -1
- package/lib/directives/stop-propagation/click-stop-propagation.directive.d.ts +1 -1
- package/lib/directives/window/prevent-close-window.directive.d.ts +1 -1
- package/lib/pipes/phone.pipe.d.ts +3 -3
- package/lib/pipes/pipes.module.d.ts +2 -1
- package/lib/pipes/postal-code.pipe.d.ts +3 -3
- package/lib/pipes/public-api.d.ts +1 -0
- package/lib/pipes/track-by-prop.pipe.d.ts +7 -0
- package/lib/providers/config/config.model.d.ts +3 -3
- package/lib/types/constructor.d.ts +2 -2
- package/lib/utils/array.utils.d.ts +1 -1
- package/lib/utils/keyboard.utils.d.ts +2 -1
- package/lib/utils/lexorank.utils.d.ts +6 -0
- package/lib/utils/public-api.d.ts +1 -0
- package/package.json +10 -10
- package/src/lib/components/assets-carousel/assets-carousel.theme.scss +21 -15
- package/src/lib/components/collapsable/collapsable.theme.scss +48 -0
- package/src/lib/components/date-range-picker/date-range-picker.theme.scss +47 -0
- package/src/lib/components/navigation/vertical/styles/appearances/default.theme.scss +38 -0
- package/src/lib/components/navigation/vertical/styles/appearances/dense.theme.scss +2 -2
- package/src/lib/directives/chip-list/chip-list-items/chip-list-items.theme.scss +5 -1
- package/src/lib/nice.theme.scss +26 -9
- package/styles/main.scss +1 -4
- package/styles/overrides/angular-material.scss +505 -766
- package/styles/overrides/quill.scss +42 -5
- package/styles/tailwind.scss +47 -1
- package/styles/core/tailwind-config.scss +0 -6
|
@@ -9,10 +9,10 @@ import { NiceCropperAreaComponent, NiceImageCropperComponent } from "./image-cro
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export class NiceImageCropperModule {
|
|
11
11
|
}
|
|
12
|
-
NiceImageCropperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13
|
-
NiceImageCropperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
14
|
-
NiceImageCropperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
NiceImageCropperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceImageCropperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13
|
+
NiceImageCropperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NiceImageCropperModule, declarations: [NiceImageCropperComponent, NiceCropperAreaComponent], imports: [CommonModule, MatButtonModule, MatIconModule], exports: [NiceImageCropperComponent] });
|
|
14
|
+
NiceImageCropperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceImageCropperModule, imports: [CommonModule, MatButtonModule, MatIconModule] });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceImageCropperModule, decorators: [{
|
|
16
16
|
type: NgModule,
|
|
17
17
|
args: [{
|
|
18
18
|
imports: [CommonModule, MatButtonModule, MatIconModule],
|
|
@@ -83,9 +83,9 @@ export class NiceLayoutComponent {
|
|
|
83
83
|
this._document.body.classList.add(`theme-${this.theme}`);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
NiceLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
87
|
-
NiceLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
86
|
+
NiceLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLayoutComponent, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }, { token: i1.NiceConfigService }, { token: i1.NiceMediaWatcherService }], target: i0.ɵɵFactoryTarget.Component });
|
|
87
|
+
NiceLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NiceLayoutComponent, selector: "nice-layout", ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLayoutComponent, decorators: [{
|
|
89
89
|
type: Component,
|
|
90
90
|
args: [{
|
|
91
91
|
selector: "nice-layout",
|
|
@@ -3,10 +3,10 @@ import { NiceLayoutComponent } from "./layout.component";
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class NiceLayoutModule {
|
|
5
5
|
}
|
|
6
|
-
NiceLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7
|
-
NiceLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8
|
-
NiceLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6
|
+
NiceLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
NiceLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NiceLayoutModule, declarations: [NiceLayoutComponent], exports: [NiceLayoutComponent] });
|
|
8
|
+
NiceLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLayoutModule });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLayoutModule, decorators: [{
|
|
10
10
|
type: NgModule,
|
|
11
11
|
args: [{
|
|
12
12
|
imports: [],
|
|
@@ -7,9 +7,9 @@ export class NiceLoadingSpinnerComponent {
|
|
|
7
7
|
this.diameter = 50;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
NiceLoadingSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11
|
-
NiceLoadingSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10
|
+
NiceLoadingSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
NiceLoadingSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NiceLoadingSpinnerComponent, selector: "nice-loading-spinner", inputs: { loading: "loading", mode: "mode", diameter: "diameter" }, ngImport: i0, template: "<mat-spinner [diameter]=\"diameter\" [mode]=\"mode\" [color]=\"'accent'\"></mat-spinner>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "component", type: i1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLoadingSpinnerComponent, decorators: [{
|
|
13
13
|
type: Component,
|
|
14
14
|
args: [{ selector: "nice-loading-spinner", template: "<mat-spinner [diameter]=\"diameter\" [mode]=\"mode\" [color]=\"'accent'\"></mat-spinner>\n", styles: [":host{display:inline-block}\n"] }]
|
|
15
15
|
}], propDecorators: { loading: [{
|
|
@@ -20,14 +20,14 @@ export class NiceLoadingSpinnerModule {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
NiceLoadingSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
24
|
-
NiceLoadingSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
23
|
+
NiceLoadingSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLoadingSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
24
|
+
NiceLoadingSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NiceLoadingSpinnerModule, declarations: [NiceLoadingSpinnerComponent,
|
|
25
25
|
NiceLoadingDirective], imports: [CommonModule,
|
|
26
26
|
MatProgressSpinnerModule], exports: [NiceLoadingSpinnerComponent,
|
|
27
27
|
NiceLoadingDirective] });
|
|
28
|
-
NiceLoadingSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
28
|
+
NiceLoadingSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLoadingSpinnerModule, providers: [DynamicOverlayContainer, DynamicOverlay], imports: [CommonModule,
|
|
29
29
|
MatProgressSpinnerModule] });
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLoadingSpinnerModule, decorators: [{
|
|
31
31
|
type: NgModule,
|
|
32
32
|
args: [{
|
|
33
33
|
imports: [
|
|
@@ -6,12 +6,6 @@ import { NICE_LOADING_OPTIONS } from "./loading.constant";
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "../../providers/overlay/dynamic-overlay.service";
|
|
8
8
|
export class NiceLoadingDirective {
|
|
9
|
-
constructor(options, elRef, overlay) {
|
|
10
|
-
this.options = options;
|
|
11
|
-
this.elRef = elRef;
|
|
12
|
-
this.overlay = overlay;
|
|
13
|
-
this._loading = false;
|
|
14
|
-
}
|
|
15
9
|
set loading(loading) {
|
|
16
10
|
setTimeout(() => {
|
|
17
11
|
if (loading === this._loading) {
|
|
@@ -38,10 +32,16 @@ export class NiceLoadingDirective {
|
|
|
38
32
|
}
|
|
39
33
|
}, 0);
|
|
40
34
|
}
|
|
35
|
+
constructor(options, elRef, overlay) {
|
|
36
|
+
this.options = options;
|
|
37
|
+
this.elRef = elRef;
|
|
38
|
+
this.overlay = overlay;
|
|
39
|
+
this._loading = false;
|
|
40
|
+
}
|
|
41
41
|
}
|
|
42
|
-
NiceLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
NiceLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
NiceLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLoadingDirective, deps: [{ token: NICE_LOADING_OPTIONS, optional: true }, { token: i0.ElementRef }, { token: i1.DynamicOverlay }], target: i0.ɵɵFactoryTarget.Directive });
|
|
43
|
+
NiceLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: NiceLoadingDirective, selector: "[niceLoadingOverlay]", inputs: { loading: ["niceLoadingOverlay", "loading"] }, ngImport: i0 });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLoadingDirective, decorators: [{
|
|
45
45
|
type: Directive,
|
|
46
46
|
args: [{ selector: "[niceLoadingOverlay]" }]
|
|
47
47
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -53,4 +53,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
53
53
|
type: Input,
|
|
54
54
|
args: ["niceLoadingOverlay"]
|
|
55
55
|
}] } });
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uaWNlLXVpLWtpdC12Mi9zcmMvbGliL2NvbXBvbmVudHMvbG9hZGluZy1zcGlubmVyL2xvYWRpbmcuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsUUFBUSxFQUFRLE1BQU0sZUFBZSxDQUFDO0FBRXJGLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0saURBQWlELENBQUM7QUFDakYsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDMUUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7OztBQU8xRCxNQUFNLE9BQU8sb0JBQW9CO0lBSTdCLElBQ1csT0FBTyxDQUFDLE9BQXVCO1FBQ3RDLFVBQVUsQ0FBQyxHQUFHLEVBQUU7WUFDWixJQUFJLE9BQU8sS0FBSyxJQUFJLENBQUMsUUFBUSxFQUFFO2dCQUMzQixPQUFPO2FBQ1Y7WUFDRCxJ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F5UmVmO1xuICAgIHByaXZhdGUgX2xvYWRpbmcgPSBmYWxzZTtcblxuICAgIEBJbnB1dChcIm5pY2VMb2FkaW5nT3ZlcmxheVwiKVxuICAgIHB1YmxpYyBzZXQgbG9hZGluZyhsb2FkaW5nOiBib29sZWFuIHwgbnVsbCkge1xuICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgIGlmIChsb2FkaW5nID09PSB0aGlzLl9sb2FkaW5nKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdGhpcy5fbG9hZGluZyA9IGxvYWRpbmc7XG4gICAgICAgICAgICBpZiAoIXRoaXMub3ZlcmxheVJlZikge1xuICAgICAgICAgICAgICAgIHRoaXMub3ZlcmxheS5zZXRDb250YWluZXJFbGVtZW50KHRoaXMuZWxSZWYubmF0aXZlRWxlbWVudCk7XG4gICAgICAgICAgICAgICAgdGhpcy5vdmVybGF5UmVmID0gdGhpcy5vdmVybGF5LmNyZWF0ZSh7XG4gICAgICAgICAgICAgICAgICAgIHBvc2l0aW9uU3RyYXRlZ3k6IHRoaXMub3ZlcmxheVxuICAgICAgICAgICAgICAgICAgICAgICAgLnBvc2l0aW9uKClcbiAgICAgICAgICAgICAgICAgICAgICAgIC5nbG9iYWwoKVxuICAgICAgICAgICAgICAgICAgICAgICAgLmNlbnRlckhvcml6b250YWxseSgpXG4gICAgICAgICAgICAgICAgICAgICAgICAuY2VudGVyVmVydGljYWxseSgpLFxuICAgICAgICAgICAgICAgICAgICBoYXNCYWNrZHJvcDogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgcGFuZWxDbGFzczogXCJuaWNlLWxvYWRpbmctb3ZlcmxheVwiXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAodGhpcy5fbG9hZGluZykge1xuICAgICAgICAgICAgICAgIHRoaXMub3ZlcmxheVJlZi5hdHRhY2gobmV3IENvbXBvbmVudFBvcnRhbCh0aGlzLm9wdGlvbnM/LmN1c3RvbUxvYWRpbmcgPz8gTmljZUxvYWRpbmdTcGlubmVyQ29tcG9uZW50KSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMub3ZlcmxheVJlZi5kZXRhY2goKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSwgMCk7XG4gICAgfVxuXG4gICAgY29uc3RydWN0b3IoXG4gICAgICAgIEBPcHRpb25hbCgpIEBJbmplY3QoTklDRV9MT0FESU5HX09QVElPTlMpIHByaXZhdGUgb3B0aW9uczogTmljZUxvYWRpbmdPcHRpb25zLFxuICAgICAgICBwcml2YXRlIGVsUmVmOiBFbGVtZW50UmVmLFxuICAgICAgICBwcml2YXRlIG92ZXJsYXk6IER5bmFtaWNPdmVybGF5XG4gICAgKSB7fVxufVxuIl19
|
|
@@ -29,9 +29,9 @@ export class NiceLottieComponent {
|
|
|
29
29
|
this.animCreated.emit(anim);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
NiceLottieComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
NiceLottieComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
32
|
+
NiceLottieComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLottieComponent, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
NiceLottieComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NiceLottieComponent, selector: "nice-lottie", inputs: { options: "options", width: "width", height: "height" }, outputs: { animCreated: "animCreated" }, viewQueries: [{ propertyName: "animationContainer", first: true, predicate: ["animationContainer"], descendants: true }], ngImport: i0, template: "<div #animationContainer\n [ngStyle]=\"{'width': viewWidth, 'height': viewHeight, 'overflow':'hidden', 'margin': '0 auto'}\">\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLottieComponent, decorators: [{
|
|
35
35
|
type: Component,
|
|
36
36
|
args: [{ selector: "nice-lottie", template: "<div #animationContainer\n [ngStyle]=\"{'width': viewWidth, 'height': viewHeight, 'overflow':'hidden', 'margin': '0 auto'}\">\n</div>\n" }]
|
|
37
37
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -4,10 +4,10 @@ import { CommonModule } from "@angular/common";
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export class NiceLottieModule {
|
|
6
6
|
}
|
|
7
|
-
NiceLottieModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8
|
-
NiceLottieModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
9
|
-
NiceLottieModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7
|
+
NiceLottieModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLottieModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
NiceLottieModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NiceLottieModule, declarations: [NiceLottieComponent], imports: [CommonModule], exports: [NiceLottieComponent] });
|
|
9
|
+
NiceLottieModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLottieModule, imports: [CommonModule] });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceLottieModule, decorators: [{
|
|
11
11
|
type: NgModule,
|
|
12
12
|
args: [{
|
|
13
13
|
imports: [CommonModule],
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Directive, HostListener } from "@angular/core";
|
|
2
|
+
import { Subject } from "rxjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
// tslint:disable-next-line:class-name directive-class-suffix
|
|
5
|
+
export class _HintComponentBase {
|
|
6
|
+
constructor(_changeDetectorRef) {
|
|
7
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
8
|
+
/** Whether interactions on the page should close the tooltip */
|
|
9
|
+
this._closeOnInteraction = false;
|
|
10
|
+
/** Whether the tooltip is currently visible. */
|
|
11
|
+
this._isVisible = false;
|
|
12
|
+
/** Subject for notifying that the tooltip has been hidden from the view */
|
|
13
|
+
this._onHide = new Subject();
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Shows the tooltip with an animation originating from the provided origin
|
|
17
|
+
* @param delay Amount of milliseconds to the delay showing the tooltip.
|
|
18
|
+
*/
|
|
19
|
+
show(delay) {
|
|
20
|
+
// Cancel the delayed hide if it is scheduled
|
|
21
|
+
clearTimeout(this._hideTimeoutId);
|
|
22
|
+
this._showTimeoutId = setTimeout(() => {
|
|
23
|
+
this._toggleVisibility(true);
|
|
24
|
+
this._showTimeoutId = undefined;
|
|
25
|
+
}, delay);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Begins the animation to hide the tooltip after the provided delay in ms.
|
|
29
|
+
* @param delay Amount of milliseconds to delay showing the tooltip.
|
|
30
|
+
*/
|
|
31
|
+
hide(delay) {
|
|
32
|
+
// Cancel the delayed show if it is scheduled
|
|
33
|
+
clearTimeout(this._showTimeoutId);
|
|
34
|
+
this._hideTimeoutId = setTimeout(() => {
|
|
35
|
+
this._toggleVisibility(false);
|
|
36
|
+
this._hideTimeoutId = undefined;
|
|
37
|
+
}, delay);
|
|
38
|
+
}
|
|
39
|
+
/** Returns an observable that notifies when the tooltip has been hidden from view. */
|
|
40
|
+
afterHidden() {
|
|
41
|
+
return this._onHide;
|
|
42
|
+
}
|
|
43
|
+
/** Whether the tooltip is being displayed. */
|
|
44
|
+
isVisible() {
|
|
45
|
+
return this._isVisible;
|
|
46
|
+
}
|
|
47
|
+
ngOnDestroy() {
|
|
48
|
+
this._cancelPendingAnimations();
|
|
49
|
+
this._onHide.complete();
|
|
50
|
+
this._triggerElement = null;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Interactions on the HTML body should close the tooltip immediately as defined in the
|
|
54
|
+
* material design spec.
|
|
55
|
+
* https://material.io/design/components/tooltips.html#behavior
|
|
56
|
+
*/
|
|
57
|
+
_handleBodyInteraction() {
|
|
58
|
+
if (this._closeOnInteraction) {
|
|
59
|
+
this.hide(0);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Marks that the tooltip needs to be checked in the next change detection run.
|
|
64
|
+
* Mainly used for rendering the initial text before positioning a tooltip, which
|
|
65
|
+
* can be problematic in components with OnPush change detection.
|
|
66
|
+
*/
|
|
67
|
+
_markForCheck() {
|
|
68
|
+
this._changeDetectorRef.markForCheck();
|
|
69
|
+
}
|
|
70
|
+
_handleMouseLeave({ relatedTarget }) {
|
|
71
|
+
if (!relatedTarget || !this._triggerElement.contains(relatedTarget)) {
|
|
72
|
+
if (this.isVisible()) {
|
|
73
|
+
this.hide(this._mouseLeaveHideDelay);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this._finalizeAnimation(false);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Callback for when the timeout in this.show() gets completed.
|
|
82
|
+
* This method is only needed by the mdc-tooltip, and so it is only implemented
|
|
83
|
+
* in the mdc-tooltip, not here.
|
|
84
|
+
*/
|
|
85
|
+
_onShow() { }
|
|
86
|
+
/** Cancels any pending animation sequences. */
|
|
87
|
+
_cancelPendingAnimations() {
|
|
88
|
+
clearTimeout(this._showTimeoutId);
|
|
89
|
+
clearTimeout(this._hideTimeoutId);
|
|
90
|
+
this._showTimeoutId = this._hideTimeoutId = undefined;
|
|
91
|
+
}
|
|
92
|
+
/** Handles the cleanup after an animation has finished. */
|
|
93
|
+
_finalizeAnimation(toVisible) {
|
|
94
|
+
if (toVisible) {
|
|
95
|
+
this._closeOnInteraction = true;
|
|
96
|
+
}
|
|
97
|
+
else if (!this.isVisible()) {
|
|
98
|
+
this._onHide.next();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/** Toggles the visibility of the tooltip element. */
|
|
102
|
+
_toggleVisibility(isVisible) {
|
|
103
|
+
// We set the classes directly here ourselves so that toggling the tooltip state
|
|
104
|
+
// isn't bound by change detection. This allows us to hide it even if the
|
|
105
|
+
// view ref has been detached from the CD tree.
|
|
106
|
+
this._isVisible = isVisible;
|
|
107
|
+
if (isVisible) {
|
|
108
|
+
this._onShow();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
_HintComponentBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: _HintComponentBase, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
113
|
+
_HintComponentBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: _HintComponentBase, host: { listeners: { "mouseleave": "_handleMouseLeave($event)" } }, ngImport: i0 });
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: _HintComponentBase, decorators: [{
|
|
115
|
+
type: Directive
|
|
116
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { _handleMouseLeave: [{
|
|
117
|
+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dGx5IGhlcmUgb3Vyc2VsdmVzIHNvIHRoYXQgdG9nZ2xpbmcgdGhlIHRvb2x0aXAgc3RhdGVcbiAgICAgICAgLy8gaXNuJ3QgYm91bmQgYnkgY2hhbmdlIGRldGVjdGlvbi4gVGhpcyBhbGxvd3MgdXMgdG8gaGlkZSBpdCBldmVuIGlmIHRoZVxuICAgICAgICAvLyB2aWV3IHJlZiBoYXMgYmVlbiBkZXRhY2hlZCBmcm9tIHRoZSBDRCB0cmVlLlxuICAgICAgICB0aGlzLl9pc1Zpc2libGUgPSBpc1Zpc2libGU7XG5cbiAgICAgICAgaWYgKGlzVmlzaWJsZSkge1xuICAgICAgICAgICAgdGhpcy5fb25TaG93KCk7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { FocusMonitor } from "@angular/cdk/a11y";
|
|
2
|
+
import { Overlay } from "@angular/cdk/overlay";
|
|
3
|
+
import { Platform } from "@angular/cdk/platform";
|
|
4
|
+
import { ComponentPortal } from "@angular/cdk/portal";
|
|
5
|
+
import { Directive, ElementRef, Input, NgZone, ViewContainerRef } from "@angular/core";
|
|
6
|
+
import { Subject } from "rxjs";
|
|
7
|
+
import { takeUntil } from "rxjs/operators";
|
|
8
|
+
import { NiceNavigationHintService } from "../providers/hint.service";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@angular/cdk/overlay";
|
|
11
|
+
import * as i2 from "@angular/cdk/platform";
|
|
12
|
+
import * as i3 from "@angular/cdk/a11y";
|
|
13
|
+
import * as i4 from "../providers/hint.service";
|
|
14
|
+
export class NiceShowHintDirective {
|
|
15
|
+
constructor(_overlay, _elementRef, _viewContainerRef, _ngZone, _platform, _focusMonitor, _hintService) {
|
|
16
|
+
this._overlay = _overlay;
|
|
17
|
+
this._elementRef = _elementRef;
|
|
18
|
+
this._viewContainerRef = _viewContainerRef;
|
|
19
|
+
this._ngZone = _ngZone;
|
|
20
|
+
this._platform = _platform;
|
|
21
|
+
this._focusMonitor = _focusMonitor;
|
|
22
|
+
this._hintService = _hintService;
|
|
23
|
+
this.shouldShow = false;
|
|
24
|
+
this._pointerExitEventsInitialized = false;
|
|
25
|
+
this._passiveListeners = [];
|
|
26
|
+
this.unsubscribeAll$ = new Subject();
|
|
27
|
+
}
|
|
28
|
+
ngAfterViewInit() {
|
|
29
|
+
this._setupPointerEnterEventsIfNeeded();
|
|
30
|
+
this._focusMonitor
|
|
31
|
+
.monitor(this._elementRef)
|
|
32
|
+
.pipe(takeUntil(this.unsubscribeAll$))
|
|
33
|
+
.subscribe(origin => {
|
|
34
|
+
// Note that the focus monitor runs outside the Angular zone.
|
|
35
|
+
if (!origin) {
|
|
36
|
+
this._ngZone.run(() => this.hide());
|
|
37
|
+
}
|
|
38
|
+
else if (origin === "keyboard") {
|
|
39
|
+
this._ngZone.run(() => this.show());
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
ngOnDestroy() {
|
|
44
|
+
this.unsubscribeAll$.next();
|
|
45
|
+
this.unsubscribeAll$.complete();
|
|
46
|
+
}
|
|
47
|
+
show() {
|
|
48
|
+
if (!this.shouldShow || !this.item.hint || this._isHintVisible()) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const overlayRef = this._createOverlay();
|
|
52
|
+
this._portal = this._portal || new ComponentPortal(this.item.hint.component);
|
|
53
|
+
this._detach();
|
|
54
|
+
this._hintInstance = overlayRef.attach(this._portal).instance;
|
|
55
|
+
this._hintInstance._triggerElement = this._elementRef.nativeElement;
|
|
56
|
+
this._hintInstance
|
|
57
|
+
.afterHidden()
|
|
58
|
+
.pipe(takeUntil(this.unsubscribeAll$))
|
|
59
|
+
.subscribe(() => this._detach());
|
|
60
|
+
this._hintService.setActiveHint(true);
|
|
61
|
+
}
|
|
62
|
+
hide() {
|
|
63
|
+
const instance = this._hintInstance;
|
|
64
|
+
if (instance) {
|
|
65
|
+
if (instance.isVisible()) {
|
|
66
|
+
instance.hide(0);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
instance._cancelPendingAnimations();
|
|
70
|
+
this._detach();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
_createOverlay() {
|
|
75
|
+
if (this._overlayRef) {
|
|
76
|
+
const existingStrategy = this._overlayRef.getConfig()
|
|
77
|
+
.positionStrategy;
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
if (!origin && existingStrategy._origin instanceof ElementRef) {
|
|
80
|
+
return this._overlayRef;
|
|
81
|
+
}
|
|
82
|
+
this._detach();
|
|
83
|
+
}
|
|
84
|
+
// Create connected position strategy that listens for scroll events to reposition.
|
|
85
|
+
const strategy = this._overlay
|
|
86
|
+
.position()
|
|
87
|
+
.flexibleConnectedTo(this._elementRef)
|
|
88
|
+
.withPositions([
|
|
89
|
+
{
|
|
90
|
+
originX: "center",
|
|
91
|
+
originY: "bottom",
|
|
92
|
+
overlayX: "start",
|
|
93
|
+
overlayY: "top",
|
|
94
|
+
offsetY: 8
|
|
95
|
+
}
|
|
96
|
+
])
|
|
97
|
+
.withFlexibleDimensions(false);
|
|
98
|
+
strategy.positionChanges.pipe(takeUntil(this.unsubscribeAll$)).subscribe(change => {
|
|
99
|
+
if (this._hintInstance) {
|
|
100
|
+
if (change.scrollableViewProperties.isOverlayClipped) {
|
|
101
|
+
// After position changes occur and the overlay is clipped by
|
|
102
|
+
// a parent scrollable then close the tooltip.
|
|
103
|
+
this._ngZone.run(() => this.hide());
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
this._overlayRef = this._overlay.create({
|
|
108
|
+
positionStrategy: strategy
|
|
109
|
+
});
|
|
110
|
+
this._overlayRef
|
|
111
|
+
.detachments()
|
|
112
|
+
.pipe(takeUntil(this.unsubscribeAll$))
|
|
113
|
+
.subscribe(() => this._detach());
|
|
114
|
+
this._overlayRef
|
|
115
|
+
.outsidePointerEvents()
|
|
116
|
+
.pipe(takeUntil(this.unsubscribeAll$))
|
|
117
|
+
.subscribe(() => this._hintInstance?._handleBodyInteraction());
|
|
118
|
+
return this._overlayRef;
|
|
119
|
+
}
|
|
120
|
+
_detach() {
|
|
121
|
+
if (this._overlayRef && this._overlayRef.hasAttached()) {
|
|
122
|
+
this._overlayRef.detach();
|
|
123
|
+
}
|
|
124
|
+
this._hintInstance = null;
|
|
125
|
+
this._hintService.setActiveHint(false);
|
|
126
|
+
}
|
|
127
|
+
_isHintVisible() {
|
|
128
|
+
return !!this._hintInstance;
|
|
129
|
+
}
|
|
130
|
+
_setupPointerEnterEventsIfNeeded() {
|
|
131
|
+
// Optimization: Defer hooking up events if there's no message or the tooltip is disabled.
|
|
132
|
+
if (this._passiveListeners.length) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
// The mouse events shouldn't be bound on mobile devices, because they can prevent the
|
|
136
|
+
// first tap from firing its click event or can cause the tooltip to open for clicks.
|
|
137
|
+
if (this._platformSupportsMouseEvents()) {
|
|
138
|
+
this._passiveListeners.push([
|
|
139
|
+
"mouseenter",
|
|
140
|
+
() => {
|
|
141
|
+
this._setupPointerExitEventsIfNeeded();
|
|
142
|
+
this.show();
|
|
143
|
+
},
|
|
144
|
+
]);
|
|
145
|
+
}
|
|
146
|
+
this._addListeners(this._passiveListeners);
|
|
147
|
+
}
|
|
148
|
+
_setupPointerExitEventsIfNeeded() {
|
|
149
|
+
if (this._pointerExitEventsInitialized) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
this._pointerExitEventsInitialized = true;
|
|
153
|
+
const exitListeners = [];
|
|
154
|
+
if (this._platformSupportsMouseEvents()) {
|
|
155
|
+
exitListeners.push([
|
|
156
|
+
"mouseleave",
|
|
157
|
+
event => {
|
|
158
|
+
const newTarget = event.relatedTarget;
|
|
159
|
+
if (!newTarget || !this._overlayRef?.overlayElement.contains(newTarget)) {
|
|
160
|
+
this.hide();
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
]);
|
|
164
|
+
}
|
|
165
|
+
this._addListeners(exitListeners);
|
|
166
|
+
this._passiveListeners.push(...exitListeners);
|
|
167
|
+
}
|
|
168
|
+
_platformSupportsMouseEvents() {
|
|
169
|
+
return !this._platform.IOS && !this._platform.ANDROID;
|
|
170
|
+
}
|
|
171
|
+
_addListeners(listeners) {
|
|
172
|
+
listeners.forEach(([event, listener]) => {
|
|
173
|
+
this._elementRef.nativeElement.addEventListener(event, listener);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
NiceShowHintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceShowHintDirective, deps: [{ token: i1.Overlay }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.NgZone }, { token: i2.Platform }, { token: i3.FocusMonitor }, { token: i4.NiceNavigationHintService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
178
|
+
NiceShowHintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: NiceShowHintDirective, selector: "[niceShowHint]", inputs: { shouldShow: "shouldShow", item: "item" }, ngImport: i0 });
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceShowHintDirective, decorators: [{
|
|
180
|
+
type: Directive,
|
|
181
|
+
args: [{ selector: "[niceShowHint]" }]
|
|
182
|
+
}], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i2.Platform }, { type: i3.FocusMonitor }, { type: i4.NiceNavigationHintService }]; }, propDecorators: { shouldShow: [{
|
|
183
|
+
type: Input
|
|
184
|
+
}], item: [{
|
|
185
|
+
type: Input
|
|
186
|
+
}] } });
|
|
187
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvdy1oaW50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lZWRlZCgpO1xuXG4gICAgICAgIHRoaXMuX2ZvY3VzTW9uaXRvclxuICAgICAgICAgICAgLm1vbml0b3IodGhpcy5fZWxlbWVudFJlZilcbiAgICAgICAgICAgIC5waXBlKHRha2VVbnRpbCh0aGlzLnVuc3Vic2NyaWJlQWxsJCkpXG4gICAgICAgICAgICAuc3Vic2NyaWJlKG9yaWdpbiA9PiB7XG4gICAgICAgICAgICAgICAgLy8gTm90ZSB0aGF0IHRoZSBmb2N1cyBtb25pdG9yIHJ1bnMgb3V0c2lkZSB0aGUgQW5ndWxhciB6b25lLlxuICAgICAgICAgICAgICAgIGlmICghb3JpZ2luKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX25nWm9uZS5ydW4oKCkgPT4gdGhpcy5oaWRlKCkpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAob3JpZ2luID09PSBcImtleWJvYXJkXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fbmdab25lLnJ1bigoKSA9PiB0aGlzLnNob3coKSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHVibGljIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgICAgICB0aGlzLnVuc3Vic2NyaWJlQWxsJC5uZXh0KCk7XG4gICAgICAgIHRoaXMudW5zdWJzY3JpYmVBbGwkLmNvbXBsZXRlKCk7XG4gICAgfVxuXG4gICAgcHVibGljIHNob3coKTogdm9pZCB7XG4gICAgICAgIGlmICghdGhpcy5zaG91bGRTaG93IHx8ICF0aGlzLml0ZW0uaGludCB8fCB0aGlzLl9pc0hpbnRWaXNpYmxlKCkpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IG92ZXJsYXlSZWYgPSB0aGlzLl9jcmVhdGVPdmVybGF5KCk7XG4gICAgICAgIHRoaXMuX3BvcnRhbCA9IHRoaXMuX3BvcnRhbCB8fCBuZXcg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ICAgICAgICAgY29uc3QgZXhpc3RpbmdTdHJhdGVneSA9IHRoaXMuX292ZXJsYXlSZWYuZ2V0Q29uZmlnKClcbiAgICAgICAgICAgICAgICAucG9zaXRpb25TdHJhdGVneSBhcyBGbGV4aWJsZUNvbm5lY3RlZFBvc2l0aW9uU3RyYXRlZ3k7XG5cbiAgICAgICAgICAgIC8vIEB0cy1pZ25vcmVcbiAgICAgICAgICAgIGlmICghb3JpZ2luICYmIGV4aXN0aW5nU3RyYXRlZ3kuX29yaWdpbiBpbnN0YW5jZW9mIEVsZW1lbnRSZWYpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5fb3ZlcmxheVJlZjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy5fZGV0YWNoKCk7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBDcmVhdGUgY29ubmVjdGVkIHBvc2l0aW9uIHN0cmF0ZWd5IHRoYXQgbGlzdGVucyBmb3Igc2Nyb2xsIGV2ZW50cyB0byByZXBvc2l0aW9uLlxuICAgICAgICBjb25zdCBzdHJhdGVneSA9IHRoaXMuX292ZXJsYXlcbiAgICAgICAgICAgIC5wb3NpdGlvbigpXG4gICAgICAgICAgICAuZmxleGlibGVDb25uZWN0ZWRUbyh0aGlzLl9lbGVtZW50UmVmKVxuICAgICAgICAgICAgLndpdGhQb3NpdGlvbnMoW1xuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgb3JpZ2luWDogXCJjZW50ZXJcIixcbiAgICAgICAgICAgICAgICAgICAgb3JpZ2luWTogXCJib3R0b21cIixcbiAgICAgICAgICAgICAgICAgICAgb3ZlcmxheVg6IFwic3RhcnRcIixcbiAgICAgICAgICAgICAgICAgICAgb3ZlcmxheVk6IFwidG9wXCIsXG4gICAgICAgICAgICAgICAgICAgIG9mZnNldFk6IDhcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICBdKVxuICAgICAgICAgICAgLndpdGhGbGV4aWJsZ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AgZnJvbSBmaXJpbmcgaXRzIGNsaWNrIGV2ZW50IG9yIGNhbiBjYXVzZSB0aGUgdG9vbHRpcCB0byBvcGVuIGZvciBjbGlja3MuXG4gICAgICAgIGlmICh0aGlzLl9wbGF0Zm9ybVN1cHBvcnRzTW91c2VFdmVudHMoKSkge1xuICAgICAgICAgICAgdGhpcy5fcGFzc2l2ZUxpc3RlbmVycy5wdXNoKFtcbiAgICAgICAgICAgICAgICBcIm1vdXNlZW50ZXJcIixcbiAgICAgICAgICAgICAgICAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX3NldHVwUG9pbnRlckV4aXRFdmVudHNJZk5lZWRlZCgpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3coKTtcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgXSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLl9hZGRMaXN0ZW5lcnModGhpcy5fcGFzc2l2ZUxpc3RlbmVycyk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBfc2V0dXBQb2ludGVyRXhpdEV2ZW50c0lmTmVlZGVkKCkge1xuICAgICAgICBpZiAodGhpcy5fcG9pbnRlckV4aXRFdmVudHNJbml0aWFsaXplZCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuX3BvaW50ZXJFeGl0RXZlbnRzSW5pdGlhbGl6ZWQgPSB0cnVlO1xuXG4gICAgICAgIGNvbnN0IGV4aXRMaXN0ZW5lcnM6IChyZWFkb25seSBbc3RyaW5nLCBFdmVudExpc3RlbmVyT3JFdmVudExpc3RlbmVyT2JqZWN0XSlbXSA9IFtdO1xuICAgICAgICBpZiAodGhpcy5fcGxhdGZvcm1TdXBwb3J0c01vdXNlRXZlbnRzKCkpIHtcbiAgICAgICAgICAgIGV4aXRMaXN0ZW5lcnMucHVzaChcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgIFwibW91c2VsZ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fSk7XG4gICAgfVxufVxuIl19
|
|
@@ -42,9 +42,9 @@ export class NiceHorizontalNavigationBasicItemComponent {
|
|
|
42
42
|
this._unsubscribeAll.complete();
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
NiceHorizontalNavigationBasicItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
46
|
-
NiceHorizontalNavigationBasicItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
45
|
+
NiceHorizontalNavigationBasicItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceHorizontalNavigationBasicItemComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.NiceNavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
NiceHorizontalNavigationBasicItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NiceHorizontalNavigationBasicItemComponent, selector: "nice-horizontal-navigation-basic-item", inputs: { item: "item", name: "name" }, ngImport: i0, template: "<!-- Item wrapper -->\n<div\n class=\"nice-horizontal-navigation-item-wrapper\"\n [class.nice-horizontal-navigation-item-has-subtitle]=\"!!item.subtitle\"\n [ngClass]=\"item.classes?.wrapper\"\n>\n <!-- Item with an internal link -->\n <div\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"item.link && !item.externalLink && !item.function && !item.disabled\"\n [ngClass]=\"{ 'nice-horizontal-navigation-item-active-forced': item.active }\"\n [routerLink]=\"[item.link]\"\n [routerLinkActive]=\"'nice-horizontal-navigation-item-active'\"\n [routerLinkActiveOptions]=\"{ exact: item.exactMatch || false }\"\n [queryParams]=\"item?.queryParams\"\n [state]=\"item?.state\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </div>\n\n <!-- Item with an external link -->\n <a\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"item.link && item.externalLink && !item.function && !item.disabled\"\n [href]=\"item.link\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </a>\n\n <!-- Item with a function -->\n <div\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"!item.link && item.function && !item.disabled\"\n [ngClass]=\"{ 'nice-horizontal-navigation-item-active-forced': item.active }\"\n (click)=\"item.function(item)\">\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </div>\n\n <!-- Item with an internal link and function -->\n <div\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"item.link && !item.externalLink && item.function && !item.disabled\"\n [ngClass]=\"{ 'nice-horizontal-navigation-item-active-forced': item.active }\"\n [routerLink]=\"[item.link]\"\n [routerLinkActive]=\"'nice-horizontal-navigation-item-active'\"\n [routerLinkActiveOptions]=\"{ exact: item.exactMatch || false }\"\n [queryParams]=\"item?.queryParams\"\n [state]=\"item?.state\"\n (click)=\"item.function(item)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </div>\n\n <!-- Item with an external link and function -->\n <a\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"item.link && item.externalLink && item.function && !item.disabled\"\n [href]=\"item.link\"\n (click)=\"item.function(item)\"\n mat-menu-item\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </a>\n\n <!-- Item with a no link and no function -->\n <div\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"!item.link && !item.function && !item.disabled\"\n [ngClass]=\"{'nice-horizontal-navigation-item-active-forced': item.active}\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </div>\n\n <!-- Item is disabled -->\n <div\n class=\"nice-horizontal-navigation-item nice-horizontal-navigation-item-disabled\"\n *ngIf=\"item.disabled\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </div>\n</div>\n\n<!-- Item template -->\n<ng-template #itemTemplate>\n <!-- Icon -->\n <mat-icon\n class=\"nice-vertical-navigation-item-icon\"\n [ngClass]=\"item.classes?.icon\"\n *ngIf=\"item.icon && item.iconType === 'material'\"\n >\n {{ item.icon }}\n </mat-icon>\n\n <span class=\"nice-vertical-navigation-item-icon\" [ngClass]=\"item.icon\" *ngIf=\"item.icon && item.iconType == 'fontawesome'\"></span>\n\n <mat-icon\n class=\"nice-vertical-navigation-item-icon\"\n [ngClass]=\"item.classes?.icon\"\n [svgIcon]=\"item.icon\"\n *ngIf=\"item.icon && item.iconType === 'svg'\"\n ></mat-icon>\n\n <!-- Title & Subtitle -->\n <div class=\"nice-horizontal-navigation-item-title-wrapper\">\n <div class=\"nice-horizontal-navigation-item-title\">\n <span [ngClass]=\"item.classes?.title\">\n {{ item.title | translate }}\n </span>\n </div>\n <div\n class=\"nice-horizontal-navigation-item-subtitle text-hint\"\n *ngIf=\"item.subtitle\"\n >\n <span [ngClass]=\"item.classes?.subtitle\">\n {{ item.subtitle | translate }}\n </span>\n </div>\n </div>\n\n <!-- Badge -->\n <div\n class=\"nice-horizontal-navigation-item-badge\"\n *ngIf=\"item.badge\"\n >\n <div\n class=\"nice-horizontal-navigation-item-badge-content\"\n [ngClass]=\"item.badge.classes\">\n {{ item.badge.title | translate }}\n </div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NiceHorizontalNavigationBasicItemComponent, decorators: [{
|
|
48
48
|
type: Component,
|
|
49
49
|
args: [{ selector: "nice-horizontal-navigation-basic-item", changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- Item wrapper -->\n<div\n class=\"nice-horizontal-navigation-item-wrapper\"\n [class.nice-horizontal-navigation-item-has-subtitle]=\"!!item.subtitle\"\n [ngClass]=\"item.classes?.wrapper\"\n>\n <!-- Item with an internal link -->\n <div\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"item.link && !item.externalLink && !item.function && !item.disabled\"\n [ngClass]=\"{ 'nice-horizontal-navigation-item-active-forced': item.active }\"\n [routerLink]=\"[item.link]\"\n [routerLinkActive]=\"'nice-horizontal-navigation-item-active'\"\n [routerLinkActiveOptions]=\"{ exact: item.exactMatch || false }\"\n [queryParams]=\"item?.queryParams\"\n [state]=\"item?.state\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </div>\n\n <!-- Item with an external link -->\n <a\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"item.link && item.externalLink && !item.function && !item.disabled\"\n [href]=\"item.link\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </a>\n\n <!-- Item with a function -->\n <div\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"!item.link && item.function && !item.disabled\"\n [ngClass]=\"{ 'nice-horizontal-navigation-item-active-forced': item.active }\"\n (click)=\"item.function(item)\">\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </div>\n\n <!-- Item with an internal link and function -->\n <div\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"item.link && !item.externalLink && item.function && !item.disabled\"\n [ngClass]=\"{ 'nice-horizontal-navigation-item-active-forced': item.active }\"\n [routerLink]=\"[item.link]\"\n [routerLinkActive]=\"'nice-horizontal-navigation-item-active'\"\n [routerLinkActiveOptions]=\"{ exact: item.exactMatch || false }\"\n [queryParams]=\"item?.queryParams\"\n [state]=\"item?.state\"\n (click)=\"item.function(item)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </div>\n\n <!-- Item with an external link and function -->\n <a\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"item.link && item.externalLink && item.function && !item.disabled\"\n [href]=\"item.link\"\n (click)=\"item.function(item)\"\n mat-menu-item\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </a>\n\n <!-- Item with a no link and no function -->\n <div\n class=\"nice-horizontal-navigation-item\"\n *ngIf=\"!item.link && !item.function && !item.disabled\"\n [ngClass]=\"{'nice-horizontal-navigation-item-active-forced': item.active}\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </div>\n\n <!-- Item is disabled -->\n <div\n class=\"nice-horizontal-navigation-item nice-horizontal-navigation-item-disabled\"\n *ngIf=\"item.disabled\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate\"></ng-container>\n </div>\n</div>\n\n<!-- Item template -->\n<ng-template #itemTemplate>\n <!-- Icon -->\n <mat-icon\n class=\"nice-vertical-navigation-item-icon\"\n [ngClass]=\"item.classes?.icon\"\n *ngIf=\"item.icon && item.iconType === 'material'\"\n >\n {{ item.icon }}\n </mat-icon>\n\n <span class=\"nice-vertical-navigation-item-icon\" [ngClass]=\"item.icon\" *ngIf=\"item.icon && item.iconType == 'fontawesome'\"></span>\n\n <mat-icon\n class=\"nice-vertical-navigation-item-icon\"\n [ngClass]=\"item.classes?.icon\"\n [svgIcon]=\"item.icon\"\n *ngIf=\"item.icon && item.iconType === 'svg'\"\n ></mat-icon>\n\n <!-- Title & Subtitle -->\n <div class=\"nice-horizontal-navigation-item-title-wrapper\">\n <div class=\"nice-horizontal-navigation-item-title\">\n <span [ngClass]=\"item.classes?.title\">\n {{ item.title | translate }}\n </span>\n </div>\n <div\n class=\"nice-horizontal-navigation-item-subtitle text-hint\"\n *ngIf=\"item.subtitle\"\n >\n <span [ngClass]=\"item.classes?.subtitle\">\n {{ item.subtitle | translate }}\n </span>\n </div>\n </div>\n\n <!-- Badge -->\n <div\n class=\"nice-horizontal-navigation-item-badge\"\n *ngIf=\"item.badge\"\n >\n <div\n class=\"nice-horizontal-navigation-item-badge-content\"\n [ngClass]=\"item.badge.classes\">\n {{ item.badge.title | translate }}\n </div>\n </div>\n</ng-template>\n" }]
|
|
50
50
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.NiceNavigationService }]; }, propDecorators: { item: [{
|