From 76885e2bb05f8078e6486f07b9f93d1728fb7f7e Mon Sep 17 00:00:00 2001 From: Lakhan Mandloi Date: Mon, 12 Aug 2019 12:03:26 +0530 Subject: [PATCH] Issue #SB-13915 task: Card Component --- .../accordion/accordion-config.d.ts | 10 - dist/ng-bootstrap/accordion/accordion.d.ts | 187 - .../accordion/accordion.module.d.ts | 4 - dist/ng-bootstrap/alert/alert-config.d.ts | 10 - dist/ng-bootstrap/alert/alert.d.ts | 33 - dist/ng-bootstrap/alert/alert.module.d.ts | 4 - dist/ng-bootstrap/bundles/ng-bootstrap.umd.js | 12846 ---------------- .../bundles/ng-bootstrap.umd.js.map | 1 - .../bundles/ng-bootstrap.umd.min.js | 2 - .../bundles/ng-bootstrap.umd.min.js.map | 1 - dist/ng-bootstrap/buttons/buttons.module.d.ts | 5 - dist/ng-bootstrap/buttons/checkbox.d.ts | 35 - dist/ng-bootstrap/buttons/label.d.ts | 5 - dist/ng-bootstrap/buttons/radio.d.ts | 73 - dist/ng-bootstrap/card/card-config.d.ts | 10 - dist/ng-bootstrap/card/card.d.ts | 33 - dist/ng-bootstrap/card/card.module.d.ts | 4 - .../carousel/carousel-config.d.ts | 14 - dist/ng-bootstrap/carousel/carousel.d.ts | 154 - .../carousel/carousel.module.d.ts | 4 - dist/ng-bootstrap/collapse/collapse.d.ts | 9 - .../collapse/collapse.module.d.ts | 3 - .../datepicker/adapters/ngb-date-adapter.d.ts | 34 - .../adapters/ngb-date-native-adapter.d.ts | 18 - .../adapters/ngb-date-native-utc-adapter.d.ts | 11 - .../datepicker/datepicker-config.d.ts | 33 - .../datepicker-day-template-context.d.ts | 48 - .../datepicker/datepicker-day-view.d.ts | 12 - .../datepicker/datepicker-i18n.d.ts | 70 - .../datepicker/datepicker-input.d.ts | 242 - .../datepicker/datepicker-keymap-service.d.ts | 12 - .../datepicker/datepicker-month-view.d.ts | 15 - .../datepicker-navigation-select.d.ts | 14 - .../datepicker/datepicker-navigation.d.ts | 21 - .../datepicker/datepicker-service.d.ts | 37 - .../datepicker/datepicker-tools.d.ts | 17 - .../datepicker/datepicker-view-model.d.ts | 58 - dist/ng-bootstrap/datepicker/datepicker.d.ts | 195 - .../datepicker/datepicker.module.d.ts | 22 - .../hebrew/datepicker-i18n-hebrew.d.ts | 14 - .../datepicker/hebrew/hebrew.d.ts | 23 - .../hebrew/ngb-calendar-hebrew.d.ts | 24 - .../datepicker/hijri/ngb-calendar-hijri.d.ts | 31 - .../hijri/ngb-calendar-islamic-civil.d.ts | 20 - .../hijri/ngb-calendar-islamic-umalqura.d.ts | 19 - .../datepicker/jalali/jalali.d.ts | 15 - .../jalali/ngb-calendar-persian.d.ts | 13 - .../ng-bootstrap/datepicker/ngb-calendar.d.ts | 74 - .../datepicker/ngb-date-parser-formatter.d.ts | 37 - .../datepicker/ngb-date-struct.d.ts | 21 - dist/ng-bootstrap/datepicker/ngb-date.d.ts | 51 - .../dropdown/dropdown-config.d.ts | 12 - dist/ng-bootstrap/dropdown/dropdown.d.ts | 148 - .../dropdown/dropdown.module.d.ts | 4 - .../esm2015/accordion/accordion-config.js | 28 - .../esm2015/accordion/accordion.js | 522 - .../esm2015/accordion/accordion.module.js | 17 - .../esm2015/alert/alert-config.js | 29 - dist/ng-bootstrap/esm2015/alert/alert.js | 109 - .../esm2015/alert/alert.module.js | 15 - .../esm2015/buttons/buttons.module.js | 19 - dist/ng-bootstrap/esm2015/buttons/checkbox.js | 160 - dist/ng-bootstrap/esm2015/buttons/label.js | 22 - dist/ng-bootstrap/esm2015/buttons/radio.js | 333 - dist/ng-bootstrap/esm2015/card/card-config.js | 29 - dist/ng-bootstrap/esm2015/card/card.js | 109 - dist/ng-bootstrap/esm2015/card/card.module.js | 15 - .../esm2015/carousel/carousel-config.js | 41 - .../ng-bootstrap/esm2015/carousel/carousel.js | 507 - .../esm2015/carousel/carousel.module.js | 15 - .../ng-bootstrap/esm2015/collapse/collapse.js | 34 - .../esm2015/collapse/collapse.module.js | 13 - .../datepicker/adapters/ngb-date-adapter.js | 75 - .../adapters/ngb-date-native-adapter.js | 54 - .../adapters/ngb-date-native-utc-adapter.js | 37 - .../esm2015/datepicker/datepicker-config.js | 55 - .../datepicker-day-template-context.js | 62 - .../esm2015/datepicker/datepicker-day-view.js | 62 - .../esm2015/datepicker/datepicker-i18n.js | 171 - .../esm2015/datepicker/datepicker-input.js | 736 - .../datepicker/datepicker-keymap-service.js | 111 - .../datepicker/datepicker-month-view.js | 81 - .../datepicker-navigation-select.js | 81 - .../datepicker/datepicker-navigation.js | 99 - .../esm2015/datepicker/datepicker-service.js | 404 - .../esm2015/datepicker/datepicker-tools.js | 301 - .../datepicker/datepicker-view-model.js | 13 - .../esm2015/datepicker/datepicker.js | 573 - .../esm2015/datepicker/datepicker.module.js | 46 - .../hebrew/datepicker-i18n-hebrew.js | 63 - .../esm2015/datepicker/hebrew/hebrew.js | 406 - .../datepicker/hebrew/ngb-calendar-hebrew.js | 116 - .../datepicker/hijri/ngb-calendar-hijri.js | 182 - .../hijri/ngb-calendar-islamic-civil.js | 177 - .../hijri/ngb-calendar-islamic-umalqura.js | 261 - .../esm2015/datepicker/jalali/jalali.js | 300 - .../datepicker/jalali/ngb-calendar-persian.js | 104 - .../esm2015/datepicker/ngb-calendar.js | 233 - .../datepicker/ngb-date-parser-formatter.js | 92 - .../esm2015/datepicker/ngb-date-struct.js | 31 - .../esm2015/datepicker/ngb-date.js | 115 - .../esm2015/dropdown/dropdown-config.js | 31 - .../ng-bootstrap/esm2015/dropdown/dropdown.js | 670 - .../esm2015/dropdown/dropdown.module.js | 16 - dist/ng-bootstrap/esm2015/index.js | 53 - .../esm2015/modal/modal-backdrop.js | 22 - .../esm2015/modal/modal-config.js | 118 - .../esm2015/modal/modal-dismiss-reasons.js | 13 - dist/ng-bootstrap/esm2015/modal/modal-ref.js | 191 - .../ng-bootstrap/esm2015/modal/modal-stack.js | 427 - .../esm2015/modal/modal-window.js | 152 - dist/ng-bootstrap/esm2015/modal/modal.js | 96 - .../esm2015/modal/modal.module.js | 22 - dist/ng-bootstrap/esm2015/ng-bootstrap.js | 33 - .../esm2015/pagination/pagination-config.js | 46 - .../esm2015/pagination/pagination.js | 551 - .../esm2015/pagination/pagination.module.js | 20 - .../esm2015/popover/popover-config.js | 45 - dist/ng-bootstrap/esm2015/popover/popover.js | 396 - .../esm2015/popover/popover.module.js | 20 - .../esm2015/progressbar/progressbar-config.js | 39 - .../esm2015/progressbar/progressbar.js | 111 - .../esm2015/progressbar/progressbar.module.js | 15 - .../esm2015/rating/rating-config.js | 32 - dist/ng-bootstrap/esm2015/rating/rating.js | 341 - .../esm2015/rating/rating.module.js | 15 - .../esm2015/tabset/tabset-config.js | 32 - dist/ng-bootstrap/esm2015/tabset/tabset.js | 307 - .../esm2015/tabset/tabset.module.js | 17 - .../esm2015/timepicker/ngb-time-adapter.js | 76 - .../esm2015/timepicker/ngb-time-struct.js | 27 - .../esm2015/timepicker/ngb-time.js | 90 - .../esm2015/timepicker/timepicker-config.js | 50 - .../esm2015/timepicker/timepicker-i18n.js | 72 - .../esm2015/timepicker/timepicker.js | 410 - .../esm2015/timepicker/timepicker.module.js | 17 - .../esm2015/toast/toast-config.js | 62 - dist/ng-bootstrap/esm2015/toast/toast.js | 184 - .../esm2015/toast/toast.module.js | 15 - .../esm2015/tooltip/tooltip-config.js | 45 - dist/ng-bootstrap/esm2015/tooltip/tooltip.js | 362 - .../esm2015/tooltip/tooltip.module.js | 14 - .../esm2015/typeahead/highlight.js | 83 - .../esm2015/typeahead/typeahead-config.js | 37 - .../esm2015/typeahead/typeahead-window.js | 184 - .../esm2015/typeahead/typeahead.js | 654 - .../esm2015/typeahead/typeahead.module.js | 24 - .../esm2015/util/accessibility/live.js | 98 - dist/ng-bootstrap/esm2015/util/autoclose.js | 105 - dist/ng-bootstrap/esm2015/util/focus-trap.js | 95 - dist/ng-bootstrap/esm2015/util/key.js | 33 - dist/ng-bootstrap/esm2015/util/popup.js | 135 - dist/ng-bootstrap/esm2015/util/positioning.js | 317 - dist/ng-bootstrap/esm2015/util/scrollbar.js | 102 - dist/ng-bootstrap/esm2015/util/triggers.js | 237 - dist/ng-bootstrap/esm2015/util/util.js | 120 - .../esm5/accordion/accordion-config.js | 30 - dist/ng-bootstrap/esm5/accordion/accordion.js | 593 - .../esm5/accordion/accordion.module.js | 21 - dist/ng-bootstrap/esm5/alert/alert-config.js | 31 - dist/ng-bootstrap/esm5/alert/alert.js | 110 - dist/ng-bootstrap/esm5/alert/alert.module.js | 19 - .../esm5/buttons/buttons.module.js | 23 - dist/ng-bootstrap/esm5/buttons/checkbox.js | 182 - dist/ng-bootstrap/esm5/buttons/label.js | 26 - dist/ng-bootstrap/esm5/buttons/radio.js | 415 - dist/ng-bootstrap/esm5/card/card-config.js | 31 - dist/ng-bootstrap/esm5/card/card.js | 110 - dist/ng-bootstrap/esm5/card/card.module.js | 19 - .../esm5/carousel/carousel-config.js | 43 - dist/ng-bootstrap/esm5/carousel/carousel.js | 600 - .../esm5/carousel/carousel.module.js | 19 - dist/ng-bootstrap/esm5/collapse/collapse.js | 36 - .../esm5/collapse/collapse.module.js | 17 - .../datepicker/adapters/ngb-date-adapter.js | 102 - .../adapters/ngb-date-native-adapter.js | 87 - .../adapters/ngb-date-native-utc-adapter.js | 54 - .../esm5/datepicker/datepicker-config.js | 57 - .../datepicker-day-template-context.js | 62 - .../esm5/datepicker/datepicker-day-view.js | 64 - .../esm5/datepicker/datepicker-i18n.js | 229 - .../esm5/datepicker/datepicker-input.js | 848 - .../datepicker/datepicker-keymap-service.js | 114 - .../esm5/datepicker/datepicker-month-view.js | 62 - .../datepicker-navigation-select.js | 69 - .../esm5/datepicker/datepicker-navigation.js | 68 - .../esm5/datepicker/datepicker-service.js | 492 - .../esm5/datepicker/datepicker-tools.js | 302 - .../esm5/datepicker/datepicker-view-model.js | 13 - .../esm5/datepicker/datepicker.js | 598 - .../esm5/datepicker/datepicker.module.js | 50 - .../hebrew/datepicker-i18n-hebrew.js | 100 - .../esm5/datepicker/hebrew/hebrew.js | 406 - .../datepicker/hebrew/ngb-calendar-hebrew.js | 183 - .../datepicker/hijri/ngb-calendar-hijri.js | 250 - .../hijri/ngb-calendar-islamic-civil.js | 217 - .../hijri/ngb-calendar-islamic-umalqura.js | 299 - .../esm5/datepicker/jalali/jalali.js | 300 - .../datepicker/jalali/ngb-calendar-persian.js | 154 - .../esm5/datepicker/ngb-calendar.js | 287 - .../datepicker/ngb-date-parser-formatter.js | 111 - .../esm5/datepicker/ngb-date-struct.js | 31 - dist/ng-bootstrap/esm5/datepicker/ngb-date.js | 182 - .../esm5/dropdown/dropdown-config.js | 33 - dist/ng-bootstrap/esm5/dropdown/dropdown.js | 757 - .../esm5/dropdown/dropdown.module.js | 20 - dist/ng-bootstrap/esm5/index.js | 57 - .../ng-bootstrap/esm5/modal/modal-backdrop.js | 26 - dist/ng-bootstrap/esm5/modal/modal-config.js | 120 - .../esm5/modal/modal-dismiss-reasons.js | 13 - dist/ng-bootstrap/esm5/modal/modal-ref.js | 277 - dist/ng-bootstrap/esm5/modal/modal-stack.js | 514 - dist/ng-bootstrap/esm5/modal/modal-window.js | 166 - dist/ng-bootstrap/esm5/modal/modal.js | 137 - dist/ng-bootstrap/esm5/modal/modal.module.js | 26 - dist/ng-bootstrap/esm5/ng-bootstrap.js | 33 - .../esm5/pagination/pagination-config.js | 48 - .../esm5/pagination/pagination.js | 561 - .../esm5/pagination/pagination.module.js | 24 - .../esm5/popover/popover-config.js | 47 - dist/ng-bootstrap/esm5/popover/popover.js | 446 - .../esm5/popover/popover.module.js | 24 - .../esm5/progressbar/progressbar-config.js | 41 - .../esm5/progressbar/progressbar.js | 108 - .../esm5/progressbar/progressbar.module.js | 19 - .../ng-bootstrap/esm5/rating/rating-config.js | 34 - dist/ng-bootstrap/esm5/rating/rating.js | 391 - .../ng-bootstrap/esm5/rating/rating.module.js | 19 - .../ng-bootstrap/esm5/tabset/tabset-config.js | 34 - dist/ng-bootstrap/esm5/tabset/tabset.js | 316 - .../ng-bootstrap/esm5/tabset/tabset.module.js | 21 - .../esm5/timepicker/ngb-time-adapter.js | 103 - .../esm5/timepicker/ngb-time-struct.js | 27 - dist/ng-bootstrap/esm5/timepicker/ngb-time.js | 128 - .../esm5/timepicker/timepicker-config.js | 52 - .../esm5/timepicker/timepicker-i18n.js | 84 - .../esm5/timepicker/timepicker.js | 420 - .../esm5/timepicker/timepicker.module.js | 21 - dist/ng-bootstrap/esm5/toast/toast-config.js | 64 - dist/ng-bootstrap/esm5/toast/toast.js | 190 - dist/ng-bootstrap/esm5/toast/toast.module.js | 19 - .../esm5/tooltip/tooltip-config.js | 47 - dist/ng-bootstrap/esm5/tooltip/tooltip.js | 416 - .../esm5/tooltip/tooltip.module.js | 18 - dist/ng-bootstrap/esm5/typeahead/highlight.js | 89 - .../esm5/typeahead/typeahead-config.js | 39 - .../esm5/typeahead/typeahead-window.js | 202 - dist/ng-bootstrap/esm5/typeahead/typeahead.js | 730 - .../esm5/typeahead/typeahead.module.js | 28 - .../esm5/util/accessibility/live.js | 104 - dist/ng-bootstrap/esm5/util/autoclose.js | 113 - dist/ng-bootstrap/esm5/util/focus-trap.js | 98 - dist/ng-bootstrap/esm5/util/key.js | 33 - dist/ng-bootstrap/esm5/util/popup.js | 146 - dist/ng-bootstrap/esm5/util/positioning.js | 384 - dist/ng-bootstrap/esm5/util/scrollbar.js | 149 - dist/ng-bootstrap/esm5/util/triggers.js | 241 - dist/ng-bootstrap/esm5/util/util.js | 121 - dist/ng-bootstrap/fesm2015/ng-bootstrap.js | 10860 ------------- .../ng-bootstrap/fesm2015/ng-bootstrap.js.map | 1 - dist/ng-bootstrap/fesm5/ng-bootstrap.js | 12647 --------------- dist/ng-bootstrap/fesm5/ng-bootstrap.js.map | 1 - dist/ng-bootstrap/index.d.ts | 21 - dist/ng-bootstrap/modal/modal-backdrop.d.ts | 3 - dist/ng-bootstrap/modal/modal-config.d.ts | 87 - .../modal/modal-dismiss-reasons.d.ts | 4 - dist/ng-bootstrap/modal/modal-ref.d.ts | 60 - dist/ng-bootstrap/modal/modal-stack.d.ts | 32 - dist/ng-bootstrap/modal/modal-window.d.ts | 21 - dist/ng-bootstrap/modal/modal.d.ts | 39 - dist/ng-bootstrap/modal/modal.module.d.ts | 6 - dist/ng-bootstrap/ng-bootstrap.d.ts | 28 - dist/ng-bootstrap/ng-bootstrap.metadata.json | 1 - dist/ng-bootstrap/package.json | 56 - .../pagination/pagination-config.d.ts | 16 - dist/ng-bootstrap/pagination/pagination.d.ts | 189 - .../pagination/pagination.module.d.ts | 4 - dist/ng-bootstrap/popover/popover-config.d.ts | 17 - dist/ng-bootstrap/popover/popover.d.ts | 137 - dist/ng-bootstrap/popover/popover.module.d.ts | 5 - .../progressbar/progressbar-config.d.ts | 14 - .../ng-bootstrap/progressbar/progressbar.d.ts | 45 - .../progressbar/progressbar.module.d.ts | 4 - dist/ng-bootstrap/rating/rating-config.d.ts | 11 - dist/ng-bootstrap/rating/rating.d.ts | 84 - dist/ng-bootstrap/rating/rating.module.d.ts | 4 - dist/ng-bootstrap/tabset/tabset-config.d.ts | 11 - dist/ng-bootstrap/tabset/tabset.d.ts | 110 - dist/ng-bootstrap/tabset/tabset.module.d.ts | 4 - .../test/typings/custom-jasmine.d.ts | 9 - .../timepicker/ngb-time-adapter.d.ts | 35 - .../timepicker/ngb-time-struct.d.ts | 17 - dist/ng-bootstrap/timepicker/ngb-time.d.ts | 14 - .../timepicker/timepicker-config.d.ts | 17 - .../timepicker/timepicker-i18n.d.ts | 22 - dist/ng-bootstrap/timepicker/timepicker.d.ts | 72 - .../timepicker/timepicker.module.d.ts | 7 - dist/ng-bootstrap/toast/toast-config.d.ts | 36 - dist/ng-bootstrap/toast/toast.d.ts | 56 - dist/ng-bootstrap/toast/toast.module.d.ts | 4 - dist/ng-bootstrap/tooltip/tooltip-config.d.ts | 17 - dist/ng-bootstrap/tooltip/tooltip.d.ts | 127 - dist/ng-bootstrap/tooltip/tooltip.module.d.ts | 5 - dist/ng-bootstrap/typeahead/highlight.d.ts | 29 - .../typeahead/typeahead-config.d.ts | 14 - .../typeahead/typeahead-window.d.ts | 58 - dist/ng-bootstrap/typeahead/typeahead.d.ts | 153 - .../typeahead/typeahead.module.d.ts | 6 - .../ng-bootstrap/util/accessibility/live.d.ts | 11 - dist/ng-bootstrap/util/autoclose.d.ts | 3 - dist/ng-bootstrap/util/focus-trap.d.ts | 17 - dist/ng-bootstrap/util/key.d.ts | 14 - dist/ng-bootstrap/util/popup.d.ts | 21 - dist/ng-bootstrap/util/positioning.d.ts | 12 - dist/ng-bootstrap/util/scrollbar.d.ts | 38 - dist/ng-bootstrap/util/triggers.d.ts | 14 - dist/ng-bootstrap/util/util.d.ts | 11 - 317 files changed, 71204 deletions(-) delete mode 100644 dist/ng-bootstrap/accordion/accordion-config.d.ts delete mode 100644 dist/ng-bootstrap/accordion/accordion.d.ts delete mode 100644 dist/ng-bootstrap/accordion/accordion.module.d.ts delete mode 100644 dist/ng-bootstrap/alert/alert-config.d.ts delete mode 100644 dist/ng-bootstrap/alert/alert.d.ts delete mode 100644 dist/ng-bootstrap/alert/alert.module.d.ts delete mode 100644 dist/ng-bootstrap/bundles/ng-bootstrap.umd.js delete mode 100644 dist/ng-bootstrap/bundles/ng-bootstrap.umd.js.map delete mode 100644 dist/ng-bootstrap/bundles/ng-bootstrap.umd.min.js delete mode 100644 dist/ng-bootstrap/bundles/ng-bootstrap.umd.min.js.map delete mode 100644 dist/ng-bootstrap/buttons/buttons.module.d.ts delete mode 100644 dist/ng-bootstrap/buttons/checkbox.d.ts delete mode 100644 dist/ng-bootstrap/buttons/label.d.ts delete mode 100644 dist/ng-bootstrap/buttons/radio.d.ts delete mode 100644 dist/ng-bootstrap/card/card-config.d.ts delete mode 100644 dist/ng-bootstrap/card/card.d.ts delete mode 100644 dist/ng-bootstrap/card/card.module.d.ts delete mode 100644 dist/ng-bootstrap/carousel/carousel-config.d.ts delete mode 100644 dist/ng-bootstrap/carousel/carousel.d.ts delete mode 100644 dist/ng-bootstrap/carousel/carousel.module.d.ts delete mode 100644 dist/ng-bootstrap/collapse/collapse.d.ts delete mode 100644 dist/ng-bootstrap/collapse/collapse.module.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/adapters/ngb-date-adapter.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/adapters/ngb-date-native-adapter.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/adapters/ngb-date-native-utc-adapter.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-config.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-day-template-context.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-day-view.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-i18n.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-input.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-keymap-service.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-month-view.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-navigation-select.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-navigation.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-service.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-tools.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker-view-model.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/datepicker.module.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/hebrew/datepicker-i18n-hebrew.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/hebrew/hebrew.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/hebrew/ngb-calendar-hebrew.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/hijri/ngb-calendar-hijri.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/hijri/ngb-calendar-islamic-civil.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/hijri/ngb-calendar-islamic-umalqura.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/jalali/jalali.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/jalali/ngb-calendar-persian.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/ngb-calendar.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/ngb-date-parser-formatter.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/ngb-date-struct.d.ts delete mode 100644 dist/ng-bootstrap/datepicker/ngb-date.d.ts delete mode 100644 dist/ng-bootstrap/dropdown/dropdown-config.d.ts delete mode 100644 dist/ng-bootstrap/dropdown/dropdown.d.ts delete mode 100644 dist/ng-bootstrap/dropdown/dropdown.module.d.ts delete mode 100644 dist/ng-bootstrap/esm2015/accordion/accordion-config.js delete mode 100644 dist/ng-bootstrap/esm2015/accordion/accordion.js delete mode 100644 dist/ng-bootstrap/esm2015/accordion/accordion.module.js delete mode 100644 dist/ng-bootstrap/esm2015/alert/alert-config.js delete mode 100644 dist/ng-bootstrap/esm2015/alert/alert.js delete mode 100644 dist/ng-bootstrap/esm2015/alert/alert.module.js delete mode 100644 dist/ng-bootstrap/esm2015/buttons/buttons.module.js delete mode 100644 dist/ng-bootstrap/esm2015/buttons/checkbox.js delete mode 100644 dist/ng-bootstrap/esm2015/buttons/label.js delete mode 100644 dist/ng-bootstrap/esm2015/buttons/radio.js delete mode 100644 dist/ng-bootstrap/esm2015/card/card-config.js delete mode 100644 dist/ng-bootstrap/esm2015/card/card.js delete mode 100644 dist/ng-bootstrap/esm2015/card/card.module.js delete mode 100644 dist/ng-bootstrap/esm2015/carousel/carousel-config.js delete mode 100644 dist/ng-bootstrap/esm2015/carousel/carousel.js delete mode 100644 dist/ng-bootstrap/esm2015/carousel/carousel.module.js delete mode 100644 dist/ng-bootstrap/esm2015/collapse/collapse.js delete mode 100644 dist/ng-bootstrap/esm2015/collapse/collapse.module.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-adapter.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-native-adapter.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-native-utc-adapter.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-config.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-day-template-context.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-day-view.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-i18n.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-input.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-keymap-service.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-month-view.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-navigation-select.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-navigation.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-service.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-tools.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker-view-model.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/datepicker.module.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/hebrew/datepicker-i18n-hebrew.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/hebrew/hebrew.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/hebrew/ngb-calendar-hebrew.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-hijri.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-islamic-civil.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-islamic-umalqura.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/jalali/jalali.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/jalali/ngb-calendar-persian.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/ngb-calendar.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/ngb-date-parser-formatter.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/ngb-date-struct.js delete mode 100644 dist/ng-bootstrap/esm2015/datepicker/ngb-date.js delete mode 100644 dist/ng-bootstrap/esm2015/dropdown/dropdown-config.js delete mode 100644 dist/ng-bootstrap/esm2015/dropdown/dropdown.js delete mode 100644 dist/ng-bootstrap/esm2015/dropdown/dropdown.module.js delete mode 100644 dist/ng-bootstrap/esm2015/index.js delete mode 100644 dist/ng-bootstrap/esm2015/modal/modal-backdrop.js delete mode 100644 dist/ng-bootstrap/esm2015/modal/modal-config.js delete mode 100644 dist/ng-bootstrap/esm2015/modal/modal-dismiss-reasons.js delete mode 100644 dist/ng-bootstrap/esm2015/modal/modal-ref.js delete mode 100644 dist/ng-bootstrap/esm2015/modal/modal-stack.js delete mode 100644 dist/ng-bootstrap/esm2015/modal/modal-window.js delete mode 100644 dist/ng-bootstrap/esm2015/modal/modal.js delete mode 100644 dist/ng-bootstrap/esm2015/modal/modal.module.js delete mode 100644 dist/ng-bootstrap/esm2015/ng-bootstrap.js delete mode 100644 dist/ng-bootstrap/esm2015/pagination/pagination-config.js delete mode 100644 dist/ng-bootstrap/esm2015/pagination/pagination.js delete mode 100644 dist/ng-bootstrap/esm2015/pagination/pagination.module.js delete mode 100644 dist/ng-bootstrap/esm2015/popover/popover-config.js delete mode 100644 dist/ng-bootstrap/esm2015/popover/popover.js delete mode 100644 dist/ng-bootstrap/esm2015/popover/popover.module.js delete mode 100644 dist/ng-bootstrap/esm2015/progressbar/progressbar-config.js delete mode 100644 dist/ng-bootstrap/esm2015/progressbar/progressbar.js delete mode 100644 dist/ng-bootstrap/esm2015/progressbar/progressbar.module.js delete mode 100644 dist/ng-bootstrap/esm2015/rating/rating-config.js delete mode 100644 dist/ng-bootstrap/esm2015/rating/rating.js delete mode 100644 dist/ng-bootstrap/esm2015/rating/rating.module.js delete mode 100644 dist/ng-bootstrap/esm2015/tabset/tabset-config.js delete mode 100644 dist/ng-bootstrap/esm2015/tabset/tabset.js delete mode 100644 dist/ng-bootstrap/esm2015/tabset/tabset.module.js delete mode 100644 dist/ng-bootstrap/esm2015/timepicker/ngb-time-adapter.js delete mode 100644 dist/ng-bootstrap/esm2015/timepicker/ngb-time-struct.js delete mode 100644 dist/ng-bootstrap/esm2015/timepicker/ngb-time.js delete mode 100644 dist/ng-bootstrap/esm2015/timepicker/timepicker-config.js delete mode 100644 dist/ng-bootstrap/esm2015/timepicker/timepicker-i18n.js delete mode 100644 dist/ng-bootstrap/esm2015/timepicker/timepicker.js delete mode 100644 dist/ng-bootstrap/esm2015/timepicker/timepicker.module.js delete mode 100644 dist/ng-bootstrap/esm2015/toast/toast-config.js delete mode 100644 dist/ng-bootstrap/esm2015/toast/toast.js delete mode 100644 dist/ng-bootstrap/esm2015/toast/toast.module.js delete mode 100644 dist/ng-bootstrap/esm2015/tooltip/tooltip-config.js delete mode 100644 dist/ng-bootstrap/esm2015/tooltip/tooltip.js delete mode 100644 dist/ng-bootstrap/esm2015/tooltip/tooltip.module.js delete mode 100644 dist/ng-bootstrap/esm2015/typeahead/highlight.js delete mode 100644 dist/ng-bootstrap/esm2015/typeahead/typeahead-config.js delete mode 100644 dist/ng-bootstrap/esm2015/typeahead/typeahead-window.js delete mode 100644 dist/ng-bootstrap/esm2015/typeahead/typeahead.js delete mode 100644 dist/ng-bootstrap/esm2015/typeahead/typeahead.module.js delete mode 100644 dist/ng-bootstrap/esm2015/util/accessibility/live.js delete mode 100644 dist/ng-bootstrap/esm2015/util/autoclose.js delete mode 100644 dist/ng-bootstrap/esm2015/util/focus-trap.js delete mode 100644 dist/ng-bootstrap/esm2015/util/key.js delete mode 100644 dist/ng-bootstrap/esm2015/util/popup.js delete mode 100644 dist/ng-bootstrap/esm2015/util/positioning.js delete mode 100644 dist/ng-bootstrap/esm2015/util/scrollbar.js delete mode 100644 dist/ng-bootstrap/esm2015/util/triggers.js delete mode 100644 dist/ng-bootstrap/esm2015/util/util.js delete mode 100644 dist/ng-bootstrap/esm5/accordion/accordion-config.js delete mode 100644 dist/ng-bootstrap/esm5/accordion/accordion.js delete mode 100644 dist/ng-bootstrap/esm5/accordion/accordion.module.js delete mode 100644 dist/ng-bootstrap/esm5/alert/alert-config.js delete mode 100644 dist/ng-bootstrap/esm5/alert/alert.js delete mode 100644 dist/ng-bootstrap/esm5/alert/alert.module.js delete mode 100644 dist/ng-bootstrap/esm5/buttons/buttons.module.js delete mode 100644 dist/ng-bootstrap/esm5/buttons/checkbox.js delete mode 100644 dist/ng-bootstrap/esm5/buttons/label.js delete mode 100644 dist/ng-bootstrap/esm5/buttons/radio.js delete mode 100644 dist/ng-bootstrap/esm5/card/card-config.js delete mode 100644 dist/ng-bootstrap/esm5/card/card.js delete mode 100644 dist/ng-bootstrap/esm5/card/card.module.js delete mode 100644 dist/ng-bootstrap/esm5/carousel/carousel-config.js delete mode 100644 dist/ng-bootstrap/esm5/carousel/carousel.js delete mode 100644 dist/ng-bootstrap/esm5/carousel/carousel.module.js delete mode 100644 dist/ng-bootstrap/esm5/collapse/collapse.js delete mode 100644 dist/ng-bootstrap/esm5/collapse/collapse.module.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-adapter.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-native-adapter.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-native-utc-adapter.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-config.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-day-template-context.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-day-view.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-i18n.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-input.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-keymap-service.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-month-view.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-navigation-select.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-navigation.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-service.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-tools.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker-view-model.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/datepicker.module.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/hebrew/datepicker-i18n-hebrew.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/hebrew/hebrew.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/hebrew/ngb-calendar-hebrew.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-hijri.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-islamic-civil.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-islamic-umalqura.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/jalali/jalali.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/jalali/ngb-calendar-persian.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/ngb-calendar.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/ngb-date-parser-formatter.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/ngb-date-struct.js delete mode 100644 dist/ng-bootstrap/esm5/datepicker/ngb-date.js delete mode 100644 dist/ng-bootstrap/esm5/dropdown/dropdown-config.js delete mode 100644 dist/ng-bootstrap/esm5/dropdown/dropdown.js delete mode 100644 dist/ng-bootstrap/esm5/dropdown/dropdown.module.js delete mode 100644 dist/ng-bootstrap/esm5/index.js delete mode 100644 dist/ng-bootstrap/esm5/modal/modal-backdrop.js delete mode 100644 dist/ng-bootstrap/esm5/modal/modal-config.js delete mode 100644 dist/ng-bootstrap/esm5/modal/modal-dismiss-reasons.js delete mode 100644 dist/ng-bootstrap/esm5/modal/modal-ref.js delete mode 100644 dist/ng-bootstrap/esm5/modal/modal-stack.js delete mode 100644 dist/ng-bootstrap/esm5/modal/modal-window.js delete mode 100644 dist/ng-bootstrap/esm5/modal/modal.js delete mode 100644 dist/ng-bootstrap/esm5/modal/modal.module.js delete mode 100644 dist/ng-bootstrap/esm5/ng-bootstrap.js delete mode 100644 dist/ng-bootstrap/esm5/pagination/pagination-config.js delete mode 100644 dist/ng-bootstrap/esm5/pagination/pagination.js delete mode 100644 dist/ng-bootstrap/esm5/pagination/pagination.module.js delete mode 100644 dist/ng-bootstrap/esm5/popover/popover-config.js delete mode 100644 dist/ng-bootstrap/esm5/popover/popover.js delete mode 100644 dist/ng-bootstrap/esm5/popover/popover.module.js delete mode 100644 dist/ng-bootstrap/esm5/progressbar/progressbar-config.js delete mode 100644 dist/ng-bootstrap/esm5/progressbar/progressbar.js delete mode 100644 dist/ng-bootstrap/esm5/progressbar/progressbar.module.js delete mode 100644 dist/ng-bootstrap/esm5/rating/rating-config.js delete mode 100644 dist/ng-bootstrap/esm5/rating/rating.js delete mode 100644 dist/ng-bootstrap/esm5/rating/rating.module.js delete mode 100644 dist/ng-bootstrap/esm5/tabset/tabset-config.js delete mode 100644 dist/ng-bootstrap/esm5/tabset/tabset.js delete mode 100644 dist/ng-bootstrap/esm5/tabset/tabset.module.js delete mode 100644 dist/ng-bootstrap/esm5/timepicker/ngb-time-adapter.js delete mode 100644 dist/ng-bootstrap/esm5/timepicker/ngb-time-struct.js delete mode 100644 dist/ng-bootstrap/esm5/timepicker/ngb-time.js delete mode 100644 dist/ng-bootstrap/esm5/timepicker/timepicker-config.js delete mode 100644 dist/ng-bootstrap/esm5/timepicker/timepicker-i18n.js delete mode 100644 dist/ng-bootstrap/esm5/timepicker/timepicker.js delete mode 100644 dist/ng-bootstrap/esm5/timepicker/timepicker.module.js delete mode 100644 dist/ng-bootstrap/esm5/toast/toast-config.js delete mode 100644 dist/ng-bootstrap/esm5/toast/toast.js delete mode 100644 dist/ng-bootstrap/esm5/toast/toast.module.js delete mode 100644 dist/ng-bootstrap/esm5/tooltip/tooltip-config.js delete mode 100644 dist/ng-bootstrap/esm5/tooltip/tooltip.js delete mode 100644 dist/ng-bootstrap/esm5/tooltip/tooltip.module.js delete mode 100644 dist/ng-bootstrap/esm5/typeahead/highlight.js delete mode 100644 dist/ng-bootstrap/esm5/typeahead/typeahead-config.js delete mode 100644 dist/ng-bootstrap/esm5/typeahead/typeahead-window.js delete mode 100644 dist/ng-bootstrap/esm5/typeahead/typeahead.js delete mode 100644 dist/ng-bootstrap/esm5/typeahead/typeahead.module.js delete mode 100644 dist/ng-bootstrap/esm5/util/accessibility/live.js delete mode 100644 dist/ng-bootstrap/esm5/util/autoclose.js delete mode 100644 dist/ng-bootstrap/esm5/util/focus-trap.js delete mode 100644 dist/ng-bootstrap/esm5/util/key.js delete mode 100644 dist/ng-bootstrap/esm5/util/popup.js delete mode 100644 dist/ng-bootstrap/esm5/util/positioning.js delete mode 100644 dist/ng-bootstrap/esm5/util/scrollbar.js delete mode 100644 dist/ng-bootstrap/esm5/util/triggers.js delete mode 100644 dist/ng-bootstrap/esm5/util/util.js delete mode 100644 dist/ng-bootstrap/fesm2015/ng-bootstrap.js delete mode 100644 dist/ng-bootstrap/fesm2015/ng-bootstrap.js.map delete mode 100644 dist/ng-bootstrap/fesm5/ng-bootstrap.js delete mode 100644 dist/ng-bootstrap/fesm5/ng-bootstrap.js.map delete mode 100644 dist/ng-bootstrap/index.d.ts delete mode 100644 dist/ng-bootstrap/modal/modal-backdrop.d.ts delete mode 100644 dist/ng-bootstrap/modal/modal-config.d.ts delete mode 100644 dist/ng-bootstrap/modal/modal-dismiss-reasons.d.ts delete mode 100644 dist/ng-bootstrap/modal/modal-ref.d.ts delete mode 100644 dist/ng-bootstrap/modal/modal-stack.d.ts delete mode 100644 dist/ng-bootstrap/modal/modal-window.d.ts delete mode 100644 dist/ng-bootstrap/modal/modal.d.ts delete mode 100644 dist/ng-bootstrap/modal/modal.module.d.ts delete mode 100644 dist/ng-bootstrap/ng-bootstrap.d.ts delete mode 100644 dist/ng-bootstrap/ng-bootstrap.metadata.json delete mode 100644 dist/ng-bootstrap/package.json delete mode 100644 dist/ng-bootstrap/pagination/pagination-config.d.ts delete mode 100644 dist/ng-bootstrap/pagination/pagination.d.ts delete mode 100644 dist/ng-bootstrap/pagination/pagination.module.d.ts delete mode 100644 dist/ng-bootstrap/popover/popover-config.d.ts delete mode 100644 dist/ng-bootstrap/popover/popover.d.ts delete mode 100644 dist/ng-bootstrap/popover/popover.module.d.ts delete mode 100644 dist/ng-bootstrap/progressbar/progressbar-config.d.ts delete mode 100644 dist/ng-bootstrap/progressbar/progressbar.d.ts delete mode 100644 dist/ng-bootstrap/progressbar/progressbar.module.d.ts delete mode 100644 dist/ng-bootstrap/rating/rating-config.d.ts delete mode 100644 dist/ng-bootstrap/rating/rating.d.ts delete mode 100644 dist/ng-bootstrap/rating/rating.module.d.ts delete mode 100644 dist/ng-bootstrap/tabset/tabset-config.d.ts delete mode 100644 dist/ng-bootstrap/tabset/tabset.d.ts delete mode 100644 dist/ng-bootstrap/tabset/tabset.module.d.ts delete mode 100644 dist/ng-bootstrap/test/typings/custom-jasmine.d.ts delete mode 100644 dist/ng-bootstrap/timepicker/ngb-time-adapter.d.ts delete mode 100644 dist/ng-bootstrap/timepicker/ngb-time-struct.d.ts delete mode 100644 dist/ng-bootstrap/timepicker/ngb-time.d.ts delete mode 100644 dist/ng-bootstrap/timepicker/timepicker-config.d.ts delete mode 100644 dist/ng-bootstrap/timepicker/timepicker-i18n.d.ts delete mode 100644 dist/ng-bootstrap/timepicker/timepicker.d.ts delete mode 100644 dist/ng-bootstrap/timepicker/timepicker.module.d.ts delete mode 100644 dist/ng-bootstrap/toast/toast-config.d.ts delete mode 100644 dist/ng-bootstrap/toast/toast.d.ts delete mode 100644 dist/ng-bootstrap/toast/toast.module.d.ts delete mode 100644 dist/ng-bootstrap/tooltip/tooltip-config.d.ts delete mode 100644 dist/ng-bootstrap/tooltip/tooltip.d.ts delete mode 100644 dist/ng-bootstrap/tooltip/tooltip.module.d.ts delete mode 100644 dist/ng-bootstrap/typeahead/highlight.d.ts delete mode 100644 dist/ng-bootstrap/typeahead/typeahead-config.d.ts delete mode 100644 dist/ng-bootstrap/typeahead/typeahead-window.d.ts delete mode 100644 dist/ng-bootstrap/typeahead/typeahead.d.ts delete mode 100644 dist/ng-bootstrap/typeahead/typeahead.module.d.ts delete mode 100644 dist/ng-bootstrap/util/accessibility/live.d.ts delete mode 100644 dist/ng-bootstrap/util/autoclose.d.ts delete mode 100644 dist/ng-bootstrap/util/focus-trap.d.ts delete mode 100644 dist/ng-bootstrap/util/key.d.ts delete mode 100644 dist/ng-bootstrap/util/popup.d.ts delete mode 100644 dist/ng-bootstrap/util/positioning.d.ts delete mode 100644 dist/ng-bootstrap/util/scrollbar.d.ts delete mode 100644 dist/ng-bootstrap/util/triggers.d.ts delete mode 100644 dist/ng-bootstrap/util/util.d.ts diff --git a/dist/ng-bootstrap/accordion/accordion-config.d.ts b/dist/ng-bootstrap/accordion/accordion-config.d.ts deleted file mode 100644 index 987b672..0000000 --- a/dist/ng-bootstrap/accordion/accordion-config.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all accordions used in the application. - */ -export declare class NgbAccordionConfig { - closeOthers: boolean; - type: string; -} diff --git a/dist/ng-bootstrap/accordion/accordion.d.ts b/dist/ng-bootstrap/accordion/accordion.d.ts deleted file mode 100644 index a0776bf..0000000 --- a/dist/ng-bootstrap/accordion/accordion.d.ts +++ /dev/null @@ -1,187 +0,0 @@ -import { AfterContentChecked, EventEmitter, QueryList, TemplateRef } from '@angular/core'; -import { NgbAccordionConfig } from './accordion-config'; -/** - * The context for the [NgbPanelHeader](#/components/accordion/api#NgbPanelHeader) template - * - * @since 4.1.0 - */ -export interface NgbPanelHeaderContext { - /** - * `True` if current panel is opened - */ - opened: boolean; -} -/** - * A directive that wraps an accordion panel header with any HTML markup and a toggling button - * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle). - * See the [header customization demo](#/components/accordion/examples#header) for more details. - * - * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title. - * - * @since 4.1.0 - */ -export declare class NgbPanelHeader { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A directive that wraps only the panel title with HTML markup inside. - * - * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header. - */ -export declare class NgbPanelTitle { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A directive that wraps the accordion panel content. - */ -export declare class NgbPanelContent { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A directive that wraps an individual accordion panel with title and collapsible content. - */ -export declare class NgbPanel implements AfterContentChecked { - /** - * If `true`, the panel is disabled an can't be toggled. - */ - disabled: boolean; - /** - * An optional id for the panel that must be unique on the page. - * - * If not provided, it will be auto-generated in the `ngb-panel-xxx` format. - */ - id: string; - isOpen: boolean; - /** - * The panel title. - * - * You can alternatively use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to set panel title. - */ - title: string; - /** - * Type of the current panel. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - */ - type: string; - titleTpl: NgbPanelTitle | null; - headerTpl: NgbPanelHeader | null; - contentTpl: NgbPanelContent | null; - titleTpls: QueryList; - headerTpls: QueryList; - contentTpls: QueryList; - ngAfterContentChecked(): void; -} -/** - * An event emitted right before toggling an accordion panel. - */ -export interface NgbPanelChangeEvent { - /** - * The id of the accordion panel that is being toggled. - */ - panelId: string; - /** - * The next state of the panel. - * - * `true` if it will be opened, `false` if closed. - */ - nextState: boolean; - /** - * Calling this function will prevent panel toggling. - */ - preventDefault: () => void; -} -/** - * Accordion is a collection of collapsible panels (bootstrap cards). - * - * It can ensure only one panel is opened at a time and allows to customize panel - * headers. - */ -export declare class NgbAccordion implements AfterContentChecked { - panels: QueryList; - /** - * An array or comma separated strings of panel ids that should be opened **initially**. - * - * For subsequent changes use methods like `expand()`, `collapse()`, etc. and - * the `(panelChange)` event. - */ - activeIds: string | string[]; - /** - * If `true`, only one panel could be opened at a time. - * - * Opening a new panel will close others. - */ - closeOtherPanels: boolean; - /** - * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed. - */ - destroyOnHide: boolean; - /** - * Type of panels. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - */ - type: string; - /** - * Event emitted right before the panel toggle happens. - * - * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details. - */ - panelChange: EventEmitter; - constructor(config: NgbAccordionConfig); - /** - * Checks if a panel with a given id is expanded. - */ - isExpanded(panelId: string): boolean; - /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - */ - expand(panelId: string): void; - /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - */ - expandAll(): void; - /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - */ - collapse(panelId: string): void; - /** - * Collapses all opened panels. - */ - collapseAll(): void; - /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - */ - toggle(panelId: string): void; - ngAfterContentChecked(): void; - private _changeOpenState; - private _closeOthers; - private _findPanelById; - private _updateActiveIds; -} -/** - * A directive to put on a button that toggles panel opening and closing. - * - * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) - * - * @since 4.1.0 - */ -export declare class NgbPanelToggle { - accordion: NgbAccordion; - panel: NgbPanel; - ngbPanelToggle: NgbPanel; - constructor(accordion: NgbAccordion, panel: NgbPanel); -} diff --git a/dist/ng-bootstrap/accordion/accordion.module.d.ts b/dist/ng-bootstrap/accordion/accordion.module.d.ts deleted file mode 100644 index 63c077b..0000000 --- a/dist/ng-bootstrap/accordion/accordion.module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelChangeEvent, NgbPanelHeader, NgbPanelHeaderContext, NgbPanelToggle } from './accordion'; -export { NgbAccordionConfig } from './accordion-config'; -export declare class NgbAccordionModule { -} diff --git a/dist/ng-bootstrap/alert/alert-config.d.ts b/dist/ng-bootstrap/alert/alert-config.d.ts deleted file mode 100644 index e241dc3..0000000 --- a/dist/ng-bootstrap/alert/alert-config.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ -export declare class NgbAlertConfig { - dismissible: boolean; - type: string; -} diff --git a/dist/ng-bootstrap/alert/alert.d.ts b/dist/ng-bootstrap/alert/alert.d.ts deleted file mode 100644 index 56ee2c8..0000000 --- a/dist/ng-bootstrap/alert/alert.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { EventEmitter, Renderer2, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core'; -import { NgbAlertConfig } from './alert-config'; -/** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ -export declare class NgbAlert implements OnInit, OnChanges { - private _renderer; - private _element; - /** - * If `true`, alert can be dismissed by the user. - * - * The close button (×) will be displayed and you can be notified - * of the event with the `(close)` output. - */ - dismissible: boolean; - /** - * Type of the alert. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - */ - type: string; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - close: EventEmitter; - constructor(config: NgbAlertConfig, _renderer: Renderer2, _element: ElementRef); - closeHandler(): void; - ngOnChanges(changes: SimpleChanges): void; - ngOnInit(): void; -} diff --git a/dist/ng-bootstrap/alert/alert.module.d.ts b/dist/ng-bootstrap/alert/alert.module.d.ts deleted file mode 100644 index 12b6eec..0000000 --- a/dist/ng-bootstrap/alert/alert.module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { NgbAlert } from './alert'; -export { NgbAlertConfig } from './alert-config'; -export declare class NgbAlertModule { -} diff --git a/dist/ng-bootstrap/bundles/ng-bootstrap.umd.js b/dist/ng-bootstrap/bundles/ng-bootstrap.umd.js deleted file mode 100644 index 22f39b5..0000000 --- a/dist/ng-bootstrap/bundles/ng-bootstrap.umd.js +++ /dev/null @@ -1,12846 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('rxjs'), require('rxjs/operators')) : - typeof define === 'function' && define.amd ? define('ngb', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'rxjs', 'rxjs/operators'], factory) : - (global = global || self, factory(global.ngb = {}, global.ng.core, global.ng.common, global.ng.forms, global.rxjs, global.rxjs.operators)); -}(this, function (exports, core, common, forms, rxjs, operators) { 'use strict'; - - /*! ***************************************************************************** - Copyright (c) Microsoft Corporation. All rights reserved. - Licensed under the Apache License, Version 2.0 (the "License"); you may not use - this file except in compliance with the License. You may obtain a copy of the - License at http://www.apache.org/licenses/LICENSE-2.0 - - THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED - WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, - MERCHANTABLITY OR NON-INFRINGEMENT. - - See the Apache Version 2.0 License for specific language governing permissions - and limitations under the License. - ***************************************************************************** */ - /* global Reflect, Promise */ - - var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - - function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - } - - var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); - }; - - function __values(o) { - var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; - if (m) return m.call(o); - return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - } - - function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - } - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [SbCard](#/components/alert/api#SbCard) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ - var SbCardConfig = /** @class */ (function () { - function SbCardConfig() { - this.dismissible = true; - this.type = 'warning'; - } - SbCardConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ SbCardConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function SbCardConfig_Factory() { return new SbCardConfig(); }, token: SbCardConfig, providedIn: "root" }); - return SbCardConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ - var SbCard = /** @class */ (function () { - function SbCard(config, _renderer, _element) { - this._renderer = _renderer; - this._element = _element; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - this.close = new core.EventEmitter(); - this.dismissible = config.dismissible; - this.type = config.type; - } - /** - * @return {?} - */ - SbCard.prototype.closeHandler = /** - * @return {?} - */ - function () { this.close.emit(null); }; - /** - * @param {?} changes - * @return {?} - */ - SbCard.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - /** @type {?} */ - var typeChange = changes['type']; - if (typeChange && !typeChange.firstChange) { - this._renderer.removeClass(this._element.nativeElement, "alert-" + typeChange.previousValue); - this._renderer.addClass(this._element.nativeElement, "alert-" + typeChange.currentValue); - } - }; - /** - * @return {?} - */ - SbCard.prototype.ngOnInit = /** - * @return {?} - */ - function () { this._renderer.addClass(this._element.nativeElement, "alert-" + this.type); }; - SbCard.decorators = [ - { type: core.Component, args: [{ - selector: 'sb-card', - changeDetection: core.ChangeDetectionStrategy.OnPush, - encapsulation: core.ViewEncapsulation.None, - host: { 'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible' }, - template: "\n \n \n ", - styles: ["ngb-alert{display:block}"] - }] } - ]; - /** @nocollapse */ - SbCard.ctorParameters = function () { return [ - { type: SbCardConfig }, - { type: core.Renderer2 }, - { type: core.ElementRef } - ]; }; - SbCard.propDecorators = { - dismissible: [{ type: core.Input }], - type: [{ type: core.Input }], - close: [{ type: core.Output }] - }; - return SbCard; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var SbCardModule = /** @class */ (function () { - function SbCardModule() { - } - SbCardModule.decorators = [ - { type: core.NgModule, args: [{ declarations: [SbCard], exports: [SbCard], imports: [common.CommonModule], entryComponents: [SbCard] },] } - ]; - return SbCardModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * @param {?} value - * @return {?} - */ - function toInteger(value) { - return parseInt("" + value, 10); - } - /** - * @param {?} value - * @return {?} - */ - function toString(value) { - return (value !== undefined && value !== null) ? "" + value : ''; - } - /** - * @param {?} value - * @param {?} max - * @param {?=} min - * @return {?} - */ - function getValueInRange(value, max, min) { - if (min === void 0) { min = 0; } - return Math.max(Math.min(value, max), min); - } - /** - * @param {?} value - * @return {?} - */ - function isString(value) { - return typeof value === 'string'; - } - /** - * @param {?} value - * @return {?} - */ - function isNumber(value) { - return !isNaN(toInteger(value)); - } - /** - * @param {?} value - * @return {?} - */ - function isInteger(value) { - return typeof value === 'number' && isFinite(value) && Math.floor(value) === value; - } - /** - * @param {?} value - * @return {?} - */ - function isDefined(value) { - return value !== undefined && value !== null; - } - /** - * @param {?} value - * @return {?} - */ - function padNumber(value) { - if (isNumber(value)) { - return ("0" + value).slice(-2); - } - else { - return ''; - } - } - /** - * @param {?} text - * @return {?} - */ - function regExpEscape(text) { - return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); - } - /** - * @param {?} element - * @param {?} className - * @return {?} - */ - function hasClassName(element, className) { - return element && element.className && element.className.split && - element.className.split(/\s+/).indexOf(className) >= 0; - } - if (typeof Element !== 'undefined' && !Element.prototype.closest) { - // Polyfill for ie10+ - if (!Element.prototype.matches) { - // IE uses the non-standard name: msMatchesSelector - Element.prototype.matches = ((/** @type {?} */ (Element.prototype))).msMatchesSelector || Element.prototype.webkitMatchesSelector; - } - Element.prototype.closest = (/** - * @param {?} s - * @return {?} - */ - function (s) { - /** @type {?} */ - var el = this; - if (!document.documentElement.contains(el)) { - return null; - } - do { - if (el.matches(s)) { - return el; - } - el = el.parentElement || el.parentNode; - } while (el !== null && el.nodeType === 1); - return null; - }); - } - /** - * @param {?} element - * @param {?} selector - * @return {?} - */ - function closest(element, selector) { - if (!selector) { - return null; - } - return element.closest(selector); - } - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all accordions used in the application. - */ - var NgbAccordionConfig = /** @class */ (function () { - function NgbAccordionConfig() { - this.closeOthers = false; - } - NgbAccordionConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbAccordionConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbAccordionConfig_Factory() { return new NgbAccordionConfig(); }, token: NgbAccordionConfig, providedIn: "root" }); - return NgbAccordionConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var nextId = 0; - /** - * A directive that wraps an accordion panel header with any HTML markup and a toggling button - * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle). - * See the [header customization demo](#/components/accordion/examples#header) for more details. - * - * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title. - * - * \@since 4.1.0 - */ - var NgbPanelHeader = /** @class */ (function () { - function NgbPanelHeader(templateRef) { - this.templateRef = templateRef; - } - NgbPanelHeader.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbPanelHeader]' },] } - ]; - /** @nocollapse */ - NgbPanelHeader.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbPanelHeader; - }()); - /** - * A directive that wraps only the panel title with HTML markup inside. - * - * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header. - */ - var NgbPanelTitle = /** @class */ (function () { - function NgbPanelTitle(templateRef) { - this.templateRef = templateRef; - } - NgbPanelTitle.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbPanelTitle]' },] } - ]; - /** @nocollapse */ - NgbPanelTitle.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbPanelTitle; - }()); - /** - * A directive that wraps the accordion panel content. - */ - var NgbPanelContent = /** @class */ (function () { - function NgbPanelContent(templateRef) { - this.templateRef = templateRef; - } - NgbPanelContent.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbPanelContent]' },] } - ]; - /** @nocollapse */ - NgbPanelContent.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbPanelContent; - }()); - /** - * A directive that wraps an individual accordion panel with title and collapsible content. - */ - var NgbPanel = /** @class */ (function () { - function NgbPanel() { - /** - * If `true`, the panel is disabled an can't be toggled. - */ - this.disabled = false; - /** - * An optional id for the panel that must be unique on the page. - * - * If not provided, it will be auto-generated in the `ngb-panel-xxx` format. - */ - this.id = "ngb-panel-" + nextId++; - this.isOpen = false; - } - /** - * @return {?} - */ - NgbPanel.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - // We are using @ContentChildren instead of @ContentChild as in the Angular version being used - // only @ContentChildren allows us to specify the {descendants: false} option. - // Without {descendants: false} we are hitting bugs described in: - // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240 - this.titleTpl = this.titleTpls.first; - this.headerTpl = this.headerTpls.first; - this.contentTpl = this.contentTpls.first; - }; - NgbPanel.decorators = [ - { type: core.Directive, args: [{ selector: 'ngb-panel' },] } - ]; - NgbPanel.propDecorators = { - disabled: [{ type: core.Input }], - id: [{ type: core.Input }], - title: [{ type: core.Input }], - type: [{ type: core.Input }], - titleTpls: [{ type: core.ContentChildren, args: [NgbPanelTitle, { descendants: false },] }], - headerTpls: [{ type: core.ContentChildren, args: [NgbPanelHeader, { descendants: false },] }], - contentTpls: [{ type: core.ContentChildren, args: [NgbPanelContent, { descendants: false },] }] - }; - return NgbPanel; - }()); - /** - * Accordion is a collection of collapsible panels (bootstrap cards). - * - * It can ensure only one panel is opened at a time and allows to customize panel - * headers. - */ - var NgbAccordion = /** @class */ (function () { - function NgbAccordion(config) { - /** - * An array or comma separated strings of panel ids that should be opened **initially**. - * - * For subsequent changes use methods like `expand()`, `collapse()`, etc. and - * the `(panelChange)` event. - */ - this.activeIds = []; - /** - * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed. - */ - this.destroyOnHide = true; - /** - * Event emitted right before the panel toggle happens. - * - * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details. - */ - this.panelChange = new core.EventEmitter(); - this.type = config.type; - this.closeOtherPanels = config.closeOthers; - } - /** - * Checks if a panel with a given id is expanded. - */ - /** - * Checks if a panel with a given id is expanded. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.isExpanded = /** - * Checks if a panel with a given id is expanded. - * @param {?} panelId - * @return {?} - */ - function (panelId) { return this.activeIds.indexOf(panelId) > -1; }; - /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - */ - /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.expand = /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - * @param {?} panelId - * @return {?} - */ - function (panelId) { this._changeOpenState(this._findPanelById(panelId), true); }; - /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - */ - /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - * @return {?} - */ - NgbAccordion.prototype.expandAll = /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - * @return {?} - */ - function () { - var _this = this; - if (this.closeOtherPanels) { - if (this.activeIds.length === 0 && this.panels.length) { - this._changeOpenState(this.panels.first, true); - } - } - else { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return _this._changeOpenState(panel, true); })); - } - }; - /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - */ - /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.collapse = /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - * @param {?} panelId - * @return {?} - */ - function (panelId) { this._changeOpenState(this._findPanelById(panelId), false); }; - /** - * Collapses all opened panels. - */ - /** - * Collapses all opened panels. - * @return {?} - */ - NgbAccordion.prototype.collapseAll = /** - * Collapses all opened panels. - * @return {?} - */ - function () { - var _this = this; - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { _this._changeOpenState(panel, false); })); - }; - /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - */ - /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.toggle = /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - * @param {?} panelId - * @return {?} - */ - function (panelId) { - /** @type {?} */ - var panel = this._findPanelById(panelId); - if (panel) { - this._changeOpenState(panel, !panel.isOpen); - } - }; - /** - * @return {?} - */ - NgbAccordion.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - var _this = this; - // active id updates - if (isString(this.activeIds)) { - this.activeIds = this.activeIds.split(/\s*,\s*/); - } - // update panels open states - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return panel.isOpen = !panel.disabled && _this.activeIds.indexOf(panel.id) > -1; })); - // closeOthers updates - if (this.activeIds.length > 1 && this.closeOtherPanels) { - this._closeOthers(this.activeIds[0]); - this._updateActiveIds(); - } - }; - /** - * @private - * @param {?} panel - * @param {?} nextState - * @return {?} - */ - NgbAccordion.prototype._changeOpenState = /** - * @private - * @param {?} panel - * @param {?} nextState - * @return {?} - */ - function (panel, nextState) { - if (panel && !panel.disabled && panel.isOpen !== nextState) { - /** @type {?} */ - var defaultPrevented_1 = false; - this.panelChange.emit({ panelId: panel.id, nextState: nextState, preventDefault: (/** - * @return {?} - */ - function () { defaultPrevented_1 = true; }) }); - if (!defaultPrevented_1) { - panel.isOpen = nextState; - if (nextState && this.closeOtherPanels) { - this._closeOthers(panel.id); - } - this._updateActiveIds(); - } - } - }; - /** - * @private - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype._closeOthers = /** - * @private - * @param {?} panelId - * @return {?} - */ - function (panelId) { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { - if (panel.id !== panelId) { - panel.isOpen = false; - } - })); - }; - /** - * @private - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype._findPanelById = /** - * @private - * @param {?} panelId - * @return {?} - */ - function (panelId) { return this.panels.find((/** - * @param {?} p - * @return {?} - */ - function (p) { return p.id === panelId; })); }; - /** - * @private - * @return {?} - */ - NgbAccordion.prototype._updateActiveIds = /** - * @private - * @return {?} - */ - function () { - this.activeIds = this.panels.filter((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return panel.isOpen && !panel.disabled; })).map((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return panel.id; })); - }; - NgbAccordion.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-accordion', - exportAs: 'ngbAccordion', - host: { 'class': 'accordion', 'role': 'tablist', '[attr.aria-multiselectable]': '!closeOtherPanels' }, - template: "\n \n \n \n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n " - }] } - ]; - /** @nocollapse */ - NgbAccordion.ctorParameters = function () { return [ - { type: NgbAccordionConfig } - ]; }; - NgbAccordion.propDecorators = { - panels: [{ type: core.ContentChildren, args: [NgbPanel,] }], - activeIds: [{ type: core.Input }], - closeOtherPanels: [{ type: core.Input, args: ['closeOthers',] }], - destroyOnHide: [{ type: core.Input }], - type: [{ type: core.Input }], - panelChange: [{ type: core.Output }] - }; - return NgbAccordion; - }()); - /** - * A directive to put on a button that toggles panel opening and closing. - * - * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) - * - * \@since 4.1.0 - */ - var NgbPanelToggle = /** @class */ (function () { - function NgbPanelToggle(accordion, panel) { - this.accordion = accordion; - this.panel = panel; - } - Object.defineProperty(NgbPanelToggle.prototype, "ngbPanelToggle", { - set: /** - * @param {?} panel - * @return {?} - */ - function (panel) { - if (panel) { - this.panel = panel; - } - }, - enumerable: true, - configurable: true - }); - NgbPanelToggle.decorators = [ - { type: core.Directive, args: [{ - selector: 'button[ngbPanelToggle]', - host: { - 'type': 'button', - '[disabled]': 'panel.disabled', - '[class.collapsed]': '!panel.isOpen', - '[attr.aria-expanded]': 'panel.isOpen', - '[attr.aria-controls]': 'panel.id', - '(click)': 'accordion.toggle(panel.id)' - } - },] } - ]; - /** @nocollapse */ - NgbPanelToggle.ctorParameters = function () { return [ - { type: NgbAccordion }, - { type: NgbPanel, decorators: [{ type: core.Optional }, { type: core.Host }] } - ]; }; - NgbPanelToggle.propDecorators = { - ngbPanelToggle: [{ type: core.Input }] - }; - return NgbPanelToggle; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_ACCORDION_DIRECTIVES = [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle]; - var NgbAccordionModule = /** @class */ (function () { - function NgbAccordionModule() { - } - NgbAccordionModule.decorators = [ - { type: core.NgModule, args: [{ declarations: NGB_ACCORDION_DIRECTIVES, exports: NGB_ACCORDION_DIRECTIVES, imports: [common.CommonModule] },] } - ]; - return NgbAccordionModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ - var NgbAlertConfig = /** @class */ (function () { - function NgbAlertConfig() { - this.dismissible = true; - this.type = 'warning'; - } - NgbAlertConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbAlertConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbAlertConfig_Factory() { return new NgbAlertConfig(); }, token: NgbAlertConfig, providedIn: "root" }); - return NgbAlertConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ - var NgbAlert = /** @class */ (function () { - function NgbAlert(config, _renderer, _element) { - this._renderer = _renderer; - this._element = _element; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - this.close = new core.EventEmitter(); - this.dismissible = config.dismissible; - this.type = config.type; - } - /** - * @return {?} - */ - NgbAlert.prototype.closeHandler = /** - * @return {?} - */ - function () { this.close.emit(null); }; - /** - * @param {?} changes - * @return {?} - */ - NgbAlert.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - /** @type {?} */ - var typeChange = changes['type']; - if (typeChange && !typeChange.firstChange) { - this._renderer.removeClass(this._element.nativeElement, "alert-" + typeChange.previousValue); - this._renderer.addClass(this._element.nativeElement, "alert-" + typeChange.currentValue); - } - }; - /** - * @return {?} - */ - NgbAlert.prototype.ngOnInit = /** - * @return {?} - */ - function () { this._renderer.addClass(this._element.nativeElement, "alert-" + this.type); }; - NgbAlert.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-alert', - changeDetection: core.ChangeDetectionStrategy.OnPush, - encapsulation: core.ViewEncapsulation.None, - host: { 'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible' }, - template: "\n \n \n ", - styles: ["ngb-alert{display:block}"] - }] } - ]; - /** @nocollapse */ - NgbAlert.ctorParameters = function () { return [ - { type: NgbAlertConfig }, - { type: core.Renderer2 }, - { type: core.ElementRef } - ]; }; - NgbAlert.propDecorators = { - dismissible: [{ type: core.Input }], - type: [{ type: core.Input }], - close: [{ type: core.Output }] - }; - return NgbAlert; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbAlertModule = /** @class */ (function () { - function NgbAlertModule() { - } - NgbAlertModule.decorators = [ - { type: core.NgModule, args: [{ declarations: [NgbAlert], exports: [NgbAlert], imports: [common.CommonModule], entryComponents: [NgbAlert] },] } - ]; - return NgbAlertModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbButtonLabel = /** @class */ (function () { - function NgbButtonLabel() { - } - NgbButtonLabel.decorators = [ - { type: core.Directive, args: [{ - selector: '[ngbButtonLabel]', - host: { '[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused' } - },] } - ]; - return NgbButtonLabel; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_CHECKBOX_VALUE_ACCESSOR = { - provide: forms.NG_VALUE_ACCESSOR, - useExisting: core.forwardRef((/** - * @return {?} - */ - function () { return NgbCheckBox; })), - multi: true - }; - /** - * Allows to easily create Bootstrap-style checkbox buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ - var NgbCheckBox = /** @class */ (function () { - function NgbCheckBox(_label, _cd) { - this._label = _label; - this._cd = _cd; - /** - * If `true`, the checkbox button will be disabled - */ - this.disabled = false; - /** - * The form control value when the checkbox is checked. - */ - this.valueChecked = true; - /** - * The form control value when the checkbox is unchecked. - */ - this.valueUnChecked = false; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - } - Object.defineProperty(NgbCheckBox.prototype, "focused", { - set: /** - * @param {?} isFocused - * @return {?} - */ - function (isFocused) { - this._label.focused = isFocused; - if (!isFocused) { - this.onTouched(); - } - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} $event - * @return {?} - */ - NgbCheckBox.prototype.onInputChange = /** - * @param {?} $event - * @return {?} - */ - function ($event) { - /** @type {?} */ - var modelToPropagate = $event.target.checked ? this.valueChecked : this.valueUnChecked; - this.onChange(modelToPropagate); - this.onTouched(); - this.writeValue(modelToPropagate); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbCheckBox.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbCheckBox.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbCheckBox.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this.disabled = isDisabled; - this._label.disabled = isDisabled; - }; - /** - * @param {?} value - * @return {?} - */ - NgbCheckBox.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this.checked = value === this.valueChecked; - this._label.active = this.checked; - // label won't be updated, if it is inside the OnPush component when [ngModel] changes - this._cd.markForCheck(); - }; - NgbCheckBox.decorators = [ - { type: core.Directive, args: [{ - selector: '[ngbButton][type=checkbox]', - host: { - 'autocomplete': 'off', - '[checked]': 'checked', - '[disabled]': 'disabled', - '(change)': 'onInputChange($event)', - '(focus)': 'focused = true', - '(blur)': 'focused = false' - }, - providers: [NGB_CHECKBOX_VALUE_ACCESSOR] - },] } - ]; - /** @nocollapse */ - NgbCheckBox.ctorParameters = function () { return [ - { type: NgbButtonLabel }, - { type: core.ChangeDetectorRef } - ]; }; - NgbCheckBox.propDecorators = { - disabled: [{ type: core.Input }], - valueChecked: [{ type: core.Input }], - valueUnChecked: [{ type: core.Input }] - }; - return NgbCheckBox; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_RADIO_VALUE_ACCESSOR = { - provide: forms.NG_VALUE_ACCESSOR, - useExisting: core.forwardRef((/** - * @return {?} - */ - function () { return NgbRadioGroup; })), - multi: true - }; - /** @type {?} */ - var nextId$1 = 0; - /** - * Allows to easily create Bootstrap-style radio buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ - var NgbRadioGroup = /** @class */ (function () { - function NgbRadioGroup() { - this._radios = new Set(); - this._value = null; - /** - * Name of the radio group applied to radio input elements. - * - * Will be applied to all radio input elements inside the group, - * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves. - * - * If not provided, will be generated in the `ngb-radio-xx` format. - */ - this.name = "ngb-radio-" + nextId$1++; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - } - Object.defineProperty(NgbRadioGroup.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { return this._disabled; }, - set: /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.setDisabledState(isDisabled); }, - enumerable: true, - configurable: true - }); - /** - * @param {?} radio - * @return {?} - */ - NgbRadioGroup.prototype.onRadioChange = /** - * @param {?} radio - * @return {?} - */ - function (radio) { - this.writeValue(radio.value); - this.onChange(radio.value); - }; - /** - * @return {?} - */ - NgbRadioGroup.prototype.onRadioValueUpdate = /** - * @return {?} - */ - function () { this._updateRadiosValue(); }; - /** - * @param {?} radio - * @return {?} - */ - NgbRadioGroup.prototype.register = /** - * @param {?} radio - * @return {?} - */ - function (radio) { this._radios.add(radio); }; - /** - * @param {?} fn - * @return {?} - */ - NgbRadioGroup.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbRadioGroup.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbRadioGroup.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this._disabled = isDisabled; - this._updateRadiosDisabled(); - }; - /** - * @param {?} radio - * @return {?} - */ - NgbRadioGroup.prototype.unregister = /** - * @param {?} radio - * @return {?} - */ - function (radio) { this._radios.delete(radio); }; - /** - * @param {?} value - * @return {?} - */ - NgbRadioGroup.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._value = value; - this._updateRadiosValue(); - }; - /** - * @private - * @return {?} - */ - NgbRadioGroup.prototype._updateRadiosValue = /** - * @private - * @return {?} - */ - function () { - var _this = this; - this._radios.forEach((/** - * @param {?} radio - * @return {?} - */ - function (radio) { return radio.updateValue(_this._value); })); - }; - /** - * @private - * @return {?} - */ - NgbRadioGroup.prototype._updateRadiosDisabled = /** - * @private - * @return {?} - */ - function () { this._radios.forEach((/** - * @param {?} radio - * @return {?} - */ - function (radio) { return radio.updateDisabled(); })); }; - NgbRadioGroup.decorators = [ - { type: core.Directive, args: [{ selector: '[ngbRadioGroup]', host: { 'role': 'radiogroup' }, providers: [NGB_RADIO_VALUE_ACCESSOR] },] } - ]; - NgbRadioGroup.propDecorators = { - name: [{ type: core.Input }] - }; - return NgbRadioGroup; - }()); - /** - * A directive that marks an input of type "radio" as a part of the - * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup). - */ - var NgbRadio = /** @class */ (function () { - function NgbRadio(_group, _label, _renderer, _element, _cd) { - this._group = _group; - this._label = _label; - this._renderer = _renderer; - this._element = _element; - this._cd = _cd; - this._value = null; - this._group.register(this); - this.updateDisabled(); - } - Object.defineProperty(NgbRadio.prototype, "value", { - get: /** - * @return {?} - */ - function () { return this._value; }, - /** - * The form control value when current radio button is checked. - */ - set: /** - * The form control value when current radio button is checked. - * @param {?} value - * @return {?} - */ - function (value) { - this._value = value; - /** @type {?} */ - var stringValue = value ? value.toString() : ''; - this._renderer.setProperty(this._element.nativeElement, 'value', stringValue); - this._group.onRadioValueUpdate(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { return this._group.disabled || this._disabled; }, - /** - * If `true`, current radio button will be disabled. - */ - set: /** - * If `true`, current radio button will be disabled. - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this._disabled = isDisabled !== false; - this.updateDisabled(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "focused", { - set: /** - * @param {?} isFocused - * @return {?} - */ - function (isFocused) { - if (this._label) { - this._label.focused = isFocused; - } - if (!isFocused) { - this._group.onTouched(); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "checked", { - get: /** - * @return {?} - */ - function () { return this._checked; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "nameAttr", { - get: /** - * @return {?} - */ - function () { return this.name || this._group.name; }, - enumerable: true, - configurable: true - }); - /** - * @return {?} - */ - NgbRadio.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { this._group.unregister(this); }; - /** - * @return {?} - */ - NgbRadio.prototype.onChange = /** - * @return {?} - */ - function () { this._group.onRadioChange(this); }; - /** - * @param {?} value - * @return {?} - */ - NgbRadio.prototype.updateValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - // label won't be updated, if it is inside the OnPush component when [ngModel] changes - if (this.value !== value) { - this._cd.markForCheck(); - } - this._checked = this.value === value; - this._label.active = this._checked; - }; - /** - * @return {?} - */ - NgbRadio.prototype.updateDisabled = /** - * @return {?} - */ - function () { this._label.disabled = this.disabled; }; - NgbRadio.decorators = [ - { type: core.Directive, args: [{ - selector: '[ngbButton][type=radio]', - host: { - '[checked]': 'checked', - '[disabled]': 'disabled', - '[name]': 'nameAttr', - '(change)': 'onChange()', - '(focus)': 'focused = true', - '(blur)': 'focused = false' - } - },] } - ]; - /** @nocollapse */ - NgbRadio.ctorParameters = function () { return [ - { type: NgbRadioGroup }, - { type: NgbButtonLabel }, - { type: core.Renderer2 }, - { type: core.ElementRef }, - { type: core.ChangeDetectorRef } - ]; }; - NgbRadio.propDecorators = { - name: [{ type: core.Input }], - value: [{ type: core.Input, args: ['value',] }], - disabled: [{ type: core.Input, args: ['disabled',] }] - }; - return NgbRadio; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_BUTTON_DIRECTIVES = [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio]; - var NgbButtonsModule = /** @class */ (function () { - function NgbButtonsModule() { - } - NgbButtonsModule.decorators = [ - { type: core.NgModule, args: [{ declarations: NGB_BUTTON_DIRECTIVES, exports: NGB_BUTTON_DIRECTIVES },] } - ]; - return NgbButtonsModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all carousels used in the application. - */ - var NgbCarouselConfig = /** @class */ (function () { - function NgbCarouselConfig() { - this.interval = 5000; - this.wrap = true; - this.keyboard = true; - this.pauseOnHover = true; - this.showNavigationArrows = true; - this.showNavigationIndicators = true; - } - NgbCarouselConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbCarouselConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbCarouselConfig_Factory() { return new NgbCarouselConfig(); }, token: NgbCarouselConfig, providedIn: "root" }); - return NgbCarouselConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var nextId$2 = 0; - /** - * A directive that wraps the individual carousel slide. - */ - var NgbSlide = /** @class */ (function () { - function NgbSlide(tplRef) { - this.tplRef = tplRef; - /** - * Slide id that must be unique for the entire document. - * - * If not provided, will be generated in the `ngb-slide-xx` format. - */ - this.id = "ngb-slide-" + nextId$2++; - } - NgbSlide.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbSlide]' },] } - ]; - /** @nocollapse */ - NgbSlide.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - NgbSlide.propDecorators = { - id: [{ type: core.Input }] - }; - return NgbSlide; - }()); - /** - * Carousel is a component to easily create and control slideshows. - * - * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API. - */ - var NgbCarousel = /** @class */ (function () { - function NgbCarousel(config, _platformId, _ngZone, _cd) { - this._platformId = _platformId; - this._ngZone = _ngZone; - this._cd = _cd; - this.NgbSlideEventSource = NgbSlideEventSource; - this._destroy$ = new rxjs.Subject(); - this._interval$ = new rxjs.BehaviorSubject(0); - this._mouseHover$ = new rxjs.BehaviorSubject(false); - this._pauseOnHover$ = new rxjs.BehaviorSubject(false); - this._pause$ = new rxjs.BehaviorSubject(false); - this._wrap$ = new rxjs.BehaviorSubject(false); - /** - * An event emitted right after the slide transition is completed. - * - * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details. - */ - this.slide = new core.EventEmitter(); - this.interval = config.interval; - this.wrap = config.wrap; - this.keyboard = config.keyboard; - this.pauseOnHover = config.pauseOnHover; - this.showNavigationArrows = config.showNavigationArrows; - this.showNavigationIndicators = config.showNavigationIndicators; - } - Object.defineProperty(NgbCarousel.prototype, "interval", { - get: /** - * @return {?} - */ - function () { return this._interval$.value; }, - /** - * Time in milliseconds before the next slide is shown. - */ - set: /** - * Time in milliseconds before the next slide is shown. - * @param {?} value - * @return {?} - */ - function (value) { - this._interval$.next(value); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbCarousel.prototype, "wrap", { - get: /** - * @return {?} - */ - function () { return this._wrap$.value; }, - /** - * If `true`, will 'wrap' the carousel by switching from the last slide back to the first. - */ - set: /** - * If `true`, will 'wrap' the carousel by switching from the last slide back to the first. - * @param {?} value - * @return {?} - */ - function (value) { - this._wrap$.next(value); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbCarousel.prototype, "pauseOnHover", { - get: /** - * @return {?} - */ - function () { return this._pauseOnHover$.value; }, - /** - * If `true`, will pause slide switching when mouse cursor hovers the slide. - * - * @since 2.2.0 - */ - set: /** - * If `true`, will pause slide switching when mouse cursor hovers the slide. - * - * \@since 2.2.0 - * @param {?} value - * @return {?} - */ - function (value) { - this._pauseOnHover$.next(value); - }, - enumerable: true, - configurable: true - }); - /** - * @return {?} - */ - NgbCarousel.prototype.mouseEnter = /** - * @return {?} - */ - function () { - this._mouseHover$.next(true); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.mouseLeave = /** - * @return {?} - */ - function () { - this._mouseHover$.next(false); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.ngAfterContentInit = /** - * @return {?} - */ - function () { - var _this = this; - // setInterval() doesn't play well with SSR and protractor, - // so we should run it in the browser and outside Angular - if (common.isPlatformBrowser(this._platformId)) { - this._ngZone.runOutsideAngular((/** - * @return {?} - */ - function () { - /** @type {?} */ - var hasNextSlide$ = rxjs.combineLatest(_this.slide.pipe(operators.map((/** - * @param {?} slideEvent - * @return {?} - */ - function (slideEvent) { return slideEvent.current; })), operators.startWith(_this.activeId)), _this._wrap$, _this.slides.changes.pipe(operators.startWith(null))) - .pipe(operators.map((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = __read(_a, 2), currentSlideId = _b[0], wrap = _b[1]; - /** @type {?} */ - var slideArr = _this.slides.toArray(); - /** @type {?} */ - var currentSlideIdx = _this._getSlideIdxById(currentSlideId); - return wrap ? slideArr.length > 1 : currentSlideIdx < slideArr.length - 1; - })), operators.distinctUntilChanged()); - rxjs.combineLatest(_this._pause$, _this._pauseOnHover$, _this._mouseHover$, _this._interval$, hasNextSlide$) - .pipe(operators.map((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = __read(_a, 5), pause = _b[0], pauseOnHover = _b[1], mouseHover = _b[2], interval = _b[3], hasNextSlide = _b[4]; - return ((pause || (pauseOnHover && mouseHover) || !hasNextSlide) ? 0 : interval); - })), operators.distinctUntilChanged(), operators.switchMap((/** - * @param {?} interval - * @return {?} - */ - function (interval) { return interval > 0 ? rxjs.timer(interval, interval) : rxjs.NEVER; })), operators.takeUntil(_this._destroy$)) - .subscribe((/** - * @return {?} - */ - function () { return _this._ngZone.run((/** - * @return {?} - */ - function () { return _this.next(NgbSlideEventSource.TIMER); })); })); - })); - } - this.slides.changes.pipe(operators.takeUntil(this._destroy$)).subscribe((/** - * @return {?} - */ - function () { return _this._cd.markForCheck(); })); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - /** @type {?} */ - var activeSlide = this._getSlideById(this.activeId); - this.activeId = activeSlide ? activeSlide.id : (this.slides.length ? this.slides.first.id : null); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { this._destroy$.next(); }; - /** - * Navigates to a slide with the specified identifier. - */ - /** - * Navigates to a slide with the specified identifier. - * @param {?} slideId - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype.select = /** - * Navigates to a slide with the specified identifier. - * @param {?} slideId - * @param {?=} source - * @return {?} - */ - function (slideId, source) { - this._cycleToSelected(slideId, this._getSlideEventDirection(this.activeId, slideId), source); - }; - /** - * Navigates to the previous slide. - */ - /** - * Navigates to the previous slide. - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype.prev = /** - * Navigates to the previous slide. - * @param {?=} source - * @return {?} - */ - function (source) { - this._cycleToSelected(this._getPrevSlide(this.activeId), NgbSlideEventDirection.RIGHT, source); - }; - /** - * Navigates to the next slide. - */ - /** - * Navigates to the next slide. - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype.next = /** - * Navigates to the next slide. - * @param {?=} source - * @return {?} - */ - function (source) { - this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source); - }; - /** - * Pauses cycling through the slides. - */ - /** - * Pauses cycling through the slides. - * @return {?} - */ - NgbCarousel.prototype.pause = /** - * Pauses cycling through the slides. - * @return {?} - */ - function () { this._pause$.next(true); }; - /** - * Restarts cycling through the slides from left to right. - */ - /** - * Restarts cycling through the slides from left to right. - * @return {?} - */ - NgbCarousel.prototype.cycle = /** - * Restarts cycling through the slides from left to right. - * @return {?} - */ - function () { this._pause$.next(false); }; - /** - * @private - * @param {?} slideIdx - * @param {?} direction - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype._cycleToSelected = /** - * @private - * @param {?} slideIdx - * @param {?} direction - * @param {?=} source - * @return {?} - */ - function (slideIdx, direction, source) { - /** @type {?} */ - var selectedSlide = this._getSlideById(slideIdx); - if (selectedSlide && selectedSlide.id !== this.activeId) { - this.slide.emit({ prev: this.activeId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source: source }); - this.activeId = selectedSlide.id; - } - // we get here after the interval fires or any external API call like next(), prev() or select() - this._cd.markForCheck(); - }; - /** - * @private - * @param {?} currentActiveSlideId - * @param {?} nextActiveSlideId - * @return {?} - */ - NgbCarousel.prototype._getSlideEventDirection = /** - * @private - * @param {?} currentActiveSlideId - * @param {?} nextActiveSlideId - * @return {?} - */ - function (currentActiveSlideId, nextActiveSlideId) { - /** @type {?} */ - var currentActiveSlideIdx = this._getSlideIdxById(currentActiveSlideId); - /** @type {?} */ - var nextActiveSlideIdx = this._getSlideIdxById(nextActiveSlideId); - return currentActiveSlideIdx > nextActiveSlideIdx ? NgbSlideEventDirection.RIGHT : NgbSlideEventDirection.LEFT; - }; - /** - * @private - * @param {?} slideId - * @return {?} - */ - NgbCarousel.prototype._getSlideById = /** - * @private - * @param {?} slideId - * @return {?} - */ - function (slideId) { return this.slides.find((/** - * @param {?} slide - * @return {?} - */ - function (slide) { return slide.id === slideId; })); }; - /** - * @private - * @param {?} slideId - * @return {?} - */ - NgbCarousel.prototype._getSlideIdxById = /** - * @private - * @param {?} slideId - * @return {?} - */ - function (slideId) { - return this.slides.toArray().indexOf(this._getSlideById(slideId)); - }; - /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - NgbCarousel.prototype._getNextSlide = /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - function (currentSlideId) { - /** @type {?} */ - var slideArr = this.slides.toArray(); - /** @type {?} */ - var currentSlideIdx = this._getSlideIdxById(currentSlideId); - /** @type {?} */ - var isLastSlide = currentSlideIdx === slideArr.length - 1; - return isLastSlide ? (this.wrap ? slideArr[0].id : slideArr[slideArr.length - 1].id) : - slideArr[currentSlideIdx + 1].id; - }; - /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - NgbCarousel.prototype._getPrevSlide = /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - function (currentSlideId) { - /** @type {?} */ - var slideArr = this.slides.toArray(); - /** @type {?} */ - var currentSlideIdx = this._getSlideIdxById(currentSlideId); - /** @type {?} */ - var isFirstSlide = currentSlideIdx === 0; - return isFirstSlide ? (this.wrap ? slideArr[slideArr.length - 1].id : slideArr[0].id) : - slideArr[currentSlideIdx - 1].id; - }; - NgbCarousel.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-carousel', - exportAs: 'ngbCarousel', - changeDetection: core.ChangeDetectionStrategy.OnPush, - host: { - 'class': 'carousel slide', - '[style.display]': '"block"', - 'tabIndex': '0', - '(keydown.arrowLeft)': 'keyboard && prev(NgbSlideEventSource.ARROW_LEFT)', - '(keydown.arrowRight)': 'keyboard && next(NgbSlideEventSource.ARROW_RIGHT)' - }, - template: "\n
    \n
  1. \n
\n
\n
\n \n
\n
\n \n \n Previous\n \n \n \n Next\n \n " - }] } - ]; - /** @nocollapse */ - NgbCarousel.ctorParameters = function () { return [ - { type: NgbCarouselConfig }, - { type: undefined, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] }, - { type: core.NgZone }, - { type: core.ChangeDetectorRef } - ]; }; - NgbCarousel.propDecorators = { - slides: [{ type: core.ContentChildren, args: [NgbSlide,] }], - activeId: [{ type: core.Input }], - interval: [{ type: core.Input }], - wrap: [{ type: core.Input }], - keyboard: [{ type: core.Input }], - pauseOnHover: [{ type: core.Input }], - showNavigationArrows: [{ type: core.Input }], - showNavigationIndicators: [{ type: core.Input }], - slide: [{ type: core.Output }], - mouseEnter: [{ type: core.HostListener, args: ['mouseenter',] }], - mouseLeave: [{ type: core.HostListener, args: ['mouseleave',] }] - }; - return NgbCarousel; - }()); - /** @enum {string} */ - var NgbSlideEventDirection = { - LEFT: (/** @type {?} */ ('left')), - RIGHT: (/** @type {?} */ ('right')), - }; - /** @enum {string} */ - var NgbSlideEventSource = { - TIMER: 'timer', - ARROW_LEFT: 'arrowLeft', - ARROW_RIGHT: 'arrowRight', - INDICATOR: 'indicator', - }; - /** @type {?} */ - var NGB_CAROUSEL_DIRECTIVES = [NgbCarousel, NgbSlide]; - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbCarouselModule = /** @class */ (function () { - function NgbCarouselModule() { - } - NgbCarouselModule.decorators = [ - { type: core.NgModule, args: [{ declarations: NGB_CAROUSEL_DIRECTIVES, exports: NGB_CAROUSEL_DIRECTIVES, imports: [common.CommonModule] },] } - ]; - return NgbCarouselModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A directive to provide a simple way of hiding and showing elements on the page. - */ - var NgbCollapse = /** @class */ (function () { - function NgbCollapse() { - /** - * If `true`, will collapse the element or show it otherwise. - */ - this.collapsed = false; - } - NgbCollapse.decorators = [ - { type: core.Directive, args: [{ - selector: '[ngbCollapse]', - exportAs: 'ngbCollapse', - host: { '[class.collapse]': 'true', '[class.show]': '!collapsed' } - },] } - ]; - NgbCollapse.propDecorators = { - collapsed: [{ type: core.Input, args: ['ngbCollapse',] }] - }; - return NgbCollapse; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbCollapseModule = /** @class */ (function () { - function NgbCollapseModule() { - } - NgbCollapseModule.decorators = [ - { type: core.NgModule, args: [{ declarations: [NgbCollapse], exports: [NgbCollapse] },] } - ]; - return NgbCollapseModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A simple class that represents a date that datepicker also uses internally. - * - * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods, - * like `.equals()`, `.before()`, etc. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * In many cases it is simpler to manipulate these objects together with - * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * - * \@since 3.0.0 - */ - var /** - * A simple class that represents a date that datepicker also uses internally. - * - * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods, - * like `.equals()`, `.before()`, etc. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * In many cases it is simpler to manipulate these objects together with - * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * - * \@since 3.0.0 - */ - NgbDate = /** @class */ (function () { - function NgbDate(year, month, day) { - this.year = isInteger(year) ? year : null; - this.month = isInteger(month) ? month : null; - this.day = isInteger(day) ? day : null; - } - /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - */ - /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - * @param {?} date - * @return {?} - */ - NgbDate.from = /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - * @param {?} date - * @return {?} - */ - function (date) { - if (date instanceof NgbDate) { - return date; - } - return date ? new NgbDate(date.year, date.month, date.day) : null; - }; - /** - * Checks if the current date is equal to another date. - */ - /** - * Checks if the current date is equal to another date. - * @param {?} other - * @return {?} - */ - NgbDate.prototype.equals = /** - * Checks if the current date is equal to another date. - * @param {?} other - * @return {?} - */ - function (other) { - return other && this.year === other.year && this.month === other.month && this.day === other.day; - }; - /** - * Checks if the current date is before another date. - */ - /** - * Checks if the current date is before another date. - * @param {?} other - * @return {?} - */ - NgbDate.prototype.before = /** - * Checks if the current date is before another date. - * @param {?} other - * @return {?} - */ - function (other) { - if (!other) { - return false; - } - if (this.year === other.year) { - if (this.month === other.month) { - return this.day === other.day ? false : this.day < other.day; - } - else { - return this.month < other.month; - } - } - else { - return this.year < other.year; - } - }; - /** - * Checks if the current date is after another date. - */ - /** - * Checks if the current date is after another date. - * @param {?} other - * @return {?} - */ - NgbDate.prototype.after = /** - * Checks if the current date is after another date. - * @param {?} other - * @return {?} - */ - function (other) { - if (!other) { - return false; - } - if (this.year === other.year) { - if (this.month === other.month) { - return this.day === other.day ? false : this.day > other.day; - } - else { - return this.month > other.month; - } - } - else { - return this.year > other.year; - } - }; - return NgbDate; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * @param {?} jsDate - * @return {?} - */ - function fromJSDate(jsDate) { - return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate()); - } - /** - * @param {?} date - * @return {?} - */ - function toJSDate(date) { - /** @type {?} */ - var jsDate = new Date(date.year, date.month - 1, date.day, 12); - // this is done avoid 30 -> 1930 conversion - if (!isNaN(jsDate.getTime())) { - jsDate.setFullYear(date.year); - } - return jsDate; - } - /** - * @return {?} - */ - function NGB_DATEPICKER_CALENDAR_FACTORY() { - return new NgbCalendarGregorian(); - } - /** - * A service that represents the calendar used by the datepicker. - * - * The default implementation uses the Gregorian calendar. You can inject it in your own - * implementations if necessary to simplify `NgbDate` calculations. - * @abstract - */ - var NgbCalendar = /** @class */ (function () { - function NgbCalendar() { - } - NgbCalendar.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_CALENDAR_FACTORY },] } - ]; - /** @nocollapse */ NgbCalendar.ngInjectableDef = core.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_CALENDAR_FACTORY, token: NgbCalendar, providedIn: "root" }); - return NgbCalendar; - }()); - var NgbCalendarGregorian = /** @class */ (function (_super) { - __extends(NgbCalendarGregorian, _super); - function NgbCalendarGregorian() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getMonths = /** - * @return {?} - */ - function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }; - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarGregorian.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - /** @type {?} */ - var jsDate = toJSDate(date); - switch (period) { - case 'y': - return new NgbDate(date.year + number, 1, 1); - case 'm': - jsDate = new Date(date.year, date.month + number - 1, 1, 12); - break; - case 'd': - jsDate.setDate(jsDate.getDate() + number); - break; - default: - return date; - } - return fromJSDate(jsDate); - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarGregorian.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarGregorian.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = toJSDate(date); - /** @type {?} */ - var day = jsDate.getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarGregorian.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - var thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - var date = week[thursdayIndex]; - /** @type {?} */ - var jsDate = toJSDate(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - var time = jsDate.getTime(); - jsDate.setMonth(0); // Compare with Jan 1 - jsDate.setDate(1); - return Math.floor(Math.round((time - jsDate.getTime()) / 86400000) / 7) + 1; - }; - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getToday = /** - * @return {?} - */ - function () { return fromJSDate(new Date()); }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarGregorian.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - if (!date || !isInteger(date.year) || !isInteger(date.month) || !isInteger(date.day)) { - return false; - } - // year 0 doesn't exist in Gregorian calendar - if (date.year === 0) { - return false; - } - /** @type {?} */ - var jsDate = toJSDate(date); - return !isNaN(jsDate.getTime()) && jsDate.getFullYear() === date.year && jsDate.getMonth() + 1 === date.month && - jsDate.getDate() === date.day; - }; - NgbCalendarGregorian.decorators = [ - { type: core.Injectable } - ]; - return NgbCalendarGregorian; - }(NgbCalendar)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * @param {?} prev - * @param {?} next - * @return {?} - */ - function isChangedDate(prev, next) { - return !dateComparator(prev, next); - } - /** - * @param {?} prev - * @param {?} next - * @return {?} - */ - function isChangedMonth(prev, next) { - return !prev && !next ? false : !prev || !next ? true : prev.year !== next.year || prev.month !== next.month; - } - /** - * @param {?} prev - * @param {?} next - * @return {?} - */ - function dateComparator(prev, next) { - return (!prev && !next) || (!!prev && !!next && prev.equals(next)); - } - /** - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ - function checkMinBeforeMax(minDate, maxDate) { - if (maxDate && minDate && maxDate.before(minDate)) { - throw new Error("'maxDate' " + maxDate + " should be greater than 'minDate' " + minDate); - } - } - /** - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ - function checkDateInRange(date, minDate, maxDate) { - if (date && minDate && date.before(minDate)) { - return minDate; - } - if (date && maxDate && date.after(maxDate)) { - return maxDate; - } - return date; - } - /** - * @param {?} date - * @param {?} state - * @return {?} - */ - function isDateSelectable(date, state) { - var minDate = state.minDate, maxDate = state.maxDate, disabled = state.disabled, markDisabled = state.markDisabled; - // clang-format off - return !(!isDefined(date) || - disabled || - (markDisabled && markDisabled(date, { year: date.year, month: date.month })) || - (minDate && date.before(minDate)) || - (maxDate && date.after(maxDate))); - // clang-format on - } - /** - * @param {?} calendar - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ - function generateSelectBoxMonths(calendar, date, minDate, maxDate) { - if (!date) { - return []; - } - /** @type {?} */ - var months = calendar.getMonths(date.year); - if (minDate && date.year === minDate.year) { - /** @type {?} */ - var index = months.findIndex((/** - * @param {?} month - * @return {?} - */ - function (month) { return month === minDate.month; })); - months = months.slice(index); - } - if (maxDate && date.year === maxDate.year) { - /** @type {?} */ - var index = months.findIndex((/** - * @param {?} month - * @return {?} - */ - function (month) { return month === maxDate.month; })); - months = months.slice(0, index + 1); - } - return months; - } - /** - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ - function generateSelectBoxYears(date, minDate, maxDate) { - if (!date) { - return []; - } - /** @type {?} */ - var start = minDate && minDate.year || date.year - 10; - /** @type {?} */ - var end = maxDate && maxDate.year || date.year + 10; - return Array.from({ length: end - start + 1 }, (/** - * @param {?} e - * @param {?} i - * @return {?} - */ - function (e, i) { return start + i; })); - } - /** - * @param {?} calendar - * @param {?} date - * @param {?} maxDate - * @return {?} - */ - function nextMonthDisabled(calendar, date, maxDate) { - return maxDate && calendar.getNext(date, 'm').after(maxDate); - } - /** - * @param {?} calendar - * @param {?} date - * @param {?} minDate - * @return {?} - */ - function prevMonthDisabled(calendar, date, minDate) { - /** @type {?} */ - var prevDate = calendar.getPrev(date, 'm'); - return minDate && (prevDate.year === minDate.year && prevDate.month < minDate.month || - prevDate.year < minDate.year && minDate.month === 1); - } - /** - * @param {?} calendar - * @param {?} date - * @param {?} state - * @param {?} i18n - * @param {?} force - * @return {?} - */ - function buildMonths(calendar, date, state, i18n, force) { - var displayMonths = state.displayMonths, months = state.months; - // move old months to a temporary array - /** @type {?} */ - var monthsToReuse = months.splice(0, months.length); - // generate new first dates, nullify or reuse months - /** @type {?} */ - var firstDates = Array.from({ length: displayMonths }, (/** - * @param {?} _ - * @param {?} i - * @return {?} - */ - function (_, i) { - /** @type {?} */ - var firstDate = calendar.getNext(date, 'm', i); - months[i] = null; - if (!force) { - /** @type {?} */ - var reusedIndex = monthsToReuse.findIndex((/** - * @param {?} month - * @return {?} - */ - function (month) { return month.firstDate.equals(firstDate); })); - // move reused month back to months - if (reusedIndex !== -1) { - months[i] = monthsToReuse.splice(reusedIndex, 1)[0]; - } - } - return firstDate; - })); - // rebuild nullified months - firstDates.forEach((/** - * @param {?} firstDate - * @param {?} i - * @return {?} - */ - function (firstDate, i) { - if (months[i] === null) { - months[i] = buildMonth(calendar, firstDate, state, i18n, monthsToReuse.shift() || (/** @type {?} */ ({}))); - } - })); - return months; - } - /** - * @param {?} calendar - * @param {?} date - * @param {?} state - * @param {?} i18n - * @param {?=} month - * @return {?} - */ - function buildMonth(calendar, date, state, i18n, month) { - if (month === void 0) { month = (/** @type {?} */ ({})); } - var dayTemplateData = state.dayTemplateData, minDate = state.minDate, maxDate = state.maxDate, firstDayOfWeek = state.firstDayOfWeek, markDisabled = state.markDisabled, outsideDays = state.outsideDays; - /** @type {?} */ - var calendarToday = calendar.getToday(); - month.firstDate = null; - month.lastDate = null; - month.number = date.month; - month.year = date.year; - month.weeks = month.weeks || []; - month.weekdays = month.weekdays || []; - date = getFirstViewDate(calendar, date, firstDayOfWeek); - // month has weeks - for (var week = 0; week < calendar.getWeeksPerMonth(); week++) { - /** @type {?} */ - var weekObject = month.weeks[week]; - if (!weekObject) { - weekObject = month.weeks[week] = { number: 0, days: [], collapsed: true }; - } - /** @type {?} */ - var days = weekObject.days; - // week has days - for (var day = 0; day < calendar.getDaysPerWeek(); day++) { - if (week === 0) { - month.weekdays[day] = calendar.getWeekday(date); - } - /** @type {?} */ - var newDate = new NgbDate(date.year, date.month, date.day); - /** @type {?} */ - var nextDate = calendar.getNext(newDate); - /** @type {?} */ - var ariaLabel = i18n.getDayAriaLabel(newDate); - // marking date as disabled - /** @type {?} */ - var disabled = !!((minDate && newDate.before(minDate)) || (maxDate && newDate.after(maxDate))); - if (!disabled && markDisabled) { - disabled = markDisabled(newDate, { month: month.number, year: month.year }); - } - // today - /** @type {?} */ - var today = newDate.equals(calendarToday); - // adding user-provided data to the context - /** @type {?} */ - var contextUserData = dayTemplateData ? dayTemplateData(newDate, { month: month.number, year: month.year }) : undefined; - // saving first date of the month - if (month.firstDate === null && newDate.month === month.number) { - month.firstDate = newDate; - } - // saving last date of the month - if (newDate.month === month.number && nextDate.month !== month.number) { - month.lastDate = newDate; - } - /** @type {?} */ - var dayObject = days[day]; - if (!dayObject) { - dayObject = days[day] = (/** @type {?} */ ({})); - } - dayObject.date = newDate; - dayObject.context = Object.assign(dayObject.context || {}, { - $implicit: newDate, - date: newDate, - data: contextUserData, - currentMonth: month.number, disabled: disabled, - focused: false, - selected: false, today: today - }); - dayObject.tabindex = -1; - dayObject.ariaLabel = ariaLabel; - dayObject.hidden = false; - date = nextDate; - } - weekObject.number = calendar.getWeekNumber(days.map((/** - * @param {?} day - * @return {?} - */ - function (day) { return day.date; })), firstDayOfWeek); - // marking week as collapsed - weekObject.collapsed = outsideDays === 'collapsed' && days[0].date.month !== month.number && - days[days.length - 1].date.month !== month.number; - } - return month; - } - /** - * @param {?} calendar - * @param {?} date - * @param {?} firstDayOfWeek - * @return {?} - */ - function getFirstViewDate(calendar, date, firstDayOfWeek) { - /** @type {?} */ - var daysPerWeek = calendar.getDaysPerWeek(); - /** @type {?} */ - var firstMonthDate = new NgbDate(date.year, date.month, 1); - /** @type {?} */ - var dayOfWeek = calendar.getWeekday(firstMonthDate) % daysPerWeek; - return calendar.getPrev(firstMonthDate, 'd', (daysPerWeek + dayOfWeek - firstDayOfWeek) % daysPerWeek); - } - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * @param {?} locale - * @return {?} - */ - function NGB_DATEPICKER_18N_FACTORY(locale) { - return new NgbDatepickerI18nDefault(locale); - } - /** - * A service supplying i18n data to the datepicker component. - * - * The default implementation of this service uses the Angular locale and registered locale data for - * weekdays and month names (as explained in the Angular i18n guide). - * - * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year - * numerals. For other static labels the datepicker uses the default Angular i18n. - * - * See the [i18n demo](#/components/datepicker/examples#i18n) and - * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define - * a custom provider for i18n. - * @abstract - */ - var NgbDatepickerI18n = /** @class */ (function () { - function NgbDatepickerI18n() { - } - /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * @since 3.0.0 - */ - /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * \@since 3.0.0 - * @param {?} date - * @return {?} - */ - NgbDatepickerI18n.prototype.getDayNumerals = /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * \@since 3.0.0 - * @param {?} date - * @return {?} - */ - function (date) { return "" + date.day; }; - /** - * Returns the textual representation of a week number rendered by datepicker. - * - * @since 3.0.0 - */ - /** - * Returns the textual representation of a week number rendered by datepicker. - * - * \@since 3.0.0 - * @param {?} weekNumber - * @return {?} - */ - NgbDatepickerI18n.prototype.getWeekNumerals = /** - * Returns the textual representation of a week number rendered by datepicker. - * - * \@since 3.0.0 - * @param {?} weekNumber - * @return {?} - */ - function (weekNumber) { return "" + weekNumber; }; - /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * @since 3.0.0 - */ - /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * \@since 3.0.0 - * @param {?} year - * @return {?} - */ - NgbDatepickerI18n.prototype.getYearNumerals = /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * \@since 3.0.0 - * @param {?} year - * @return {?} - */ - function (year) { return "" + year; }; - NgbDatepickerI18n.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_18N_FACTORY, deps: [core.LOCALE_ID] },] } - ]; - /** @nocollapse */ NgbDatepickerI18n.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbDatepickerI18n_Factory() { return NGB_DATEPICKER_18N_FACTORY(core.ɵɵinject(core.LOCALE_ID)); }, token: NgbDatepickerI18n, providedIn: "root" }); - return NgbDatepickerI18n; - }()); - var NgbDatepickerI18nDefault = /** @class */ (function (_super) { - __extends(NgbDatepickerI18nDefault, _super); - function NgbDatepickerI18nDefault(_locale) { - var _this = _super.call(this) || this; - _this._locale = _locale; - /** @type {?} */ - var weekdaysStartingOnSunday = common.getLocaleDayNames(_locale, common.FormStyle.Standalone, common.TranslationWidth.Short); - _this._weekdaysShort = weekdaysStartingOnSunday.map((/** - * @param {?} day - * @param {?} index - * @return {?} - */ - function (day, index) { return weekdaysStartingOnSunday[(index + 1) % 7]; })); - _this._monthsShort = common.getLocaleMonthNames(_locale, common.FormStyle.Standalone, common.TranslationWidth.Abbreviated); - _this._monthsFull = common.getLocaleMonthNames(_locale, common.FormStyle.Standalone, common.TranslationWidth.Wide); - return _this; - } - /** - * @param {?} weekday - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getWeekdayShortName = /** - * @param {?} weekday - * @return {?} - */ - function (weekday) { return this._weekdaysShort[weekday - 1]; }; - /** - * @param {?} month - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getMonthShortName = /** - * @param {?} month - * @return {?} - */ - function (month) { return this._monthsShort[month - 1]; }; - /** - * @param {?} month - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getMonthFullName = /** - * @param {?} month - * @return {?} - */ - function (month) { return this._monthsFull[month - 1]; }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getDayAriaLabel = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = new Date(date.year, date.month - 1, date.day); - return common.formatDate(jsDate, 'fullDate', this._locale); - }; - NgbDatepickerI18nDefault.decorators = [ - { type: core.Injectable } - ]; - /** @nocollapse */ - NgbDatepickerI18nDefault.ctorParameters = function () { return [ - { type: String, decorators: [{ type: core.Inject, args: [core.LOCALE_ID,] }] } - ]; }; - return NgbDatepickerI18nDefault; - }(NgbDatepickerI18n)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbDatepickerService = /** @class */ (function () { - function NgbDatepickerService(_calendar, _i18n) { - this._calendar = _calendar; - this._i18n = _i18n; - this._model$ = new rxjs.Subject(); - this._select$ = new rxjs.Subject(); - this._state = { - disabled: false, - displayMonths: 1, - firstDayOfWeek: 1, - focusVisible: false, - months: [], - navigation: 'select', - outsideDays: 'visible', - prevDisabled: false, - nextDisabled: false, - selectBoxes: { years: [], months: [] }, - selectedDate: null - }; - } - Object.defineProperty(NgbDatepickerService.prototype, "model$", { - get: /** - * @return {?} - */ - function () { return this._model$.pipe(operators.filter((/** - * @param {?} model - * @return {?} - */ - function (model) { return model.months.length > 0; }))); }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "select$", { - get: /** - * @return {?} - */ - function () { return this._select$.pipe(operators.filter((/** - * @param {?} date - * @return {?} - */ - function (date) { return date !== null; }))); }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "dayTemplateData", { - set: /** - * @param {?} dayTemplateData - * @return {?} - */ - function (dayTemplateData) { - if (this._state.dayTemplateData !== dayTemplateData) { - this._nextState({ dayTemplateData: dayTemplateData }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "disabled", { - set: /** - * @param {?} disabled - * @return {?} - */ - function (disabled) { - if (this._state.disabled !== disabled) { - this._nextState({ disabled: disabled }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "displayMonths", { - set: /** - * @param {?} displayMonths - * @return {?} - */ - function (displayMonths) { - displayMonths = toInteger(displayMonths); - if (isInteger(displayMonths) && displayMonths > 0 && this._state.displayMonths !== displayMonths) { - this._nextState({ displayMonths: displayMonths }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "firstDayOfWeek", { - set: /** - * @param {?} firstDayOfWeek - * @return {?} - */ - function (firstDayOfWeek) { - firstDayOfWeek = toInteger(firstDayOfWeek); - if (isInteger(firstDayOfWeek) && firstDayOfWeek >= 0 && this._state.firstDayOfWeek !== firstDayOfWeek) { - this._nextState({ firstDayOfWeek: firstDayOfWeek }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "focusVisible", { - set: /** - * @param {?} focusVisible - * @return {?} - */ - function (focusVisible) { - if (this._state.focusVisible !== focusVisible && !this._state.disabled) { - this._nextState({ focusVisible: focusVisible }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "maxDate", { - set: /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var maxDate = this.toValidDate(date, null); - if (isChangedDate(this._state.maxDate, maxDate)) { - this._nextState({ maxDate: maxDate }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "markDisabled", { - set: /** - * @param {?} markDisabled - * @return {?} - */ - function (markDisabled) { - if (this._state.markDisabled !== markDisabled) { - this._nextState({ markDisabled: markDisabled }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "minDate", { - set: /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var minDate = this.toValidDate(date, null); - if (isChangedDate(this._state.minDate, minDate)) { - this._nextState({ minDate: minDate }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "navigation", { - set: /** - * @param {?} navigation - * @return {?} - */ - function (navigation) { - if (this._state.navigation !== navigation) { - this._nextState({ navigation: navigation }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "outsideDays", { - set: /** - * @param {?} outsideDays - * @return {?} - */ - function (outsideDays) { - if (this._state.outsideDays !== outsideDays) { - this._nextState({ outsideDays: outsideDays }); - } - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerService.prototype.focus = /** - * @param {?} date - * @return {?} - */ - function (date) { - if (!this._state.disabled && this._calendar.isValid(date) && isChangedDate(this._state.focusDate, date)) { - this._nextState({ focusDate: date }); - } - }; - /** - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbDatepickerService.prototype.focusMove = /** - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (period, number) { - this.focus(this._calendar.getNext(this._state.focusDate, period, number)); - }; - /** - * @return {?} - */ - NgbDatepickerService.prototype.focusSelect = /** - * @return {?} - */ - function () { - if (isDateSelectable(this._state.focusDate, this._state)) { - this.select(this._state.focusDate, { emitEvent: true }); - } - }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerService.prototype.open = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var firstDate = this.toValidDate(date, this._calendar.getToday()); - if (!this._state.disabled && (!this._state.firstDate || isChangedMonth(this._state.firstDate, date))) { - this._nextState({ firstDate: firstDate }); - } - }; - /** - * @param {?} date - * @param {?=} options - * @return {?} - */ - NgbDatepickerService.prototype.select = /** - * @param {?} date - * @param {?=} options - * @return {?} - */ - function (date, options) { - if (options === void 0) { options = {}; } - /** @type {?} */ - var selectedDate = this.toValidDate(date, null); - if (!this._state.disabled) { - if (isChangedDate(this._state.selectedDate, selectedDate)) { - this._nextState({ selectedDate: selectedDate }); - } - if (options.emitEvent && isDateSelectable(selectedDate, this._state)) { - this._select$.next(selectedDate); - } - } - }; - /** - * @param {?} date - * @param {?=} defaultValue - * @return {?} - */ - NgbDatepickerService.prototype.toValidDate = /** - * @param {?} date - * @param {?=} defaultValue - * @return {?} - */ - function (date, defaultValue) { - /** @type {?} */ - var ngbDate = NgbDate.from(date); - if (defaultValue === undefined) { - defaultValue = this._calendar.getToday(); - } - return this._calendar.isValid(ngbDate) ? ngbDate : defaultValue; - }; - /** - * @private - * @param {?} patch - * @return {?} - */ - NgbDatepickerService.prototype._nextState = /** - * @private - * @param {?} patch - * @return {?} - */ - function (patch) { - /** @type {?} */ - var newState = this._updateState(patch); - this._patchContexts(newState); - this._state = newState; - this._model$.next(this._state); - }; - /** - * @private - * @param {?} state - * @return {?} - */ - NgbDatepickerService.prototype._patchContexts = /** - * @private - * @param {?} state - * @return {?} - */ - function (state) { - var months = state.months, displayMonths = state.displayMonths, selectedDate = state.selectedDate, focusDate = state.focusDate, focusVisible = state.focusVisible, disabled = state.disabled, outsideDays = state.outsideDays; - state.months.forEach((/** - * @param {?} month - * @return {?} - */ - function (month) { - month.weeks.forEach((/** - * @param {?} week - * @return {?} - */ - function (week) { - week.days.forEach((/** - * @param {?} day - * @return {?} - */ - function (day) { - // patch focus flag - if (focusDate) { - day.context.focused = focusDate.equals(day.date) && focusVisible; - } - // calculating tabindex - day.tabindex = !disabled && day.date.equals(focusDate) && focusDate.month === month.number ? 0 : -1; - // override context disabled - if (disabled === true) { - day.context.disabled = true; - } - // patch selection flag - if (selectedDate !== undefined) { - day.context.selected = selectedDate !== null && selectedDate.equals(day.date); - } - // visibility - if (month.number !== day.date.month) { - day.hidden = outsideDays === 'hidden' || outsideDays === 'collapsed' || - (displayMonths > 1 && day.date.after(months[0].firstDate) && - day.date.before(months[displayMonths - 1].lastDate)); - } - })); - })); - })); - }; - /** - * @private - * @param {?} patch - * @return {?} - */ - NgbDatepickerService.prototype._updateState = /** - * @private - * @param {?} patch - * @return {?} - */ - function (patch) { - // patching fields - /** @type {?} */ - var state = Object.assign({}, this._state, patch); - /** @type {?} */ - var startDate = state.firstDate; - // min/max dates changed - if ('minDate' in patch || 'maxDate' in patch) { - checkMinBeforeMax(state.minDate, state.maxDate); - state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate); - state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate); - startDate = state.focusDate; - } - // disabled - if ('disabled' in patch) { - state.focusVisible = false; - } - // initial rebuild via 'select()' - if ('selectedDate' in patch && this._state.months.length === 0) { - startDate = state.selectedDate; - } - // terminate early if only focus visibility was changed - if ('focusVisible' in patch) { - return state; - } - // focus date changed - if ('focusDate' in patch) { - state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate); - startDate = state.focusDate; - // nothing to rebuild if only focus changed and it is still visible - if (state.months.length !== 0 && !state.focusDate.before(state.firstDate) && - !state.focusDate.after(state.lastDate)) { - return state; - } - } - // first date changed - if ('firstDate' in patch) { - state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate); - startDate = state.firstDate; - } - // rebuilding months - if (startDate) { - /** @type {?} */ - var forceRebuild = 'dayTemplateData' in patch || 'firstDayOfWeek' in patch || 'markDisabled' in patch || - 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch || 'outsideDays' in patch; - /** @type {?} */ - var months = buildMonths(this._calendar, startDate, state, this._i18n, forceRebuild); - // updating months and boundary dates - state.months = months; - state.firstDate = months.length > 0 ? months[0].firstDate : undefined; - state.lastDate = months.length > 0 ? months[months.length - 1].lastDate : undefined; - // reset selected date if 'markDisabled' returns true - if ('selectedDate' in patch && !isDateSelectable(state.selectedDate, state)) { - state.selectedDate = null; - } - // adjusting focus after months were built - if ('firstDate' in patch) { - if (state.focusDate === undefined || state.focusDate.before(state.firstDate) || - state.focusDate.after(state.lastDate)) { - state.focusDate = startDate; - } - } - // adjusting months/years for the select box navigation - /** @type {?} */ - var yearChanged = !this._state.firstDate || this._state.firstDate.year !== state.firstDate.year; - /** @type {?} */ - var monthChanged = !this._state.firstDate || this._state.firstDate.month !== state.firstDate.month; - if (state.navigation === 'select') { - // years -> boundaries (min/max were changed) - if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.years.length === 0 || yearChanged) { - state.selectBoxes.years = generateSelectBoxYears(state.firstDate, state.minDate, state.maxDate); - } - // months -> when current year or boundaries change - if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.months.length === 0 || yearChanged) { - state.selectBoxes.months = - generateSelectBoxMonths(this._calendar, state.firstDate, state.minDate, state.maxDate); - } - } - else { - state.selectBoxes = { years: [], months: [] }; - } - // updating navigation arrows -> boundaries change (min/max) or month/year changes - if ((state.navigation === 'arrows' || state.navigation === 'select') && - (monthChanged || yearChanged || 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch)) { - state.prevDisabled = state.disabled || prevMonthDisabled(this._calendar, state.firstDate, state.minDate); - state.nextDisabled = state.disabled || nextMonthDisabled(this._calendar, state.lastDate, state.maxDate); - } - } - return state; - }; - NgbDatepickerService.decorators = [ - { type: core.Injectable } - ]; - /** @nocollapse */ - NgbDatepickerService.ctorParameters = function () { return [ - { type: NgbCalendar }, - { type: NgbDatepickerI18n } - ]; }; - return NgbDatepickerService; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @enum {number} */ - var Key = { - Tab: 9, - Enter: 13, - Escape: 27, - Space: 32, - PageUp: 33, - PageDown: 34, - End: 35, - Home: 36, - ArrowLeft: 37, - ArrowUp: 38, - ArrowRight: 39, - ArrowDown: 40, - }; - Key[Key.Tab] = 'Tab'; - Key[Key.Enter] = 'Enter'; - Key[Key.Escape] = 'Escape'; - Key[Key.Space] = 'Space'; - Key[Key.PageUp] = 'PageUp'; - Key[Key.PageDown] = 'PageDown'; - Key[Key.End] = 'End'; - Key[Key.Home] = 'Home'; - Key[Key.ArrowLeft] = 'ArrowLeft'; - Key[Key.ArrowUp] = 'ArrowUp'; - Key[Key.ArrowRight] = 'ArrowRight'; - Key[Key.ArrowDown] = 'ArrowDown'; - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbDatepickerKeyMapService = /** @class */ (function () { - function NgbDatepickerKeyMapService(_service, _calendar) { - var _this = this; - this._service = _service; - this._calendar = _calendar; - _service.model$.subscribe((/** - * @param {?} model - * @return {?} - */ - function (model) { - _this._minDate = model.minDate; - _this._maxDate = model.maxDate; - _this._firstViewDate = model.firstDate; - _this._lastViewDate = model.lastDate; - })); - } - /** - * @param {?} event - * @return {?} - */ - NgbDatepickerKeyMapService.prototype.processKey = /** - * @param {?} event - * @return {?} - */ - function (event) { - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.PageUp: - this._service.focusMove(event.shiftKey ? 'y' : 'm', -1); - break; - case Key.PageDown: - this._service.focusMove(event.shiftKey ? 'y' : 'm', 1); - break; - case Key.End: - this._service.focus(event.shiftKey ? this._maxDate : this._lastViewDate); - break; - case Key.Home: - this._service.focus(event.shiftKey ? this._minDate : this._firstViewDate); - break; - case Key.ArrowLeft: - this._service.focusMove('d', -1); - break; - case Key.ArrowUp: - this._service.focusMove('d', -this._calendar.getDaysPerWeek()); - break; - case Key.ArrowRight: - this._service.focusMove('d', 1); - break; - case Key.ArrowDown: - this._service.focusMove('d', this._calendar.getDaysPerWeek()); - break; - case Key.Enter: - case Key.Space: - this._service.focusSelect(); - break; - default: - return; - } - // note 'return' in default case - event.preventDefault(); - event.stopPropagation(); - }; - NgbDatepickerKeyMapService.decorators = [ - { type: core.Injectable } - ]; - /** @nocollapse */ - NgbDatepickerKeyMapService.ctorParameters = function () { return [ - { type: NgbDatepickerService }, - { type: NgbCalendar } - ]; }; - return NgbDatepickerKeyMapService; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @enum {number} */ - var NavigationEvent = { - PREV: 0, - NEXT: 1, - }; - NavigationEvent[NavigationEvent.PREV] = 'PREV'; - NavigationEvent[NavigationEvent.NEXT] = 'NEXT'; - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the datepickers used in the application. - */ - var NgbDatepickerConfig = /** @class */ (function () { - function NgbDatepickerConfig() { - this.displayMonths = 1; - this.firstDayOfWeek = 1; - this.navigation = 'select'; - this.outsideDays = 'visible'; - this.showWeekdays = true; - this.showWeekNumbers = false; - } - NgbDatepickerConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbDatepickerConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbDatepickerConfig_Factory() { return new NgbDatepickerConfig(); }, token: NgbDatepickerConfig, providedIn: "root" }); - return NgbDatepickerConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * @return {?} - */ - function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() { - return new NgbDateStructAdapter(); - } - /** - * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and - * any provided user date model `D`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding datepicker to a form control, - * ex. `[(ngModel)]="userDateModel"`. Here `userDateModel` can be of any type. - * - * The default datepicker implementation assumes we use `NgbDateStruct` as a user model. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details - * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example. - * @abstract - * @template D - */ - var NgbDateAdapter = /** @class */ (function () { - function NgbDateAdapter() { - } - NgbDateAdapter.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY },] } - ]; - /** @nocollapse */ NgbDateAdapter.ngInjectableDef = core.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY, token: NgbDateAdapter, providedIn: "root" }); - return NgbDateAdapter; - }()); - var NgbDateStructAdapter = /** @class */ (function (_super) { - __extends(NgbDateStructAdapter, _super); - function NgbDateStructAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Converts a NgbDateStruct value into NgbDateStruct value - */ - /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - NgbDateStructAdapter.prototype.fromModel = /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - function (date) { - return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ? - { year: date.year, month: date.month, day: date.day } : - null; - }; - /** - * Converts a NgbDateStruct value into NgbDateStruct value - */ - /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - NgbDateStructAdapter.prototype.toModel = /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - function (date) { - return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ? - { year: date.year, month: date.month, day: date.day } : - null; - }; - NgbDateStructAdapter.decorators = [ - { type: core.Injectable } - ]; - return NgbDateStructAdapter; - }(NgbDateAdapter)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_DATEPICKER_VALUE_ACCESSOR = { - provide: forms.NG_VALUE_ACCESSOR, - useExisting: core.forwardRef((/** - * @return {?} - */ - function () { return NgbDatepicker; })), - multi: true - }; - /** - * A highly configurable component that helps you with selecting calendar dates. - * - * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup. - */ - var NgbDatepicker = /** @class */ (function () { - function NgbDatepicker(_keyMapService, _service, _calendar, i18n, config, _cd, _elementRef, _ngbDateAdapter, _ngZone) { - var _this = this; - this._keyMapService = _keyMapService; - this._service = _service; - this._calendar = _calendar; - this.i18n = i18n; - this._cd = _cd; - this._elementRef = _elementRef; - this._ngbDateAdapter = _ngbDateAdapter; - this._ngZone = _ngZone; - this._destroyed$ = new rxjs.Subject(); - /** - * An event emitted right before the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - this.navigate = new core.EventEmitter(); - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - */ - this.select = new core.EventEmitter(); - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate', - 'maxDate', 'navigation', 'outsideDays', 'showWeekdays', 'showWeekNumbers', 'startDate'] - .forEach((/** - * @param {?} input - * @return {?} - */ - function (input) { return _this[input] = config[input]; })); - _service.select$.pipe(operators.takeUntil(this._destroyed$)).subscribe((/** - * @param {?} date - * @return {?} - */ - function (date) { _this.select.emit(date); })); - _service.model$.pipe(operators.takeUntil(this._destroyed$)).subscribe((/** - * @param {?} model - * @return {?} - */ - function (model) { - /** @type {?} */ - var newDate = model.firstDate; - /** @type {?} */ - var oldDate = _this.model ? _this.model.firstDate : null; - /** @type {?} */ - var navigationPrevented = false; - // emitting navigation event if the first month changes - if (!newDate.equals(oldDate)) { - _this.navigate.emit({ - current: oldDate ? { year: oldDate.year, month: oldDate.month } : null, - next: { year: newDate.year, month: newDate.month }, - preventDefault: (/** - * @return {?} - */ - function () { return navigationPrevented = true; }) - }); - // can't prevent the very first navigation - if (navigationPrevented && oldDate !== null) { - _this._service.open(oldDate); - return; - } - } - /** @type {?} */ - var newSelectedDate = model.selectedDate; - /** @type {?} */ - var newFocusedDate = model.focusDate; - /** @type {?} */ - var oldFocusedDate = _this.model ? _this.model.focusDate : null; - _this.model = model; - // handling selection change - if (isChangedDate(newSelectedDate, _this._controlValue)) { - _this._controlValue = newSelectedDate; - _this.onTouched(); - _this.onChange(_this._ngbDateAdapter.toModel(newSelectedDate)); - } - // handling focus change - if (isChangedDate(newFocusedDate, oldFocusedDate) && oldFocusedDate && model.focusVisible) { - _this.focus(); - } - _cd.markForCheck(); - })); - } - /** - * @return {?} - */ - NgbDatepicker.prototype.focus = /** - * @return {?} - */ - function () { - var _this = this; - this._ngZone.onStable.asObservable().pipe(operators.take(1)).subscribe((/** - * @return {?} - */ - function () { - /** @type {?} */ - var elementToFocus = _this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]'); - if (elementToFocus) { - elementToFocus.focus(); - } - })); - }; - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - */ - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - NgbDatepicker.prototype.navigateTo = /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - function (date) { - this._service.open(NgbDate.from(date ? date.day ? (/** @type {?} */ (date)) : __assign({}, date, { day: 1 }) : null)); - }; - /** - * @return {?} - */ - NgbDatepicker.prototype.ngAfterViewInit = /** - * @return {?} - */ - function () { - var _this = this; - this._ngZone.runOutsideAngular((/** - * @return {?} - */ - function () { - /** @type {?} */ - var focusIns$ = rxjs.fromEvent(_this._monthsEl.nativeElement, 'focusin'); - /** @type {?} */ - var focusOuts$ = rxjs.fromEvent(_this._monthsEl.nativeElement, 'focusout'); - // we're changing 'focusVisible' only when entering or leaving months view - // and ignoring all focus events where both 'target' and 'related' target are day cells - rxjs.merge(focusIns$, focusOuts$) - .pipe(operators.filter((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var target = _a.target, relatedTarget = _a.relatedTarget; - return !(hasClassName(target, 'ngb-dp-day') && hasClassName(relatedTarget, 'ngb-dp-day')); - })), operators.takeUntil(_this._destroyed$)) - .subscribe((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var type = _a.type; - return _this._ngZone.run((/** - * @return {?} - */ - function () { return _this._service.focusVisible = type === 'focusin'; })); - })); - })); - }; - /** - * @return {?} - */ - NgbDatepicker.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { this._destroyed$.next(); }; - /** - * @return {?} - */ - NgbDatepicker.prototype.ngOnInit = /** - * @return {?} - */ - function () { - var _this = this; - if (this.model === undefined) { - ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate', - 'outsideDays'] - .forEach((/** - * @param {?} input - * @return {?} - */ - function (input) { return _this._service[input] = _this[input]; })); - this.navigateTo(this.startDate); - } - }; - /** - * @param {?} changes - * @return {?} - */ - NgbDatepicker.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - var _this = this; - ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate', - 'outsideDays'] - .filter((/** - * @param {?} input - * @return {?} - */ - function (input) { return input in changes; })) - .forEach((/** - * @param {?} input - * @return {?} - */ - function (input) { return _this._service[input] = _this[input]; })); - if ('startDate' in changes) { - var _a = changes.startDate, currentValue = _a.currentValue, previousValue = _a.previousValue; - if (isChangedMonth(previousValue, currentValue)) { - this.navigateTo(this.startDate); - } - } - }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepicker.prototype.onDateSelect = /** - * @param {?} date - * @return {?} - */ - function (date) { - this._service.focus(date); - this._service.select(date, { emitEvent: true }); - }; - /** - * @param {?} event - * @return {?} - */ - NgbDatepicker.prototype.onKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { this._keyMapService.processKey(event); }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepicker.prototype.onNavigateDateSelect = /** - * @param {?} date - * @return {?} - */ - function (date) { this._service.open(date); }; - /** - * @param {?} event - * @return {?} - */ - NgbDatepicker.prototype.onNavigateEvent = /** - * @param {?} event - * @return {?} - */ - function (event) { - switch (event) { - case NavigationEvent.PREV: - this._service.open(this._calendar.getPrev(this.model.firstDate, 'm', 1)); - break; - case NavigationEvent.NEXT: - this._service.open(this._calendar.getNext(this.model.firstDate, 'm', 1)); - break; - } - }; - /** - * @param {?} fn - * @return {?} - */ - NgbDatepicker.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbDatepicker.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbDatepicker.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this._service.disabled = isDisabled; }; - /** - * @param {?} value - * @return {?} - */ - NgbDatepicker.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._controlValue = NgbDate.from(this._ngbDateAdapter.fromModel(value)); - this._service.select(this._controlValue); - }; - NgbDatepicker.decorators = [ - { type: core.Component, args: [{ - exportAs: 'ngbDatepicker', - selector: 'ngb-datepicker', - changeDetection: core.ChangeDetectionStrategy.OnPush, - encapsulation: core.ViewEncapsulation.None, - template: "\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n \n
\n
1 && navigation === 'select')\"\n class=\"ngb-dp-month-name\">\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n \n \n
\n
\n
\n\n \n ", - providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService, NgbDatepickerKeyMapService], - styles: ["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"] - }] } - ]; - /** @nocollapse */ - NgbDatepicker.ctorParameters = function () { return [ - { type: NgbDatepickerKeyMapService }, - { type: NgbDatepickerService }, - { type: NgbCalendar }, - { type: NgbDatepickerI18n }, - { type: NgbDatepickerConfig }, - { type: core.ChangeDetectorRef }, - { type: core.ElementRef }, - { type: NgbDateAdapter }, - { type: core.NgZone } - ]; }; - NgbDatepicker.propDecorators = { - _monthsEl: [{ type: core.ViewChild, args: ['months', { static: true },] }], - dayTemplate: [{ type: core.Input }], - dayTemplateData: [{ type: core.Input }], - displayMonths: [{ type: core.Input }], - firstDayOfWeek: [{ type: core.Input }], - footerTemplate: [{ type: core.Input }], - markDisabled: [{ type: core.Input }], - maxDate: [{ type: core.Input }], - minDate: [{ type: core.Input }], - navigation: [{ type: core.Input }], - outsideDays: [{ type: core.Input }], - showWeekdays: [{ type: core.Input }], - showWeekNumbers: [{ type: core.Input }], - startDate: [{ type: core.Input }], - navigate: [{ type: core.Output }], - select: [{ type: core.Output }] - }; - return NgbDatepicker; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbDatepickerMonthView = /** @class */ (function () { - function NgbDatepickerMonthView(i18n) { - this.i18n = i18n; - this.select = new core.EventEmitter(); - } - /** - * @param {?} day - * @return {?} - */ - NgbDatepickerMonthView.prototype.doSelect = /** - * @param {?} day - * @return {?} - */ - function (day) { - if (!day.context.disabled && !day.hidden) { - this.select.emit(day.date); - } - }; - NgbDatepickerMonthView.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-datepicker-month-view', - host: { 'role': 'grid' }, - encapsulation: core.ViewEncapsulation.None, - template: "\n
\n
\n
\n {{ i18n.getWeekdayShortName(w) }}\n
\n
\n \n
\n
{{ i18n.getWeekNumerals(week.number) }}
\n
\n \n \n \n
\n
\n
\n ", - styles: ["ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerMonthView.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerMonthView.propDecorators = { - dayTemplate: [{ type: core.Input }], - month: [{ type: core.Input }], - showWeekdays: [{ type: core.Input }], - showWeekNumbers: [{ type: core.Input }], - select: [{ type: core.Output }] - }; - return NgbDatepickerMonthView; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbDatepickerNavigation = /** @class */ (function () { - function NgbDatepickerNavigation(i18n) { - this.i18n = i18n; - this.navigation = NavigationEvent; - this.months = []; - this.navigate = new core.EventEmitter(); - this.select = new core.EventEmitter(); - } - NgbDatepickerNavigation.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-datepicker-navigation', - changeDetection: core.ChangeDetectionStrategy.OnPush, - encapsulation: core.ViewEncapsulation.None, - template: "\n
\n \n
\n \n \n\n \n
0\">
\n
\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n
\n
\n
\n \n
\n ", - styles: ["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerNavigation.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerNavigation.propDecorators = { - date: [{ type: core.Input }], - disabled: [{ type: core.Input }], - months: [{ type: core.Input }], - showSelect: [{ type: core.Input }], - prevDisabled: [{ type: core.Input }], - nextDisabled: [{ type: core.Input }], - selectBoxes: [{ type: core.Input }], - navigate: [{ type: core.Output }], - select: [{ type: core.Output }] - }; - return NgbDatepickerNavigation; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var isContainedIn = (/** - * @param {?} element - * @param {?=} array - * @return {?} - */ - function (element, array) { - return array ? array.some((/** - * @param {?} item - * @return {?} - */ - function (item) { return item.contains(element); })) : false; - }); - /** @type {?} */ - var matchesSelectorIfAny = (/** - * @param {?} element - * @param {?=} selector - * @return {?} - */ - function (element, selector) { - return !selector || closest(element, selector) != null; - }); - // we'll have to use 'touch' events instead of 'mouse' events on iOS and add a more significant delay - // to avoid re-opening when handling (click) on a toggling element - // TODO: use proper Angular platform detection when NgbAutoClose becomes a service and we can inject PLATFORM_ID - /** @type {?} */ - var iOS = false; - if (typeof navigator !== 'undefined') { - iOS = !!navigator.userAgent && /iPad|iPhone|iPod/.test(navigator.userAgent); - } - /** - * @param {?} zone - * @param {?} document - * @param {?} type - * @param {?} close - * @param {?} closed$ - * @param {?} insideElements - * @param {?=} ignoreElements - * @param {?=} insideSelector - * @return {?} - */ - function ngbAutoClose(zone, document, type, close, closed$, insideElements, ignoreElements, insideSelector) { - // closing on ESC and outside clicks - if (type) { - zone.runOutsideAngular((/** - * @return {?} - */ - function () { - /** @type {?} */ - var shouldCloseOnClick = (/** - * @param {?} event - * @return {?} - */ - function (event) { - /** @type {?} */ - var element = (/** @type {?} */ (event.target)); - if ((event instanceof MouseEvent && event.button === 2) || isContainedIn(element, ignoreElements)) { - return false; - } - if (type === 'inside') { - return isContainedIn(element, insideElements) && matchesSelectorIfAny(element, insideSelector); - } - else if (type === 'outside') { - return !isContainedIn(element, insideElements); - } - else /* if (type === true) */ { - return matchesSelectorIfAny(element, insideSelector) || !isContainedIn(element, insideElements); - } - }); - /** @type {?} */ - var escapes$ = rxjs.fromEvent(document, 'keydown') - .pipe(operators.takeUntil(closed$), - // tslint:disable-next-line:deprecation - operators.filter((/** - * @param {?} e - * @return {?} - */ - function (e) { return e.which === Key.Escape; }))); - // we have to pre-calculate 'shouldCloseOnClick' on 'mousedown/touchstart', - // because on 'mouseup/touchend' DOM nodes might be detached - /** @type {?} */ - var mouseDowns$ = rxjs.fromEvent(document, iOS ? 'touchstart' : 'mousedown') - .pipe(operators.map(shouldCloseOnClick), operators.takeUntil(closed$)); - /** @type {?} */ - var closeableClicks$ = (/** @type {?} */ (rxjs.fromEvent(document, iOS ? 'touchend' : 'mouseup') - .pipe(operators.withLatestFrom(mouseDowns$), operators.filter((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = __read(_a, 2), _ = _b[0], shouldClose = _b[1]; - return shouldClose; - })), operators.delay(iOS ? 16 : 0), operators.takeUntil(closed$)))); - rxjs.race([escapes$, closeableClicks$]).subscribe((/** - * @return {?} - */ - function () { return zone.run(close); })); - })); - } - } - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var FOCUSABLE_ELEMENTS_SELECTOR = [ - 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type="hidden"])', 'select:not([disabled])', - 'textarea:not([disabled])', '[contenteditable]', '[tabindex]:not([tabindex="-1"])' - ].join(', '); - /** - * Returns first and last focusable elements inside of a given element based on specific CSS selector - * @param {?} element - * @return {?} - */ - function getFocusableBoundaryElements(element) { - /** @type {?} */ - var list = Array.from((/** @type {?} */ (element.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)))) - .filter((/** - * @param {?} el - * @return {?} - */ - function (el) { return el.tabIndex !== -1; })); - return [list[0], list[list.length - 1]]; - } - /** - * Function that enforces browser focus to be trapped inside a DOM element. - * - * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element - * - * \@param element The element around which focus will be trapped inside - * \@param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners - * and free internal resources - * \@param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to - * false) - * @type {?} - */ - var ngbFocusTrap = (/** - * @param {?} element - * @param {?} stopFocusTrap$ - * @param {?=} refocusOnClick - * @return {?} - */ - function (element, stopFocusTrap$, refocusOnClick) { - if (refocusOnClick === void 0) { refocusOnClick = false; } - // last focused element - /** @type {?} */ - var lastFocusedElement$ = rxjs.fromEvent(element, 'focusin').pipe(operators.takeUntil(stopFocusTrap$), operators.map((/** - * @param {?} e - * @return {?} - */ - function (e) { return e.target; }))); - // 'tab' / 'shift+tab' stream - rxjs.fromEvent(element, 'keydown') - .pipe(operators.takeUntil(stopFocusTrap$), - // tslint:disable:deprecation - operators.filter((/** - * @param {?} e - * @return {?} - */ - function (e) { return e.which === Key.Tab; })), - // tslint:enable:deprecation - operators.withLatestFrom(lastFocusedElement$)) - .subscribe((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = __read(_a, 2), tabEvent = _b[0], focusedElement = _b[1]; - var _c = __read(getFocusableBoundaryElements(element), 2), first = _c[0], last = _c[1]; - if ((focusedElement === first || focusedElement === element) && tabEvent.shiftKey) { - last.focus(); - tabEvent.preventDefault(); - } - if (focusedElement === last && !tabEvent.shiftKey) { - first.focus(); - tabEvent.preventDefault(); - } - })); - // inside click - if (refocusOnClick) { - rxjs.fromEvent(element, 'click') - .pipe(operators.takeUntil(stopFocusTrap$), operators.withLatestFrom(lastFocusedElement$), operators.map((/** - * @param {?} arr - * @return {?} - */ - function (arr) { return (/** @type {?} */ (arr[1])); }))) - .subscribe((/** - * @param {?} lastFocusedElement - * @return {?} - */ - function (lastFocusedElement) { return lastFocusedElement.focus(); })); - } - }); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - // previous version: - // https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js - var - // previous version: - // https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js - Positioning = /** @class */ (function () { - function Positioning() { - } - /** - * @private - * @param {?} element - * @return {?} - */ - Positioning.prototype.getAllStyles = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { return window.getComputedStyle(element); }; - /** - * @private - * @param {?} element - * @param {?} prop - * @return {?} - */ - Positioning.prototype.getStyle = /** - * @private - * @param {?} element - * @param {?} prop - * @return {?} - */ - function (element, prop) { return this.getAllStyles(element)[prop]; }; - /** - * @private - * @param {?} element - * @return {?} - */ - Positioning.prototype.isStaticPositioned = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { - return (this.getStyle(element, 'position') || 'static') === 'static'; - }; - /** - * @private - * @param {?} element - * @return {?} - */ - Positioning.prototype.offsetParent = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { - /** @type {?} */ - var offsetParentEl = (/** @type {?} */ (element.offsetParent)) || document.documentElement; - while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) { - offsetParentEl = (/** @type {?} */ (offsetParentEl.offsetParent)); - } - return offsetParentEl || document.documentElement; - }; - /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - Positioning.prototype.position = /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - function (element, round) { - if (round === void 0) { round = true; } - /** @type {?} */ - var elPosition; - /** @type {?} */ - var parentOffset = { width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0 }; - if (this.getStyle(element, 'position') === 'fixed') { - elPosition = element.getBoundingClientRect(); - elPosition = { - top: elPosition.top, - bottom: elPosition.bottom, - left: elPosition.left, - right: elPosition.right, - height: elPosition.height, - width: elPosition.width - }; - } - else { - /** @type {?} */ - var offsetParentEl = this.offsetParent(element); - elPosition = this.offset(element, false); - if (offsetParentEl !== document.documentElement) { - parentOffset = this.offset(offsetParentEl, false); - } - parentOffset.top += offsetParentEl.clientTop; - parentOffset.left += offsetParentEl.clientLeft; - } - elPosition.top -= parentOffset.top; - elPosition.bottom -= parentOffset.top; - elPosition.left -= parentOffset.left; - elPosition.right -= parentOffset.left; - if (round) { - elPosition.top = Math.round(elPosition.top); - elPosition.bottom = Math.round(elPosition.bottom); - elPosition.left = Math.round(elPosition.left); - elPosition.right = Math.round(elPosition.right); - } - return elPosition; - }; - /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - Positioning.prototype.offset = /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - function (element, round) { - if (round === void 0) { round = true; } - /** @type {?} */ - var elBcr = element.getBoundingClientRect(); - /** @type {?} */ - var viewportOffset = { - top: window.pageYOffset - document.documentElement.clientTop, - left: window.pageXOffset - document.documentElement.clientLeft - }; - /** @type {?} */ - var elOffset = { - height: elBcr.height || element.offsetHeight, - width: elBcr.width || element.offsetWidth, - top: elBcr.top + viewportOffset.top, - bottom: elBcr.bottom + viewportOffset.top, - left: elBcr.left + viewportOffset.left, - right: elBcr.right + viewportOffset.left - }; - if (round) { - elOffset.height = Math.round(elOffset.height); - elOffset.width = Math.round(elOffset.width); - elOffset.top = Math.round(elOffset.top); - elOffset.bottom = Math.round(elOffset.bottom); - elOffset.left = Math.round(elOffset.left); - elOffset.right = Math.round(elOffset.right); - } - return elOffset; - }; - /* - Return false if the element to position is outside the viewport - */ - /* - Return false if the element to position is outside the viewport - */ - /** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @return {?} - */ - Positioning.prototype.positionElements = /* - Return false if the element to position is outside the viewport - */ - /** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @return {?} - */ - function (hostElement, targetElement, placement, appendToBody) { - var _a = __read(placement.split('-'), 2), _b = _a[0], placementPrimary = _b === void 0 ? 'top' : _b, _c = _a[1], placementSecondary = _c === void 0 ? 'center' : _c; - /** @type {?} */ - var hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false); - /** @type {?} */ - var targetElStyles = this.getAllStyles(targetElement); - /** @type {?} */ - var marginTop = parseFloat(targetElStyles.marginTop); - /** @type {?} */ - var marginBottom = parseFloat(targetElStyles.marginBottom); - /** @type {?} */ - var marginLeft = parseFloat(targetElStyles.marginLeft); - /** @type {?} */ - var marginRight = parseFloat(targetElStyles.marginRight); - /** @type {?} */ - var topPosition = 0; - /** @type {?} */ - var leftPosition = 0; - switch (placementPrimary) { - case 'top': - topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom)); - break; - case 'bottom': - topPosition = (hostElPosition.top + hostElPosition.height); - break; - case 'left': - leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight)); - break; - case 'right': - leftPosition = (hostElPosition.left + hostElPosition.width); - break; - } - switch (placementSecondary) { - case 'top': - topPosition = hostElPosition.top; - break; - case 'bottom': - topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight; - break; - case 'left': - leftPosition = hostElPosition.left; - break; - case 'right': - leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth; - break; - case 'center': - if (placementPrimary === 'top' || placementPrimary === 'bottom') { - leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2); - } - else { - topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2); - } - break; - } - /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix - // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`; - targetElement.style.transform = "translate(" + Math.round(leftPosition) + "px, " + Math.round(topPosition) + "px)"; - // Check if the targetElement is inside the viewport - /** @type {?} */ - var targetElBCR = targetElement.getBoundingClientRect(); - /** @type {?} */ - var html = document.documentElement; - /** @type {?} */ - var windowHeight = window.innerHeight || html.clientHeight; - /** @type {?} */ - var windowWidth = window.innerWidth || html.clientWidth; - return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth && - targetElBCR.bottom <= windowHeight; - }; - return Positioning; - }()); - /** @type {?} */ - var placementSeparator = /\s+/; - /** @type {?} */ - var positionService = new Positioning(); - /* - * Accept the placement array and applies the appropriate placement dependent on the viewport. - * Returns the applied placement. - * In case of auto placement, placements are selected in order - * 'top', 'bottom', 'left', 'right', - * 'top-left', 'top-right', - * 'bottom-left', 'bottom-right', - * 'left-top', 'left-bottom', - * 'right-top', 'right-bottom'. - * */ - /** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @param {?=} baseClass - * @return {?} - */ - function positionElements(hostElement, targetElement, placement, appendToBody, baseClass) { - var e_1, _a; - /** @type {?} */ - var placementVals = Array.isArray(placement) ? placement : (/** @type {?} */ (placement.split(placementSeparator))); - /** @type {?} */ - var allowedPlacements = [ - 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom', - 'right-top', 'right-bottom' - ]; - /** @type {?} */ - var classList = targetElement.classList; - /** @type {?} */ - var addClassesToTarget = (/** - * @param {?} targetPlacement - * @return {?} - */ - function (targetPlacement) { - var _a = __read(targetPlacement.split('-'), 2), primary = _a[0], secondary = _a[1]; - /** @type {?} */ - var classes = []; - if (baseClass) { - classes.push(baseClass + "-" + primary); - if (secondary) { - classes.push(baseClass + "-" + primary + "-" + secondary); - } - classes.forEach((/** - * @param {?} classname - * @return {?} - */ - function (classname) { classList.add(classname); })); - } - return classes; - }); - // Remove old placement classes to avoid issues - if (baseClass) { - allowedPlacements.forEach((/** - * @param {?} placementToRemove - * @return {?} - */ - function (placementToRemove) { classList.remove(baseClass + "-" + placementToRemove); })); - } - // replace auto placement with other placements - /** @type {?} */ - var hasAuto = placementVals.findIndex((/** - * @param {?} val - * @return {?} - */ - function (val) { return val === 'auto'; })); - if (hasAuto >= 0) { - allowedPlacements.forEach((/** - * @param {?} obj - * @return {?} - */ - function (obj) { - if (placementVals.find((/** - * @param {?} val - * @return {?} - */ - function (val) { return val.search('^' + obj) !== -1; })) == null) { - placementVals.splice(hasAuto++, 1, (/** @type {?} */ (obj))); - } - })); - } - // coordinates where to position - // Required for transform: - /** @type {?} */ - var style = targetElement.style; - style.position = 'absolute'; - style.top = '0'; - style.left = '0'; - style['will-change'] = 'transform'; - /** @type {?} */ - var testPlacement; - /** @type {?} */ - var isInViewport = false; - try { - for (var placementVals_1 = __values(placementVals), placementVals_1_1 = placementVals_1.next(); !placementVals_1_1.done; placementVals_1_1 = placementVals_1.next()) { - testPlacement = placementVals_1_1.value; - /** @type {?} */ - var addedClasses = addClassesToTarget(testPlacement); - if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) { - isInViewport = true; - break; - } - // Remove the baseClasses for further calculation - if (baseClass) { - addedClasses.forEach((/** - * @param {?} classname - * @return {?} - */ - function (classname) { classList.remove(classname); })); - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (placementVals_1_1 && !placementVals_1_1.done && (_a = placementVals_1.return)) _a.call(placementVals_1); - } - finally { if (e_1) throw e_1.error; } - } - if (!isInViewport) { - // If nothing match, the first placement is the default one - testPlacement = placementVals[0]; - addClassesToTarget(testPlacement); - positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody); - } - return testPlacement; - } - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * @return {?} - */ - function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY() { - return new NgbDateISOParserFormatter(); - } - /** - * An abstract service for parsing and formatting dates for the - * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive. - * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the - * input element. - * - * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object. - * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string` - * in the input. - * - * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI - * to use an alternative string format or a custom parsing logic. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * @abstract - */ - var NgbDateParserFormatter = /** @class */ (function () { - function NgbDateParserFormatter() { - } - NgbDateParserFormatter.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY },] } - ]; - /** @nocollapse */ NgbDateParserFormatter.ngInjectableDef = core.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY, token: NgbDateParserFormatter, providedIn: "root" }); - return NgbDateParserFormatter; - }()); - var NgbDateISOParserFormatter = /** @class */ (function (_super) { - __extends(NgbDateISOParserFormatter, _super); - function NgbDateISOParserFormatter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @param {?} value - * @return {?} - */ - NgbDateISOParserFormatter.prototype.parse = /** - * @param {?} value - * @return {?} - */ - function (value) { - if (value) { - /** @type {?} */ - var dateParts = value.trim().split('-'); - if (dateParts.length === 1 && isNumber(dateParts[0])) { - return { year: toInteger(dateParts[0]), month: null, day: null }; - } - else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) { - return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null }; - } - else if (dateParts.length === 3 && isNumber(dateParts[0]) && isNumber(dateParts[1]) && isNumber(dateParts[2])) { - return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: toInteger(dateParts[2]) }; - } - } - return null; - }; - /** - * @param {?} date - * @return {?} - */ - NgbDateISOParserFormatter.prototype.format = /** - * @param {?} date - * @return {?} - */ - function (date) { - return date ? - date.year + "-" + (isNumber(date.month) ? padNumber(date.month) : '') + "-" + (isNumber(date.day) ? padNumber(date.day) : '') : - ''; - }; - NgbDateISOParserFormatter.decorators = [ - { type: core.Injectable } - ]; - return NgbDateISOParserFormatter; - }(NgbDateParserFormatter)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_DATEPICKER_VALUE_ACCESSOR$1 = { - provide: forms.NG_VALUE_ACCESSOR, - useExisting: core.forwardRef((/** - * @return {?} - */ - function () { return NgbInputDatepicker; })), - multi: true - }; - /** @type {?} */ - var NGB_DATEPICKER_VALIDATOR = { - provide: forms.NG_VALIDATORS, - useExisting: core.forwardRef((/** - * @return {?} - */ - function () { return NgbInputDatepicker; })), - multi: true - }; - /** - * A directive that allows to stick a datepicker popup to an input field. - * - * Manages interaction with the input field itself, does value formatting and provides forms integration. - */ - var NgbInputDatepicker = /** @class */ (function () { - function NgbInputDatepicker(_parserFormatter, _elRef, _vcRef, _renderer, _cfr, _ngZone, _service, _calendar, _dateAdapter, _document, _changeDetector) { - var _this = this; - this._parserFormatter = _parserFormatter; - this._elRef = _elRef; - this._vcRef = _vcRef; - this._renderer = _renderer; - this._cfr = _cfr; - this._ngZone = _ngZone; - this._service = _service; - this._calendar = _calendar; - this._dateAdapter = _dateAdapter; - this._document = _document; - this._changeDetector = _changeDetector; - this._cRef = null; - this._disabled = false; - /** - * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not. - * - * * `true` - the popup will close on both date selection and outside click. - * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the popup will close on date selection, but not outside clicks. - * * `"outside"` - the popup will close only on the outside click and not on date selection/inside clicks. - * - * \@since 3.0.0 - */ - this.autoClose = true; - /** - * The preferred placement of the datepicker popup. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - * - * \@since 1.1.1 - */ - this.dateSelect = new core.EventEmitter(); - /** - * Event emitted right after the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - this.navigate = new core.EventEmitter(); - /** - * An event fired after closing datepicker window. - * - * \@since 4.2.0 - */ - this.closed = new core.EventEmitter(); - this._onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this._onTouched = (/** - * @return {?} - */ - function () { }); - this._validatorChange = (/** - * @return {?} - */ - function () { }); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { return _this._updatePopupPosition(); })); - } - Object.defineProperty(NgbInputDatepicker.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { - return this._disabled; - }, - set: /** - * @param {?} value - * @return {?} - */ - function (value) { - this._disabled = value === '' || (value && value !== 'false'); - if (this.isOpen()) { - this._cRef.instance.setDisabledState(this._disabled); - } - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} fn - * @return {?} - */ - NgbInputDatepicker.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbInputDatepicker.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onTouched = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbInputDatepicker.prototype.registerOnValidatorChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._validatorChange = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbInputDatepicker.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.disabled = isDisabled; }; - /** - * @param {?} c - * @return {?} - */ - NgbInputDatepicker.prototype.validate = /** - * @param {?} c - * @return {?} - */ - function (c) { - /** @type {?} */ - var value = c.value; - if (value === null || value === undefined) { - return null; - } - /** @type {?} */ - var ngbDate = this._fromDateStruct(this._dateAdapter.fromModel(value)); - if (!this._calendar.isValid(ngbDate)) { - return { 'ngbDate': { invalid: c.value } }; - } - if (this.minDate && ngbDate.before(NgbDate.from(this.minDate))) { - return { 'ngbDate': { requiredBefore: this.minDate } }; - } - if (this.maxDate && ngbDate.after(NgbDate.from(this.maxDate))) { - return { 'ngbDate': { requiredAfter: this.maxDate } }; - } - }; - /** - * @param {?} value - * @return {?} - */ - NgbInputDatepicker.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._model = this._fromDateStruct(this._dateAdapter.fromModel(value)); - this._writeModelValue(this._model); - }; - /** - * @param {?} value - * @param {?=} updateView - * @return {?} - */ - NgbInputDatepicker.prototype.manualDateChange = /** - * @param {?} value - * @param {?=} updateView - * @return {?} - */ - function (value, updateView) { - if (updateView === void 0) { updateView = false; } - /** @type {?} */ - var inputValueChanged = value !== this._inputValue; - if (inputValueChanged) { - this._inputValue = value; - this._model = this._fromDateStruct(this._parserFormatter.parse(value)); - } - if (inputValueChanged || !updateView) { - this._onChange(this._model ? this._dateAdapter.toModel(this._model) : (value === '' ? null : value)); - } - if (updateView && this._model) { - this._writeModelValue(this._model); - } - }; - /** - * @return {?} - */ - NgbInputDatepicker.prototype.isOpen = /** - * @return {?} - */ - function () { return !!this._cRef; }; - /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - */ - /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - * @return {?} - */ - NgbInputDatepicker.prototype.open = /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - * @return {?} - */ - function () { - var _this = this; - if (!this.isOpen()) { - /** @type {?} */ - var cf = this._cfr.resolveComponentFactory(NgbDatepicker); - this._cRef = this._vcRef.createComponent(cf); - this._applyPopupStyling(this._cRef.location.nativeElement); - this._applyDatepickerInputs(this._cRef.instance); - this._subscribeForDatepickerOutputs(this._cRef.instance); - this._cRef.instance.ngOnInit(); - this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)); - // date selection event handling - this._cRef.instance.registerOnChange((/** - * @param {?} selectedDate - * @return {?} - */ - function (selectedDate) { - _this.writeValue(selectedDate); - _this._onChange(selectedDate); - _this._onTouched(); - })); - this._cRef.changeDetectorRef.detectChanges(); - this._cRef.instance.setDisabledState(this.disabled); - if (this.container === 'body') { - window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement); - } - // focus handling - ngbFocusTrap(this._cRef.location.nativeElement, this.closed, true); - this._cRef.instance.focus(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this.closed, [], [this._elRef.nativeElement, this._cRef.location.nativeElement]); - } - }; - /** - * Closes the datepicker popup. - */ - /** - * Closes the datepicker popup. - * @return {?} - */ - NgbInputDatepicker.prototype.close = /** - * Closes the datepicker popup. - * @return {?} - */ - function () { - if (this.isOpen()) { - this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)); - this._cRef = null; - this.closed.emit(); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the datepicker popup. - */ - /** - * Toggles the datepicker popup. - * @return {?} - */ - NgbInputDatepicker.prototype.toggle = /** - * Toggles the datepicker popup. - * @return {?} - */ - function () { - if (this.isOpen()) { - this.close(); - } - else { - this.open(); - } - }; - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - */ - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - NgbInputDatepicker.prototype.navigateTo = /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - function (date) { - if (this.isOpen()) { - this._cRef.instance.navigateTo(date); - } - }; - /** - * @return {?} - */ - NgbInputDatepicker.prototype.onBlur = /** - * @return {?} - */ - function () { this._onTouched(); }; - /** - * @param {?} changes - * @return {?} - */ - NgbInputDatepicker.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes['minDate'] || changes['maxDate']) { - this._validatorChange(); - } - }; - /** - * @return {?} - */ - NgbInputDatepicker.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this.close(); - this._zoneSubscription.unsubscribe(); - }; - /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - NgbInputDatepicker.prototype._applyDatepickerInputs = /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - function (datepickerInstance) { - var _this = this; - ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate', - 'maxDate', 'navigation', 'outsideDays', 'showNavigation', 'showWeekdays', 'showWeekNumbers'] - .forEach((/** - * @param {?} optionName - * @return {?} - */ - function (optionName) { - if (_this[optionName] !== undefined) { - datepickerInstance[optionName] = _this[optionName]; - } - })); - datepickerInstance.startDate = this.startDate || this._model; - }; - /** - * @private - * @param {?} nativeElement - * @return {?} - */ - NgbInputDatepicker.prototype._applyPopupStyling = /** - * @private - * @param {?} nativeElement - * @return {?} - */ - function (nativeElement) { - this._renderer.addClass(nativeElement, 'dropdown-menu'); - this._renderer.addClass(nativeElement, 'show'); - if (this.container === 'body') { - this._renderer.addClass(nativeElement, 'ngb-dp-body'); - } - }; - /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - NgbInputDatepicker.prototype._subscribeForDatepickerOutputs = /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - function (datepickerInstance) { - var _this = this; - datepickerInstance.navigate.subscribe((/** - * @param {?} navigateEvent - * @return {?} - */ - function (navigateEvent) { return _this.navigate.emit(navigateEvent); })); - datepickerInstance.select.subscribe((/** - * @param {?} date - * @return {?} - */ - function (date) { - _this.dateSelect.emit(date); - if (_this.autoClose === true || _this.autoClose === 'inside') { - _this.close(); - } - })); - }; - /** - * @private - * @param {?} model - * @return {?} - */ - NgbInputDatepicker.prototype._writeModelValue = /** - * @private - * @param {?} model - * @return {?} - */ - function (model) { - /** @type {?} */ - var value = this._parserFormatter.format(model); - this._inputValue = value; - this._renderer.setProperty(this._elRef.nativeElement, 'value', value); - if (this.isOpen()) { - this._cRef.instance.writeValue(this._dateAdapter.toModel(model)); - this._onTouched(); - } - }; - /** - * @private - * @param {?} date - * @return {?} - */ - NgbInputDatepicker.prototype._fromDateStruct = /** - * @private - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var ngbDate = date ? new NgbDate(date.year, date.month, date.day) : null; - return this._calendar.isValid(ngbDate) ? ngbDate : null; - }; - /** - * @private - * @return {?} - */ - NgbInputDatepicker.prototype._updatePopupPosition = /** - * @private - * @return {?} - */ - function () { - if (!this._cRef) { - return; - } - /** @type {?} */ - var hostElement; - if (typeof this.positionTarget === 'string') { - hostElement = window.document.querySelector(this.positionTarget); - } - else if (this.positionTarget instanceof HTMLElement) { - hostElement = this.positionTarget; - } - else { - hostElement = this._elRef.nativeElement; - } - if (this.positionTarget && !hostElement) { - throw new Error('ngbDatepicker could not find element declared in [positionTarget] to position against.'); - } - positionElements(hostElement, this._cRef.location.nativeElement, this.placement, this.container === 'body'); - }; - NgbInputDatepicker.decorators = [ - { type: core.Directive, args: [{ - selector: 'input[ngbDatepicker]', - exportAs: 'ngbDatepicker', - host: { - '(input)': 'manualDateChange($event.target.value)', - '(change)': 'manualDateChange($event.target.value, true)', - '(blur)': 'onBlur()', - '[disabled]': 'disabled' - }, - providers: [NGB_DATEPICKER_VALUE_ACCESSOR$1, NGB_DATEPICKER_VALIDATOR, NgbDatepickerService] - },] } - ]; - /** @nocollapse */ - NgbInputDatepicker.ctorParameters = function () { return [ - { type: NgbDateParserFormatter }, - { type: core.ElementRef }, - { type: core.ViewContainerRef }, - { type: core.Renderer2 }, - { type: core.ComponentFactoryResolver }, - { type: core.NgZone }, - { type: NgbDatepickerService }, - { type: NgbCalendar }, - { type: NgbDateAdapter }, - { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }, - { type: core.ChangeDetectorRef } - ]; }; - NgbInputDatepicker.propDecorators = { - autoClose: [{ type: core.Input }], - dayTemplate: [{ type: core.Input }], - dayTemplateData: [{ type: core.Input }], - displayMonths: [{ type: core.Input }], - firstDayOfWeek: [{ type: core.Input }], - footerTemplate: [{ type: core.Input }], - markDisabled: [{ type: core.Input }], - minDate: [{ type: core.Input }], - maxDate: [{ type: core.Input }], - navigation: [{ type: core.Input }], - outsideDays: [{ type: core.Input }], - placement: [{ type: core.Input }], - showWeekdays: [{ type: core.Input }], - showWeekNumbers: [{ type: core.Input }], - startDate: [{ type: core.Input }], - container: [{ type: core.Input }], - positionTarget: [{ type: core.Input }], - dateSelect: [{ type: core.Output }], - navigate: [{ type: core.Output }], - closed: [{ type: core.Output }], - disabled: [{ type: core.Input }] - }; - return NgbInputDatepicker; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbDatepickerDayView = /** @class */ (function () { - function NgbDatepickerDayView(i18n) { - this.i18n = i18n; - } - /** - * @return {?} - */ - NgbDatepickerDayView.prototype.isMuted = /** - * @return {?} - */ - function () { return !this.selected && (this.date.month !== this.currentMonth || this.disabled); }; - NgbDatepickerDayView.decorators = [ - { type: core.Component, args: [{ - selector: '[ngbDatepickerDayView]', - changeDetection: core.ChangeDetectionStrategy.OnPush, - encapsulation: core.ViewEncapsulation.None, - host: { - 'class': 'btn-light', - '[class.bg-primary]': 'selected', - '[class.text-white]': 'selected', - '[class.text-muted]': 'isMuted()', - '[class.outside]': 'isMuted()', - '[class.active]': 'focused' - }, - template: "{{ i18n.getDayNumerals(date) }}", - styles: ["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerDayView.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerDayView.propDecorators = { - currentMonth: [{ type: core.Input }], - date: [{ type: core.Input }], - disabled: [{ type: core.Input }], - focused: [{ type: core.Input }], - selected: [{ type: core.Input }] - }; - return NgbDatepickerDayView; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbDatepickerNavigationSelect = /** @class */ (function () { - function NgbDatepickerNavigationSelect(i18n) { - this.i18n = i18n; - this.select = new core.EventEmitter(); - } - /** - * @param {?} month - * @return {?} - */ - NgbDatepickerNavigationSelect.prototype.changeMonth = /** - * @param {?} month - * @return {?} - */ - function (month) { this.select.emit(new NgbDate(this.date.year, toInteger(month), 1)); }; - /** - * @param {?} year - * @return {?} - */ - NgbDatepickerNavigationSelect.prototype.changeYear = /** - * @param {?} year - * @return {?} - */ - function (year) { this.select.emit(new NgbDate(toInteger(year), this.date.month, 1)); }; - NgbDatepickerNavigationSelect.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-datepicker-navigation-select', - changeDetection: core.ChangeDetectionStrategy.OnPush, - encapsulation: core.ViewEncapsulation.None, - template: "\n \n \n \n \n \n ", - styles: ["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerNavigationSelect.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerNavigationSelect.propDecorators = { - date: [{ type: core.Input }], - disabled: [{ type: core.Input }], - months: [{ type: core.Input }], - years: [{ type: core.Input }], - select: [{ type: core.Output }] - }; - return NgbDatepickerNavigationSelect; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * @abstract - */ - var NgbCalendarHijri = /** @class */ (function (_super) { - __extends(NgbCalendarHijri, _super); - function NgbCalendarHijri() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getMonths = /** - * @return {?} - */ - function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }; - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHijri.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date = this._setYear(date, date.year + number); - date.month = 1; - date.day = 1; - return date; - case 'm': - date = this._setMonth(date, date.month + number); - date.day = 1; - return date; - case 'd': - return this._setDay(date, date.day + number); - default: - return date; - } - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHijri.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHijri.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var day = this.toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarHijri.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - var thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - var date = week[thursdayIndex]; - /** @type {?} */ - var jsDate = this.toGregorian(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - var time = jsDate.getTime(); - /** @type {?} */ - var MuhDate = this.toGregorian(new NgbDate(date.year, 1, 1)); - return Math.floor(Math.round((time - MuhDate.getTime()) / 86400000) / 7) + 1; - }; - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getToday = /** - * @return {?} - */ - function () { return this.fromGregorian(new Date()); }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHijri.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - return date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day) && - !isNaN(this.toGregorian(date).getTime()); - }; - /** - * @private - * @param {?} date - * @param {?} day - * @return {?} - */ - NgbCalendarHijri.prototype._setDay = /** - * @private - * @param {?} date - * @param {?} day - * @return {?} - */ - function (date, day) { - day = +day; - /** @type {?} */ - var mDays = this.getDaysPerMonth(date.month, date.year); - if (day <= 0) { - while (day <= 0) { - date = this._setMonth(date, date.month - 1); - mDays = this.getDaysPerMonth(date.month, date.year); - day += mDays; - } - } - else if (day > mDays) { - while (day > mDays) { - day -= mDays; - date = this._setMonth(date, date.month + 1); - mDays = this.getDaysPerMonth(date.month, date.year); - } - } - date.day = day; - return date; - }; - /** - * @private - * @param {?} date - * @param {?} month - * @return {?} - */ - NgbCalendarHijri.prototype._setMonth = /** - * @private - * @param {?} date - * @param {?} month - * @return {?} - */ - function (date, month) { - month = +month; - date.year = date.year + Math.floor((month - 1) / 12); - date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1; - return date; - }; - /** - * @private - * @param {?} date - * @param {?} year - * @return {?} - */ - NgbCalendarHijri.prototype._setYear = /** - * @private - * @param {?} date - * @param {?} year - * @return {?} - */ - function (date, year) { - date.year = +year; - return date; - }; - NgbCalendarHijri.decorators = [ - { type: core.Injectable } - ]; - return NgbCalendarHijri; - }(NgbCalendar)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * Checks if islamic year is a leap year - * @param {?} hYear - * @return {?} - */ - function isIslamicLeapYear(hYear) { - return (14 + 11 * hYear) % 30 < 11; - } - /** - * Checks if gregorian years is a leap year - * @param {?} gDate - * @return {?} - */ - function isGregorianLeapYear(gDate) { - /** @type {?} */ - var year = gDate.getFullYear(); - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; - } - /** - * Returns the start of Hijri Month. - * `hMonth` is 0 for Muharram, 1 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hYear - * @param {?} hMonth - * @return {?} - */ - function getIslamicMonthStart(hYear, hMonth) { - return Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30.0); - } - /** - * Returns the start of Hijri year. - * `year` is any Hijri year. - * @param {?} year - * @return {?} - */ - function getIslamicYearStart(year) { - return (year - 1) * 354 + Math.floor((3 + 11 * year) / 30.0); - } - /** - * @param {?} a - * @param {?} b - * @return {?} - */ - function mod(a, b) { - return a - b * Math.floor(a / b); - } - /** - * The civil calendar is one type of Hijri calendars used in islamic countries. - * Uses a fixed cycle of alternating 29- and 30-day months, - * with a leap day added to the last month of 11 out of every 30 years. - * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types - * All the calculations here are based on the equations from "Calendrical Calculations" By Edward M. Reingold, Nachum - * Dershowitz. - * @type {?} - */ - var GREGORIAN_EPOCH = 1721425.5; - /** @type {?} */ - var ISLAMIC_EPOCH = 1948439.5; - var NgbCalendarIslamicCivil = /** @class */ (function (_super) { - __extends(NgbCalendarIslamicCivil, _super); - function NgbCalendarIslamicCivil() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - */ - /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - NgbCalendarIslamicCivil.prototype.fromGregorian = /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - function (gDate) { - /** @type {?} */ - var gYear = gDate.getFullYear(); - /** @type {?} */ - var gMonth = gDate.getMonth(); - /** @type {?} */ - var gDay = gDate.getDate(); - /** @type {?} */ - var julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) + - -Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) + - Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gDate) ? -1 : -2) + gDay); - julianDay = Math.floor(julianDay) + 0.5; - /** @type {?} */ - var days = julianDay - ISLAMIC_EPOCH; - /** @type {?} */ - var hYear = Math.floor((30 * days + 10646) / 10631.0); - /** @type {?} */ - var hMonth = Math.ceil((days - 29 - getIslamicYearStart(hYear)) / 29.5); - hMonth = Math.min(hMonth, 11); - /** @type {?} */ - var hDay = Math.ceil(days - getIslamicMonthStart(hYear, hMonth)) + 1; - return new NgbDate(hYear, hMonth + 1, hDay); - }; - /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - */ - /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - * @param {?} hDate - * @return {?} - */ - NgbCalendarIslamicCivil.prototype.toGregorian = /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - * @param {?} hDate - * @return {?} - */ - function (hDate) { - /** @type {?} */ - var hYear = hDate.year; - /** @type {?} */ - var hMonth = hDate.month - 1; - /** @type {?} */ - var hDay = hDate.day; - /** @type {?} */ - var julianDay = hDay + Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30) + ISLAMIC_EPOCH - 1; - /** @type {?} */ - var wjd = Math.floor(julianDay - 0.5) + 0.5; - /** @type {?} */ - var depoch = wjd - GREGORIAN_EPOCH; - /** @type {?} */ - var quadricent = Math.floor(depoch / 146097); - /** @type {?} */ - var dqc = mod(depoch, 146097); - /** @type {?} */ - var cent = Math.floor(dqc / 36524); - /** @type {?} */ - var dcent = mod(dqc, 36524); - /** @type {?} */ - var quad = Math.floor(dcent / 1461); - /** @type {?} */ - var dquad = mod(dcent, 1461); - /** @type {?} */ - var yindex = Math.floor(dquad / 365); - /** @type {?} */ - var year = quadricent * 400 + cent * 100 + quad * 4 + yindex; - if (!(cent === 4 || yindex === 4)) { - year++; - } - /** @type {?} */ - var gYearStart = GREGORIAN_EPOCH + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400); - /** @type {?} */ - var yearday = wjd - gYearStart; - /** @type {?} */ - var tjd = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400) + Math.floor(739 / 12 + (isGregorianLeapYear(new Date(year, 3, 1)) ? -1 : -2) + 1); - /** @type {?} */ - var leapadj = wjd < tjd ? 0 : isGregorianLeapYear(new Date(year, 3, 1)) ? 1 : 2; - /** @type {?} */ - var month = Math.floor(((yearday + leapadj) * 12 + 373) / 367); - /** @type {?} */ - var tjd2 = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400) + - Math.floor((367 * month - 362) / 12 + (month <= 2 ? 0 : isGregorianLeapYear(new Date(year, month - 1, 1)) ? -1 : -2) + - 1); - /** @type {?} */ - var day = wjd - tjd2 + 1; - return new Date(year, month - 1, day); - }; - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - */ - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - * @param {?} month - * @param {?} year - * @return {?} - */ - NgbCalendarIslamicCivil.prototype.getDaysPerMonth = /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - * @param {?} month - * @param {?} year - * @return {?} - */ - function (month, year) { - year = year + Math.floor(month / 13); - month = ((month - 1) % 12) + 1; - /** @type {?} */ - var length = 29 + month % 2; - if (month === 12 && isIslamicLeapYear(year)) { - length++; - } - return length; - }; - NgbCalendarIslamicCivil.decorators = [ - { type: core.Injectable } - ]; - return NgbCalendarIslamicCivil; - }(NgbCalendarHijri)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * Umalqura calendar is one type of Hijri calendars used in islamic countries. - * This Calendar is used by Saudi Arabia for administrative purpose. - * Unlike tabular calendars, the algorithm involves astronomical calculation, but it's still deterministic. - * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types - * @type {?} - */ - var GREGORIAN_FIRST_DATE = new Date(1882, 10, 12); - /** @type {?} */ - var GREGORIAN_LAST_DATE = new Date(2174, 10, 25); - /** @type {?} */ - var HIJRI_BEGIN = 1300; - /** @type {?} */ - var HIJRI_END = 1600; - /** @type {?} */ - var ONE_DAY = 1000 * 60 * 60 * 24; - /** @type {?} */ - var MONTH_LENGTH = [ - // 1300-1304 - '101010101010', '110101010100', '111011001001', '011011010100', '011011101010', - // 1305-1309 - '001101101100', '101010101101', '010101010101', '011010101001', '011110010010', - // 1310-1314 - '101110101001', '010111010100', '101011011010', '010101011100', '110100101101', - // 1315-1319 - '011010010101', '011101001010', '101101010100', '101101101010', '010110101101', - // 1320-1324 - '010010101110', '101001001111', '010100010111', '011010001011', '011010100101', - // 1325-1329 - '101011010101', '001011010110', '100101011011', '010010011101', '101001001101', - // 1330-1334 - '110100100110', '110110010101', '010110101100', '100110110110', '001010111010', - // 1335-1339 - '101001011011', '010100101011', '101010010101', '011011001010', '101011101001', - // 1340-1344 - '001011110100', '100101110110', '001010110110', '100101010110', '101011001010', - // 1345-1349 - '101110100100', '101111010010', '010111011001', '001011011100', '100101101101', - // 1350-1354 - '010101001101', '101010100101', '101101010010', '101110100101', '010110110100', - // 1355-1359 - '100110110110', '010101010111', '001010010111', '010101001011', '011010100011', - // 1360-1364 - '011101010010', '101101100101', '010101101010', '101010101011', '010100101011', - // 1365-1369 - '110010010101', '110101001010', '110110100101', '010111001010', '101011010110', - // 1370-1374 - '100101010111', '010010101011', '100101001011', '101010100101', '101101010010', - // 1375-1379 - '101101101010', '010101110101', '001001110110', '100010110111', '010001011011', - // 1380-1384 - '010101010101', '010110101001', '010110110100', '100111011010', '010011011101', - // 1385-1389 - '001001101110', '100100110110', '101010101010', '110101010100', '110110110010', - // 1390-1394 - '010111010101', '001011011010', '100101011011', '010010101011', '101001010101', - // 1395-1399 - '101101001001', '101101100100', '101101110001', '010110110100', '101010110101', - // 1400-1404 - '101001010101', '110100100101', '111010010010', '111011001001', '011011010100', - // 1405-1409 - '101011101001', '100101101011', '010010101011', '101010010011', '110101001001', - // 1410-1414 - '110110100100', '110110110010', '101010111001', '010010111010', '101001011011', - // 1415-1419 - '010100101011', '101010010101', '101100101010', '101101010101', '010101011100', - // 1420-1424 - '010010111101', '001000111101', '100100011101', '101010010101', '101101001010', - // 1425-1429 - '101101011010', '010101101101', '001010110110', '100100111011', '010010011011', - // 1430-1434 - '011001010101', '011010101001', '011101010100', '101101101010', '010101101100', - // 1435-1439 - '101010101101', '010101010101', '101100101001', '101110010010', '101110101001', - // 1440-1444 - '010111010100', '101011011010', '010101011010', '101010101011', '010110010101', - // 1445-1449 - '011101001001', '011101100100', '101110101010', '010110110101', '001010110110', - // 1450-1454 - '101001010110', '111001001101', '101100100101', '101101010010', '101101101010', - // 1455-1459 - '010110101101', '001010101110', '100100101111', '010010010111', '011001001011', - // 1460-1464 - '011010100101', '011010101100', '101011010110', '010101011101', '010010011101', - // 1465-1469 - '101001001101', '110100010110', '110110010101', '010110101010', '010110110101', - // 1470-1474 - '001011011010', '100101011011', '010010101101', '010110010101', '011011001010', - // 1475-1479 - '011011100100', '101011101010', '010011110101', '001010110110', '100101010110', - // 1480-1484 - '101010101010', '101101010100', '101111010010', '010111011001', '001011101010', - // 1485-1489 - '100101101101', '010010101101', '101010010101', '101101001010', '101110100101', - // 1490-1494 - '010110110010', '100110110101', '010011010110', '101010010111', '010101000111', - // 1495-1499 - '011010010011', '011101001001', '101101010101', '010101101010', '101001101011', - // 1500-1504 - '010100101011', '101010001011', '110101000110', '110110100011', '010111001010', - // 1505-1509 - '101011010110', '010011011011', '001001101011', '100101001011', '101010100101', - // 1510-1514 - '101101010010', '101101101001', '010101110101', '000101110110', '100010110111', - // 1515-1519 - '001001011011', '010100101011', '010101100101', '010110110100', '100111011010', - // 1520-1524 - '010011101101', '000101101101', '100010110110', '101010100110', '110101010010', - // 1525-1529 - '110110101001', '010111010100', '101011011010', '100101011011', '010010101011', - // 1530-1534 - '011001010011', '011100101001', '011101100010', '101110101001', '010110110010', - // 1535-1539 - '101010110101', '010101010101', '101100100101', '110110010010', '111011001001', - // 1540-1544 - '011011010010', '101011101001', '010101101011', '010010101011', '101001010101', - // 1545-1549 - '110100101001', '110101010100', '110110101010', '100110110101', '010010111010', - // 1550-1554 - '101000111011', '010010011011', '101001001101', '101010101010', '101011010101', - // 1555-1559 - '001011011010', '100101011101', '010001011110', '101000101110', '110010011010', - // 1560-1564 - '110101010101', '011010110010', '011010111001', '010010111010', '101001011101', - // 1565-1569 - '010100101101', '101010010101', '101101010010', '101110101000', '101110110100', - // 1570-1574 - '010110111001', '001011011010', '100101011010', '101101001010', '110110100100', - // 1575-1579 - '111011010001', '011011101000', '101101101010', '010101101101', '010100110101', - // 1580-1584 - '011010010101', '110101001010', '110110101000', '110111010100', '011011011010', - // 1585-1589 - '010101011011', '001010011101', '011000101011', '101100010101', '101101001010', - // 1590-1594 - '101110010101', '010110101010', '101010101110', '100100101110', '110010001111', - // 1595-1599 - '010100100111', '011010010101', '011010101010', '101011010110', '010101011101', - // 1600 - '001010011101' - ]; - /** - * @param {?} date1 - * @param {?} date2 - * @return {?} - */ - function getDaysDiff(date1, date2) { - // Ignores the time part in date1 and date2: - /** @type {?} */ - var time1 = Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate()); - /** @type {?} */ - var time2 = Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate()); - /** @type {?} */ - var diff = Math.abs(time1 - time2); - return Math.round(diff / ONE_DAY); - } - var NgbCalendarIslamicUmalqura = /** @class */ (function (_super) { - __extends(NgbCalendarIslamicUmalqura, _super); - function NgbCalendarIslamicUmalqura() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - */ - /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - NgbCalendarIslamicUmalqura.prototype.fromGregorian = /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - function (gDate) { - /** @type {?} */ - var hDay = 1; - /** @type {?} */ - var hMonth = 0; - /** @type {?} */ - var hYear = 1300; - /** @type {?} */ - var daysDiff = getDaysDiff(gDate, GREGORIAN_FIRST_DATE); - if (gDate.getTime() - GREGORIAN_FIRST_DATE.getTime() >= 0 && gDate.getTime() - GREGORIAN_LAST_DATE.getTime() <= 0) { - /** @type {?} */ - var year = 1300; - for (var i = 0; i < MONTH_LENGTH.length; i++, year++) { - for (var j = 0; j < 12; j++) { - /** @type {?} */ - var numOfDays = +MONTH_LENGTH[i][j] + 29; - if (daysDiff <= numOfDays) { - hDay = daysDiff + 1; - if (hDay > numOfDays) { - hDay = 1; - j++; - } - if (j > 11) { - j = 0; - year++; - } - hMonth = j; - hYear = year; - return new NgbDate(hYear, hMonth + 1, hDay); - } - daysDiff = daysDiff - numOfDays; - } - } - } - else { - return _super.prototype.fromGregorian.call(this, gDate); - } - }; - /** - * Converts the current Hijri date to Gregorian. - */ - /** - * Converts the current Hijri date to Gregorian. - * @param {?} hDate - * @return {?} - */ - NgbCalendarIslamicUmalqura.prototype.toGregorian = /** - * Converts the current Hijri date to Gregorian. - * @param {?} hDate - * @return {?} - */ - function (hDate) { - /** @type {?} */ - var hYear = hDate.year; - /** @type {?} */ - var hMonth = hDate.month - 1; - /** @type {?} */ - var hDay = hDate.day; - /** @type {?} */ - var gDate = new Date(GREGORIAN_FIRST_DATE); - /** @type {?} */ - var dayDiff = hDay - 1; - if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) { - for (var y = 0; y < hYear - HIJRI_BEGIN; y++) { - for (var m = 0; m < 12; m++) { - dayDiff += +MONTH_LENGTH[y][m] + 29; - } - } - for (var m = 0; m < hMonth; m++) { - dayDiff += +MONTH_LENGTH[hYear - HIJRI_BEGIN][m] + 29; - } - gDate.setDate(GREGORIAN_FIRST_DATE.getDate() + dayDiff); - } - else { - gDate = _super.prototype.toGregorian.call(this, hDate); - } - return gDate; - }; - /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - */ - /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hMonth - * @param {?} hYear - * @return {?} - */ - NgbCalendarIslamicUmalqura.prototype.getDaysPerMonth = /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hMonth - * @param {?} hYear - * @return {?} - */ - function (hMonth, hYear) { - if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) { - /** @type {?} */ - var pos = hYear - HIJRI_BEGIN; - return +MONTH_LENGTH[pos][hMonth - 1] + 29; - } - return _super.prototype.getDaysPerMonth.call(this, hMonth, hYear); - }; - NgbCalendarIslamicUmalqura.decorators = [ - { type: core.Injectable } - ]; - return NgbCalendarIslamicUmalqura; - }(NgbCalendarIslamicCivil)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * Returns the equivalent JS date value for a give input Jalali date. - * `jalaliDate` is an Jalali date to be converted to Gregorian. - * @param {?} jalaliDate - * @return {?} - */ - function toGregorian(jalaliDate) { - /** @type {?} */ - var jdn = jalaliToJulian(jalaliDate.year, jalaliDate.month, jalaliDate.day); - /** @type {?} */ - var date = julianToGregorian(jdn); - date.setHours(6, 30, 3, 200); - return date; - } - /** - * Returns the equivalent jalali date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to jalali. - * utc to local - * @param {?} gdate - * @return {?} - */ - function fromGregorian(gdate) { - /** @type {?} */ - var g2d = gregorianToJulian(gdate.getFullYear(), gdate.getMonth() + 1, gdate.getDate()); - return julianToJalali(g2d); - } - /** - * @param {?} date - * @param {?} yearValue - * @return {?} - */ - function setJalaliYear(date, yearValue) { - date.year = +yearValue; - return date; - } - /** - * @param {?} date - * @param {?} month - * @return {?} - */ - function setJalaliMonth(date, month) { - month = +month; - date.year = date.year + Math.floor((month - 1) / 12); - date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1; - return date; - } - /** - * @param {?} date - * @param {?} day - * @return {?} - */ - function setJalaliDay(date, day) { - /** @type {?} */ - var mDays = getDaysPerMonth(date.month, date.year); - if (day <= 0) { - while (day <= 0) { - date = setJalaliMonth(date, date.month - 1); - mDays = getDaysPerMonth(date.month, date.year); - day += mDays; - } - } - else if (day > mDays) { - while (day > mDays) { - day -= mDays; - date = setJalaliMonth(date, date.month + 1); - mDays = getDaysPerMonth(date.month, date.year); - } - } - date.day = day; - return date; - } - /** - * @param {?} a - * @param {?} b - * @return {?} - */ - function mod$1(a, b) { - return a - b * Math.floor(a / b); - } - /** - * @param {?} a - * @param {?} b - * @return {?} - */ - function div(a, b) { - return Math.trunc(a / b); - } - /* - This function determines if the Jalali (Persian) year is - leap (366-day long) or is the common year (365 days), and - finds the day in March (Gregorian calendar) of the first - day of the Jalali year (jalaliYear). - @param jalaliYear Jalali calendar year (-61 to 3177) - @return - leap: number of years since the last leap year (0 to 4) - gYear: Gregorian year of the beginning of Jalali year - march: the March day of Farvardin the 1st (1st day of jalaliYear) - @see: http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm - @see: http://www.fourmilab.ch/documents/calendar/ - */ - /** - * @param {?} jalaliYear - * @return {?} - */ - function jalCal(jalaliYear) { - // Jalali years starting the 33-year rule. - /** @type {?} */ - var breaks = [-61, 9, 38, 199, 426, 686, 756, 818, 1111, 1181, 1210, 1635, 2060, 2097, 2192, 2262, 2324, 2394, 2456, 3178]; - /** @type {?} */ - var breaksLength = breaks.length; - /** @type {?} */ - var gYear = jalaliYear + 621; - /** @type {?} */ - var leapJ = -14; - /** @type {?} */ - var jp = breaks[0]; - if (jalaliYear < jp || jalaliYear >= breaks[breaksLength - 1]) { - throw new Error('Invalid Jalali year ' + jalaliYear); - } - // Find the limiting years for the Jalali year jalaliYear. - /** @type {?} */ - var jump; - for (var i = 1; i < breaksLength; i += 1) { - /** @type {?} */ - var jm = breaks[i]; - jump = jm - jp; - if (jalaliYear < jm) { - break; - } - leapJ = leapJ + div(jump, 33) * 8 + div(mod$1(jump, 33), 4); - jp = jm; - } - /** @type {?} */ - var n = jalaliYear - jp; - // Find the number of leap years from AD 621 to the beginning - // of the current Jalali year in the Persian calendar. - leapJ = leapJ + div(n, 33) * 8 + div(mod$1(n, 33) + 3, 4); - if (mod$1(jump, 33) === 4 && jump - n === 4) { - leapJ += 1; - } - // And the same in the Gregorian calendar (until the year gYear). - /** @type {?} */ - var leapG = div(gYear, 4) - div((div(gYear, 100) + 1) * 3, 4) - 150; - // Determine the Gregorian date of Farvardin the 1st. - /** @type {?} */ - var march = 20 + leapJ - leapG; - // Find how many years have passed since the last leap year. - if (jump - n < 6) { - n = n - jump + div(jump + 4, 33) * 33; - } - /** @type {?} */ - var leap = mod$1(mod$1(n + 1, 33) - 1, 4); - if (leap === -1) { - leap = 4; - } - return { leap: leap, gy: gYear, march: march }; - } - /* - Calculates Gregorian and Julian calendar dates from the Julian Day number - (jdn) for the period since jdn=-34839655 (i.e. the year -100100 of both - calendars) to some millions years ahead of the present. - @param jdn Julian Day number - @return - gYear: Calendar year (years BC numbered 0, -1, -2, ...) - gMonth: Calendar month (1 to 12) - gDay: Calendar day of the month M (1 to 28/29/30/31) - */ - /** - * @param {?} julianDayNumber - * @return {?} - */ - function julianToGregorian(julianDayNumber) { - /** @type {?} */ - var j = 4 * julianDayNumber + 139361631; - j = j + div(div(4 * julianDayNumber + 183187720, 146097) * 3, 4) * 4 - 3908; - /** @type {?} */ - var i = div(mod$1(j, 1461), 4) * 5 + 308; - /** @type {?} */ - var gDay = div(mod$1(i, 153), 5) + 1; - /** @type {?} */ - var gMonth = mod$1(div(i, 153), 12) + 1; - /** @type {?} */ - var gYear = div(j, 1461) - 100100 + div(8 - gMonth, 6); - return new Date(gYear, gMonth - 1, gDay); - } - /* - Converts a date of the Jalali calendar to the Julian Day number. - @param jy Jalali year (1 to 3100) - @param jm Jalali month (1 to 12) - @param jd Jalali day (1 to 29/31) - @return Julian Day number - */ - /** - * @param {?} gy - * @param {?} gm - * @param {?} gd - * @return {?} - */ - function gregorianToJulian(gy, gm, gd) { - /** @type {?} */ - var d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod$1(gm + 9, 12) + 2, 5) + gd - 34840408; - d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752; - return d; - } - /* - Converts the Julian Day number to a date in the Jalali calendar. - @param julianDayNumber Julian Day number - @return - jalaliYear: Jalali year (1 to 3100) - jalaliMonth: Jalali month (1 to 12) - jalaliDay: Jalali day (1 to 29/31) - */ - /** - * @param {?} julianDayNumber - * @return {?} - */ - function julianToJalali(julianDayNumber) { - /** @type {?} */ - var gy = julianToGregorian(julianDayNumber).getFullYear() // Calculate Gregorian year (gy). - ; - /** @type {?} */ - var jalaliYear = gy - 621; - /** @type {?} */ - var r = jalCal(jalaliYear); - /** @type {?} */ - var gregorianDay = gregorianToJulian(gy, 3, r.march); - /** @type {?} */ - var jalaliDay; - /** @type {?} */ - var jalaliMonth; - /** @type {?} */ - var numberOfDays; - // Find number of days that passed since 1 Farvardin. - numberOfDays = julianDayNumber - gregorianDay; - if (numberOfDays >= 0) { - if (numberOfDays <= 185) { - // The first 6 months. - jalaliMonth = 1 + div(numberOfDays, 31); - jalaliDay = mod$1(numberOfDays, 31) + 1; - return new NgbDate(jalaliYear, jalaliMonth, jalaliDay); - } - else { - // The remaining months. - numberOfDays -= 186; - } - } - else { - // Previous Jalali year. - jalaliYear -= 1; - numberOfDays += 179; - if (r.leap === 1) { - numberOfDays += 1; - } - } - jalaliMonth = 7 + div(numberOfDays, 30); - jalaliDay = mod$1(numberOfDays, 30) + 1; - return new NgbDate(jalaliYear, jalaliMonth, jalaliDay); - } - /* - Converts a date of the Jalali calendar to the Julian Day number. - @param jYear Jalali year (1 to 3100) - @param jMonth Jalali month (1 to 12) - @param jDay Jalali day (1 to 29/31) - @return Julian Day number - */ - /** - * @param {?} jYear - * @param {?} jMonth - * @param {?} jDay - * @return {?} - */ - function jalaliToJulian(jYear, jMonth, jDay) { - /** @type {?} */ - var r = jalCal(jYear); - return gregorianToJulian(r.gy, 3, r.march) + (jMonth - 1) * 31 - div(jMonth, 7) * (jMonth - 7) + jDay - 1; - } - /** - * Returns the number of days in a specific jalali month. - * @param {?} month - * @param {?} year - * @return {?} - */ - function getDaysPerMonth(month, year) { - if (month <= 6) { - return 31; - } - if (month <= 11) { - return 30; - } - if (jalCal(year).leap === 0) { - return 30; - } - return 29; - } - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbCalendarPersian = /** @class */ (function (_super) { - __extends(NgbCalendarPersian, _super); - function NgbCalendarPersian() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getMonths = /** - * @return {?} - */ - function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }; - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarPersian.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date = setJalaliYear(date, date.year + number); - date.month = 1; - date.day = 1; - return date; - case 'm': - date = setJalaliMonth(date, date.month + number); - date.day = 1; - return date; - case 'd': - return setJalaliDay(date, date.day + number); - default: - return date; - } - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarPersian.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarPersian.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var day = toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarPersian.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - var thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - var date = week[thursdayIndex]; - /** @type {?} */ - var jsDate = toGregorian(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - var time = jsDate.getTime(); - /** @type {?} */ - var startDate = toGregorian(new NgbDate(date.year, 1, 1)); - return Math.floor(Math.round((time - startDate.getTime()) / 86400000) / 7) + 1; - }; - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getToday = /** - * @return {?} - */ - function () { return fromGregorian(new Date()); }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarPersian.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) && - !isNaN(toGregorian(date).getTime()); - }; - NgbCalendarPersian.decorators = [ - { type: core.Injectable } - ]; - return NgbCalendarPersian; - }(NgbCalendar)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var PARTS_PER_HOUR = 1080; - /** @type {?} */ - var PARTS_PER_DAY = 24 * PARTS_PER_HOUR; - /** @type {?} */ - var PARTS_FRACTIONAL_MONTH = 12 * PARTS_PER_HOUR + 793; - /** @type {?} */ - var PARTS_PER_MONTH = 29 * PARTS_PER_DAY + PARTS_FRACTIONAL_MONTH; - /** @type {?} */ - var BAHARAD = 11 * PARTS_PER_HOUR + 204; - /** @type {?} */ - var HEBREW_DAY_ON_JAN_1_1970 = 2092591; - /** @type {?} */ - var GREGORIAN_EPOCH$1 = 1721425.5; - /** - * @param {?} year - * @return {?} - */ - function isGregorianLeapYear$1(year) { - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; - } - /** - * @param {?} year - * @return {?} - */ - function numberOfFirstDayInYear(year) { - /** @type {?} */ - var monthsBeforeYear = Math.floor((235 * year - 234) / 19); - /** @type {?} */ - var fractionalMonthsBeforeYear = monthsBeforeYear * PARTS_FRACTIONAL_MONTH + BAHARAD; - /** @type {?} */ - var dayNumber = monthsBeforeYear * 29 + Math.floor(fractionalMonthsBeforeYear / PARTS_PER_DAY); - /** @type {?} */ - var timeOfDay = fractionalMonthsBeforeYear % PARTS_PER_DAY; - /** @type {?} */ - var dayOfWeek = dayNumber % 7; - if (dayOfWeek === 2 || dayOfWeek === 4 || dayOfWeek === 6) { - dayNumber++; - dayOfWeek = dayNumber % 7; - } - if (dayOfWeek === 1 && timeOfDay > 15 * PARTS_PER_HOUR + 204 && !isHebrewLeapYear(year)) { - dayNumber += 2; - } - else if (dayOfWeek === 0 && timeOfDay > 21 * PARTS_PER_HOUR + 589 && isHebrewLeapYear(year - 1)) { - dayNumber++; - } - return dayNumber; - } - /** - * @param {?} month - * @param {?} year - * @return {?} - */ - function getDaysInGregorianMonth(month, year) { - /** @type {?} */ - var days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - if (isGregorianLeapYear$1(year)) { - days[1]++; - } - return days[month - 1]; - } - /** - * @param {?} year - * @return {?} - */ - function getHebrewMonths(year) { - return isHebrewLeapYear(year) ? 13 : 12; - } - /** - * Returns the number of days in a specific Hebrew year. - * `year` is any Hebrew year. - * @param {?} year - * @return {?} - */ - function getDaysInHebrewYear(year) { - return numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year); - } - /** - * @param {?} year - * @return {?} - */ - function isHebrewLeapYear(year) { - /** @type {?} */ - var b = (year * 12 + 17) % 19; - return b >= ((b < 0) ? -7 : 12); - } - /** - * Returns the number of days in a specific Hebrew month. - * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months. - * `year` is any Hebrew year. - * @param {?} month - * @param {?} year - * @return {?} - */ - function getDaysInHebrewMonth(month, year) { - /** @type {?} */ - var yearLength = numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year); - /** @type {?} */ - var yearType = (yearLength <= 380 ? yearLength : (yearLength - 30)) - 353; - /** @type {?} */ - var leapYear = isHebrewLeapYear(year); - /** @type {?} */ - var daysInMonth = leapYear ? [30, 29, 29, 29, 30, 30, 29, 30, 29, 30, 29, 30, 29] : - [30, 29, 29, 29, 30, 29, 30, 29, 30, 29, 30, 29]; - if (yearType > 0) { - daysInMonth[2]++; // Kislev gets an extra day in normal or complete years. - } - if (yearType > 1) { - daysInMonth[1]++; // Heshvan gets an extra day in complete years only. - } - return daysInMonth[month - 1]; - } - /** - * @param {?} date - * @return {?} - */ - function getDayNumberInHebrewYear(date) { - /** @type {?} */ - var numberOfDay = 0; - for (var i = 1; i < date.month; i++) { - numberOfDay += getDaysInHebrewMonth(i, date.year); - } - return numberOfDay + date.day; - } - /** - * @param {?} date - * @param {?} val - * @return {?} - */ - function setHebrewMonth(date, val) { - /** @type {?} */ - var after = val >= 0; - if (!after) { - val = -val; - } - while (val > 0) { - if (after) { - if (val > getHebrewMonths(date.year) - date.month) { - val -= getHebrewMonths(date.year) - date.month + 1; - date.year++; - date.month = 1; - } - else { - date.month += val; - val = 0; - } - } - else { - if (val >= date.month) { - date.year--; - val -= date.month; - date.month = getHebrewMonths(date.year); - } - else { - date.month -= val; - val = 0; - } - } - } - return date; - } - /** - * @param {?} date - * @param {?} val - * @return {?} - */ - function setHebrewDay(date, val) { - /** @type {?} */ - var after = val >= 0; - if (!after) { - val = -val; - } - while (val > 0) { - if (after) { - if (val > getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date)) { - val -= getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date) + 1; - date.year++; - date.month = 1; - date.day = 1; - } - else if (val > getDaysInHebrewMonth(date.month, date.year) - date.day) { - val -= getDaysInHebrewMonth(date.month, date.year) - date.day + 1; - date.month++; - date.day = 1; - } - else { - date.day += val; - val = 0; - } - } - else { - if (val >= date.day) { - val -= date.day; - date.month--; - if (date.month === 0) { - date.year--; - date.month = getHebrewMonths(date.year); - } - date.day = getDaysInHebrewMonth(date.month, date.year); - } - else { - date.day -= val; - val = 0; - } - } - } - return date; - } - /** - * Returns the equivalent Hebrew date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to Hebrew date. - * @param {?} gdate - * @return {?} - */ - function fromGregorian$1(gdate) { - /** @type {?} */ - var date = new Date(gdate); - /** @type {?} */ - var gYear = date.getFullYear(); - /** @type {?} */ - var gMonth = date.getMonth(); - /** @type {?} */ - var gDay = date.getDate(); - /** @type {?} */ - var julianDay = GREGORIAN_EPOCH$1 - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) - - Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) + - Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear$1(gYear) ? -1 : -2) + gDay); - julianDay = Math.floor(julianDay + 0.5); - /** @type {?} */ - var daysSinceHebEpoch = julianDay - 347997; - /** @type {?} */ - var monthsSinceHebEpoch = Math.floor(daysSinceHebEpoch * PARTS_PER_DAY / PARTS_PER_MONTH); - /** @type {?} */ - var hYear = Math.floor((monthsSinceHebEpoch * 19 + 234) / 235) + 1; - /** @type {?} */ - var firstDayOfThisYear = numberOfFirstDayInYear(hYear); - /** @type {?} */ - var dayOfYear = daysSinceHebEpoch - firstDayOfThisYear; - while (dayOfYear < 1) { - hYear--; - firstDayOfThisYear = numberOfFirstDayInYear(hYear); - dayOfYear = daysSinceHebEpoch - firstDayOfThisYear; - } - /** @type {?} */ - var hMonth = 1; - /** @type {?} */ - var hDay = dayOfYear; - while (hDay > getDaysInHebrewMonth(hMonth, hYear)) { - hDay -= getDaysInHebrewMonth(hMonth, hYear); - hMonth++; - } - return new NgbDate(hYear, hMonth, hDay); - } - /** - * Returns the equivalent JS date value for a given Hebrew date. - * `hebrewDate` is an Hebrew date to be converted to Gregorian. - * @param {?} hebrewDate - * @return {?} - */ - function toGregorian$1(hebrewDate) { - /** @type {?} */ - var hYear = hebrewDate.year; - /** @type {?} */ - var hMonth = hebrewDate.month; - /** @type {?} */ - var hDay = hebrewDate.day; - /** @type {?} */ - var days = numberOfFirstDayInYear(hYear); - for (var i = 1; i < hMonth; i++) { - days += getDaysInHebrewMonth(i, hYear); - } - days += hDay; - /** @type {?} */ - var diffDays = days - HEBREW_DAY_ON_JAN_1_1970; - /** @type {?} */ - var after = diffDays >= 0; - if (!after) { - diffDays = -diffDays; - } - /** @type {?} */ - var gYear = 1970; - /** @type {?} */ - var gMonth = 1; - /** @type {?} */ - var gDay = 1; - while (diffDays > 0) { - if (after) { - if (diffDays >= (isGregorianLeapYear$1(gYear) ? 366 : 365)) { - diffDays -= isGregorianLeapYear$1(gYear) ? 366 : 365; - gYear++; - } - else if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) { - diffDays -= getDaysInGregorianMonth(gMonth, gYear); - gMonth++; - } - else { - gDay += diffDays; - diffDays = 0; - } - } - else { - if (diffDays >= (isGregorianLeapYear$1(gYear - 1) ? 366 : 365)) { - diffDays -= isGregorianLeapYear$1(gYear - 1) ? 366 : 365; - gYear--; - } - else { - if (gMonth > 1) { - gMonth--; - } - else { - gMonth = 12; - gYear--; - } - if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) { - diffDays -= getDaysInGregorianMonth(gMonth, gYear); - } - else { - gDay = getDaysInGregorianMonth(gMonth, gYear) - diffDays + 1; - diffDays = 0; - } - } - } - } - return new Date(gYear, gMonth - 1, gDay); - } - /** - * @param {?} numerals - * @return {?} - */ - function hebrewNumerals(numerals) { - if (!numerals) { - return ''; - } - /** @type {?} */ - var hArray0_9 = ['', '\u05d0', '\u05d1', '\u05d2', '\u05d3', '\u05d4', '\u05d5', '\u05d6', '\u05d7', '\u05d8']; - /** @type {?} */ - var hArray10_19 = [ - '\u05d9', '\u05d9\u05d0', '\u05d9\u05d1', '\u05d9\u05d2', '\u05d9\u05d3', '\u05d8\u05d5', '\u05d8\u05d6', - '\u05d9\u05d6', '\u05d9\u05d7', '\u05d9\u05d8' - ]; - /** @type {?} */ - var hArray20_90 = ['', '', '\u05db', '\u05dc', '\u05de', '\u05e0', '\u05e1', '\u05e2', '\u05e4', '\u05e6']; - /** @type {?} */ - var hArray100_900 = [ - '', '\u05e7', '\u05e8', '\u05e9', '\u05ea', '\u05ea\u05e7', '\u05ea\u05e8', '\u05ea\u05e9', '\u05ea\u05ea', - '\u05ea\u05ea\u05e7' - ]; - /** @type {?} */ - var hArray1000_9000 = [ - '', '\u05d0', '\u05d1', '\u05d1\u05d0', '\u05d1\u05d1', '\u05d4', '\u05d4\u05d0', '\u05d4\u05d1', - '\u05d4\u05d1\u05d0', '\u05d4\u05d1\u05d1' - ]; - /** @type {?} */ - var geresh = '\u05f3'; - /** @type {?} */ - var gershaim = '\u05f4'; - /** @type {?} */ - var mem = 0; - /** @type {?} */ - var result = []; - /** @type {?} */ - var step = 0; - while (numerals > 0) { - /** @type {?} */ - var m = numerals % 10; - if (step === 0) { - mem = m; - } - else if (step === 1) { - if (m !== 1) { - result.unshift(hArray20_90[m], hArray0_9[mem]); - } - else { - result.unshift(hArray10_19[mem]); - } - } - else if (step === 2) { - result.unshift(hArray100_900[m]); - } - else { - if (m !== 5) { - result.unshift(hArray1000_9000[m], geresh, ' '); - } - break; - } - numerals = Math.floor(numerals / 10); - if (step === 0 && numerals === 0) { - result.unshift(hArray0_9[m]); - } - step++; - } - result = result.join('').split(''); - if (result.length === 1) { - result.push(geresh); - } - else if (result.length > 1) { - result.splice(result.length - 1, 0, gershaim); - } - return result.join(''); - } - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * \@since 3.2.0 - */ - var NgbCalendarHebrew = /** @class */ (function (_super) { - __extends(NgbCalendarHebrew, _super); - function NgbCalendarHebrew() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarHebrew.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @param {?=} year - * @return {?} - */ - NgbCalendarHebrew.prototype.getMonths = /** - * @param {?=} year - * @return {?} - */ - function (year) { - if (year && isHebrewLeapYear(year)) { - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; - } - else { - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; - } - }; - /** - * @return {?} - */ - NgbCalendarHebrew.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var b = date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day); - b = b && date.month > 0 && date.month <= (isHebrewLeapYear(date.year) ? 13 : 12); - b = b && date.day > 0 && date.day <= getDaysInHebrewMonth(date.month, date.year); - return b && !isNaN(toGregorian$1(date).getTime()); - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHebrew.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date.year += number; - date.month = 1; - date.day = 1; - return date; - case 'm': - date = setHebrewMonth(date, number); - date.day = 1; - return date; - case 'd': - return setHebrewDay(date, number); - default: - return date; - } - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHebrew.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var day = toGregorian$1(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarHebrew.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - /** @type {?} */ - var date = week[week.length - 1]; - return Math.ceil(getDayNumberInHebrewYear(date) / 7); - }; - /** - * @return {?} - */ - NgbCalendarHebrew.prototype.getToday = /** - * @return {?} - */ - function () { return fromGregorian$1(new Date()); }; - /** - * @since 3.4.0 - */ - /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.toGregorian = /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - function (date) { return fromJSDate(toGregorian$1(date)); }; - /** - * @since 3.4.0 - */ - /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.fromGregorian = /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - function (date) { return fromGregorian$1(toJSDate(date)); }; - NgbCalendarHebrew.decorators = [ - { type: core.Injectable } - ]; - return NgbCalendarHebrew; - }(NgbCalendar)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var WEEKDAYS = ['שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת', 'ראשון']; - /** @type {?} */ - var MONTHS = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול']; - /** @type {?} */ - var MONTHS_LEAP = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר א׳', 'אדר ב׳', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול']; - /** - * \@since 3.2.0 - */ - var NgbDatepickerI18nHebrew = /** @class */ (function (_super) { - __extends(NgbDatepickerI18nHebrew, _super); - function NgbDatepickerI18nHebrew() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getMonthShortName = /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - function (month, year) { return this.getMonthFullName(month, year); }; - /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getMonthFullName = /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - function (month, year) { - return isHebrewLeapYear(year) ? MONTHS_LEAP[month - 1] : MONTHS[month - 1]; - }; - /** - * @param {?} weekday - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getWeekdayShortName = /** - * @param {?} weekday - * @return {?} - */ - function (weekday) { return WEEKDAYS[weekday - 1]; }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getDayAriaLabel = /** - * @param {?} date - * @return {?} - */ - function (date) { - return hebrewNumerals(date.day) + " " + this.getMonthFullName(date.month, date.year) + " " + hebrewNumerals(date.year); - }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getDayNumerals = /** - * @param {?} date - * @return {?} - */ - function (date) { return hebrewNumerals(date.day); }; - /** - * @param {?} weekNumber - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getWeekNumerals = /** - * @param {?} weekNumber - * @return {?} - */ - function (weekNumber) { return hebrewNumerals(weekNumber); }; - /** - * @param {?} year - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getYearNumerals = /** - * @param {?} year - * @return {?} - */ - function (year) { return hebrewNumerals(year); }; - NgbDatepickerI18nHebrew.decorators = [ - { type: core.Injectable } - ]; - return NgbDatepickerI18nHebrew; - }(NgbDatepickerI18n)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses - * native javascript dates as a user date model. - */ - var NgbDateNativeAdapter = /** @class */ (function (_super) { - __extends(NgbDateNativeAdapter, _super); - function NgbDateNativeAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Converts a native `Date` to a `NgbDateStruct`. - */ - /** - * Converts a native `Date` to a `NgbDateStruct`. - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype.fromModel = /** - * Converts a native `Date` to a `NgbDateStruct`. - * @param {?} date - * @return {?} - */ - function (date) { - return (date instanceof Date && !isNaN(date.getTime())) ? this._fromNativeDate(date) : null; - }; - /** - * Converts a `NgbDateStruct` to a native `Date`. - */ - /** - * Converts a `NgbDateStruct` to a native `Date`. - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype.toModel = /** - * Converts a `NgbDateStruct` to a native `Date`. - * @param {?} date - * @return {?} - */ - function (date) { - return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) ? this._toNativeDate(date) : - null; - }; - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype._fromNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - return { year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate() }; - }; - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype._toNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = new Date(date.year, date.month - 1, date.day, 12); - // avoid 30 -> 1930 conversion - jsDate.setFullYear(date.year); - return jsDate; - }; - NgbDateNativeAdapter.decorators = [ - { type: core.Injectable } - ]; - return NgbDateNativeAdapter; - }(NgbDateAdapter)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates. - * - * \@since 3.2.0 - */ - var NgbDateNativeUTCAdapter = /** @class */ (function (_super) { - __extends(NgbDateNativeUTCAdapter, _super); - function NgbDateNativeUTCAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeUTCAdapter.prototype._fromNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - return { year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate() }; - }; - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeUTCAdapter.prototype._toNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = new Date(Date.UTC(date.year, date.month - 1, date.day)); - // avoid 30 -> 1930 conversion - jsDate.setUTCFullYear(date.year); - return jsDate; - }; - NgbDateNativeUTCAdapter.decorators = [ - { type: core.Injectable } - ]; - return NgbDateNativeUTCAdapter; - }(NgbDateNativeAdapter)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbDatepickerModule = /** @class */ (function () { - function NgbDatepickerModule() { - } - NgbDatepickerModule.decorators = [ - { type: core.NgModule, args: [{ - declarations: [ - NgbDatepicker, NgbDatepickerMonthView, NgbDatepickerNavigation, NgbDatepickerNavigationSelect, NgbDatepickerDayView, - NgbInputDatepicker - ], - exports: [NgbDatepicker, NgbInputDatepicker], - imports: [common.CommonModule, forms.FormsModule], - entryComponents: [NgbDatepicker] - },] } - ]; - return NgbDatepickerModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the dropdowns used in the application. - */ - var NgbDropdownConfig = /** @class */ (function () { - function NgbDropdownConfig() { - this.autoClose = true; - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - } - NgbDropdownConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbDropdownConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbDropdownConfig_Factory() { return new NgbDropdownConfig(); }, token: NgbDropdownConfig, providedIn: "root" }); - return NgbDropdownConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbNavbar = /** @class */ (function () { - function NgbNavbar() { - } - NgbNavbar.decorators = [ - { type: core.Directive, args: [{ selector: '.navbar' },] } - ]; - return NgbNavbar; - }()); - /** - * A directive you should put put on a dropdown item to enable keyboard navigation. - * Arrow keys will move focus between items marked with this directive. - * - * \@since 4.1.0 - */ - var NgbDropdownItem = /** @class */ (function () { - function NgbDropdownItem(elementRef) { - this.elementRef = elementRef; - this._disabled = false; - } - Object.defineProperty(NgbDropdownItem.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { return this._disabled; }, - set: /** - * @param {?} value - * @return {?} - */ - function (value) { - this._disabled = (/** @type {?} */ (value)) === '' || value === true; // accept an empty attribute as true - }, - enumerable: true, - configurable: true - }); - NgbDropdownItem.decorators = [ - { type: core.Directive, args: [{ selector: '[ngbDropdownItem]', host: { 'class': 'dropdown-item', '[class.disabled]': 'disabled' } },] } - ]; - /** @nocollapse */ - NgbDropdownItem.ctorParameters = function () { return [ - { type: core.ElementRef } - ]; }; - NgbDropdownItem.propDecorators = { - disabled: [{ type: core.Input }] - }; - return NgbDropdownItem; - }()); - /** - * A directive that wraps dropdown menu content and dropdown items. - */ - var NgbDropdownMenu = /** @class */ (function () { - function NgbDropdownMenu(dropdown) { - this.dropdown = dropdown; - this.placement = 'bottom'; - this.isOpen = false; - } - NgbDropdownMenu.decorators = [ - { type: core.Directive, args: [{ - selector: '[ngbDropdownMenu]', - host: { - '[class.dropdown-menu]': 'true', - '[class.show]': 'dropdown.isOpen()', - '[attr.x-placement]': 'placement', - '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)', - '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)', - '(keydown.Home)': 'dropdown.onKeyDown($event)', - '(keydown.End)': 'dropdown.onKeyDown($event)', - '(keydown.Enter)': 'dropdown.onKeyDown($event)', - '(keydown.Space)': 'dropdown.onKeyDown($event)' - } - },] } - ]; - /** @nocollapse */ - NgbDropdownMenu.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: core.Inject, args: [core.forwardRef((/** - * @return {?} - */ - function () { return NgbDropdown; })),] }] } - ]; }; - NgbDropdownMenu.propDecorators = { - menuItems: [{ type: core.ContentChildren, args: [NgbDropdownItem,] }] - }; - return NgbDropdownMenu; - }()); - /** - * A directive to mark an element to which dropdown menu will be anchored. - * - * This is a simple version of the `NgbDropdownToggle` directive. - * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support - * for events other than click. - * - * \@since 1.1.0 - */ - var NgbDropdownAnchor = /** @class */ (function () { - function NgbDropdownAnchor(dropdown, _elementRef) { - this.dropdown = dropdown; - this._elementRef = _elementRef; - this.anchorEl = _elementRef.nativeElement; - } - /** - * @return {?} - */ - NgbDropdownAnchor.prototype.getNativeElement = /** - * @return {?} - */ - function () { return this._elementRef.nativeElement; }; - NgbDropdownAnchor.decorators = [ - { type: core.Directive, args: [{ - selector: '[ngbDropdownAnchor]', - host: { 'class': 'dropdown-toggle', 'aria-haspopup': 'true', '[attr.aria-expanded]': 'dropdown.isOpen()' } - },] } - ]; - /** @nocollapse */ - NgbDropdownAnchor.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: core.Inject, args: [core.forwardRef((/** - * @return {?} - */ - function () { return NgbDropdown; })),] }] }, - { type: core.ElementRef } - ]; }; - return NgbDropdownAnchor; - }()); - /** - * A directive to mark an element that will toggle dropdown via the `click` event. - * - * You can also use `NgbDropdownAnchor` as an alternative. - */ - var NgbDropdownToggle = /** @class */ (function (_super) { - __extends(NgbDropdownToggle, _super); - function NgbDropdownToggle(dropdown, elementRef) { - return _super.call(this, dropdown, elementRef) || this; - } - NgbDropdownToggle.decorators = [ - { type: core.Directive, args: [{ - selector: '[ngbDropdownToggle]', - host: { - 'class': 'dropdown-toggle', - 'aria-haspopup': 'true', - '[attr.aria-expanded]': 'dropdown.isOpen()', - '(click)': 'dropdown.toggle()', - '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)', - '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)', - '(keydown.Home)': 'dropdown.onKeyDown($event)', - '(keydown.End)': 'dropdown.onKeyDown($event)' - }, - providers: [{ provide: NgbDropdownAnchor, useExisting: core.forwardRef((/** - * @return {?} - */ - function () { return NgbDropdownToggle; })) }] - },] } - ]; - /** @nocollapse */ - NgbDropdownToggle.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: core.Inject, args: [core.forwardRef((/** - * @return {?} - */ - function () { return NgbDropdown; })),] }] }, - { type: core.ElementRef } - ]; }; - return NgbDropdownToggle; - }(NgbDropdownAnchor)); - /** - * A directive that provides contextual overlays for displaying lists of links and more. - */ - var NgbDropdown = /** @class */ (function () { - function NgbDropdown(_changeDetector, config, _document, _ngZone, _elementRef, _renderer, ngbNavbar) { - var _this = this; - this._changeDetector = _changeDetector; - this._document = _document; - this._ngZone = _ngZone; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._closed$ = new rxjs.Subject(); - /** - * Defines whether or not the dropdown menu is opened initially. - */ - this._open = false; - /** - * An event fired when the dropdown is opened or closed. - * - * The event payload is a `boolean`: - * * `true` - the dropdown was opened - * * `false` - the dropdown was closed - */ - this.openChange = new core.EventEmitter(); - this.placement = config.placement; - this.container = config.container; - this.autoClose = config.autoClose; - this.display = ngbNavbar ? 'static' : 'dynamic'; - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { _this._positionMenu(); })); - } - /** - * @return {?} - */ - NgbDropdown.prototype.ngAfterContentInit = /** - * @return {?} - */ - function () { - var _this = this; - this._ngZone.onStable.pipe(operators.take(1)).subscribe((/** - * @return {?} - */ - function () { - _this._applyPlacementClasses(); - if (_this._open) { - _this._setCloseHandlers(); - } - })); - }; - /** - * @param {?} changes - * @return {?} - */ - NgbDropdown.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes.container && this._open) { - this._applyContainer(this.container); - } - if (changes.placement && !changes.placement.isFirstChange) { - this._applyPlacementClasses(); - } - }; - /** - * Checks if the dropdown menu is open. - */ - /** - * Checks if the dropdown menu is open. - * @return {?} - */ - NgbDropdown.prototype.isOpen = /** - * Checks if the dropdown menu is open. - * @return {?} - */ - function () { return this._open; }; - /** - * Opens the dropdown menu. - */ - /** - * Opens the dropdown menu. - * @return {?} - */ - NgbDropdown.prototype.open = /** - * Opens the dropdown menu. - * @return {?} - */ - function () { - if (!this._open) { - this._open = true; - this._applyContainer(this.container); - this.openChange.emit(true); - this._setCloseHandlers(); - } - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._setCloseHandlers = /** - * @private - * @return {?} - */ - function () { - var _this = this; - /** @type {?} */ - var anchor = this._anchor; - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this._closed$, this._menu ? [this._menuElement.nativeElement] : [], anchor ? [anchor.getNativeElement()] : [], '.dropdown-item,.dropdown-divider'); - }; - /** - * Closes the dropdown menu. - */ - /** - * Closes the dropdown menu. - * @return {?} - */ - NgbDropdown.prototype.close = /** - * Closes the dropdown menu. - * @return {?} - */ - function () { - if (this._open) { - this._open = false; - this._resetContainer(); - this._closed$.next(); - this.openChange.emit(false); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the dropdown menu. - */ - /** - * Toggles the dropdown menu. - * @return {?} - */ - NgbDropdown.prototype.toggle = /** - * Toggles the dropdown menu. - * @return {?} - */ - function () { - if (this.isOpen()) { - this.close(); - } - else { - this.open(); - } - }; - /** - * @return {?} - */ - NgbDropdown.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this._resetContainer(); - this._closed$.next(); - this._zoneSubscription.unsubscribe(); - }; - /** - * @param {?} event - * @return {?} - */ - NgbDropdown.prototype.onKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { - var _this = this; - // tslint:disable-next-line:deprecation - /** @type {?} */ - var key = event.which; - /** @type {?} */ - var itemElements = this._getMenuElements(); - /** @type {?} */ - var position = -1; - /** @type {?} */ - var isEventFromItems = false; - /** @type {?} */ - var isEventFromToggle = this._isEventFromToggle(event); - if (!isEventFromToggle && itemElements.length) { - itemElements.forEach((/** - * @param {?} itemElement - * @param {?} index - * @return {?} - */ - function (itemElement, index) { - if (itemElement.contains((/** @type {?} */ (event.target)))) { - isEventFromItems = true; - } - if (itemElement === _this._document.activeElement) { - position = index; - } - })); - } - // closing on Enter / Space - if (key === Key.Space || key === Key.Enter) { - if (isEventFromItems && (this.autoClose === true || this.autoClose === 'inside')) { - this.close(); - } - return; - } - // opening / navigating - if (isEventFromToggle || isEventFromItems) { - this.open(); - if (itemElements.length) { - switch (key) { - case Key.ArrowDown: - position = Math.min(position + 1, itemElements.length - 1); - break; - case Key.ArrowUp: - if (this._isDropup() && position === -1) { - position = itemElements.length - 1; - break; - } - position = Math.max(position - 1, 0); - break; - case Key.Home: - position = 0; - break; - case Key.End: - position = itemElements.length - 1; - break; - } - itemElements[position].focus(); - } - event.preventDefault(); - } - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._isDropup = /** - * @private - * @return {?} - */ - function () { return this._elementRef.nativeElement.classList.contains('dropup'); }; - /** - * @private - * @param {?} event - * @return {?} - */ - NgbDropdown.prototype._isEventFromToggle = /** - * @private - * @param {?} event - * @return {?} - */ - function (event) { - return this._anchor.getNativeElement().contains((/** @type {?} */ (event.target))); - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._getMenuElements = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var menu = this._menu; - if (menu == null) { - return []; - } - return menu.menuItems.filter((/** - * @param {?} item - * @return {?} - */ - function (item) { return !item.disabled; })).map((/** - * @param {?} item - * @return {?} - */ - function (item) { return item.elementRef.nativeElement; })); - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._positionMenu = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var menu = this._menu; - if (this.isOpen() && menu) { - this._applyPlacementClasses(this.display === 'dynamic' ? - positionElements(this._anchor.anchorEl, this._bodyContainer || this._menuElement.nativeElement, this.placement, this.container === 'body') : - this._getFirstPlacement(this.placement)); - } - }; - /** - * @private - * @param {?} placement - * @return {?} - */ - NgbDropdown.prototype._getFirstPlacement = /** - * @private - * @param {?} placement - * @return {?} - */ - function (placement) { - return Array.isArray(placement) ? placement[0] : (/** @type {?} */ (placement.split(' ')[0])); - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._resetContainer = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var renderer = this._renderer; - /** @type {?} */ - var menuElement = this._menuElement; - if (menuElement) { - /** @type {?} */ - var dropdownElement = this._elementRef.nativeElement; - /** @type {?} */ - var dropdownMenuElement = menuElement.nativeElement; - renderer.appendChild(dropdownElement, dropdownMenuElement); - renderer.removeStyle(dropdownMenuElement, 'position'); - renderer.removeStyle(dropdownMenuElement, 'transform'); - } - if (this._bodyContainer) { - renderer.removeChild(this._document.body, this._bodyContainer); - this._bodyContainer = null; - } - }; - /** - * @private - * @param {?=} container - * @return {?} - */ - NgbDropdown.prototype._applyContainer = /** - * @private - * @param {?=} container - * @return {?} - */ - function (container) { - if (container === void 0) { container = null; } - this._resetContainer(); - if (container === 'body') { - /** @type {?} */ - var renderer = this._renderer; - /** @type {?} */ - var dropdownMenuElement = this._menuElement.nativeElement; - /** @type {?} */ - var bodyContainer = this._bodyContainer = this._bodyContainer || renderer.createElement('div'); - // Override some styles to have the positionning working - renderer.setStyle(bodyContainer, 'position', 'absolute'); - renderer.setStyle(dropdownMenuElement, 'position', 'static'); - renderer.setStyle(bodyContainer, 'z-index', '1050'); - renderer.appendChild(bodyContainer, dropdownMenuElement); - renderer.appendChild(this._document.body, bodyContainer); - } - }; - /** - * @private - * @param {?=} placement - * @return {?} - */ - NgbDropdown.prototype._applyPlacementClasses = /** - * @private - * @param {?=} placement - * @return {?} - */ - function (placement) { - /** @type {?} */ - var menu = this._menu; - if (menu) { - if (!placement) { - placement = this._getFirstPlacement(this.placement); - } - /** @type {?} */ - var renderer = this._renderer; - /** @type {?} */ - var dropdownElement = this._elementRef.nativeElement; - // remove the current placement classes - renderer.removeClass(dropdownElement, 'dropup'); - renderer.removeClass(dropdownElement, 'dropdown'); - menu.placement = this.display === 'static' ? null : placement; - /* - * apply the new placement - * in case of top use up-arrow or down-arrow otherwise - */ - /** @type {?} */ - var dropdownClass = placement.search('^top') !== -1 ? 'dropup' : 'dropdown'; - renderer.addClass(dropdownElement, dropdownClass); - /** @type {?} */ - var bodyContainer = this._bodyContainer; - if (bodyContainer) { - renderer.removeClass(bodyContainer, 'dropup'); - renderer.removeClass(bodyContainer, 'dropdown'); - renderer.addClass(bodyContainer, dropdownClass); - } - } - }; - NgbDropdown.decorators = [ - { type: core.Directive, args: [{ selector: '[ngbDropdown]', exportAs: 'ngbDropdown', host: { '[class.show]': 'isOpen()' } },] } - ]; - /** @nocollapse */ - NgbDropdown.ctorParameters = function () { return [ - { type: core.ChangeDetectorRef }, - { type: NgbDropdownConfig }, - { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }, - { type: core.NgZone }, - { type: core.ElementRef }, - { type: core.Renderer2 }, - { type: NgbNavbar, decorators: [{ type: core.Optional }] } - ]; }; - NgbDropdown.propDecorators = { - _menu: [{ type: core.ContentChild, args: [NgbDropdownMenu, { static: false },] }], - _menuElement: [{ type: core.ContentChild, args: [NgbDropdownMenu, { read: core.ElementRef, static: false },] }], - _anchor: [{ type: core.ContentChild, args: [NgbDropdownAnchor, { static: false },] }], - autoClose: [{ type: core.Input }], - _open: [{ type: core.Input, args: ['open',] }], - placement: [{ type: core.Input }], - container: [{ type: core.Input }], - display: [{ type: core.Input }], - openChange: [{ type: core.Output }] - }; - return NgbDropdown; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_DROPDOWN_DIRECTIVES = [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar]; - var NgbDropdownModule = /** @class */ (function () { - function NgbDropdownModule() { - } - NgbDropdownModule.decorators = [ - { type: core.NgModule, args: [{ declarations: NGB_DROPDOWN_DIRECTIVES, exports: NGB_DROPDOWN_DIRECTIVES },] } - ]; - return NgbDropdownModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all modals used in the application. - * - * \@since 3.1.0 - */ - var NgbModalConfig = /** @class */ (function () { - function NgbModalConfig() { - this.backdrop = true; - this.keyboard = true; - } - NgbModalConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbModalConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbModalConfig_Factory() { return new NgbModalConfig(); }, token: NgbModalConfig, providedIn: "root" }); - return NgbModalConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var ContentRef = /** @class */ (function () { - function ContentRef(nodes, viewRef, componentRef) { - this.nodes = nodes; - this.viewRef = viewRef; - this.componentRef = componentRef; - } - return ContentRef; - }()); - /** - * @template T - */ - var /** - * @template T - */ - PopupService = /** @class */ (function () { - function PopupService(_type, _injector, _viewContainerRef, _renderer, _componentFactoryResolver, _applicationRef) { - this._type = _type; - this._injector = _injector; - this._viewContainerRef = _viewContainerRef; - this._renderer = _renderer; - this._componentFactoryResolver = _componentFactoryResolver; - this._applicationRef = _applicationRef; - } - /** - * @param {?=} content - * @param {?=} context - * @return {?} - */ - PopupService.prototype.open = /** - * @param {?=} content - * @param {?=} context - * @return {?} - */ - function (content, context) { - if (!this._windowRef) { - this._contentRef = this._getContentRef(content, context); - this._windowRef = this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type), 0, this._injector, this._contentRef.nodes); - } - return this._windowRef; - }; - /** - * @return {?} - */ - PopupService.prototype.close = /** - * @return {?} - */ - function () { - if (this._windowRef) { - this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)); - this._windowRef = null; - if (this._contentRef.viewRef) { - this._applicationRef.detachView(this._contentRef.viewRef); - this._contentRef.viewRef.destroy(); - this._contentRef = null; - } - } - }; - /** - * @private - * @param {?} content - * @param {?=} context - * @return {?} - */ - PopupService.prototype._getContentRef = /** - * @private - * @param {?} content - * @param {?=} context - * @return {?} - */ - function (content, context) { - if (!content) { - return new ContentRef([]); - } - else if (content instanceof core.TemplateRef) { - /** @type {?} */ - var viewRef = content.createEmbeddedView(context); - this._applicationRef.attachView(viewRef); - return new ContentRef([viewRef.rootNodes], viewRef); - } - else { - return new ContentRef([[this._renderer.createText("" + content)]]); - } - }; - return PopupService; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var noop = (/** - * @return {?} - */ - function () { }); - /** - * Utility to handle the scrollbar. - * - * It allows to compensate the lack of a vertical scrollbar by adding an - * equivalent padding on the right of the body, and to remove this compensation. - */ - var ScrollBar = /** @class */ (function () { - function ScrollBar(_document) { - this._document = _document; - } - /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return {?} a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - ScrollBar.prototype.compensate = /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return {?} a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - function () { return !this._isPresent() ? noop : this._adjustBody(this._getWidth()); }; - /** - * Adds a padding of the given width on the right of the body. - * - * @return a callback used to revert the padding to its previous value - */ - /** - * Adds a padding of the given width on the right of the body. - * - * @private - * @param {?} width - * @return {?} a callback used to revert the padding to its previous value - */ - ScrollBar.prototype._adjustBody = /** - * Adds a padding of the given width on the right of the body. - * - * @private - * @param {?} width - * @return {?} a callback used to revert the padding to its previous value - */ - function (width) { - /** @type {?} */ - var body = this._document.body; - /** @type {?} */ - var userSetPadding = body.style.paddingRight; - /** @type {?} */ - var paddingAmount = parseFloat(window.getComputedStyle(body)['padding-right']); - body.style['padding-right'] = paddingAmount + width + "px"; - return (/** - * @return {?} - */ - function () { return body.style['padding-right'] = userSetPadding; }); - }; - /** - * Tells whether a scrollbar is currently present on the body. - * - * @return true if scrollbar is present, false otherwise - */ - /** - * Tells whether a scrollbar is currently present on the body. - * - * @private - * @return {?} true if scrollbar is present, false otherwise - */ - ScrollBar.prototype._isPresent = /** - * Tells whether a scrollbar is currently present on the body. - * - * @private - * @return {?} true if scrollbar is present, false otherwise - */ - function () { - /** @type {?} */ - var rect = this._document.body.getBoundingClientRect(); - return rect.left + rect.right < window.innerWidth; - }; - /** - * Calculates and returns the width of a scrollbar. - * - * @return the width of a scrollbar on this page - */ - /** - * Calculates and returns the width of a scrollbar. - * - * @private - * @return {?} the width of a scrollbar on this page - */ - ScrollBar.prototype._getWidth = /** - * Calculates and returns the width of a scrollbar. - * - * @private - * @return {?} the width of a scrollbar on this page - */ - function () { - /** @type {?} */ - var measurer = this._document.createElement('div'); - measurer.className = 'modal-scrollbar-measure'; - /** @type {?} */ - var body = this._document.body; - body.appendChild(measurer); - /** @type {?} */ - var width = measurer.getBoundingClientRect().width - measurer.clientWidth; - body.removeChild(measurer); - return width; - }; - ScrollBar.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - ScrollBar.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] } - ]; }; - /** @nocollapse */ ScrollBar.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ScrollBar_Factory() { return new ScrollBar(core.ɵɵinject(common.DOCUMENT)); }, token: ScrollBar, providedIn: "root" }); - return ScrollBar; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbModalBackdrop = /** @class */ (function () { - function NgbModalBackdrop() { - } - NgbModalBackdrop.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-modal-backdrop', - template: '', - host: { '[class]': '"modal-backdrop fade show" + (backdropClass ? " " + backdropClass : "")', 'style': 'z-index: 1050' } - }] } - ]; - NgbModalBackdrop.propDecorators = { - backdropClass: [{ type: core.Input }] - }; - return NgbModalBackdrop; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A reference to the currently opened (active) modal. - * - * Instances of this class can be injected into your component passed as modal content. - * So you can `.close()` or `.dismiss()` the modal window from your component. - */ - var /** - * A reference to the currently opened (active) modal. - * - * Instances of this class can be injected into your component passed as modal content. - * So you can `.close()` or `.dismiss()` the modal window from your component. - */ - NgbActiveModal = /** @class */ (function () { - function NgbActiveModal() { - } - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - */ - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - NgbActiveModal.prototype.close = /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - function (result) { }; - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - */ - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - NgbActiveModal.prototype.dismiss = /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - function (reason) { }; - return NgbActiveModal; - }()); - /** - * A reference to the newly opened modal returned by the `NgbModal.open()` method. - */ - var /** - * A reference to the newly opened modal returned by the `NgbModal.open()` method. - */ - NgbModalRef = /** @class */ (function () { - function NgbModalRef(_windowCmptRef, _contentRef, _backdropCmptRef, _beforeDismiss) { - var _this = this; - this._windowCmptRef = _windowCmptRef; - this._contentRef = _contentRef; - this._backdropCmptRef = _backdropCmptRef; - this._beforeDismiss = _beforeDismiss; - _windowCmptRef.instance.dismissEvent.subscribe((/** - * @param {?} reason - * @return {?} - */ - function (reason) { _this.dismiss(reason); })); - this.result = new Promise((/** - * @param {?} resolve - * @param {?} reject - * @return {?} - */ - function (resolve, reject) { - _this._resolve = resolve; - _this._reject = reject; - })); - this.result.then(null, (/** - * @return {?} - */ - function () { })); - } - Object.defineProperty(NgbModalRef.prototype, "componentInstance", { - /** - * The instance of a component used for the modal content. - * - * When a `TemplateRef` is used as the content, will return `undefined`. - */ - get: /** - * The instance of a component used for the modal content. - * - * When a `TemplateRef` is used as the content, will return `undefined`. - * @return {?} - */ - function () { - if (this._contentRef.componentRef) { - return this._contentRef.componentRef.instance; - } - }, - enumerable: true, - configurable: true - }); - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - */ - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - NgbModalRef.prototype.close = /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - function (result) { - if (this._windowCmptRef) { - this._resolve(result); - this._removeModalElements(); - } - }; - /** - * @private - * @param {?=} reason - * @return {?} - */ - NgbModalRef.prototype._dismiss = /** - * @private - * @param {?=} reason - * @return {?} - */ - function (reason) { - this._reject(reason); - this._removeModalElements(); - }; - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - */ - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - NgbModalRef.prototype.dismiss = /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - function (reason) { - var _this = this; - if (this._windowCmptRef) { - if (!this._beforeDismiss) { - this._dismiss(reason); - } - else { - /** @type {?} */ - var dismiss = this._beforeDismiss(); - if (dismiss && dismiss.then) { - dismiss.then((/** - * @param {?} result - * @return {?} - */ - function (result) { - if (result !== false) { - _this._dismiss(reason); - } - }), (/** - * @return {?} - */ - function () { })); - } - else if (dismiss !== false) { - this._dismiss(reason); - } - } - } - }; - /** - * @private - * @return {?} - */ - NgbModalRef.prototype._removeModalElements = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var windowNativeEl = this._windowCmptRef.location.nativeElement; - windowNativeEl.parentNode.removeChild(windowNativeEl); - this._windowCmptRef.destroy(); - if (this._backdropCmptRef) { - /** @type {?} */ - var backdropNativeEl = this._backdropCmptRef.location.nativeElement; - backdropNativeEl.parentNode.removeChild(backdropNativeEl); - this._backdropCmptRef.destroy(); - } - if (this._contentRef && this._contentRef.viewRef) { - this._contentRef.viewRef.destroy(); - } - this._windowCmptRef = null; - this._backdropCmptRef = null; - this._contentRef = null; - }; - return NgbModalRef; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @enum {number} */ - var ModalDismissReasons = { - BACKDROP_CLICK: 0, - ESC: 1, - }; - ModalDismissReasons[ModalDismissReasons.BACKDROP_CLICK] = 'BACKDROP_CLICK'; - ModalDismissReasons[ModalDismissReasons.ESC] = 'ESC'; - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbModalWindow = /** @class */ (function () { - function NgbModalWindow(_document, _elRef) { - this._document = _document; - this._elRef = _elRef; - this.backdrop = true; - this.keyboard = true; - this.dismissEvent = new core.EventEmitter(); - } - /** - * @param {?} $event - * @return {?} - */ - NgbModalWindow.prototype.backdropClick = /** - * @param {?} $event - * @return {?} - */ - function ($event) { - if (this.backdrop === true && this._elRef.nativeElement === $event.target) { - this.dismiss(ModalDismissReasons.BACKDROP_CLICK); - } - }; - /** - * @param {?} $event - * @return {?} - */ - NgbModalWindow.prototype.escKey = /** - * @param {?} $event - * @return {?} - */ - function ($event) { - if (this.keyboard && !$event.defaultPrevented) { - this.dismiss(ModalDismissReasons.ESC); - } - }; - /** - * @param {?} reason - * @return {?} - */ - NgbModalWindow.prototype.dismiss = /** - * @param {?} reason - * @return {?} - */ - function (reason) { this.dismissEvent.emit(reason); }; - /** - * @return {?} - */ - NgbModalWindow.prototype.ngOnInit = /** - * @return {?} - */ - function () { this._elWithFocus = this._document.activeElement; }; - /** - * @return {?} - */ - NgbModalWindow.prototype.ngAfterViewInit = /** - * @return {?} - */ - function () { - if (!this._elRef.nativeElement.contains(document.activeElement)) { - /** @type {?} */ - var autoFocusable = (/** @type {?} */ (this._elRef.nativeElement.querySelector("[ngbAutofocus]"))); - /** @type {?} */ - var firstFocusable = getFocusableBoundaryElements(this._elRef.nativeElement)[0]; - /** @type {?} */ - var elementToFocus = autoFocusable || firstFocusable || this._elRef.nativeElement; - elementToFocus.focus(); - } - }; - /** - * @return {?} - */ - NgbModalWindow.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - /** @type {?} */ - var body = this._document.body; - /** @type {?} */ - var elWithFocus = this._elWithFocus; - /** @type {?} */ - var elementToFocus; - if (elWithFocus && elWithFocus['focus'] && body.contains(elWithFocus)) { - elementToFocus = elWithFocus; - } - else { - elementToFocus = body; - } - elementToFocus.focus(); - this._elWithFocus = null; - }; - NgbModalWindow.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-modal-window', - host: { - '[class]': '"modal fade show d-block" + (windowClass ? " " + windowClass : "")', - 'role': 'dialog', - 'tabindex': '-1', - '(keyup.esc)': 'escKey($event)', - '(click)': 'backdropClick($event)', - '[attr.aria-modal]': 'true', - '[attr.aria-labelledby]': 'ariaLabelledBy', - }, - template: "\n
\n
\n
\n ", - encapsulation: core.ViewEncapsulation.None, - styles: ["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"] - }] } - ]; - /** @nocollapse */ - NgbModalWindow.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }, - { type: core.ElementRef } - ]; }; - NgbModalWindow.propDecorators = { - ariaLabelledBy: [{ type: core.Input }], - backdrop: [{ type: core.Input }], - centered: [{ type: core.Input }], - keyboard: [{ type: core.Input }], - scrollable: [{ type: core.Input }], - size: [{ type: core.Input }], - windowClass: [{ type: core.Input }], - dismissEvent: [{ type: core.Output, args: ['dismiss',] }] - }; - return NgbModalWindow; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbModalStack = /** @class */ (function () { - function NgbModalStack(_applicationRef, _injector, _document, _scrollBar, _rendererFactory) { - var _this = this; - this._applicationRef = _applicationRef; - this._injector = _injector; - this._document = _document; - this._scrollBar = _scrollBar; - this._rendererFactory = _rendererFactory; - this._activeWindowCmptHasChanged = new rxjs.Subject(); - this._ariaHiddenValues = new Map(); - this._backdropAttributes = ['backdropClass']; - this._modalRefs = []; - this._windowAttributes = ['ariaLabelledBy', 'backdrop', 'centered', 'keyboard', 'scrollable', 'size', 'windowClass']; - this._windowCmpts = []; - // Trap focus on active WindowCmpt - this._activeWindowCmptHasChanged.subscribe((/** - * @return {?} - */ - function () { - if (_this._windowCmpts.length) { - /** @type {?} */ - var activeWindowCmpt = _this._windowCmpts[_this._windowCmpts.length - 1]; - ngbFocusTrap(activeWindowCmpt.location.nativeElement, _this._activeWindowCmptHasChanged); - _this._revertAriaHidden(); - _this._setAriaHidden(activeWindowCmpt.location.nativeElement); - } - })); - } - /** - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype.open = /** - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} options - * @return {?} - */ - function (moduleCFR, contentInjector, content, options) { - var _this = this; - /** @type {?} */ - var containerEl = isDefined(options.container) ? this._document.querySelector(options.container) : this._document.body; - /** @type {?} */ - var renderer = this._rendererFactory.createRenderer(null, null); - /** @type {?} */ - var revertPaddingForScrollBar = this._scrollBar.compensate(); - /** @type {?} */ - var removeBodyClass = (/** - * @return {?} - */ - function () { - if (!_this._modalRefs.length) { - renderer.removeClass(_this._document.body, 'modal-open'); - _this._revertAriaHidden(); - } - }); - if (!containerEl) { - throw new Error("The specified modal container \"" + (options.container || 'body') + "\" was not found in the DOM."); - } - /** @type {?} */ - var activeModal = new NgbActiveModal(); - /** @type {?} */ - var contentRef = this._getContentRef(moduleCFR, options.injector || contentInjector, content, activeModal, options); - /** @type {?} */ - var backdropCmptRef = options.backdrop !== false ? this._attachBackdrop(moduleCFR, containerEl) : null; - /** @type {?} */ - var windowCmptRef = this._attachWindowComponent(moduleCFR, containerEl, contentRef); - /** @type {?} */ - var ngbModalRef = new NgbModalRef(windowCmptRef, contentRef, backdropCmptRef, options.beforeDismiss); - this._registerModalRef(ngbModalRef); - this._registerWindowCmpt(windowCmptRef); - ngbModalRef.result.then(revertPaddingForScrollBar, revertPaddingForScrollBar); - ngbModalRef.result.then(removeBodyClass, removeBodyClass); - activeModal.close = (/** - * @param {?} result - * @return {?} - */ - function (result) { ngbModalRef.close(result); }); - activeModal.dismiss = (/** - * @param {?} reason - * @return {?} - */ - function (reason) { ngbModalRef.dismiss(reason); }); - this._applyWindowOptions(windowCmptRef.instance, options); - if (this._modalRefs.length === 1) { - renderer.addClass(this._document.body, 'modal-open'); - } - if (backdropCmptRef && backdropCmptRef.instance) { - this._applyBackdropOptions(backdropCmptRef.instance, options); - } - return ngbModalRef; - }; - /** - * @param {?=} reason - * @return {?} - */ - NgbModalStack.prototype.dismissAll = /** - * @param {?=} reason - * @return {?} - */ - function (reason) { this._modalRefs.forEach((/** - * @param {?} ngbModalRef - * @return {?} - */ - function (ngbModalRef) { return ngbModalRef.dismiss(reason); })); }; - /** - * @return {?} - */ - NgbModalStack.prototype.hasOpenModals = /** - * @return {?} - */ - function () { return this._modalRefs.length > 0; }; - /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @return {?} - */ - NgbModalStack.prototype._attachBackdrop = /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @return {?} - */ - function (moduleCFR, containerEl) { - /** @type {?} */ - var backdropFactory = moduleCFR.resolveComponentFactory(NgbModalBackdrop); - /** @type {?} */ - var backdropCmptRef = backdropFactory.create(this._injector); - this._applicationRef.attachView(backdropCmptRef.hostView); - containerEl.appendChild(backdropCmptRef.location.nativeElement); - return backdropCmptRef; - }; - /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @param {?} contentRef - * @return {?} - */ - NgbModalStack.prototype._attachWindowComponent = /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @param {?} contentRef - * @return {?} - */ - function (moduleCFR, containerEl, contentRef) { - /** @type {?} */ - var windowFactory = moduleCFR.resolveComponentFactory(NgbModalWindow); - /** @type {?} */ - var windowCmptRef = windowFactory.create(this._injector, contentRef.nodes); - this._applicationRef.attachView(windowCmptRef.hostView); - containerEl.appendChild(windowCmptRef.location.nativeElement); - return windowCmptRef; - }; - /** - * @private - * @param {?} windowInstance - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._applyWindowOptions = /** - * @private - * @param {?} windowInstance - * @param {?} options - * @return {?} - */ - function (windowInstance, options) { - this._windowAttributes.forEach((/** - * @param {?} optionName - * @return {?} - */ - function (optionName) { - if (isDefined(options[optionName])) { - windowInstance[optionName] = options[optionName]; - } - })); - }; - /** - * @private - * @param {?} backdropInstance - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._applyBackdropOptions = /** - * @private - * @param {?} backdropInstance - * @param {?} options - * @return {?} - */ - function (backdropInstance, options) { - this._backdropAttributes.forEach((/** - * @param {?} optionName - * @return {?} - */ - function (optionName) { - if (isDefined(options[optionName])) { - backdropInstance[optionName] = options[optionName]; - } - })); - }; - /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} activeModal - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._getContentRef = /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} activeModal - * @param {?} options - * @return {?} - */ - function (moduleCFR, contentInjector, content, activeModal, options) { - if (!content) { - return new ContentRef([]); - } - else if (content instanceof core.TemplateRef) { - return this._createFromTemplateRef(content, activeModal); - } - else if (isString(content)) { - return this._createFromString(content); - } - else { - return this._createFromComponent(moduleCFR, contentInjector, content, activeModal, options); - } - }; - /** - * @private - * @param {?} content - * @param {?} activeModal - * @return {?} - */ - NgbModalStack.prototype._createFromTemplateRef = /** - * @private - * @param {?} content - * @param {?} activeModal - * @return {?} - */ - function (content, activeModal) { - /** @type {?} */ - var context = { - $implicit: activeModal, - close: /** - * @param {?} result - * @return {?} - */ - function (result) { activeModal.close(result); }, - dismiss: /** - * @param {?} reason - * @return {?} - */ - function (reason) { activeModal.dismiss(reason); } - }; - /** @type {?} */ - var viewRef = content.createEmbeddedView(context); - this._applicationRef.attachView(viewRef); - return new ContentRef([viewRef.rootNodes], viewRef); - }; - /** - * @private - * @param {?} content - * @return {?} - */ - NgbModalStack.prototype._createFromString = /** - * @private - * @param {?} content - * @return {?} - */ - function (content) { - /** @type {?} */ - var component = this._document.createTextNode("" + content); - return new ContentRef([[component]]); - }; - /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} context - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._createFromComponent = /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} context - * @param {?} options - * @return {?} - */ - function (moduleCFR, contentInjector, content, context, options) { - /** @type {?} */ - var contentCmptFactory = moduleCFR.resolveComponentFactory(content); - /** @type {?} */ - var modalContentInjector = core.Injector.create({ providers: [{ provide: NgbActiveModal, useValue: context }], parent: contentInjector }); - /** @type {?} */ - var componentRef = contentCmptFactory.create(modalContentInjector); - /** @type {?} */ - var componentNativeEl = componentRef.location.nativeElement; - if (options.scrollable) { - ((/** @type {?} */ (componentNativeEl))).classList.add('component-host-scrollable'); - } - this._applicationRef.attachView(componentRef.hostView); - // FIXME: we should here get rid of the component nativeElement - // and use `[Array.from(componentNativeEl.childNodes)]` instead and remove the above CSS class. - return new ContentRef([[componentNativeEl]], componentRef.hostView, componentRef); - }; - /** - * @private - * @param {?} element - * @return {?} - */ - NgbModalStack.prototype._setAriaHidden = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { - var _this = this; - /** @type {?} */ - var parent = element.parentElement; - if (parent && element !== this._document.body) { - Array.from(parent.children).forEach((/** - * @param {?} sibling - * @return {?} - */ - function (sibling) { - if (sibling !== element && sibling.nodeName !== 'SCRIPT') { - _this._ariaHiddenValues.set(sibling, sibling.getAttribute('aria-hidden')); - sibling.setAttribute('aria-hidden', 'true'); - } - })); - this._setAriaHidden(parent); - } - }; - /** - * @private - * @return {?} - */ - NgbModalStack.prototype._revertAriaHidden = /** - * @private - * @return {?} - */ - function () { - this._ariaHiddenValues.forEach((/** - * @param {?} value - * @param {?} element - * @return {?} - */ - function (value, element) { - if (value) { - element.setAttribute('aria-hidden', value); - } - else { - element.removeAttribute('aria-hidden'); - } - })); - this._ariaHiddenValues.clear(); - }; - /** - * @private - * @param {?} ngbModalRef - * @return {?} - */ - NgbModalStack.prototype._registerModalRef = /** - * @private - * @param {?} ngbModalRef - * @return {?} - */ - function (ngbModalRef) { - var _this = this; - /** @type {?} */ - var unregisterModalRef = (/** - * @return {?} - */ - function () { - /** @type {?} */ - var index = _this._modalRefs.indexOf(ngbModalRef); - if (index > -1) { - _this._modalRefs.splice(index, 1); - } - }); - this._modalRefs.push(ngbModalRef); - ngbModalRef.result.then(unregisterModalRef, unregisterModalRef); - }; - /** - * @private - * @param {?} ngbWindowCmpt - * @return {?} - */ - NgbModalStack.prototype._registerWindowCmpt = /** - * @private - * @param {?} ngbWindowCmpt - * @return {?} - */ - function (ngbWindowCmpt) { - var _this = this; - this._windowCmpts.push(ngbWindowCmpt); - this._activeWindowCmptHasChanged.next(); - ngbWindowCmpt.onDestroy((/** - * @return {?} - */ - function () { - /** @type {?} */ - var index = _this._windowCmpts.indexOf(ngbWindowCmpt); - if (index > -1) { - _this._windowCmpts.splice(index, 1); - _this._activeWindowCmptHasChanged.next(); - } - })); - }; - NgbModalStack.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - NgbModalStack.ctorParameters = function () { return [ - { type: core.ApplicationRef }, - { type: core.Injector }, - { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }, - { type: ScrollBar }, - { type: core.RendererFactory2 } - ]; }; - /** @nocollapse */ NgbModalStack.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbModalStack_Factory() { return new NgbModalStack(core.ɵɵinject(core.ApplicationRef), core.ɵɵinject(core.INJECTOR), core.ɵɵinject(common.DOCUMENT), core.ɵɵinject(ScrollBar), core.ɵɵinject(core.RendererFactory2)); }, token: NgbModalStack, providedIn: "root" }); - return NgbModalStack; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A service for opening modal windows. - * - * Creating a modal is straightforward: create a component or a template and pass it as an argument to - * the `.open()` method. - */ - var NgbModal = /** @class */ (function () { - function NgbModal(_moduleCFR, _injector, _modalStack, _config) { - this._moduleCFR = _moduleCFR; - this._injector = _injector; - this._modalStack = _modalStack; - this._config = _config; - } - /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - */ - /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - * @param {?} content - * @param {?=} options - * @return {?} - */ - NgbModal.prototype.open = /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - * @param {?} content - * @param {?=} options - * @return {?} - */ - function (content, options) { - if (options === void 0) { options = {}; } - /** @type {?} */ - var combinedOptions = Object.assign({}, this._config, options); - return this._modalStack.open(this._moduleCFR, this._injector, content, combinedOptions); - }; - /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * @since 3.1.0 - */ - /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * \@since 3.1.0 - * @param {?=} reason - * @return {?} - */ - NgbModal.prototype.dismissAll = /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * \@since 3.1.0 - * @param {?=} reason - * @return {?} - */ - function (reason) { this._modalStack.dismissAll(reason); }; - /** - * Indicates if there are currently any open modal windows in the application. - * - * @since 3.3.0 - */ - /** - * Indicates if there are currently any open modal windows in the application. - * - * \@since 3.3.0 - * @return {?} - */ - NgbModal.prototype.hasOpenModals = /** - * Indicates if there are currently any open modal windows in the application. - * - * \@since 3.3.0 - * @return {?} - */ - function () { return this._modalStack.hasOpenModals(); }; - NgbModal.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - NgbModal.ctorParameters = function () { return [ - { type: core.ComponentFactoryResolver }, - { type: core.Injector }, - { type: NgbModalStack }, - { type: NgbModalConfig } - ]; }; - /** @nocollapse */ NgbModal.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbModal_Factory() { return new NgbModal(core.ɵɵinject(core.ComponentFactoryResolver), core.ɵɵinject(core.INJECTOR), core.ɵɵinject(NgbModalStack), core.ɵɵinject(NgbModalConfig)); }, token: NgbModal, providedIn: "root" }); - return NgbModal; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbModalModule = /** @class */ (function () { - function NgbModalModule() { - } - NgbModalModule.decorators = [ - { type: core.NgModule, args: [{ - declarations: [NgbModalBackdrop, NgbModalWindow], - entryComponents: [NgbModalBackdrop, NgbModalWindow], - providers: [NgbModal] - },] } - ]; - return NgbModalModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the paginations used in the application. - */ - var NgbPaginationConfig = /** @class */ (function () { - function NgbPaginationConfig() { - this.disabled = false; - this.boundaryLinks = false; - this.directionLinks = true; - this.ellipses = true; - this.maxSize = 0; - this.pageSize = 10; - this.rotate = false; - } - NgbPaginationConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbPaginationConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbPaginationConfig_Factory() { return new NgbPaginationConfig(); }, token: NgbPaginationConfig, providedIn: "root" }); - return NgbPaginationConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A directive to match the 'ellipsis' link template - * - * \@since 4.1.0 - */ - var NgbPaginationEllipsis = /** @class */ (function () { - function NgbPaginationEllipsis(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationEllipsis.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbPaginationEllipsis]' },] } - ]; - /** @nocollapse */ - NgbPaginationEllipsis.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbPaginationEllipsis; - }()); - /** - * A directive to match the 'first' link template - * - * \@since 4.1.0 - */ - var NgbPaginationFirst = /** @class */ (function () { - function NgbPaginationFirst(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationFirst.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbPaginationFirst]' },] } - ]; - /** @nocollapse */ - NgbPaginationFirst.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbPaginationFirst; - }()); - /** - * A directive to match the 'last' link template - * - * \@since 4.1.0 - */ - var NgbPaginationLast = /** @class */ (function () { - function NgbPaginationLast(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationLast.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbPaginationLast]' },] } - ]; - /** @nocollapse */ - NgbPaginationLast.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbPaginationLast; - }()); - /** - * A directive to match the 'next' link template - * - * \@since 4.1.0 - */ - var NgbPaginationNext = /** @class */ (function () { - function NgbPaginationNext(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationNext.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbPaginationNext]' },] } - ]; - /** @nocollapse */ - NgbPaginationNext.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbPaginationNext; - }()); - /** - * A directive to match the page 'number' link template - * - * \@since 4.1.0 - */ - var NgbPaginationNumber = /** @class */ (function () { - function NgbPaginationNumber(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationNumber.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbPaginationNumber]' },] } - ]; - /** @nocollapse */ - NgbPaginationNumber.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbPaginationNumber; - }()); - /** - * A directive to match the 'previous' link template - * - * \@since 4.1.0 - */ - var NgbPaginationPrevious = /** @class */ (function () { - function NgbPaginationPrevious(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationPrevious.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbPaginationPrevious]' },] } - ]; - /** @nocollapse */ - NgbPaginationPrevious.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbPaginationPrevious; - }()); - /** - * A component that displays page numbers and allows to customize them in several ways. - */ - var NgbPagination = /** @class */ (function () { - function NgbPagination(config) { - this.pageCount = 0; - this.pages = []; - /** - * The current page. - * - * Page numbers start with `1`. - */ - this.page = 1; - /** - * An event fired when the page is changed. Will fire only if collection size is set and all values are valid. - * - * Event payload is the number of the newly selected page. - * - * Page numbers start with `1`. - */ - this.pageChange = new core.EventEmitter(true); - this.disabled = config.disabled; - this.boundaryLinks = config.boundaryLinks; - this.directionLinks = config.directionLinks; - this.ellipses = config.ellipses; - this.maxSize = config.maxSize; - this.pageSize = config.pageSize; - this.rotate = config.rotate; - this.size = config.size; - } - /** - * @return {?} - */ - NgbPagination.prototype.hasPrevious = /** - * @return {?} - */ - function () { return this.page > 1; }; - /** - * @return {?} - */ - NgbPagination.prototype.hasNext = /** - * @return {?} - */ - function () { return this.page < this.pageCount; }; - /** - * @return {?} - */ - NgbPagination.prototype.nextDisabled = /** - * @return {?} - */ - function () { return !this.hasNext() || this.disabled; }; - /** - * @return {?} - */ - NgbPagination.prototype.previousDisabled = /** - * @return {?} - */ - function () { return !this.hasPrevious() || this.disabled; }; - /** - * @param {?} pageNumber - * @return {?} - */ - NgbPagination.prototype.selectPage = /** - * @param {?} pageNumber - * @return {?} - */ - function (pageNumber) { this._updatePages(pageNumber); }; - /** - * @param {?} changes - * @return {?} - */ - NgbPagination.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { this._updatePages(this.page); }; - /** - * @param {?} pageNumber - * @return {?} - */ - NgbPagination.prototype.isEllipsis = /** - * @param {?} pageNumber - * @return {?} - */ - function (pageNumber) { return pageNumber === -1; }; - /** - * Appends ellipses and first/last page number to the displayed pages - */ - /** - * Appends ellipses and first/last page number to the displayed pages - * @private - * @param {?} start - * @param {?} end - * @return {?} - */ - NgbPagination.prototype._applyEllipses = /** - * Appends ellipses and first/last page number to the displayed pages - * @private - * @param {?} start - * @param {?} end - * @return {?} - */ - function (start, end) { - if (this.ellipses) { - if (start > 0) { - if (start > 1) { - this.pages.unshift(-1); - } - this.pages.unshift(1); - } - if (end < this.pageCount) { - if (end < (this.pageCount - 1)) { - this.pages.push(-1); - } - this.pages.push(this.pageCount); - } - } - }; - /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - */ - /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - * @private - * @return {?} - */ - NgbPagination.prototype._applyRotation = /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var start = 0; - /** @type {?} */ - var end = this.pageCount; - /** @type {?} */ - var leftOffset = Math.floor(this.maxSize / 2); - /** @type {?} */ - var rightOffset = this.maxSize % 2 === 0 ? leftOffset - 1 : leftOffset; - if (this.page <= leftOffset) { - // very beginning, no rotation -> [0..maxSize] - end = this.maxSize; - } - else if (this.pageCount - this.page < leftOffset) { - // very end, no rotation -> [len-maxSize..len] - start = this.pageCount - this.maxSize; - } - else { - // rotate - start = this.page - leftOffset - 1; - end = this.page + rightOffset; - } - return [start, end]; - }; - /** - * Paginates page numbers based on maxSize items per page. - */ - /** - * Paginates page numbers based on maxSize items per page. - * @private - * @return {?} - */ - NgbPagination.prototype._applyPagination = /** - * Paginates page numbers based on maxSize items per page. - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var page = Math.ceil(this.page / this.maxSize) - 1; - /** @type {?} */ - var start = page * this.maxSize; - /** @type {?} */ - var end = start + this.maxSize; - return [start, end]; - }; - /** - * @private - * @param {?} newPageNo - * @return {?} - */ - NgbPagination.prototype._setPageInRange = /** - * @private - * @param {?} newPageNo - * @return {?} - */ - function (newPageNo) { - /** @type {?} */ - var prevPageNo = this.page; - this.page = getValueInRange(newPageNo, this.pageCount, 1); - if (this.page !== prevPageNo && isNumber(this.collectionSize)) { - this.pageChange.emit(this.page); - } - }; - /** - * @private - * @param {?} newPage - * @return {?} - */ - NgbPagination.prototype._updatePages = /** - * @private - * @param {?} newPage - * @return {?} - */ - function (newPage) { - var _a, _b; - this.pageCount = Math.ceil(this.collectionSize / this.pageSize); - if (!isNumber(this.pageCount)) { - this.pageCount = 0; - } - // fill-in model needed to render pages - this.pages.length = 0; - for (var i = 1; i <= this.pageCount; i++) { - this.pages.push(i); - } - // set page within 1..max range - this._setPageInRange(newPage); - // apply maxSize if necessary - if (this.maxSize > 0 && this.pageCount > this.maxSize) { - /** @type {?} */ - var start = 0; - /** @type {?} */ - var end = this.pageCount; - // either paginating or rotating page numbers - if (this.rotate) { - _a = __read(this._applyRotation(), 2), start = _a[0], end = _a[1]; - } - else { - _b = __read(this._applyPagination(), 2), start = _b[0], end = _b[1]; - } - this.pages = this.pages.slice(start, end); - // adding ellipses - this._applyEllipses(start, end); - } - }; - NgbPagination.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-pagination', - changeDetection: core.ChangeDetectionStrategy.OnPush, - host: { 'role': 'navigation' }, - template: "\n ««\n «\n »\n »»\n ...\n \n {{ page }}\n (current)\n \n \n " - }] } - ]; - /** @nocollapse */ - NgbPagination.ctorParameters = function () { return [ - { type: NgbPaginationConfig } - ]; }; - NgbPagination.propDecorators = { - tplEllipsis: [{ type: core.ContentChild, args: [NgbPaginationEllipsis, { static: false },] }], - tplFirst: [{ type: core.ContentChild, args: [NgbPaginationFirst, { static: false },] }], - tplLast: [{ type: core.ContentChild, args: [NgbPaginationLast, { static: false },] }], - tplNext: [{ type: core.ContentChild, args: [NgbPaginationNext, { static: false },] }], - tplNumber: [{ type: core.ContentChild, args: [NgbPaginationNumber, { static: false },] }], - tplPrevious: [{ type: core.ContentChild, args: [NgbPaginationPrevious, { static: false },] }], - disabled: [{ type: core.Input }], - boundaryLinks: [{ type: core.Input }], - directionLinks: [{ type: core.Input }], - ellipses: [{ type: core.Input }], - rotate: [{ type: core.Input }], - collectionSize: [{ type: core.Input }], - maxSize: [{ type: core.Input }], - page: [{ type: core.Input }], - pageSize: [{ type: core.Input }], - pageChange: [{ type: core.Output }], - size: [{ type: core.Input }] - }; - return NgbPagination; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var DIRECTIVES = [ - NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, - NgbPaginationPrevious - ]; - var NgbPaginationModule = /** @class */ (function () { - function NgbPaginationModule() { - } - NgbPaginationModule.decorators = [ - { type: core.NgModule, args: [{ declarations: DIRECTIVES, exports: DIRECTIVES, imports: [common.CommonModule] },] } - ]; - return NgbPaginationModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var Trigger = /** @class */ (function () { - function Trigger(open, close) { - this.open = open; - this.close = close; - if (!close) { - this.close = open; - } - } - /** - * @return {?} - */ - Trigger.prototype.isManual = /** - * @return {?} - */ - function () { return this.open === 'manual' || this.close === 'manual'; }; - return Trigger; - }()); - /** @type {?} */ - var DEFAULT_ALIASES = { - 'hover': ['mouseenter', 'mouseleave'], - 'focus': ['focusin', 'focusout'], - }; - /** - * @param {?} triggers - * @param {?=} aliases - * @return {?} - */ - function parseTriggers(triggers, aliases) { - if (aliases === void 0) { aliases = DEFAULT_ALIASES; } - /** @type {?} */ - var trimmedTriggers = (triggers || '').trim(); - if (trimmedTriggers.length === 0) { - return []; - } - /** @type {?} */ - var parsedTriggers = trimmedTriggers.split(/\s+/).map((/** - * @param {?} trigger - * @return {?} - */ - function (trigger) { return trigger.split(':'); })).map((/** - * @param {?} triggerPair - * @return {?} - */ - function (triggerPair) { - /** @type {?} */ - var alias = aliases[triggerPair[0]] || triggerPair; - return new Trigger(alias[0], alias[1]); - })); - /** @type {?} */ - var manualTriggers = parsedTriggers.filter((/** - * @param {?} triggerPair - * @return {?} - */ - function (triggerPair) { return triggerPair.isManual(); })); - if (manualTriggers.length > 1) { - throw 'Triggers parse error: only one manual trigger is allowed'; - } - if (manualTriggers.length === 1 && parsedTriggers.length > 1) { - throw 'Triggers parse error: manual trigger can\'t be mixed with other triggers'; - } - return parsedTriggers; - } - /** - * @param {?} renderer - * @param {?} nativeElement - * @param {?} triggers - * @param {?} isOpenedFn - * @return {?} - */ - function observeTriggers(renderer, nativeElement, triggers, isOpenedFn) { - return new rxjs.Observable((/** - * @param {?} subscriber - * @return {?} - */ - function (subscriber) { - /** @type {?} */ - var listeners = []; - /** @type {?} */ - var openFn = (/** - * @return {?} - */ - function () { return subscriber.next(true); }); - /** @type {?} */ - var closeFn = (/** - * @return {?} - */ - function () { return subscriber.next(false); }); - /** @type {?} */ - var toggleFn = (/** - * @return {?} - */ - function () { return subscriber.next(!isOpenedFn()); }); - triggers.forEach((/** - * @param {?} trigger - * @return {?} - */ - function (trigger) { - if (trigger.open === trigger.close) { - listeners.push(renderer.listen(nativeElement, trigger.open, toggleFn)); - } - else { - listeners.push(renderer.listen(nativeElement, trigger.open, openFn), renderer.listen(nativeElement, trigger.close, closeFn)); - } - })); - return (/** - * @return {?} - */ - function () { listeners.forEach((/** - * @param {?} unsubscribeFn - * @return {?} - */ - function (unsubscribeFn) { return unsubscribeFn(); })); }); - })); - } - /** @type {?} */ - var delayOrNoop = (/** - * @template T - * @param {?} time - * @return {?} - */ - function (time) { return time > 0 ? operators.delay(time) : (/** - * @param {?} a - * @return {?} - */ - function (a) { return a; }); }); - /** - * @param {?} openDelay - * @param {?} closeDelay - * @param {?} isOpenedFn - * @return {?} - */ - function triggerDelay(openDelay, closeDelay, isOpenedFn) { - return (/** - * @param {?} input$ - * @return {?} - */ - function (input$) { - /** @type {?} */ - var pending = null; - /** @type {?} */ - var filteredInput$ = input$.pipe(operators.map((/** - * @param {?} open - * @return {?} - */ - function (open) { return ({ open: open }); })), operators.filter((/** - * @param {?} event - * @return {?} - */ - function (event) { - /** @type {?} */ - var currentlyOpen = isOpenedFn(); - if (currentlyOpen !== event.open && (!pending || pending.open === currentlyOpen)) { - pending = event; - return true; - } - if (pending && pending.open !== event.open) { - pending = null; - } - return false; - })), operators.share()); - /** @type {?} */ - var delayedOpen$ = filteredInput$.pipe(operators.filter((/** - * @param {?} event - * @return {?} - */ - function (event) { return event.open; })), delayOrNoop(openDelay)); - /** @type {?} */ - var delayedClose$ = filteredInput$.pipe(operators.filter((/** - * @param {?} event - * @return {?} - */ - function (event) { return !event.open; })), delayOrNoop(closeDelay)); - return rxjs.merge(delayedOpen$, delayedClose$) - .pipe(operators.filter((/** - * @param {?} event - * @return {?} - */ - function (event) { - if (event === pending) { - pending = null; - return event.open !== isOpenedFn(); - } - return false; - })), operators.map((/** - * @param {?} event - * @return {?} - */ - function (event) { return event.open; }))); - }); - } - /** - * @param {?} renderer - * @param {?} nativeElement - * @param {?} triggers - * @param {?} isOpenedFn - * @param {?} openFn - * @param {?} closeFn - * @param {?=} openDelay - * @param {?=} closeDelay - * @return {?} - */ - function listenToTriggers(renderer, nativeElement, triggers, isOpenedFn, openFn, closeFn, openDelay, closeDelay) { - if (openDelay === void 0) { openDelay = 0; } - if (closeDelay === void 0) { closeDelay = 0; } - /** @type {?} */ - var parsedTriggers = parseTriggers(triggers); - if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) { - return (/** - * @return {?} - */ - function () { }); - } - /** @type {?} */ - var subscription = observeTriggers(renderer, nativeElement, parsedTriggers, isOpenedFn) - .pipe(triggerDelay(openDelay, closeDelay, isOpenedFn)) - .subscribe((/** - * @param {?} open - * @return {?} - */ - function (open) { return (open ? openFn() : closeFn()); })); - return (/** - * @return {?} - */ - function () { return subscription.unsubscribe(); }); - } - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the popovers used in the application. - */ - var NgbPopoverConfig = /** @class */ (function () { - function NgbPopoverConfig() { - this.autoClose = true; - this.placement = 'auto'; - this.triggers = 'click'; - this.disablePopover = false; - this.openDelay = 0; - this.closeDelay = 0; - } - NgbPopoverConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbPopoverConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbPopoverConfig_Factory() { return new NgbPopoverConfig(); }, token: NgbPopoverConfig, providedIn: "root" }); - return NgbPopoverConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var nextId$3 = 0; - var NgbPopoverWindow = /** @class */ (function () { - function NgbPopoverWindow() { - } - /** - * @return {?} - */ - NgbPopoverWindow.prototype.isTitleTemplate = /** - * @return {?} - */ - function () { return this.title instanceof core.TemplateRef; }; - NgbPopoverWindow.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-popover-window', - changeDetection: core.ChangeDetectionStrategy.OnPush, - encapsulation: core.ViewEncapsulation.None, - host: { '[class]': '"popover" + (popoverClass ? " " + popoverClass : "")', 'role': 'tooltip', '[id]': 'id' }, - template: "\n
\n

\n {{title}}\n \n

\n
", - styles: ["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"] - }] } - ]; - NgbPopoverWindow.propDecorators = { - title: [{ type: core.Input }], - id: [{ type: core.Input }], - popoverClass: [{ type: core.Input }], - context: [{ type: core.Input }] - }; - return NgbPopoverWindow; - }()); - /** - * A lightweight and extensible directive for fancy popover creation. - */ - var NgbPopover = /** @class */ (function () { - function NgbPopover(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, _applicationRef) { - var _this = this; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._ngZone = _ngZone; - this._document = _document; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - /** - * An event emitted when the popover is shown. Contains no payload. - */ - this.shown = new core.EventEmitter(); - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - this.hidden = new core.EventEmitter(); - this._ngbPopoverWindowId = "ngb-popover-" + nextId$3++; - this.autoClose = config.autoClose; - this.placement = config.placement; - this.triggers = config.triggers; - this.container = config.container; - this.disablePopover = config.disablePopover; - this.popoverClass = config.popoverClass; - this.openDelay = config.openDelay; - this.closeDelay = config.closeDelay; - this._popupService = new PopupService(NgbPopoverWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { - if (_this._windowRef) { - positionElements(_this._elementRef.nativeElement, _this._windowRef.location.nativeElement, _this.placement, _this.container === 'body', 'bs-popover'); - } - })); - } - /** - * @private - * @return {?} - */ - NgbPopover.prototype._isDisabled = /** - * @private - * @return {?} - */ - function () { - if (this.disablePopover) { - return true; - } - if (!this.ngbPopover && !this.popoverTitle) { - return true; - } - return false; - }; - /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - */ - /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - * @param {?=} context - * @return {?} - */ - NgbPopover.prototype.open = /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - * @param {?=} context - * @return {?} - */ - function (context) { - var _this = this; - if (!this._windowRef && !this._isDisabled()) { - this._windowRef = this._popupService.open(this.ngbPopover, context); - this._windowRef.instance.title = this.popoverTitle; - this._windowRef.instance.context = context; - this._windowRef.instance.popoverClass = this.popoverClass; - this._windowRef.instance.id = this._ngbPopoverWindowId; - this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbPopoverWindowId); - if (this.container === 'body') { - this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - // We need to detect changes, because we don't know where .open() might be called from. - // Ex. opening popover from one of lifecycle hooks that run after the CD - // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception - this._windowRef.changeDetectorRef.detectChanges(); - // We need to mark for check, because popover won't work inside the OnPush component. - // Ex. when we use expression like `{{ popover.isOpen() : 'opened' : 'closed' }}` - // inside the template of an OnPush component and we change the popover from - // open -> closed, the expression in question won't be updated unless we explicitly - // mark the parent component to be checked. - this._windowRef.changeDetectorRef.markForCheck(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this.hidden, [this._windowRef.location.nativeElement]); - this.shown.emit(); - } - }; - /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - */ - /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - NgbPopover.prototype.close = /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - function () { - if (this._windowRef) { - this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby'); - this._popupService.close(); - this._windowRef = null; - this.hidden.emit(); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - */ - /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - NgbPopover.prototype.toggle = /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - function () { - if (this._windowRef) { - this.close(); - } - else { - this.open(); - } - }; - /** - * Returns `true`, if the popover is currently shown. - */ - /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - NgbPopover.prototype.isOpen = /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - function () { return this._windowRef != null; }; - /** - * @return {?} - */ - NgbPopover.prototype.ngOnInit = /** - * @return {?} - */ - function () { - this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay); - }; - /** - * @param {?} changes - * @return {?} - */ - NgbPopover.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - // close popover if title and content become empty, or disablePopover set to true - if ((changes['ngbPopover'] || changes['popoverTitle'] || changes['disablePopover']) && this._isDisabled()) { - this.close(); - } - }; - /** - * @return {?} - */ - NgbPopover.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this.close(); - // This check is needed as it might happen that ngOnDestroy is called before ngOnInit - // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199 - if (this._unregisterListenersFn) { - this._unregisterListenersFn(); - } - this._zoneSubscription.unsubscribe(); - }; - NgbPopover.decorators = [ - { type: core.Directive, args: [{ selector: '[ngbPopover]', exportAs: 'ngbPopover' },] } - ]; - /** @nocollapse */ - NgbPopover.ctorParameters = function () { return [ - { type: core.ElementRef }, - { type: core.Renderer2 }, - { type: core.Injector }, - { type: core.ComponentFactoryResolver }, - { type: core.ViewContainerRef }, - { type: NgbPopoverConfig }, - { type: core.NgZone }, - { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }, - { type: core.ChangeDetectorRef }, - { type: core.ApplicationRef } - ]; }; - NgbPopover.propDecorators = { - autoClose: [{ type: core.Input }], - ngbPopover: [{ type: core.Input }], - popoverTitle: [{ type: core.Input }], - placement: [{ type: core.Input }], - triggers: [{ type: core.Input }], - container: [{ type: core.Input }], - disablePopover: [{ type: core.Input }], - popoverClass: [{ type: core.Input }], - openDelay: [{ type: core.Input }], - closeDelay: [{ type: core.Input }], - shown: [{ type: core.Output }], - hidden: [{ type: core.Output }] - }; - return NgbPopover; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbPopoverModule = /** @class */ (function () { - function NgbPopoverModule() { - } - NgbPopoverModule.decorators = [ - { type: core.NgModule, args: [{ - declarations: [NgbPopover, NgbPopoverWindow], - exports: [NgbPopover], - imports: [common.CommonModule], - entryComponents: [NgbPopoverWindow] - },] } - ]; - return NgbPopoverModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the progress bars used in the application. - */ - var NgbProgressbarConfig = /** @class */ (function () { - function NgbProgressbarConfig() { - this.max = 100; - this.animated = false; - this.striped = false; - this.showValue = false; - } - NgbProgressbarConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbProgressbarConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbProgressbarConfig_Factory() { return new NgbProgressbarConfig(); }, token: NgbProgressbarConfig, providedIn: "root" }); - return NgbProgressbarConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A directive that provides feedback on the progress of a workflow or an action. - */ - var NgbProgressbar = /** @class */ (function () { - function NgbProgressbar(config) { - /** - * The current value for the progress bar. - * - * Should be in the `[0, max]` range. - */ - this.value = 0; - this.max = config.max; - this.animated = config.animated; - this.striped = config.striped; - this.type = config.type; - this.showValue = config.showValue; - this.height = config.height; - } - /** - * @return {?} - */ - NgbProgressbar.prototype.getValue = /** - * @return {?} - */ - function () { return getValueInRange(this.value, this.max); }; - /** - * @return {?} - */ - NgbProgressbar.prototype.getPercentValue = /** - * @return {?} - */ - function () { return 100 * this.getValue() / this.max; }; - NgbProgressbar.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-progressbar', - changeDetection: core.ChangeDetectionStrategy.OnPush, - template: "\n
\n
\n {{getPercentValue()}}%\n
\n
\n " - }] } - ]; - /** @nocollapse */ - NgbProgressbar.ctorParameters = function () { return [ - { type: NgbProgressbarConfig } - ]; }; - NgbProgressbar.propDecorators = { - max: [{ type: core.Input }], - animated: [{ type: core.Input }], - striped: [{ type: core.Input }], - showValue: [{ type: core.Input }], - type: [{ type: core.Input }], - value: [{ type: core.Input }], - height: [{ type: core.Input }] - }; - return NgbProgressbar; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbProgressbarModule = /** @class */ (function () { - function NgbProgressbarModule() { - } - NgbProgressbarModule.decorators = [ - { type: core.NgModule, args: [{ declarations: [NgbProgressbar], exports: [NgbProgressbar], imports: [common.CommonModule] },] } - ]; - return NgbProgressbarModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the ratings used in the application. - */ - var NgbRatingConfig = /** @class */ (function () { - function NgbRatingConfig() { - this.max = 10; - this.readonly = false; - this.resettable = false; - } - NgbRatingConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbRatingConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbRatingConfig_Factory() { return new NgbRatingConfig(); }, token: NgbRatingConfig, providedIn: "root" }); - return NgbRatingConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_RATING_VALUE_ACCESSOR = { - provide: forms.NG_VALUE_ACCESSOR, - useExisting: core.forwardRef((/** - * @return {?} - */ - function () { return NgbRating; })), - multi: true - }; - /** - * A directive that helps visualising and interacting with a star rating bar. - */ - var NgbRating = /** @class */ (function () { - function NgbRating(config, _changeDetectorRef) { - this._changeDetectorRef = _changeDetectorRef; - this.contexts = []; - this.disabled = false; - /** - * An event emitted when the user is hovering over a given rating. - * - * Event payload equals to the rating being hovered over. - */ - this.hover = new core.EventEmitter(); - /** - * An event emitted when the user stops hovering over a given rating. - * - * Event payload equals to the rating of the last item being hovered over. - */ - this.leave = new core.EventEmitter(); - /** - * An event emitted when the user selects a new rating. - * - * Event payload equals to the newly selected rating. - */ - this.rateChange = new core.EventEmitter(true); - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - this.max = config.max; - this.readonly = config.readonly; - } - /** - * @return {?} - */ - NgbRating.prototype.ariaValueText = /** - * @return {?} - */ - function () { return this.nextRate + " out of " + this.max; }; - /** - * @param {?} value - * @return {?} - */ - NgbRating.prototype.enter = /** - * @param {?} value - * @return {?} - */ - function (value) { - if (!this.readonly && !this.disabled) { - this._updateState(value); - } - this.hover.emit(value); - }; - /** - * @return {?} - */ - NgbRating.prototype.handleBlur = /** - * @return {?} - */ - function () { this.onTouched(); }; - /** - * @param {?} value - * @return {?} - */ - NgbRating.prototype.handleClick = /** - * @param {?} value - * @return {?} - */ - function (value) { this.update(this.resettable && this.rate === value ? 0 : value); }; - /** - * @param {?} event - * @return {?} - */ - NgbRating.prototype.handleKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.ArrowDown: - case Key.ArrowLeft: - this.update(this.rate - 1); - break; - case Key.ArrowUp: - case Key.ArrowRight: - this.update(this.rate + 1); - break; - case Key.Home: - this.update(0); - break; - case Key.End: - this.update(this.max); - break; - default: - return; - } - // note 'return' in default case - event.preventDefault(); - }; - /** - * @param {?} changes - * @return {?} - */ - NgbRating.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes['rate']) { - this.update(this.rate); - } - }; - /** - * @return {?} - */ - NgbRating.prototype.ngOnInit = /** - * @return {?} - */ - function () { - this.contexts = Array.from({ length: this.max }, (/** - * @param {?} v - * @param {?} k - * @return {?} - */ - function (v, k) { return ({ fill: 0, index: k }); })); - this._updateState(this.rate); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbRating.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbRating.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @return {?} - */ - NgbRating.prototype.reset = /** - * @return {?} - */ - function () { - this.leave.emit(this.nextRate); - this._updateState(this.rate); - }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbRating.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.disabled = isDisabled; }; - /** - * @param {?} value - * @param {?=} internalChange - * @return {?} - */ - NgbRating.prototype.update = /** - * @param {?} value - * @param {?=} internalChange - * @return {?} - */ - function (value, internalChange) { - if (internalChange === void 0) { internalChange = true; } - /** @type {?} */ - var newRate = getValueInRange(value, this.max, 0); - if (!this.readonly && !this.disabled && this.rate !== newRate) { - this.rate = newRate; - this.rateChange.emit(this.rate); - } - if (internalChange) { - this.onChange(this.rate); - this.onTouched(); - } - this._updateState(this.rate); - }; - /** - * @param {?} value - * @return {?} - */ - NgbRating.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this.update(value, false); - this._changeDetectorRef.markForCheck(); - }; - /** - * @private - * @param {?} index - * @return {?} - */ - NgbRating.prototype._getFillValue = /** - * @private - * @param {?} index - * @return {?} - */ - function (index) { - /** @type {?} */ - var diff = this.nextRate - index; - if (diff >= 1) { - return 100; - } - if (diff < 1 && diff > 0) { - return parseInt((diff * 100).toFixed(2), 10); - } - return 0; - }; - /** - * @private - * @param {?} nextValue - * @return {?} - */ - NgbRating.prototype._updateState = /** - * @private - * @param {?} nextValue - * @return {?} - */ - function (nextValue) { - var _this = this; - this.nextRate = nextValue; - this.contexts.forEach((/** - * @param {?} context - * @param {?} index - * @return {?} - */ - function (context, index) { return context.fill = _this._getFillValue(index); })); - }; - NgbRating.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-rating', - changeDetection: core.ChangeDetectionStrategy.OnPush, - host: { - 'class': 'd-inline-flex', - 'tabindex': '0', - 'role': 'slider', - 'aria-valuemin': '0', - '[attr.aria-valuemax]': 'max', - '[attr.aria-valuenow]': 'nextRate', - '[attr.aria-valuetext]': 'ariaValueText()', - '[attr.aria-disabled]': 'readonly ? true : null', - '(blur)': 'handleBlur()', - '(keydown)': 'handleKeyDown($event)', - '(mouseleave)': 'reset()' - }, - template: "\n {{ fill === 100 ? '★' : '☆' }}\n \n ({{ index < nextRate ? '*' : ' ' }})\n \n \n \n \n \n ", - providers: [NGB_RATING_VALUE_ACCESSOR] - }] } - ]; - /** @nocollapse */ - NgbRating.ctorParameters = function () { return [ - { type: NgbRatingConfig }, - { type: core.ChangeDetectorRef } - ]; }; - NgbRating.propDecorators = { - max: [{ type: core.Input }], - rate: [{ type: core.Input }], - readonly: [{ type: core.Input }], - resettable: [{ type: core.Input }], - starTemplate: [{ type: core.Input }], - starTemplateFromContent: [{ type: core.ContentChild, args: [core.TemplateRef, { static: false },] }], - hover: [{ type: core.Output }], - leave: [{ type: core.Output }], - rateChange: [{ type: core.Output }] - }; - return NgbRating; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbRatingModule = /** @class */ (function () { - function NgbRatingModule() { - } - NgbRatingModule.decorators = [ - { type: core.NgModule, args: [{ declarations: [NgbRating], exports: [NgbRating], imports: [common.CommonModule] },] } - ]; - return NgbRatingModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbTabset`](#/components/tabset/api#NgbTabset) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tabsets used in the application. - */ - var NgbTabsetConfig = /** @class */ (function () { - function NgbTabsetConfig() { - this.justify = 'start'; - this.orientation = 'horizontal'; - this.type = 'tabs'; - } - NgbTabsetConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTabsetConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbTabsetConfig_Factory() { return new NgbTabsetConfig(); }, token: NgbTabsetConfig, providedIn: "root" }); - return NgbTabsetConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var nextId$4 = 0; - /** - * A directive to wrap tab titles that need to contain HTML markup or other directives. - * - * Alternatively you could use the `NgbTab.title` input for string titles. - */ - var NgbTabTitle = /** @class */ (function () { - function NgbTabTitle(templateRef) { - this.templateRef = templateRef; - } - NgbTabTitle.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbTabTitle]' },] } - ]; - /** @nocollapse */ - NgbTabTitle.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbTabTitle; - }()); - /** - * A directive to wrap content to be displayed in a tab. - */ - var NgbTabContent = /** @class */ (function () { - function NgbTabContent(templateRef) { - this.templateRef = templateRef; - } - NgbTabContent.decorators = [ - { type: core.Directive, args: [{ selector: 'ng-template[ngbTabContent]' },] } - ]; - /** @nocollapse */ - NgbTabContent.ctorParameters = function () { return [ - { type: core.TemplateRef } - ]; }; - return NgbTabContent; - }()); - /** - * A directive representing an individual tab. - */ - var NgbTab = /** @class */ (function () { - function NgbTab() { - /** - * The tab identifier. - * - * Must be unique for the entire document for proper accessibility support. - */ - this.id = "ngb-tab-" + nextId$4++; - /** - * If `true`, the current tab is disabled and can't be toggled. - */ - this.disabled = false; - } - /** - * @return {?} - */ - NgbTab.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - // We are using @ContentChildren instead of @ContentChild as in the Angular version being used - // only @ContentChildren allows us to specify the {descendants: false} option. - // Without {descendants: false} we are hitting bugs described in: - // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240 - this.titleTpl = this.titleTpls.first; - this.contentTpl = this.contentTpls.first; - }; - NgbTab.decorators = [ - { type: core.Directive, args: [{ selector: 'ngb-tab' },] } - ]; - NgbTab.propDecorators = { - id: [{ type: core.Input }], - title: [{ type: core.Input }], - disabled: [{ type: core.Input }], - titleTpls: [{ type: core.ContentChildren, args: [NgbTabTitle, { descendants: false },] }], - contentTpls: [{ type: core.ContentChildren, args: [NgbTabContent, { descendants: false },] }] - }; - return NgbTab; - }()); - /** - * A component that makes it easy to create tabbed interface. - */ - var NgbTabset = /** @class */ (function () { - function NgbTabset(config) { - /** - * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden. - */ - this.destroyOnHide = true; - /** - * A tab change event emitted right before the tab change happens. - * - * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details. - */ - this.tabChange = new core.EventEmitter(); - this.type = config.type; - this.justify = config.justify; - this.orientation = config.orientation; - } - Object.defineProperty(NgbTabset.prototype, "justify", { - /** - * The horizontal alignment of the tabs with flexbox utilities. - */ - set: /** - * The horizontal alignment of the tabs with flexbox utilities. - * @param {?} className - * @return {?} - */ - function (className) { - if (className === 'fill' || className === 'justified') { - this.justifyClass = "nav-" + className; - } - else { - this.justifyClass = "justify-content-" + className; - } - }, - enumerable: true, - configurable: true - }); - /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - */ - /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - * @param {?} tabId - * @return {?} - */ - NgbTabset.prototype.select = /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - * @param {?} tabId - * @return {?} - */ - function (tabId) { - /** @type {?} */ - var selectedTab = this._getTabById(tabId); - if (selectedTab && !selectedTab.disabled && this.activeId !== selectedTab.id) { - /** @type {?} */ - var defaultPrevented_1 = false; - this.tabChange.emit({ activeId: this.activeId, nextId: selectedTab.id, preventDefault: (/** - * @return {?} - */ - function () { defaultPrevented_1 = true; }) }); - if (!defaultPrevented_1) { - this.activeId = selectedTab.id; - } - } - }; - /** - * @return {?} - */ - NgbTabset.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - // auto-correct activeId that might have been set incorrectly as input - /** @type {?} */ - var activeTab = this._getTabById(this.activeId); - this.activeId = activeTab ? activeTab.id : (this.tabs.length ? this.tabs.first.id : null); - }; - /** - * @private - * @param {?} id - * @return {?} - */ - NgbTabset.prototype._getTabById = /** - * @private - * @param {?} id - * @return {?} - */ - function (id) { - /** @type {?} */ - var tabsWithId = this.tabs.filter((/** - * @param {?} tab - * @return {?} - */ - function (tab) { return tab.id === id; })); - return tabsWithId.length ? tabsWithId[0] : null; - }; - NgbTabset.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-tabset', - exportAs: 'ngbTabset', - template: "\n \n
\n \n \n \n
\n \n \n " - }] } - ]; - /** @nocollapse */ - NgbTabset.ctorParameters = function () { return [ - { type: NgbTabsetConfig } - ]; }; - NgbTabset.propDecorators = { - tabs: [{ type: core.ContentChildren, args: [NgbTab,] }], - activeId: [{ type: core.Input }], - destroyOnHide: [{ type: core.Input }], - justify: [{ type: core.Input }], - orientation: [{ type: core.Input }], - type: [{ type: core.Input }], - tabChange: [{ type: core.Output }] - }; - return NgbTabset; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_TABSET_DIRECTIVES = [NgbTabset, NgbTab, NgbTabContent, NgbTabTitle]; - var NgbTabsetModule = /** @class */ (function () { - function NgbTabsetModule() { - } - NgbTabsetModule.decorators = [ - { type: core.NgModule, args: [{ declarations: NGB_TABSET_DIRECTIVES, exports: NGB_TABSET_DIRECTIVES, imports: [common.CommonModule] },] } - ]; - return NgbTabsetModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbTime = /** @class */ (function () { - function NgbTime(hour, minute, second) { - this.hour = toInteger(hour); - this.minute = toInteger(minute); - this.second = toInteger(second); - } - /** - * @param {?=} step - * @return {?} - */ - NgbTime.prototype.changeHour = /** - * @param {?=} step - * @return {?} - */ - function (step) { - if (step === void 0) { step = 1; } - this.updateHour((isNaN(this.hour) ? 0 : this.hour) + step); - }; - /** - * @param {?} hour - * @return {?} - */ - NgbTime.prototype.updateHour = /** - * @param {?} hour - * @return {?} - */ - function (hour) { - if (isNumber(hour)) { - this.hour = (hour < 0 ? 24 + hour : hour) % 24; - } - else { - this.hour = NaN; - } - }; - /** - * @param {?=} step - * @return {?} - */ - NgbTime.prototype.changeMinute = /** - * @param {?=} step - * @return {?} - */ - function (step) { - if (step === void 0) { step = 1; } - this.updateMinute((isNaN(this.minute) ? 0 : this.minute) + step); - }; - /** - * @param {?} minute - * @return {?} - */ - NgbTime.prototype.updateMinute = /** - * @param {?} minute - * @return {?} - */ - function (minute) { - if (isNumber(minute)) { - this.minute = minute % 60 < 0 ? 60 + minute % 60 : minute % 60; - this.changeHour(Math.floor(minute / 60)); - } - else { - this.minute = NaN; - } - }; - /** - * @param {?=} step - * @return {?} - */ - NgbTime.prototype.changeSecond = /** - * @param {?=} step - * @return {?} - */ - function (step) { - if (step === void 0) { step = 1; } - this.updateSecond((isNaN(this.second) ? 0 : this.second) + step); - }; - /** - * @param {?} second - * @return {?} - */ - NgbTime.prototype.updateSecond = /** - * @param {?} second - * @return {?} - */ - function (second) { - if (isNumber(second)) { - this.second = second < 0 ? 60 + second % 60 : second % 60; - this.changeMinute(Math.floor(second / 60)); - } - else { - this.second = NaN; - } - }; - /** - * @param {?=} checkSecs - * @return {?} - */ - NgbTime.prototype.isValid = /** - * @param {?=} checkSecs - * @return {?} - */ - function (checkSecs) { - if (checkSecs === void 0) { checkSecs = true; } - return isNumber(this.hour) && isNumber(this.minute) && (checkSecs ? isNumber(this.second) : true); - }; - /** - * @return {?} - */ - NgbTime.prototype.toString = /** - * @return {?} - */ - function () { return (this.hour || 0) + ":" + (this.minute || 0) + ":" + (this.second || 0); }; - return NgbTime; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the timepickers used in the application. - */ - var NgbTimepickerConfig = /** @class */ (function () { - function NgbTimepickerConfig() { - this.meridian = false; - this.spinners = true; - this.seconds = false; - this.hourStep = 1; - this.minuteStep = 1; - this.secondStep = 1; - this.disabled = false; - this.readonlyInputs = false; - this.size = 'medium'; - } - NgbTimepickerConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTimepickerConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbTimepickerConfig_Factory() { return new NgbTimepickerConfig(); }, token: NgbTimepickerConfig, providedIn: "root" }); - return NgbTimepickerConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * @return {?} - */ - function NGB_DATEPICKER_TIME_ADAPTER_FACTORY() { - return new NgbTimeStructAdapter(); - } - /** - * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and - * any provided user time model `T`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding timepicker to a form control, - * ex. `[(ngModel)]="userTimeModel"`. Here `userTimeModel` can be of any type. - * - * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model. - * - * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example. - * - * \@since 2.2.0 - * @abstract - * @template T - */ - var NgbTimeAdapter = /** @class */ (function () { - function NgbTimeAdapter() { - } - NgbTimeAdapter.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY },] } - ]; - /** @nocollapse */ NgbTimeAdapter.ngInjectableDef = core.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY, token: NgbTimeAdapter, providedIn: "root" }); - return NgbTimeAdapter; - }()); - var NgbTimeStructAdapter = /** @class */ (function (_super) { - __extends(NgbTimeStructAdapter, _super); - function NgbTimeStructAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - */ - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - NgbTimeStructAdapter.prototype.fromModel = /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - function (time) { - return (time && isInteger(time.hour) && isInteger(time.minute)) ? - { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } : - null; - }; - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - */ - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - NgbTimeStructAdapter.prototype.toModel = /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - function (time) { - return (time && isInteger(time.hour) && isInteger(time.minute)) ? - { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } : - null; - }; - NgbTimeStructAdapter.decorators = [ - { type: core.Injectable } - ]; - return NgbTimeStructAdapter; - }(NgbTimeAdapter)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * @param {?} locale - * @return {?} - */ - function NGB_TIMEPICKER_I18N_FACTORY(locale) { - return new NgbTimepickerI18nDefault(locale); - } - /** - * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component. - * The default implementation of this service honors the Angular locale, and uses the registered locale data, - * as explained in the Angular i18n guide. - * @abstract - */ - var NgbTimepickerI18n = /** @class */ (function () { - function NgbTimepickerI18n() { - } - NgbTimepickerI18n.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root', useFactory: NGB_TIMEPICKER_I18N_FACTORY, deps: [core.LOCALE_ID] },] } - ]; - /** @nocollapse */ NgbTimepickerI18n.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbTimepickerI18n_Factory() { return NGB_TIMEPICKER_I18N_FACTORY(core.ɵɵinject(core.LOCALE_ID)); }, token: NgbTimepickerI18n, providedIn: "root" }); - return NgbTimepickerI18n; - }()); - var NgbTimepickerI18nDefault = /** @class */ (function (_super) { - __extends(NgbTimepickerI18nDefault, _super); - function NgbTimepickerI18nDefault(locale) { - var _this = _super.call(this) || this; - _this._periods = common.getLocaleDayPeriods(locale, common.FormStyle.Standalone, common.TranslationWidth.Narrow); - return _this; - } - /** - * @return {?} - */ - NgbTimepickerI18nDefault.prototype.getMorningPeriod = /** - * @return {?} - */ - function () { return this._periods[0]; }; - /** - * @return {?} - */ - NgbTimepickerI18nDefault.prototype.getAfternoonPeriod = /** - * @return {?} - */ - function () { return this._periods[1]; }; - NgbTimepickerI18nDefault.decorators = [ - { type: core.Injectable } - ]; - /** @nocollapse */ - NgbTimepickerI18nDefault.ctorParameters = function () { return [ - { type: String, decorators: [{ type: core.Inject, args: [core.LOCALE_ID,] }] } - ]; }; - return NgbTimepickerI18nDefault; - }(NgbTimepickerI18n)); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_TIMEPICKER_VALUE_ACCESSOR = { - provide: forms.NG_VALUE_ACCESSOR, - useExisting: core.forwardRef((/** - * @return {?} - */ - function () { return NgbTimepicker; })), - multi: true - }; - /** - * A directive that helps with wth picking hours, minutes and seconds. - */ - var NgbTimepicker = /** @class */ (function () { - function NgbTimepicker(_config, _ngbTimeAdapter, _cd, i18n) { - this._config = _config; - this._ngbTimeAdapter = _ngbTimeAdapter; - this._cd = _cd; - this.i18n = i18n; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - this.meridian = _config.meridian; - this.spinners = _config.spinners; - this.seconds = _config.seconds; - this.hourStep = _config.hourStep; - this.minuteStep = _config.minuteStep; - this.secondStep = _config.secondStep; - this.disabled = _config.disabled; - this.readonlyInputs = _config.readonlyInputs; - this.size = _config.size; - } - Object.defineProperty(NgbTimepicker.prototype, "hourStep", { - get: /** - * @return {?} - */ - function () { return this._hourStep; }, - /** - * The number of hours to add/subtract when clicking hour spinners. - */ - set: /** - * The number of hours to add/subtract when clicking hour spinners. - * @param {?} step - * @return {?} - */ - function (step) { - this._hourStep = isInteger(step) ? step : this._config.hourStep; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbTimepicker.prototype, "minuteStep", { - get: /** - * @return {?} - */ - function () { return this._minuteStep; }, - /** - * The number of minutes to add/subtract when clicking minute spinners. - */ - set: /** - * The number of minutes to add/subtract when clicking minute spinners. - * @param {?} step - * @return {?} - */ - function (step) { - this._minuteStep = isInteger(step) ? step : this._config.minuteStep; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbTimepicker.prototype, "secondStep", { - get: /** - * @return {?} - */ - function () { return this._secondStep; }, - /** - * The number of seconds to add/subtract when clicking second spinners. - */ - set: /** - * The number of seconds to add/subtract when clicking second spinners. - * @param {?} step - * @return {?} - */ - function (step) { - this._secondStep = isInteger(step) ? step : this._config.secondStep; - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} value - * @return {?} - */ - NgbTimepicker.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - /** @type {?} */ - var structValue = this._ngbTimeAdapter.fromModel(value); - this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime(); - if (!this.seconds && (!structValue || !isNumber(structValue.second))) { - this.model.second = 0; - } - this._cd.markForCheck(); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbTimepicker.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbTimepicker.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbTimepicker.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.disabled = isDisabled; }; - /** - * @param {?} step - * @return {?} - */ - NgbTimepicker.prototype.changeHour = /** - * @param {?} step - * @return {?} - */ - function (step) { - this.model.changeHour(step); - this.propagateModelChange(); - }; - /** - * @param {?} step - * @return {?} - */ - NgbTimepicker.prototype.changeMinute = /** - * @param {?} step - * @return {?} - */ - function (step) { - this.model.changeMinute(step); - this.propagateModelChange(); - }; - /** - * @param {?} step - * @return {?} - */ - NgbTimepicker.prototype.changeSecond = /** - * @param {?} step - * @return {?} - */ - function (step) { - this.model.changeSecond(step); - this.propagateModelChange(); - }; - /** - * @param {?} newVal - * @return {?} - */ - NgbTimepicker.prototype.updateHour = /** - * @param {?} newVal - * @return {?} - */ - function (newVal) { - /** @type {?} */ - var isPM = this.model.hour >= 12; - /** @type {?} */ - var enteredHour = toInteger(newVal); - if (this.meridian && (isPM && enteredHour < 12 || !isPM && enteredHour === 12)) { - this.model.updateHour(enteredHour + 12); - } - else { - this.model.updateHour(enteredHour); - } - this.propagateModelChange(); - }; - /** - * @param {?} newVal - * @return {?} - */ - NgbTimepicker.prototype.updateMinute = /** - * @param {?} newVal - * @return {?} - */ - function (newVal) { - this.model.updateMinute(toInteger(newVal)); - this.propagateModelChange(); - }; - /** - * @param {?} newVal - * @return {?} - */ - NgbTimepicker.prototype.updateSecond = /** - * @param {?} newVal - * @return {?} - */ - function (newVal) { - this.model.updateSecond(toInteger(newVal)); - this.propagateModelChange(); - }; - /** - * @return {?} - */ - NgbTimepicker.prototype.toggleMeridian = /** - * @return {?} - */ - function () { - if (this.meridian) { - this.changeHour(12); - } - }; - /** - * @param {?} value - * @return {?} - */ - NgbTimepicker.prototype.formatHour = /** - * @param {?} value - * @return {?} - */ - function (value) { - if (isNumber(value)) { - if (this.meridian) { - return padNumber(value % 12 === 0 ? 12 : value % 12); - } - else { - return padNumber(value % 24); - } - } - else { - return padNumber(NaN); - } - }; - /** - * @param {?} value - * @return {?} - */ - NgbTimepicker.prototype.formatMinSec = /** - * @param {?} value - * @return {?} - */ - function (value) { return padNumber(value); }; - Object.defineProperty(NgbTimepicker.prototype, "isSmallSize", { - get: /** - * @return {?} - */ - function () { return this.size === 'small'; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbTimepicker.prototype, "isLargeSize", { - get: /** - * @return {?} - */ - function () { return this.size === 'large'; }, - enumerable: true, - configurable: true - }); - /** - * @param {?} changes - * @return {?} - */ - NgbTimepicker.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) { - this.model.second = 0; - this.propagateModelChange(false); - } - }; - /** - * @private - * @param {?=} touched - * @return {?} - */ - NgbTimepicker.prototype.propagateModelChange = /** - * @private - * @param {?=} touched - * @return {?} - */ - function (touched) { - if (touched === void 0) { touched = true; } - if (touched) { - this.onTouched(); - } - if (this.model.isValid(this.seconds)) { - this.onChange(this._ngbTimeAdapter.toModel({ hour: this.model.hour, minute: this.model.minute, second: this.model.second })); - } - else { - this.onChange(this._ngbTimeAdapter.toModel(null)); - } - }; - NgbTimepicker.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-timepicker', - encapsulation: core.ViewEncapsulation.None, - template: "\n
\n
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
\n
\n \n
\n
\n
\n ", - providers: [NGB_TIMEPICKER_VALUE_ACCESSOR], - styles: ["ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:\"\";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}"] - }] } - ]; - /** @nocollapse */ - NgbTimepicker.ctorParameters = function () { return [ - { type: NgbTimepickerConfig }, - { type: NgbTimeAdapter }, - { type: core.ChangeDetectorRef }, - { type: NgbTimepickerI18n } - ]; }; - NgbTimepicker.propDecorators = { - meridian: [{ type: core.Input }], - spinners: [{ type: core.Input }], - seconds: [{ type: core.Input }], - hourStep: [{ type: core.Input }], - minuteStep: [{ type: core.Input }], - secondStep: [{ type: core.Input }], - readonlyInputs: [{ type: core.Input }], - size: [{ type: core.Input }] - }; - return NgbTimepicker; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbTimepickerModule = /** @class */ (function () { - function NgbTimepickerModule() { - } - NgbTimepickerModule.decorators = [ - { type: core.NgModule, args: [{ declarations: [NgbTimepicker], exports: [NgbTimepicker], imports: [common.CommonModule] },] } - ]; - return NgbTimepickerModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * Configuration service for the NgbToast component. You can inject this service, typically in your root component, - * and customize the values of its properties in order to provide default values for all the toasts used in the - * application. - * - * \@since 5.0.0 - */ - var NgbToastConfig = /** @class */ (function () { - function NgbToastConfig() { - this.autohide = true; - this.delay = 500; - this.ariaLive = 'polite'; - } - NgbToastConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbToastConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbToastConfig_Factory() { return new NgbToastConfig(); }, token: NgbToastConfig, providedIn: "root" }); - return NgbToastConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * This directive allows the usage of HTML markup or other directives - * inside of the toast's header. - * - * \@since 5.0.0 - */ - var NgbToastHeader = /** @class */ (function () { - function NgbToastHeader() { - } - NgbToastHeader.decorators = [ - { type: core.Directive, args: [{ selector: '[ngbToastHeader]' },] } - ]; - return NgbToastHeader; - }()); - /** - * Toasts provide feedback messages as notifications to the user. - * Goal is to mimic the push notifications available both on mobile and desktop operating systems. - * - * \@since 5.0.0 - */ - var NgbToast = /** @class */ (function () { - function NgbToast(ariaLive, config) { - this.ariaLive = ariaLive; - /** - * A template like `` can be - * used in the projected content to allow markup usage. - */ - this.contentHeaderTpl = null; - /** - * An event fired immediately when toast's `hide()` method has been called. - * It can only occur in 2 different scenarios: - * - `autohide` timeout fires - * - user clicks on a closing cross (×) - * - * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of - * that. - */ - this.hideOutput = new core.EventEmitter(); - if (this.ariaLive == null) { - this.ariaLive = config.ariaLive; - } - this.delay = config.delay; - this.autohide = config.autohide; - } - /** - * @return {?} - */ - NgbToast.prototype.ngAfterContentInit = /** - * @return {?} - */ - function () { this._init(); }; - /** - * @param {?} changes - * @return {?} - */ - NgbToast.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if ('autohide' in changes) { - this._clearTimeout(); - this._init(); - } - }; - /** - * @return {?} - */ - NgbToast.prototype.hide = /** - * @return {?} - */ - function () { - this._clearTimeout(); - this.hideOutput.emit(); - }; - /** - * @private - * @return {?} - */ - NgbToast.prototype._init = /** - * @private - * @return {?} - */ - function () { - var _this = this; - if (this.autohide && !this._timeoutID) { - this._timeoutID = setTimeout((/** - * @return {?} - */ - function () { return _this.hide(); }), this.delay); - } - }; - /** - * @private - * @return {?} - */ - NgbToast.prototype._clearTimeout = /** - * @private - * @return {?} - */ - function () { - if (this._timeoutID) { - clearTimeout(this._timeoutID); - this._timeoutID = null; - } - }; - NgbToast.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-toast', - exportAs: 'ngbToast', - encapsulation: core.ViewEncapsulation.None, - host: { - 'role': 'alert', - '[attr.aria-live]': 'ariaLive', - 'aria-atomic': 'true', - '[class.toast]': 'true', - '[class.show]': 'true', - '[class.autohide]': 'autohide', - }, - template: "\n \n {{header}}\n \n \n
\n \n \n
\n
\n
\n \n
\n ", - styles: [".ngb-toasts{position:fixed;top:0;right:0;margin:.5em;z-index:1200}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}"] - }] } - ]; - /** @nocollapse */ - NgbToast.ctorParameters = function () { return [ - { type: String, decorators: [{ type: core.Attribute, args: ['aria-live',] }] }, - { type: NgbToastConfig } - ]; }; - NgbToast.propDecorators = { - delay: [{ type: core.Input }], - autohide: [{ type: core.Input }], - header: [{ type: core.Input }], - contentHeaderTpl: [{ type: core.ContentChild, args: [NgbToastHeader, { read: core.TemplateRef, static: true },] }], - hideOutput: [{ type: core.Output, args: ['hide',] }] - }; - return NgbToast; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbToastModule = /** @class */ (function () { - function NgbToastModule() { - } - NgbToastModule.decorators = [ - { type: core.NgModule, args: [{ declarations: [NgbToast, NgbToastHeader], imports: [common.CommonModule], exports: [NgbToast, NgbToastHeader] },] } - ]; - return NgbToastModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tooltips used in the application. - */ - var NgbTooltipConfig = /** @class */ (function () { - function NgbTooltipConfig() { - this.autoClose = true; - this.placement = 'auto'; - this.triggers = 'hover focus'; - this.disableTooltip = false; - this.openDelay = 0; - this.closeDelay = 0; - } - NgbTooltipConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTooltipConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbTooltipConfig_Factory() { return new NgbTooltipConfig(); }, token: NgbTooltipConfig, providedIn: "root" }); - return NgbTooltipConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var nextId$5 = 0; - var NgbTooltipWindow = /** @class */ (function () { - function NgbTooltipWindow() { - } - NgbTooltipWindow.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-tooltip-window', - changeDetection: core.ChangeDetectionStrategy.OnPush, - encapsulation: core.ViewEncapsulation.None, - host: { '[class]': '"tooltip show" + (tooltipClass ? " " + tooltipClass : "")', 'role': 'tooltip', '[id]': 'id' }, - template: "
", - styles: ["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"] - }] } - ]; - NgbTooltipWindow.propDecorators = { - id: [{ type: core.Input }], - tooltipClass: [{ type: core.Input }] - }; - return NgbTooltipWindow; - }()); - /** - * A lightweight and extensible directive for fancy tooltip creation. - */ - var NgbTooltip = /** @class */ (function () { - function NgbTooltip(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, _applicationRef) { - var _this = this; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._ngZone = _ngZone; - this._document = _document; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - /** - * An event emitted when the tooltip is shown. Contains no payload. - */ - this.shown = new core.EventEmitter(); - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - this.hidden = new core.EventEmitter(); - this._ngbTooltipWindowId = "ngb-tooltip-" + nextId$5++; - this.autoClose = config.autoClose; - this.placement = config.placement; - this.triggers = config.triggers; - this.container = config.container; - this.disableTooltip = config.disableTooltip; - this.tooltipClass = config.tooltipClass; - this.openDelay = config.openDelay; - this.closeDelay = config.closeDelay; - this._popupService = new PopupService(NgbTooltipWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { - if (_this._windowRef) { - positionElements(_this._elementRef.nativeElement, _this._windowRef.location.nativeElement, _this.placement, _this.container === 'body', 'bs-tooltip'); - } - })); - } - Object.defineProperty(NgbTooltip.prototype, "ngbTooltip", { - get: /** - * @return {?} - */ - function () { return this._ngbTooltip; }, - /** - * The string content or a `TemplateRef` for the content to be displayed in the tooltip. - * - * If the content if falsy, the tooltip won't open. - */ - set: /** - * The string content or a `TemplateRef` for the content to be displayed in the tooltip. - * - * If the content if falsy, the tooltip won't open. - * @param {?} value - * @return {?} - */ - function (value) { - this._ngbTooltip = value; - if (!value && this._windowRef) { - this.close(); - } - }, - enumerable: true, - configurable: true - }); - /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - */ - /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - * @param {?=} context - * @return {?} - */ - NgbTooltip.prototype.open = /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - * @param {?=} context - * @return {?} - */ - function (context) { - var _this = this; - if (!this._windowRef && this._ngbTooltip && !this.disableTooltip) { - this._windowRef = this._popupService.open(this._ngbTooltip, context); - this._windowRef.instance.tooltipClass = this.tooltipClass; - this._windowRef.instance.id = this._ngbTooltipWindowId; - this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbTooltipWindowId); - if (this.container === 'body') { - this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - // We need to detect changes, because we don't know where .open() might be called from. - // Ex. opening tooltip from one of lifecycle hooks that run after the CD - // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception - this._windowRef.changeDetectorRef.detectChanges(); - // We need to mark for check, because tooltip won't work inside the OnPush component. - // Ex. when we use expression like `{{ tooltip.isOpen() : 'opened' : 'closed' }}` - // inside the template of an OnPush component and we change the tooltip from - // open -> closed, the expression in question won't be updated unless we explicitly - // mark the parent component to be checked. - this._windowRef.changeDetectorRef.markForCheck(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this.hidden, [this._windowRef.location.nativeElement]); - this.shown.emit(); - } - }; - /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - */ - /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - NgbTooltip.prototype.close = /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - function () { - if (this._windowRef != null) { - this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby'); - this._popupService.close(); - this._windowRef = null; - this.hidden.emit(); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - */ - /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - NgbTooltip.prototype.toggle = /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - function () { - if (this._windowRef) { - this.close(); - } - else { - this.open(); - } - }; - /** - * Returns `true`, if the popover is currently shown. - */ - /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - NgbTooltip.prototype.isOpen = /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - function () { return this._windowRef != null; }; - /** - * @return {?} - */ - NgbTooltip.prototype.ngOnInit = /** - * @return {?} - */ - function () { - this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay); - }; - /** - * @return {?} - */ - NgbTooltip.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this.close(); - // This check is needed as it might happen that ngOnDestroy is called before ngOnInit - // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199 - if (this._unregisterListenersFn) { - this._unregisterListenersFn(); - } - this._zoneSubscription.unsubscribe(); - }; - NgbTooltip.decorators = [ - { type: core.Directive, args: [{ selector: '[ngbTooltip]', exportAs: 'ngbTooltip' },] } - ]; - /** @nocollapse */ - NgbTooltip.ctorParameters = function () { return [ - { type: core.ElementRef }, - { type: core.Renderer2 }, - { type: core.Injector }, - { type: core.ComponentFactoryResolver }, - { type: core.ViewContainerRef }, - { type: NgbTooltipConfig }, - { type: core.NgZone }, - { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }, - { type: core.ChangeDetectorRef }, - { type: core.ApplicationRef } - ]; }; - NgbTooltip.propDecorators = { - autoClose: [{ type: core.Input }], - placement: [{ type: core.Input }], - triggers: [{ type: core.Input }], - container: [{ type: core.Input }], - disableTooltip: [{ type: core.Input }], - tooltipClass: [{ type: core.Input }], - openDelay: [{ type: core.Input }], - closeDelay: [{ type: core.Input }], - shown: [{ type: core.Output }], - hidden: [{ type: core.Output }], - ngbTooltip: [{ type: core.Input }] - }; - return NgbTooltip; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbTooltipModule = /** @class */ (function () { - function NgbTooltipModule() { - } - NgbTooltipModule.decorators = [ - { type: core.NgModule, args: [{ declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow] },] } - ]; - return NgbTooltipModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A component that helps with text highlighting. - * - * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify - * highlighting: - * - * Ex. `result="Alaska"` and `term="as"` will produce `Alaska`. - */ - var NgbHighlight = /** @class */ (function () { - function NgbHighlight() { - /** - * The CSS class for `` elements wrapping the `term` inside the `result`. - */ - this.highlightClass = 'ngb-highlight'; - } - /** - * @param {?} changes - * @return {?} - */ - NgbHighlight.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - /** @type {?} */ - var result = toString(this.result); - /** @type {?} */ - var terms = Array.isArray(this.term) ? this.term : [this.term]; - /** @type {?} */ - var escapedTerms = terms.map((/** - * @param {?} term - * @return {?} - */ - function (term) { return regExpEscape(toString(term)); })).filter((/** - * @param {?} term - * @return {?} - */ - function (term) { return term; })); - this.parts = escapedTerms.length ? result.split(new RegExp("(" + escapedTerms.join('|') + ")", 'gmi')) : [result]; - }; - NgbHighlight.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-highlight', - changeDetection: core.ChangeDetectionStrategy.OnPush, - encapsulation: core.ViewEncapsulation.None, - template: "" + - "{{part}}{{part}}" + - "", - styles: [".ngb-highlight{font-weight:700}"] - }] } - ]; - NgbHighlight.propDecorators = { - highlightClass: [{ type: core.Input }], - result: [{ type: core.Input }], - term: [{ type: core.Input }] - }; - return NgbHighlight; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbTypeaheadWindow = /** @class */ (function () { - function NgbTypeaheadWindow() { - this.activeIdx = 0; - /** - * Flag indicating if the first row should be active initially - */ - this.focusFirst = true; - /** - * A function used to format a given result before display. This function should return a formatted string without any - * HTML markup - */ - this.formatter = toString; - /** - * Event raised when user selects a particular result row - */ - this.selectEvent = new core.EventEmitter(); - this.activeChangeEvent = new core.EventEmitter(); - } - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.hasActive = /** - * @return {?} - */ - function () { return this.activeIdx > -1 && this.activeIdx < this.results.length; }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.getActive = /** - * @return {?} - */ - function () { return this.results[this.activeIdx]; }; - /** - * @param {?} activeIdx - * @return {?} - */ - NgbTypeaheadWindow.prototype.markActive = /** - * @param {?} activeIdx - * @return {?} - */ - function (activeIdx) { - this.activeIdx = activeIdx; - this._activeChanged(); - }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.next = /** - * @return {?} - */ - function () { - if (this.activeIdx === this.results.length - 1) { - this.activeIdx = this.focusFirst ? (this.activeIdx + 1) % this.results.length : -1; - } - else { - this.activeIdx++; - } - this._activeChanged(); - }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.prev = /** - * @return {?} - */ - function () { - if (this.activeIdx < 0) { - this.activeIdx = this.results.length - 1; - } - else if (this.activeIdx === 0) { - this.activeIdx = this.focusFirst ? this.results.length - 1 : -1; - } - else { - this.activeIdx--; - } - this._activeChanged(); - }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.resetActive = /** - * @return {?} - */ - function () { - this.activeIdx = this.focusFirst ? 0 : -1; - this._activeChanged(); - }; - /** - * @param {?} item - * @return {?} - */ - NgbTypeaheadWindow.prototype.select = /** - * @param {?} item - * @return {?} - */ - function (item) { this.selectEvent.emit(item); }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.ngOnInit = /** - * @return {?} - */ - function () { this.resetActive(); }; - /** - * @private - * @return {?} - */ - NgbTypeaheadWindow.prototype._activeChanged = /** - * @private - * @return {?} - */ - function () { - this.activeChangeEvent.emit(this.activeIdx >= 0 ? this.id + '-' + this.activeIdx : undefined); - }; - NgbTypeaheadWindow.decorators = [ - { type: core.Component, args: [{ - selector: 'ngb-typeahead-window', - exportAs: 'ngbTypeaheadWindow', - host: { '(mousedown)': '$event.preventDefault()', 'class': 'dropdown-menu show', 'role': 'listbox', '[id]': 'id' }, - template: "\n \n \n \n \n \n \n " - }] } - ]; - NgbTypeaheadWindow.propDecorators = { - id: [{ type: core.Input }], - focusFirst: [{ type: core.Input }], - results: [{ type: core.Input }], - term: [{ type: core.Input }], - formatter: [{ type: core.Input }], - resultTemplate: [{ type: core.Input }], - selectEvent: [{ type: core.Output, args: ['select',] }], - activeChangeEvent: [{ type: core.Output, args: ['activeChange',] }] - }; - return NgbTypeaheadWindow; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var ARIA_LIVE_DELAY = new core.InjectionToken('live announcer delay', { providedIn: 'root', factory: ARIA_LIVE_DELAY_FACTORY }); - /** - * @return {?} - */ - function ARIA_LIVE_DELAY_FACTORY() { - return 100; - } - /** - * @param {?} document - * @param {?=} lazyCreate - * @return {?} - */ - function getLiveElement(document, lazyCreate) { - if (lazyCreate === void 0) { lazyCreate = false; } - /** @type {?} */ - var element = (/** @type {?} */ (document.body.querySelector('#ngb-live'))); - if (element == null && lazyCreate) { - element = document.createElement('div'); - element.setAttribute('id', 'ngb-live'); - element.setAttribute('aria-live', 'polite'); - element.setAttribute('aria-atomic', 'true'); - element.classList.add('sr-only'); - document.body.appendChild(element); - } - return element; - } - var Live = /** @class */ (function () { - function Live(_document, _delay) { - this._document = _document; - this._delay = _delay; - } - /** - * @return {?} - */ - Live.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - /** @type {?} */ - var element = getLiveElement(this._document); - if (element) { - element.parentElement.removeChild(element); - } - }; - /** - * @param {?} message - * @return {?} - */ - Live.prototype.say = /** - * @param {?} message - * @return {?} - */ - function (message) { - /** @type {?} */ - var element = getLiveElement(this._document, true); - /** @type {?} */ - var delay = this._delay; - element.textContent = ''; - /** @type {?} */ - var setText = (/** - * @return {?} - */ - function () { return element.textContent = message; }); - if (delay === null) { - setText(); - } - else { - setTimeout(setText, delay); - } - }; - Live.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - Live.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }, - { type: undefined, decorators: [{ type: core.Inject, args: [ARIA_LIVE_DELAY,] }] } - ]; }; - /** @nocollapse */ Live.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function Live_Factory() { return new Live(core.ɵɵinject(common.DOCUMENT), core.ɵɵinject(ARIA_LIVE_DELAY)); }, token: Live, providedIn: "root" }); - return Live; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** - * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the typeaheads used in the application. - */ - var NgbTypeaheadConfig = /** @class */ (function () { - function NgbTypeaheadConfig() { - this.editable = true; - this.focusFirst = true; - this.showHint = false; - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - } - NgbTypeaheadConfig.decorators = [ - { type: core.Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTypeaheadConfig.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function NgbTypeaheadConfig_Factory() { return new NgbTypeaheadConfig(); }, token: NgbTypeaheadConfig, providedIn: "root" }); - return NgbTypeaheadConfig; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_TYPEAHEAD_VALUE_ACCESSOR = { - provide: forms.NG_VALUE_ACCESSOR, - useExisting: core.forwardRef((/** - * @return {?} - */ - function () { return NgbTypeahead; })), - multi: true - }; - /** @type {?} */ - var nextWindowId = 0; - /** - * A directive providing a simple way of creating powerful typeaheads from any text input. - */ - var NgbTypeahead = /** @class */ (function () { - function NgbTypeahead(_elementRef, _viewContainerRef, _renderer, _injector, componentFactoryResolver, config, ngZone, _live, _document, _ngZone, _changeDetector, _applicationRef) { - var _this = this; - this._elementRef = _elementRef; - this._viewContainerRef = _viewContainerRef; - this._renderer = _renderer; - this._injector = _injector; - this._live = _live; - this._document = _document; - this._ngZone = _ngZone; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - this._closed$ = new rxjs.Subject(); - /** - * The value for the `autocomplete` attribute for the `` element. - * - * Defaults to `"off"` to disable the native browser autocomplete, but you can override it if necessary. - * - * \@since 2.1.0 - */ - this.autocomplete = 'off'; - /** - * The preferred placement of the typeahead. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - this.placement = 'bottom-left'; - /** - * An event emitted right before an item is selected from the result list. - * - * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent). - */ - this.selectItem = new core.EventEmitter(); - this.popupId = "ngb-typeahead-" + nextWindowId++; - this._onTouched = (/** - * @return {?} - */ - function () { }); - this._onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.container = config.container; - this.editable = config.editable; - this.focusFirst = config.focusFirst; - this.showHint = config.showHint; - this.placement = config.placement; - this._valueChanges = rxjs.fromEvent(_elementRef.nativeElement, 'input') - .pipe(operators.map((/** - * @param {?} $event - * @return {?} - */ - function ($event) { return ((/** @type {?} */ ($event.target))).value; }))); - this._resubscribeTypeahead = new rxjs.BehaviorSubject(null); - this._popupService = new PopupService(NgbTypeaheadWindow, _injector, _viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { - if (_this.isPopupOpen()) { - positionElements(_this._elementRef.nativeElement, _this._windowRef.location.nativeElement, _this.placement, _this.container === 'body'); - } - })); - } - /** - * @return {?} - */ - NgbTypeahead.prototype.ngOnInit = /** - * @return {?} - */ - function () { - var _this = this; - /** @type {?} */ - var inputValues$ = this._valueChanges.pipe(operators.tap((/** - * @param {?} value - * @return {?} - */ - function (value) { - _this._inputValueBackup = _this.showHint ? value : null; - if (_this.editable) { - _this._onChange(value); - } - }))); - /** @type {?} */ - var results$ = inputValues$.pipe(this.ngbTypeahead); - /** @type {?} */ - var processedResults$ = results$.pipe(operators.tap((/** - * @return {?} - */ - function () { - if (!_this.editable) { - _this._onChange(undefined); - } - }))); - /** @type {?} */ - var userInput$ = this._resubscribeTypeahead.pipe(operators.switchMap((/** - * @return {?} - */ - function () { return processedResults$; }))); - this._subscription = this._subscribeToUserInput(userInput$); - }; - /** - * @return {?} - */ - NgbTypeahead.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this._closePopup(); - this._unsubscribeFromUserInput(); - this._zoneSubscription.unsubscribe(); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbTypeahead.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbTypeahead.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onTouched = fn; }; - /** - * @param {?} value - * @return {?} - */ - NgbTypeahead.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._writeInputValue(this._formatItemForInput(value)); - if (this.showHint) { - this._inputValueBackup = value; - } - }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbTypeahead.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled); - }; - /** - * Dismisses typeahead popup window - */ - /** - * Dismisses typeahead popup window - * @return {?} - */ - NgbTypeahead.prototype.dismissPopup = /** - * Dismisses typeahead popup window - * @return {?} - */ - function () { - if (this.isPopupOpen()) { - this._resubscribeTypeahead.next(null); - this._closePopup(); - if (this.showHint && this._inputValueBackup !== null) { - this._writeInputValue(this._inputValueBackup); - } - this._changeDetector.markForCheck(); - } - }; - /** - * Returns true if the typeahead popup window is displayed - */ - /** - * Returns true if the typeahead popup window is displayed - * @return {?} - */ - NgbTypeahead.prototype.isPopupOpen = /** - * Returns true if the typeahead popup window is displayed - * @return {?} - */ - function () { return this._windowRef != null; }; - /** - * @return {?} - */ - NgbTypeahead.prototype.handleBlur = /** - * @return {?} - */ - function () { - this._resubscribeTypeahead.next(null); - this._onTouched(); - }; - /** - * @param {?} event - * @return {?} - */ - NgbTypeahead.prototype.handleKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { - if (!this.isPopupOpen()) { - return; - } - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.ArrowDown: - event.preventDefault(); - this._windowRef.instance.next(); - this._showHint(); - break; - case Key.ArrowUp: - event.preventDefault(); - this._windowRef.instance.prev(); - this._showHint(); - break; - case Key.Enter: - case Key.Tab: - /** @type {?} */ - var result = this._windowRef.instance.getActive(); - if (isDefined(result)) { - event.preventDefault(); - event.stopPropagation(); - this._selectResult(result); - } - this._closePopup(); - break; - } - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._openPopup = /** - * @private - * @return {?} - */ - function () { - var _this = this; - if (!this.isPopupOpen()) { - this._inputValueBackup = this._elementRef.nativeElement.value; - this._windowRef = this._popupService.open(); - this._windowRef.instance.id = this.popupId; - this._windowRef.instance.selectEvent.subscribe((/** - * @param {?} result - * @return {?} - */ - function (result) { return _this._selectResultClosePopup(result); })); - this._windowRef.instance.activeChangeEvent.subscribe((/** - * @param {?} activeId - * @return {?} - */ - function (activeId) { return _this.activeDescendant = activeId; })); - if (this.container === 'body') { - window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - this._changeDetector.markForCheck(); - ngbAutoClose(this._ngZone, this._document, 'outside', (/** - * @return {?} - */ - function () { return _this.dismissPopup(); }), this._closed$, [this._elementRef.nativeElement, this._windowRef.location.nativeElement]); - } - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._closePopup = /** - * @private - * @return {?} - */ - function () { - this._closed$.next(); - this._popupService.close(); - this._windowRef = null; - this.activeDescendant = undefined; - }; - /** - * @private - * @param {?} result - * @return {?} - */ - NgbTypeahead.prototype._selectResult = /** - * @private - * @param {?} result - * @return {?} - */ - function (result) { - /** @type {?} */ - var defaultPrevented = false; - this.selectItem.emit({ item: result, preventDefault: (/** - * @return {?} - */ - function () { defaultPrevented = true; }) }); - this._resubscribeTypeahead.next(null); - if (!defaultPrevented) { - this.writeValue(result); - this._onChange(result); - } - }; - /** - * @private - * @param {?} result - * @return {?} - */ - NgbTypeahead.prototype._selectResultClosePopup = /** - * @private - * @param {?} result - * @return {?} - */ - function (result) { - this._selectResult(result); - this._closePopup(); - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._showHint = /** - * @private - * @return {?} - */ - function () { - if (this.showHint && this._windowRef.instance.hasActive() && this._inputValueBackup != null) { - /** @type {?} */ - var userInputLowerCase = this._inputValueBackup.toLowerCase(); - /** @type {?} */ - var formattedVal = this._formatItemForInput(this._windowRef.instance.getActive()); - if (userInputLowerCase === formattedVal.substr(0, this._inputValueBackup.length).toLowerCase()) { - this._writeInputValue(this._inputValueBackup + formattedVal.substr(this._inputValueBackup.length)); - this._elementRef.nativeElement['setSelectionRange'].apply(this._elementRef.nativeElement, [this._inputValueBackup.length, formattedVal.length]); - } - else { - this._writeInputValue(formattedVal); - } - } - }; - /** - * @private - * @param {?} item - * @return {?} - */ - NgbTypeahead.prototype._formatItemForInput = /** - * @private - * @param {?} item - * @return {?} - */ - function (item) { - return item != null && this.inputFormatter ? this.inputFormatter(item) : toString(item); - }; - /** - * @private - * @param {?} value - * @return {?} - */ - NgbTypeahead.prototype._writeInputValue = /** - * @private - * @param {?} value - * @return {?} - */ - function (value) { - this._renderer.setProperty(this._elementRef.nativeElement, 'value', toString(value)); - }; - /** - * @private - * @param {?} userInput$ - * @return {?} - */ - NgbTypeahead.prototype._subscribeToUserInput = /** - * @private - * @param {?} userInput$ - * @return {?} - */ - function (userInput$) { - var _this = this; - return userInput$.subscribe((/** - * @param {?} results - * @return {?} - */ - function (results) { - if (!results || results.length === 0) { - _this._closePopup(); - } - else { - _this._openPopup(); - _this._windowRef.instance.focusFirst = _this.focusFirst; - _this._windowRef.instance.results = results; - _this._windowRef.instance.term = _this._elementRef.nativeElement.value; - if (_this.resultFormatter) { - _this._windowRef.instance.formatter = _this.resultFormatter; - } - if (_this.resultTemplate) { - _this._windowRef.instance.resultTemplate = _this.resultTemplate; - } - _this._windowRef.instance.resetActive(); - // The observable stream we are subscribing to might have async steps - // and if a component containing typeahead is using the OnPush strategy - // the change detection turn wouldn't be invoked automatically. - _this._windowRef.changeDetectorRef.detectChanges(); - _this._showHint(); - } - // live announcer - /** @type {?} */ - var count = results ? results.length : 0; - _this._live.say(count === 0 ? 'No results available' : count + " result" + (count === 1 ? '' : 's') + " available"); - })); - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._unsubscribeFromUserInput = /** - * @private - * @return {?} - */ - function () { - if (this._subscription) { - this._subscription.unsubscribe(); - } - this._subscription = null; - }; - NgbTypeahead.decorators = [ - { type: core.Directive, args: [{ - selector: 'input[ngbTypeahead]', - exportAs: 'ngbTypeahead', - host: { - '(blur)': 'handleBlur()', - '[class.open]': 'isPopupOpen()', - '(keydown)': 'handleKeyDown($event)', - '[autocomplete]': 'autocomplete', - 'autocapitalize': 'off', - 'autocorrect': 'off', - 'role': 'combobox', - 'aria-multiline': 'false', - '[attr.aria-autocomplete]': 'showHint ? "both" : "list"', - '[attr.aria-activedescendant]': 'activeDescendant', - '[attr.aria-owns]': 'isPopupOpen() ? popupId : null', - '[attr.aria-expanded]': 'isPopupOpen()' - }, - providers: [NGB_TYPEAHEAD_VALUE_ACCESSOR] - },] } - ]; - /** @nocollapse */ - NgbTypeahead.ctorParameters = function () { return [ - { type: core.ElementRef }, - { type: core.ViewContainerRef }, - { type: core.Renderer2 }, - { type: core.Injector }, - { type: core.ComponentFactoryResolver }, - { type: NgbTypeaheadConfig }, - { type: core.NgZone }, - { type: Live }, - { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }, - { type: core.NgZone }, - { type: core.ChangeDetectorRef }, - { type: core.ApplicationRef } - ]; }; - NgbTypeahead.propDecorators = { - autocomplete: [{ type: core.Input }], - container: [{ type: core.Input }], - editable: [{ type: core.Input }], - focusFirst: [{ type: core.Input }], - inputFormatter: [{ type: core.Input }], - ngbTypeahead: [{ type: core.Input }], - resultFormatter: [{ type: core.Input }], - resultTemplate: [{ type: core.Input }], - showHint: [{ type: core.Input }], - placement: [{ type: core.Input }], - selectItem: [{ type: core.Output }] - }; - return NgbTypeahead; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - var NgbTypeaheadModule = /** @class */ (function () { - function NgbTypeaheadModule() { - } - NgbTypeaheadModule.decorators = [ - { type: core.NgModule, args: [{ - declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow], - exports: [NgbTypeahead, NgbHighlight], - imports: [common.CommonModule], - entryComponents: [NgbTypeaheadWindow] - },] } - ]; - return NgbTypeaheadModule; - }()); - - /** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ - /** @type {?} */ - var NGB_MODULES = [ - SbCardModule, NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule, - NgbDropdownModule, NgbModalModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule, - NgbTabsetModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule - ]; - var NgbModule = /** @class */ (function () { - function NgbModule() { - } - NgbModule.decorators = [ - { type: core.NgModule, args: [{ imports: NGB_MODULES, exports: NGB_MODULES },] } - ]; - return NgbModule; - }()); - - exports.ModalDismissReasons = ModalDismissReasons; - exports.NgbAccordion = NgbAccordion; - exports.NgbAccordionConfig = NgbAccordionConfig; - exports.NgbAccordionModule = NgbAccordionModule; - exports.NgbActiveModal = NgbActiveModal; - exports.NgbAlert = NgbAlert; - exports.NgbAlertConfig = NgbAlertConfig; - exports.NgbAlertModule = NgbAlertModule; - exports.NgbButtonLabel = NgbButtonLabel; - exports.NgbButtonsModule = NgbButtonsModule; - exports.NgbCalendar = NgbCalendar; - exports.NgbCalendarGregorian = NgbCalendarGregorian; - exports.NgbCalendarHebrew = NgbCalendarHebrew; - exports.NgbCalendarIslamicCivil = NgbCalendarIslamicCivil; - exports.NgbCalendarIslamicUmalqura = NgbCalendarIslamicUmalqura; - exports.NgbCalendarPersian = NgbCalendarPersian; - exports.NgbCarousel = NgbCarousel; - exports.NgbCarouselConfig = NgbCarouselConfig; - exports.NgbCarouselModule = NgbCarouselModule; - exports.NgbCheckBox = NgbCheckBox; - exports.NgbCollapse = NgbCollapse; - exports.NgbCollapseModule = NgbCollapseModule; - exports.NgbDate = NgbDate; - exports.NgbDateAdapter = NgbDateAdapter; - exports.NgbDateNativeAdapter = NgbDateNativeAdapter; - exports.NgbDateNativeUTCAdapter = NgbDateNativeUTCAdapter; - exports.NgbDateParserFormatter = NgbDateParserFormatter; - exports.NgbDatepicker = NgbDatepicker; - exports.NgbDatepickerConfig = NgbDatepickerConfig; - exports.NgbDatepickerI18n = NgbDatepickerI18n; - exports.NgbDatepickerI18nHebrew = NgbDatepickerI18nHebrew; - exports.NgbDatepickerModule = NgbDatepickerModule; - exports.NgbDropdown = NgbDropdown; - exports.NgbDropdownAnchor = NgbDropdownAnchor; - exports.NgbDropdownConfig = NgbDropdownConfig; - exports.NgbDropdownItem = NgbDropdownItem; - exports.NgbDropdownMenu = NgbDropdownMenu; - exports.NgbDropdownModule = NgbDropdownModule; - exports.NgbDropdownToggle = NgbDropdownToggle; - exports.NgbHighlight = NgbHighlight; - exports.NgbInputDatepicker = NgbInputDatepicker; - exports.NgbModal = NgbModal; - exports.NgbModalConfig = NgbModalConfig; - exports.NgbModalModule = NgbModalModule; - exports.NgbModalRef = NgbModalRef; - exports.NgbModule = NgbModule; - exports.NgbPagination = NgbPagination; - exports.NgbPaginationConfig = NgbPaginationConfig; - exports.NgbPaginationEllipsis = NgbPaginationEllipsis; - exports.NgbPaginationFirst = NgbPaginationFirst; - exports.NgbPaginationLast = NgbPaginationLast; - exports.NgbPaginationModule = NgbPaginationModule; - exports.NgbPaginationNext = NgbPaginationNext; - exports.NgbPaginationNumber = NgbPaginationNumber; - exports.NgbPaginationPrevious = NgbPaginationPrevious; - exports.NgbPanel = NgbPanel; - exports.NgbPanelContent = NgbPanelContent; - exports.NgbPanelHeader = NgbPanelHeader; - exports.NgbPanelTitle = NgbPanelTitle; - exports.NgbPanelToggle = NgbPanelToggle; - exports.NgbPopover = NgbPopover; - exports.NgbPopoverConfig = NgbPopoverConfig; - exports.NgbPopoverModule = NgbPopoverModule; - exports.NgbProgressbar = NgbProgressbar; - exports.NgbProgressbarConfig = NgbProgressbarConfig; - exports.NgbProgressbarModule = NgbProgressbarModule; - exports.NgbRadio = NgbRadio; - exports.NgbRadioGroup = NgbRadioGroup; - exports.NgbRating = NgbRating; - exports.NgbRatingConfig = NgbRatingConfig; - exports.NgbRatingModule = NgbRatingModule; - exports.NgbSlide = NgbSlide; - exports.NgbSlideEventDirection = NgbSlideEventDirection; - exports.NgbSlideEventSource = NgbSlideEventSource; - exports.NgbTab = NgbTab; - exports.NgbTabContent = NgbTabContent; - exports.NgbTabTitle = NgbTabTitle; - exports.NgbTabset = NgbTabset; - exports.NgbTabsetConfig = NgbTabsetConfig; - exports.NgbTabsetModule = NgbTabsetModule; - exports.NgbTimeAdapter = NgbTimeAdapter; - exports.NgbTimepicker = NgbTimepicker; - exports.NgbTimepickerConfig = NgbTimepickerConfig; - exports.NgbTimepickerI18n = NgbTimepickerI18n; - exports.NgbTimepickerModule = NgbTimepickerModule; - exports.NgbToast = NgbToast; - exports.NgbToastConfig = NgbToastConfig; - exports.NgbToastHeader = NgbToastHeader; - exports.NgbToastModule = NgbToastModule; - exports.NgbTooltip = NgbTooltip; - exports.NgbTooltipConfig = NgbTooltipConfig; - exports.NgbTooltipModule = NgbTooltipModule; - exports.NgbTypeahead = NgbTypeahead; - exports.NgbTypeaheadConfig = NgbTypeaheadConfig; - exports.NgbTypeaheadModule = NgbTypeaheadModule; - exports.SbCard = SbCard; - exports.SbCardConfig = SbCardConfig; - exports.SbCardModule = SbCardModule; - exports.ɵa = NGB_CAROUSEL_DIRECTIVES; - exports.ɵb = NGB_DATEPICKER_CALENDAR_FACTORY; - exports.ɵba = ARIA_LIVE_DELAY; - exports.ɵbb = ARIA_LIVE_DELAY_FACTORY; - exports.ɵbc = Live; - exports.ɵbd = NgbCalendarHijri; - exports.ɵbe = ContentRef; - exports.ɵc = NgbDatepickerMonthView; - exports.ɵd = NgbDatepickerDayView; - exports.ɵe = NgbDatepickerNavigation; - exports.ɵf = NgbDatepickerNavigationSelect; - exports.ɵg = NGB_DATEPICKER_18N_FACTORY; - exports.ɵh = NgbDatepickerI18nDefault; - exports.ɵi = NGB_DATEPICKER_DATE_ADAPTER_FACTORY; - exports.ɵj = NgbDateStructAdapter; - exports.ɵk = NGB_DATEPICKER_PARSER_FORMATTER_FACTORY; - exports.ɵl = NgbDateISOParserFormatter; - exports.ɵm = NgbNavbar; - exports.ɵn = NgbPopoverWindow; - exports.ɵo = NGB_DATEPICKER_TIME_ADAPTER_FACTORY; - exports.ɵp = NgbTimeStructAdapter; - exports.ɵq = NGB_TIMEPICKER_I18N_FACTORY; - exports.ɵr = NgbTimepickerI18nDefault; - exports.ɵs = NgbTooltipWindow; - exports.ɵt = NgbTypeaheadWindow; - exports.ɵu = NgbDatepickerService; - exports.ɵv = NgbDatepickerKeyMapService; - exports.ɵw = NgbModalBackdrop; - exports.ɵx = NgbModalWindow; - exports.ɵy = NgbModalStack; - exports.ɵz = ScrollBar; - - Object.defineProperty(exports, '__esModule', { value: true }); - -})); -//# sourceMappingURL=ng-bootstrap.umd.js.map diff --git a/dist/ng-bootstrap/bundles/ng-bootstrap.umd.js.map b/dist/ng-bootstrap/bundles/ng-bootstrap.umd.js.map deleted file mode 100644 index 5475f0a..0000000 --- a/dist/ng-bootstrap/bundles/ng-bootstrap.umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ng-bootstrap.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@sunbird-ed/sunbird-ui-components/card/card-config.ts","ng://@sunbird-ed/sunbird-ui-components/card/card.ts","ng://@sunbird-ed/sunbird-ui-components/card/card.module.ts","ng://@sunbird-ed/sunbird-ui-components/util/util.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion-config.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion.module.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert-config.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert.module.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/label.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/checkbox.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/radio.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/buttons.module.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel-config.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel.module.ts","ng://@sunbird-ed/sunbird-ui-components/collapse/collapse.ts","ng://@sunbird-ed/sunbird-ui-components/collapse/collapse.module.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-date.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-calendar.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-tools.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-i18n.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-service.ts","ng://@sunbird-ed/sunbird-ui-components/util/key.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-keymap-service.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-view-model.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-config.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-month-view.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-navigation.ts","ng://@sunbird-ed/sunbird-ui-components/util/autoclose.ts","ng://@sunbird-ed/sunbird-ui-components/util/focus-trap.ts","ng://@sunbird-ed/sunbird-ui-components/util/positioning.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-date-parser-formatter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-input.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-day-view.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-navigation-select.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-hijri.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-islamic-civil.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-islamic-umalqura.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/jalali/jalali.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/jalali/ngb-calendar-persian.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/ngb-calendar-hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/datepicker-i18n-hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-native-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-native-utc-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker.module.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown-config.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown.module.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-config.ts","ng://@sunbird-ed/sunbird-ui-components/util/popup.ts","ng://@sunbird-ed/sunbird-ui-components/util/scrollbar.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-backdrop.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-ref.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-dismiss-reasons.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-window.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-stack.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal.module.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination-config.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination.module.ts","ng://@sunbird-ed/sunbird-ui-components/util/triggers.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover-config.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover.module.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar-config.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar.module.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating-config.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating.module.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset-config.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset.module.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/ngb-time.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker-config.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/ngb-time-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker-i18n.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker.module.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast-config.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast.module.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip-config.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip.module.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/highlight.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead-window.ts","ng://@sunbird-ed/sunbird-ui-components/util/accessibility/live.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead-config.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead.module.ts","ng://@sunbird-ed/sunbird-ui-components/index.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [SbCard](#/components/alert/api#SbCard) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all alerts used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class SbCardConfig {\n dismissible = true;\n type = 'warning';\n}\n","import {\n Component,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n Renderer2,\n ElementRef,\n OnChanges,\n OnInit,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {SbCardConfig} from './card-config';\n\n/**\n * Alert is a component to provide contextual feedback messages for user.\n *\n * It supports several alert types and can be dismissed.\n */\n@Component({\n selector: 'sb-card',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible'},\n template: `\n \n \n `,\n styleUrls: ['./card.scss']\n})\nexport class SbCard implements OnInit,\n OnChanges {\n /**\n * If `true`, alert can be dismissed by the user.\n *\n * The close button (×) will be displayed and you can be notified\n * of the event with the `(close)` output.\n */\n @Input() dismissible: boolean;\n /**\n * Type of the alert.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n /**\n * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts.\n */\n @Output() close = new EventEmitter();\n\n constructor(config: SbCardConfig, private _renderer: Renderer2, private _element: ElementRef) {\n this.dismissible = config.dismissible;\n this.type = config.type;\n }\n\n closeHandler() { this.close.emit(null); }\n\n ngOnChanges(changes: SimpleChanges) {\n const typeChange = changes['type'];\n if (typeChange && !typeChange.firstChange) {\n this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`);\n this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`);\n }\n }\n\n ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {SbCard} from './card';\n\nexport {SbCard} from './card';\nexport {SbCardConfig} from './card-config';\n\n@NgModule({declarations: [SbCard], exports: [SbCard], imports: [CommonModule], entryComponents: [SbCard]})\nexport class SbCardModule {\n}\n","export function toInteger(value: any): number {\n return parseInt(`${value}`, 10);\n}\n\nexport function toString(value: any): string {\n return (value !== undefined && value !== null) ? `${value}` : '';\n}\n\nexport function getValueInRange(value: number, max: number, min = 0): number {\n return Math.max(Math.min(value, max), min);\n}\n\nexport function isString(value: any): value is string {\n return typeof value === 'string';\n}\n\nexport function isNumber(value: any): value is number {\n return !isNaN(toInteger(value));\n}\n\nexport function isInteger(value: any): value is number {\n return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;\n}\n\nexport function isDefined(value: any): boolean {\n return value !== undefined && value !== null;\n}\n\nexport function padNumber(value: number) {\n if (isNumber(value)) {\n return `0${value}`.slice(-2);\n } else {\n return '';\n }\n}\n\nexport function regExpEscape(text) {\n return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n}\n\nexport function hasClassName(element: any, className: string): boolean {\n return element && element.className && element.className.split &&\n element.className.split(/\\s+/).indexOf(className) >= 0;\n}\n\nif (typeof Element !== 'undefined' && !Element.prototype.closest) {\n // Polyfill for ie10+\n\n if (!Element.prototype.matches) {\n // IE uses the non-standard name: msMatchesSelector\n Element.prototype.matches = (Element.prototype as any).msMatchesSelector || Element.prototype.webkitMatchesSelector;\n }\n\n Element.prototype.closest = function(s: string) {\n let el = this;\n if (!document.documentElement.contains(el)) {\n return null;\n }\n do {\n if (el.matches(s)) {\n return el;\n }\n el = el.parentElement || el.parentNode;\n } while (el !== null && el.nodeType === 1);\n return null;\n };\n}\n\nexport function closest(element: HTMLElement, selector): HTMLElement {\n if (!selector) {\n return null;\n }\n\n return element.closest(selector);\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all accordions used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbAccordionConfig {\n closeOthers = false;\n type: string;\n}\n","import {\n AfterContentChecked,\n Component,\n ContentChildren,\n Directive,\n EventEmitter,\n Host,\n Input,\n Optional,\n Output,\n QueryList,\n TemplateRef\n} from '@angular/core';\n\nimport {isString} from '../util/util';\n\nimport {NgbAccordionConfig} from './accordion-config';\n\nlet nextId = 0;\n\n/**\n * The context for the [NgbPanelHeader](#/components/accordion/api#NgbPanelHeader) template\n *\n * @since 4.1.0\n */\nexport interface NgbPanelHeaderContext {\n /**\n * `True` if current panel is opened\n */\n opened: boolean;\n}\n\n/**\n * A directive that wraps an accordion panel header with any HTML markup and a toggling button\n * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle).\n * See the [header customization demo](#/components/accordion/examples#header) for more details.\n *\n * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title.\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPanelHeader]'})\nexport class NgbPanelHeader {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps only the panel title with HTML markup inside.\n *\n * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header.\n */\n@Directive({selector: 'ng-template[ngbPanelTitle]'})\nexport class NgbPanelTitle {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps the accordion panel content.\n */\n@Directive({selector: 'ng-template[ngbPanelContent]'})\nexport class NgbPanelContent {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps an individual accordion panel with title and collapsible content.\n */\n@Directive({selector: 'ngb-panel'})\nexport class NgbPanel implements AfterContentChecked {\n /**\n * If `true`, the panel is disabled an can't be toggled.\n */\n @Input() disabled = false;\n\n /**\n * An optional id for the panel that must be unique on the page.\n *\n * If not provided, it will be auto-generated in the `ngb-panel-xxx` format.\n */\n @Input() id = `ngb-panel-${nextId++}`;\n\n isOpen = false;\n\n /**\n * The panel title.\n *\n * You can alternatively use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to set panel title.\n */\n @Input() title: string;\n\n /**\n * Type of the current panel.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n\n titleTpl: NgbPanelTitle | null;\n headerTpl: NgbPanelHeader | null;\n contentTpl: NgbPanelContent | null;\n\n @ContentChildren(NgbPanelTitle, {descendants: false}) titleTpls: QueryList;\n @ContentChildren(NgbPanelHeader, {descendants: false}) headerTpls: QueryList;\n @ContentChildren(NgbPanelContent, {descendants: false}) contentTpls: QueryList;\n\n ngAfterContentChecked() {\n // We are using @ContentChildren instead of @ContentChild as in the Angular version being used\n // only @ContentChildren allows us to specify the {descendants: false} option.\n // Without {descendants: false} we are hitting bugs described in:\n // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240\n this.titleTpl = this.titleTpls.first;\n this.headerTpl = this.headerTpls.first;\n this.contentTpl = this.contentTpls.first;\n }\n}\n\n/**\n * An event emitted right before toggling an accordion panel.\n */\nexport interface NgbPanelChangeEvent {\n /**\n * The id of the accordion panel that is being toggled.\n */\n panelId: string;\n\n /**\n * The next state of the panel.\n *\n * `true` if it will be opened, `false` if closed.\n */\n nextState: boolean;\n\n /**\n * Calling this function will prevent panel toggling.\n */\n preventDefault: () => void;\n}\n\n/**\n * Accordion is a collection of collapsible panels (bootstrap cards).\n *\n * It can ensure only one panel is opened at a time and allows to customize panel\n * headers.\n */\n@Component({\n selector: 'ngb-accordion',\n exportAs: 'ngbAccordion',\n host: {'class': 'accordion', 'role': 'tablist', '[attr.aria-multiselectable]': '!closeOtherPanels'},\n template: `\n \n \n \n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n `\n})\nexport class NgbAccordion implements AfterContentChecked {\n @ContentChildren(NgbPanel) panels: QueryList;\n\n /**\n * An array or comma separated strings of panel ids that should be opened **initially**.\n *\n * For subsequent changes use methods like `expand()`, `collapse()`, etc. and\n * the `(panelChange)` event.\n */\n @Input() activeIds: string | string[] = [];\n\n /**\n * If `true`, only one panel could be opened at a time.\n *\n * Opening a new panel will close others.\n */\n @Input('closeOthers') closeOtherPanels: boolean;\n\n /**\n * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed.\n */\n @Input() destroyOnHide = true;\n\n /**\n * Type of panels.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n\n /**\n * Event emitted right before the panel toggle happens.\n *\n * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details.\n */\n @Output() panelChange = new EventEmitter();\n\n constructor(config: NgbAccordionConfig) {\n this.type = config.type;\n this.closeOtherPanels = config.closeOthers;\n }\n\n /**\n * Checks if a panel with a given id is expanded.\n */\n isExpanded(panelId: string): boolean { return this.activeIds.indexOf(panelId) > -1; }\n\n /**\n * Expands a panel with a given id.\n *\n * Has no effect if the panel is already expanded or disabled.\n */\n expand(panelId: string): void { this._changeOpenState(this._findPanelById(panelId), true); }\n\n /**\n * Expands all panels, if `[closeOthers]` is `false`.\n *\n * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened.\n */\n expandAll(): void {\n if (this.closeOtherPanels) {\n if (this.activeIds.length === 0 && this.panels.length) {\n this._changeOpenState(this.panels.first, true);\n }\n } else {\n this.panels.forEach(panel => this._changeOpenState(panel, true));\n }\n }\n\n /**\n * Collapses a panel with the given id.\n *\n * Has no effect if the panel is already collapsed or disabled.\n */\n collapse(panelId: string) { this._changeOpenState(this._findPanelById(panelId), false); }\n\n /**\n * Collapses all opened panels.\n */\n collapseAll() {\n this.panels.forEach((panel) => { this._changeOpenState(panel, false); });\n }\n\n /**\n * Toggles a panel with the given id.\n *\n * Has no effect if the panel is disabled.\n */\n toggle(panelId: string) {\n const panel = this._findPanelById(panelId);\n if (panel) {\n this._changeOpenState(panel, !panel.isOpen);\n }\n }\n\n ngAfterContentChecked() {\n // active id updates\n if (isString(this.activeIds)) {\n this.activeIds = this.activeIds.split(/\\s*,\\s*/);\n }\n\n // update panels open states\n this.panels.forEach(panel => panel.isOpen = !panel.disabled && this.activeIds.indexOf(panel.id) > -1);\n\n // closeOthers updates\n if (this.activeIds.length > 1 && this.closeOtherPanels) {\n this._closeOthers(this.activeIds[0]);\n this._updateActiveIds();\n }\n }\n\n private _changeOpenState(panel: NgbPanel, nextState: boolean) {\n if (panel && !panel.disabled && panel.isOpen !== nextState) {\n let defaultPrevented = false;\n\n this.panelChange.emit(\n {panelId: panel.id, nextState: nextState, preventDefault: () => { defaultPrevented = true; }});\n\n if (!defaultPrevented) {\n panel.isOpen = nextState;\n\n if (nextState && this.closeOtherPanels) {\n this._closeOthers(panel.id);\n }\n this._updateActiveIds();\n }\n }\n }\n\n private _closeOthers(panelId: string) {\n this.panels.forEach(panel => {\n if (panel.id !== panelId) {\n panel.isOpen = false;\n }\n });\n }\n\n private _findPanelById(panelId: string): NgbPanel | null { return this.panels.find(p => p.id === panelId); }\n\n private _updateActiveIds() {\n this.activeIds = this.panels.filter(panel => panel.isOpen && !panel.disabled).map(panel => panel.id);\n }\n}\n\n/**\n * A directive to put on a button that toggles panel opening and closing.\n *\n * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader)\n *\n * @since 4.1.0\n */\n@Directive({\n selector: 'button[ngbPanelToggle]',\n host: {\n 'type': 'button',\n '[disabled]': 'panel.disabled',\n '[class.collapsed]': '!panel.isOpen',\n '[attr.aria-expanded]': 'panel.isOpen',\n '[attr.aria-controls]': 'panel.id',\n '(click)': 'accordion.toggle(panel.id)'\n }\n})\nexport class NgbPanelToggle {\n @Input()\n set ngbPanelToggle(panel: NgbPanel) {\n if (panel) {\n this.panel = panel;\n }\n }\n\n constructor(public accordion: NgbAccordion, @Optional() @Host() public panel: NgbPanel) {}\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle} from './accordion';\n\nexport {\n NgbAccordion,\n NgbPanel,\n NgbPanelTitle,\n NgbPanelContent,\n NgbPanelChangeEvent,\n NgbPanelHeader,\n NgbPanelHeaderContext,\n NgbPanelToggle\n} from './accordion';\nexport {NgbAccordionConfig} from './accordion-config';\n\nconst NGB_ACCORDION_DIRECTIVES =\n [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle];\n\n@NgModule({declarations: NGB_ACCORDION_DIRECTIVES, exports: NGB_ACCORDION_DIRECTIVES, imports: [CommonModule]})\nexport class NgbAccordionModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all alerts used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbAlertConfig {\n dismissible = true;\n type = 'warning';\n}\n","import {\n Component,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n Renderer2,\n ElementRef,\n OnChanges,\n OnInit,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {NgbAlertConfig} from './alert-config';\n\n/**\n * Alert is a component to provide contextual feedback messages for user.\n *\n * It supports several alert types and can be dismissed.\n */\n@Component({\n selector: 'ngb-alert',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible'},\n template: `\n \n \n `,\n styleUrls: ['./alert.scss']\n})\nexport class NgbAlert implements OnInit,\n OnChanges {\n /**\n * If `true`, alert can be dismissed by the user.\n *\n * The close button (×) will be displayed and you can be notified\n * of the event with the `(close)` output.\n */\n @Input() dismissible: boolean;\n /**\n * Type of the alert.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n /**\n * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts.\n */\n @Output() close = new EventEmitter();\n\n constructor(config: NgbAlertConfig, private _renderer: Renderer2, private _element: ElementRef) {\n this.dismissible = config.dismissible;\n this.type = config.type;\n }\n\n closeHandler() { this.close.emit(null); }\n\n ngOnChanges(changes: SimpleChanges) {\n const typeChange = changes['type'];\n if (typeChange && !typeChange.firstChange) {\n this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`);\n this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`);\n }\n }\n\n ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbAlert} from './alert';\n\nexport {NgbAlert} from './alert';\nexport {NgbAlertConfig} from './alert-config';\n\n@NgModule({declarations: [NgbAlert], exports: [NgbAlert], imports: [CommonModule], entryComponents: [NgbAlert]})\nexport class NgbAlertModule {\n}\n","import {Directive} from '@angular/core';\n\n@Directive({\n selector: '[ngbButtonLabel]',\n host:\n {'[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused'}\n})\nexport class NgbButtonLabel {\n active: boolean;\n disabled: boolean;\n focused: boolean;\n}\n","import {ChangeDetectorRef, Directive, forwardRef, Input} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {NgbButtonLabel} from './label';\n\nconst NGB_CHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbCheckBox),\n multi: true\n};\n\n\n/**\n * Allows to easily create Bootstrap-style checkbox buttons.\n *\n * Integrates with forms, so the value of a checked button is bound to the underlying form control\n * either in a reactive or template-driven way.\n */\n@Directive({\n selector: '[ngbButton][type=checkbox]',\n host: {\n 'autocomplete': 'off',\n '[checked]': 'checked',\n '[disabled]': 'disabled',\n '(change)': 'onInputChange($event)',\n '(focus)': 'focused = true',\n '(blur)': 'focused = false'\n },\n providers: [NGB_CHECKBOX_VALUE_ACCESSOR]\n})\nexport class NgbCheckBox implements ControlValueAccessor {\n checked;\n\n /**\n * If `true`, the checkbox button will be disabled\n */\n @Input() disabled = false;\n\n /**\n * The form control value when the checkbox is checked.\n */\n @Input() valueChecked = true;\n\n /**\n * The form control value when the checkbox is unchecked.\n */\n @Input() valueUnChecked = false;\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n set focused(isFocused: boolean) {\n this._label.focused = isFocused;\n if (!isFocused) {\n this.onTouched();\n }\n }\n\n constructor(private _label: NgbButtonLabel, private _cd: ChangeDetectorRef) {}\n\n onInputChange($event) {\n const modelToPropagate = $event.target.checked ? this.valueChecked : this.valueUnChecked;\n this.onChange(modelToPropagate);\n this.onTouched();\n this.writeValue(modelToPropagate);\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n this._label.disabled = isDisabled;\n }\n\n writeValue(value) {\n this.checked = value === this.valueChecked;\n this._label.active = this.checked;\n\n // label won't be updated, if it is inside the OnPush component when [ngModel] changes\n this._cd.markForCheck();\n }\n}\n","import {ChangeDetectorRef, Directive, ElementRef, forwardRef, Input, OnDestroy, Renderer2} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {NgbButtonLabel} from './label';\n\nconst NGB_RADIO_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbRadioGroup),\n multi: true\n};\n\nlet nextId = 0;\n\n/**\n * Allows to easily create Bootstrap-style radio buttons.\n *\n * Integrates with forms, so the value of a checked button is bound to the underlying form control\n * either in a reactive or template-driven way.\n */\n@Directive({selector: '[ngbRadioGroup]', host: {'role': 'radiogroup'}, providers: [NGB_RADIO_VALUE_ACCESSOR]})\nexport class NgbRadioGroup implements ControlValueAccessor {\n private _radios: Set = new Set();\n private _value = null;\n private _disabled: boolean;\n\n get disabled() { return this._disabled; }\n set disabled(isDisabled: boolean) { this.setDisabledState(isDisabled); }\n\n /**\n * Name of the radio group applied to radio input elements.\n *\n * Will be applied to all radio input elements inside the group,\n * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves.\n *\n * If not provided, will be generated in the `ngb-radio-xx` format.\n */\n @Input() name = `ngb-radio-${nextId++}`;\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n onRadioChange(radio: NgbRadio) {\n this.writeValue(radio.value);\n this.onChange(radio.value);\n }\n\n onRadioValueUpdate() { this._updateRadiosValue(); }\n\n register(radio: NgbRadio) { this._radios.add(radio); }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean): void {\n this._disabled = isDisabled;\n this._updateRadiosDisabled();\n }\n\n unregister(radio: NgbRadio) { this._radios.delete(radio); }\n\n writeValue(value) {\n this._value = value;\n this._updateRadiosValue();\n }\n\n private _updateRadiosValue() { this._radios.forEach((radio) => radio.updateValue(this._value)); }\n private _updateRadiosDisabled() { this._radios.forEach((radio) => radio.updateDisabled()); }\n}\n\n\n/**\n * A directive that marks an input of type \"radio\" as a part of the\n * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup).\n */\n@Directive({\n selector: '[ngbButton][type=radio]',\n host: {\n '[checked]': 'checked',\n '[disabled]': 'disabled',\n '[name]': 'nameAttr',\n '(change)': 'onChange()',\n '(focus)': 'focused = true',\n '(blur)': 'focused = false'\n }\n})\nexport class NgbRadio implements OnDestroy {\n private _checked: boolean;\n private _disabled: boolean;\n private _value: any = null;\n\n /**\n * The value for the 'name' property of the input element.\n *\n * All inputs of the radio group should have the same name. If not specified,\n * the name of the enclosing group is used.\n */\n @Input() name: string;\n\n /**\n * The form control value when current radio button is checked.\n */\n @Input('value')\n set value(value: any) {\n this._value = value;\n const stringValue = value ? value.toString() : '';\n this._renderer.setProperty(this._element.nativeElement, 'value', stringValue);\n this._group.onRadioValueUpdate();\n }\n\n /**\n * If `true`, current radio button will be disabled.\n */\n @Input('disabled')\n set disabled(isDisabled: boolean) {\n this._disabled = isDisabled !== false;\n this.updateDisabled();\n }\n\n set focused(isFocused: boolean) {\n if (this._label) {\n this._label.focused = isFocused;\n }\n if (!isFocused) {\n this._group.onTouched();\n }\n }\n\n get checked() { return this._checked; }\n\n get disabled() { return this._group.disabled || this._disabled; }\n\n get value() { return this._value; }\n\n get nameAttr() { return this.name || this._group.name; }\n\n constructor(\n private _group: NgbRadioGroup, private _label: NgbButtonLabel, private _renderer: Renderer2,\n private _element: ElementRef, private _cd: ChangeDetectorRef) {\n this._group.register(this);\n this.updateDisabled();\n }\n\n ngOnDestroy() { this._group.unregister(this); }\n\n onChange() { this._group.onRadioChange(this); }\n\n updateValue(value) {\n // label won't be updated, if it is inside the OnPush component when [ngModel] changes\n if (this.value !== value) {\n this._cd.markForCheck();\n }\n\n this._checked = this.value === value;\n this._label.active = this._checked;\n }\n\n updateDisabled() { this._label.disabled = this.disabled; }\n}\n","import {NgModule} from '@angular/core';\nimport {NgbButtonLabel} from './label';\nimport {NgbCheckBox} from './checkbox';\nimport {NgbRadio, NgbRadioGroup} from './radio';\n\nexport {NgbButtonLabel} from './label';\nexport {NgbCheckBox} from './checkbox';\nexport {NgbRadio, NgbRadioGroup} from './radio';\n\n\nconst NGB_BUTTON_DIRECTIVES = [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio];\n\n@NgModule({declarations: NGB_BUTTON_DIRECTIVES, exports: NGB_BUTTON_DIRECTIVES})\nexport class NgbButtonsModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all carousels used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbCarouselConfig {\n interval = 5000;\n wrap = true;\n keyboard = true;\n pauseOnHover = true;\n showNavigationArrows = true;\n showNavigationIndicators = true;\n}\n","import {\n AfterContentChecked,\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n Directive,\n EventEmitter,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n PLATFORM_ID,\n QueryList,\n TemplateRef,\n HostListener\n} from '@angular/core';\nimport {isPlatformBrowser} from '@angular/common';\n\nimport {NgbCarouselConfig} from './carousel-config';\n\nimport {Subject, timer, BehaviorSubject, combineLatest, NEVER} from 'rxjs';\nimport {startWith, map, switchMap, takeUntil, distinctUntilChanged} from 'rxjs/operators';\n\nlet nextId = 0;\n\n/**\n * A directive that wraps the individual carousel slide.\n */\n@Directive({selector: 'ng-template[ngbSlide]'})\nexport class NgbSlide {\n /**\n * Slide id that must be unique for the entire document.\n *\n * If not provided, will be generated in the `ngb-slide-xx` format.\n */\n @Input() id = `ngb-slide-${nextId++}`;\n constructor(public tplRef: TemplateRef) {}\n}\n\n/**\n * Carousel is a component to easily create and control slideshows.\n *\n * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API.\n */\n@Component({\n selector: 'ngb-carousel',\n exportAs: 'ngbCarousel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'carousel slide',\n '[style.display]': '\"block\"',\n 'tabIndex': '0',\n '(keydown.arrowLeft)': 'keyboard && prev(NgbSlideEventSource.ARROW_LEFT)',\n '(keydown.arrowRight)': 'keyboard && next(NgbSlideEventSource.ARROW_RIGHT)'\n },\n template: `\n
    \n
  1. \n
\n
\n
\n \n
\n
\n \n \n Previous\n \n \n \n Next\n \n `\n})\nexport class NgbCarousel implements AfterContentChecked,\n AfterContentInit, OnDestroy {\n @ContentChildren(NgbSlide) slides: QueryList;\n\n public NgbSlideEventSource = NgbSlideEventSource;\n\n private _destroy$ = new Subject();\n private _interval$ = new BehaviorSubject(0);\n private _mouseHover$ = new BehaviorSubject(false);\n private _pauseOnHover$ = new BehaviorSubject(false);\n private _pause$ = new BehaviorSubject(false);\n private _wrap$ = new BehaviorSubject(false);\n\n /**\n * The slide id that should be displayed **initially**.\n *\n * For subsequent interactions use methods `select()`, `next()`, etc. and the `(slide)` output.\n */\n @Input() activeId: string;\n\n /**\n * Time in milliseconds before the next slide is shown.\n */\n @Input()\n set interval(value: number) {\n this._interval$.next(value);\n }\n\n get interval() { return this._interval$.value; }\n\n /**\n * If `true`, will 'wrap' the carousel by switching from the last slide back to the first.\n */\n @Input()\n set wrap(value: boolean) {\n this._wrap$.next(value);\n }\n\n get wrap() { return this._wrap$.value; }\n\n /**\n * If `true`, allows to interact with carousel using keyboard 'arrow left' and 'arrow right'.\n */\n @Input() keyboard: boolean;\n\n /**\n * If `true`, will pause slide switching when mouse cursor hovers the slide.\n *\n * @since 2.2.0\n */\n @Input()\n set pauseOnHover(value: boolean) {\n this._pauseOnHover$.next(value);\n }\n\n get pauseOnHover() { return this._pauseOnHover$.value; }\n\n /**\n * If `true`, 'previous' and 'next' navigation arrows will be visible on the slide.\n *\n * @since 2.2.0\n */\n @Input() showNavigationArrows: boolean;\n\n /**\n * If `true`, navigation indicators at the bottom of the slide will be visible.\n *\n * @since 2.2.0\n */\n @Input() showNavigationIndicators: boolean;\n\n /**\n * An event emitted right after the slide transition is completed.\n *\n * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details.\n */\n @Output() slide = new EventEmitter();\n\n constructor(\n config: NgbCarouselConfig, @Inject(PLATFORM_ID) private _platformId, private _ngZone: NgZone,\n private _cd: ChangeDetectorRef) {\n this.interval = config.interval;\n this.wrap = config.wrap;\n this.keyboard = config.keyboard;\n this.pauseOnHover = config.pauseOnHover;\n this.showNavigationArrows = config.showNavigationArrows;\n this.showNavigationIndicators = config.showNavigationIndicators;\n }\n\n @HostListener('mouseenter')\n mouseEnter() {\n this._mouseHover$.next(true);\n }\n\n @HostListener('mouseleave')\n mouseLeave() {\n this._mouseHover$.next(false);\n }\n\n ngAfterContentInit() {\n // setInterval() doesn't play well with SSR and protractor,\n // so we should run it in the browser and outside Angular\n if (isPlatformBrowser(this._platformId)) {\n this._ngZone.runOutsideAngular(() => {\n const hasNextSlide$ = combineLatest(\n this.slide.pipe(map(slideEvent => slideEvent.current), startWith(this.activeId)),\n this._wrap$, this.slides.changes.pipe(startWith(null)))\n .pipe(\n map(([currentSlideId, wrap]) => {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n return wrap ? slideArr.length > 1 : currentSlideIdx < slideArr.length - 1;\n }),\n distinctUntilChanged());\n combineLatest(this._pause$, this._pauseOnHover$, this._mouseHover$, this._interval$, hasNextSlide$)\n .pipe(\n map(([pause, pauseOnHover, mouseHover, interval, hasNextSlide]) =>\n ((pause || (pauseOnHover && mouseHover) || !hasNextSlide) ? 0 : interval)),\n\n distinctUntilChanged(), switchMap(interval => interval > 0 ? timer(interval, interval) : NEVER),\n takeUntil(this._destroy$))\n .subscribe(() => this._ngZone.run(() => this.next(NgbSlideEventSource.TIMER)));\n });\n }\n\n this.slides.changes.pipe(takeUntil(this._destroy$)).subscribe(() => this._cd.markForCheck());\n }\n\n ngAfterContentChecked() {\n let activeSlide = this._getSlideById(this.activeId);\n this.activeId = activeSlide ? activeSlide.id : (this.slides.length ? this.slides.first.id : null);\n }\n\n ngOnDestroy() { this._destroy$.next(); }\n\n /**\n * Navigates to a slide with the specified identifier.\n */\n select(slideId: string, source?: NgbSlideEventSource) {\n this._cycleToSelected(slideId, this._getSlideEventDirection(this.activeId, slideId), source);\n }\n\n /**\n * Navigates to the previous slide.\n */\n prev(source?: NgbSlideEventSource) {\n this._cycleToSelected(this._getPrevSlide(this.activeId), NgbSlideEventDirection.RIGHT, source);\n }\n\n /**\n * Navigates to the next slide.\n */\n next(source?: NgbSlideEventSource) {\n this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source);\n }\n\n /**\n * Pauses cycling through the slides.\n */\n pause() { this._pause$.next(true); }\n\n /**\n * Restarts cycling through the slides from left to right.\n */\n cycle() { this._pause$.next(false); }\n\n private _cycleToSelected(slideIdx: string, direction: NgbSlideEventDirection, source?: NgbSlideEventSource) {\n let selectedSlide = this._getSlideById(slideIdx);\n if (selectedSlide && selectedSlide.id !== this.activeId) {\n this.slide.emit(\n {prev: this.activeId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source});\n this.activeId = selectedSlide.id;\n }\n\n // we get here after the interval fires or any external API call like next(), prev() or select()\n this._cd.markForCheck();\n }\n\n private _getSlideEventDirection(currentActiveSlideId: string, nextActiveSlideId: string): NgbSlideEventDirection {\n const currentActiveSlideIdx = this._getSlideIdxById(currentActiveSlideId);\n const nextActiveSlideIdx = this._getSlideIdxById(nextActiveSlideId);\n\n return currentActiveSlideIdx > nextActiveSlideIdx ? NgbSlideEventDirection.RIGHT : NgbSlideEventDirection.LEFT;\n }\n\n private _getSlideById(slideId: string): NgbSlide { return this.slides.find(slide => slide.id === slideId); }\n\n private _getSlideIdxById(slideId: string): number {\n return this.slides.toArray().indexOf(this._getSlideById(slideId));\n }\n\n private _getNextSlide(currentSlideId: string): string {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n const isLastSlide = currentSlideIdx === slideArr.length - 1;\n\n return isLastSlide ? (this.wrap ? slideArr[0].id : slideArr[slideArr.length - 1].id) :\n slideArr[currentSlideIdx + 1].id;\n }\n\n private _getPrevSlide(currentSlideId: string): string {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n const isFirstSlide = currentSlideIdx === 0;\n\n return isFirstSlide ? (this.wrap ? slideArr[slideArr.length - 1].id : slideArr[0].id) :\n slideArr[currentSlideIdx - 1].id;\n }\n}\n\n/**\n * A slide change event emitted right after the slide transition is completed.\n */\nexport interface NgbSlideEvent {\n /**\n * The previous slide id.\n */\n prev: string;\n\n /**\n * The current slide id.\n */\n current: string;\n\n /**\n * The slide event direction.\n *\n * Possible values are `'left' | 'right'`.\n */\n direction: NgbSlideEventDirection;\n\n /**\n * Whether the pause() method was called (and no cycle() call was done afterwards).\n *\n * @since 5.1.0\n */\n paused: boolean;\n\n /**\n * Source triggering the slide change event.\n *\n * Possible values are `'timer' | 'arrowLeft' | 'arrowRight' | 'indicator'`\n *\n * @since 5.1.0\n */\n source?: NgbSlideEventSource;\n}\n\n/**\n * Defines the carousel slide transition direction.\n */\nexport enum NgbSlideEventDirection {\n LEFT = 'left',\n RIGHT = 'right'\n}\n\nexport enum NgbSlideEventSource {\n TIMER = 'timer',\n ARROW_LEFT = 'arrowLeft',\n ARROW_RIGHT = 'arrowRight',\n INDICATOR = 'indicator'\n}\n\nexport const NGB_CAROUSEL_DIRECTIVES = [NgbCarousel, NgbSlide];\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NGB_CAROUSEL_DIRECTIVES} from './carousel';\n\nexport {NgbCarousel, NgbSlide, NgbSlideEvent, NgbSlideEventDirection, NgbSlideEventSource} from './carousel';\nexport {NgbCarouselConfig} from './carousel-config';\n\n@NgModule({declarations: NGB_CAROUSEL_DIRECTIVES, exports: NGB_CAROUSEL_DIRECTIVES, imports: [CommonModule]})\nexport class NgbCarouselModule {\n}\n","import {Directive, Input} from '@angular/core';\n\n/**\n * A directive to provide a simple way of hiding and showing elements on the page.\n */\n@Directive({\n selector: '[ngbCollapse]',\n exportAs: 'ngbCollapse',\n host: {'[class.collapse]': 'true', '[class.show]': '!collapsed'}\n})\nexport class NgbCollapse {\n /**\n * If `true`, will collapse the element or show it otherwise.\n */\n @Input('ngbCollapse') collapsed = false;\n}\n","import {NgModule} from '@angular/core';\nimport {NgbCollapse} from './collapse';\n\nexport {NgbCollapse} from './collapse';\n\n@NgModule({declarations: [NgbCollapse], exports: [NgbCollapse]})\nexport class NgbCollapseModule {\n}\n","import {NgbDateStruct} from './ngb-date-struct';\nimport {isInteger} from '../util/util';\n\n/**\n * A simple class that represents a date that datepicker also uses internally.\n *\n * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods,\n * like `.equals()`, `.before()`, etc.\n *\n * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`.\n *\n * In many cases it is simpler to manipulate these objects together with\n * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details.\n *\n * @since 3.0.0\n */\nexport class NgbDate implements NgbDateStruct {\n /**\n * The year, for example 2016\n */\n year: number;\n\n /**\n * The month, for example 1=Jan ... 12=Dec as in ISO 8601\n */\n month: number;\n\n /**\n * The day of month, starting with 1\n */\n day: number;\n\n /**\n * A **static method** that creates a new date object from the `NgbDateStruct`,\n *\n * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`.\n *\n * If the `date` is already of `NgbDate` type, the method will return the same object.\n */\n static from(date: NgbDateStruct): NgbDate {\n if (date instanceof NgbDate) {\n return date;\n }\n return date ? new NgbDate(date.year, date.month, date.day) : null;\n }\n\n constructor(year: number, month: number, day: number) {\n this.year = isInteger(year) ? year : null;\n this.month = isInteger(month) ? month : null;\n this.day = isInteger(day) ? day : null;\n }\n\n /**\n * Checks if the current date is equal to another date.\n */\n equals(other: NgbDateStruct): boolean {\n return other && this.year === other.year && this.month === other.month && this.day === other.day;\n }\n\n /**\n * Checks if the current date is before another date.\n */\n before(other: NgbDateStruct): boolean {\n if (!other) {\n return false;\n }\n\n if (this.year === other.year) {\n if (this.month === other.month) {\n return this.day === other.day ? false : this.day < other.day;\n } else {\n return this.month < other.month;\n }\n } else {\n return this.year < other.year;\n }\n }\n\n /**\n * Checks if the current date is after another date.\n */\n after(other: NgbDateStruct): boolean {\n if (!other) {\n return false;\n }\n if (this.year === other.year) {\n if (this.month === other.month) {\n return this.day === other.day ? false : this.day > other.day;\n } else {\n return this.month > other.month;\n }\n } else {\n return this.year > other.year;\n }\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {Injectable} from '@angular/core';\nimport {isInteger} from '../util/util';\n\nexport function fromJSDate(jsDate: Date) {\n return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate());\n}\nexport function toJSDate(date: NgbDate) {\n const jsDate = new Date(date.year, date.month - 1, date.day, 12);\n // this is done avoid 30 -> 1930 conversion\n if (!isNaN(jsDate.getTime())) {\n jsDate.setFullYear(date.year);\n }\n return jsDate;\n}\n\nexport type NgbPeriod = 'y' | 'm' | 'd';\n\nexport function NGB_DATEPICKER_CALENDAR_FACTORY() {\n return new NgbCalendarGregorian();\n}\n\n/**\n * A service that represents the calendar used by the datepicker.\n *\n * The default implementation uses the Gregorian calendar. You can inject it in your own\n * implementations if necessary to simplify `NgbDate` calculations.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_CALENDAR_FACTORY})\nexport abstract class NgbCalendar {\n /**\n * Returns the number of days per week.\n */\n abstract getDaysPerWeek(): number;\n\n /**\n * Returns an array of months per year.\n *\n * With default calendar we use ISO 8601 and return [1, 2, ..., 12];\n */\n abstract getMonths(year?: number): number[];\n\n /**\n * Returns the number of weeks per month.\n */\n abstract getWeeksPerMonth(): number;\n\n /**\n * Returns the weekday number for a given day.\n *\n * With the default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun\n */\n abstract getWeekday(date: NgbDate): number;\n\n /**\n * Adds a number of years, months or days to a given date.\n *\n * * `period` can be `y`, `m` or `d` and defaults to day.\n * * `number` defaults to 1.\n *\n * Always returns a new date.\n */\n abstract getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;\n\n /**\n * Subtracts a number of years, months or days from a given date.\n *\n * * `period` can be `y`, `m` or `d` and defaults to day.\n * * `number` defaults to 1.\n *\n * Always returns a new date.\n */\n abstract getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;\n\n /**\n * Returns the week number for a given week.\n */\n abstract getWeekNumber(week: NgbDate[], firstDayOfWeek: number): number;\n\n /**\n * Returns the today's date.\n */\n abstract getToday(): NgbDate;\n\n /**\n * Checks if a date is valid in the current calendar.\n */\n abstract isValid(date: NgbDate): boolean;\n}\n\n@Injectable()\nexport class NgbCalendarGregorian extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n let jsDate = toJSDate(date);\n\n switch (period) {\n case 'y':\n return new NgbDate(date.year + number, 1, 1);\n case 'm':\n jsDate = new Date(date.year, date.month + number - 1, 1, 12);\n break;\n case 'd':\n jsDate.setDate(jsDate.getDate() + number);\n break;\n default:\n return date;\n }\n\n return fromJSDate(jsDate);\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n let jsDate = toJSDate(date);\n let day = jsDate.getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n let date = week[thursdayIndex];\n\n const jsDate = toJSDate(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n jsDate.setMonth(0); // Compare with Jan 1\n jsDate.setDate(1);\n return Math.floor(Math.round((time - jsDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return fromJSDate(new Date()); }\n\n isValid(date: NgbDate): boolean {\n if (!date || !isInteger(date.year) || !isInteger(date.month) || !isInteger(date.day)) {\n return false;\n }\n\n // year 0 doesn't exist in Gregorian calendar\n if (date.year === 0) {\n return false;\n }\n\n const jsDate = toJSDate(date);\n\n return !isNaN(jsDate.getTime()) && jsDate.getFullYear() === date.year && jsDate.getMonth() + 1 === date.month &&\n jsDate.getDate() === date.day;\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {DatepickerViewModel, DayViewModel, MonthViewModel} from './datepicker-view-model';\nimport {NgbCalendar} from './ngb-calendar';\nimport {isDefined} from '../util/util';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\nexport function isChangedDate(prev: NgbDate, next: NgbDate) {\n return !dateComparator(prev, next);\n}\n\nexport function isChangedMonth(prev: NgbDate, next: NgbDate) {\n return !prev && !next ? false : !prev || !next ? true : prev.year !== next.year || prev.month !== next.month;\n}\n\nexport function dateComparator(prev: NgbDate, next: NgbDate) {\n return (!prev && !next) || (!!prev && !!next && prev.equals(next));\n}\n\nexport function checkMinBeforeMax(minDate: NgbDate, maxDate: NgbDate) {\n if (maxDate && minDate && maxDate.before(minDate)) {\n throw new Error(`'maxDate' ${maxDate} should be greater than 'minDate' ${minDate}`);\n }\n}\n\nexport function checkDateInRange(date: NgbDate, minDate: NgbDate, maxDate: NgbDate): NgbDate {\n if (date && minDate && date.before(minDate)) {\n return minDate;\n }\n if (date && maxDate && date.after(maxDate)) {\n return maxDate;\n }\n\n return date;\n}\n\nexport function isDateSelectable(date: NgbDate, state: DatepickerViewModel) {\n const {minDate, maxDate, disabled, markDisabled} = state;\n // clang-format off\n return !(\n !isDefined(date) ||\n disabled ||\n (markDisabled && markDisabled(date, {year: date.year, month: date.month})) ||\n (minDate && date.before(minDate)) ||\n (maxDate && date.after(maxDate))\n );\n // clang-format on\n}\n\nexport function generateSelectBoxMonths(calendar: NgbCalendar, date: NgbDate, minDate: NgbDate, maxDate: NgbDate) {\n if (!date) {\n return [];\n }\n\n let months = calendar.getMonths(date.year);\n\n if (minDate && date.year === minDate.year) {\n const index = months.findIndex(month => month === minDate.month);\n months = months.slice(index);\n }\n\n if (maxDate && date.year === maxDate.year) {\n const index = months.findIndex(month => month === maxDate.month);\n months = months.slice(0, index + 1);\n }\n\n return months;\n}\n\nexport function generateSelectBoxYears(date: NgbDate, minDate: NgbDate, maxDate: NgbDate) {\n if (!date) {\n return [];\n }\n\n const start = minDate && minDate.year || date.year - 10;\n const end = maxDate && maxDate.year || date.year + 10;\n\n return Array.from({length: end - start + 1}, (e, i) => start + i);\n}\n\nexport function nextMonthDisabled(calendar: NgbCalendar, date: NgbDate, maxDate: NgbDate) {\n return maxDate && calendar.getNext(date, 'm').after(maxDate);\n}\n\nexport function prevMonthDisabled(calendar: NgbCalendar, date: NgbDate, minDate: NgbDate) {\n const prevDate = calendar.getPrev(date, 'm');\n return minDate && (prevDate.year === minDate.year && prevDate.month < minDate.month ||\n prevDate.year < minDate.year && minDate.month === 1);\n}\n\nexport function buildMonths(\n calendar: NgbCalendar, date: NgbDate, state: DatepickerViewModel, i18n: NgbDatepickerI18n,\n force: boolean): MonthViewModel[] {\n const {displayMonths, months} = state;\n // move old months to a temporary array\n const monthsToReuse = months.splice(0, months.length);\n\n // generate new first dates, nullify or reuse months\n const firstDates = Array.from({length: displayMonths}, (_, i) => {\n const firstDate = calendar.getNext(date, 'm', i);\n months[i] = null;\n\n if (!force) {\n const reusedIndex = monthsToReuse.findIndex(month => month.firstDate.equals(firstDate));\n // move reused month back to months\n if (reusedIndex !== -1) {\n months[i] = monthsToReuse.splice(reusedIndex, 1)[0];\n }\n }\n\n return firstDate;\n });\n\n // rebuild nullified months\n firstDates.forEach((firstDate, i) => {\n if (months[i] === null) {\n months[i] = buildMonth(calendar, firstDate, state, i18n, monthsToReuse.shift() || {} as MonthViewModel);\n }\n });\n\n return months;\n}\n\nexport function buildMonth(\n calendar: NgbCalendar, date: NgbDate, state: DatepickerViewModel, i18n: NgbDatepickerI18n,\n month: MonthViewModel = {} as MonthViewModel): MonthViewModel {\n const {dayTemplateData, minDate, maxDate, firstDayOfWeek, markDisabled, outsideDays} = state;\n const calendarToday = calendar.getToday();\n\n month.firstDate = null;\n month.lastDate = null;\n month.number = date.month;\n month.year = date.year;\n month.weeks = month.weeks || [];\n month.weekdays = month.weekdays || [];\n\n date = getFirstViewDate(calendar, date, firstDayOfWeek);\n\n // month has weeks\n for (let week = 0; week < calendar.getWeeksPerMonth(); week++) {\n let weekObject = month.weeks[week];\n if (!weekObject) {\n weekObject = month.weeks[week] = {number: 0, days: [], collapsed: true};\n }\n const days = weekObject.days;\n\n // week has days\n for (let day = 0; day < calendar.getDaysPerWeek(); day++) {\n if (week === 0) {\n month.weekdays[day] = calendar.getWeekday(date);\n }\n\n const newDate = new NgbDate(date.year, date.month, date.day);\n const nextDate = calendar.getNext(newDate);\n\n const ariaLabel = i18n.getDayAriaLabel(newDate);\n\n // marking date as disabled\n let disabled = !!((minDate && newDate.before(minDate)) || (maxDate && newDate.after(maxDate)));\n if (!disabled && markDisabled) {\n disabled = markDisabled(newDate, {month: month.number, year: month.year});\n }\n\n // today\n let today = newDate.equals(calendarToday);\n\n // adding user-provided data to the context\n let contextUserData =\n dayTemplateData ? dayTemplateData(newDate, {month: month.number, year: month.year}) : undefined;\n\n // saving first date of the month\n if (month.firstDate === null && newDate.month === month.number) {\n month.firstDate = newDate;\n }\n\n // saving last date of the month\n if (newDate.month === month.number && nextDate.month !== month.number) {\n month.lastDate = newDate;\n }\n\n let dayObject = days[day];\n if (!dayObject) {\n dayObject = days[day] = {} as DayViewModel;\n }\n dayObject.date = newDate;\n dayObject.context = Object.assign(dayObject.context || {}, {\n $implicit: newDate,\n date: newDate,\n data: contextUserData,\n currentMonth: month.number, disabled,\n focused: false,\n selected: false, today\n });\n dayObject.tabindex = -1;\n dayObject.ariaLabel = ariaLabel;\n dayObject.hidden = false;\n\n date = nextDate;\n }\n\n weekObject.number = calendar.getWeekNumber(days.map(day => day.date), firstDayOfWeek);\n\n // marking week as collapsed\n weekObject.collapsed = outsideDays === 'collapsed' && days[0].date.month !== month.number &&\n days[days.length - 1].date.month !== month.number;\n }\n\n return month;\n}\n\nexport function getFirstViewDate(calendar: NgbCalendar, date: NgbDate, firstDayOfWeek: number): NgbDate {\n const daysPerWeek = calendar.getDaysPerWeek();\n const firstMonthDate = new NgbDate(date.year, date.month, 1);\n const dayOfWeek = calendar.getWeekday(firstMonthDate) % daysPerWeek;\n return calendar.getPrev(firstMonthDate, 'd', (daysPerWeek + dayOfWeek - firstDayOfWeek) % daysPerWeek);\n}\n","import {Inject, Injectable, LOCALE_ID} from '@angular/core';\nimport {FormStyle, getLocaleDayNames, getLocaleMonthNames, TranslationWidth, formatDate} from '@angular/common';\nimport {NgbDateStruct} from './ngb-date-struct';\n\nexport function NGB_DATEPICKER_18N_FACTORY(locale) {\n return new NgbDatepickerI18nDefault(locale);\n}\n\n/**\n * A service supplying i18n data to the datepicker component.\n *\n * The default implementation of this service uses the Angular locale and registered locale data for\n * weekdays and month names (as explained in the Angular i18n guide).\n *\n * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year\n * numerals. For other static labels the datepicker uses the default Angular i18n.\n *\n * See the [i18n demo](#/components/datepicker/examples#i18n) and\n * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define\n * a custom provider for i18n.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_18N_FACTORY, deps: [LOCALE_ID]})\nexport abstract class NgbDatepickerI18n {\n /**\n * Returns the short weekday name to display in the heading of the month view.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n abstract getWeekdayShortName(weekday: number): string;\n\n /**\n * Returns the short month name to display in the date picker navigation.\n *\n * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n */\n abstract getMonthShortName(month: number, year?: number): string;\n\n /**\n * Returns the full month name to display in the date picker navigation.\n *\n * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n */\n abstract getMonthFullName(month: number, year?: number): string;\n\n /**\n * Returns the value of the `aria-label` attribute for a specific date.\n *\n * @since 2.0.0\n */\n abstract getDayAriaLabel(date: NgbDateStruct): string;\n\n /**\n * Returns the textual representation of a day that is rendered in a day cell.\n *\n * @since 3.0.0\n */\n getDayNumerals(date: NgbDateStruct): string { return `${date.day}`; }\n\n /**\n * Returns the textual representation of a week number rendered by datepicker.\n *\n * @since 3.0.0\n */\n getWeekNumerals(weekNumber: number): string { return `${weekNumber}`; }\n\n /**\n * Returns the textual representation of a year that is rendered in the datepicker year select box.\n *\n * @since 3.0.0\n */\n getYearNumerals(year: number): string { return `${year}`; }\n}\n\n@Injectable()\nexport class NgbDatepickerI18nDefault extends NgbDatepickerI18n {\n private _weekdaysShort: Array;\n private _monthsShort: Array;\n private _monthsFull: Array;\n\n constructor(@Inject(LOCALE_ID) private _locale: string) {\n super();\n\n const weekdaysStartingOnSunday = getLocaleDayNames(_locale, FormStyle.Standalone, TranslationWidth.Short);\n this._weekdaysShort = weekdaysStartingOnSunday.map((day, index) => weekdaysStartingOnSunday[(index + 1) % 7]);\n\n this._monthsShort = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Abbreviated);\n this._monthsFull = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Wide);\n }\n\n getWeekdayShortName(weekday: number): string { return this._weekdaysShort[weekday - 1]; }\n\n getMonthShortName(month: number): string { return this._monthsShort[month - 1]; }\n\n getMonthFullName(month: number): string { return this._monthsFull[month - 1]; }\n\n getDayAriaLabel(date: NgbDateStruct): string {\n const jsDate = new Date(date.year, date.month - 1, date.day);\n return formatDate(jsDate, 'fullDate', this._locale);\n }\n}\n","import {NgbCalendar, NgbPeriod} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {DatepickerViewModel, NgbDayTemplateData, NgbMarkDisabled} from './datepicker-view-model';\nimport {Injectable} from '@angular/core';\nimport {isInteger, toInteger} from '../util/util';\nimport {Observable, Subject} from 'rxjs';\nimport {\n buildMonths,\n checkDateInRange,\n checkMinBeforeMax,\n isChangedDate,\n isChangedMonth,\n isDateSelectable,\n generateSelectBoxYears,\n generateSelectBoxMonths,\n prevMonthDisabled,\n nextMonthDisabled\n} from './datepicker-tools';\n\nimport {filter} from 'rxjs/operators';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Injectable()\nexport class NgbDatepickerService {\n private _model$ = new Subject();\n\n private _select$ = new Subject();\n\n private _state: DatepickerViewModel = {\n disabled: false,\n displayMonths: 1,\n firstDayOfWeek: 1,\n focusVisible: false,\n months: [],\n navigation: 'select',\n outsideDays: 'visible',\n prevDisabled: false,\n nextDisabled: false,\n selectBoxes: {years: [], months: []},\n selectedDate: null\n };\n\n get model$(): Observable { return this._model$.pipe(filter(model => model.months.length > 0)); }\n\n get select$(): Observable { return this._select$.pipe(filter(date => date !== null)); }\n\n set dayTemplateData(dayTemplateData: NgbDayTemplateData) {\n if (this._state.dayTemplateData !== dayTemplateData) {\n this._nextState({dayTemplateData});\n }\n }\n\n set disabled(disabled: boolean) {\n if (this._state.disabled !== disabled) {\n this._nextState({disabled});\n }\n }\n\n set displayMonths(displayMonths: number) {\n displayMonths = toInteger(displayMonths);\n if (isInteger(displayMonths) && displayMonths > 0 && this._state.displayMonths !== displayMonths) {\n this._nextState({displayMonths});\n }\n }\n\n set firstDayOfWeek(firstDayOfWeek: number) {\n firstDayOfWeek = toInteger(firstDayOfWeek);\n if (isInteger(firstDayOfWeek) && firstDayOfWeek >= 0 && this._state.firstDayOfWeek !== firstDayOfWeek) {\n this._nextState({firstDayOfWeek});\n }\n }\n\n set focusVisible(focusVisible: boolean) {\n if (this._state.focusVisible !== focusVisible && !this._state.disabled) {\n this._nextState({focusVisible});\n }\n }\n\n set maxDate(date: NgbDate) {\n const maxDate = this.toValidDate(date, null);\n if (isChangedDate(this._state.maxDate, maxDate)) {\n this._nextState({maxDate});\n }\n }\n\n set markDisabled(markDisabled: NgbMarkDisabled) {\n if (this._state.markDisabled !== markDisabled) {\n this._nextState({markDisabled});\n }\n }\n\n set minDate(date: NgbDate) {\n const minDate = this.toValidDate(date, null);\n if (isChangedDate(this._state.minDate, minDate)) {\n this._nextState({minDate});\n }\n }\n\n set navigation(navigation: 'select' | 'arrows' | 'none') {\n if (this._state.navigation !== navigation) {\n this._nextState({navigation});\n }\n }\n\n set outsideDays(outsideDays: 'visible' | 'collapsed' | 'hidden') {\n if (this._state.outsideDays !== outsideDays) {\n this._nextState({outsideDays});\n }\n }\n\n constructor(private _calendar: NgbCalendar, private _i18n: NgbDatepickerI18n) {}\n\n focus(date: NgbDate) {\n if (!this._state.disabled && this._calendar.isValid(date) && isChangedDate(this._state.focusDate, date)) {\n this._nextState({focusDate: date});\n }\n }\n\n focusMove(period?: NgbPeriod, number?: number) {\n this.focus(this._calendar.getNext(this._state.focusDate, period, number));\n }\n\n focusSelect() {\n if (isDateSelectable(this._state.focusDate, this._state)) {\n this.select(this._state.focusDate, {emitEvent: true});\n }\n }\n\n open(date: NgbDate) {\n const firstDate = this.toValidDate(date, this._calendar.getToday());\n if (!this._state.disabled && (!this._state.firstDate || isChangedMonth(this._state.firstDate, date))) {\n this._nextState({firstDate});\n }\n }\n\n select(date: NgbDate, options: {emitEvent?: boolean} = {}) {\n const selectedDate = this.toValidDate(date, null);\n if (!this._state.disabled) {\n if (isChangedDate(this._state.selectedDate, selectedDate)) {\n this._nextState({selectedDate});\n }\n\n if (options.emitEvent && isDateSelectable(selectedDate, this._state)) {\n this._select$.next(selectedDate);\n }\n }\n }\n\n toValidDate(date: NgbDateStruct, defaultValue?: NgbDate): NgbDate {\n const ngbDate = NgbDate.from(date);\n if (defaultValue === undefined) {\n defaultValue = this._calendar.getToday();\n }\n return this._calendar.isValid(ngbDate) ? ngbDate : defaultValue;\n }\n\n private _nextState(patch: Partial) {\n const newState = this._updateState(patch);\n this._patchContexts(newState);\n this._state = newState;\n this._model$.next(this._state);\n }\n\n private _patchContexts(state: DatepickerViewModel) {\n const {months, displayMonths, selectedDate, focusDate, focusVisible, disabled, outsideDays} = state;\n state.months.forEach(month => {\n month.weeks.forEach(week => {\n week.days.forEach(day => {\n\n // patch focus flag\n if (focusDate) {\n day.context.focused = focusDate.equals(day.date) && focusVisible;\n }\n\n // calculating tabindex\n day.tabindex = !disabled && day.date.equals(focusDate) && focusDate.month === month.number ? 0 : -1;\n\n // override context disabled\n if (disabled === true) {\n day.context.disabled = true;\n }\n\n // patch selection flag\n if (selectedDate !== undefined) {\n day.context.selected = selectedDate !== null && selectedDate.equals(day.date);\n }\n\n // visibility\n if (month.number !== day.date.month) {\n day.hidden = outsideDays === 'hidden' || outsideDays === 'collapsed' ||\n (displayMonths > 1 && day.date.after(months[0].firstDate) &&\n day.date.before(months[displayMonths - 1].lastDate));\n }\n });\n });\n });\n }\n\n private _updateState(patch: Partial): DatepickerViewModel {\n // patching fields\n const state = Object.assign({}, this._state, patch);\n\n let startDate = state.firstDate;\n\n // min/max dates changed\n if ('minDate' in patch || 'maxDate' in patch) {\n checkMinBeforeMax(state.minDate, state.maxDate);\n state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate);\n state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate);\n startDate = state.focusDate;\n }\n\n // disabled\n if ('disabled' in patch) {\n state.focusVisible = false;\n }\n\n // initial rebuild via 'select()'\n if ('selectedDate' in patch && this._state.months.length === 0) {\n startDate = state.selectedDate;\n }\n\n // terminate early if only focus visibility was changed\n if ('focusVisible' in patch) {\n return state;\n }\n\n // focus date changed\n if ('focusDate' in patch) {\n state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate);\n startDate = state.focusDate;\n\n // nothing to rebuild if only focus changed and it is still visible\n if (state.months.length !== 0 && !state.focusDate.before(state.firstDate) &&\n !state.focusDate.after(state.lastDate)) {\n return state;\n }\n }\n\n // first date changed\n if ('firstDate' in patch) {\n state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate);\n startDate = state.firstDate;\n }\n\n // rebuilding months\n if (startDate) {\n const forceRebuild = 'dayTemplateData' in patch || 'firstDayOfWeek' in patch || 'markDisabled' in patch ||\n 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch || 'outsideDays' in patch;\n\n const months = buildMonths(this._calendar, startDate, state, this._i18n, forceRebuild);\n\n // updating months and boundary dates\n state.months = months;\n state.firstDate = months.length > 0 ? months[0].firstDate : undefined;\n state.lastDate = months.length > 0 ? months[months.length - 1].lastDate : undefined;\n\n // reset selected date if 'markDisabled' returns true\n if ('selectedDate' in patch && !isDateSelectable(state.selectedDate, state)) {\n state.selectedDate = null;\n }\n\n // adjusting focus after months were built\n if ('firstDate' in patch) {\n if (state.focusDate === undefined || state.focusDate.before(state.firstDate) ||\n state.focusDate.after(state.lastDate)) {\n state.focusDate = startDate;\n }\n }\n\n // adjusting months/years for the select box navigation\n const yearChanged = !this._state.firstDate || this._state.firstDate.year !== state.firstDate.year;\n const monthChanged = !this._state.firstDate || this._state.firstDate.month !== state.firstDate.month;\n if (state.navigation === 'select') {\n // years -> boundaries (min/max were changed)\n if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.years.length === 0 || yearChanged) {\n state.selectBoxes.years = generateSelectBoxYears(state.firstDate, state.minDate, state.maxDate);\n }\n\n // months -> when current year or boundaries change\n if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.months.length === 0 || yearChanged) {\n state.selectBoxes.months =\n generateSelectBoxMonths(this._calendar, state.firstDate, state.minDate, state.maxDate);\n }\n } else {\n state.selectBoxes = {years: [], months: []};\n }\n\n // updating navigation arrows -> boundaries change (min/max) or month/year changes\n if ((state.navigation === 'arrows' || state.navigation === 'select') &&\n (monthChanged || yearChanged || 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch)) {\n state.prevDisabled = state.disabled || prevMonthDisabled(this._calendar, state.firstDate, state.minDate);\n state.nextDisabled = state.disabled || nextMonthDisabled(this._calendar, state.lastDate, state.maxDate);\n }\n }\n\n return state;\n }\n}\n","export enum Key {\n Tab = 9,\n Enter = 13,\n Escape = 27,\n Space = 32,\n PageUp = 33,\n PageDown = 34,\n End = 35,\n Home = 36,\n ArrowLeft = 37,\n ArrowUp = 38,\n ArrowRight = 39,\n ArrowDown = 40\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbCalendar} from './ngb-calendar';\nimport {Key} from '../util/key';\nimport {NgbDate} from './ngb-date';\n\n@Injectable()\nexport class NgbDatepickerKeyMapService {\n private _minDate: NgbDate;\n private _maxDate: NgbDate;\n private _firstViewDate: NgbDate;\n private _lastViewDate: NgbDate;\n\n constructor(private _service: NgbDatepickerService, private _calendar: NgbCalendar) {\n _service.model$.subscribe(model => {\n this._minDate = model.minDate;\n this._maxDate = model.maxDate;\n this._firstViewDate = model.firstDate;\n this._lastViewDate = model.lastDate;\n });\n }\n\n processKey(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.PageUp:\n this._service.focusMove(event.shiftKey ? 'y' : 'm', -1);\n break;\n case Key.PageDown:\n this._service.focusMove(event.shiftKey ? 'y' : 'm', 1);\n break;\n case Key.End:\n this._service.focus(event.shiftKey ? this._maxDate : this._lastViewDate);\n break;\n case Key.Home:\n this._service.focus(event.shiftKey ? this._minDate : this._firstViewDate);\n break;\n case Key.ArrowLeft:\n this._service.focusMove('d', -1);\n break;\n case Key.ArrowUp:\n this._service.focusMove('d', -this._calendar.getDaysPerWeek());\n break;\n case Key.ArrowRight:\n this._service.focusMove('d', 1);\n break;\n case Key.ArrowDown:\n this._service.focusMove('d', this._calendar.getDaysPerWeek());\n break;\n case Key.Enter:\n case Key.Space:\n this._service.focusSelect();\n break;\n default:\n return;\n }\n\n // note 'return' in default case\n event.preventDefault();\n event.stopPropagation();\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {DayTemplateContext} from './datepicker-day-template-context';\n\nexport type NgbMarkDisabled = (date: NgbDateStruct, current: {year: number, month: number}) => boolean;\nexport type NgbDayTemplateData = (date: NgbDateStruct, current: {year: number, month: number}) => any;\n\nexport type DayViewModel = {\n date: NgbDate,\n context: DayTemplateContext,\n tabindex: number,\n ariaLabel: string,\n hidden: boolean\n};\n\nexport type WeekViewModel = {\n number: number,\n days: DayViewModel[],\n collapsed: boolean\n};\n\nexport type MonthViewModel = {\n firstDate: NgbDate,\n lastDate: NgbDate,\n number: number,\n year: number,\n weeks: WeekViewModel[],\n weekdays: number[]\n};\n\n// clang-format off\nexport type DatepickerViewModel = {\n dayTemplateData?: NgbDayTemplateData,\n disabled: boolean,\n displayMonths: number,\n firstDate?: NgbDate,\n firstDayOfWeek: number,\n focusDate?: NgbDate,\n focusVisible: boolean,\n lastDate?: NgbDate,\n markDisabled?: NgbMarkDisabled,\n maxDate?: NgbDate,\n minDate?: NgbDate,\n months: MonthViewModel[],\n navigation: 'select' | 'arrows' | 'none',\n outsideDays: 'visible' | 'collapsed' | 'hidden',\n prevDisabled: boolean,\n nextDisabled: boolean,\n selectBoxes: {\n years: number[],\n months: number[]\n },\n selectedDate: NgbDate\n};\n// clang-format on\n\nexport enum NavigationEvent {\n PREV,\n NEXT\n}\n","import {Injectable, TemplateRef} from '@angular/core';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDateStruct} from './ngb-date-struct';\n\n/**\n * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the datepickers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbDatepickerConfig {\n dayTemplate: TemplateRef;\n dayTemplateData: (date: NgbDateStruct, current: {year: number, month: number}) => any;\n footerTemplate: TemplateRef;\n displayMonths = 1;\n firstDayOfWeek = 1;\n markDisabled: (date: NgbDateStruct, current: {year: number, month: number}) => boolean;\n minDate: NgbDateStruct;\n maxDate: NgbDateStruct;\n navigation: 'select' | 'arrows' | 'none' = 'select';\n outsideDays: 'visible' | 'collapsed' | 'hidden' = 'visible';\n showWeekdays = true;\n showWeekNumbers = false;\n startDate: {year: number, month: number};\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {isInteger} from '../../util/util';\n\nexport function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() {\n return new NgbDateStructAdapter();\n}\n\n/**\n * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and\n * any provided user date model `D`, ex. a string, a native date, etc.\n *\n * The adapter is used **only** for conversion when binding datepicker to a form control,\n * ex. `[(ngModel)]=\"userDateModel\"`. Here `userDateModel` can be of any type.\n *\n * The default datepicker implementation assumes we use `NgbDateStruct` as a user model.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details\n * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY})\nexport abstract class NgbDateAdapter {\n /**\n * Converts a user-model date of type `D` to an `NgbDateStruct` for internal use.\n */\n abstract fromModel(value: D): NgbDateStruct;\n\n /**\n * Converts an internal `NgbDateStruct` date to a user-model date of type `D`.\n */\n abstract toModel(date: NgbDateStruct): D;\n}\n\n@Injectable()\nexport class NgbDateStructAdapter extends NgbDateAdapter {\n /**\n * Converts a NgbDateStruct value into NgbDateStruct value\n */\n fromModel(date: NgbDateStruct): NgbDateStruct {\n return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ?\n {year: date.year, month: date.month, day: date.day} :\n null;\n }\n\n /**\n * Converts a NgbDateStruct value into NgbDateStruct value\n */\n toModel(date: NgbDateStruct): NgbDateStruct {\n return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ?\n {year: date.year, month: date.month, day: date.day} :\n null;\n }\n}\n","import {fromEvent, merge, Subject} from 'rxjs';\nimport {filter, take, takeUntil} from 'rxjs/operators';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {NgbCalendar} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbDatepickerKeyMapService} from './datepicker-keymap-service';\nimport {DatepickerViewModel, NavigationEvent} from './datepicker-view-model';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDatepickerConfig} from './datepicker-config';\nimport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\nimport {isChangedDate, isChangedMonth} from './datepicker-tools';\nimport {hasClassName} from '../util/util';\n\nconst NGB_DATEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbDatepicker),\n multi: true\n};\n\n/**\n * An event emitted right before the navigation happens and the month displayed by the datepicker changes.\n */\nexport interface NgbDatepickerNavigateEvent {\n /**\n * The currently displayed month.\n */\n current: {year: number, month: number};\n\n /**\n * The month we're navigating to.\n */\n next: {year: number, month: number};\n\n /**\n * Calling this function will prevent navigation from happening.\n *\n * @since 4.1.0\n */\n preventDefault: () => void;\n}\n\n/**\n * A highly configurable component that helps you with selecting calendar dates.\n *\n * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup.\n */\n@Component({\n exportAs: 'ngbDatepicker',\n selector: 'ngb-datepicker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker.scss'],\n template: `\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n \n
\n
1 && navigation === 'select')\"\n class=\"ngb-dp-month-name\">\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n \n \n
\n
\n
\n\n \n `,\n providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService, NgbDatepickerKeyMapService]\n})\nexport class NgbDatepicker implements OnDestroy,\n OnChanges, OnInit, AfterViewInit, ControlValueAccessor {\n model: DatepickerViewModel;\n\n @ViewChild('months', {static: true}) private _monthsEl: ElementRef;\n private _controlValue: NgbDate;\n private _destroyed$ = new Subject();\n\n /**\n * The reference to a custom template for the day.\n *\n * Allows to completely override the way a day 'cell' in the calendar is displayed.\n *\n * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside.\n */\n @Input() dayTemplate: TemplateRef;\n\n /**\n * The callback to pass any arbitrary data to the template cell via the\n * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter.\n *\n * `current` is the month that is currently displayed by the datepicker.\n *\n * @since 3.3.0\n */\n @Input() dayTemplateData: (date: NgbDate, current: {year: number, month: number}) => any;\n\n /**\n * The number of months to display.\n */\n @Input() displayMonths: number;\n\n /**\n * The first day of the week.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n @Input() firstDayOfWeek: number;\n\n /**\n * The reference to the custom template for the datepicker footer.\n *\n * @since 3.3.0\n */\n @Input() footerTemplate: TemplateRef;\n\n /**\n * The callback to mark some dates as disabled.\n *\n * It is called for each new date when navigating to a different month.\n *\n * `current` is the month that is currently displayed by the datepicker.\n */\n @Input() markDisabled: (date: NgbDate, current: {year: number, month: number}) => boolean;\n\n /**\n * The latest date that can be displayed or selected.\n *\n * If not provided, 'year' select box will display 10 years after the current month.\n */\n @Input() maxDate: NgbDateStruct;\n\n /**\n * The earliest date that can be displayed or selected.\n *\n * If not provided, 'year' select box will display 10 years before the current month.\n */\n @Input() minDate: NgbDateStruct;\n\n /**\n * Navigation type.\n *\n * * `\"select\"` - select boxes for month and navigation arrows\n * * `\"arrows\"` - only navigation arrows\n * * `\"none\"` - no navigation visible at all\n */\n @Input() navigation: 'select' | 'arrows' | 'none';\n\n /**\n * The way of displaying days that don't belong to the current month.\n *\n * * `\"visible\"` - days are visible\n * * `\"hidden\"` - days are hidden, white space preserved\n * * `\"collapsed\"` - days are collapsed, so the datepicker height might change between months\n *\n * For the 2+ months view, days in between months are never shown.\n */\n @Input() outsideDays: 'visible' | 'collapsed' | 'hidden';\n\n /**\n * If `true`, weekdays will be displayed.\n */\n @Input() showWeekdays: boolean;\n\n /**\n * If `true`, week numbers will be displayed.\n */\n @Input() showWeekNumbers: boolean;\n\n /**\n * The date to open calendar with.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date is provided, calendar will open with current month.\n *\n * You could use `navigateTo(date)` method as an alternative.\n */\n @Input() startDate: {year: number, month: number, day?: number};\n\n /**\n * An event emitted right before the navigation happens and displayed month changes.\n *\n * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info.\n */\n @Output() navigate = new EventEmitter();\n\n /**\n * An event emitted when user selects a date using keyboard or mouse.\n *\n * The payload of the event is currently selected `NgbDate`.\n */\n @Output() select = new EventEmitter();\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n constructor(\n private _keyMapService: NgbDatepickerKeyMapService, public _service: NgbDatepickerService,\n private _calendar: NgbCalendar, public i18n: NgbDatepickerI18n, config: NgbDatepickerConfig,\n private _cd: ChangeDetectorRef, private _elementRef: ElementRef,\n private _ngbDateAdapter: NgbDateAdapter, private _ngZone: NgZone) {\n ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate',\n 'maxDate', 'navigation', 'outsideDays', 'showWeekdays', 'showWeekNumbers', 'startDate']\n .forEach(input => this[input] = config[input]);\n\n _service.select$.pipe(takeUntil(this._destroyed$)).subscribe(date => { this.select.emit(date); });\n\n _service.model$.pipe(takeUntil(this._destroyed$)).subscribe(model => {\n const newDate = model.firstDate;\n const oldDate = this.model ? this.model.firstDate : null;\n\n let navigationPrevented = false;\n // emitting navigation event if the first month changes\n if (!newDate.equals(oldDate)) {\n this.navigate.emit({\n current: oldDate ? {year: oldDate.year, month: oldDate.month} : null,\n next: {year: newDate.year, month: newDate.month},\n preventDefault: () => navigationPrevented = true\n });\n\n // can't prevent the very first navigation\n if (navigationPrevented && oldDate !== null) {\n this._service.open(oldDate);\n return;\n }\n }\n\n const newSelectedDate = model.selectedDate;\n const newFocusedDate = model.focusDate;\n const oldFocusedDate = this.model ? this.model.focusDate : null;\n\n this.model = model;\n\n // handling selection change\n if (isChangedDate(newSelectedDate, this._controlValue)) {\n this._controlValue = newSelectedDate;\n this.onTouched();\n this.onChange(this._ngbDateAdapter.toModel(newSelectedDate));\n }\n\n // handling focus change\n if (isChangedDate(newFocusedDate, oldFocusedDate) && oldFocusedDate && model.focusVisible) {\n this.focus();\n }\n\n _cd.markForCheck();\n });\n }\n\n focus() {\n this._ngZone.onStable.asObservable().pipe(take(1)).subscribe(() => {\n const elementToFocus =\n this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex=\"0\"]');\n if (elementToFocus) {\n elementToFocus.focus();\n }\n });\n }\n\n /**\n * Navigates to the provided date.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date provided calendar will open current month.\n *\n * Use the `[startDate]` input as an alternative.\n */\n navigateTo(date?: {year: number, month: number, day?: number}) {\n this._service.open(NgbDate.from(date ? date.day ? date as NgbDateStruct : {...date, day: 1} : null));\n }\n\n ngAfterViewInit() {\n this._ngZone.runOutsideAngular(() => {\n const focusIns$ = fromEvent(this._monthsEl.nativeElement, 'focusin');\n const focusOuts$ = fromEvent(this._monthsEl.nativeElement, 'focusout');\n\n // we're changing 'focusVisible' only when entering or leaving months view\n // and ignoring all focus events where both 'target' and 'related' target are day cells\n merge(focusIns$, focusOuts$)\n .pipe(\n filter(\n ({target, relatedTarget}) =>\n !(hasClassName(target, 'ngb-dp-day') && hasClassName(relatedTarget, 'ngb-dp-day'))),\n takeUntil(this._destroyed$))\n .subscribe(({type}) => this._ngZone.run(() => this._service.focusVisible = type === 'focusin'));\n });\n }\n\n ngOnDestroy() { this._destroyed$.next(); }\n\n ngOnInit() {\n if (this.model === undefined) {\n ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate',\n 'outsideDays']\n .forEach(input => this._service[input] = this[input]);\n this.navigateTo(this.startDate);\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate',\n 'outsideDays']\n .filter(input => input in changes)\n .forEach(input => this._service[input] = this[input]);\n\n if ('startDate' in changes) {\n const {currentValue, previousValue} = changes.startDate;\n if (isChangedMonth(previousValue, currentValue)) {\n this.navigateTo(this.startDate);\n }\n }\n }\n\n onDateSelect(date: NgbDate) {\n this._service.focus(date);\n this._service.select(date, {emitEvent: true});\n }\n\n onKeyDown(event: KeyboardEvent) { this._keyMapService.processKey(event); }\n\n onNavigateDateSelect(date: NgbDate) { this._service.open(date); }\n\n onNavigateEvent(event: NavigationEvent) {\n switch (event) {\n case NavigationEvent.PREV:\n this._service.open(this._calendar.getPrev(this.model.firstDate, 'm', 1));\n break;\n case NavigationEvent.NEXT:\n this._service.open(this._calendar.getNext(this.model.firstDate, 'm', 1));\n break;\n }\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean) { this._service.disabled = isDisabled; }\n\n writeValue(value) {\n this._controlValue = NgbDate.from(this._ngbDateAdapter.fromModel(value));\n this._service.select(this._controlValue);\n }\n}\n","import {Component, Input, TemplateRef, Output, EventEmitter, ViewEncapsulation} from '@angular/core';\nimport {MonthViewModel, DayViewModel} from './datepicker-view-model';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\nimport {DayTemplateContext} from './datepicker-day-template-context';\n\n@Component({\n selector: 'ngb-datepicker-month-view',\n host: {'role': 'grid'},\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-month-view.scss'],\n template: `\n
\n
\n
\n {{ i18n.getWeekdayShortName(w) }}\n
\n
\n \n
\n
{{ i18n.getWeekNumerals(week.number) }}
\n
\n \n \n \n
\n
\n
\n `\n})\nexport class NgbDatepickerMonthView {\n @Input() dayTemplate: TemplateRef;\n @Input() month: MonthViewModel;\n @Input() showWeekdays;\n @Input() showWeekNumbers;\n\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n doSelect(day: DayViewModel) {\n if (!day.context.disabled && !day.hidden) {\n this.select.emit(day.date);\n }\n }\n}\n","import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {NavigationEvent, MonthViewModel} from './datepicker-view-model';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: 'ngb-datepicker-navigation',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-navigation.scss'],\n template: `\n
\n \n
\n \n \n\n \n
0\">
\n
\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n
\n
\n
\n \n
\n `\n})\nexport class NgbDatepickerNavigation {\n navigation = NavigationEvent;\n\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() months: MonthViewModel[] = [];\n @Input() showSelect: boolean;\n @Input() prevDisabled: boolean;\n @Input() nextDisabled: boolean;\n @Input() selectBoxes: {years: number[], months: number[]};\n\n @Output() navigate = new EventEmitter();\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n}\n","import {NgZone} from '@angular/core';\nimport {fromEvent, Observable, race} from 'rxjs';\nimport {delay, filter, map, takeUntil, withLatestFrom} from 'rxjs/operators';\nimport {Key} from './key';\nimport {closest} from './util';\n\nconst isContainedIn = (element: HTMLElement, array?: HTMLElement[]) =>\n array ? array.some(item => item.contains(element)) : false;\n\nconst matchesSelectorIfAny = (element: HTMLElement, selector?: string) =>\n !selector || closest(element, selector) != null;\n\n// we'll have to use 'touch' events instead of 'mouse' events on iOS and add a more significant delay\n// to avoid re-opening when handling (click) on a toggling element\n// TODO: use proper Angular platform detection when NgbAutoClose becomes a service and we can inject PLATFORM_ID\nlet iOS = false;\nif (typeof navigator !== 'undefined') {\n iOS = !!navigator.userAgent && /iPad|iPhone|iPod/.test(navigator.userAgent);\n}\n\nexport function ngbAutoClose(\n zone: NgZone, document: any, type: boolean | 'inside' | 'outside', close: () => void, closed$: Observable,\n insideElements: HTMLElement[], ignoreElements?: HTMLElement[], insideSelector?: string) {\n // closing on ESC and outside clicks\n if (type) {\n zone.runOutsideAngular(() => {\n\n const shouldCloseOnClick = (event: MouseEvent | TouchEvent) => {\n const element = event.target as HTMLElement;\n if ((event instanceof MouseEvent && event.button === 2) || isContainedIn(element, ignoreElements)) {\n return false;\n }\n if (type === 'inside') {\n return isContainedIn(element, insideElements) && matchesSelectorIfAny(element, insideSelector);\n } else if (type === 'outside') {\n return !isContainedIn(element, insideElements);\n } else /* if (type === true) */ {\n return matchesSelectorIfAny(element, insideSelector) || !isContainedIn(element, insideElements);\n }\n };\n\n const escapes$ = fromEvent(document, 'keydown')\n .pipe(\n takeUntil(closed$),\n // tslint:disable-next-line:deprecation\n filter(e => e.which === Key.Escape));\n\n\n // we have to pre-calculate 'shouldCloseOnClick' on 'mousedown/touchstart',\n // because on 'mouseup/touchend' DOM nodes might be detached\n const mouseDowns$ = fromEvent(document, iOS ? 'touchstart' : 'mousedown')\n .pipe(map(shouldCloseOnClick), takeUntil(closed$));\n\n const closeableClicks$ = fromEvent(document, iOS ? 'touchend' : 'mouseup')\n .pipe(\n withLatestFrom(mouseDowns$), filter(([_, shouldClose]) => shouldClose),\n delay(iOS ? 16 : 0), takeUntil(closed$)) as Observable;\n\n\n race([escapes$, closeableClicks$]).subscribe(() => zone.run(close));\n });\n }\n}\n","import {fromEvent, Observable} from 'rxjs';\nimport {filter, map, takeUntil, withLatestFrom} from 'rxjs/operators';\n\nimport {Key} from '../util/key';\n\n\nconst FOCUSABLE_ELEMENTS_SELECTOR = [\n 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type=\"hidden\"])', 'select:not([disabled])',\n 'textarea:not([disabled])', '[contenteditable]', '[tabindex]:not([tabindex=\"-1\"])'\n].join(', ');\n\n/**\n * Returns first and last focusable elements inside of a given element based on specific CSS selector\n */\nexport function getFocusableBoundaryElements(element: HTMLElement): HTMLElement[] {\n const list: HTMLElement[] =\n Array.from(element.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR) as NodeListOf)\n .filter(el => el.tabIndex !== -1);\n return [list[0], list[list.length - 1]];\n}\n\n/**\n * Function that enforces browser focus to be trapped inside a DOM element.\n *\n * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element\n *\n * @param element The element around which focus will be trapped inside\n * @param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners\n * and free internal resources\n * @param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to\n * false)\n */\nexport const ngbFocusTrap = (element: HTMLElement, stopFocusTrap$: Observable, refocusOnClick = false) => {\n // last focused element\n const lastFocusedElement$ =\n fromEvent(element, 'focusin').pipe(takeUntil(stopFocusTrap$), map(e => e.target));\n\n // 'tab' / 'shift+tab' stream\n fromEvent(element, 'keydown')\n .pipe(\n takeUntil(stopFocusTrap$),\n // tslint:disable:deprecation\n filter(e => e.which === Key.Tab),\n // tslint:enable:deprecation\n withLatestFrom(lastFocusedElement$))\n .subscribe(([tabEvent, focusedElement]) => {\n const[first, last] = getFocusableBoundaryElements(element);\n\n if ((focusedElement === first || focusedElement === element) && tabEvent.shiftKey) {\n last.focus();\n tabEvent.preventDefault();\n }\n\n if (focusedElement === last && !tabEvent.shiftKey) {\n first.focus();\n tabEvent.preventDefault();\n }\n });\n\n // inside click\n if (refocusOnClick) {\n fromEvent(element, 'click')\n .pipe(takeUntil(stopFocusTrap$), withLatestFrom(lastFocusedElement$), map(arr => arr[1] as HTMLElement))\n .subscribe(lastFocusedElement => lastFocusedElement.focus());\n }\n};\n","// previous version:\n// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js\nexport class Positioning {\n private getAllStyles(element: HTMLElement) { return window.getComputedStyle(element); }\n\n private getStyle(element: HTMLElement, prop: string): string { return this.getAllStyles(element)[prop]; }\n\n private isStaticPositioned(element: HTMLElement): boolean {\n return (this.getStyle(element, 'position') || 'static') === 'static';\n }\n\n private offsetParent(element: HTMLElement): HTMLElement {\n let offsetParentEl = element.offsetParent || document.documentElement;\n\n while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) {\n offsetParentEl = offsetParentEl.offsetParent;\n }\n\n return offsetParentEl || document.documentElement;\n }\n\n position(element: HTMLElement, round = true): ClientRect {\n let elPosition: ClientRect;\n let parentOffset: ClientRect = {width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0};\n\n if (this.getStyle(element, 'position') === 'fixed') {\n elPosition = element.getBoundingClientRect();\n elPosition = {\n top: elPosition.top,\n bottom: elPosition.bottom,\n left: elPosition.left,\n right: elPosition.right,\n height: elPosition.height,\n width: elPosition.width\n };\n } else {\n const offsetParentEl = this.offsetParent(element);\n\n elPosition = this.offset(element, false);\n\n if (offsetParentEl !== document.documentElement) {\n parentOffset = this.offset(offsetParentEl, false);\n }\n\n parentOffset.top += offsetParentEl.clientTop;\n parentOffset.left += offsetParentEl.clientLeft;\n }\n\n elPosition.top -= parentOffset.top;\n elPosition.bottom -= parentOffset.top;\n elPosition.left -= parentOffset.left;\n elPosition.right -= parentOffset.left;\n\n if (round) {\n elPosition.top = Math.round(elPosition.top);\n elPosition.bottom = Math.round(elPosition.bottom);\n elPosition.left = Math.round(elPosition.left);\n elPosition.right = Math.round(elPosition.right);\n }\n\n return elPosition;\n }\n\n offset(element: HTMLElement, round = true): ClientRect {\n const elBcr = element.getBoundingClientRect();\n const viewportOffset = {\n top: window.pageYOffset - document.documentElement.clientTop,\n left: window.pageXOffset - document.documentElement.clientLeft\n };\n\n let elOffset = {\n height: elBcr.height || element.offsetHeight,\n width: elBcr.width || element.offsetWidth,\n top: elBcr.top + viewportOffset.top,\n bottom: elBcr.bottom + viewportOffset.top,\n left: elBcr.left + viewportOffset.left,\n right: elBcr.right + viewportOffset.left\n };\n\n if (round) {\n elOffset.height = Math.round(elOffset.height);\n elOffset.width = Math.round(elOffset.width);\n elOffset.top = Math.round(elOffset.top);\n elOffset.bottom = Math.round(elOffset.bottom);\n elOffset.left = Math.round(elOffset.left);\n elOffset.right = Math.round(elOffset.right);\n }\n\n return elOffset;\n }\n\n /*\n Return false if the element to position is outside the viewport\n */\n positionElements(hostElement: HTMLElement, targetElement: HTMLElement, placement: string, appendToBody?: boolean):\n boolean {\n const[placementPrimary = 'top', placementSecondary = 'center'] = placement.split('-');\n\n const hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false);\n const targetElStyles = this.getAllStyles(targetElement);\n\n const marginTop = parseFloat(targetElStyles.marginTop);\n const marginBottom = parseFloat(targetElStyles.marginBottom);\n const marginLeft = parseFloat(targetElStyles.marginLeft);\n const marginRight = parseFloat(targetElStyles.marginRight);\n\n let topPosition = 0;\n let leftPosition = 0;\n\n switch (placementPrimary) {\n case 'top':\n topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom));\n break;\n case 'bottom':\n topPosition = (hostElPosition.top + hostElPosition.height);\n break;\n case 'left':\n leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight));\n break;\n case 'right':\n leftPosition = (hostElPosition.left + hostElPosition.width);\n break;\n }\n\n switch (placementSecondary) {\n case 'top':\n topPosition = hostElPosition.top;\n break;\n case 'bottom':\n topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight;\n break;\n case 'left':\n leftPosition = hostElPosition.left;\n break;\n case 'right':\n leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth;\n break;\n case 'center':\n if (placementPrimary === 'top' || placementPrimary === 'bottom') {\n leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2);\n } else {\n topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2);\n }\n break;\n }\n\n /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix\n // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`;\n targetElement.style.transform = `translate(${Math.round(leftPosition)}px, ${Math.round(topPosition)}px)`;\n\n // Check if the targetElement is inside the viewport\n const targetElBCR = targetElement.getBoundingClientRect();\n const html = document.documentElement;\n const windowHeight = window.innerHeight || html.clientHeight;\n const windowWidth = window.innerWidth || html.clientWidth;\n\n return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth &&\n targetElBCR.bottom <= windowHeight;\n }\n}\n\nconst placementSeparator = /\\s+/;\nconst positionService = new Positioning();\n\n/*\n * Accept the placement array and applies the appropriate placement dependent on the viewport.\n * Returns the applied placement.\n * In case of auto placement, placements are selected in order\n * 'top', 'bottom', 'left', 'right',\n * 'top-left', 'top-right',\n * 'bottom-left', 'bottom-right',\n * 'left-top', 'left-bottom',\n * 'right-top', 'right-bottom'.\n * */\nexport function positionElements(\n hostElement: HTMLElement, targetElement: HTMLElement, placement: string | Placement | PlacementArray,\n appendToBody?: boolean, baseClass?: string): Placement {\n let placementVals: Array =\n Array.isArray(placement) ? placement : placement.split(placementSeparator) as Array;\n\n const allowedPlacements = [\n 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom',\n 'right-top', 'right-bottom'\n ];\n\n const classList = targetElement.classList;\n const addClassesToTarget = (targetPlacement: Placement): Array => {\n const[primary, secondary] = targetPlacement.split('-');\n const classes = [];\n if (baseClass) {\n classes.push(`${baseClass}-${primary}`);\n if (secondary) {\n classes.push(`${baseClass}-${primary}-${secondary}`);\n }\n\n classes.forEach((classname) => { classList.add(classname); });\n }\n return classes;\n };\n\n // Remove old placement classes to avoid issues\n if (baseClass) {\n allowedPlacements.forEach((placementToRemove) => { classList.remove(`${baseClass}-${placementToRemove}`); });\n }\n\n // replace auto placement with other placements\n let hasAuto = placementVals.findIndex(val => val === 'auto');\n if (hasAuto >= 0) {\n allowedPlacements.forEach(function(obj) {\n if (placementVals.find(val => val.search('^' + obj) !== -1) == null) {\n placementVals.splice(hasAuto++, 1, obj as Placement);\n }\n });\n }\n\n // coordinates where to position\n\n // Required for transform:\n const style = targetElement.style;\n style.position = 'absolute';\n style.top = '0';\n style.left = '0';\n style['will-change'] = 'transform';\n\n let testPlacement: Placement;\n let isInViewport = false;\n for (testPlacement of placementVals) {\n let addedClasses = addClassesToTarget(testPlacement);\n\n if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) {\n isInViewport = true;\n break;\n }\n\n // Remove the baseClasses for further calculation\n if (baseClass) {\n addedClasses.forEach((classname) => { classList.remove(classname); });\n }\n }\n\n if (!isInViewport) {\n // If nothing match, the first placement is the default one\n testPlacement = placementVals[0];\n addClassesToTarget(testPlacement);\n positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody);\n }\n\n return testPlacement;\n}\n\nexport type Placement = 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' |\n 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';\n\nexport type PlacementArray = Placement | Array| string;\n","import {padNumber, toInteger, isNumber} from '../util/util';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {Injectable} from '@angular/core';\n\nexport function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY() {\n return new NgbDateISOParserFormatter();\n}\n\n/**\n * An abstract service for parsing and formatting dates for the\n * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive.\n * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the\n * input element.\n *\n * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object.\n * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string`\n * in the input.\n *\n * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI\n * to use an alternative string format or a custom parsing logic.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY})\nexport abstract class NgbDateParserFormatter {\n /**\n * Parses the given `string` to an `NgbDateStruct`.\n *\n * Implementations should try their best to provide a result, even\n * partial. They must return `null` if the value can't be parsed.\n */\n abstract parse(value: string): NgbDateStruct;\n\n /**\n * Formats the given `NgbDateStruct` to a `string`.\n *\n * Implementations should return an empty string if the given date is `null`,\n * and try their best to provide a partial result if the given date is incomplete or invalid.\n */\n abstract format(date: NgbDateStruct): string;\n}\n\n@Injectable()\nexport class NgbDateISOParserFormatter extends NgbDateParserFormatter {\n parse(value: string): NgbDateStruct {\n if (value) {\n const dateParts = value.trim().split('-');\n if (dateParts.length === 1 && isNumber(dateParts[0])) {\n return {year: toInteger(dateParts[0]), month: null, day: null};\n } else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) {\n return {year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null};\n } else if (dateParts.length === 3 && isNumber(dateParts[0]) && isNumber(dateParts[1]) && isNumber(dateParts[2])) {\n return {year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: toInteger(dateParts[2])};\n }\n }\n return null;\n }\n\n format(date: NgbDateStruct): string {\n return date ?\n `${date.year}-${isNumber(date.month) ? padNumber(date.month) : ''}-${isNumber(date.day) ? padNumber(date.day) : ''}` :\n '';\n }\n}\n","import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n Output,\n Renderer2,\n SimpleChanges,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, Validator} from '@angular/forms';\n\nimport {ngbAutoClose} from '../util/autoclose';\nimport {ngbFocusTrap} from '../util/focus-trap';\nimport {PlacementArray, positionElements} from '../util/positioning';\n\nimport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nimport {NgbDatepicker, NgbDatepickerNavigateEvent} from './datepicker';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbCalendar} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDateParserFormatter} from './ngb-date-parser-formatter';\nimport {NgbDateStruct} from './ngb-date-struct';\n\nconst NGB_DATEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbInputDatepicker),\n multi: true\n};\n\nconst NGB_DATEPICKER_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => NgbInputDatepicker),\n multi: true\n};\n\n/**\n * A directive that allows to stick a datepicker popup to an input field.\n *\n * Manages interaction with the input field itself, does value formatting and provides forms integration.\n */\n@Directive({\n selector: 'input[ngbDatepicker]',\n exportAs: 'ngbDatepicker',\n host: {\n '(input)': 'manualDateChange($event.target.value)',\n '(change)': 'manualDateChange($event.target.value, true)',\n '(blur)': 'onBlur()',\n '[disabled]': 'disabled'\n },\n providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NGB_DATEPICKER_VALIDATOR, NgbDatepickerService]\n})\nexport class NgbInputDatepicker implements OnChanges,\n OnDestroy, ControlValueAccessor, Validator {\n private _cRef: ComponentRef = null;\n private _disabled = false;\n private _model: NgbDate;\n private _inputValue: string;\n private _zoneSubscription: any;\n\n /**\n * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not.\n *\n * * `true` - the popup will close on both date selection and outside click.\n * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods.\n * * `\"inside\"` - the popup will close on date selection, but not outside clicks.\n * * `\"outside\"` - the popup will close only on the outside click and not on date selection/inside clicks.\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside' = true;\n\n /**\n * The reference to a custom template for the day.\n *\n * Allows to completely override the way a day 'cell' in the calendar is displayed.\n *\n * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside.\n */\n @Input() dayTemplate: TemplateRef;\n\n /**\n * The callback to pass any arbitrary data to the template cell via the\n * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter.\n *\n * `current` is the month that is currently displayed by the datepicker.\n *\n * @since 3.3.0\n */\n @Input() dayTemplateData: (date: NgbDate, current: {year: number, month: number}) => any;\n\n /**\n * The number of months to display.\n */\n @Input() displayMonths: number;\n\n /**\n * The first day of the week.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n @Input() firstDayOfWeek: number;\n\n /**\n * The reference to the custom template for the datepicker footer.\n *\n * @since 3.3.0\n */\n @Input() footerTemplate: TemplateRef;\n\n /**\n * The callback to mark some dates as disabled.\n *\n * It is called for each new date when navigating to a different month.\n *\n * `current` is the month that is currently displayed by the datepicker.\n */\n @Input() markDisabled: (date: NgbDate, current: {year: number, month: number}) => boolean;\n\n /**\n * The earliest date that can be displayed or selected. Also used for form validation.\n *\n * If not provided, 'year' select box will display 10 years before the current month.\n */\n @Input() minDate: NgbDateStruct;\n\n /**\n * The latest date that can be displayed or selected. Also used for form validation.\n *\n * If not provided, 'year' select box will display 10 years after the current month.\n */\n @Input() maxDate: NgbDateStruct;\n\n /**\n * Navigation type.\n *\n * * `\"select\"` - select boxes for month and navigation arrows\n * * `\"arrows\"` - only navigation arrows\n * * `\"none\"` - no navigation visible at all\n */\n @Input() navigation: 'select' | 'arrows' | 'none';\n\n /**\n * The way of displaying days that don't belong to the current month.\n *\n * * `\"visible\"` - days are visible\n * * `\"hidden\"` - days are hidden, white space preserved\n * * `\"collapsed\"` - days are collapsed, so the datepicker height might change between months\n *\n * For the 2+ months view, days in between months are never shown.\n */\n @Input() outsideDays: 'visible' | 'collapsed' | 'hidden';\n\n /**\n * The preferred placement of the datepicker popup.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n\n /**\n * If `true`, weekdays will be displayed.\n */\n @Input() showWeekdays: boolean;\n\n /**\n * If `true`, week numbers will be displayed.\n */\n @Input() showWeekNumbers: boolean;\n\n /**\n * The date to open calendar with.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date is provided, calendar will open with current month.\n *\n * You could use `navigateTo(date)` method as an alternative.\n */\n @Input() startDate: {year: number, month: number, day?: number};\n\n /**\n * A selector specifying the element the datepicker popup should be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * A css selector or html element specifying the element the datepicker popup should be positioned against.\n *\n * By default the input is used as a target.\n *\n * @since 4.2.0\n */\n @Input() positionTarget: string | HTMLElement;\n\n /**\n * An event emitted when user selects a date using keyboard or mouse.\n *\n * The payload of the event is currently selected `NgbDate`.\n *\n * @since 1.1.1\n */\n @Output() dateSelect = new EventEmitter();\n\n /**\n * Event emitted right after the navigation happens and displayed month changes.\n *\n * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info.\n */\n @Output() navigate = new EventEmitter();\n\n /**\n * An event fired after closing datepicker window.\n *\n * @since 4.2.0\n */\n @Output() closed = new EventEmitter();\n\n @Input()\n get disabled() {\n return this._disabled;\n }\n set disabled(value: any) {\n this._disabled = value === '' || (value && value !== 'false');\n\n if (this.isOpen()) {\n this._cRef.instance.setDisabledState(this._disabled);\n }\n }\n\n private _onChange = (_: any) => {};\n private _onTouched = () => {};\n private _validatorChange = () => {};\n\n\n constructor(\n private _parserFormatter: NgbDateParserFormatter, private _elRef: ElementRef,\n private _vcRef: ViewContainerRef, private _renderer: Renderer2, private _cfr: ComponentFactoryResolver,\n private _ngZone: NgZone, private _service: NgbDatepickerService, private _calendar: NgbCalendar,\n private _dateAdapter: NgbDateAdapter, @Inject(DOCUMENT) private _document: any,\n private _changeDetector: ChangeDetectorRef) {\n this._zoneSubscription = _ngZone.onStable.subscribe(() => this._updatePopupPosition());\n }\n\n registerOnChange(fn: (value: any) => any): void { this._onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this._onTouched = fn; }\n\n registerOnValidatorChange(fn: () => void): void { this._validatorChange = fn; }\n\n setDisabledState(isDisabled: boolean): void { this.disabled = isDisabled; }\n\n validate(c: AbstractControl): {[key: string]: any} {\n const value = c.value;\n\n if (value === null || value === undefined) {\n return null;\n }\n\n const ngbDate = this._fromDateStruct(this._dateAdapter.fromModel(value));\n\n if (!this._calendar.isValid(ngbDate)) {\n return {'ngbDate': {invalid: c.value}};\n }\n\n if (this.minDate && ngbDate.before(NgbDate.from(this.minDate))) {\n return {'ngbDate': {requiredBefore: this.minDate}};\n }\n\n if (this.maxDate && ngbDate.after(NgbDate.from(this.maxDate))) {\n return {'ngbDate': {requiredAfter: this.maxDate}};\n }\n }\n\n writeValue(value) {\n this._model = this._fromDateStruct(this._dateAdapter.fromModel(value));\n this._writeModelValue(this._model);\n }\n\n manualDateChange(value: string, updateView = false) {\n const inputValueChanged = value !== this._inputValue;\n if (inputValueChanged) {\n this._inputValue = value;\n this._model = this._fromDateStruct(this._parserFormatter.parse(value));\n }\n if (inputValueChanged || !updateView) {\n this._onChange(this._model ? this._dateAdapter.toModel(this._model) : (value === '' ? null : value));\n }\n if (updateView && this._model) {\n this._writeModelValue(this._model);\n }\n }\n\n isOpen() { return !!this._cRef; }\n\n /**\n * Opens the datepicker popup.\n *\n * If the related form control contains a valid date, the corresponding month will be opened.\n */\n open() {\n if (!this.isOpen()) {\n const cf = this._cfr.resolveComponentFactory(NgbDatepicker);\n this._cRef = this._vcRef.createComponent(cf);\n\n this._applyPopupStyling(this._cRef.location.nativeElement);\n this._applyDatepickerInputs(this._cRef.instance);\n this._subscribeForDatepickerOutputs(this._cRef.instance);\n this._cRef.instance.ngOnInit();\n this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model));\n\n // date selection event handling\n this._cRef.instance.registerOnChange((selectedDate) => {\n this.writeValue(selectedDate);\n this._onChange(selectedDate);\n this._onTouched();\n });\n\n this._cRef.changeDetectorRef.detectChanges();\n\n this._cRef.instance.setDisabledState(this.disabled);\n\n if (this.container === 'body') {\n window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement);\n }\n\n // focus handling\n ngbFocusTrap(this._cRef.location.nativeElement, this.closed, true);\n this._cRef.instance.focus();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.closed, [],\n [this._elRef.nativeElement, this._cRef.location.nativeElement]);\n }\n }\n\n /**\n * Closes the datepicker popup.\n */\n close() {\n if (this.isOpen()) {\n this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView));\n this._cRef = null;\n this.closed.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the datepicker popup.\n */\n toggle() {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Navigates to the provided date.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date provided calendar will open current month.\n *\n * Use the `[startDate]` input as an alternative.\n */\n navigateTo(date?: {year: number, month: number, day?: number}) {\n if (this.isOpen()) {\n this._cRef.instance.navigateTo(date);\n }\n }\n\n onBlur() { this._onTouched(); }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['minDate'] || changes['maxDate']) {\n this._validatorChange();\n }\n }\n\n ngOnDestroy() {\n this.close();\n this._zoneSubscription.unsubscribe();\n }\n\n private _applyDatepickerInputs(datepickerInstance: NgbDatepicker): void {\n ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate',\n 'maxDate', 'navigation', 'outsideDays', 'showNavigation', 'showWeekdays', 'showWeekNumbers']\n .forEach((optionName: string) => {\n if (this[optionName] !== undefined) {\n datepickerInstance[optionName] = this[optionName];\n }\n });\n datepickerInstance.startDate = this.startDate || this._model;\n }\n\n private _applyPopupStyling(nativeElement: any) {\n this._renderer.addClass(nativeElement, 'dropdown-menu');\n this._renderer.addClass(nativeElement, 'show');\n\n if (this.container === 'body') {\n this._renderer.addClass(nativeElement, 'ngb-dp-body');\n }\n }\n\n private _subscribeForDatepickerOutputs(datepickerInstance: NgbDatepicker) {\n datepickerInstance.navigate.subscribe(navigateEvent => this.navigate.emit(navigateEvent));\n datepickerInstance.select.subscribe(date => {\n this.dateSelect.emit(date);\n if (this.autoClose === true || this.autoClose === 'inside') {\n this.close();\n }\n });\n }\n\n private _writeModelValue(model: NgbDate) {\n const value = this._parserFormatter.format(model);\n this._inputValue = value;\n this._renderer.setProperty(this._elRef.nativeElement, 'value', value);\n if (this.isOpen()) {\n this._cRef.instance.writeValue(this._dateAdapter.toModel(model));\n this._onTouched();\n }\n }\n\n private _fromDateStruct(date: NgbDateStruct): NgbDate {\n const ngbDate = date ? new NgbDate(date.year, date.month, date.day) : null;\n return this._calendar.isValid(ngbDate) ? ngbDate : null;\n }\n\n private _updatePopupPosition() {\n if (!this._cRef) {\n return;\n }\n\n let hostElement: HTMLElement;\n if (typeof this.positionTarget === 'string') {\n hostElement = window.document.querySelector(this.positionTarget);\n } else if (this.positionTarget instanceof HTMLElement) {\n hostElement = this.positionTarget;\n } else {\n hostElement = this._elRef.nativeElement;\n }\n\n if (this.positionTarget && !hostElement) {\n throw new Error('ngbDatepicker could not find element declared in [positionTarget] to position against.');\n }\n\n positionElements(hostElement, this._cRef.location.nativeElement, this.placement, this.container === 'body');\n }\n}\n","import {ChangeDetectionStrategy, Component, Input, ViewEncapsulation} from '@angular/core';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: '[ngbDatepickerDayView]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-day-view.scss'],\n host: {\n 'class': 'btn-light',\n '[class.bg-primary]': 'selected',\n '[class.text-white]': 'selected',\n '[class.text-muted]': 'isMuted()',\n '[class.outside]': 'isMuted()',\n '[class.active]': 'focused'\n },\n template: `{{ i18n.getDayNumerals(date) }}`\n})\nexport class NgbDatepickerDayView {\n @Input() currentMonth: number;\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() focused: boolean;\n @Input() selected: boolean;\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n isMuted() { return !this.selected && (this.date.month !== this.currentMonth || this.disabled); }\n}\n","import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {NgbDate} from './ngb-date';\nimport {toInteger} from '../util/util';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: 'ngb-datepicker-navigation-select',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-navigation-select.scss'],\n template: `\n \n \n \n \n \n `\n})\nexport class NgbDatepickerNavigationSelect {\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() months: number[];\n @Input() years: number[];\n\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n changeMonth(month: string) { this.select.emit(new NgbDate(this.date.year, toInteger(month), 1)); }\n\n changeYear(year: string) { this.select.emit(new NgbDate(toInteger(year), this.date.month, 1)); }\n}\n","import {NgbDate} from '../ngb-date';\nimport {NgbPeriod, NgbCalendar} from '../ngb-calendar';\nimport {Injectable} from '@angular/core';\nimport {isNumber} from '../../util/util';\n\n@Injectable()\nexport abstract class NgbCalendarHijri extends NgbCalendar {\n /**\n * Returns the number of days in a specific Hijri month.\n * `month` is 1 for Muharram, 2 for Safar, etc.\n * `year` is any Hijri year.\n */\n abstract getDaysPerMonth(month: number, year: number): number;\n\n /**\n * Returns the equivalent Hijri date value for a give input Gregorian date.\n * `gDate` is s JS Date to be converted to Hijri.\n */\n abstract fromGregorian(gDate: Date): NgbDate;\n\n /**\n * Converts the current Hijri date to Gregorian.\n */\n abstract toGregorian(hDate: NgbDate): Date;\n\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date = this._setYear(date, date.year + number);\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = this._setMonth(date, date.month + number);\n date.day = 1;\n return date;\n case 'd':\n return this._setDay(date, date.day + number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = this.toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n const date = week[thursdayIndex];\n\n const jsDate = this.toGregorian(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n const MuhDate = this.toGregorian(new NgbDate(date.year, 1, 1)); // Compare with Muharram 1\n return Math.floor(Math.round((time - MuhDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return this.fromGregorian(new Date()); }\n\n\n isValid(date: NgbDate): boolean {\n return date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day) &&\n !isNaN(this.toGregorian(date).getTime());\n }\n\n private _setDay(date: NgbDate, day: number): NgbDate {\n day = +day;\n let mDays = this.getDaysPerMonth(date.month, date.year);\n if (day <= 0) {\n while (day <= 0) {\n date = this._setMonth(date, date.month - 1);\n mDays = this.getDaysPerMonth(date.month, date.year);\n day += mDays;\n }\n } else if (day > mDays) {\n while (day > mDays) {\n day -= mDays;\n date = this._setMonth(date, date.month + 1);\n mDays = this.getDaysPerMonth(date.month, date.year);\n }\n }\n date.day = day;\n return date;\n }\n\n private _setMonth(date: NgbDate, month: number): NgbDate {\n month = +month;\n date.year = date.year + Math.floor((month - 1) / 12);\n date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1;\n return date;\n }\n\n private _setYear(date: NgbDate, year: number): NgbDate {\n date.year = +year;\n return date;\n }\n}\n","import {NgbCalendarHijri} from './ngb-calendar-hijri';\nimport {NgbDate} from '../ngb-date';\nimport {Injectable} from '@angular/core';\n\n/**\n * Checks if islamic year is a leap year\n */\nfunction isIslamicLeapYear(hYear: number): boolean {\n return (14 + 11 * hYear) % 30 < 11;\n}\n\n/**\n * Checks if gregorian years is a leap year\n */\nfunction isGregorianLeapYear(gDate: Date): boolean {\n const year = gDate.getFullYear();\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n}\n\n/**\n * Returns the start of Hijri Month.\n * `hMonth` is 0 for Muharram, 1 for Safar, etc.\n * `hYear` is any Hijri hYear.\n */\nfunction getIslamicMonthStart(hYear: number, hMonth: number): number {\n return Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30.0);\n}\n\n/**\n * Returns the start of Hijri year.\n * `year` is any Hijri year.\n */\nfunction getIslamicYearStart(year: number): number {\n return (year - 1) * 354 + Math.floor((3 + 11 * year) / 30.0);\n}\n\nfunction mod(a: number, b: number): number {\n return a - b * Math.floor(a / b);\n}\n\n/**\n * The civil calendar is one type of Hijri calendars used in islamic countries.\n * Uses a fixed cycle of alternating 29- and 30-day months,\n * with a leap day added to the last month of 11 out of every 30 years.\n * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types\n * All the calculations here are based on the equations from \"Calendrical Calculations\" By Edward M. Reingold, Nachum\n * Dershowitz.\n */\n\nconst GREGORIAN_EPOCH = 1721425.5;\nconst ISLAMIC_EPOCH = 1948439.5;\n\n@Injectable()\nexport class NgbCalendarIslamicCivil extends NgbCalendarHijri {\n /**\n * Returns the equivalent islamic(civil) date value for a give input Gregorian date.\n * `gDate` is a JS Date to be converted to Hijri.\n */\n fromGregorian(gDate: Date): NgbDate {\n const gYear = gDate.getFullYear(), gMonth = gDate.getMonth(), gDay = gDate.getDate();\n\n let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) +\n -Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) +\n Math.floor(\n (367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gDate) ? -1 : -2) + gDay);\n julianDay = Math.floor(julianDay) + 0.5;\n\n const days = julianDay - ISLAMIC_EPOCH;\n const hYear = Math.floor((30 * days + 10646) / 10631.0);\n let hMonth = Math.ceil((days - 29 - getIslamicYearStart(hYear)) / 29.5);\n hMonth = Math.min(hMonth, 11);\n const hDay = Math.ceil(days - getIslamicMonthStart(hYear, hMonth)) + 1;\n return new NgbDate(hYear, hMonth + 1, hDay);\n }\n\n /**\n * Returns the equivalent JS date value for a give input islamic(civil) date.\n * `hDate` is an islamic(civil) date to be converted to Gregorian.\n */\n toGregorian(hDate: NgbDate): Date {\n const hYear = hDate.year;\n const hMonth = hDate.month - 1;\n const hDay = hDate.day;\n const julianDay =\n hDay + Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30) + ISLAMIC_EPOCH - 1;\n\n const wjd = Math.floor(julianDay - 0.5) + 0.5, depoch = wjd - GREGORIAN_EPOCH,\n quadricent = Math.floor(depoch / 146097), dqc = mod(depoch, 146097), cent = Math.floor(dqc / 36524),\n dcent = mod(dqc, 36524), quad = Math.floor(dcent / 1461), dquad = mod(dcent, 1461),\n yindex = Math.floor(dquad / 365);\n let year = quadricent * 400 + cent * 100 + quad * 4 + yindex;\n if (!(cent === 4 || yindex === 4)) {\n year++;\n }\n\n const gYearStart = GREGORIAN_EPOCH + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400);\n\n const yearday = wjd - gYearStart;\n\n const tjd = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400) + Math.floor(739 / 12 + (isGregorianLeapYear(new Date(year, 3, 1)) ? -1 : -2) + 1);\n\n const leapadj = wjd < tjd ? 0 : isGregorianLeapYear(new Date(year, 3, 1)) ? 1 : 2;\n\n const month = Math.floor(((yearday + leapadj) * 12 + 373) / 367);\n const tjd2 = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400) +\n Math.floor(\n (367 * month - 362) / 12 + (month <= 2 ? 0 : isGregorianLeapYear(new Date(year, month - 1, 1)) ? -1 : -2) +\n 1);\n\n const day = wjd - tjd2 + 1;\n\n return new Date(year, month - 1, day);\n }\n\n /**\n * Returns the number of days in a specific Hijri month.\n * `month` is 1 for Muharram, 2 for Safar, etc.\n * `year` is any Hijri year.\n */\n getDaysPerMonth(month: number, year: number): number {\n year = year + Math.floor(month / 13);\n month = ((month - 1) % 12) + 1;\n let length = 29 + month % 2;\n if (month === 12 && isIslamicLeapYear(year)) {\n length++;\n }\n return length;\n }\n}\n","import {NgbCalendarIslamicCivil} from './ngb-calendar-islamic-civil';\nimport {NgbDate} from '../ngb-date';\nimport {Injectable} from '@angular/core';\n\n/**\n * Umalqura calendar is one type of Hijri calendars used in islamic countries.\n * This Calendar is used by Saudi Arabia for administrative purpose.\n * Unlike tabular calendars, the algorithm involves astronomical calculation, but it's still deterministic.\n * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types\n */\n\nconst GREGORIAN_FIRST_DATE = new Date(1882, 10, 12);\nconst GREGORIAN_LAST_DATE = new Date(2174, 10, 25);\nconst HIJRI_BEGIN = 1300;\nconst HIJRI_END = 1600;\nconst ONE_DAY = 1000 * 60 * 60 * 24;\n\nconst MONTH_LENGTH = [\n // 1300-1304\n '101010101010', '110101010100', '111011001001', '011011010100', '011011101010',\n // 1305-1309\n '001101101100', '101010101101', '010101010101', '011010101001', '011110010010',\n // 1310-1314\n '101110101001', '010111010100', '101011011010', '010101011100', '110100101101',\n // 1315-1319\n '011010010101', '011101001010', '101101010100', '101101101010', '010110101101',\n // 1320-1324\n '010010101110', '101001001111', '010100010111', '011010001011', '011010100101',\n // 1325-1329\n '101011010101', '001011010110', '100101011011', '010010011101', '101001001101',\n // 1330-1334\n '110100100110', '110110010101', '010110101100', '100110110110', '001010111010',\n // 1335-1339\n '101001011011', '010100101011', '101010010101', '011011001010', '101011101001',\n // 1340-1344\n '001011110100', '100101110110', '001010110110', '100101010110', '101011001010',\n // 1345-1349\n '101110100100', '101111010010', '010111011001', '001011011100', '100101101101',\n // 1350-1354\n '010101001101', '101010100101', '101101010010', '101110100101', '010110110100',\n // 1355-1359\n '100110110110', '010101010111', '001010010111', '010101001011', '011010100011',\n // 1360-1364\n '011101010010', '101101100101', '010101101010', '101010101011', '010100101011',\n // 1365-1369\n '110010010101', '110101001010', '110110100101', '010111001010', '101011010110',\n // 1370-1374\n '100101010111', '010010101011', '100101001011', '101010100101', '101101010010',\n // 1375-1379\n '101101101010', '010101110101', '001001110110', '100010110111', '010001011011',\n // 1380-1384\n '010101010101', '010110101001', '010110110100', '100111011010', '010011011101',\n // 1385-1389\n '001001101110', '100100110110', '101010101010', '110101010100', '110110110010',\n // 1390-1394\n '010111010101', '001011011010', '100101011011', '010010101011', '101001010101',\n // 1395-1399\n '101101001001', '101101100100', '101101110001', '010110110100', '101010110101',\n // 1400-1404\n '101001010101', '110100100101', '111010010010', '111011001001', '011011010100',\n // 1405-1409\n '101011101001', '100101101011', '010010101011', '101010010011', '110101001001',\n // 1410-1414\n '110110100100', '110110110010', '101010111001', '010010111010', '101001011011',\n // 1415-1419\n '010100101011', '101010010101', '101100101010', '101101010101', '010101011100',\n // 1420-1424\n '010010111101', '001000111101', '100100011101', '101010010101', '101101001010',\n // 1425-1429\n '101101011010', '010101101101', '001010110110', '100100111011', '010010011011',\n // 1430-1434\n '011001010101', '011010101001', '011101010100', '101101101010', '010101101100',\n // 1435-1439\n '101010101101', '010101010101', '101100101001', '101110010010', '101110101001',\n // 1440-1444\n '010111010100', '101011011010', '010101011010', '101010101011', '010110010101',\n // 1445-1449\n '011101001001', '011101100100', '101110101010', '010110110101', '001010110110',\n // 1450-1454\n '101001010110', '111001001101', '101100100101', '101101010010', '101101101010',\n // 1455-1459\n '010110101101', '001010101110', '100100101111', '010010010111', '011001001011',\n // 1460-1464\n '011010100101', '011010101100', '101011010110', '010101011101', '010010011101',\n // 1465-1469\n '101001001101', '110100010110', '110110010101', '010110101010', '010110110101',\n // 1470-1474\n '001011011010', '100101011011', '010010101101', '010110010101', '011011001010',\n // 1475-1479\n '011011100100', '101011101010', '010011110101', '001010110110', '100101010110',\n // 1480-1484\n '101010101010', '101101010100', '101111010010', '010111011001', '001011101010',\n // 1485-1489\n '100101101101', '010010101101', '101010010101', '101101001010', '101110100101',\n // 1490-1494\n '010110110010', '100110110101', '010011010110', '101010010111', '010101000111',\n // 1495-1499\n '011010010011', '011101001001', '101101010101', '010101101010', '101001101011',\n // 1500-1504\n '010100101011', '101010001011', '110101000110', '110110100011', '010111001010',\n // 1505-1509\n '101011010110', '010011011011', '001001101011', '100101001011', '101010100101',\n // 1510-1514\n '101101010010', '101101101001', '010101110101', '000101110110', '100010110111',\n // 1515-1519\n '001001011011', '010100101011', '010101100101', '010110110100', '100111011010',\n // 1520-1524\n '010011101101', '000101101101', '100010110110', '101010100110', '110101010010',\n // 1525-1529\n '110110101001', '010111010100', '101011011010', '100101011011', '010010101011',\n // 1530-1534\n '011001010011', '011100101001', '011101100010', '101110101001', '010110110010',\n // 1535-1539\n '101010110101', '010101010101', '101100100101', '110110010010', '111011001001',\n // 1540-1544\n '011011010010', '101011101001', '010101101011', '010010101011', '101001010101',\n // 1545-1549\n '110100101001', '110101010100', '110110101010', '100110110101', '010010111010',\n // 1550-1554\n '101000111011', '010010011011', '101001001101', '101010101010', '101011010101',\n // 1555-1559\n '001011011010', '100101011101', '010001011110', '101000101110', '110010011010',\n // 1560-1564\n '110101010101', '011010110010', '011010111001', '010010111010', '101001011101',\n // 1565-1569\n '010100101101', '101010010101', '101101010010', '101110101000', '101110110100',\n // 1570-1574\n '010110111001', '001011011010', '100101011010', '101101001010', '110110100100',\n // 1575-1579\n '111011010001', '011011101000', '101101101010', '010101101101', '010100110101',\n // 1580-1584\n '011010010101', '110101001010', '110110101000', '110111010100', '011011011010',\n // 1585-1589\n '010101011011', '001010011101', '011000101011', '101100010101', '101101001010',\n // 1590-1594\n '101110010101', '010110101010', '101010101110', '100100101110', '110010001111',\n // 1595-1599\n '010100100111', '011010010101', '011010101010', '101011010110', '010101011101',\n // 1600\n '001010011101'\n];\n\nfunction getDaysDiff(date1: Date, date2: Date): number {\n // Ignores the time part in date1 and date2:\n const time1 = Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate());\n const time2 = Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate());\n const diff = Math.abs(time1 - time2);\n return Math.round(diff / ONE_DAY);\n}\n\n@Injectable()\nexport class NgbCalendarIslamicUmalqura extends NgbCalendarIslamicCivil {\n /**\n * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date.\n * `gdate` is s JS Date to be converted to Hijri.\n */\n fromGregorian(gDate: Date): NgbDate {\n let hDay = 1, hMonth = 0, hYear = 1300;\n let daysDiff = getDaysDiff(gDate, GREGORIAN_FIRST_DATE);\n if (gDate.getTime() - GREGORIAN_FIRST_DATE.getTime() >= 0 && gDate.getTime() - GREGORIAN_LAST_DATE.getTime() <= 0) {\n let year = 1300;\n for (let i = 0; i < MONTH_LENGTH.length; i++, year++) {\n for (let j = 0; j < 12; j++) {\n let numOfDays = +MONTH_LENGTH[i][j] + 29;\n if (daysDiff <= numOfDays) {\n hDay = daysDiff + 1;\n if (hDay > numOfDays) {\n hDay = 1;\n j++;\n }\n if (j > 11) {\n j = 0;\n year++;\n }\n hMonth = j;\n hYear = year;\n return new NgbDate(hYear, hMonth + 1, hDay);\n }\n daysDiff = daysDiff - numOfDays;\n }\n }\n } else {\n return super.fromGregorian(gDate);\n }\n }\n /**\n * Converts the current Hijri date to Gregorian.\n */\n toGregorian(hDate: NgbDate): Date {\n const hYear = hDate.year;\n const hMonth = hDate.month - 1;\n const hDay = hDate.day;\n let gDate = new Date(GREGORIAN_FIRST_DATE);\n let dayDiff = hDay - 1;\n if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) {\n for (let y = 0; y < hYear - HIJRI_BEGIN; y++) {\n for (let m = 0; m < 12; m++) {\n dayDiff += +MONTH_LENGTH[y][m] + 29;\n }\n }\n for (let m = 0; m < hMonth; m++) {\n dayDiff += +MONTH_LENGTH[hYear - HIJRI_BEGIN][m] + 29;\n }\n gDate.setDate(GREGORIAN_FIRST_DATE.getDate() + dayDiff);\n } else {\n gDate = super.toGregorian(hDate);\n }\n return gDate;\n }\n /**\n * Returns the number of days in a specific Hijri hMonth.\n * `hMonth` is 1 for Muharram, 2 for Safar, etc.\n * `hYear` is any Hijri hYear.\n */\n getDaysPerMonth(hMonth: number, hYear: number): number {\n if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) {\n const pos = hYear - HIJRI_BEGIN;\n return +MONTH_LENGTH[pos][hMonth - 1] + 29;\n }\n return super.getDaysPerMonth(hMonth, hYear);\n }\n}\n","import {NgbDate} from '../ngb-date';\n\n/**\n * Returns the equivalent JS date value for a give input Jalali date.\n * `jalaliDate` is an Jalali date to be converted to Gregorian.\n */\nexport function toGregorian(jalaliDate: NgbDate): Date {\n let jdn = jalaliToJulian(jalaliDate.year, jalaliDate.month, jalaliDate.day);\n let date = julianToGregorian(jdn);\n date.setHours(6, 30, 3, 200);\n return date;\n}\n\n/**\n * Returns the equivalent jalali date value for a give input Gregorian date.\n * `gdate` is a JS Date to be converted to jalali.\n * utc to local\n */\nexport function fromGregorian(gdate: Date): NgbDate {\n let g2d = gregorianToJulian(gdate.getFullYear(), gdate.getMonth() + 1, gdate.getDate());\n return julianToJalali(g2d);\n}\n\nexport function setJalaliYear(date: NgbDate, yearValue: number): NgbDate {\n date.year = +yearValue;\n return date;\n}\n\nexport function setJalaliMonth(date: NgbDate, month: number): NgbDate {\n month = +month;\n date.year = date.year + Math.floor((month - 1) / 12);\n date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1;\n return date;\n}\n\nexport function setJalaliDay(date: NgbDate, day: number): NgbDate {\n let mDays = getDaysPerMonth(date.month, date.year);\n if (day <= 0) {\n while (day <= 0) {\n date = setJalaliMonth(date, date.month - 1);\n mDays = getDaysPerMonth(date.month, date.year);\n day += mDays;\n }\n } else if (day > mDays) {\n while (day > mDays) {\n day -= mDays;\n date = setJalaliMonth(date, date.month + 1);\n mDays = getDaysPerMonth(date.month, date.year);\n }\n }\n date.day = day;\n return date;\n}\n\nfunction mod(a: number, b: number): number {\n return a - b * Math.floor(a / b);\n}\n\nfunction div(a: number, b: number) {\n return Math.trunc(a / b);\n}\n\n/*\n This function determines if the Jalali (Persian) year is\n leap (366-day long) or is the common year (365 days), and\n finds the day in March (Gregorian calendar) of the first\n day of the Jalali year (jalaliYear).\n @param jalaliYear Jalali calendar year (-61 to 3177)\n @return\n leap: number of years since the last leap year (0 to 4)\n gYear: Gregorian year of the beginning of Jalali year\n march: the March day of Farvardin the 1st (1st day of jalaliYear)\n @see: http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm\n @see: http://www.fourmilab.ch/documents/calendar/\n */\nfunction jalCal(jalaliYear: number) {\n // Jalali years starting the 33-year rule.\n let breaks =\n [-61, 9, 38, 199, 426, 686, 756, 818, 1111, 1181, 1210, 1635, 2060, 2097, 2192, 2262, 2324, 2394, 2456, 3178];\n const breaksLength = breaks.length;\n const gYear = jalaliYear + 621;\n let leapJ = -14;\n let jp = breaks[0];\n\n if (jalaliYear < jp || jalaliYear >= breaks[breaksLength - 1]) {\n throw new Error('Invalid Jalali year ' + jalaliYear);\n }\n\n // Find the limiting years for the Jalali year jalaliYear.\n let jump;\n for (let i = 1; i < breaksLength; i += 1) {\n const jm = breaks[i];\n jump = jm - jp;\n if (jalaliYear < jm) {\n break;\n }\n leapJ = leapJ + div(jump, 33) * 8 + div(mod(jump, 33), 4);\n jp = jm;\n }\n let n = jalaliYear - jp;\n\n // Find the number of leap years from AD 621 to the beginning\n // of the current Jalali year in the Persian calendar.\n leapJ = leapJ + div(n, 33) * 8 + div(mod(n, 33) + 3, 4);\n if (mod(jump, 33) === 4 && jump - n === 4) {\n leapJ += 1;\n }\n\n // And the same in the Gregorian calendar (until the year gYear).\n const leapG = div(gYear, 4) - div((div(gYear, 100) + 1) * 3, 4) - 150;\n\n // Determine the Gregorian date of Farvardin the 1st.\n const march = 20 + leapJ - leapG;\n\n // Find how many years have passed since the last leap year.\n if (jump - n < 6) {\n n = n - jump + div(jump + 4, 33) * 33;\n }\n let leap = mod(mod(n + 1, 33) - 1, 4);\n if (leap === -1) {\n leap = 4;\n }\n\n return {leap: leap, gy: gYear, march: march};\n}\n\n/*\n Calculates Gregorian and Julian calendar dates from the Julian Day number\n (jdn) for the period since jdn=-34839655 (i.e. the year -100100 of both\n calendars) to some millions years ahead of the present.\n @param jdn Julian Day number\n @return\n gYear: Calendar year (years BC numbered 0, -1, -2, ...)\n gMonth: Calendar month (1 to 12)\n gDay: Calendar day of the month M (1 to 28/29/30/31)\n */\nfunction julianToGregorian(julianDayNumber: number) {\n let j = 4 * julianDayNumber + 139361631;\n j = j + div(div(4 * julianDayNumber + 183187720, 146097) * 3, 4) * 4 - 3908;\n const i = div(mod(j, 1461), 4) * 5 + 308;\n const gDay = div(mod(i, 153), 5) + 1;\n const gMonth = mod(div(i, 153), 12) + 1;\n const gYear = div(j, 1461) - 100100 + div(8 - gMonth, 6);\n\n return new Date(gYear, gMonth - 1, gDay);\n}\n\n/*\n Converts a date of the Jalali calendar to the Julian Day number.\n @param jy Jalali year (1 to 3100)\n @param jm Jalali month (1 to 12)\n @param jd Jalali day (1 to 29/31)\n @return Julian Day number\n */\nfunction gregorianToJulian(gy: number, gm: number, gd: number) {\n let d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod(gm + 9, 12) + 2, 5) + gd - 34840408;\n d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752;\n return d;\n}\n\n/*\n Converts the Julian Day number to a date in the Jalali calendar.\n @param julianDayNumber Julian Day number\n @return\n jalaliYear: Jalali year (1 to 3100)\n jalaliMonth: Jalali month (1 to 12)\n jalaliDay: Jalali day (1 to 29/31)\n */\nfunction julianToJalali(julianDayNumber: number) {\n let gy = julianToGregorian(julianDayNumber).getFullYear() // Calculate Gregorian year (gy).\n ,\n jalaliYear = gy - 621, r = jalCal(jalaliYear), gregorianDay = gregorianToJulian(gy, 3, r.march), jalaliDay,\n jalaliMonth, numberOfDays;\n\n // Find number of days that passed since 1 Farvardin.\n numberOfDays = julianDayNumber - gregorianDay;\n if (numberOfDays >= 0) {\n if (numberOfDays <= 185) {\n // The first 6 months.\n jalaliMonth = 1 + div(numberOfDays, 31);\n jalaliDay = mod(numberOfDays, 31) + 1;\n return new NgbDate(jalaliYear, jalaliMonth, jalaliDay);\n } else {\n // The remaining months.\n numberOfDays -= 186;\n }\n } else {\n // Previous Jalali year.\n jalaliYear -= 1;\n numberOfDays += 179;\n if (r.leap === 1) {\n numberOfDays += 1;\n }\n }\n jalaliMonth = 7 + div(numberOfDays, 30);\n jalaliDay = mod(numberOfDays, 30) + 1;\n\n return new NgbDate(jalaliYear, jalaliMonth, jalaliDay);\n}\n\n/*\n Converts a date of the Jalali calendar to the Julian Day number.\n @param jYear Jalali year (1 to 3100)\n @param jMonth Jalali month (1 to 12)\n @param jDay Jalali day (1 to 29/31)\n @return Julian Day number\n */\nfunction jalaliToJulian(jYear: number, jMonth: number, jDay: number) {\n let r = jalCal(jYear);\n return gregorianToJulian(r.gy, 3, r.march) + (jMonth - 1) * 31 - div(jMonth, 7) * (jMonth - 7) + jDay - 1;\n}\n\n/**\n * Returns the number of days in a specific jalali month.\n */\nfunction getDaysPerMonth(month: number, year: number): number {\n if (month <= 6) {\n return 31;\n }\n if (month <= 11) {\n return 30;\n }\n if (jalCal(year).leap === 0) {\n return 30;\n }\n return 29;\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDate} from '../ngb-date';\nimport {NgbCalendar, NgbPeriod} from '../ngb-calendar';\nimport {isInteger} from '../../util/util';\n\nimport {fromGregorian, setJalaliDay, setJalaliMonth, setJalaliYear, toGregorian} from './jalali';\n\n@Injectable()\nexport class NgbCalendarPersian extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date = setJalaliYear(date, date.year + number);\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = setJalaliMonth(date, date.month + number);\n date.day = 1;\n return date;\n case 'd':\n return setJalaliDay(date, date.day + number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n const date = week[thursdayIndex];\n\n const jsDate = toGregorian(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n const startDate = toGregorian(new NgbDate(date.year, 1, 1));\n return Math.floor(Math.round((time - startDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return fromGregorian(new Date()); }\n\n isValid(date: NgbDate): boolean {\n return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) &&\n !isNaN(toGregorian(date).getTime());\n }\n}\n","import {NgbDate} from '../ngb-date';\nimport {NgbDateStruct} from '../ngb-date-struct';\n\nconst PARTS_PER_HOUR = 1080;\nconst PARTS_PER_DAY = 24 * PARTS_PER_HOUR;\nconst PARTS_FRACTIONAL_MONTH = 12 * PARTS_PER_HOUR + 793;\nconst PARTS_PER_MONTH = 29 * PARTS_PER_DAY + PARTS_FRACTIONAL_MONTH;\nconst BAHARAD = 11 * PARTS_PER_HOUR + 204;\nconst HEBREW_DAY_ON_JAN_1_1970 = 2092591;\nconst GREGORIAN_EPOCH = 1721425.5;\n\nfunction isGregorianLeapYear(year: number): boolean {\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n}\n\nfunction numberOfFirstDayInYear(year: number): number {\n let monthsBeforeYear = Math.floor((235 * year - 234) / 19);\n let fractionalMonthsBeforeYear = monthsBeforeYear * PARTS_FRACTIONAL_MONTH + BAHARAD;\n let dayNumber = monthsBeforeYear * 29 + Math.floor(fractionalMonthsBeforeYear / PARTS_PER_DAY);\n let timeOfDay = fractionalMonthsBeforeYear % PARTS_PER_DAY;\n\n let dayOfWeek = dayNumber % 7; // 0 == Monday\n\n if (dayOfWeek === 2 || dayOfWeek === 4 || dayOfWeek === 6) {\n dayNumber++;\n dayOfWeek = dayNumber % 7;\n }\n if (dayOfWeek === 1 && timeOfDay > 15 * PARTS_PER_HOUR + 204 && !isHebrewLeapYear(year)) {\n dayNumber += 2;\n } else if (dayOfWeek === 0 && timeOfDay > 21 * PARTS_PER_HOUR + 589 && isHebrewLeapYear(year - 1)) {\n dayNumber++;\n }\n return dayNumber;\n}\n\nfunction getDaysInGregorianMonth(month: number, year: number): number {\n let days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n if (isGregorianLeapYear(year)) {\n days[1]++;\n }\n return days[month - 1];\n}\n\nfunction getHebrewMonths(year: number): number {\n return isHebrewLeapYear(year) ? 13 : 12;\n}\n\n/**\n * Returns the number of days in a specific Hebrew year.\n * `year` is any Hebrew year.\n */\nfunction getDaysInHebrewYear(year: number): number {\n return numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year);\n}\n\nexport function isHebrewLeapYear(year: number): boolean {\n let b = (year * 12 + 17) % 19;\n return b >= ((b < 0) ? -7 : 12);\n}\n\n/**\n * Returns the number of days in a specific Hebrew month.\n * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months.\n * `year` is any Hebrew year.\n */\nexport function getDaysInHebrewMonth(month: number, year: number): number {\n let yearLength = numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year);\n let yearType = (yearLength <= 380 ? yearLength : (yearLength - 30)) - 353;\n let leapYear = isHebrewLeapYear(year);\n let daysInMonth = leapYear ? [30, 29, 29, 29, 30, 30, 29, 30, 29, 30, 29, 30, 29] :\n [30, 29, 29, 29, 30, 29, 30, 29, 30, 29, 30, 29];\n if (yearType > 0) {\n daysInMonth[2]++; // Kislev gets an extra day in normal or complete years.\n }\n if (yearType > 1) {\n daysInMonth[1]++; // Heshvan gets an extra day in complete years only.\n }\n return daysInMonth[month - 1];\n}\n\nexport function getDayNumberInHebrewYear(date: NgbDate): number {\n let numberOfDay = 0;\n for (let i = 1; i < date.month; i++) {\n numberOfDay += getDaysInHebrewMonth(i, date.year);\n }\n return numberOfDay + date.day;\n}\n\nexport function setHebrewMonth(date: NgbDate, val: number): NgbDate {\n let after = val >= 0;\n if (!after) {\n val = -val;\n }\n while (val > 0) {\n if (after) {\n if (val > getHebrewMonths(date.year) - date.month) {\n val -= getHebrewMonths(date.year) - date.month + 1;\n date.year++;\n date.month = 1;\n } else {\n date.month += val;\n val = 0;\n }\n } else {\n if (val >= date.month) {\n date.year--;\n val -= date.month;\n date.month = getHebrewMonths(date.year);\n } else {\n date.month -= val;\n val = 0;\n }\n }\n }\n return date;\n}\n\nexport function setHebrewDay(date: NgbDate, val: number): NgbDate {\n let after = val >= 0;\n if (!after) {\n val = -val;\n }\n while (val > 0) {\n if (after) {\n if (val > getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date)) {\n val -= getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date) + 1;\n date.year++;\n date.month = 1;\n date.day = 1;\n } else if (val > getDaysInHebrewMonth(date.month, date.year) - date.day) {\n val -= getDaysInHebrewMonth(date.month, date.year) - date.day + 1;\n date.month++;\n date.day = 1;\n } else {\n date.day += val;\n val = 0;\n }\n } else {\n if (val >= date.day) {\n val -= date.day;\n date.month--;\n if (date.month === 0) {\n date.year--;\n date.month = getHebrewMonths(date.year);\n }\n date.day = getDaysInHebrewMonth(date.month, date.year);\n } else {\n date.day -= val;\n val = 0;\n }\n }\n }\n return date;\n}\n\n/**\n * Returns the equivalent Hebrew date value for a give input Gregorian date.\n * `gdate` is a JS Date to be converted to Hebrew date.\n */\nexport function fromGregorian(gdate: Date): NgbDate {\n const date = new Date(gdate);\n const gYear = date.getFullYear(), gMonth = date.getMonth(), gDay = date.getDate();\n let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) -\n Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) +\n Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gYear) ? -1 : -2) + gDay);\n julianDay = Math.floor(julianDay + 0.5);\n let daysSinceHebEpoch = julianDay - 347997;\n let monthsSinceHebEpoch = Math.floor(daysSinceHebEpoch * PARTS_PER_DAY / PARTS_PER_MONTH);\n let hYear = Math.floor((monthsSinceHebEpoch * 19 + 234) / 235) + 1;\n let firstDayOfThisYear = numberOfFirstDayInYear(hYear);\n let dayOfYear = daysSinceHebEpoch - firstDayOfThisYear;\n while (dayOfYear < 1) {\n hYear--;\n firstDayOfThisYear = numberOfFirstDayInYear(hYear);\n dayOfYear = daysSinceHebEpoch - firstDayOfThisYear;\n }\n let hMonth = 1;\n let hDay = dayOfYear;\n while (hDay > getDaysInHebrewMonth(hMonth, hYear)) {\n hDay -= getDaysInHebrewMonth(hMonth, hYear);\n hMonth++;\n }\n return new NgbDate(hYear, hMonth, hDay);\n}\n\n/**\n * Returns the equivalent JS date value for a given Hebrew date.\n * `hebrewDate` is an Hebrew date to be converted to Gregorian.\n */\nexport function toGregorian(hebrewDate: NgbDateStruct | NgbDate): Date {\n const hYear = hebrewDate.year;\n const hMonth = hebrewDate.month;\n const hDay = hebrewDate.day;\n let days = numberOfFirstDayInYear(hYear);\n for (let i = 1; i < hMonth; i++) {\n days += getDaysInHebrewMonth(i, hYear);\n }\n days += hDay;\n let diffDays = days - HEBREW_DAY_ON_JAN_1_1970;\n let after = diffDays >= 0;\n if (!after) {\n diffDays = -diffDays;\n }\n let gYear = 1970;\n let gMonth = 1;\n let gDay = 1;\n while (diffDays > 0) {\n if (after) {\n if (diffDays >= (isGregorianLeapYear(gYear) ? 366 : 365)) {\n diffDays -= isGregorianLeapYear(gYear) ? 366 : 365;\n gYear++;\n } else if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) {\n diffDays -= getDaysInGregorianMonth(gMonth, gYear);\n gMonth++;\n } else {\n gDay += diffDays;\n diffDays = 0;\n }\n } else {\n if (diffDays >= (isGregorianLeapYear(gYear - 1) ? 366 : 365)) {\n diffDays -= isGregorianLeapYear(gYear - 1) ? 366 : 365;\n gYear--;\n } else {\n if (gMonth > 1) {\n gMonth--;\n } else {\n gMonth = 12;\n gYear--;\n }\n if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) {\n diffDays -= getDaysInGregorianMonth(gMonth, gYear);\n } else {\n gDay = getDaysInGregorianMonth(gMonth, gYear) - diffDays + 1;\n diffDays = 0;\n }\n }\n }\n }\n return new Date(gYear, gMonth - 1, gDay);\n}\n\nexport function hebrewNumerals(numerals: number): string {\n if (!numerals) {\n return '';\n }\n const hArray0_9 = ['', '\\u05d0', '\\u05d1', '\\u05d2', '\\u05d3', '\\u05d4', '\\u05d5', '\\u05d6', '\\u05d7', '\\u05d8'];\n const hArray10_19 = [\n '\\u05d9', '\\u05d9\\u05d0', '\\u05d9\\u05d1', '\\u05d9\\u05d2', '\\u05d9\\u05d3', '\\u05d8\\u05d5', '\\u05d8\\u05d6',\n '\\u05d9\\u05d6', '\\u05d9\\u05d7', '\\u05d9\\u05d8'\n ];\n const hArray20_90 = ['', '', '\\u05db', '\\u05dc', '\\u05de', '\\u05e0', '\\u05e1', '\\u05e2', '\\u05e4', '\\u05e6'];\n const hArray100_900 = [\n '', '\\u05e7', '\\u05e8', '\\u05e9', '\\u05ea', '\\u05ea\\u05e7', '\\u05ea\\u05e8', '\\u05ea\\u05e9', '\\u05ea\\u05ea',\n '\\u05ea\\u05ea\\u05e7'\n ];\n const hArray1000_9000 = [\n '', '\\u05d0', '\\u05d1', '\\u05d1\\u05d0', '\\u05d1\\u05d1', '\\u05d4', '\\u05d4\\u05d0', '\\u05d4\\u05d1',\n '\\u05d4\\u05d1\\u05d0', '\\u05d4\\u05d1\\u05d1'\n ];\n const geresh = '\\u05f3', gershaim = '\\u05f4';\n let mem = 0;\n let result = [];\n let step = 0;\n while (numerals > 0) {\n let m = numerals % 10;\n if (step === 0) {\n mem = m;\n } else if (step === 1) {\n if (m !== 1) {\n result.unshift(hArray20_90[m], hArray0_9[mem]);\n } else {\n result.unshift(hArray10_19[mem]);\n }\n } else if (step === 2) {\n result.unshift(hArray100_900[m]);\n } else {\n if (m !== 5) {\n result.unshift(hArray1000_9000[m], geresh, ' ');\n }\n break;\n }\n numerals = Math.floor(numerals / 10);\n if (step === 0 && numerals === 0) {\n result.unshift(hArray0_9[m]);\n }\n step++;\n }\n result = result.join('').split('');\n if (result.length === 1) {\n result.push(geresh);\n } else if (result.length > 1) {\n result.splice(result.length - 1, 0, gershaim);\n }\n return result.join('');\n}\n","import {NgbDate} from '../ngb-date';\nimport {fromJSDate, NgbCalendar, NgbPeriod, toJSDate} from '../ngb-calendar';\nimport {Injectable} from '@angular/core';\nimport {isNumber} from '../../util/util';\nimport {\n fromGregorian,\n getDayNumberInHebrewYear,\n getDaysInHebrewMonth,\n isHebrewLeapYear,\n toGregorian,\n setHebrewDay,\n setHebrewMonth\n} from './hebrew';\n\n/**\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbCalendarHebrew extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths(year?: number) {\n if (year && isHebrewLeapYear(year)) {\n return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];\n } else {\n return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];\n }\n }\n\n getWeeksPerMonth() { return 6; }\n\n isValid(date: NgbDate): boolean {\n let b = date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day);\n b = b && date.month > 0 && date.month <= (isHebrewLeapYear(date.year) ? 13 : 12);\n b = b && date.day > 0 && date.day <= getDaysInHebrewMonth(date.month, date.year);\n return b && !isNaN(toGregorian(date).getTime());\n }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date.year += number;\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = setHebrewMonth(date, number);\n date.day = 1;\n return date;\n case 'd':\n return setHebrewDay(date, number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n const date = week[week.length - 1];\n return Math.ceil(getDayNumberInHebrewYear(date) / 7);\n }\n\n getToday(): NgbDate { return fromGregorian(new Date()); }\n\n /**\n * @since 3.4.0\n */\n toGregorian(date: NgbDate): NgbDate { return fromJSDate(toGregorian(date)); }\n\n /**\n * @since 3.4.0\n */\n fromGregorian(date: NgbDate): NgbDate { return fromGregorian(toJSDate(date)); }\n}\n","import {NgbDatepickerI18n} from '../datepicker-i18n';\nimport {NgbDateStruct} from '../../index';\nimport {hebrewNumerals, isHebrewLeapYear} from './hebrew';\nimport {Injectable} from '@angular/core';\n\n\nconst WEEKDAYS = ['שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת', 'ראשון'];\nconst MONTHS = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול'];\nconst MONTHS_LEAP =\n ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר א׳', 'אדר ב׳', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול'];\n\n/**\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbDatepickerI18nHebrew extends NgbDatepickerI18n {\n getMonthShortName(month: number, year?: number): string { return this.getMonthFullName(month, year); }\n\n getMonthFullName(month: number, year?: number): string {\n return isHebrewLeapYear(year) ? MONTHS_LEAP[month - 1] : MONTHS[month - 1];\n }\n\n getWeekdayShortName(weekday: number): string { return WEEKDAYS[weekday - 1]; }\n\n getDayAriaLabel(date: NgbDateStruct): string {\n return `${hebrewNumerals(date.day)} ${this.getMonthFullName(date.month, date.year)} ${hebrewNumerals(date.year)}`;\n }\n\n getDayNumerals(date: NgbDateStruct): string { return hebrewNumerals(date.day); }\n\n getWeekNumerals(weekNumber: number): string { return hebrewNumerals(weekNumber); }\n\n getYearNumerals(year: number): string { return hebrewNumerals(year); }\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateAdapter} from './ngb-date-adapter';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {isInteger} from '../../util/util';\n\n/**\n * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses\n * native javascript dates as a user date model.\n */\n@Injectable()\nexport class NgbDateNativeAdapter extends NgbDateAdapter {\n /**\n * Converts a native `Date` to a `NgbDateStruct`.\n */\n fromModel(date: Date): NgbDateStruct {\n return (date instanceof Date && !isNaN(date.getTime())) ? this._fromNativeDate(date) : null;\n }\n\n /**\n * Converts a `NgbDateStruct` to a native `Date`.\n */\n toModel(date: NgbDateStruct): Date {\n return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) ? this._toNativeDate(date) :\n null;\n }\n\n protected _fromNativeDate(date: Date): NgbDateStruct {\n return {year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate()};\n }\n\n protected _toNativeDate(date: NgbDateStruct): Date {\n const jsDate = new Date(date.year, date.month - 1, date.day, 12);\n // avoid 30 -> 1930 conversion\n jsDate.setFullYear(date.year);\n return jsDate;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {NgbDateNativeAdapter} from './ngb-date-native-adapter';\n\n/**\n * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates.\n *\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbDateNativeUTCAdapter extends NgbDateNativeAdapter {\n protected _fromNativeDate(date: Date): NgbDateStruct {\n return {year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate()};\n }\n\n protected _toNativeDate(date: NgbDateStruct): Date {\n const jsDate = new Date(Date.UTC(date.year, date.month - 1, date.day));\n // avoid 30 -> 1930 conversion\n jsDate.setUTCFullYear(date.year);\n return jsDate;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {NgbDatepicker} from './datepicker';\nimport {NgbDatepickerMonthView} from './datepicker-month-view';\nimport {NgbDatepickerNavigation} from './datepicker-navigation';\nimport {NgbInputDatepicker} from './datepicker-input';\nimport {NgbDatepickerDayView} from './datepicker-day-view';\nimport {NgbDatepickerNavigationSelect} from './datepicker-navigation-select';\n\nexport {NgbDatepicker, NgbDatepickerNavigateEvent} from './datepicker';\nexport {NgbInputDatepicker} from './datepicker-input';\nexport {NgbCalendar, NgbPeriod, NgbCalendarGregorian} from './ngb-calendar';\nexport {NgbCalendarIslamicCivil} from './hijri/ngb-calendar-islamic-civil';\nexport {NgbCalendarIslamicUmalqura} from './hijri/ngb-calendar-islamic-umalqura';\nexport {NgbCalendarPersian} from './jalali/ngb-calendar-persian';\nexport {NgbCalendarHebrew} from './hebrew/ngb-calendar-hebrew';\nexport {NgbDatepickerI18nHebrew} from './hebrew/datepicker-i18n-hebrew';\nexport {NgbDatepickerMonthView} from './datepicker-month-view';\nexport {NgbDatepickerDayView} from './datepicker-day-view';\nexport {NgbDatepickerNavigation} from './datepicker-navigation';\nexport {NgbDatepickerNavigationSelect} from './datepicker-navigation-select';\nexport {NgbDatepickerConfig} from './datepicker-config';\nexport {NgbDatepickerI18n} from './datepicker-i18n';\nexport {NgbDateStruct} from './ngb-date-struct';\nexport {NgbDate} from './ngb-date';\nexport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nexport {NgbDateNativeAdapter} from './adapters/ngb-date-native-adapter';\nexport {NgbDateNativeUTCAdapter} from './adapters/ngb-date-native-utc-adapter';\nexport {NgbDateParserFormatter} from './ngb-date-parser-formatter';\n\n@NgModule({\n declarations: [\n NgbDatepicker, NgbDatepickerMonthView, NgbDatepickerNavigation, NgbDatepickerNavigationSelect, NgbDatepickerDayView,\n NgbInputDatepicker\n ],\n exports: [NgbDatepicker, NgbInputDatepicker],\n imports: [CommonModule, FormsModule],\n entryComponents: [NgbDatepicker]\n})\nexport class NgbDatepickerModule {\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the dropdowns used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbDropdownConfig {\n autoClose: boolean | 'outside' | 'inside' = true;\n placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n container: null | 'body';\n}\n","import {\n ChangeDetectorRef,\n ContentChild,\n ContentChildren,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n AfterContentInit,\n OnDestroy,\n Output,\n QueryList,\n Renderer2,\n SimpleChanges,\n Optional\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {Subject, Subscription} from 'rxjs';\nimport {take} from 'rxjs/operators';\n\nimport {Placement, PlacementArray, positionElements} from '../util/positioning';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {Key} from '../util/key';\n\nimport {NgbDropdownConfig} from './dropdown-config';\n\n@Directive({selector: '.navbar'})\nexport class NgbNavbar {\n}\n\n/**\n * A directive you should put put on a dropdown item to enable keyboard navigation.\n * Arrow keys will move focus between items marked with this directive.\n *\n * @since 4.1.0\n */\n@Directive({selector: '[ngbDropdownItem]', host: {'class': 'dropdown-item', '[class.disabled]': 'disabled'}})\nexport class NgbDropdownItem {\n private _disabled = false;\n\n @Input()\n set disabled(value: boolean) {\n this._disabled = value === '' || value === true; // accept an empty attribute as true\n }\n\n get disabled(): boolean { return this._disabled; }\n\n constructor(public elementRef: ElementRef) {}\n}\n\n/**\n * A directive that wraps dropdown menu content and dropdown items.\n */\n@Directive({\n selector: '[ngbDropdownMenu]',\n host: {\n '[class.dropdown-menu]': 'true',\n '[class.show]': 'dropdown.isOpen()',\n '[attr.x-placement]': 'placement',\n '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)',\n '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)',\n '(keydown.Home)': 'dropdown.onKeyDown($event)',\n '(keydown.End)': 'dropdown.onKeyDown($event)',\n '(keydown.Enter)': 'dropdown.onKeyDown($event)',\n '(keydown.Space)': 'dropdown.onKeyDown($event)'\n }\n})\nexport class NgbDropdownMenu {\n placement: Placement = 'bottom';\n isOpen = false;\n\n @ContentChildren(NgbDropdownItem) menuItems: QueryList;\n\n constructor(@Inject(forwardRef(() => NgbDropdown)) public dropdown) {}\n}\n\n/**\n * A directive to mark an element to which dropdown menu will be anchored.\n *\n * This is a simple version of the `NgbDropdownToggle` directive.\n * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support\n * for events other than click.\n *\n * @since 1.1.0\n */\n@Directive({\n selector: '[ngbDropdownAnchor]',\n host: {'class': 'dropdown-toggle', 'aria-haspopup': 'true', '[attr.aria-expanded]': 'dropdown.isOpen()'}\n})\nexport class NgbDropdownAnchor {\n anchorEl;\n\n constructor(@Inject(forwardRef(() => NgbDropdown)) public dropdown, private _elementRef: ElementRef) {\n this.anchorEl = _elementRef.nativeElement;\n }\n\n getNativeElement() { return this._elementRef.nativeElement; }\n}\n\n/**\n * A directive to mark an element that will toggle dropdown via the `click` event.\n *\n * You can also use `NgbDropdownAnchor` as an alternative.\n */\n@Directive({\n selector: '[ngbDropdownToggle]',\n host: {\n 'class': 'dropdown-toggle',\n 'aria-haspopup': 'true',\n '[attr.aria-expanded]': 'dropdown.isOpen()',\n '(click)': 'dropdown.toggle()',\n '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)',\n '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)',\n '(keydown.Home)': 'dropdown.onKeyDown($event)',\n '(keydown.End)': 'dropdown.onKeyDown($event)'\n },\n providers: [{provide: NgbDropdownAnchor, useExisting: forwardRef(() => NgbDropdownToggle)}]\n})\nexport class NgbDropdownToggle extends NgbDropdownAnchor {\n constructor(@Inject(forwardRef(() => NgbDropdown)) dropdown, elementRef: ElementRef) {\n super(dropdown, elementRef);\n }\n}\n\n/**\n * A directive that provides contextual overlays for displaying lists of links and more.\n */\n@Directive({selector: '[ngbDropdown]', exportAs: 'ngbDropdown', host: {'[class.show]': 'isOpen()'}})\nexport class NgbDropdown implements AfterContentInit, OnDestroy {\n private _closed$ = new Subject();\n private _zoneSubscription: Subscription;\n private _bodyContainer: HTMLElement;\n\n @ContentChild(NgbDropdownMenu, {static: false}) private _menu: NgbDropdownMenu;\n @ContentChild(NgbDropdownMenu, {read: ElementRef, static: false}) private _menuElement: ElementRef;\n @ContentChild(NgbDropdownAnchor, {static: false}) private _anchor: NgbDropdownAnchor;\n\n /**\n * Indicates whether the dropdown should be closed when clicking one of dropdown items or pressing ESC.\n *\n * * `true` - the dropdown will close on both outside and inside (menu) clicks.\n * * `false` - the dropdown can only be closed manually via `close()` or `toggle()` methods.\n * * `\"inside\"` - the dropdown will close on inside menu clicks, but not outside clicks.\n * * `\"outside\"` - the dropdown will close only on the outside clicks and not on menu clicks.\n */\n @Input() autoClose: boolean | 'outside' | 'inside';\n\n /**\n * Defines whether or not the dropdown menu is opened initially.\n */\n @Input('open') _open = false;\n\n /**\n * The preferred placement of the dropdown.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * A selector specifying the element the dropdown should be appended to.\n * Currently only supports \"body\".\n *\n * @since 4.1.0\n */\n @Input() container: null | 'body';\n\n /**\n * Enable or disable the dynamic positioning. The default value is dynamic unless the dropdown is used\n * inside a Bootstrap navbar. If you need custom placement for a dropdown in a navbar, set it to\n * dynamic explicitly. See the [positioning of dropdown](#/positioning#dropdown)\n * and the [navbar demo](/#/components/dropdown/examples#navbar) for more details.\n *\n * @since 4.2.0\n */\n @Input() display: 'dynamic' | 'static';\n\n /**\n * An event fired when the dropdown is opened or closed.\n *\n * The event payload is a `boolean`:\n * * `true` - the dropdown was opened\n * * `false` - the dropdown was closed\n */\n @Output() openChange = new EventEmitter();\n\n constructor(\n private _changeDetector: ChangeDetectorRef, config: NgbDropdownConfig, @Inject(DOCUMENT) private _document: any,\n private _ngZone: NgZone, private _elementRef: ElementRef, private _renderer: Renderer2,\n @Optional() ngbNavbar: NgbNavbar) {\n this.placement = config.placement;\n this.container = config.container;\n this.autoClose = config.autoClose;\n\n this.display = ngbNavbar ? 'static' : 'dynamic';\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => { this._positionMenu(); });\n }\n\n ngAfterContentInit() {\n this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n this._applyPlacementClasses();\n if (this._open) {\n this._setCloseHandlers();\n }\n });\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.container && this._open) {\n this._applyContainer(this.container);\n }\n\n if (changes.placement && !changes.placement.isFirstChange) {\n this._applyPlacementClasses();\n }\n }\n\n /**\n * Checks if the dropdown menu is open.\n */\n isOpen(): boolean { return this._open; }\n\n /**\n * Opens the dropdown menu.\n */\n open(): void {\n if (!this._open) {\n this._open = true;\n this._applyContainer(this.container);\n this.openChange.emit(true);\n this._setCloseHandlers();\n }\n }\n\n private _setCloseHandlers() {\n const anchor = this._anchor;\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this._closed$,\n this._menu ? [this._menuElement.nativeElement] : [], anchor ? [anchor.getNativeElement()] : [],\n '.dropdown-item,.dropdown-divider');\n }\n\n /**\n * Closes the dropdown menu.\n */\n close(): void {\n if (this._open) {\n this._open = false;\n this._resetContainer();\n this._closed$.next();\n this.openChange.emit(false);\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the dropdown menu.\n */\n toggle(): void {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n ngOnDestroy() {\n this._resetContainer();\n\n this._closed$.next();\n this._zoneSubscription.unsubscribe();\n }\n\n onKeyDown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n const key = event.which;\n const itemElements = this._getMenuElements();\n\n let position = -1;\n let isEventFromItems = false;\n const isEventFromToggle = this._isEventFromToggle(event);\n\n if (!isEventFromToggle && itemElements.length) {\n itemElements.forEach((itemElement, index) => {\n if (itemElement.contains(event.target as HTMLElement)) {\n isEventFromItems = true;\n }\n if (itemElement === this._document.activeElement) {\n position = index;\n }\n });\n }\n\n // closing on Enter / Space\n if (key === Key.Space || key === Key.Enter) {\n if (isEventFromItems && (this.autoClose === true || this.autoClose === 'inside')) {\n this.close();\n }\n return;\n }\n\n // opening / navigating\n if (isEventFromToggle || isEventFromItems) {\n this.open();\n\n if (itemElements.length) {\n switch (key) {\n case Key.ArrowDown:\n position = Math.min(position + 1, itemElements.length - 1);\n break;\n case Key.ArrowUp:\n if (this._isDropup() && position === -1) {\n position = itemElements.length - 1;\n break;\n }\n position = Math.max(position - 1, 0);\n break;\n case Key.Home:\n position = 0;\n break;\n case Key.End:\n position = itemElements.length - 1;\n break;\n }\n itemElements[position].focus();\n }\n event.preventDefault();\n }\n }\n\n private _isDropup(): boolean { return this._elementRef.nativeElement.classList.contains('dropup'); }\n\n private _isEventFromToggle(event: KeyboardEvent) {\n return this._anchor.getNativeElement().contains(event.target as HTMLElement);\n }\n\n private _getMenuElements(): HTMLElement[] {\n const menu = this._menu;\n if (menu == null) {\n return [];\n }\n return menu.menuItems.filter(item => !item.disabled).map(item => item.elementRef.nativeElement);\n }\n\n private _positionMenu() {\n const menu = this._menu;\n if (this.isOpen() && menu) {\n this._applyPlacementClasses(\n this.display === 'dynamic' ?\n positionElements(\n this._anchor.anchorEl, this._bodyContainer || this._menuElement.nativeElement, this.placement,\n this.container === 'body') :\n this._getFirstPlacement(this.placement));\n }\n }\n\n private _getFirstPlacement(placement: PlacementArray): Placement {\n return Array.isArray(placement) ? placement[0] : placement.split(' ')[0] as Placement;\n }\n\n private _resetContainer() {\n const renderer = this._renderer;\n const menuElement = this._menuElement;\n if (menuElement) {\n const dropdownElement = this._elementRef.nativeElement;\n const dropdownMenuElement = menuElement.nativeElement;\n\n renderer.appendChild(dropdownElement, dropdownMenuElement);\n renderer.removeStyle(dropdownMenuElement, 'position');\n renderer.removeStyle(dropdownMenuElement, 'transform');\n }\n if (this._bodyContainer) {\n renderer.removeChild(this._document.body, this._bodyContainer);\n this._bodyContainer = null;\n }\n }\n\n private _applyContainer(container: null | 'body' = null) {\n this._resetContainer();\n if (container === 'body') {\n const renderer = this._renderer;\n const dropdownMenuElement = this._menuElement.nativeElement;\n const bodyContainer = this._bodyContainer = this._bodyContainer || renderer.createElement('div');\n\n // Override some styles to have the positionning working\n renderer.setStyle(bodyContainer, 'position', 'absolute');\n renderer.setStyle(dropdownMenuElement, 'position', 'static');\n renderer.setStyle(bodyContainer, 'z-index', '1050');\n\n renderer.appendChild(bodyContainer, dropdownMenuElement);\n renderer.appendChild(this._document.body, bodyContainer);\n }\n }\n\n private _applyPlacementClasses(placement?: Placement) {\n const menu = this._menu;\n if (menu) {\n if (!placement) {\n placement = this._getFirstPlacement(this.placement);\n }\n\n const renderer = this._renderer;\n const dropdownElement = this._elementRef.nativeElement;\n\n // remove the current placement classes\n renderer.removeClass(dropdownElement, 'dropup');\n renderer.removeClass(dropdownElement, 'dropdown');\n menu.placement = this.display === 'static' ? null : placement;\n\n /*\n * apply the new placement\n * in case of top use up-arrow or down-arrow otherwise\n */\n const dropdownClass = placement.search('^top') !== -1 ? 'dropup' : 'dropdown';\n renderer.addClass(dropdownElement, dropdownClass);\n\n const bodyContainer = this._bodyContainer;\n if (bodyContainer) {\n renderer.removeClass(bodyContainer, 'dropup');\n renderer.removeClass(bodyContainer, 'dropdown');\n renderer.addClass(bodyContainer, dropdownClass);\n }\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {\n NgbDropdown,\n NgbDropdownAnchor,\n NgbDropdownToggle,\n NgbDropdownMenu,\n NgbDropdownItem,\n NgbNavbar\n} from './dropdown';\n\nexport {NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem} from './dropdown';\nexport {NgbDropdownConfig} from './dropdown-config';\n\nconst NGB_DROPDOWN_DIRECTIVES =\n [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar];\n\n@NgModule({declarations: NGB_DROPDOWN_DIRECTIVES, exports: NGB_DROPDOWN_DIRECTIVES})\nexport class NgbDropdownModule {\n}\n","import {Injectable, Injector} from '@angular/core';\n\n/**\n * Options available when opening new modal windows with `NgbModal.open()` method.\n */\nexport interface NgbModalOptions {\n /**\n * `aria-labelledby` attribute value to set on the modal window.\n *\n * @since 2.2.0\n */\n ariaLabelledBy?: string;\n\n /**\n * If `true`, the backdrop element will be created for a given modal.\n *\n * Alternatively, specify `'static'` for a backdrop which doesn't close the modal on click.\n *\n * Default value is `true`.\n */\n backdrop?: boolean | 'static';\n\n /**\n * Callback right before the modal will be dismissed.\n *\n * If this function returns:\n * * `false`\n * * a promise resolved with `false`\n * * a promise that is rejected\n *\n * then the modal won't be dismissed.\n */\n beforeDismiss?: () => boolean | Promise;\n\n /**\n * If `true`, the modal will be centered vertically.\n *\n * Default value is `false`.\n *\n * @since 1.1.0\n */\n centered?: boolean;\n\n /**\n * A selector specifying the element all new modal windows should be appended to.\n *\n * If not specified, will be `body`.\n */\n container?: string;\n\n /**\n * The `Injector` to use for modal content.\n */\n injector?: Injector;\n\n /**\n * If `true`, the modal will be closed when `Escape` key is pressed\n *\n * Default value is `true`.\n */\n keyboard?: boolean;\n\n /**\n * Scrollable modal content (false by default).\n *\n * @since 5.0.0\n */\n scrollable?: boolean;\n\n /**\n * Size of a new modal window.\n */\n size?: 'sm' | 'lg' | 'xl';\n\n /**\n * A custom class to append to the modal window.\n */\n windowClass?: string;\n\n /**\n * A custom class to append to the modal backdrop.\n *\n * @since 1.1.0\n */\n backdropClass?: string;\n}\n\n/**\n * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all modals used in the application.\n*\n* @since 3.1.0\n*/\n@Injectable({providedIn: 'root'})\nexport class NgbModalConfig implements NgbModalOptions {\n backdrop: boolean | 'static' = true;\n keyboard = true;\n}\n","import {\n Injector,\n TemplateRef,\n ViewRef,\n ViewContainerRef,\n Renderer2,\n ComponentRef,\n ComponentFactoryResolver,\n ApplicationRef\n} from '@angular/core';\n\nexport class ContentRef {\n constructor(public nodes: any[], public viewRef?: ViewRef, public componentRef?: ComponentRef) {}\n}\n\nexport class PopupService {\n private _windowRef: ComponentRef;\n private _contentRef: ContentRef;\n\n constructor(\n private _type: any, private _injector: Injector, private _viewContainerRef: ViewContainerRef,\n private _renderer: Renderer2, private _componentFactoryResolver: ComponentFactoryResolver,\n private _applicationRef: ApplicationRef) {}\n\n open(content?: string | TemplateRef, context?: any): ComponentRef {\n if (!this._windowRef) {\n this._contentRef = this._getContentRef(content, context);\n this._windowRef = this._viewContainerRef.createComponent(\n this._componentFactoryResolver.resolveComponentFactory(this._type), 0, this._injector,\n this._contentRef.nodes);\n }\n\n return this._windowRef;\n }\n\n close() {\n if (this._windowRef) {\n this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView));\n this._windowRef = null;\n\n if (this._contentRef.viewRef) {\n this._applicationRef.detachView(this._contentRef.viewRef);\n this._contentRef.viewRef.destroy();\n this._contentRef = null;\n }\n }\n }\n\n private _getContentRef(content: string | TemplateRef, context?: any): ContentRef {\n if (!content) {\n return new ContentRef([]);\n } else if (content instanceof TemplateRef) {\n const viewRef = content.createEmbeddedView(context);\n this._applicationRef.attachView(viewRef);\n return new ContentRef([viewRef.rootNodes], viewRef);\n } else {\n return new ContentRef([[this._renderer.createText(`${content}`)]]);\n }\n }\n}\n","import {Injectable, Inject} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\n\nconst noop = () => {};\n\n\n\n/** Type for the callback used to revert the scrollbar compensation. */\nexport type CompensationReverter = () => void;\n\n\n\n/**\n * Utility to handle the scrollbar.\n *\n * It allows to compensate the lack of a vertical scrollbar by adding an\n * equivalent padding on the right of the body, and to remove this compensation.\n */\n@Injectable({providedIn: 'root'})\nexport class ScrollBar {\n constructor(@Inject(DOCUMENT) private _document: any) {}\n\n /**\n * Detects if a scrollbar is present and if yes, already compensates for its\n * removal by adding an equivalent padding on the right of the body.\n *\n * @return a callback used to revert the compensation (noop if there was none,\n * otherwise a function removing the padding)\n */\n compensate(): CompensationReverter { return !this._isPresent() ? noop : this._adjustBody(this._getWidth()); }\n\n /**\n * Adds a padding of the given width on the right of the body.\n *\n * @return a callback used to revert the padding to its previous value\n */\n private _adjustBody(width: number): CompensationReverter {\n const body = this._document.body;\n const userSetPadding = body.style.paddingRight;\n const paddingAmount = parseFloat(window.getComputedStyle(body)['padding-right']);\n body.style['padding-right'] = `${paddingAmount + width}px`;\n return () => body.style['padding-right'] = userSetPadding;\n }\n\n /**\n * Tells whether a scrollbar is currently present on the body.\n *\n * @return true if scrollbar is present, false otherwise\n */\n private _isPresent(): boolean {\n const rect = this._document.body.getBoundingClientRect();\n return rect.left + rect.right < window.innerWidth;\n }\n\n /**\n * Calculates and returns the width of a scrollbar.\n *\n * @return the width of a scrollbar on this page\n */\n private _getWidth(): number {\n const measurer = this._document.createElement('div');\n measurer.className = 'modal-scrollbar-measure';\n\n const body = this._document.body;\n body.appendChild(measurer);\n const width = measurer.getBoundingClientRect().width - measurer.clientWidth;\n body.removeChild(measurer);\n\n return width;\n }\n}\n","import {Component, Input} from '@angular/core';\n\n@Component({\n selector: 'ngb-modal-backdrop',\n template: '',\n host:\n {'[class]': '\"modal-backdrop fade show\" + (backdropClass ? \" \" + backdropClass : \"\")', 'style': 'z-index: 1050'}\n})\nexport class NgbModalBackdrop {\n @Input() backdropClass: string;\n}\n","import {ComponentRef} from '@angular/core';\n\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalWindow} from './modal-window';\n\nimport {ContentRef} from '../util/popup';\n\n/**\n * A reference to the currently opened (active) modal.\n *\n * Instances of this class can be injected into your component passed as modal content.\n * So you can `.close()` or `.dismiss()` the modal window from your component.\n */\nexport class NgbActiveModal {\n /**\n * Closes the modal with an optional `result` value.\n *\n * The `NgbMobalRef.result` promise will be resolved with the provided value.\n */\n close(result?: any): void {}\n\n /**\n * Dismisses the modal with an optional `reason` value.\n *\n * The `NgbModalRef.result` promise will be rejected with the provided value.\n */\n dismiss(reason?: any): void {}\n}\n\n/**\n * A reference to the newly opened modal returned by the `NgbModal.open()` method.\n */\nexport class NgbModalRef {\n private _resolve: (result?: any) => void;\n private _reject: (reason?: any) => void;\n\n /**\n * The instance of a component used for the modal content.\n *\n * When a `TemplateRef` is used as the content, will return `undefined`.\n */\n get componentInstance(): any {\n if (this._contentRef.componentRef) {\n return this._contentRef.componentRef.instance;\n }\n }\n\n /**\n * The promise that is resolved when the modal is closed and rejected when the modal is dismissed.\n */\n result: Promise;\n\n constructor(\n private _windowCmptRef: ComponentRef, private _contentRef: ContentRef,\n private _backdropCmptRef?: ComponentRef, private _beforeDismiss?: Function) {\n _windowCmptRef.instance.dismissEvent.subscribe((reason: any) => { this.dismiss(reason); });\n\n this.result = new Promise((resolve, reject) => {\n this._resolve = resolve;\n this._reject = reject;\n });\n this.result.then(null, () => {});\n }\n\n /**\n * Closes the modal with an optional `result` value.\n *\n * The `NgbMobalRef.result` promise will be resolved with the provided value.\n */\n close(result?: any): void {\n if (this._windowCmptRef) {\n this._resolve(result);\n this._removeModalElements();\n }\n }\n\n private _dismiss(reason?: any) {\n this._reject(reason);\n this._removeModalElements();\n }\n\n /**\n * Dismisses the modal with an optional `reason` value.\n *\n * The `NgbModalRef.result` promise will be rejected with the provided value.\n */\n dismiss(reason?: any): void {\n if (this._windowCmptRef) {\n if (!this._beforeDismiss) {\n this._dismiss(reason);\n } else {\n const dismiss = this._beforeDismiss();\n if (dismiss && dismiss.then) {\n dismiss.then(\n result => {\n if (result !== false) {\n this._dismiss(reason);\n }\n },\n () => {});\n } else if (dismiss !== false) {\n this._dismiss(reason);\n }\n }\n }\n }\n\n private _removeModalElements() {\n const windowNativeEl = this._windowCmptRef.location.nativeElement;\n windowNativeEl.parentNode.removeChild(windowNativeEl);\n this._windowCmptRef.destroy();\n\n if (this._backdropCmptRef) {\n const backdropNativeEl = this._backdropCmptRef.location.nativeElement;\n backdropNativeEl.parentNode.removeChild(backdropNativeEl);\n this._backdropCmptRef.destroy();\n }\n\n if (this._contentRef && this._contentRef.viewRef) {\n this._contentRef.viewRef.destroy();\n }\n\n this._windowCmptRef = null;\n this._backdropCmptRef = null;\n this._contentRef = null;\n }\n}\n","export enum ModalDismissReasons {\n BACKDROP_CLICK,\n ESC\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {getFocusableBoundaryElements} from '../util/focus-trap';\nimport {ModalDismissReasons} from './modal-dismiss-reasons';\n\n@Component({\n selector: 'ngb-modal-window',\n host: {\n '[class]': '\"modal fade show d-block\" + (windowClass ? \" \" + windowClass : \"\")',\n 'role': 'dialog',\n 'tabindex': '-1',\n '(keyup.esc)': 'escKey($event)',\n '(click)': 'backdropClick($event)',\n '[attr.aria-modal]': 'true',\n '[attr.aria-labelledby]': 'ariaLabelledBy',\n },\n template: `\n
\n
\n
\n `,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./modal.scss']\n})\nexport class NgbModalWindow implements OnInit,\n AfterViewInit, OnDestroy {\n private _elWithFocus: Element; // element that is focused prior to modal opening\n\n @Input() ariaLabelledBy: string;\n @Input() backdrop: boolean | string = true;\n @Input() centered: string;\n @Input() keyboard = true;\n @Input() scrollable: string;\n @Input() size: string;\n @Input() windowClass: string;\n\n @Output('dismiss') dismissEvent = new EventEmitter();\n\n constructor(@Inject(DOCUMENT) private _document: any, private _elRef: ElementRef) {}\n\n backdropClick($event): void {\n if (this.backdrop === true && this._elRef.nativeElement === $event.target) {\n this.dismiss(ModalDismissReasons.BACKDROP_CLICK);\n }\n }\n\n escKey($event): void {\n if (this.keyboard && !$event.defaultPrevented) {\n this.dismiss(ModalDismissReasons.ESC);\n }\n }\n\n dismiss(reason): void { this.dismissEvent.emit(reason); }\n\n ngOnInit() { this._elWithFocus = this._document.activeElement; }\n\n ngAfterViewInit() {\n if (!this._elRef.nativeElement.contains(document.activeElement)) {\n const autoFocusable = this._elRef.nativeElement.querySelector(`[ngbAutofocus]`) as HTMLElement;\n const firstFocusable = getFocusableBoundaryElements(this._elRef.nativeElement)[0];\n\n const elementToFocus = autoFocusable || firstFocusable || this._elRef.nativeElement;\n elementToFocus.focus();\n }\n }\n\n ngOnDestroy() {\n const body = this._document.body;\n const elWithFocus = this._elWithFocus;\n\n let elementToFocus;\n if (elWithFocus && elWithFocus['focus'] && body.contains(elWithFocus)) {\n elementToFocus = elWithFocus;\n } else {\n elementToFocus = body;\n }\n elementToFocus.focus();\n this._elWithFocus = null;\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ApplicationRef,\n ComponentFactoryResolver,\n ComponentRef,\n Inject,\n Injectable,\n Injector,\n RendererFactory2,\n TemplateRef,\n} from '@angular/core';\nimport {Subject} from 'rxjs';\n\nimport {ngbFocusTrap} from '../util/focus-trap';\nimport {ContentRef} from '../util/popup';\nimport {ScrollBar} from '../util/scrollbar';\nimport {isDefined, isString} from '../util/util';\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalOptions} from './modal-config';\nimport {NgbActiveModal, NgbModalRef} from './modal-ref';\nimport {NgbModalWindow} from './modal-window';\n\n@Injectable({providedIn: 'root'})\nexport class NgbModalStack {\n private _activeWindowCmptHasChanged = new Subject();\n private _ariaHiddenValues: Map = new Map();\n private _backdropAttributes = ['backdropClass'];\n private _modalRefs: NgbModalRef[] = [];\n private _windowAttributes =\n ['ariaLabelledBy', 'backdrop', 'centered', 'keyboard', 'scrollable', 'size', 'windowClass'];\n private _windowCmpts: ComponentRef[] = [];\n\n constructor(\n private _applicationRef: ApplicationRef, private _injector: Injector, @Inject(DOCUMENT) private _document: any,\n private _scrollBar: ScrollBar, private _rendererFactory: RendererFactory2) {\n // Trap focus on active WindowCmpt\n this._activeWindowCmptHasChanged.subscribe(() => {\n if (this._windowCmpts.length) {\n const activeWindowCmpt = this._windowCmpts[this._windowCmpts.length - 1];\n ngbFocusTrap(activeWindowCmpt.location.nativeElement, this._activeWindowCmptHasChanged);\n this._revertAriaHidden();\n this._setAriaHidden(activeWindowCmpt.location.nativeElement);\n }\n });\n }\n\n open(moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, options): NgbModalRef {\n const containerEl =\n isDefined(options.container) ? this._document.querySelector(options.container) : this._document.body;\n const renderer = this._rendererFactory.createRenderer(null, null);\n\n const revertPaddingForScrollBar = this._scrollBar.compensate();\n const removeBodyClass = () => {\n if (!this._modalRefs.length) {\n renderer.removeClass(this._document.body, 'modal-open');\n this._revertAriaHidden();\n }\n };\n\n if (!containerEl) {\n throw new Error(`The specified modal container \"${options.container || 'body'}\" was not found in the DOM.`);\n }\n\n const activeModal = new NgbActiveModal();\n const contentRef =\n this._getContentRef(moduleCFR, options.injector || contentInjector, content, activeModal, options);\n\n let backdropCmptRef: ComponentRef =\n options.backdrop !== false ? this._attachBackdrop(moduleCFR, containerEl) : null;\n let windowCmptRef: ComponentRef = this._attachWindowComponent(moduleCFR, containerEl, contentRef);\n let ngbModalRef: NgbModalRef = new NgbModalRef(windowCmptRef, contentRef, backdropCmptRef, options.beforeDismiss);\n\n this._registerModalRef(ngbModalRef);\n this._registerWindowCmpt(windowCmptRef);\n ngbModalRef.result.then(revertPaddingForScrollBar, revertPaddingForScrollBar);\n ngbModalRef.result.then(removeBodyClass, removeBodyClass);\n activeModal.close = (result: any) => { ngbModalRef.close(result); };\n activeModal.dismiss = (reason: any) => { ngbModalRef.dismiss(reason); };\n\n this._applyWindowOptions(windowCmptRef.instance, options);\n if (this._modalRefs.length === 1) {\n renderer.addClass(this._document.body, 'modal-open');\n }\n\n if (backdropCmptRef && backdropCmptRef.instance) {\n this._applyBackdropOptions(backdropCmptRef.instance, options);\n }\n return ngbModalRef;\n }\n\n dismissAll(reason?: any) { this._modalRefs.forEach(ngbModalRef => ngbModalRef.dismiss(reason)); }\n\n hasOpenModals(): boolean { return this._modalRefs.length > 0; }\n\n private _attachBackdrop(moduleCFR: ComponentFactoryResolver, containerEl: any): ComponentRef {\n let backdropFactory = moduleCFR.resolveComponentFactory(NgbModalBackdrop);\n let backdropCmptRef = backdropFactory.create(this._injector);\n this._applicationRef.attachView(backdropCmptRef.hostView);\n containerEl.appendChild(backdropCmptRef.location.nativeElement);\n return backdropCmptRef;\n }\n\n private _attachWindowComponent(moduleCFR: ComponentFactoryResolver, containerEl: any, contentRef: any):\n ComponentRef {\n let windowFactory = moduleCFR.resolveComponentFactory(NgbModalWindow);\n let windowCmptRef = windowFactory.create(this._injector, contentRef.nodes);\n this._applicationRef.attachView(windowCmptRef.hostView);\n containerEl.appendChild(windowCmptRef.location.nativeElement);\n return windowCmptRef;\n }\n\n private _applyWindowOptions(windowInstance: NgbModalWindow, options: Object): void {\n this._windowAttributes.forEach((optionName: string) => {\n if (isDefined(options[optionName])) {\n windowInstance[optionName] = options[optionName];\n }\n });\n }\n\n private _applyBackdropOptions(backdropInstance: NgbModalBackdrop, options: Object): void {\n this._backdropAttributes.forEach((optionName: string) => {\n if (isDefined(options[optionName])) {\n backdropInstance[optionName] = options[optionName];\n }\n });\n }\n\n private _getContentRef(\n moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, activeModal: NgbActiveModal,\n options: NgbModalOptions): ContentRef {\n if (!content) {\n return new ContentRef([]);\n } else if (content instanceof TemplateRef) {\n return this._createFromTemplateRef(content, activeModal);\n } else if (isString(content)) {\n return this._createFromString(content);\n } else {\n return this._createFromComponent(moduleCFR, contentInjector, content, activeModal, options);\n }\n }\n\n private _createFromTemplateRef(content: TemplateRef, activeModal: NgbActiveModal): ContentRef {\n const context = {\n $implicit: activeModal,\n close(result) { activeModal.close(result); },\n dismiss(reason) { activeModal.dismiss(reason); }\n };\n const viewRef = content.createEmbeddedView(context);\n this._applicationRef.attachView(viewRef);\n return new ContentRef([viewRef.rootNodes], viewRef);\n }\n\n private _createFromString(content: string): ContentRef {\n const component = this._document.createTextNode(`${content}`);\n return new ContentRef([[component]]);\n }\n\n private _createFromComponent(\n moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, context: NgbActiveModal,\n options: NgbModalOptions): ContentRef {\n const contentCmptFactory = moduleCFR.resolveComponentFactory(content);\n const modalContentInjector =\n Injector.create({providers: [{provide: NgbActiveModal, useValue: context}], parent: contentInjector});\n const componentRef = contentCmptFactory.create(modalContentInjector);\n const componentNativeEl = componentRef.location.nativeElement;\n if (options.scrollable) {\n (componentNativeEl as HTMLElement).classList.add('component-host-scrollable');\n }\n this._applicationRef.attachView(componentRef.hostView);\n // FIXME: we should here get rid of the component nativeElement\n // and use `[Array.from(componentNativeEl.childNodes)]` instead and remove the above CSS class.\n return new ContentRef([[componentNativeEl]], componentRef.hostView, componentRef);\n }\n\n private _setAriaHidden(element: Element) {\n const parent = element.parentElement;\n if (parent && element !== this._document.body) {\n Array.from(parent.children).forEach(sibling => {\n if (sibling !== element && sibling.nodeName !== 'SCRIPT') {\n this._ariaHiddenValues.set(sibling, sibling.getAttribute('aria-hidden'));\n sibling.setAttribute('aria-hidden', 'true');\n }\n });\n\n this._setAriaHidden(parent);\n }\n }\n\n private _revertAriaHidden() {\n this._ariaHiddenValues.forEach((value, element) => {\n if (value) {\n element.setAttribute('aria-hidden', value);\n } else {\n element.removeAttribute('aria-hidden');\n }\n });\n this._ariaHiddenValues.clear();\n }\n\n private _registerModalRef(ngbModalRef: NgbModalRef) {\n const unregisterModalRef = () => {\n const index = this._modalRefs.indexOf(ngbModalRef);\n if (index > -1) {\n this._modalRefs.splice(index, 1);\n }\n };\n this._modalRefs.push(ngbModalRef);\n ngbModalRef.result.then(unregisterModalRef, unregisterModalRef);\n }\n\n private _registerWindowCmpt(ngbWindowCmpt: ComponentRef) {\n this._windowCmpts.push(ngbWindowCmpt);\n this._activeWindowCmptHasChanged.next();\n\n ngbWindowCmpt.onDestroy(() => {\n const index = this._windowCmpts.indexOf(ngbWindowCmpt);\n if (index > -1) {\n this._windowCmpts.splice(index, 1);\n this._activeWindowCmptHasChanged.next();\n }\n });\n }\n}\n","import {Injectable, Injector, ComponentFactoryResolver} from '@angular/core';\n\nimport {NgbModalOptions, NgbModalConfig} from './modal-config';\nimport {NgbModalRef} from './modal-ref';\nimport {NgbModalStack} from './modal-stack';\n\n/**\n * A service for opening modal windows.\n *\n * Creating a modal is straightforward: create a component or a template and pass it as an argument to\n * the `.open()` method.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbModal {\n constructor(\n private _moduleCFR: ComponentFactoryResolver, private _injector: Injector, private _modalStack: NgbModalStack,\n private _config: NgbModalConfig) {}\n\n /**\n * Opens a new modal window with the specified content and supplied options.\n *\n * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content,\n * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then\n * use `NgbActiveModal` methods to close / dismiss modals from \"inside\" of your component.\n *\n * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options.\n */\n open(content: any, options: NgbModalOptions = {}): NgbModalRef {\n const combinedOptions = Object.assign({}, this._config, options);\n return this._modalStack.open(this._moduleCFR, this._injector, content, combinedOptions);\n }\n\n /**\n * Dismisses all currently displayed modal windows with the supplied reason.\n *\n * @since 3.1.0\n */\n dismissAll(reason?: any) { this._modalStack.dismissAll(reason); }\n\n /**\n * Indicates if there are currently any open modal windows in the application.\n *\n * @since 3.3.0\n */\n hasOpenModals(): boolean { return this._modalStack.hasOpenModals(); }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbModal} from './modal';\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalWindow} from './modal-window';\n\nexport {NgbModal} from './modal';\nexport {NgbModalConfig, NgbModalOptions} from './modal-config';\nexport {NgbModalRef, NgbActiveModal} from './modal-ref';\nexport {ModalDismissReasons} from './modal-dismiss-reasons';\n\n@NgModule({\n declarations: [NgbModalBackdrop, NgbModalWindow],\n entryComponents: [NgbModalBackdrop, NgbModalWindow],\n providers: [NgbModal]\n})\nexport class NgbModalModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the paginations used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbPaginationConfig {\n disabled = false;\n boundaryLinks = false;\n directionLinks = true;\n ellipses = true;\n maxSize = 0;\n pageSize = 10;\n rotate = false;\n size: 'sm' | 'lg';\n}\n","import {\n Component,\n ContentChild,\n Directive,\n EventEmitter,\n Input,\n Output,\n OnChanges,\n ChangeDetectionStrategy,\n SimpleChanges,\n TemplateRef\n} from '@angular/core';\nimport {getValueInRange, isNumber} from '../util/util';\nimport {NgbPaginationConfig} from './pagination-config';\n\n/**\n * A context for the\n * * `NgbPaginationFirst`\n * * `NgbPaginationPrevious`\n * * `NgbPaginationNext`\n * * `NgbPaginationLast`\n * * `NgbPaginationEllipsis`\n *\n * link templates in case you want to override one.\n *\n * @since 4.1.0\n */\nexport interface NgbPaginationLinkContext {\n /**\n * The currently selected page number\n */\n currentPage: number;\n\n /**\n * If `true`, the current link is disabled\n */\n disabled: boolean;\n}\n\n/**\n * A context for the `NgbPaginationNumber` link template in case you want to override one.\n *\n * Extends `NgbPaginationLinkContext`.\n *\n * @since 4.1.0\n */\nexport interface NgbPaginationNumberContext extends NgbPaginationLinkContext {\n /**\n * The page number, displayed by the current page link.\n */\n $implicit: number;\n}\n\n/**\n * A directive to match the 'ellipsis' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationEllipsis]'})\nexport class NgbPaginationEllipsis {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'first' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationFirst]'})\nexport class NgbPaginationFirst {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'last' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationLast]'})\nexport class NgbPaginationLast {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'next' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationNext]'})\nexport class NgbPaginationNext {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the page 'number' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationNumber]'})\nexport class NgbPaginationNumber {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'previous' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationPrevious]'})\nexport class NgbPaginationPrevious {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A component that displays page numbers and allows to customize them in several ways.\n */\n@Component({\n selector: 'ngb-pagination',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {'role': 'navigation'},\n template: `\n ««\n «\n »\n »»\n ...\n \n {{ page }}\n (current)\n \n \n `\n})\nexport class NgbPagination implements OnChanges {\n pageCount = 0;\n pages: number[] = [];\n\n @ContentChild(NgbPaginationEllipsis, {static: false}) tplEllipsis: NgbPaginationEllipsis;\n @ContentChild(NgbPaginationFirst, {static: false}) tplFirst: NgbPaginationFirst;\n @ContentChild(NgbPaginationLast, {static: false}) tplLast: NgbPaginationLast;\n @ContentChild(NgbPaginationNext, {static: false}) tplNext: NgbPaginationNext;\n @ContentChild(NgbPaginationNumber, {static: false}) tplNumber: NgbPaginationNumber;\n @ContentChild(NgbPaginationPrevious, {static: false}) tplPrevious: NgbPaginationPrevious;\n\n /**\n * If `true`, pagination links will be disabled.\n */\n @Input() disabled: boolean;\n\n /**\n * If `true`, the \"First\" and \"Last\" page links are shown.\n */\n @Input() boundaryLinks: boolean;\n\n /**\n * If `true`, the \"Next\" and \"Previous\" page links are shown.\n */\n @Input() directionLinks: boolean;\n\n /**\n * If `true`, the ellipsis symbols and first/last page numbers will be shown when `maxSize` > number of pages.\n */\n @Input() ellipses: boolean;\n\n /**\n * Whether to rotate pages when `maxSize` > number of pages.\n *\n * The current page always stays in the middle if `true`.\n */\n @Input() rotate: boolean;\n\n /**\n * The number of items in your paginated collection.\n *\n * Note, that this is not the number of pages. Page numbers are calculated dynamically based on\n * `collectionSize` and `pageSize`. Ex. if you have 100 items in your collection and displaying 20 items per page,\n * you'll end up with 5 pages.\n */\n @Input() collectionSize: number;\n\n /**\n * The maximum number of pages to display.\n */\n @Input() maxSize: number;\n\n /**\n * The current page.\n *\n * Page numbers start with `1`.\n */\n @Input() page = 1;\n\n /**\n * The number of items per page.\n */\n @Input() pageSize: number;\n\n /**\n * An event fired when the page is changed. Will fire only if collection size is set and all values are valid.\n *\n * Event payload is the number of the newly selected page.\n *\n * Page numbers start with `1`.\n */\n @Output() pageChange = new EventEmitter(true);\n\n /**\n * The pagination display size.\n *\n * Bootstrap currently supports small and large sizes.\n */\n @Input() size: 'sm' | 'lg';\n\n constructor(config: NgbPaginationConfig) {\n this.disabled = config.disabled;\n this.boundaryLinks = config.boundaryLinks;\n this.directionLinks = config.directionLinks;\n this.ellipses = config.ellipses;\n this.maxSize = config.maxSize;\n this.pageSize = config.pageSize;\n this.rotate = config.rotate;\n this.size = config.size;\n }\n\n hasPrevious(): boolean { return this.page > 1; }\n\n hasNext(): boolean { return this.page < this.pageCount; }\n\n nextDisabled(): boolean { return !this.hasNext() || this.disabled; }\n\n previousDisabled(): boolean { return !this.hasPrevious() || this.disabled; }\n\n selectPage(pageNumber: number): void { this._updatePages(pageNumber); }\n\n ngOnChanges(changes: SimpleChanges): void { this._updatePages(this.page); }\n\n isEllipsis(pageNumber): boolean { return pageNumber === -1; }\n\n /**\n * Appends ellipses and first/last page number to the displayed pages\n */\n private _applyEllipses(start: number, end: number) {\n if (this.ellipses) {\n if (start > 0) {\n if (start > 1) {\n this.pages.unshift(-1);\n }\n this.pages.unshift(1);\n }\n if (end < this.pageCount) {\n if (end < (this.pageCount - 1)) {\n this.pages.push(-1);\n }\n this.pages.push(this.pageCount);\n }\n }\n }\n\n /**\n * Rotates page numbers based on maxSize items visible.\n * Currently selected page stays in the middle:\n *\n * Ex. for selected page = 6:\n * [5,*6*,7] for maxSize = 3\n * [4,5,*6*,7] for maxSize = 4\n */\n private _applyRotation(): [number, number] {\n let start = 0;\n let end = this.pageCount;\n let leftOffset = Math.floor(this.maxSize / 2);\n let rightOffset = this.maxSize % 2 === 0 ? leftOffset - 1 : leftOffset;\n\n if (this.page <= leftOffset) {\n // very beginning, no rotation -> [0..maxSize]\n end = this.maxSize;\n } else if (this.pageCount - this.page < leftOffset) {\n // very end, no rotation -> [len-maxSize..len]\n start = this.pageCount - this.maxSize;\n } else {\n // rotate\n start = this.page - leftOffset - 1;\n end = this.page + rightOffset;\n }\n\n return [start, end];\n }\n\n /**\n * Paginates page numbers based on maxSize items per page.\n */\n private _applyPagination(): [number, number] {\n let page = Math.ceil(this.page / this.maxSize) - 1;\n let start = page * this.maxSize;\n let end = start + this.maxSize;\n\n return [start, end];\n }\n\n private _setPageInRange(newPageNo) {\n const prevPageNo = this.page;\n this.page = getValueInRange(newPageNo, this.pageCount, 1);\n\n if (this.page !== prevPageNo && isNumber(this.collectionSize)) {\n this.pageChange.emit(this.page);\n }\n }\n\n private _updatePages(newPage: number) {\n this.pageCount = Math.ceil(this.collectionSize / this.pageSize);\n\n if (!isNumber(this.pageCount)) {\n this.pageCount = 0;\n }\n\n // fill-in model needed to render pages\n this.pages.length = 0;\n for (let i = 1; i <= this.pageCount; i++) {\n this.pages.push(i);\n }\n\n // set page within 1..max range\n this._setPageInRange(newPage);\n\n // apply maxSize if necessary\n if (this.maxSize > 0 && this.pageCount > this.maxSize) {\n let start = 0;\n let end = this.pageCount;\n\n // either paginating or rotating page numbers\n if (this.rotate) {\n [start, end] = this._applyRotation();\n } else {\n [start, end] = this._applyPagination();\n }\n\n this.pages = this.pages.slice(start, end);\n\n // adding ellipses\n this._applyEllipses(start, end);\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {\n NgbPagination,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination';\n\nexport {\n NgbPagination,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination';\nexport {NgbPaginationConfig} from './pagination-config';\n\nconst DIRECTIVES = [\n NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber,\n NgbPaginationPrevious\n];\n\n@NgModule({declarations: DIRECTIVES, exports: DIRECTIVES, imports: [CommonModule]})\nexport class NgbPaginationModule {\n}\n","import {Observable, merge} from 'rxjs';\nimport {share, filter, delay, map} from 'rxjs/operators';\n\nexport class Trigger {\n constructor(public open: string, public close?: string) {\n if (!close) {\n this.close = open;\n }\n }\n\n isManual() { return this.open === 'manual' || this.close === 'manual'; }\n}\n\nconst DEFAULT_ALIASES = {\n 'hover': ['mouseenter', 'mouseleave'],\n 'focus': ['focusin', 'focusout'],\n};\n\nexport function parseTriggers(triggers: string, aliases = DEFAULT_ALIASES): Trigger[] {\n const trimmedTriggers = (triggers || '').trim();\n\n if (trimmedTriggers.length === 0) {\n return [];\n }\n\n const parsedTriggers = trimmedTriggers.split(/\\s+/).map(trigger => trigger.split(':')).map((triggerPair) => {\n let alias = aliases[triggerPair[0]] || triggerPair;\n return new Trigger(alias[0], alias[1]);\n });\n\n const manualTriggers = parsedTriggers.filter(triggerPair => triggerPair.isManual());\n\n if (manualTriggers.length > 1) {\n throw 'Triggers parse error: only one manual trigger is allowed';\n }\n\n if (manualTriggers.length === 1 && parsedTriggers.length > 1) {\n throw 'Triggers parse error: manual trigger can\\'t be mixed with other triggers';\n }\n\n return parsedTriggers;\n}\n\nexport function observeTriggers(renderer: any, nativeElement: any, triggers: Trigger[], isOpenedFn: () => boolean) {\n return new Observable(subscriber => {\n const listeners = [];\n const openFn = () => subscriber.next(true);\n const closeFn = () => subscriber.next(false);\n const toggleFn = () => subscriber.next(!isOpenedFn());\n\n triggers.forEach((trigger: Trigger) => {\n if (trigger.open === trigger.close) {\n listeners.push(renderer.listen(nativeElement, trigger.open, toggleFn));\n } else {\n listeners.push(\n renderer.listen(nativeElement, trigger.open, openFn),\n renderer.listen(nativeElement, trigger.close, closeFn));\n }\n });\n\n return () => { listeners.forEach(unsubscribeFn => unsubscribeFn()); };\n });\n}\n\nconst delayOrNoop = (time: number) => time > 0 ? delay(time) : (a: Observable) => a;\n\nexport function triggerDelay(openDelay: number, closeDelay: number, isOpenedFn: () => boolean) {\n return (input$: Observable) => {\n let pending = null;\n const filteredInput$ = input$.pipe(\n map(open => ({open})), filter(event => {\n const currentlyOpen = isOpenedFn();\n if (currentlyOpen !== event.open && (!pending || pending.open === currentlyOpen)) {\n pending = event;\n return true;\n }\n if (pending && pending.open !== event.open) {\n pending = null;\n }\n return false;\n }),\n share());\n const delayedOpen$ = filteredInput$.pipe(filter(event => event.open), delayOrNoop(openDelay));\n const delayedClose$ = filteredInput$.pipe(filter(event => !event.open), delayOrNoop(closeDelay));\n return merge(delayedOpen$, delayedClose$)\n .pipe(\n filter(event => {\n if (event === pending) {\n pending = null;\n return event.open !== isOpenedFn();\n }\n return false;\n }),\n map(event => event.open));\n };\n}\n\nexport function listenToTriggers(\n renderer: any, nativeElement: any, triggers: string, isOpenedFn: () => boolean, openFn, closeFn, openDelay = 0,\n closeDelay = 0) {\n const parsedTriggers = parseTriggers(triggers);\n\n if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) {\n return () => {};\n }\n\n const subscription = observeTriggers(renderer, nativeElement, parsedTriggers, isOpenedFn)\n .pipe(triggerDelay(openDelay, closeDelay, isOpenedFn))\n .subscribe(open => (open ? openFn() : closeFn()));\n\n return () => subscription.unsubscribe();\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the popovers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbPopoverConfig {\n autoClose: boolean | 'inside' | 'outside' = true;\n placement: PlacementArray = 'auto';\n triggers = 'click';\n container: string;\n disablePopover = false;\n popoverClass: string;\n openDelay = 0;\n closeDelay = 0;\n}\n","import {\n Component,\n Directive,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n OnChanges,\n Inject,\n Injector,\n Renderer2,\n ComponentRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n ComponentFactoryResolver,\n NgZone,\n SimpleChanges,\n ViewEncapsulation,\n ChangeDetectorRef,\n ApplicationRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {listenToTriggers} from '../util/triggers';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {positionElements, PlacementArray} from '../util/positioning';\nimport {PopupService} from '../util/popup';\n\nimport {NgbPopoverConfig} from './popover-config';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngb-popover-window',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'[class]': '\"popover\" + (popoverClass ? \" \" + popoverClass : \"\")', 'role': 'tooltip', '[id]': 'id'},\n template: `\n
\n

\n {{title}}\n \n

\n
`,\n styleUrls: ['./popover.scss']\n})\nexport class NgbPopoverWindow {\n @Input() title: undefined | string | TemplateRef;\n @Input() id: string;\n @Input() popoverClass: string;\n @Input() context: any;\n\n isTitleTemplate() { return this.title instanceof TemplateRef; }\n}\n\n/**\n * A lightweight and extensible directive for fancy popover creation.\n */\n@Directive({selector: '[ngbPopover]', exportAs: 'ngbPopover'})\nexport class NgbPopover implements OnInit, OnDestroy, OnChanges {\n /**\n * Indicates whether the popover should be closed on `Escape` key and inside/outside clicks:\n *\n * * `true` - closes on both outside and inside clicks as well as `Escape` presses\n * * `false` - disables the autoClose feature (NB: triggers still apply)\n * * `\"inside\"` - closes on inside clicks as well as Escape presses\n * * `\"outside\"` - closes on outside clicks (sometimes also achievable through triggers)\n * as well as `Escape` presses\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside';\n\n /**\n * The string content or a `TemplateRef` for the content to be displayed in the popover.\n *\n * If the title and the content are empty, the popover won't open.\n */\n @Input() ngbPopover: string | TemplateRef;\n\n /**\n * The title of the popover.\n *\n * If the title and the content are empty, the popover won't open.\n */\n @Input() popoverTitle: string | TemplateRef;\n\n /**\n * The preferred placement of the popover.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"auto\"` (same as the sequence above).\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * Specifies events that should trigger the tooltip.\n *\n * Supports a space separated list of event names.\n * For more details see the [triggers demo](#/components/popover/examples#triggers).\n */\n @Input() triggers: string;\n\n /**\n * A selector specifying the element the popover should be appended to.\n *\n * Currently only supports `body`.\n */\n @Input() container: string;\n\n /**\n * If `true`, popover is disabled and won't be displayed.\n *\n * @since 1.1.0\n */\n @Input() disablePopover: boolean;\n\n /**\n * An optional class applied to the popover window element.\n *\n * @since 2.2.0\n */\n @Input() popoverClass: string;\n\n /**\n * The opening delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() openDelay: number;\n\n /**\n * The closing delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() closeDelay: number;\n\n /**\n * An event emitted when the popover is shown. Contains no payload.\n */\n @Output() shown = new EventEmitter();\n\n /**\n * An event emitted when the popover is hidden. Contains no payload.\n */\n @Output() hidden = new EventEmitter();\n\n private _ngbPopoverWindowId = `ngb-popover-${nextId++}`;\n private _popupService: PopupService;\n private _windowRef: ComponentRef;\n private _unregisterListenersFn;\n private _zoneSubscription: any;\n private _isDisabled(): boolean {\n if (this.disablePopover) {\n return true;\n }\n if (!this.ngbPopover && !this.popoverTitle) {\n return true;\n }\n return false;\n }\n\n constructor(\n private _elementRef: ElementRef, private _renderer: Renderer2, injector: Injector,\n componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: NgbPopoverConfig,\n private _ngZone: NgZone, @Inject(DOCUMENT) private _document: any, private _changeDetector: ChangeDetectorRef,\n private _applicationRef: ApplicationRef) {\n this.autoClose = config.autoClose;\n this.placement = config.placement;\n this.triggers = config.triggers;\n this.container = config.container;\n this.disablePopover = config.disablePopover;\n this.popoverClass = config.popoverClass;\n this.openDelay = config.openDelay;\n this.closeDelay = config.closeDelay;\n this._popupService = new PopupService(\n NgbPopoverWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => {\n if (this._windowRef) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body', 'bs-popover');\n }\n });\n }\n\n /**\n * Opens the popover.\n *\n * This is considered to be a \"manual\" triggering.\n * The `context` is an optional value to be injected into the popover template when it is created.\n */\n open(context?: any) {\n if (!this._windowRef && !this._isDisabled()) {\n this._windowRef = this._popupService.open(this.ngbPopover, context);\n this._windowRef.instance.title = this.popoverTitle;\n this._windowRef.instance.context = context;\n this._windowRef.instance.popoverClass = this.popoverClass;\n this._windowRef.instance.id = this._ngbPopoverWindowId;\n\n this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbPopoverWindowId);\n\n if (this.container === 'body') {\n this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n // We need to detect changes, because we don't know where .open() might be called from.\n // Ex. opening popover from one of lifecycle hooks that run after the CD\n // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception\n this._windowRef.changeDetectorRef.detectChanges();\n\n // We need to mark for check, because popover won't work inside the OnPush component.\n // Ex. when we use expression like `{{ popover.isOpen() : 'opened' : 'closed' }}`\n // inside the template of an OnPush component and we change the popover from\n // open -> closed, the expression in question won't be updated unless we explicitly\n // mark the parent component to be checked.\n this._windowRef.changeDetectorRef.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.hidden,\n [this._windowRef.location.nativeElement]);\n this.shown.emit();\n }\n }\n\n /**\n * Closes the popover.\n *\n * This is considered to be a \"manual\" triggering of the popover.\n */\n close(): void {\n if (this._windowRef) {\n this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');\n this._popupService.close();\n this._windowRef = null;\n this.hidden.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the popover.\n *\n * This is considered to be a \"manual\" triggering of the popover.\n */\n toggle(): void {\n if (this._windowRef) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Returns `true`, if the popover is currently shown.\n */\n isOpen(): boolean { return this._windowRef != null; }\n\n ngOnInit() {\n this._unregisterListenersFn = listenToTriggers(\n this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this),\n this.close.bind(this), +this.openDelay, +this.closeDelay);\n }\n\n ngOnChanges(changes: SimpleChanges) {\n // close popover if title and content become empty, or disablePopover set to true\n if ((changes['ngbPopover'] || changes['popoverTitle'] || changes['disablePopover']) && this._isDisabled()) {\n this.close();\n }\n }\n\n ngOnDestroy() {\n this.close();\n // This check is needed as it might happen that ngOnDestroy is called before ngOnInit\n // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199\n if (this._unregisterListenersFn) {\n this._unregisterListenersFn();\n }\n this._zoneSubscription.unsubscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbPopover, NgbPopoverWindow} from './popover';\nimport {CommonModule} from '@angular/common';\n\nexport {NgbPopover} from './popover';\nexport {NgbPopoverConfig} from './popover-config';\nexport {Placement} from '../util/positioning';\n\n@NgModule({\n declarations: [NgbPopover, NgbPopoverWindow],\n exports: [NgbPopover],\n imports: [CommonModule],\n entryComponents: [NgbPopoverWindow]\n})\nexport class NgbPopoverModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the progress bars used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbProgressbarConfig {\n max = 100;\n animated = false;\n striped = false;\n type: string;\n showValue = false;\n height: string;\n}\n","import {Component, Input, ChangeDetectionStrategy} from '@angular/core';\nimport {getValueInRange} from '../util/util';\nimport {NgbProgressbarConfig} from './progressbar-config';\n\n/**\n * A directive that provides feedback on the progress of a workflow or an action.\n */\n@Component({\n selector: 'ngb-progressbar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n
\n
\n {{getPercentValue()}}%\n
\n
\n `\n})\nexport class NgbProgressbar {\n /**\n * The maximal value to be displayed in the progressbar.\n */\n @Input() max: number;\n\n /**\n * If `true`, the stripes on the progressbar are animated.\n *\n * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.\n */\n @Input() animated: boolean;\n\n /**\n * If `true`, the progress bars will be displayed as striped.\n */\n @Input() striped: boolean;\n\n /**\n * If `true`, the current percentage will be shown in the `xx%` format.\n */\n @Input() showValue: boolean;\n\n /**\n * The type of the progress bar.\n *\n * Currently Bootstrap supports `\"success\"`, `\"info\"`, `\"warning\"` or `\"danger\"`.\n */\n @Input() type: string;\n\n /**\n * The current value for the progress bar.\n *\n * Should be in the `[0, max]` range.\n */\n @Input() value = 0;\n\n /**\n * THe height of the progress bar.\n *\n * Accepts any valid CSS height values, ex. `\"2rem\"`\n */\n @Input() height: string;\n\n constructor(config: NgbProgressbarConfig) {\n this.max = config.max;\n this.animated = config.animated;\n this.striped = config.striped;\n this.type = config.type;\n this.showValue = config.showValue;\n this.height = config.height;\n }\n\n getValue() { return getValueInRange(this.value, this.max); }\n\n getPercentValue() { return 100 * this.getValue() / this.max; }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbProgressbar} from './progressbar';\n\nexport {NgbProgressbar} from './progressbar';\nexport {NgbProgressbarConfig} from './progressbar-config';\n\n@NgModule({declarations: [NgbProgressbar], exports: [NgbProgressbar], imports: [CommonModule]})\nexport class NgbProgressbarModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the ratings used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbRatingConfig {\n max = 10;\n readonly = false;\n resettable = false;\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Output,\n EventEmitter,\n OnInit,\n TemplateRef,\n OnChanges,\n SimpleChanges,\n ContentChild,\n forwardRef,\n ChangeDetectorRef\n} from '@angular/core';\nimport {NgbRatingConfig} from './rating-config';\nimport {getValueInRange} from '../util/util';\nimport {Key} from '../util/key';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\n/**\n * The context for the custom star display template defined in the `starTemplate`.\n */\nexport interface StarTemplateContext {\n /**\n * The star fill percentage, an integer in the `[0, 100]` range.\n */\n fill: number;\n\n /**\n * Index of the star, starts with `0`.\n */\n index: number;\n}\n\nconst NGB_RATING_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbRating),\n multi: true\n};\n\n/**\n * A directive that helps visualising and interacting with a star rating bar.\n */\n@Component({\n selector: 'ngb-rating',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'd-inline-flex',\n 'tabindex': '0',\n 'role': 'slider',\n 'aria-valuemin': '0',\n '[attr.aria-valuemax]': 'max',\n '[attr.aria-valuenow]': 'nextRate',\n '[attr.aria-valuetext]': 'ariaValueText()',\n '[attr.aria-disabled]': 'readonly ? true : null',\n '(blur)': 'handleBlur()',\n '(keydown)': 'handleKeyDown($event)',\n '(mouseleave)': 'reset()'\n },\n template: `\n {{ fill === 100 ? '★' : '☆' }}\n \n ({{ index < nextRate ? '*' : ' ' }})\n \n \n \n \n \n `,\n providers: [NGB_RATING_VALUE_ACCESSOR]\n})\nexport class NgbRating implements ControlValueAccessor,\n OnInit, OnChanges {\n contexts: StarTemplateContext[] = [];\n disabled = false;\n nextRate: number;\n\n\n /**\n * The maximal rating that can be given.\n */\n @Input() max: number;\n\n /**\n * The current rating. Could be a decimal value like `3.75`.\n */\n @Input() rate: number;\n\n /**\n * If `true`, the rating can't be changed.\n */\n @Input() readonly: boolean;\n\n /**\n * If `true`, the rating can be reset to `0` by mouse clicking currently set rating.\n */\n @Input() resettable: boolean;\n\n /**\n * The template to override the way each star is displayed.\n *\n * Alternatively put an `` as the only child of your `` element\n */\n @Input() starTemplate: TemplateRef;\n @ContentChild(TemplateRef, {static: false}) starTemplateFromContent: TemplateRef;\n\n /**\n * An event emitted when the user is hovering over a given rating.\n *\n * Event payload equals to the rating being hovered over.\n */\n @Output() hover = new EventEmitter();\n\n /**\n * An event emitted when the user stops hovering over a given rating.\n *\n * Event payload equals to the rating of the last item being hovered over.\n */\n @Output() leave = new EventEmitter();\n\n /**\n * An event emitted when the user selects a new rating.\n *\n * Event payload equals to the newly selected rating.\n */\n @Output() rateChange = new EventEmitter(true);\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n constructor(config: NgbRatingConfig, private _changeDetectorRef: ChangeDetectorRef) {\n this.max = config.max;\n this.readonly = config.readonly;\n }\n\n ariaValueText() { return `${this.nextRate} out of ${this.max}`; }\n\n enter(value: number): void {\n if (!this.readonly && !this.disabled) {\n this._updateState(value);\n }\n this.hover.emit(value);\n }\n\n handleBlur() { this.onTouched(); }\n\n handleClick(value: number) { this.update(this.resettable && this.rate === value ? 0 : value); }\n\n handleKeyDown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.ArrowDown:\n case Key.ArrowLeft:\n this.update(this.rate - 1);\n break;\n case Key.ArrowUp:\n case Key.ArrowRight:\n this.update(this.rate + 1);\n break;\n case Key.Home:\n this.update(0);\n break;\n case Key.End:\n this.update(this.max);\n break;\n default:\n return;\n }\n\n // note 'return' in default case\n event.preventDefault();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['rate']) {\n this.update(this.rate);\n }\n }\n\n ngOnInit(): void {\n this.contexts = Array.from({length: this.max}, (v, k) => ({fill: 0, index: k}));\n this._updateState(this.rate);\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n reset(): void {\n this.leave.emit(this.nextRate);\n this._updateState(this.rate);\n }\n\n setDisabledState(isDisabled: boolean) { this.disabled = isDisabled; }\n\n update(value: number, internalChange = true): void {\n const newRate = getValueInRange(value, this.max, 0);\n if (!this.readonly && !this.disabled && this.rate !== newRate) {\n this.rate = newRate;\n this.rateChange.emit(this.rate);\n }\n if (internalChange) {\n this.onChange(this.rate);\n this.onTouched();\n }\n this._updateState(this.rate);\n }\n\n writeValue(value) {\n this.update(value, false);\n this._changeDetectorRef.markForCheck();\n }\n\n private _getFillValue(index: number): number {\n const diff = this.nextRate - index;\n\n if (diff >= 1) {\n return 100;\n }\n if (diff < 1 && diff > 0) {\n return parseInt((diff * 100).toFixed(2), 10);\n }\n\n return 0;\n }\n\n private _updateState(nextValue: number) {\n this.nextRate = nextValue;\n this.contexts.forEach((context, index) => context.fill = this._getFillValue(index));\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbRating} from './rating';\n\nexport {NgbRating} from './rating';\nexport {NgbRatingConfig} from './rating-config';\n\n@NgModule({declarations: [NgbRating], exports: [NgbRating], imports: [CommonModule]})\nexport class NgbRatingModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbTabset`](#/components/tabset/api#NgbTabset) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the tabsets used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTabsetConfig {\n justify: 'start' | 'center' | 'end' | 'fill' | 'justified' = 'start';\n orientation: 'horizontal' | 'vertical' = 'horizontal';\n type: 'tabs' | 'pills' = 'tabs';\n}\n","import {\n Component,\n Input,\n ContentChildren,\n QueryList,\n Directive,\n TemplateRef,\n AfterContentChecked,\n Output,\n EventEmitter\n} from '@angular/core';\nimport {NgbTabsetConfig} from './tabset-config';\n\nlet nextId = 0;\n\n/**\n * A directive to wrap tab titles that need to contain HTML markup or other directives.\n *\n * Alternatively you could use the `NgbTab.title` input for string titles.\n */\n@Directive({selector: 'ng-template[ngbTabTitle]'})\nexport class NgbTabTitle {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to wrap content to be displayed in a tab.\n */\n@Directive({selector: 'ng-template[ngbTabContent]'})\nexport class NgbTabContent {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive representing an individual tab.\n */\n@Directive({selector: 'ngb-tab'})\nexport class NgbTab implements AfterContentChecked {\n /**\n * The tab identifier.\n *\n * Must be unique for the entire document for proper accessibility support.\n */\n @Input() id = `ngb-tab-${nextId++}`;\n\n /**\n * The tab title.\n *\n * Use the [`NgbTabTitle`](#/components/tabset/api#NgbTabTitle) directive for non-string titles.\n */\n @Input() title: string;\n\n /**\n * If `true`, the current tab is disabled and can't be toggled.\n */\n @Input() disabled = false;\n\n titleTpl: NgbTabTitle | null;\n contentTpl: NgbTabContent | null;\n\n @ContentChildren(NgbTabTitle, {descendants: false}) titleTpls: QueryList;\n @ContentChildren(NgbTabContent, {descendants: false}) contentTpls: QueryList;\n\n ngAfterContentChecked() {\n // We are using @ContentChildren instead of @ContentChild as in the Angular version being used\n // only @ContentChildren allows us to specify the {descendants: false} option.\n // Without {descendants: false} we are hitting bugs described in:\n // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240\n this.titleTpl = this.titleTpls.first;\n this.contentTpl = this.contentTpls.first;\n }\n}\n\n/**\n * The payload of the change event fired right before the tab change.\n */\nexport interface NgbTabChangeEvent {\n /**\n * The id of the currently active tab.\n */\n activeId: string;\n\n /**\n * The id of the newly selected tab.\n */\n nextId: string;\n\n /**\n * Calling this function will prevent tab switching.\n */\n preventDefault: () => void;\n}\n\n/**\n * A component that makes it easy to create tabbed interface.\n */\n@Component({\n selector: 'ngb-tabset',\n exportAs: 'ngbTabset',\n template: `\n \n
\n \n \n \n
\n
\n \n `\n})\nexport class NgbTabset implements AfterContentChecked {\n justifyClass: string;\n\n @ContentChildren(NgbTab) tabs: QueryList;\n\n /**\n * The identifier of the tab that should be opened **initially**.\n *\n * For subsequent tab switches use the `.select()` method and the `(tabChange)` event.\n */\n @Input() activeId: string;\n\n /**\n * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden.\n */\n @Input() destroyOnHide = true;\n\n /**\n * The horizontal alignment of the tabs with flexbox utilities.\n */\n @Input()\n set justify(className: 'start' | 'center' | 'end' | 'fill' | 'justified') {\n if (className === 'fill' || className === 'justified') {\n this.justifyClass = `nav-${className}`;\n } else {\n this.justifyClass = `justify-content-${className}`;\n }\n }\n\n /**\n * The orientation of the tabset.\n */\n @Input() orientation: 'horizontal' | 'vertical';\n\n /**\n * Type of navigation to be used for tabs.\n *\n * Currently Bootstrap supports only `\"tabs\"` and `\"pills\"`.\n *\n * Since `3.0.0` can also be an arbitrary string (ex. for custom themes).\n */\n @Input() type: 'tabs' | 'pills' | string;\n\n /**\n * A tab change event emitted right before the tab change happens.\n *\n * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details.\n */\n @Output() tabChange = new EventEmitter();\n\n constructor(config: NgbTabsetConfig) {\n this.type = config.type;\n this.justify = config.justify;\n this.orientation = config.orientation;\n }\n\n /**\n * Selects the tab with the given id and shows its associated content panel.\n *\n * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or\n * hidden depending on the `destroyOnHide` value.\n */\n select(tabId: string) {\n let selectedTab = this._getTabById(tabId);\n if (selectedTab && !selectedTab.disabled && this.activeId !== selectedTab.id) {\n let defaultPrevented = false;\n\n this.tabChange.emit(\n {activeId: this.activeId, nextId: selectedTab.id, preventDefault: () => { defaultPrevented = true; }});\n\n if (!defaultPrevented) {\n this.activeId = selectedTab.id;\n }\n }\n }\n\n ngAfterContentChecked() {\n // auto-correct activeId that might have been set incorrectly as input\n let activeTab = this._getTabById(this.activeId);\n this.activeId = activeTab ? activeTab.id : (this.tabs.length ? this.tabs.first.id : null);\n }\n\n private _getTabById(id: string): NgbTab {\n let tabsWithId: NgbTab[] = this.tabs.filter(tab => tab.id === id);\n return tabsWithId.length ? tabsWithId[0] : null;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbTabset, NgbTab, NgbTabContent, NgbTabTitle} from './tabset';\n\nexport {NgbTabset, NgbTab, NgbTabContent, NgbTabTitle, NgbTabChangeEvent} from './tabset';\nexport {NgbTabsetConfig} from './tabset-config';\n\nconst NGB_TABSET_DIRECTIVES = [NgbTabset, NgbTab, NgbTabContent, NgbTabTitle];\n\n@NgModule({declarations: NGB_TABSET_DIRECTIVES, exports: NGB_TABSET_DIRECTIVES, imports: [CommonModule]})\nexport class NgbTabsetModule {\n}\n","import {isNumber, toInteger} from '../util/util';\n\nexport class NgbTime {\n hour: number;\n minute: number;\n second: number;\n\n constructor(hour?: number, minute?: number, second?: number) {\n this.hour = toInteger(hour);\n this.minute = toInteger(minute);\n this.second = toInteger(second);\n }\n\n changeHour(step = 1) { this.updateHour((isNaN(this.hour) ? 0 : this.hour) + step); }\n\n updateHour(hour: number) {\n if (isNumber(hour)) {\n this.hour = (hour < 0 ? 24 + hour : hour) % 24;\n } else {\n this.hour = NaN;\n }\n }\n\n changeMinute(step = 1) { this.updateMinute((isNaN(this.minute) ? 0 : this.minute) + step); }\n\n updateMinute(minute: number) {\n if (isNumber(minute)) {\n this.minute = minute % 60 < 0 ? 60 + minute % 60 : minute % 60;\n this.changeHour(Math.floor(minute / 60));\n } else {\n this.minute = NaN;\n }\n }\n\n changeSecond(step = 1) { this.updateSecond((isNaN(this.second) ? 0 : this.second) + step); }\n\n updateSecond(second: number) {\n if (isNumber(second)) {\n this.second = second < 0 ? 60 + second % 60 : second % 60;\n this.changeMinute(Math.floor(second / 60));\n } else {\n this.second = NaN;\n }\n }\n\n isValid(checkSecs = true) {\n return isNumber(this.hour) && isNumber(this.minute) && (checkSecs ? isNumber(this.second) : true);\n }\n\n toString() { return `${this.hour || 0}:${this.minute || 0}:${this.second || 0}`; }\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the timepickers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTimepickerConfig {\n meridian = false;\n spinners = true;\n seconds = false;\n hourStep = 1;\n minuteStep = 1;\n secondStep = 1;\n disabled = false;\n readonlyInputs = false;\n size: 'small' | 'medium' | 'large' = 'medium';\n}\n","import {Injectable} from '@angular/core';\nimport {NgbTimeStruct} from './ngb-time-struct';\nimport {isInteger} from '../util/util';\n\nexport function NGB_DATEPICKER_TIME_ADAPTER_FACTORY() {\n return new NgbTimeStructAdapter();\n}\n\n/**\n * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and\n * any provided user time model `T`, ex. a string, a native date, etc.\n *\n * The adapter is used **only** for conversion when binding timepicker to a form control,\n * ex. `[(ngModel)]=\"userTimeModel\"`. Here `userTimeModel` can be of any type.\n *\n * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model.\n *\n * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example.\n *\n * @since 2.2.0\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY})\nexport abstract class NgbTimeAdapter {\n /**\n * Converts a user-model time of type `T` to an `NgbTimeStruct` for internal use.\n */\n abstract fromModel(value: T): NgbTimeStruct;\n\n /**\n * Converts an internal `NgbTimeStruct` time to a user-model time of type `T`.\n */\n abstract toModel(time: NgbTimeStruct): T;\n}\n\n@Injectable()\nexport class NgbTimeStructAdapter extends NgbTimeAdapter {\n /**\n * Converts a NgbTimeStruct value into NgbTimeStruct value\n */\n fromModel(time: NgbTimeStruct): NgbTimeStruct {\n return (time && isInteger(time.hour) && isInteger(time.minute)) ?\n {hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null} :\n null;\n }\n\n /**\n * Converts a NgbTimeStruct value into NgbTimeStruct value\n */\n toModel(time: NgbTimeStruct): NgbTimeStruct {\n return (time && isInteger(time.hour) && isInteger(time.minute)) ?\n {hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null} :\n null;\n }\n}\n","import {Inject, Injectable, LOCALE_ID} from '@angular/core';\nimport {FormStyle, getLocaleDayPeriods, TranslationWidth} from '@angular/common';\n\nexport function NGB_TIMEPICKER_I18N_FACTORY(locale) {\n return new NgbTimepickerI18nDefault(locale);\n}\n\n/**\n * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component.\n * The default implementation of this service honors the Angular locale, and uses the registered locale data,\n * as explained in the Angular i18n guide.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_TIMEPICKER_I18N_FACTORY, deps: [LOCALE_ID]})\nexport abstract class NgbTimepickerI18n {\n /**\n * Returns the name for the period before midday.\n */\n abstract getMorningPeriod(): string;\n\n /**\n * Returns the name for the period after midday.\n */\n abstract getAfternoonPeriod(): string;\n}\n\n@Injectable()\nexport class NgbTimepickerI18nDefault extends NgbTimepickerI18n {\n private _periods: [string, string];\n\n constructor(@Inject(LOCALE_ID) locale: string) {\n super();\n\n this._periods = getLocaleDayPeriods(locale, FormStyle.Standalone, TranslationWidth.Narrow);\n }\n\n getMorningPeriod(): string { return this._periods[0]; }\n\n getAfternoonPeriod(): string { return this._periods[1]; }\n}\n","import {\n ChangeDetectorRef,\n Component,\n forwardRef,\n Input,\n OnChanges,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {isInteger, isNumber, padNumber, toInteger} from '../util/util';\nimport {NgbTime} from './ngb-time';\nimport {NgbTimepickerConfig} from './timepicker-config';\nimport {NgbTimeAdapter} from './ngb-time-adapter';\nimport {NgbTimepickerI18n} from './timepicker-i18n';\n\nconst NGB_TIMEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbTimepicker),\n multi: true\n};\n\n/**\n * A directive that helps with wth picking hours, minutes and seconds.\n */\n@Component({\n selector: 'ngb-timepicker',\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./timepicker.scss'],\n template: `\n
\n
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
\n
\n \n
\n
\n
\n `,\n providers: [NGB_TIMEPICKER_VALUE_ACCESSOR]\n})\nexport class NgbTimepicker implements ControlValueAccessor,\n OnChanges {\n disabled: boolean;\n model: NgbTime;\n\n private _hourStep: number;\n private _minuteStep: number;\n private _secondStep: number;\n\n /**\n * Whether to display 12H or 24H mode.\n */\n @Input() meridian: boolean;\n\n /**\n * If `true`, the spinners above and below inputs are visible.\n */\n @Input() spinners: boolean;\n\n /**\n * If `true`, it is possible to select seconds.\n */\n @Input() seconds: boolean;\n\n /**\n * The number of hours to add/subtract when clicking hour spinners.\n */\n @Input()\n set hourStep(step: number) {\n this._hourStep = isInteger(step) ? step : this._config.hourStep;\n }\n\n get hourStep(): number { return this._hourStep; }\n\n /**\n * The number of minutes to add/subtract when clicking minute spinners.\n */\n @Input()\n set minuteStep(step: number) {\n this._minuteStep = isInteger(step) ? step : this._config.minuteStep;\n }\n\n get minuteStep(): number { return this._minuteStep; }\n\n /**\n * The number of seconds to add/subtract when clicking second spinners.\n */\n @Input()\n set secondStep(step: number) {\n this._secondStep = isInteger(step) ? step : this._config.secondStep;\n }\n\n get secondStep(): number { return this._secondStep; }\n\n /**\n * If `true`, the timepicker is readonly and can't be changed.\n */\n @Input() readonlyInputs: boolean;\n\n /**\n * The size of inputs and buttons.\n */\n @Input() size: 'small' | 'medium' | 'large';\n\n constructor(\n private readonly _config: NgbTimepickerConfig, private _ngbTimeAdapter: NgbTimeAdapter,\n private _cd: ChangeDetectorRef, public i18n: NgbTimepickerI18n) {\n this.meridian = _config.meridian;\n this.spinners = _config.spinners;\n this.seconds = _config.seconds;\n this.hourStep = _config.hourStep;\n this.minuteStep = _config.minuteStep;\n this.secondStep = _config.secondStep;\n this.disabled = _config.disabled;\n this.readonlyInputs = _config.readonlyInputs;\n this.size = _config.size;\n }\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n writeValue(value) {\n const structValue = this._ngbTimeAdapter.fromModel(value);\n this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime();\n if (!this.seconds && (!structValue || !isNumber(structValue.second))) {\n this.model.second = 0;\n }\n this._cd.markForCheck();\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean) { this.disabled = isDisabled; }\n\n changeHour(step: number) {\n this.model.changeHour(step);\n this.propagateModelChange();\n }\n\n changeMinute(step: number) {\n this.model.changeMinute(step);\n this.propagateModelChange();\n }\n\n changeSecond(step: number) {\n this.model.changeSecond(step);\n this.propagateModelChange();\n }\n\n updateHour(newVal: string) {\n const isPM = this.model.hour >= 12;\n const enteredHour = toInteger(newVal);\n if (this.meridian && (isPM && enteredHour < 12 || !isPM && enteredHour === 12)) {\n this.model.updateHour(enteredHour + 12);\n } else {\n this.model.updateHour(enteredHour);\n }\n this.propagateModelChange();\n }\n\n updateMinute(newVal: string) {\n this.model.updateMinute(toInteger(newVal));\n this.propagateModelChange();\n }\n\n updateSecond(newVal: string) {\n this.model.updateSecond(toInteger(newVal));\n this.propagateModelChange();\n }\n\n toggleMeridian() {\n if (this.meridian) {\n this.changeHour(12);\n }\n }\n\n formatHour(value: number) {\n if (isNumber(value)) {\n if (this.meridian) {\n return padNumber(value % 12 === 0 ? 12 : value % 12);\n } else {\n return padNumber(value % 24);\n }\n } else {\n return padNumber(NaN);\n }\n }\n\n formatMinSec(value: number) { return padNumber(value); }\n\n get isSmallSize(): boolean { return this.size === 'small'; }\n\n get isLargeSize(): boolean { return this.size === 'large'; }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) {\n this.model.second = 0;\n this.propagateModelChange(false);\n }\n }\n\n private propagateModelChange(touched = true) {\n if (touched) {\n this.onTouched();\n }\n if (this.model.isValid(this.seconds)) {\n this.onChange(\n this._ngbTimeAdapter.toModel({hour: this.model.hour, minute: this.model.minute, second: this.model.second}));\n } else {\n this.onChange(this._ngbTimeAdapter.toModel(null));\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbTimepicker} from './timepicker';\n\nexport {NgbTimepicker} from './timepicker';\nexport {NgbTimepickerConfig} from './timepicker-config';\nexport {NgbTimeStruct} from './ngb-time-struct';\nexport {NgbTimeAdapter} from './ngb-time-adapter';\nexport {NgbTimepickerI18n} from './timepicker-i18n';\n\n@NgModule({declarations: [NgbTimepicker], exports: [NgbTimepicker], imports: [CommonModule]})\nexport class NgbTimepickerModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * Interface used to type all toast config options. See `NgbToastConfig`.\n *\n * @since 5.0.0\n */\nexport interface NgbToastOptions {\n /**\n * Specify if the toast component should emit the `hide()` output\n * after a certain `delay` in ms.\n */\n autohide?: boolean;\n\n /**\n * Delay in ms after which the `hide()` output should be emitted.\n */\n delay?: number;\n\n /**\n * Type of aria-live attribute to be used.\n *\n * Could be one of these 2 values (as string):\n * - `polite` (default)\n * - `alert`\n */\n ariaLive?: 'polite' | 'alert';\n}\n\n/**\n * Configuration service for the NgbToast component. You can inject this service, typically in your root component,\n * and customize the values of its properties in order to provide default values for all the toasts used in the\n * application.\n *\n * @since 5.0.0\n */\n@Injectable({providedIn: 'root'})\nexport class NgbToastConfig implements NgbToastOptions {\n autohide = true;\n delay = 500;\n ariaLive: 'polite' | 'alert' = 'polite';\n}\n","import {\n AfterContentInit,\n Attribute,\n Component,\n ContentChild,\n Directive,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {NgbToastConfig} from './toast-config';\n\n/**\n * This directive allows the usage of HTML markup or other directives\n * inside of the toast's header.\n *\n * @since 5.0.0\n */\n@Directive({selector: '[ngbToastHeader]'})\nexport class NgbToastHeader {\n}\n\n/**\n * Toasts provide feedback messages as notifications to the user.\n * Goal is to mimic the push notifications available both on mobile and desktop operating systems.\n *\n * @since 5.0.0\n */\n@Component({\n selector: 'ngb-toast',\n exportAs: 'ngbToast',\n encapsulation: ViewEncapsulation.None,\n host: {\n 'role': 'alert',\n '[attr.aria-live]': 'ariaLive',\n 'aria-atomic': 'true',\n '[class.toast]': 'true',\n '[class.show]': 'true',\n '[class.autohide]': 'autohide',\n },\n template: `\n \n {{header}}\n \n \n
\n \n \n
\n
\n
\n \n
\n `,\n styleUrls: ['./toast.scss']\n})\nexport class NgbToast implements AfterContentInit,\n OnChanges {\n private _timeoutID;\n\n /**\n * Delay after which the toast will hide (ms).\n * default: `500` (ms) (inherited from NgbToastConfig)\n */\n @Input() delay: number;\n\n /**\n * Auto hide the toast after a delay in ms.\n * default: `true` (inherited from NgbToastConfig)\n */\n @Input() autohide: boolean;\n\n /**\n * Text to be used as toast's header.\n * Ignored if a ContentChild template is specified at the same time.\n */\n @Input() header: string;\n\n /**\n * A template like `` can be\n * used in the projected content to allow markup usage.\n */\n @ContentChild(NgbToastHeader, {read: TemplateRef, static: true}) contentHeaderTpl: TemplateRef| null = null;\n\n /**\n * An event fired immediately when toast's `hide()` method has been called.\n * It can only occur in 2 different scenarios:\n * - `autohide` timeout fires\n * - user clicks on a closing cross (×)\n *\n * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of\n * that.\n */\n @Output('hide') hideOutput = new EventEmitter();\n\n constructor(@Attribute('aria-live') public ariaLive: string, config: NgbToastConfig) {\n if (this.ariaLive == null) {\n this.ariaLive = config.ariaLive;\n }\n this.delay = config.delay;\n this.autohide = config.autohide;\n }\n\n ngAfterContentInit() { this._init(); }\n\n ngOnChanges(changes: SimpleChanges) {\n if ('autohide' in changes) {\n this._clearTimeout();\n this._init();\n }\n }\n\n hide() {\n this._clearTimeout();\n this.hideOutput.emit();\n }\n\n private _init() {\n if (this.autohide && !this._timeoutID) {\n this._timeoutID = setTimeout(() => this.hide(), this.delay);\n }\n }\n\n private _clearTimeout() {\n if (this._timeoutID) {\n clearTimeout(this._timeoutID);\n this._timeoutID = null;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\nimport {NgbToast, NgbToastHeader} from './toast';\n\nexport {NgbToast, NgbToastHeader} from './toast';\nexport {NgbToastConfig, NgbToastOptions} from './toast-config';\n\n@NgModule({declarations: [NgbToast, NgbToastHeader], imports: [CommonModule], exports: [NgbToast, NgbToastHeader]})\nexport class NgbToastModule {\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the tooltips used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTooltipConfig {\n autoClose: boolean | 'inside' | 'outside' = true;\n placement: PlacementArray = 'auto';\n triggers = 'hover focus';\n container: string;\n disableTooltip = false;\n tooltipClass: string;\n openDelay = 0;\n closeDelay = 0;\n}\n","import {\n Component,\n Directive,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n Inject,\n Injector,\n Renderer2,\n ComponentRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n ComponentFactoryResolver,\n NgZone,\n ViewEncapsulation,\n ChangeDetectorRef,\n ApplicationRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {listenToTriggers} from '../util/triggers';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {positionElements, PlacementArray} from '../util/positioning';\nimport {PopupService} from '../util/popup';\n\nimport {NgbTooltipConfig} from './tooltip-config';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngb-tooltip-window',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'[class]': '\"tooltip show\" + (tooltipClass ? \" \" + tooltipClass : \"\")', 'role': 'tooltip', '[id]': 'id'},\n template: `
`,\n styleUrls: ['./tooltip.scss']\n})\nexport class NgbTooltipWindow {\n @Input() id: string;\n @Input() tooltipClass: string;\n}\n\n/**\n * A lightweight and extensible directive for fancy tooltip creation.\n */\n@Directive({selector: '[ngbTooltip]', exportAs: 'ngbTooltip'})\nexport class NgbTooltip implements OnInit, OnDestroy {\n /**\n * Indicates whether the tooltip should be closed on `Escape` key and inside/outside clicks:\n *\n * * `true` - closes on both outside and inside clicks as well as `Escape` presses\n * * `false` - disables the autoClose feature (NB: triggers still apply)\n * * `\"inside\"` - closes on inside clicks as well as Escape presses\n * * `\"outside\"` - closes on outside clicks (sometimes also achievable through triggers)\n * as well as `Escape` presses\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside';\n\n /**\n * The preferred placement of the tooltip.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"auto\"` (same as the sequence above).\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * Specifies events that should trigger the tooltip.\n *\n * Supports a space separated list of event names.\n * For more details see the [triggers demo](#/components/tooltip/examples#triggers).\n */\n @Input() triggers: string;\n\n /**\n * A selector specifying the element the tooltip should be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * If `true`, tooltip is disabled and won't be displayed.\n *\n * @since 1.1.0\n */\n @Input() disableTooltip: boolean;\n\n /**\n * An optional class applied to the tooltip window element.\n *\n * @since 3.2.0\n */\n @Input() tooltipClass: string;\n\n /**\n * The opening delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() openDelay: number;\n\n /**\n * The closing delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() closeDelay: number;\n\n /**\n * An event emitted when the tooltip is shown. Contains no payload.\n */\n @Output() shown = new EventEmitter();\n /**\n * An event emitted when the popover is hidden. Contains no payload.\n */\n @Output() hidden = new EventEmitter();\n\n private _ngbTooltip: string | TemplateRef;\n private _ngbTooltipWindowId = `ngb-tooltip-${nextId++}`;\n private _popupService: PopupService;\n private _windowRef: ComponentRef;\n private _unregisterListenersFn;\n private _zoneSubscription: any;\n\n constructor(\n private _elementRef: ElementRef, private _renderer: Renderer2, injector: Injector,\n componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: NgbTooltipConfig,\n private _ngZone: NgZone, @Inject(DOCUMENT) private _document: any, private _changeDetector: ChangeDetectorRef,\n private _applicationRef: ApplicationRef) {\n this.autoClose = config.autoClose;\n this.placement = config.placement;\n this.triggers = config.triggers;\n this.container = config.container;\n this.disableTooltip = config.disableTooltip;\n this.tooltipClass = config.tooltipClass;\n this.openDelay = config.openDelay;\n this.closeDelay = config.closeDelay;\n this._popupService = new PopupService(\n NgbTooltipWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => {\n if (this._windowRef) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body', 'bs-tooltip');\n }\n });\n }\n\n /**\n * The string content or a `TemplateRef` for the content to be displayed in the tooltip.\n *\n * If the content if falsy, the tooltip won't open.\n */\n @Input()\n set ngbTooltip(value: string | TemplateRef) {\n this._ngbTooltip = value;\n if (!value && this._windowRef) {\n this.close();\n }\n }\n\n get ngbTooltip() { return this._ngbTooltip; }\n\n /**\n * Opens the tooltip.\n *\n * This is considered to be a \"manual\" triggering.\n * The `context` is an optional value to be injected into the tooltip template when it is created.\n */\n open(context?: any) {\n if (!this._windowRef && this._ngbTooltip && !this.disableTooltip) {\n this._windowRef = this._popupService.open(this._ngbTooltip, context);\n this._windowRef.instance.tooltipClass = this.tooltipClass;\n this._windowRef.instance.id = this._ngbTooltipWindowId;\n\n this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbTooltipWindowId);\n\n if (this.container === 'body') {\n this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n // We need to detect changes, because we don't know where .open() might be called from.\n // Ex. opening tooltip from one of lifecycle hooks that run after the CD\n // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception\n this._windowRef.changeDetectorRef.detectChanges();\n\n // We need to mark for check, because tooltip won't work inside the OnPush component.\n // Ex. when we use expression like `{{ tooltip.isOpen() : 'opened' : 'closed' }}`\n // inside the template of an OnPush component and we change the tooltip from\n // open -> closed, the expression in question won't be updated unless we explicitly\n // mark the parent component to be checked.\n this._windowRef.changeDetectorRef.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.hidden,\n [this._windowRef.location.nativeElement]);\n\n this.shown.emit();\n }\n }\n\n /**\n * Closes the tooltip.\n *\n * This is considered to be a \"manual\" triggering of the tooltip.\n */\n close(): void {\n if (this._windowRef != null) {\n this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');\n this._popupService.close();\n this._windowRef = null;\n this.hidden.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the tooltip.\n *\n * This is considered to be a \"manual\" triggering of the tooltip.\n */\n toggle(): void {\n if (this._windowRef) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Returns `true`, if the popover is currently shown.\n */\n isOpen(): boolean { return this._windowRef != null; }\n\n ngOnInit() {\n this._unregisterListenersFn = listenToTriggers(\n this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this),\n this.close.bind(this), +this.openDelay, +this.closeDelay);\n }\n\n ngOnDestroy() {\n this.close();\n // This check is needed as it might happen that ngOnDestroy is called before ngOnInit\n // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199\n if (this._unregisterListenersFn) {\n this._unregisterListenersFn();\n }\n this._zoneSubscription.unsubscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbTooltip, NgbTooltipWindow} from './tooltip';\n\nexport {NgbTooltipConfig} from './tooltip-config';\nexport {NgbTooltip} from './tooltip';\nexport {Placement} from '../util/positioning';\n\n@NgModule({declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow]})\nexport class NgbTooltipModule {\n}\n","import {Component, Input, OnChanges, ChangeDetectionStrategy, SimpleChanges, ViewEncapsulation} from '@angular/core';\nimport {regExpEscape, toString} from '../util/util';\n\n/**\n * A component that helps with text highlighting.\n *\n * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify\n * highlighting:\n *\n * Ex. `result=\"Alaska\"` and `term=\"as\"` will produce `Alaska`.\n */\n@Component({\n selector: 'ngb-highlight',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: `` +\n `{{part}}{{part}}` +\n ``, // template needs to be formatted in a certain way so we don't add empty text nodes\n styleUrls: ['./highlight.scss']\n})\nexport class NgbHighlight implements OnChanges {\n parts: string[];\n\n /**\n * The CSS class for `` elements wrapping the `term` inside the `result`.\n */\n @Input() highlightClass = 'ngb-highlight';\n\n /**\n * The text highlighting is added to.\n *\n * If the `term` is found inside this text, it will be highlighted.\n * If the `term` contains array then all the items from it will be highlighted inside the text.\n */\n @Input() result: string;\n\n /**\n * The term or array of terms to be highlighted.\n * Since version `v4.2.0` term could be a `string[]`\n */\n @Input() term: string | string[];\n\n ngOnChanges(changes: SimpleChanges) {\n const result = toString(this.result);\n\n const terms = Array.isArray(this.term) ? this.term : [this.term];\n const escapedTerms = terms.map(term => regExpEscape(toString(term))).filter(term => term);\n\n this.parts = escapedTerms.length ? result.split(new RegExp(`(${escapedTerms.join('|')})`, 'gmi')) : [result];\n }\n}\n","import {Component, Input, Output, EventEmitter, TemplateRef, OnInit} from '@angular/core';\n\nimport {toString} from '../util/util';\n\n/**\n * The context for the typeahead result template in case you want to override the default one.\n */\nexport interface ResultTemplateContext {\n /**\n * Your typeahead result item.\n */\n result: any;\n\n /**\n * Search term from the `` used to get current result.\n */\n term: string;\n}\n\n@Component({\n selector: 'ngb-typeahead-window',\n exportAs: 'ngbTypeaheadWindow',\n host: {'(mousedown)': '$event.preventDefault()', 'class': 'dropdown-menu show', 'role': 'listbox', '[id]': 'id'},\n template: `\n \n \n \n \n \n \n `\n})\nexport class NgbTypeaheadWindow implements OnInit {\n activeIdx = 0;\n\n /**\n * The id for the typeahead window. The id should be unique and the same\n * as the associated typeahead's id.\n */\n @Input() id: string;\n\n /**\n * Flag indicating if the first row should be active initially\n */\n @Input() focusFirst = true;\n\n /**\n * Typeahead match results to be displayed\n */\n @Input() results;\n\n /**\n * Search term used to get current results\n */\n @Input() term: string;\n\n /**\n * A function used to format a given result before display. This function should return a formatted string without any\n * HTML markup\n */\n @Input() formatter = toString;\n\n /**\n * A template to override a matching result default display\n */\n @Input() resultTemplate: TemplateRef;\n\n /**\n * Event raised when user selects a particular result row\n */\n @Output('select') selectEvent = new EventEmitter();\n\n @Output('activeChange') activeChangeEvent = new EventEmitter();\n\n hasActive() { return this.activeIdx > -1 && this.activeIdx < this.results.length; }\n\n getActive() { return this.results[this.activeIdx]; }\n\n markActive(activeIdx: number) {\n this.activeIdx = activeIdx;\n this._activeChanged();\n }\n\n next() {\n if (this.activeIdx === this.results.length - 1) {\n this.activeIdx = this.focusFirst ? (this.activeIdx + 1) % this.results.length : -1;\n } else {\n this.activeIdx++;\n }\n this._activeChanged();\n }\n\n prev() {\n if (this.activeIdx < 0) {\n this.activeIdx = this.results.length - 1;\n } else if (this.activeIdx === 0) {\n this.activeIdx = this.focusFirst ? this.results.length - 1 : -1;\n } else {\n this.activeIdx--;\n }\n this._activeChanged();\n }\n\n resetActive() {\n this.activeIdx = this.focusFirst ? 0 : -1;\n this._activeChanged();\n }\n\n select(item) { this.selectEvent.emit(item); }\n\n ngOnInit() { this.resetActive(); }\n\n private _activeChanged() {\n this.activeChangeEvent.emit(this.activeIdx >= 0 ? this.id + '-' + this.activeIdx : undefined);\n }\n}\n","import {Injectable, Inject, InjectionToken, OnDestroy} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\n\n\n// usefulness (and default value) of delay documented in Material's CDK\n// https://github.com/angular/material2/blob/6405da9b8e8532a7e5c854c920ee1815c275d734/src/cdk/a11y/live-announcer/live-announcer.ts#L50\nexport type ARIA_LIVE_DELAY_TYPE = number | null;\nexport const ARIA_LIVE_DELAY = new InjectionToken(\n 'live announcer delay', {providedIn: 'root', factory: ARIA_LIVE_DELAY_FACTORY});\nexport function ARIA_LIVE_DELAY_FACTORY(): number {\n return 100;\n}\n\n\nfunction getLiveElement(document: any, lazyCreate = false): HTMLElement | null {\n let element = document.body.querySelector('#ngb-live') as HTMLElement;\n\n if (element == null && lazyCreate) {\n element = document.createElement('div');\n\n element.setAttribute('id', 'ngb-live');\n element.setAttribute('aria-live', 'polite');\n element.setAttribute('aria-atomic', 'true');\n\n element.classList.add('sr-only');\n\n document.body.appendChild(element);\n }\n\n return element;\n}\n\n\n\n@Injectable({providedIn: 'root'})\nexport class Live implements OnDestroy {\n constructor(@Inject(DOCUMENT) private _document: any, @Inject(ARIA_LIVE_DELAY) private _delay: any) {}\n\n ngOnDestroy() {\n const element = getLiveElement(this._document);\n if (element) {\n element.parentElement.removeChild(element);\n }\n }\n\n say(message: string) {\n const element = getLiveElement(this._document, true);\n const delay = this._delay;\n\n element.textContent = '';\n const setText = () => element.textContent = message;\n if (delay === null) {\n setText();\n } else {\n setTimeout(setText, delay);\n }\n }\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the typeaheads used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTypeaheadConfig {\n container;\n editable = true;\n focusFirst = true;\n showHint = false;\n placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n}\n","import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Injector,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n Output,\n Renderer2,\n TemplateRef,\n ViewContainerRef,\n ApplicationRef\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {DOCUMENT} from '@angular/common';\nimport {BehaviorSubject, fromEvent, Observable, Subject, Subscription} from 'rxjs';\nimport {map, switchMap, tap} from 'rxjs/operators';\n\nimport {Live} from '../util/accessibility/live';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {Key} from '../util/key';\nimport {PopupService} from '../util/popup';\nimport {PlacementArray, positionElements} from '../util/positioning';\nimport {isDefined, toString} from '../util/util';\n\nimport {NgbTypeaheadConfig} from './typeahead-config';\nimport {NgbTypeaheadWindow, ResultTemplateContext} from './typeahead-window';\n\n\nconst NGB_TYPEAHEAD_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbTypeahead),\n multi: true\n};\n\n/**\n * An event emitted right before an item is selected from the result list.\n */\nexport interface NgbTypeaheadSelectItemEvent {\n /**\n * The item from the result list about to be selected.\n */\n item: any;\n\n /**\n * Calling this function will prevent item selection from happening.\n */\n preventDefault: () => void;\n}\n\nlet nextWindowId = 0;\n\n/**\n * A directive providing a simple way of creating powerful typeaheads from any text input.\n */\n@Directive({\n selector: 'input[ngbTypeahead]',\n exportAs: 'ngbTypeahead',\n host: {\n '(blur)': 'handleBlur()',\n '[class.open]': 'isPopupOpen()',\n '(keydown)': 'handleKeyDown($event)',\n '[autocomplete]': 'autocomplete',\n 'autocapitalize': 'off',\n 'autocorrect': 'off',\n 'role': 'combobox',\n 'aria-multiline': 'false',\n '[attr.aria-autocomplete]': 'showHint ? \"both\" : \"list\"',\n '[attr.aria-activedescendant]': 'activeDescendant',\n '[attr.aria-owns]': 'isPopupOpen() ? popupId : null',\n '[attr.aria-expanded]': 'isPopupOpen()'\n },\n providers: [NGB_TYPEAHEAD_VALUE_ACCESSOR]\n})\nexport class NgbTypeahead implements ControlValueAccessor,\n OnInit, OnDestroy {\n private _popupService: PopupService;\n private _subscription: Subscription;\n private _closed$ = new Subject();\n private _inputValueBackup: string;\n private _valueChanges: Observable;\n private _resubscribeTypeahead: BehaviorSubject;\n private _windowRef: ComponentRef;\n private _zoneSubscription: any;\n\n /**\n * The value for the `autocomplete` attribute for the `` element.\n *\n * Defaults to `\"off\"` to disable the native browser autocomplete, but you can override it if necessary.\n *\n * @since 2.1.0\n */\n @Input() autocomplete = 'off';\n\n /**\n * A selector specifying the element the typeahead popup will be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * If `true`, model values will not be restricted only to items selected from the popup.\n */\n @Input() editable: boolean;\n\n /**\n * If `true`, the first item in the result list will always stay focused while typing.\n */\n @Input() focusFirst: boolean;\n\n /**\n * The function that converts an item from the result list to a `string` to display in the `` field.\n *\n * It is called when the user selects something in the popup or the model value changes, so the input needs to\n * be updated.\n */\n @Input() inputFormatter: (item: any) => string;\n\n /**\n * The function that converts a stream of text values from the `` element to the stream of the array of items\n * to display in the typeahead popup.\n *\n * If the resulting observable emits a non-empty array - the popup will be shown. If it emits an empty array - the\n * popup will be closed.\n *\n * See the [basic example](#/components/typeahead/examples#basic) for more details.\n *\n * Note that the `this` argument is `undefined` so you need to explicitly bind it to a desired \"this\" target.\n */\n @Input() ngbTypeahead: (text: Observable) => Observable;\n\n /**\n * The function that converts an item from the result list to a `string` to display in the popup.\n *\n * Must be provided, if your `ngbTypeahead` returns something other than `Observable`.\n *\n * Alternatively for more complex markup in the popup you should use `resultTemplate`.\n */\n @Input() resultFormatter: (item: any) => string;\n\n /**\n * The template to override the way resulting items are displayed in the popup.\n *\n * See the [ResultTemplateContext](#/components/typeahead/api#ResultTemplateContext) for the template context.\n *\n * Also see the [template for results demo](#/components/typeahead/examples#template) for more details.\n */\n @Input() resultTemplate: TemplateRef;\n\n /**\n * If `true`, will show the hint in the `` when an item in the result list matches.\n */\n @Input() showHint: boolean;\n\n /**\n * The preferred placement of the typeahead.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray = 'bottom-left';\n\n /**\n * An event emitted right before an item is selected from the result list.\n *\n * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent).\n */\n @Output() selectItem = new EventEmitter();\n\n activeDescendant: string;\n popupId = `ngb-typeahead-${nextWindowId++}`;\n\n private _onTouched = () => {};\n private _onChange = (_: any) => {};\n\n constructor(\n private _elementRef: ElementRef, private _viewContainerRef: ViewContainerRef,\n private _renderer: Renderer2, private _injector: Injector, componentFactoryResolver: ComponentFactoryResolver,\n config: NgbTypeaheadConfig, ngZone: NgZone, private _live: Live, @Inject(DOCUMENT) private _document: any,\n private _ngZone: NgZone, private _changeDetector: ChangeDetectorRef, private _applicationRef: ApplicationRef) {\n this.container = config.container;\n this.editable = config.editable;\n this.focusFirst = config.focusFirst;\n this.showHint = config.showHint;\n this.placement = config.placement;\n\n this._valueChanges = fromEvent(_elementRef.nativeElement, 'input')\n .pipe(map($event => ($event.target as HTMLInputElement).value));\n\n this._resubscribeTypeahead = new BehaviorSubject(null);\n\n this._popupService = new PopupService(\n NgbTypeaheadWindow, _injector, _viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = ngZone.onStable.subscribe(() => {\n if (this.isPopupOpen()) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body');\n }\n });\n }\n\n ngOnInit(): void {\n const inputValues$ = this._valueChanges.pipe(tap(value => {\n this._inputValueBackup = this.showHint ? value : null;\n if (this.editable) {\n this._onChange(value);\n }\n }));\n const results$ = inputValues$.pipe(this.ngbTypeahead);\n const processedResults$ = results$.pipe(tap(() => {\n if (!this.editable) {\n this._onChange(undefined);\n }\n }));\n const userInput$ = this._resubscribeTypeahead.pipe(switchMap(() => processedResults$));\n this._subscription = this._subscribeToUserInput(userInput$);\n }\n\n ngOnDestroy(): void {\n this._closePopup();\n this._unsubscribeFromUserInput();\n this._zoneSubscription.unsubscribe();\n }\n\n registerOnChange(fn: (value: any) => any): void { this._onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this._onTouched = fn; }\n\n writeValue(value) {\n this._writeInputValue(this._formatItemForInput(value));\n if (this.showHint) {\n this._inputValueBackup = value;\n }\n }\n\n setDisabledState(isDisabled: boolean): void {\n this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\n }\n\n /**\n * Dismisses typeahead popup window\n */\n dismissPopup() {\n if (this.isPopupOpen()) {\n this._resubscribeTypeahead.next(null);\n this._closePopup();\n if (this.showHint && this._inputValueBackup !== null) {\n this._writeInputValue(this._inputValueBackup);\n }\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Returns true if the typeahead popup window is displayed\n */\n isPopupOpen() { return this._windowRef != null; }\n\n handleBlur() {\n this._resubscribeTypeahead.next(null);\n this._onTouched();\n }\n\n handleKeyDown(event: KeyboardEvent) {\n if (!this.isPopupOpen()) {\n return;\n }\n\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.ArrowDown:\n event.preventDefault();\n this._windowRef.instance.next();\n this._showHint();\n break;\n case Key.ArrowUp:\n event.preventDefault();\n this._windowRef.instance.prev();\n this._showHint();\n break;\n case Key.Enter:\n case Key.Tab:\n const result = this._windowRef.instance.getActive();\n if (isDefined(result)) {\n event.preventDefault();\n event.stopPropagation();\n this._selectResult(result);\n }\n this._closePopup();\n break;\n }\n }\n\n private _openPopup() {\n if (!this.isPopupOpen()) {\n this._inputValueBackup = this._elementRef.nativeElement.value;\n this._windowRef = this._popupService.open();\n this._windowRef.instance.id = this.popupId;\n this._windowRef.instance.selectEvent.subscribe((result: any) => this._selectResultClosePopup(result));\n this._windowRef.instance.activeChangeEvent.subscribe((activeId: string) => this.activeDescendant = activeId);\n\n if (this.container === 'body') {\n window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n this._changeDetector.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, 'outside', () => this.dismissPopup(), this._closed$,\n [this._elementRef.nativeElement, this._windowRef.location.nativeElement]);\n }\n }\n\n private _closePopup() {\n this._closed$.next();\n this._popupService.close();\n this._windowRef = null;\n this.activeDescendant = undefined;\n }\n\n private _selectResult(result: any) {\n let defaultPrevented = false;\n this.selectItem.emit({item: result, preventDefault: () => { defaultPrevented = true; }});\n this._resubscribeTypeahead.next(null);\n\n if (!defaultPrevented) {\n this.writeValue(result);\n this._onChange(result);\n }\n }\n\n private _selectResultClosePopup(result: any) {\n this._selectResult(result);\n this._closePopup();\n }\n\n private _showHint() {\n if (this.showHint && this._windowRef.instance.hasActive() && this._inputValueBackup != null) {\n const userInputLowerCase = this._inputValueBackup.toLowerCase();\n const formattedVal = this._formatItemForInput(this._windowRef.instance.getActive());\n\n if (userInputLowerCase === formattedVal.substr(0, this._inputValueBackup.length).toLowerCase()) {\n this._writeInputValue(this._inputValueBackup + formattedVal.substr(this._inputValueBackup.length));\n this._elementRef.nativeElement['setSelectionRange'].apply(\n this._elementRef.nativeElement, [this._inputValueBackup.length, formattedVal.length]);\n } else {\n this._writeInputValue(formattedVal);\n }\n }\n }\n\n private _formatItemForInput(item: any): string {\n return item != null && this.inputFormatter ? this.inputFormatter(item) : toString(item);\n }\n\n private _writeInputValue(value: string): void {\n this._renderer.setProperty(this._elementRef.nativeElement, 'value', toString(value));\n }\n\n private _subscribeToUserInput(userInput$: Observable): Subscription {\n return userInput$.subscribe((results) => {\n if (!results || results.length === 0) {\n this._closePopup();\n } else {\n this._openPopup();\n this._windowRef.instance.focusFirst = this.focusFirst;\n this._windowRef.instance.results = results;\n this._windowRef.instance.term = this._elementRef.nativeElement.value;\n if (this.resultFormatter) {\n this._windowRef.instance.formatter = this.resultFormatter;\n }\n if (this.resultTemplate) {\n this._windowRef.instance.resultTemplate = this.resultTemplate;\n }\n this._windowRef.instance.resetActive();\n\n // The observable stream we are subscribing to might have async steps\n // and if a component containing typeahead is using the OnPush strategy\n // the change detection turn wouldn't be invoked automatically.\n this._windowRef.changeDetectorRef.detectChanges();\n\n this._showHint();\n }\n\n // live announcer\n const count = results ? results.length : 0;\n this._live.say(count === 0 ? 'No results available' : `${count} result${count === 1 ? '' : 's'} available`);\n });\n }\n\n private _unsubscribeFromUserInput() {\n if (this._subscription) {\n this._subscription.unsubscribe();\n }\n this._subscription = null;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbHighlight} from './highlight';\nimport {NgbTypeaheadWindow} from './typeahead-window';\nimport {NgbTypeahead} from './typeahead';\n\nexport {NgbHighlight} from './highlight';\nexport {NgbTypeaheadWindow} from './typeahead-window';\nexport {NgbTypeaheadConfig} from './typeahead-config';\nexport {NgbTypeahead, NgbTypeaheadSelectItemEvent} from './typeahead';\n\n@NgModule({\n declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow],\n exports: [NgbTypeahead, NgbHighlight],\n imports: [CommonModule],\n entryComponents: [NgbTypeaheadWindow]\n})\nexport class NgbTypeaheadModule {\n}\n","import {NgModule} from '@angular/core';\n\nimport {SbCardModule} from './card/card.module';\nimport {NgbAccordionModule} from './accordion/accordion.module';\nimport {NgbAlertModule} from './alert/alert.module';\nimport {NgbButtonsModule} from './buttons/buttons.module';\nimport {NgbCarouselModule} from './carousel/carousel.module';\nimport {NgbCollapseModule} from './collapse/collapse.module';\nimport {NgbDatepickerModule} from './datepicker/datepicker.module';\nimport {NgbDropdownModule} from './dropdown/dropdown.module';\nimport {NgbModalModule} from './modal/modal.module';\nimport {NgbPaginationModule} from './pagination/pagination.module';\nimport {NgbPopoverModule} from './popover/popover.module';\nimport {NgbProgressbarModule} from './progressbar/progressbar.module';\nimport {NgbRatingModule} from './rating/rating.module';\nimport {NgbTabsetModule} from './tabset/tabset.module';\nimport {NgbTimepickerModule} from './timepicker/timepicker.module';\nimport {NgbToastModule} from './toast/toast.module';\nimport {NgbTooltipModule} from './tooltip/tooltip.module';\nimport {NgbTypeaheadModule} from './typeahead/typeahead.module';\n\n\n\nexport {\n NgbAccordion,\n NgbAccordionConfig,\n NgbAccordionModule,\n NgbPanel,\n NgbPanelChangeEvent,\n NgbPanelContent,\n NgbPanelHeader,\n NgbPanelHeaderContext,\n NgbPanelTitle,\n NgbPanelToggle\n} from './accordion/accordion.module';\nexport {SbCard, SbCardConfig, SbCardModule} from './card/card.module';\nexport {NgbAlert, NgbAlertConfig, NgbAlertModule} from './alert/alert.module';\nexport {NgbButtonLabel, NgbButtonsModule, NgbCheckBox, NgbRadio, NgbRadioGroup} from './buttons/buttons.module';\nexport {\n NgbCarousel,\n NgbCarouselConfig,\n NgbCarouselModule,\n NgbSlide,\n NgbSlideEvent,\n NgbSlideEventDirection,\n NgbSlideEventSource\n} from './carousel/carousel.module';\nexport {NgbCollapse, NgbCollapseModule} from './collapse/collapse.module';\nexport {\n NgbCalendar,\n NgbCalendarGregorian,\n NgbCalendarHebrew,\n NgbCalendarIslamicCivil,\n NgbCalendarIslamicUmalqura,\n NgbCalendarPersian,\n NgbDate,\n NgbDateAdapter,\n NgbDateNativeAdapter,\n NgbDateNativeUTCAdapter,\n NgbDateParserFormatter,\n NgbDatepicker,\n NgbDatepickerConfig,\n NgbDatepickerI18n,\n NgbDatepickerI18nHebrew,\n NgbDatepickerModule,\n NgbDatepickerNavigateEvent,\n NgbDateStruct,\n NgbInputDatepicker,\n NgbPeriod\n} from './datepicker/datepicker.module';\nexport {\n NgbDropdown,\n NgbDropdownAnchor,\n NgbDropdownConfig,\n NgbDropdownItem,\n NgbDropdownMenu,\n NgbDropdownModule,\n NgbDropdownToggle\n} from './dropdown/dropdown.module';\nexport {\n ModalDismissReasons,\n NgbActiveModal,\n NgbModal,\n NgbModalConfig,\n NgbModalModule,\n NgbModalOptions,\n NgbModalRef\n} from './modal/modal.module';\nexport {\n NgbPagination,\n NgbPaginationConfig,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationModule,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination/pagination.module';\nexport {NgbPopover, NgbPopoverConfig, NgbPopoverModule} from './popover/popover.module';\nexport {NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule} from './progressbar/progressbar.module';\nexport {NgbRating, NgbRatingConfig, NgbRatingModule} from './rating/rating.module';\nexport {\n NgbTab,\n NgbTabChangeEvent,\n NgbTabContent,\n NgbTabset,\n NgbTabsetConfig,\n NgbTabsetModule,\n NgbTabTitle\n} from './tabset/tabset.module';\nexport {\n NgbTimeAdapter,\n NgbTimepickerI18n,\n NgbTimepicker,\n NgbTimepickerConfig,\n NgbTimepickerModule,\n NgbTimeStruct\n} from './timepicker/timepicker.module';\nexport {NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule} from './toast/toast.module';\nexport {NgbTooltip, NgbTooltipConfig, NgbTooltipModule} from './tooltip/tooltip.module';\nexport {\n NgbHighlight,\n NgbTypeahead,\n NgbTypeaheadConfig,\n NgbTypeaheadModule,\n NgbTypeaheadSelectItemEvent\n} from './typeahead/typeahead.module';\nexport {Placement} from './util/positioning';\n\n\nconst NGB_MODULES = [\n SbCardModule, NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule,\n NgbDropdownModule, NgbModalModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule,\n NgbTabsetModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule\n];\n\n@NgModule({imports: NGB_MODULES, exports: NGB_MODULES})\nexport class NgbModule {\n}\n"],"names":["Injectable","EventEmitter","Component","ChangeDetectionStrategy","ViewEncapsulation","Renderer2","ElementRef","Input","Output","NgModule","CommonModule","Directive","TemplateRef","ContentChildren","Optional","Host","NG_VALUE_ACCESSOR","forwardRef","ChangeDetectorRef","nextId","Subject","BehaviorSubject","isPlatformBrowser","combineLatest","map","startWith","distinctUntilChanged","switchMap","timer","NEVER","takeUntil","Inject","PLATFORM_ID","NgZone","HostListener","tslib_1.__extends","LOCALE_ID","getLocaleDayNames","FormStyle","TranslationWidth","getLocaleMonthNames","formatDate","filter","take","fromEvent","merge","ViewChild","withLatestFrom","delay","race","tslib_1.__values","NGB_DATEPICKER_VALUE_ACCESSOR","NG_VALIDATORS","ViewContainerRef","ComponentFactoryResolver","DOCUMENT","mod","GREGORIAN_EPOCH","isGregorianLeapYear","fromGregorian","toGregorian","FormsModule","ContentChild","Injector","ApplicationRef","RendererFactory2","Observable","share","getLocaleDayPeriods","Attribute","InjectionToken","tap"],"mappings":";;;;;;IAAA;IACA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE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AE,gBAAgB,EAAE,kBAAkB;KAC3F;AAED;QAAA;SAEC;;oBAFAD,aAAQ,SAAC,EAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAC;;QAEtD,gBAAC;KAFD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/dist/ng-bootstrap/bundles/ng-bootstrap.umd.min.js b/dist/ng-bootstrap/bundles/ng-bootstrap.umd.min.js deleted file mode 100644 index 407d250..0000000 --- a/dist/ng-bootstrap/bundles/ng-bootstrap.umd.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("ngb",["exports","@angular/core","@angular/common","@angular/forms","rxjs","rxjs/operators"],e):e((t=t||self).ngb={},t.ng.core,t.ng.common,t.ng.forms,t.rxjs,t.rxjs.operators)}(this,function(t,e,n,o,i,r){"use strict";var a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function s(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var p=function(){return(p=Object.assign||function(t){for(var e,n=1,o=arguments.length;n0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}var c=function(){function t(){this.dismissible=!0,this.type="warning"}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),u=function(){function t(t,n,o){this._renderer=n,this._element=o,this.close=new e.EventEmitter,this.dismissible=t.dismissible,this.type=t.type}return t.prototype.closeHandler=function(){this.close.emit(null)},t.prototype.ngOnChanges=function(t){var e=t.type;e&&!e.firstChange&&(this._renderer.removeClass(this._element.nativeElement,"alert-"+e.previousValue),this._renderer.addClass(this._element.nativeElement,"alert-"+e.currentValue))},t.prototype.ngOnInit=function(){this._renderer.addClass(this._element.nativeElement,"alert-"+this.type)},t.decorators=[{type:e.Component,args:[{selector:"sb-card",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,host:{role:"alert",class:"alert","[class.alert-dismissible]":"dismissible"},template:'\n \n \n ',styles:["ngb-alert{display:block}"]}]}],t.ctorParameters=function(){return[{type:c},{type:e.Renderer2},{type:e.ElementRef}]},t.propDecorators={dismissible:[{type:e.Input}],type:[{type:e.Input}],close:[{type:e.Output}]},t}(),d=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[u],exports:[u],imports:[n.CommonModule],entryComponents:[u]}]}],t}();function h(t){return parseInt(""+t,10)}function f(t){return null!=t?""+t:""}function g(t,e,n){return void 0===n&&(n=0),Math.max(Math.min(t,e),n)}function m(t){return"string"==typeof t}function y(t){return!isNaN(h(t))}function b(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function v(t){return null!=t}function _(t){return y(t)?("0"+t).slice(-2):""}function w(t,e){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(e)>=0}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var D=function(){function t(){this.closeOthers=!1}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),I=0,C=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbPanelHeader]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),k=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbPanelTitle]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),x=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbPanelContent]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),R=function(){function t(){this.disabled=!1,this.id="ngb-panel-"+I++,this.isOpen=!1}return t.prototype.ngAfterContentChecked=function(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first},t.decorators=[{type:e.Directive,args:[{selector:"ngb-panel"}]}],t.propDecorators={disabled:[{type:e.Input}],id:[{type:e.Input}],title:[{type:e.Input}],type:[{type:e.Input}],titleTpls:[{type:e.ContentChildren,args:[k,{descendants:!1}]}],headerTpls:[{type:e.ContentChildren,args:[C,{descendants:!1}]}],contentTpls:[{type:e.ContentChildren,args:[x,{descendants:!1}]}]},t}(),E=function(){function t(t){this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new e.EventEmitter,this.type=t.type,this.closeOtherPanels=t.closeOthers}return t.prototype.isExpanded=function(t){return this.activeIds.indexOf(t)>-1},t.prototype.expand=function(t){this._changeOpenState(this._findPanelById(t),!0)},t.prototype.expandAll=function(){var t=this;this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(function(e){return t._changeOpenState(e,!0)})},t.prototype.collapse=function(t){this._changeOpenState(this._findPanelById(t),!1)},t.prototype.collapseAll=function(){var t=this;this.panels.forEach(function(e){t._changeOpenState(e,!1)})},t.prototype.toggle=function(t){var e=this._findPanelById(t);e&&this._changeOpenState(e,!e.isOpen)},t.prototype.ngAfterContentChecked=function(){var t=this;m(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(function(e){return e.isOpen=!e.disabled&&t.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0]),this._updateActiveIds())},t.prototype._changeOpenState=function(t,e){if(t&&!t.disabled&&t.isOpen!==e){var n=!1;this.panelChange.emit({panelId:t.id,nextState:e,preventDefault:function(){n=!0}}),n||(t.isOpen=e,e&&this.closeOtherPanels&&this._closeOthers(t.id),this._updateActiveIds())}},t.prototype._closeOthers=function(t){this.panels.forEach(function(e){e.id!==t&&(e.isOpen=!1)})},t.prototype._findPanelById=function(t){return this.panels.find(function(e){return e.id===t})},t.prototype._updateActiveIds=function(){this.activeIds=this.panels.filter(function(t){return t.isOpen&&!t.disabled}).map(function(t){return t.id})},t.decorators=[{type:e.Component,args:[{selector:"ngb-accordion",exportAs:"ngbAccordion",host:{class:"accordion",role:"tablist","[attr.aria-multiselectable]":"!closeOtherPanels"},template:'\n \n \n \n \n
\n \n
\n
\n \n
\n
\n
\n
\n '}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={panels:[{type:e.ContentChildren,args:[R]}],activeIds:[{type:e.Input}],closeOtherPanels:[{type:e.Input,args:["closeOthers"]}],destroyOnHide:[{type:e.Input}],type:[{type:e.Input}],panelChange:[{type:e.Output}]},t}(),S=function(){function t(t,e){this.accordion=t,this.panel=e}return Object.defineProperty(t.prototype,"ngbPanelToggle",{set:function(t){t&&(this.panel=t)},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"button[ngbPanelToggle]",host:{type:"button","[disabled]":"panel.disabled","[class.collapsed]":"!panel.isOpen","[attr.aria-expanded]":"panel.isOpen","[attr.aria-controls]":"panel.id","(click)":"accordion.toggle(panel.id)"}}]}],t.ctorParameters=function(){return[{type:E},{type:R,decorators:[{type:e.Optional},{type:e.Host}]}]},t.propDecorators={ngbPanelToggle:[{type:e.Input}]},t}(),T=[E,R,k,x,C,S],O=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:T,exports:T,imports:[n.CommonModule]}]}],t}(),N=function(){function t(){this.dismissible=!0,this.type="warning"}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),M=function(){function t(t,n,o){this._renderer=n,this._element=o,this.close=new e.EventEmitter,this.dismissible=t.dismissible,this.type=t.type}return t.prototype.closeHandler=function(){this.close.emit(null)},t.prototype.ngOnChanges=function(t){var e=t.type;e&&!e.firstChange&&(this._renderer.removeClass(this._element.nativeElement,"alert-"+e.previousValue),this._renderer.addClass(this._element.nativeElement,"alert-"+e.currentValue))},t.prototype.ngOnInit=function(){this._renderer.addClass(this._element.nativeElement,"alert-"+this.type)},t.decorators=[{type:e.Component,args:[{selector:"ngb-alert",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,host:{role:"alert",class:"alert","[class.alert-dismissible]":"dismissible"},template:'\n \n \n ',styles:["ngb-alert{display:block}"]}]}],t.ctorParameters=function(){return[{type:N},{type:e.Renderer2},{type:e.ElementRef}]},t.propDecorators={dismissible:[{type:e.Input}],type:[{type:e.Input}],close:[{type:e.Output}]},t}(),P=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[M],exports:[M],imports:[n.CommonModule],entryComponents:[M]}]}],t}(),j=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[ngbButtonLabel]",host:{"[class.btn]":"true","[class.active]":"active","[class.disabled]":"disabled","[class.focus]":"focused"}}]}],t}(),A={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return F}),multi:!0},F=function(){function t(t,e){this._label=t,this._cd=e,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=function(t){},this.onTouched=function(){}}return Object.defineProperty(t.prototype,"focused",{set:function(t){this._label.focused=t,t||this.onTouched()},enumerable:!0,configurable:!0}),t.prototype.onInputChange=function(t){var e=t.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(e),this.onTouched(),this.writeValue(e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t,this._label.disabled=t},t.prototype.writeValue=function(t){this.checked=t===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()},t.decorators=[{type:e.Directive,args:[{selector:"[ngbButton][type=checkbox]",host:{autocomplete:"off","[checked]":"checked","[disabled]":"disabled","(change)":"onInputChange($event)","(focus)":"focused = true","(blur)":"focused = false"},providers:[A]}]}],t.ctorParameters=function(){return[{type:j},{type:e.ChangeDetectorRef}]},t.propDecorators={disabled:[{type:e.Input}],valueChecked:[{type:e.Input}],valueUnChecked:[{type:e.Input}]},t}(),V={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return L}),multi:!0},H=0,L=function(){function t(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+H++,this.onChange=function(t){},this.onTouched=function(){}}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this.setDisabledState(t)},enumerable:!0,configurable:!0}),t.prototype.onRadioChange=function(t){this.writeValue(t.value),this.onChange(t.value)},t.prototype.onRadioValueUpdate=function(){this._updateRadiosValue()},t.prototype.register=function(t){this._radios.add(t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._disabled=t,this._updateRadiosDisabled()},t.prototype.unregister=function(t){this._radios.delete(t)},t.prototype.writeValue=function(t){this._value=t,this._updateRadiosValue()},t.prototype._updateRadiosValue=function(){var t=this;this._radios.forEach(function(e){return e.updateValue(t._value)})},t.prototype._updateRadiosDisabled=function(){this._radios.forEach(function(t){return t.updateDisabled()})},t.decorators=[{type:e.Directive,args:[{selector:"[ngbRadioGroup]",host:{role:"radiogroup"},providers:[V]}]}],t.propDecorators={name:[{type:e.Input}]},t}(),W=function(){function t(t,e,n,o,i){this._group=t,this._label=e,this._renderer=n,this._element=o,this._cd=i,this._value=null,this._group.register(this),this.updateDisabled()}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t;var e=t?t.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",e),this._group.onRadioValueUpdate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._group.disabled||this._disabled},set:function(t){this._disabled=!1!==t,this.updateDisabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focused",{set:function(t){this._label&&(this._label.focused=t),t||this._group.onTouched()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nameAttr",{get:function(){return this.name||this._group.name},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._group.unregister(this)},t.prototype.onChange=function(){this._group.onRadioChange(this)},t.prototype.updateValue=function(t){this.value!==t&&this._cd.markForCheck(),this._checked=this.value===t,this._label.active=this._checked},t.prototype.updateDisabled=function(){this._label.disabled=this.disabled},t.decorators=[{type:e.Directive,args:[{selector:"[ngbButton][type=radio]",host:{"[checked]":"checked","[disabled]":"disabled","[name]":"nameAttr","(change)":"onChange()","(focus)":"focused = true","(blur)":"focused = false"}}]}],t.ctorParameters=function(){return[{type:L},{type:j},{type:e.Renderer2},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},t.propDecorators={name:[{type:e.Input}],value:[{type:e.Input,args:["value"]}],disabled:[{type:e.Input,args:["disabled"]}]},t}(),$=[j,F,L,W],z=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:$,exports:$}]}],t}(),B=function(){function t(){this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),U=0,K=function(){function t(t){this.tplRef=t,this.id="ngb-slide-"+U++}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbSlide]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t.propDecorators={id:[{type:e.Input}]},t}(),q=function(){function t(t,n,o,r){this._platformId=n,this._ngZone=o,this._cd=r,this.NgbSlideEventSource=Z,this._destroy$=new i.Subject,this._interval$=new i.BehaviorSubject(0),this._mouseHover$=new i.BehaviorSubject(!1),this._pauseOnHover$=new i.BehaviorSubject(!1),this._pause$=new i.BehaviorSubject(!1),this._wrap$=new i.BehaviorSubject(!1),this.slide=new e.EventEmitter,this.interval=t.interval,this.wrap=t.wrap,this.keyboard=t.keyboard,this.pauseOnHover=t.pauseOnHover,this.showNavigationArrows=t.showNavigationArrows,this.showNavigationIndicators=t.showNavigationIndicators}return Object.defineProperty(t.prototype,"interval",{get:function(){return this._interval$.value},set:function(t){this._interval$.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrap",{get:function(){return this._wrap$.value},set:function(t){this._wrap$.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pauseOnHover",{get:function(){return this._pauseOnHover$.value},set:function(t){this._pauseOnHover$.next(t)},enumerable:!0,configurable:!0}),t.prototype.mouseEnter=function(){this._mouseHover$.next(!0)},t.prototype.mouseLeave=function(){this._mouseHover$.next(!1)},t.prototype.ngAfterContentInit=function(){var t=this;n.isPlatformBrowser(this._platformId)&&this._ngZone.runOutsideAngular(function(){var e=i.combineLatest(t.slide.pipe(r.map(function(t){return t.current}),r.startWith(t.activeId)),t._wrap$,t.slides.changes.pipe(r.startWith(null))).pipe(r.map(function(e){var n=l(e,2),o=n[0],i=n[1],r=t.slides.toArray(),a=t._getSlideIdxById(o);return i?r.length>1:a0?i.timer(t,t):i.NEVER}),r.takeUntil(t._destroy$)).subscribe(function(){return t._ngZone.run(function(){return t.next(Z.TIMER)})})}),this.slides.changes.pipe(r.takeUntil(this._destroy$)).subscribe(function(){return t._cd.markForCheck()})},t.prototype.ngAfterContentChecked=function(){var t=this._getSlideById(this.activeId);this.activeId=t?t.id:this.slides.length?this.slides.first.id:null},t.prototype.ngOnDestroy=function(){this._destroy$.next()},t.prototype.select=function(t,e){this._cycleToSelected(t,this._getSlideEventDirection(this.activeId,t),e)},t.prototype.prev=function(t){this._cycleToSelected(this._getPrevSlide(this.activeId),G.RIGHT,t)},t.prototype.next=function(t){this._cycleToSelected(this._getNextSlide(this.activeId),G.LEFT,t)},t.prototype.pause=function(){this._pause$.next(!0)},t.prototype.cycle=function(){this._pause$.next(!1)},t.prototype._cycleToSelected=function(t,e,n){var o=this._getSlideById(t);o&&o.id!==this.activeId&&(this.slide.emit({prev:this.activeId,current:o.id,direction:e,paused:this._pause$.value,source:n}),this.activeId=o.id),this._cd.markForCheck()},t.prototype._getSlideEventDirection=function(t,e){return this._getSlideIdxById(t)>this._getSlideIdxById(e)?G.RIGHT:G.LEFT},t.prototype._getSlideById=function(t){return this.slides.find(function(e){return e.id===t})},t.prototype._getSlideIdxById=function(t){return this.slides.toArray().indexOf(this._getSlideById(t))},t.prototype._getNextSlide=function(t){var e=this.slides.toArray(),n=this._getSlideIdxById(t);return n===e.length-1?this.wrap?e[0].id:e[e.length-1].id:e[n+1].id},t.prototype._getPrevSlide=function(t){var e=this.slides.toArray(),n=this._getSlideIdxById(t);return 0===n?this.wrap?e[e.length-1].id:e[0].id:e[n-1].id},t.decorators=[{type:e.Component,args:[{selector:"ngb-carousel",exportAs:"ngbCarousel",changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"carousel slide","[style.display]":'"block"',tabIndex:"0","(keydown.arrowLeft)":"keyboard && prev(NgbSlideEventSource.ARROW_LEFT)","(keydown.arrowRight)":"keyboard && next(NgbSlideEventSource.ARROW_RIGHT)"},template:'\n \n \n \n \n Previous\n \n \n \n Next\n \n '}]}],t.ctorParameters=function(){return[{type:B},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:e.NgZone},{type:e.ChangeDetectorRef}]},t.propDecorators={slides:[{type:e.ContentChildren,args:[K]}],activeId:[{type:e.Input}],interval:[{type:e.Input}],wrap:[{type:e.Input}],keyboard:[{type:e.Input}],pauseOnHover:[{type:e.Input}],showNavigationArrows:[{type:e.Input}],showNavigationIndicators:[{type:e.Input}],slide:[{type:e.Output}],mouseEnter:[{type:e.HostListener,args:["mouseenter"]}],mouseLeave:[{type:e.HostListener,args:["mouseleave"]}]},t}(),G={LEFT:"left",RIGHT:"right"},Z={TIMER:"timer",ARROW_LEFT:"arrowLeft",ARROW_RIGHT:"arrowRight",INDICATOR:"indicator"},Y=[q,K],X=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:Y,exports:Y,imports:[n.CommonModule]}]}],t}(),J=function(){function t(){this.collapsed=!1}return t.decorators=[{type:e.Directive,args:[{selector:"[ngbCollapse]",exportAs:"ngbCollapse",host:{"[class.collapse]":"true","[class.show]":"!collapsed"}}]}],t.propDecorators={collapsed:[{type:e.Input,args:["ngbCollapse"]}]},t}(),Q=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[J],exports:[J]}]}],t}(),tt=function(){function t(t,e,n){this.year=b(t)?t:null,this.month=b(e)?e:null,this.day=b(n)?n:null}return t.from=function(e){return e instanceof t?e:e?new t(e.year,e.month,e.day):null},t.prototype.equals=function(t){return t&&this.year===t.year&&this.month===t.month&&this.day===t.day},t.prototype.before=function(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.dayt.day:this.month>t.month:this.year>t.year)},t}();function et(t){return new tt(t.getFullYear(),t.getMonth()+1,t.getDate())}function nt(t){var e=new Date(t.year,t.month-1,t.day,12);return isNaN(e.getTime())||e.setFullYear(t.year),e}function ot(){return new rt}var it=function(){function t(){}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root",useFactory:ot}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:ot,token:t,providedIn:"root"}),t}(),rt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.getDaysPerWeek=function(){return 7},n.prototype.getMonths=function(){return[1,2,3,4,5,6,7,8,9,10,11,12]},n.prototype.getWeeksPerMonth=function(){return 6},n.prototype.getNext=function(t,e,n){void 0===e&&(e="d"),void 0===n&&(n=1);var o=nt(t);switch(e){case"y":return new tt(t.year+n,1,1);case"m":o=new Date(t.year,t.month+n-1,1,12);break;case"d":o.setDate(o.getDate()+n);break;default:return t}return et(o)},n.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},n.prototype.getWeekday=function(t){var e=nt(t).getDay();return 0===e?7:e},n.prototype.getWeekNumber=function(t,e){7===e&&(e=0);var n=nt(t[(11-e)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));var o=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((o-n.getTime())/864e5)/7)+1},n.prototype.getToday=function(){return et(new Date)},n.prototype.isValid=function(t){if(!(t&&b(t.year)&&b(t.month)&&b(t.day)))return!1;if(0===t.year)return!1;var e=nt(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day},n.decorators=[{type:e.Injectable}],n}(it);function at(t,e){return!function(t,e){return!t&&!e||!!t&&!!e&&t.equals(e)}(t,e)}function st(t,e){return!(!t&&!e)&&(!t||!e||(t.year!==e.year||t.month!==e.month))}function pt(t,e,n){return t&&e&&t.before(e)?e:t&&n&&t.after(n)?n:t}function lt(t,e){var n=e.minDate,o=e.maxDate,i=e.disabled,r=e.markDisabled;return!(!v(t)||i||r&&r(t,{year:t.year,month:t.month})||n&&t.before(n)||o&&t.after(o))}function ct(t,e,n,o,i){var r=n.displayMonths,a=n.months,s=a.splice(0,a.length);return Array.from({length:r},function(n,o){var r=t.getNext(e,"m",o);if(a[o]=null,!i){var p=s.findIndex(function(t){return t.firstDate.equals(r)});-1!==p&&(a[o]=s.splice(p,1)[0])}return r}).forEach(function(e,i){null===a[i]&&(a[i]=function(t,e,n,o,i){void 0===i&&(i={});var r=n.dayTemplateData,a=n.minDate,s=n.maxDate,p=n.firstDayOfWeek,l=n.markDisabled,c=n.outsideDays,u=t.getToday();i.firstDate=null,i.lastDate=null,i.number=e.month,i.year=e.year,i.weeks=i.weeks||[],i.weekdays=i.weekdays||[],e=function(t,e,n){var o=t.getDaysPerWeek(),i=new tt(e.year,e.month,1),r=t.getWeekday(i)%o;return t.getPrev(i,"d",(o+r-n)%o)}(t,e,p);for(var d=0;d0}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"select$",{get:function(){return this._select$.pipe(r.filter(function(t){return null!==t}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dayTemplateData",{set:function(t){this._state.dayTemplateData!==t&&this._nextState({dayTemplateData:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this._state.disabled!==t&&this._nextState({disabled:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayMonths",{set:function(t){b(t=h(t))&&t>0&&this._state.displayMonths!==t&&this._nextState({displayMonths:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstDayOfWeek",{set:function(t){b(t=h(t))&&t>=0&&this._state.firstDayOfWeek!==t&&this._nextState({firstDayOfWeek:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusVisible",{set:function(t){this._state.focusVisible===t||this._state.disabled||this._nextState({focusVisible:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{set:function(t){var e=this.toValidDate(t,null);at(this._state.maxDate,e)&&this._nextState({maxDate:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markDisabled",{set:function(t){this._state.markDisabled!==t&&this._nextState({markDisabled:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{set:function(t){var e=this.toValidDate(t,null);at(this._state.minDate,e)&&this._nextState({minDate:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigation",{set:function(t){this._state.navigation!==t&&this._nextState({navigation:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outsideDays",{set:function(t){this._state.outsideDays!==t&&this._nextState({outsideDays:t})},enumerable:!0,configurable:!0}),t.prototype.focus=function(t){!this._state.disabled&&this._calendar.isValid(t)&&at(this._state.focusDate,t)&&this._nextState({focusDate:t})},t.prototype.focusMove=function(t,e){this.focus(this._calendar.getNext(this._state.focusDate,t,e))},t.prototype.focusSelect=function(){lt(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})},t.prototype.open=function(t){var e=this.toValidDate(t,this._calendar.getToday());this._state.disabled||this._state.firstDate&&!st(this._state.firstDate,t)||this._nextState({firstDate:e})},t.prototype.select=function(t,e){void 0===e&&(e={});var n=this.toValidDate(t,null);this._state.disabled||(at(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),e.emitEvent&<(n,this._state)&&this._select$.next(n))},t.prototype.toValidDate=function(t,e){var n=tt.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e},t.prototype._nextState=function(t){var e=this._updateState(t);this._patchContexts(e),this._state=e,this._model$.next(this._state)},t.prototype._patchContexts=function(t){var e=t.months,n=t.displayMonths,o=t.selectedDate,i=t.focusDate,r=t.focusVisible,a=t.disabled,s=t.outsideDays;t.months.forEach(function(t){t.weeks.forEach(function(p){p.days.forEach(function(p){i&&(p.context.focused=i.equals(p.date)&&r),p.tabindex=!a&&p.date.equals(i)&&i.month===t.number?0:-1,!0===a&&(p.context.disabled=!0),void 0!==o&&(p.context.selected=null!==o&&o.equals(p.date)),t.number!==p.date.month&&(p.hidden="hidden"===s||"collapsed"===s||n>1&&p.date.after(e[0].firstDate)&&p.date.before(e[n-1].lastDate))})})})},t.prototype._updateState=function(t){var e,n,o,i,r=Object.assign({},this._state,t),a=r.firstDate;if(("minDate"in t||"maxDate"in t)&&(!function(t,e){if(e&&t&&e.before(t))throw new Error("'maxDate' "+e+" should be greater than 'minDate' "+t)}(r.minDate,r.maxDate),r.focusDate=pt(r.focusDate,r.minDate,r.maxDate),r.firstDate=pt(r.firstDate,r.minDate,r.maxDate),a=r.focusDate),"disabled"in t&&(r.focusVisible=!1),"selectedDate"in t&&0===this._state.months.length&&(a=r.selectedDate),"focusVisible"in t)return r;if("focusDate"in t&&(r.focusDate=pt(r.focusDate,r.minDate,r.maxDate),a=r.focusDate,0!==r.months.length&&!r.focusDate.before(r.firstDate)&&!r.focusDate.after(r.lastDate)))return r;if("firstDate"in t&&(r.firstDate=pt(r.firstDate,r.minDate,r.maxDate),a=r.firstDate),a){var s="dayTemplateData"in t||"firstDayOfWeek"in t||"markDisabled"in t||"minDate"in t||"maxDate"in t||"disabled"in t||"outsideDays"in t,p=ct(this._calendar,a,r,this._i18n,s);r.months=p,r.firstDate=p.length>0?p[0].firstDate:void 0,r.lastDate=p.length>0?p[p.length-1].lastDate:void 0,"selectedDate"in t&&!lt(r.selectedDate,r)&&(r.selectedDate=null),"firstDate"in t&&(void 0===r.focusDate||r.focusDate.before(r.firstDate)||r.focusDate.after(r.lastDate))&&(r.focusDate=a);var l=!this._state.firstDate||this._state.firstDate.year!==r.firstDate.year,c=!this._state.firstDate||this._state.firstDate.month!==r.firstDate.month;"select"===r.navigation?(("minDate"in t||"maxDate"in t||0===r.selectBoxes.years.length||l)&&(r.selectBoxes.years=function(t,e,n){if(!t)return[];var o=e&&e.year||t.year-10,i=n&&n.year||t.year+10;return Array.from({length:i-o+1},function(t,e){return o+e})}(r.firstDate,r.minDate,r.maxDate)),("minDate"in t||"maxDate"in t||0===r.selectBoxes.months.length||l)&&(r.selectBoxes.months=function(t,e,n,o){if(!e)return[];var i=t.getMonths(e.year);if(n&&e.year===n.year){var r=i.findIndex(function(t){return t===n.month});i=i.slice(r)}if(o&&e.year===o.year){r=i.findIndex(function(t){return t===o.month});i=i.slice(0,r+1)}return i}(this._calendar,r.firstDate,r.minDate,r.maxDate))):r.selectBoxes={years:[],months:[]},"arrows"!==r.navigation&&"select"!==r.navigation||!(c||l||"minDate"in t||"maxDate"in t||"disabled"in t)||(r.prevDisabled=r.disabled||(e=this._calendar,n=r.firstDate,o=r.minDate,i=e.getPrev(n,"m"),o&&(i.year===o.year&&i.month\n
\n
\n \n\n
\n \n \n
\n\n
\n \n
\n
\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n \n \n
\n
\n
\n\n \n ',providers:[Dt,ft,mt],styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"]}]}],t.ctorParameters=function(){return[{type:mt},{type:ft},{type:it},{type:dt},{type:bt},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:_t},{type:e.NgZone}]},t.propDecorators={_monthsEl:[{type:e.ViewChild,args:["months",{static:!0}]}],dayTemplate:[{type:e.Input}],dayTemplateData:[{type:e.Input}],displayMonths:[{type:e.Input}],firstDayOfWeek:[{type:e.Input}],footerTemplate:[{type:e.Input}],markDisabled:[{type:e.Input}],maxDate:[{type:e.Input}],minDate:[{type:e.Input}],navigation:[{type:e.Input}],outsideDays:[{type:e.Input}],showWeekdays:[{type:e.Input}],showWeekNumbers:[{type:e.Input}],startDate:[{type:e.Input}],navigate:[{type:e.Output}],select:[{type:e.Output}]},t}(),Ct=function(){function t(t){this.i18n=t,this.select=new e.EventEmitter}return t.prototype.doSelect=function(t){t.context.disabled||t.hidden||this.select.emit(t.date)},t.decorators=[{type:e.Component,args:[{selector:"ngb-datepicker-month-view",host:{role:"grid"},encapsulation:e.ViewEncapsulation.None,template:'\n
\n
\n
\n {{ i18n.getWeekdayShortName(w) }}\n
\n
\n \n
\n
{{ i18n.getWeekNumerals(week.number) }}
\n
\n \n \n \n
\n
\n
\n ',styles:["ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}"]}]}],t.ctorParameters=function(){return[{type:dt}]},t.propDecorators={dayTemplate:[{type:e.Input}],month:[{type:e.Input}],showWeekdays:[{type:e.Input}],showWeekNumbers:[{type:e.Input}],select:[{type:e.Output}]},t}(),kt=function(){function t(t){this.i18n=t,this.navigation=yt,this.months=[],this.navigate=new e.EventEmitter,this.select=new e.EventEmitter}return t.decorators=[{type:e.Component,args:[{selector:"ngb-datepicker-navigation",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,template:'\n
\n \n
\n \n \n\n \n
\n
\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n
\n
\n
\n \n
\n ',styles:["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"]}]}],t.ctorParameters=function(){return[{type:dt}]},t.propDecorators={date:[{type:e.Input}],disabled:[{type:e.Input}],months:[{type:e.Input}],showSelect:[{type:e.Input}],prevDisabled:[{type:e.Input}],nextDisabled:[{type:e.Input}],selectBoxes:[{type:e.Input}],navigate:[{type:e.Output}],select:[{type:e.Output}]},t}(),xt=function(t,e){return!!e&&e.some(function(e){return e.contains(t)})},Rt=function(t,e){return!e||null!=function(t,e){return e?t.closest(e):null}(t,e)},Et=!1;function St(t,e,n,o,a,s,p,c){n&&t.runOutsideAngular(function(){var u=i.fromEvent(e,"keydown").pipe(r.takeUntil(a),r.filter(function(t){return t.which===gt.Escape})),d=i.fromEvent(e,Et?"touchstart":"mousedown").pipe(r.map(function(t){var e=t.target;return!(t instanceof MouseEvent&&2===t.button||xt(e,p))&&("inside"===n?xt(e,s)&&Rt(e,c):"outside"===n?!xt(e,s):Rt(e,c)||!xt(e,s))}),r.takeUntil(a)),h=i.fromEvent(e,Et?"touchend":"mouseup").pipe(r.withLatestFrom(d),r.filter(function(t){var e=l(t,2);e[0];return e[1]}),r.delay(Et?16:0),r.takeUntil(a));i.race([u,h]).subscribe(function(){return t.run(o)})})}"undefined"!=typeof navigator&&(Et=!!navigator.userAgent&&/iPad|iPhone|iPod/.test(navigator.userAgent));var Tt=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Ot(t){var e=Array.from(t.querySelectorAll(Tt)).filter(function(t){return-1!==t.tabIndex});return[e[0],e[e.length-1]]}var Nt=function(t,e,n){void 0===n&&(n=!1);var o=i.fromEvent(t,"focusin").pipe(r.takeUntil(e),r.map(function(t){return t.target}));i.fromEvent(t,"keydown").pipe(r.takeUntil(e),r.filter(function(t){return t.which===gt.Tab}),r.withLatestFrom(o)).subscribe(function(e){var n=l(e,2),o=n[0],i=n[1],r=l(Ot(t),2),a=r[0],s=r[1];i!==a&&i!==t||!o.shiftKey||(s.focus(),o.preventDefault()),i!==s||o.shiftKey||(a.focus(),o.preventDefault())}),n&&i.fromEvent(t,"click").pipe(r.takeUntil(e),r.withLatestFrom(o),r.map(function(t){return t[1]})).subscribe(function(t){return t.focus()})},Mt=function(){function t(){}return t.prototype.getAllStyles=function(t){return window.getComputedStyle(t)},t.prototype.getStyle=function(t,e){return this.getAllStyles(t)[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},t.prototype.position=function(t,e){var n;void 0===e&&(e=!0);var o={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n={top:(n=t.getBoundingClientRect()).top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{var i=this.offsetParent(t);n=this.offset(t,!1),i!==document.documentElement&&(o=this.offset(i,!1)),o.top+=i.clientTop,o.left+=i.clientLeft}return n.top-=o.top,n.bottom-=o.top,n.left-=o.left,n.right-=o.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},t.prototype.offset=function(t,e){void 0===e&&(e=!0);var n=t.getBoundingClientRect(),o=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+o,bottom:n.bottom+o,left:n.left+i,right:n.right+i};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},t.prototype.positionElements=function(t,e,n,o){var i=l(n.split("-"),2),r=i[0],a=void 0===r?"top":r,s=i[1],p=void 0===s?"center":s,c=o?this.offset(t,!1):this.position(t,!1),u=this.getAllStyles(e),d=parseFloat(u.marginTop),h=parseFloat(u.marginBottom),f=parseFloat(u.marginLeft),g=parseFloat(u.marginRight),m=0,y=0;switch(a){case"top":m=c.top-(e.offsetHeight+d+h);break;case"bottom":m=c.top+c.height;break;case"left":y=c.left-(e.offsetWidth+f+g);break;case"right":y=c.left+c.width}switch(p){case"top":m=c.top;break;case"bottom":m=c.top+c.height-e.offsetHeight;break;case"left":y=c.left;break;case"right":y=c.left+c.width-e.offsetWidth;break;case"center":"top"===a||"bottom"===a?y=c.left+c.width/2-e.offsetWidth/2:m=c.top+c.height/2-e.offsetHeight/2}e.style.transform="translate("+Math.round(y)+"px, "+Math.round(m)+"px)";var b=e.getBoundingClientRect(),v=document.documentElement,_=window.innerHeight||v.clientHeight,w=window.innerWidth||v.clientWidth;return b.left>=0&&b.top>=0&&b.right<=w&&b.bottom<=_},t}(),Pt=/\s+/,jt=new Mt;function At(t,e,n,o,i){var r,a,s=Array.isArray(n)?n:n.split(Pt),p=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],c=e.classList,u=function(t){var e=l(t.split("-"),2),n=e[0],o=e[1],r=[];return i&&(r.push(i+"-"+n),o&&r.push(i+"-"+n+"-"+o),r.forEach(function(t){c.add(t)})),r};i&&p.forEach(function(t){c.remove(i+"-"+t)});var d=s.findIndex(function(t){return"auto"===t});d>=0&&p.forEach(function(t){null==s.find(function(e){return-1!==e.search("^"+t)})&&s.splice(d++,1,t)});var h,f=e.style;f.position="absolute",f.top="0",f.left="0",f["will-change"]="transform";var g=!1;try{for(var m=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}(s),y=m.next();!y.done;y=m.next()){var b=u(h=y.value);if(jt.positionElements(t,e,h,o)){g=!0;break}i&&b.forEach(function(t){c.remove(t)})}}catch(t){r={error:t}}finally{try{y&&!y.done&&(a=m.return)&&a.call(m)}finally{if(r)throw r.error}}return g||(u(h=s[0]),jt.positionElements(t,e,h,o)),h}function Ft(){return new Ht}var Vt=function(){function t(){}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root",useFactory:Ft}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:Ft,token:t,providedIn:"root"}),t}(),Ht=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.parse=function(t){if(t){var e=t.trim().split("-");if(1===e.length&&y(e[0]))return{year:h(e[0]),month:null,day:null};if(2===e.length&&y(e[0])&&y(e[1]))return{year:h(e[0]),month:h(e[1]),day:null};if(3===e.length&&y(e[0])&&y(e[1])&&y(e[2]))return{year:h(e[0]),month:h(e[1]),day:h(e[2])}}return null},n.prototype.format=function(t){return t?t.year+"-"+(y(t.month)?_(t.month):"")+"-"+(y(t.day)?_(t.day):""):""},n.decorators=[{type:e.Injectable}],n}(Vt),Lt={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return $t}),multi:!0},Wt={provide:o.NG_VALIDATORS,useExisting:e.forwardRef(function(){return $t}),multi:!0},$t=function(){function t(t,n,o,i,r,a,s,p,l,c,u){var d=this;this._parserFormatter=t,this._elRef=n,this._vcRef=o,this._renderer=i,this._cfr=r,this._ngZone=a,this._service=s,this._calendar=p,this._dateAdapter=l,this._document=c,this._changeDetector=u,this._cRef=null,this._disabled=!1,this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.dateSelect=new e.EventEmitter,this.navigate=new e.EventEmitter,this.closed=new e.EventEmitter,this._onChange=function(t){},this._onTouched=function(){},this._validatorChange=function(){},this._zoneSubscription=a.onStable.subscribe(function(){return d._updatePopupPosition()})}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=""===t||t&&"false"!==t,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)},enumerable:!0,configurable:!0}),t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.registerOnValidatorChange=function(t){this._validatorChange=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.validate=function(t){var e=t.value;if(null==e)return null;var n=this._fromDateStruct(this._dateAdapter.fromModel(e));return this._calendar.isValid(n)?this.minDate&&n.before(tt.from(this.minDate))?{ngbDate:{requiredBefore:this.minDate}}:this.maxDate&&n.after(tt.from(this.maxDate))?{ngbDate:{requiredAfter:this.maxDate}}:void 0:{ngbDate:{invalid:t.value}}},t.prototype.writeValue=function(t){this._model=this._fromDateStruct(this._dateAdapter.fromModel(t)),this._writeModelValue(this._model)},t.prototype.manualDateChange=function(t,e){void 0===e&&(e=!1);var n=t!==this._inputValue;n&&(this._inputValue=t,this._model=this._fromDateStruct(this._parserFormatter.parse(t))),!n&&e||this._onChange(this._model?this._dateAdapter.toModel(this._model):""===t?null:t),e&&this._model&&this._writeModelValue(this._model)},t.prototype.isOpen=function(){return!!this._cRef},t.prototype.open=function(){var t=this;if(!this.isOpen()){var e=this._cfr.resolveComponentFactory(It);this._cRef=this._vcRef.createComponent(e),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(function(e){t.writeValue(e),t._onChange(e),t._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),Nt(this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),St(this._ngZone,this._document,this.autoClose,function(){return t.close()},this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}},t.prototype.close=function(){this.isOpen()&&(this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck())},t.prototype.toggle=function(){this.isOpen()?this.close():this.open()},t.prototype.navigateTo=function(t){this.isOpen()&&this._cRef.instance.navigateTo(t)},t.prototype.onBlur=function(){this._onTouched()},t.prototype.ngOnChanges=function(t){(t.minDate||t.maxDate)&&this._validatorChange()},t.prototype.ngOnDestroy=function(){this.close(),this._zoneSubscription.unsubscribe()},t.prototype._applyDatepickerInputs=function(t){var e=this;["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t.startDate=this.startDate||this._model},t.prototype._applyPopupStyling=function(t){this._renderer.addClass(t,"dropdown-menu"),this._renderer.addClass(t,"show"),"body"===this.container&&this._renderer.addClass(t,"ngb-dp-body")},t.prototype._subscribeForDatepickerOutputs=function(t){var e=this;t.navigate.subscribe(function(t){return e.navigate.emit(t)}),t.select.subscribe(function(t){e.dateSelect.emit(t),!0!==e.autoClose&&"inside"!==e.autoClose||e.close()})},t.prototype._writeModelValue=function(t){var e=this._parserFormatter.format(t);this._inputValue=e,this._renderer.setProperty(this._elRef.nativeElement,"value",e),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(t)),this._onTouched())},t.prototype._fromDateStruct=function(t){var e=t?new tt(t.year,t.month,t.day):null;return this._calendar.isValid(e)?e:null},t.prototype._updatePopupPosition=function(){if(this._cRef){var t;if(t="string"==typeof this.positionTarget?window.document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!t)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");At(t,this._cRef.location.nativeElement,this.placement,"body"===this.container)}},t.decorators=[{type:e.Directive,args:[{selector:"input[ngbDatepicker]",exportAs:"ngbDatepicker",host:{"(input)":"manualDateChange($event.target.value)","(change)":"manualDateChange($event.target.value, true)","(blur)":"onBlur()","[disabled]":"disabled"},providers:[Lt,Wt,ft]}]}],t.ctorParameters=function(){return[{type:Vt},{type:e.ElementRef},{type:e.ViewContainerRef},{type:e.Renderer2},{type:e.ComponentFactoryResolver},{type:e.NgZone},{type:ft},{type:it},{type:_t},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:e.ChangeDetectorRef}]},t.propDecorators={autoClose:[{type:e.Input}],dayTemplate:[{type:e.Input}],dayTemplateData:[{type:e.Input}],displayMonths:[{type:e.Input}],firstDayOfWeek:[{type:e.Input}],footerTemplate:[{type:e.Input}],markDisabled:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],navigation:[{type:e.Input}],outsideDays:[{type:e.Input}],placement:[{type:e.Input}],showWeekdays:[{type:e.Input}],showWeekNumbers:[{type:e.Input}],startDate:[{type:e.Input}],container:[{type:e.Input}],positionTarget:[{type:e.Input}],dateSelect:[{type:e.Output}],navigate:[{type:e.Output}],closed:[{type:e.Output}],disabled:[{type:e.Input}]},t}(),zt=function(){function t(t){this.i18n=t}return t.prototype.isMuted=function(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)},t.decorators=[{type:e.Component,args:[{selector:"[ngbDatepickerDayView]",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,host:{class:"btn-light","[class.bg-primary]":"selected","[class.text-white]":"selected","[class.text-muted]":"isMuted()","[class.outside]":"isMuted()","[class.active]":"focused"},template:"{{ i18n.getDayNumerals(date) }}",styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"]}]}],t.ctorParameters=function(){return[{type:dt}]},t.propDecorators={currentMonth:[{type:e.Input}],date:[{type:e.Input}],disabled:[{type:e.Input}],focused:[{type:e.Input}],selected:[{type:e.Input}]},t}(),Bt=function(){function t(t){this.i18n=t,this.select=new e.EventEmitter}return t.prototype.changeMonth=function(t){this.select.emit(new tt(this.date.year,h(t),1))},t.prototype.changeYear=function(t){this.select.emit(new tt(h(t),this.date.month,1))},t.decorators=[{type:e.Component,args:[{selector:"ngb-datepicker-navigation-select",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,template:'\n \n \n \n \n \n ',styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}"]}]}],t.ctorParameters=function(){return[{type:dt}]},t.propDecorators={date:[{type:e.Input}],disabled:[{type:e.Input}],months:[{type:e.Input}],years:[{type:e.Input}],select:[{type:e.Output}]},t}(),Ut=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.getDaysPerWeek=function(){return 7},n.prototype.getMonths=function(){return[1,2,3,4,5,6,7,8,9,10,11,12]},n.prototype.getWeeksPerMonth=function(){return 6},n.prototype.getNext=function(t,e,n){switch(void 0===e&&(e="d"),void 0===n&&(n=1),t=new tt(t.year,t.month,t.day),e){case"y":return(t=this._setYear(t,t.year+n)).month=1,t.day=1,t;case"m":return(t=this._setMonth(t,t.month+n)).day=1,t;case"d":return this._setDay(t,t.day+n);default:return t}},n.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},n.prototype.getWeekday=function(t){var e=this.toGregorian(t).getDay();return 0===e?7:e},n.prototype.getWeekNumber=function(t,e){7===e&&(e=0);var n=t[(11-e)%7],o=this.toGregorian(n);o.setDate(o.getDate()+4-(o.getDay()||7));var i=o.getTime(),r=this.toGregorian(new tt(n.year,1,1));return Math.floor(Math.round((i-r.getTime())/864e5)/7)+1},n.prototype.getToday=function(){return this.fromGregorian(new Date)},n.prototype.isValid=function(t){return t&&y(t.year)&&y(t.month)&&y(t.day)&&!isNaN(this.toGregorian(t).getTime())},n.prototype._setDay=function(t,e){e=+e;var n=this.getDaysPerMonth(t.month,t.year);if(e<=0)for(;e<=0;)t=this._setMonth(t,t.month-1),e+=n=this.getDaysPerMonth(t.month,t.year);else if(e>n)for(;e>n;)e-=n,t=this._setMonth(t,t.month+1),n=this.getDaysPerMonth(t.month,t.year);return t.day=e,t},n.prototype._setMonth=function(t,e){return e=+e,t.year=t.year+Math.floor((e-1)/12),t.month=Math.floor(((e-1)%12+12)%12)+1,t},n.prototype._setYear=function(t,e){return t.year=+e,t},n.decorators=[{type:e.Injectable}],n}(it);function Kt(t){var e=t.getFullYear();return e%4==0&&e%100!=0||e%400==0}function qt(t,e){return t-e*Math.floor(t/e)}var Gt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.fromGregorian=function(t){var e,n=t.getFullYear(),o=t.getMonth(),i=t.getDate(),r=1721424.5+365*(n-1)+Math.floor((n-1)/4)+-Math.floor((n-1)/100)+Math.floor((n-1)/400)+Math.floor((367*(o+1)-362)/12+(o+1<=2?0:Kt(t)?-1:-2)+i),a=(r=Math.floor(r)+.5)-1948439.5,s=Math.floor((30*a+10646)/10631),p=Math.ceil((a-29-(354*((e=s)-1)+Math.floor((3+11*e)/30)))/29.5);p=Math.min(p,11);var l=Math.ceil(a-function(t,e){return Math.ceil(29.5*e)+354*(t-1)+Math.floor((3+11*t)/30)}(s,p))+1;return new tt(s,p+1,l)},n.prototype.toGregorian=function(t){var e=t.year,n=t.month-1,o=t.day+Math.ceil(29.5*n)+354*(e-1)+Math.floor((3+11*e)/30)+1948439.5-1,i=Math.floor(o-.5)+.5,r=i-1721425.5,a=Math.floor(r/146097),s=qt(r,146097),p=Math.floor(s/36524),l=qt(s,36524),c=Math.floor(l/1461),u=qt(l,1461),d=Math.floor(u/365),h=400*a+100*p+4*c+d;4!==p&&4!==d&&h++;var f=i-(1721425.5+365*(h-1)+Math.floor((h-1)/4)-Math.floor((h-1)/100)+Math.floor((h-1)/400)),g=i<1721424.5+365*(h-1)+Math.floor((h-1)/4)-Math.floor((h-1)/100)+Math.floor((h-1)/400)+Math.floor(739/12+(Kt(new Date(h,3,1))?-1:-2)+1)?0:Kt(new Date(h,3,1))?1:2,m=Math.floor((12*(f+g)+373)/367),y=1721424.5+365*(h-1)+Math.floor((h-1)/4)-Math.floor((h-1)/100)+Math.floor((h-1)/400)+Math.floor((367*m-362)/12+(m<=2?0:Kt(new Date(h,m-1,1))?-1:-2)+1);return new Date(h,m-1,i-y+1)},n.prototype.getDaysPerMonth=function(t,e){e+=Math.floor(t/13);var n=29+(t=(t-1)%12+1)%2;return 12===t&&(14+11*e)%30<11&&n++,n},n.decorators=[{type:e.Injectable}],n}(Ut),Zt=new Date(1882,10,12),Yt=new Date(2174,10,25),Xt=864e5,Jt=["101010101010","110101010100","111011001001","011011010100","011011101010","001101101100","101010101101","010101010101","011010101001","011110010010","101110101001","010111010100","101011011010","010101011100","110100101101","011010010101","011101001010","101101010100","101101101010","010110101101","010010101110","101001001111","010100010111","011010001011","011010100101","101011010101","001011010110","100101011011","010010011101","101001001101","110100100110","110110010101","010110101100","100110110110","001010111010","101001011011","010100101011","101010010101","011011001010","101011101001","001011110100","100101110110","001010110110","100101010110","101011001010","101110100100","101111010010","010111011001","001011011100","100101101101","010101001101","101010100101","101101010010","101110100101","010110110100","100110110110","010101010111","001010010111","010101001011","011010100011","011101010010","101101100101","010101101010","101010101011","010100101011","110010010101","110101001010","110110100101","010111001010","101011010110","100101010111","010010101011","100101001011","101010100101","101101010010","101101101010","010101110101","001001110110","100010110111","010001011011","010101010101","010110101001","010110110100","100111011010","010011011101","001001101110","100100110110","101010101010","110101010100","110110110010","010111010101","001011011010","100101011011","010010101011","101001010101","101101001001","101101100100","101101110001","010110110100","101010110101","101001010101","110100100101","111010010010","111011001001","011011010100","101011101001","100101101011","010010101011","101010010011","110101001001","110110100100","110110110010","101010111001","010010111010","101001011011","010100101011","101010010101","101100101010","101101010101","010101011100","010010111101","001000111101","100100011101","101010010101","101101001010","101101011010","010101101101","001010110110","100100111011","010010011011","011001010101","011010101001","011101010100","101101101010","010101101100","101010101101","010101010101","101100101001","101110010010","101110101001","010111010100","101011011010","010101011010","101010101011","010110010101","011101001001","011101100100","101110101010","010110110101","001010110110","101001010110","111001001101","101100100101","101101010010","101101101010","010110101101","001010101110","100100101111","010010010111","011001001011","011010100101","011010101100","101011010110","010101011101","010010011101","101001001101","110100010110","110110010101","010110101010","010110110101","001011011010","100101011011","010010101101","010110010101","011011001010","011011100100","101011101010","010011110101","001010110110","100101010110","101010101010","101101010100","101111010010","010111011001","001011101010","100101101101","010010101101","101010010101","101101001010","101110100101","010110110010","100110110101","010011010110","101010010111","010101000111","011010010011","011101001001","101101010101","010101101010","101001101011","010100101011","101010001011","110101000110","110110100011","010111001010","101011010110","010011011011","001001101011","100101001011","101010100101","101101010010","101101101001","010101110101","000101110110","100010110111","001001011011","010100101011","010101100101","010110110100","100111011010","010011101101","000101101101","100010110110","101010100110","110101010010","110110101001","010111010100","101011011010","100101011011","010010101011","011001010011","011100101001","011101100010","101110101001","010110110010","101010110101","010101010101","101100100101","110110010010","111011001001","011011010010","101011101001","010101101011","010010101011","101001010101","110100101001","110101010100","110110101010","100110110101","010010111010","101000111011","010010011011","101001001101","101010101010","101011010101","001011011010","100101011101","010001011110","101000101110","110010011010","110101010101","011010110010","011010111001","010010111010","101001011101","010100101101","101010010101","101101010010","101110101000","101110110100","010110111001","001011011010","100101011010","101101001010","110110100100","111011010001","011011101000","101101101010","010101101101","010100110101","011010010101","110101001010","110110101000","110111010100","011011011010","010101011011","001010011101","011000101011","101100010101","101101001010","101110010101","010110101010","101010101110","100100101110","110010001111","010100100111","011010010101","011010101010","101011010110","010101011101","001010011101"];var Qt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.fromGregorian=function(e){var n,o,i,r,a,s=1,p=(n=e,o=Zt,i=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate()),r=Date.UTC(o.getFullYear(),o.getMonth(),o.getDate()),a=Math.abs(i-r),Math.round(a/Xt));if(!(e.getTime()-Zt.getTime()>=0&&e.getTime()-Yt.getTime()<=0))return t.prototype.fromGregorian.call(this,e);for(var l=1300,c=0;cd&&(s=1,u++),u>11&&(u=0,l++),new tt(l,u+1,s);p-=d}},n.prototype.toGregorian=function(e){var n=e.year,o=e.month-1,i=e.day,r=new Date(Zt),a=i-1;if(n>=1300&&n<=1600){for(var s=0;s=1300&&n<=1600?+Jt[n-1300][e-1]+29:t.prototype.getDaysPerMonth.call(this,e,n)},n.decorators=[{type:e.Injectable}],n}(Gt);function te(t){var e,n,o,i,r=ae((e=t.year,n=t.month,o=t.day,se((i=re(e)).gy,3,i.march)+31*(n-1)-ie(n,7)*(n-7)+o-1));return r.setHours(6,30,3,200),r}function ee(t){return function(t){var e,n,o,i=ae(t).getFullYear(),r=i-621,a=re(r),s=se(i,3,a.march);if((o=t-s)>=0){if(o<=185)return n=1+ie(o,31),e=oe(o,31)+1,new tt(r,n,e);o-=186}else r-=1,o+=179,1===a.leap&&(o+=1);return n=7+ie(o,30),e=oe(o,30)+1,new tt(r,n,e)}(se(t.getFullYear(),t.getMonth()+1,t.getDate()))}function ne(t,e){return e=+e,t.year=t.year+Math.floor((e-1)/12),t.month=Math.floor(((e-1)%12+12)%12)+1,t}function oe(t,e){return t-e*Math.floor(t/e)}function ie(t,e){return Math.trunc(t/e)}function re(t){var e,n=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178],o=n.length,i=t+621,r=-14,a=n[0];if(t=n[o-1])throw new Error("Invalid Jalali year "+t);for(var s=1;sn)for(;e>n;)e-=n,n=pe((t=ne(t,t.month+1)).month,t.year);return t.day=e,t}(t,t.day+n);default:return t}},n.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},n.prototype.getWeekday=function(t){var e=te(t).getDay();return 0===e?7:e},n.prototype.getWeekNumber=function(t,e){7===e&&(e=0);var n=t[(11-e)%7],o=te(n);o.setDate(o.getDate()+4-(o.getDay()||7));var i=o.getTime(),r=te(new tt(n.year,1,1));return Math.floor(Math.round((i-r.getTime())/864e5)/7)+1},n.prototype.getToday=function(){return ee(new Date)},n.prototype.isValid=function(t){return t&&b(t.year)&&b(t.month)&&b(t.day)&&!isNaN(te(t).getTime())},n.decorators=[{type:e.Injectable}],n}(it),ce=1080,ue=24*ce,de=12*ce+793,he=29*ue+de,fe=11*ce+204,ge=2092591,me=1721425.5;function ye(t){return t%4==0&&t%100!=0||t%400==0}function be(t){var e=Math.floor((235*t-234)/19),n=e*de+fe,o=29*e+Math.floor(n/ue),i=n%ue,r=o%7;return 2!==r&&4!==r&&6!==r||(r=++o%7),1===r&&i>15*ce+204&&!De(t)?o+=2:0===r&&i>21*ce+589&&De(t-1)&&o++,o}function ve(t,e){var n=[31,28,31,30,31,30,31,31,30,31,30,31];return ye(e)&&n[1]++,n[t-1]}function _e(t){return De(t)?13:12}function we(t){return be(t+1)-be(t)}function De(t){var e=(12*t+17)%19;return e>=(e<0?-7:12)}function Ie(t,e){var n=be(e+1)-be(e),o=(n<=380?n:n-30)-353,i=De(e)?[30,29,29,29,30,30,29,30,29,30,29,30,29]:[30,29,29,29,30,29,30,29,30,29,30,29];return o>0&&i[2]++,o>1&&i[1]++,i[t-1]}function Ce(t){for(var e=0,n=1;nIe(u,p);)d-=Ie(u,p),u++;return new tt(p,u,d)}function xe(t){for(var e=t.year,n=t.month,o=t.day,i=be(e),r=1;r=0;s||(a=-a);for(var p=1970,l=1,c=1;a>0;)s?a>=(ye(p)?366:365)?(a-=ye(p)?366:365,p++):a>=ve(l,p)?(a-=ve(l,p),l++):(c+=a,a=0):a>=(ye(p-1)?366:365)?(a-=ye(p-1)?366:365,p--):(l>1?l--:(l=12,p--),a>=ve(l,p)?a-=ve(l,p):(c=ve(l,p)-a+1,a=0));return new Date(p,l-1,c)}function Re(t){if(!t)return"";for(var e=["","א","ב","ג","ד","ה","ו","ז","ח","ט"],n=["י","יא","יב","יג","יד","טו","טז","יז","יח","יט"],o=["","","כ","ל","מ","נ","ס","ע","פ","צ"],i=["","ק","ר","ש","ת","תק","תר","תש","תת","תתק"],r=["","א","ב","בא","בב","ה","הא","הב","הבא","הבב"],a=0,s=[],p=0;t>0;){var l=t%10;if(0===p)a=l;else if(1===p)1!==l?s.unshift(o[l],e[a]):s.unshift(n[a]);else{if(2!==p){5!==l&&s.unshift(r[l],"׳"," ");break}s.unshift(i[l])}t=Math.floor(t/10),0===p&&0===t&&s.unshift(e[l]),p++}return 1===(s=s.join("").split("")).length?s.push("׳"):s.length>1&&s.splice(s.length-1,0,"״"),s.join("")}var Ee=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.getDaysPerWeek=function(){return 7},n.prototype.getMonths=function(t){return t&&De(t)?[1,2,3,4,5,6,7,8,9,10,11,12,13]:[1,2,3,4,5,6,7,8,9,10,11,12]},n.prototype.getWeeksPerMonth=function(){return 6},n.prototype.isValid=function(t){var e=t&&y(t.year)&&y(t.month)&&y(t.day);return(e=(e=e&&t.month>0&&t.month<=(De(t.year)?13:12))&&t.day>0&&t.day<=Ie(t.month,t.year))&&!isNaN(xe(t).getTime())},n.prototype.getNext=function(t,e,n){switch(void 0===e&&(e="d"),void 0===n&&(n=1),t=new tt(t.year,t.month,t.day),e){case"y":return t.year+=n,t.month=1,t.day=1,t;case"m":return(t=function(t,e){var n=e>=0;for(n||(e=-e);e>0;)n?e>_e(t.year)-t.month?(e-=_e(t.year)-t.month+1,t.year++,t.month=1):(t.month+=e,e=0):e>=t.month?(t.year--,e-=t.month,t.month=_e(t.year)):(t.month-=e,e=0);return t}(t,n)).day=1,t;case"d":return function(t,e){var n=e>=0;for(n||(e=-e);e>0;)n?e>we(t.year)-Ce(t)?(e-=we(t.year)-Ce(t)+1,t.year++,t.month=1,t.day=1):e>Ie(t.month,t.year)-t.day?(e-=Ie(t.month,t.year)-t.day+1,t.month++,t.day=1):(t.day+=e,e=0):e>=t.day?(e-=t.day,t.month--,0===t.month&&(t.year--,t.month=_e(t.year)),t.day=Ie(t.month,t.year)):(t.day-=e,e=0);return t}(t,n);default:return t}},n.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},n.prototype.getWeekday=function(t){var e=xe(t).getDay();return 0===e?7:e},n.prototype.getWeekNumber=function(t,e){var n=t[t.length-1];return Math.ceil(Ce(n)/7)},n.prototype.getToday=function(){return ke(new Date)},n.prototype.toGregorian=function(t){return et(xe(t))},n.prototype.fromGregorian=function(t){return ke(nt(t))},n.decorators=[{type:e.Injectable}],n}(it),Se=["שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"],Te=["תשרי","חשון","כסלו","טבת","שבט","אדר","ניסן","אייר","סיון","תמוז","אב","אלול"],Oe=["תשרי","חשון","כסלו","טבת","שבט","אדר א׳","אדר ב׳","ניסן","אייר","סיון","תמוז","אב","אלול"],Ne=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.getMonthShortName=function(t,e){return this.getMonthFullName(t,e)},n.prototype.getMonthFullName=function(t,e){return De(e)?Oe[t-1]:Te[t-1]},n.prototype.getWeekdayShortName=function(t){return Se[t-1]},n.prototype.getDayAriaLabel=function(t){return Re(t.day)+" "+this.getMonthFullName(t.month,t.year)+" "+Re(t.year)},n.prototype.getDayNumerals=function(t){return Re(t.day)},n.prototype.getWeekNumerals=function(t){return Re(t)},n.prototype.getYearNumerals=function(t){return Re(t)},n.decorators=[{type:e.Injectable}],n}(dt),Me=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.fromModel=function(t){return t instanceof Date&&!isNaN(t.getTime())?this._fromNativeDate(t):null},n.prototype.toModel=function(t){return t&&b(t.year)&&b(t.month)&&b(t.day)?this._toNativeDate(t):null},n.prototype._fromNativeDate=function(t){return{year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()}},n.prototype._toNativeDate=function(t){var e=new Date(t.year,t.month-1,t.day,12);return e.setFullYear(t.year),e},n.decorators=[{type:e.Injectable}],n}(_t),Pe=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype._fromNativeDate=function(t){return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate()}},n.prototype._toNativeDate=function(t){var e=new Date(Date.UTC(t.year,t.month-1,t.day));return e.setUTCFullYear(t.year),e},n.decorators=[{type:e.Injectable}],n}(Me),je=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[It,Ct,kt,Bt,zt,$t],exports:[It,$t],imports:[n.CommonModule,o.FormsModule],entryComponents:[It]}]}],t}(),Ae=function(){function t(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Fe=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:".navbar"}]}],t}(),Ve=function(){function t(t){this.elementRef=t,this._disabled=!1}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=""===t||!0===t},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"[ngbDropdownItem]",host:{class:"dropdown-item","[class.disabled]":"disabled"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={disabled:[{type:e.Input}]},t}(),He=function(){function t(t){this.dropdown=t,this.placement="bottom",this.isOpen=!1}return t.decorators=[{type:e.Directive,args:[{selector:"[ngbDropdownMenu]",host:{"[class.dropdown-menu]":"true","[class.show]":"dropdown.isOpen()","[attr.x-placement]":"placement","(keydown.ArrowUp)":"dropdown.onKeyDown($event)","(keydown.ArrowDown)":"dropdown.onKeyDown($event)","(keydown.Home)":"dropdown.onKeyDown($event)","(keydown.End)":"dropdown.onKeyDown($event)","(keydown.Enter)":"dropdown.onKeyDown($event)","(keydown.Space)":"dropdown.onKeyDown($event)"}}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return $e})]}]}]},t.propDecorators={menuItems:[{type:e.ContentChildren,args:[Ve]}]},t}(),Le=function(){function t(t,e){this.dropdown=t,this._elementRef=e,this.anchorEl=e.nativeElement}return t.prototype.getNativeElement=function(){return this._elementRef.nativeElement},t.decorators=[{type:e.Directive,args:[{selector:"[ngbDropdownAnchor]",host:{class:"dropdown-toggle","aria-haspopup":"true","[attr.aria-expanded]":"dropdown.isOpen()"}}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return $e})]}]},{type:e.ElementRef}]},t}(),We=function(t){function n(e,n){return t.call(this,e,n)||this}return s(n,t),n.decorators=[{type:e.Directive,args:[{selector:"[ngbDropdownToggle]",host:{class:"dropdown-toggle","aria-haspopup":"true","[attr.aria-expanded]":"dropdown.isOpen()","(click)":"dropdown.toggle()","(keydown.ArrowUp)":"dropdown.onKeyDown($event)","(keydown.ArrowDown)":"dropdown.onKeyDown($event)","(keydown.Home)":"dropdown.onKeyDown($event)","(keydown.End)":"dropdown.onKeyDown($event)"},providers:[{provide:Le,useExisting:e.forwardRef(function(){return n})}]}]}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.forwardRef(function(){return $e})]}]},{type:e.ElementRef}]},n}(Le),$e=function(){function t(t,n,o,r,a,s,p){var l=this;this._changeDetector=t,this._document=o,this._ngZone=r,this._elementRef=a,this._renderer=s,this._closed$=new i.Subject,this._open=!1,this.openChange=new e.EventEmitter,this.placement=n.placement,this.container=n.container,this.autoClose=n.autoClose,this.display=p?"static":"dynamic",this._zoneSubscription=r.onStable.subscribe(function(){l._positionMenu()})}return t.prototype.ngAfterContentInit=function(){var t=this;this._ngZone.onStable.pipe(r.take(1)).subscribe(function(){t._applyPlacementClasses(),t._open&&t._setCloseHandlers()})},t.prototype.ngOnChanges=function(t){t.container&&this._open&&this._applyContainer(this.container),t.placement&&!t.placement.isFirstChange&&this._applyPlacementClasses()},t.prototype.isOpen=function(){return this._open},t.prototype.open=function(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers())},t.prototype._setCloseHandlers=function(){var t=this,e=this._anchor;St(this._ngZone,this._document,this.autoClose,function(){return t.close()},this._closed$,this._menu?[this._menuElement.nativeElement]:[],e?[e.getNativeElement()]:[],".dropdown-item,.dropdown-divider")},t.prototype.close=function(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())},t.prototype.toggle=function(){this.isOpen()?this.close():this.open()},t.prototype.ngOnDestroy=function(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()},t.prototype.onKeyDown=function(t){var e=this,n=t.which,o=this._getMenuElements(),i=-1,r=!1,a=this._isEventFromToggle(t);if(!a&&o.length&&o.forEach(function(n,o){n.contains(t.target)&&(r=!0),n===e._document.activeElement&&(i=o)}),n!==gt.Space&&n!==gt.Enter){if(a||r){if(this.open(),o.length){switch(n){case gt.ArrowDown:i=Math.min(i+1,o.length-1);break;case gt.ArrowUp:if(this._isDropup()&&-1===i){i=o.length-1;break}i=Math.max(i-1,0);break;case gt.Home:i=0;break;case gt.End:i=o.length-1}o[i].focus()}t.preventDefault()}}else!r||!0!==this.autoClose&&"inside"!==this.autoClose||this.close()},t.prototype._isDropup=function(){return this._elementRef.nativeElement.classList.contains("dropup")},t.prototype._isEventFromToggle=function(t){return this._anchor.getNativeElement().contains(t.target)},t.prototype._getMenuElements=function(){var t=this._menu;return null==t?[]:t.menuItems.filter(function(t){return!t.disabled}).map(function(t){return t.elementRef.nativeElement})},t.prototype._positionMenu=function(){var t=this._menu;this.isOpen()&&t&&this._applyPlacementClasses("dynamic"===this.display?At(this._anchor.anchorEl,this._bodyContainer||this._menuElement.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))},t.prototype._getFirstPlacement=function(t){return Array.isArray(t)?t[0]:t.split(" ")[0]},t.prototype._resetContainer=function(){var t=this._renderer,e=this._menuElement;if(e){var n=this._elementRef.nativeElement,o=e.nativeElement;t.appendChild(n,o),t.removeStyle(o,"position"),t.removeStyle(o,"transform")}this._bodyContainer&&(t.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)},t.prototype._applyContainer=function(t){if(void 0===t&&(t=null),this._resetContainer(),"body"===t){var e=this._renderer,n=this._menuElement.nativeElement,o=this._bodyContainer=this._bodyContainer||e.createElement("div");e.setStyle(o,"position","absolute"),e.setStyle(n,"position","static"),e.setStyle(o,"z-index","1050"),e.appendChild(o,n),e.appendChild(this._document.body,o)}},t.prototype._applyPlacementClasses=function(t){var e=this._menu;if(e){t||(t=this._getFirstPlacement(this.placement));var n=this._renderer,o=this._elementRef.nativeElement;n.removeClass(o,"dropup"),n.removeClass(o,"dropdown"),e.placement="static"===this.display?null:t;var i=-1!==t.search("^top")?"dropup":"dropdown";n.addClass(o,i);var r=this._bodyContainer;r&&(n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),n.addClass(r,i))}},t.decorators=[{type:e.Directive,args:[{selector:"[ngbDropdown]",exportAs:"ngbDropdown",host:{"[class.show]":"isOpen()"}}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:Ae},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:e.NgZone},{type:e.ElementRef},{type:e.Renderer2},{type:Fe,decorators:[{type:e.Optional}]}]},t.propDecorators={_menu:[{type:e.ContentChild,args:[He,{static:!1}]}],_menuElement:[{type:e.ContentChild,args:[He,{read:e.ElementRef,static:!1}]}],_anchor:[{type:e.ContentChild,args:[Le,{static:!1}]}],autoClose:[{type:e.Input}],_open:[{type:e.Input,args:["open"]}],placement:[{type:e.Input}],container:[{type:e.Input}],display:[{type:e.Input}],openChange:[{type:e.Output}]},t}(),ze=[$e,Le,We,He,Ve,Fe],Be=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:ze,exports:ze}]}],t}(),Ue=function(){function t(){this.backdrop=!0,this.keyboard=!0}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Ke=function(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n},qe=function(){function t(t,e,n,o,i,r){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=o,this._componentFactoryResolver=i,this._applicationRef=r}return t.prototype.open=function(t,e){return this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),0,this._injector,this._contentRef.nodes)),this._windowRef},t.prototype.close=function(){this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,this._contentRef.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null))},t.prototype._getContentRef=function(t,n){if(t){if(t instanceof e.TemplateRef){var o=t.createEmbeddedView(n);return this._applicationRef.attachView(o),new Ke([o.rootNodes],o)}return new Ke([[this._renderer.createText(""+t)]])}return new Ke([])},t}(),Ge=function(){},Ze=function(){function t(t){this._document=t}return t.prototype.compensate=function(){return this._isPresent()?this._adjustBody(this._getWidth()):Ge},t.prototype._adjustBody=function(t){var e=this._document.body,n=e.style.paddingRight,o=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=o+t+"px",function(){return e.style["padding-right"]=n}},t.prototype._isPresent=function(){var t=this._document.body.getBoundingClientRect();return t.left+t.right\n
\n \n ",encapsulation:e.ViewEncapsulation.None,styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"]}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:e.ElementRef}]},t.propDecorators={ariaLabelledBy:[{type:e.Input}],backdrop:[{type:e.Input}],centered:[{type:e.Input}],keyboard:[{type:e.Input}],scrollable:[{type:e.Input}],size:[{type:e.Input}],windowClass:[{type:e.Input}],dismissEvent:[{type:e.Output,args:["dismiss"]}]},t}(),en=function(){function t(t,e,n,o,r){var a=this;this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=o,this._rendererFactory=r,this._activeWindowCmptHasChanged=new i.Subject,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeWindowCmptHasChanged.subscribe(function(){if(a._windowCmpts.length){var t=a._windowCmpts[a._windowCmpts.length-1];Nt(t.location.nativeElement,a._activeWindowCmptHasChanged),a._revertAriaHidden(),a._setAriaHidden(t.location.nativeElement)}})}return t.prototype.open=function(t,e,n,o){var i=this,r=v(o.container)?this._document.querySelector(o.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),s=this._scrollBar.compensate(),p=function(){i._modalRefs.length||(a.removeClass(i._document.body,"modal-open"),i._revertAriaHidden())};if(!r)throw new Error('The specified modal container "'+(o.container||"body")+'" was not found in the DOM.');var l=new Xe,c=this._getContentRef(t,o.injector||e,n,l,o),u=!1!==o.backdrop?this._attachBackdrop(t,r):null,d=this._attachWindowComponent(t,r,c),h=new Je(d,c,u,o.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.result.then(s,s),h.result.then(p,p),l.close=function(t){h.close(t)},l.dismiss=function(t){h.dismiss(t)},this._applyWindowOptions(d.instance,o),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,o),h},t.prototype.dismissAll=function(t){this._modalRefs.forEach(function(e){return e.dismiss(t)})},t.prototype.hasOpenModals=function(){return this._modalRefs.length>0},t.prototype._attachBackdrop=function(t,e){var n=t.resolveComponentFactory(Ye).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n},t.prototype._attachWindowComponent=function(t,e,n){var o=t.resolveComponentFactory(tn).create(this._injector,n.nodes);return this._applicationRef.attachView(o.hostView),e.appendChild(o.location.nativeElement),o},t.prototype._applyWindowOptions=function(t,e){this._windowAttributes.forEach(function(n){v(e[n])&&(t[n]=e[n])})},t.prototype._applyBackdropOptions=function(t,e){this._backdropAttributes.forEach(function(n){v(e[n])&&(t[n]=e[n])})},t.prototype._getContentRef=function(t,n,o,i,r){return o?o instanceof e.TemplateRef?this._createFromTemplateRef(o,i):m(o)?this._createFromString(o):this._createFromComponent(t,n,o,i,r):new Ke([])},t.prototype._createFromTemplateRef=function(t,e){var n={$implicit:e,close:function(t){e.close(t)},dismiss:function(t){e.dismiss(t)}},o=t.createEmbeddedView(n);return this._applicationRef.attachView(o),new Ke([o.rootNodes],o)},t.prototype._createFromString=function(t){var e=this._document.createTextNode(""+t);return new Ke([[e]])},t.prototype._createFromComponent=function(t,n,o,i,r){var a=t.resolveComponentFactory(o),s=e.Injector.create({providers:[{provide:Xe,useValue:i}],parent:n}),p=a.create(s),l=p.location.nativeElement;return r.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(p.hostView),new Ke([[l]],p.hostView,p)},t.prototype._setAriaHidden=function(t){var e=this,n=t.parentElement;n&&t!==this._document.body&&(Array.from(n.children).forEach(function(n){n!==t&&"SCRIPT"!==n.nodeName&&(e._ariaHiddenValues.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))},t.prototype._revertAriaHidden=function(){this._ariaHiddenValues.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()},t.prototype._registerModalRef=function(t){var e=this,n=function(){var n=e._modalRefs.indexOf(t);n>-1&&e._modalRefs.splice(n,1)};this._modalRefs.push(t),t.result.then(n,n)},t.prototype._registerWindowCmpt=function(t){var e=this;this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(function(){var n=e._windowCmpts.indexOf(t);n>-1&&(e._windowCmpts.splice(n,1),e._activeWindowCmptHasChanged.next())})},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:e.ApplicationRef},{type:e.Injector},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:Ze},{type:e.RendererFactory2}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(e.ApplicationRef),e.ɵɵinject(e.INJECTOR),e.ɵɵinject(n.DOCUMENT),e.ɵɵinject(Ze),e.ɵɵinject(e.RendererFactory2))},token:t,providedIn:"root"}),t}(),nn=function(){function t(t,e,n,o){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=o}return t.prototype.open=function(t,e){void 0===e&&(e={});var n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)},t.prototype.dismissAll=function(t){this._modalStack.dismissAll(t)},t.prototype.hasOpenModals=function(){return this._modalStack.hasOpenModals()},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:e.ComponentFactoryResolver},{type:e.Injector},{type:en},{type:Ue}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(e.ComponentFactoryResolver),e.ɵɵinject(e.INJECTOR),e.ɵɵinject(en),e.ɵɵinject(Ue))},token:t,providedIn:"root"}),t}(),on=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[Ye,tn],entryComponents:[Ye,tn],providers:[nn]}]}],t}(),rn=function(){function t(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),an=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbPaginationEllipsis]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),sn=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbPaginationFirst]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),pn=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbPaginationLast]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),ln=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbPaginationNext]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),cn=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbPaginationNumber]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),un=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbPaginationPrevious]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),dn=function(){function t(t){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new e.EventEmitter(!0),this.disabled=t.disabled,this.boundaryLinks=t.boundaryLinks,this.directionLinks=t.directionLinks,this.ellipses=t.ellipses,this.maxSize=t.maxSize,this.pageSize=t.pageSize,this.rotate=t.rotate,this.size=t.size}return t.prototype.hasPrevious=function(){return this.page>1},t.prototype.hasNext=function(){return this.page0&&(t>1&&this.pages.unshift(-1),this.pages.unshift(1)),e0&&this.pageCount>this.maxSize){var i=0,r=this.pageCount;this.rotate?(i=(e=l(this._applyRotation(),2))[0],r=e[1]):(i=(n=l(this._applyPagination(),2))[0],r=n[1]),this.pages=this.pages.slice(i,r),this._applyEllipses(i,r)}},t.decorators=[{type:e.Component,args:[{selector:"ngb-pagination",changeDetection:e.ChangeDetectionStrategy.OnPush,host:{role:"navigation"},template:'\n \n \n \n \n ...\n \n {{ page }}\n (current)\n \n \n '}]}],t.ctorParameters=function(){return[{type:rn}]},t.propDecorators={tplEllipsis:[{type:e.ContentChild,args:[an,{static:!1}]}],tplFirst:[{type:e.ContentChild,args:[sn,{static:!1}]}],tplLast:[{type:e.ContentChild,args:[pn,{static:!1}]}],tplNext:[{type:e.ContentChild,args:[ln,{static:!1}]}],tplNumber:[{type:e.ContentChild,args:[cn,{static:!1}]}],tplPrevious:[{type:e.ContentChild,args:[un,{static:!1}]}],disabled:[{type:e.Input}],boundaryLinks:[{type:e.Input}],directionLinks:[{type:e.Input}],ellipses:[{type:e.Input}],rotate:[{type:e.Input}],collectionSize:[{type:e.Input}],maxSize:[{type:e.Input}],page:[{type:e.Input}],pageSize:[{type:e.Input}],pageChange:[{type:e.Output}],size:[{type:e.Input}]},t}(),hn=[dn,an,sn,pn,ln,cn,un],fn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:hn,exports:hn,imports:[n.CommonModule]}]}],t}(),gn=function(){function t(t,e){this.open=t,this.close=e,e||(this.close=t)}return t.prototype.isManual=function(){return"manual"===this.open||"manual"===this.close},t}(),mn={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};var yn=function(t){return t>0?r.delay(t):function(t){return t}};function bn(t,e,n,o,a,s,p,l){void 0===p&&(p=0),void 0===l&&(l=0);var c=function(t,e){void 0===e&&(e=mn);var n=(t||"").trim();if(0===n.length)return[];var o=n.split(/\s+/).map(function(t){return t.split(":")}).map(function(t){var n=e[t[0]]||t;return new gn(n[0],n[1])}),i=o.filter(function(t){return t.isManual()});if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&o.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return o}(n);if(1===c.length&&c[0].isManual())return function(){};var u=function(t,e,n,o){return new i.Observable(function(i){var r=[],a=function(){return i.next(!0)},s=function(){return i.next(!1)},p=function(){return i.next(!o())};return n.forEach(function(n){n.open===n.close?r.push(t.listen(e,n.open,p)):r.push(t.listen(e,n.open,a),t.listen(e,n.close,s))}),function(){r.forEach(function(t){return t()})}})}(t,e,c,o).pipe(function(t,e,n){return function(o){var a=null,s=o.pipe(r.map(function(t){return{open:t}}),r.filter(function(t){var e=n();return e===t.open||a&&a.open!==e?(a&&a.open!==t.open&&(a=null),!1):(a=t,!0)}),r.share()),p=s.pipe(r.filter(function(t){return t.open}),yn(t)),l=s.pipe(r.filter(function(t){return!t.open}),yn(e));return i.merge(p,l).pipe(r.filter(function(t){return t===a&&(a=null,t.open!==n())}),r.map(function(t){return t.open}))}}(p,l,o)).subscribe(function(t){return t?a():s()});return function(){return u.unsubscribe()}}var vn=function(){function t(){this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),_n=0,wn=function(){function t(){}return t.prototype.isTitleTemplate=function(){return this.title instanceof e.TemplateRef},t.decorators=[{type:e.Component,args:[{selector:"ngb-popover-window",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,host:{"[class]":'"popover" + (popoverClass ? " " + popoverClass : "")',role:"tooltip","[id]":"id"},template:'\n
\n

\n {{title}}\n \n

\n
',styles:["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"]}]}],t.propDecorators={title:[{type:e.Input}],id:[{type:e.Input}],popoverClass:[{type:e.Input}],context:[{type:e.Input}]},t}(),Dn=function(){function t(t,n,o,i,r,a,s,p,l,c){var u=this;this._elementRef=t,this._renderer=n,this._ngZone=s,this._document=p,this._changeDetector=l,this._applicationRef=c,this.shown=new e.EventEmitter,this.hidden=new e.EventEmitter,this._ngbPopoverWindowId="ngb-popover-"+_n++,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disablePopover=a.disablePopover,this.popoverClass=a.popoverClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new qe(wn,o,r,n,i,c),this._zoneSubscription=s.onStable.subscribe(function(){u._windowRef&&At(u._elementRef.nativeElement,u._windowRef.location.nativeElement,u.placement,"body"===u.container,"bs-popover")})}return t.prototype._isDisabled=function(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle},t.prototype.open=function(t){var e=this;this._windowRef||this._isDisabled()||(this._windowRef=this._popupService.open(this.ngbPopover,t),this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=t,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),St(this._ngZone,this._document,this.autoClose,function(){return e.close()},this.hidden,[this._windowRef.location.nativeElement]),this.shown.emit())},t.prototype.close=function(){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())},t.prototype.toggle=function(){this._windowRef?this.close():this.open()},t.prototype.isOpen=function(){return null!=this._windowRef},t.prototype.ngOnInit=function(){this._unregisterListenersFn=bn(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)},t.prototype.ngOnChanges=function(t){(t.ngbPopover||t.popoverTitle||t.disablePopover)&&this._isDisabled()&&this.close()},t.prototype.ngOnDestroy=function(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t.decorators=[{type:e.Directive,args:[{selector:"[ngbPopover]",exportAs:"ngbPopover"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:e.Injector},{type:e.ComponentFactoryResolver},{type:e.ViewContainerRef},{type:vn},{type:e.NgZone},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:e.ChangeDetectorRef},{type:e.ApplicationRef}]},t.propDecorators={autoClose:[{type:e.Input}],ngbPopover:[{type:e.Input}],popoverTitle:[{type:e.Input}],placement:[{type:e.Input}],triggers:[{type:e.Input}],container:[{type:e.Input}],disablePopover:[{type:e.Input}],popoverClass:[{type:e.Input}],openDelay:[{type:e.Input}],closeDelay:[{type:e.Input}],shown:[{type:e.Output}],hidden:[{type:e.Output}]},t}(),In=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[Dn,wn],exports:[Dn],imports:[n.CommonModule],entryComponents:[wn]}]}],t}(),Cn=function(){function t(){this.max=100,this.animated=!1,this.striped=!1,this.showValue=!1}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),kn=function(){function t(t){this.value=0,this.max=t.max,this.animated=t.animated,this.striped=t.striped,this.type=t.type,this.showValue=t.showValue,this.height=t.height}return t.prototype.getValue=function(){return g(this.value,this.max)},t.prototype.getPercentValue=function(){return 100*this.getValue()/this.max},t.decorators=[{type:e.Component,args:[{selector:"ngb-progressbar",changeDetection:e.ChangeDetectionStrategy.OnPush,template:'\n
\n
\n {{getPercentValue()}}%\n
\n
\n '}]}],t.ctorParameters=function(){return[{type:Cn}]},t.propDecorators={max:[{type:e.Input}],animated:[{type:e.Input}],striped:[{type:e.Input}],showValue:[{type:e.Input}],type:[{type:e.Input}],value:[{type:e.Input}],height:[{type:e.Input}]},t}(),xn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[kn],exports:[kn],imports:[n.CommonModule]}]}],t}(),Rn=function(){function t(){this.max=10,this.readonly=!1,this.resettable=!1}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),En={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return Sn}),multi:!0},Sn=function(){function t(t,n){this._changeDetectorRef=n,this.contexts=[],this.disabled=!1,this.hover=new e.EventEmitter,this.leave=new e.EventEmitter,this.rateChange=new e.EventEmitter(!0),this.onChange=function(t){},this.onTouched=function(){},this.max=t.max,this.readonly=t.readonly}return t.prototype.ariaValueText=function(){return this.nextRate+" out of "+this.max},t.prototype.enter=function(t){this.readonly||this.disabled||this._updateState(t),this.hover.emit(t)},t.prototype.handleBlur=function(){this.onTouched()},t.prototype.handleClick=function(t){this.update(this.resettable&&this.rate===t?0:t)},t.prototype.handleKeyDown=function(t){switch(t.which){case gt.ArrowDown:case gt.ArrowLeft:this.update(this.rate-1);break;case gt.ArrowUp:case gt.ArrowRight:this.update(this.rate+1);break;case gt.Home:this.update(0);break;case gt.End:this.update(this.max);break;default:return}t.preventDefault()},t.prototype.ngOnChanges=function(t){t.rate&&this.update(this.rate)},t.prototype.ngOnInit=function(){this.contexts=Array.from({length:this.max},function(t,e){return{fill:0,index:e}}),this._updateState(this.rate)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.reset=function(){this.leave.emit(this.nextRate),this._updateState(this.rate)},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.update=function(t,e){void 0===e&&(e=!0);var n=g(t,this.max,0);this.readonly||this.disabled||this.rate===n||(this.rate=n,this.rateChange.emit(this.rate)),e&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)},t.prototype.writeValue=function(t){this.update(t,!1),this._changeDetectorRef.markForCheck()},t.prototype._getFillValue=function(t){var e=this.nextRate-t;return e>=1?100:e<1&&e>0?parseInt((100*e).toFixed(2),10):0},t.prototype._updateState=function(t){var e=this;this.nextRate=t,this.contexts.forEach(function(t,n){return t.fill=e._getFillValue(n)})},t.decorators=[{type:e.Component,args:[{selector:"ngb-rating",changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"d-inline-flex",tabindex:"0",role:"slider","aria-valuemin":"0","[attr.aria-valuemax]":"max","[attr.aria-valuenow]":"nextRate","[attr.aria-valuetext]":"ariaValueText()","[attr.aria-disabled]":"readonly ? true : null","(blur)":"handleBlur()","(keydown)":"handleKeyDown($event)","(mouseleave)":"reset()"},template:'\n {{ fill === 100 ? \'★\' : \'☆\' }}\n \n ({{ index < nextRate ? \'*\' : \' \' }})\n \n \n \n \n \n ',providers:[En]}]}],t.ctorParameters=function(){return[{type:Rn},{type:e.ChangeDetectorRef}]},t.propDecorators={max:[{type:e.Input}],rate:[{type:e.Input}],readonly:[{type:e.Input}],resettable:[{type:e.Input}],starTemplate:[{type:e.Input}],starTemplateFromContent:[{type:e.ContentChild,args:[e.TemplateRef,{static:!1}]}],hover:[{type:e.Output}],leave:[{type:e.Output}],rateChange:[{type:e.Output}]},t}(),Tn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[Sn],exports:[Sn],imports:[n.CommonModule]}]}],t}(),On=function(){function t(){this.justify="start",this.orientation="horizontal",this.type="tabs"}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Nn=0,Mn=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbTabTitle]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),Pn=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[ngbTabContent]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),jn=function(){function t(){this.id="ngb-tab-"+Nn++,this.disabled=!1}return t.prototype.ngAfterContentChecked=function(){this.titleTpl=this.titleTpls.first,this.contentTpl=this.contentTpls.first},t.decorators=[{type:e.Directive,args:[{selector:"ngb-tab"}]}],t.propDecorators={id:[{type:e.Input}],title:[{type:e.Input}],disabled:[{type:e.Input}],titleTpls:[{type:e.ContentChildren,args:[Mn,{descendants:!1}]}],contentTpls:[{type:e.ContentChildren,args:[Pn,{descendants:!1}]}]},t}(),An=function(){function t(t){this.destroyOnHide=!0,this.tabChange=new e.EventEmitter,this.type=t.type,this.justify=t.justify,this.orientation=t.orientation}return Object.defineProperty(t.prototype,"justify",{set:function(t){this.justifyClass="fill"===t||"justified"===t?"nav-"+t:"justify-content-"+t},enumerable:!0,configurable:!0}),t.prototype.select=function(t){var e=this._getTabById(t);if(e&&!e.disabled&&this.activeId!==e.id){var n=!1;this.tabChange.emit({activeId:this.activeId,nextId:e.id,preventDefault:function(){n=!0}}),n||(this.activeId=e.id)}},t.prototype.ngAfterContentChecked=function(){var t=this._getTabById(this.activeId);this.activeId=t?t.id:this.tabs.length?this.tabs.first.id:null},t.prototype._getTabById=function(t){var e=this.tabs.filter(function(e){return e.id===t});return e.length?e[0]:null},t.decorators=[{type:e.Component,args:[{selector:"ngb-tabset",exportAs:"ngbTabset",template:'\n \n
\n \n \n \n
\n \n \n '}]}],t.ctorParameters=function(){return[{type:On}]},t.propDecorators={tabs:[{type:e.ContentChildren,args:[jn]}],activeId:[{type:e.Input}],destroyOnHide:[{type:e.Input}],justify:[{type:e.Input}],orientation:[{type:e.Input}],type:[{type:e.Input}],tabChange:[{type:e.Output}]},t}(),Fn=[An,jn,Pn,Mn],Vn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:Fn,exports:Fn,imports:[n.CommonModule]}]}],t}(),Hn=function(){function t(t,e,n){this.hour=h(t),this.minute=h(e),this.second=h(n)}return t.prototype.changeHour=function(t){void 0===t&&(t=1),this.updateHour((isNaN(this.hour)?0:this.hour)+t)},t.prototype.updateHour=function(t){y(t)?this.hour=(t<0?24+t:t)%24:this.hour=NaN},t.prototype.changeMinute=function(t){void 0===t&&(t=1),this.updateMinute((isNaN(this.minute)?0:this.minute)+t)},t.prototype.updateMinute=function(t){y(t)?(this.minute=t%60<0?60+t%60:t%60,this.changeHour(Math.floor(t/60))):this.minute=NaN},t.prototype.changeSecond=function(t){void 0===t&&(t=1),this.updateSecond((isNaN(this.second)?0:this.second)+t)},t.prototype.updateSecond=function(t){y(t)?(this.second=t<0?60+t%60:t%60,this.changeMinute(Math.floor(t/60))):this.second=NaN},t.prototype.isValid=function(t){return void 0===t&&(t=!0),y(this.hour)&&y(this.minute)&&(!t||y(this.second))},t.prototype.toString=function(){return(this.hour||0)+":"+(this.minute||0)+":"+(this.second||0)},t}(),Ln=function(){function t(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}();function Wn(){return new zn}var $n=function(){function t(){}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root",useFactory:Wn}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:Wn,token:t,providedIn:"root"}),t}(),zn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.fromModel=function(t){return t&&b(t.hour)&&b(t.minute)?{hour:t.hour,minute:t.minute,second:b(t.second)?t.second:null}:null},n.prototype.toModel=function(t){return t&&b(t.hour)&&b(t.minute)?{hour:t.hour,minute:t.minute,second:b(t.second)?t.second:null}:null},n.decorators=[{type:e.Injectable}],n}($n);function Bn(t){return new Kn(t)}var Un=function(){function t(){}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root",useFactory:Bn,deps:[e.LOCALE_ID]}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return Bn(e.ɵɵinject(e.LOCALE_ID))},token:t,providedIn:"root"}),t}(),Kn=function(t){function o(e){var o=t.call(this)||this;return o._periods=n.getLocaleDayPeriods(e,n.FormStyle.Standalone,n.TranslationWidth.Narrow),o}return s(o,t),o.prototype.getMorningPeriod=function(){return this._periods[0]},o.prototype.getAfternoonPeriod=function(){return this._periods[1]},o.decorators=[{type:e.Injectable}],o.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},o}(Un),qn={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return Gn}),multi:!0},Gn=function(){function t(t,e,n,o){this._config=t,this._ngbTimeAdapter=e,this._cd=n,this.i18n=o,this.onChange=function(t){},this.onTouched=function(){},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInputs=t.readonlyInputs,this.size=t.size}return Object.defineProperty(t.prototype,"hourStep",{get:function(){return this._hourStep},set:function(t){this._hourStep=b(t)?t:this._config.hourStep},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minuteStep",{get:function(){return this._minuteStep},set:function(t){this._minuteStep=b(t)?t:this._config.minuteStep},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"secondStep",{get:function(){return this._secondStep},set:function(t){this._secondStep=b(t)?t:this._config.secondStep},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this._ngbTimeAdapter.fromModel(t);this.model=e?new Hn(e.hour,e.minute,e.second):new Hn,this.seconds||e&&y(e.second)||(this.model.second=0),this._cd.markForCheck()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.changeHour=function(t){this.model.changeHour(t),this.propagateModelChange()},t.prototype.changeMinute=function(t){this.model.changeMinute(t),this.propagateModelChange()},t.prototype.changeSecond=function(t){this.model.changeSecond(t),this.propagateModelChange()},t.prototype.updateHour=function(t){var e=this.model.hour>=12,n=h(t);this.meridian&&(e&&n<12||!e&&12===n)?this.model.updateHour(n+12):this.model.updateHour(n),this.propagateModelChange()},t.prototype.updateMinute=function(t){this.model.updateMinute(h(t)),this.propagateModelChange()},t.prototype.updateSecond=function(t){this.model.updateSecond(h(t)),this.propagateModelChange()},t.prototype.toggleMeridian=function(){this.meridian&&this.changeHour(12)},t.prototype.formatHour=function(t){return y(t)?this.meridian?_(t%12==0?12:t%12):_(t%24):_(NaN)},t.prototype.formatMinSec=function(t){return _(t)},Object.defineProperty(t.prototype,"isSmallSize",{get:function(){return"small"===this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLargeSize",{get:function(){return"large"===this.size},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.seconds&&!this.seconds&&this.model&&!y(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))},t.prototype.propagateModelChange=function(t){void 0===t&&(t=!0),t&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))},t.decorators=[{type:e.Component,args:[{selector:"ngb-timepicker",encapsulation:e.ViewEncapsulation.None,template:'\n
\n
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
\n
\n \n
\n
\n
\n ',providers:[qn],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}']}]}],t.ctorParameters=function(){return[{type:Ln},{type:$n},{type:e.ChangeDetectorRef},{type:Un}]},t.propDecorators={meridian:[{type:e.Input}],spinners:[{type:e.Input}],seconds:[{type:e.Input}],hourStep:[{type:e.Input}],minuteStep:[{type:e.Input}],secondStep:[{type:e.Input}],readonlyInputs:[{type:e.Input}],size:[{type:e.Input}]},t}(),Zn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[Gn],exports:[Gn],imports:[n.CommonModule]}]}],t}(),Yn=function(){function t(){this.autohide=!0,this.delay=500,this.ariaLive="polite"}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Xn=function(){function t(){}return t.decorators=[{type:e.Directive,args:[{selector:"[ngbToastHeader]"}]}],t}(),Jn=function(){function t(t,n){this.ariaLive=t,this.contentHeaderTpl=null,this.hideOutput=new e.EventEmitter,null==this.ariaLive&&(this.ariaLive=n.ariaLive),this.delay=n.delay,this.autohide=n.autohide}return t.prototype.ngAfterContentInit=function(){this._init()},t.prototype.ngOnChanges=function(t){"autohide"in t&&(this._clearTimeout(),this._init())},t.prototype.hide=function(){this._clearTimeout(),this.hideOutput.emit()},t.prototype._init=function(){var t=this;this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(function(){return t.hide()},this.delay))},t.prototype._clearTimeout=function(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)},t.decorators=[{type:e.Component,args:[{selector:"ngb-toast",exportAs:"ngbToast",encapsulation:e.ViewEncapsulation.None,host:{role:"alert","[attr.aria-live]":"ariaLive","aria-atomic":"true","[class.toast]":"true","[class.show]":"true","[class.autohide]":"autohide"},template:'\n \n {{header}}\n \n \n
\n \n \n
\n
\n
\n \n
\n ',styles:[".ngb-toasts{position:fixed;top:0;right:0;margin:.5em;z-index:1200}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}"]}]}],t.ctorParameters=function(){return[{type:String,decorators:[{type:e.Attribute,args:["aria-live"]}]},{type:Yn}]},t.propDecorators={delay:[{type:e.Input}],autohide:[{type:e.Input}],header:[{type:e.Input}],contentHeaderTpl:[{type:e.ContentChild,args:[Xn,{read:e.TemplateRef,static:!0}]}],hideOutput:[{type:e.Output,args:["hide"]}]},t}(),Qn=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[Jn,Xn],imports:[n.CommonModule],exports:[Jn,Xn]}]}],t}(),to=function(){function t(){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),eo=0,no=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"ngb-tooltip-window",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,host:{"[class]":'"tooltip show" + (tooltipClass ? " " + tooltipClass : "")',role:"tooltip","[id]":"id"},template:'
',styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"]}]}],t.propDecorators={id:[{type:e.Input}],tooltipClass:[{type:e.Input}]},t}(),oo=function(){function t(t,n,o,i,r,a,s,p,l,c){var u=this;this._elementRef=t,this._renderer=n,this._ngZone=s,this._document=p,this._changeDetector=l,this._applicationRef=c,this.shown=new e.EventEmitter,this.hidden=new e.EventEmitter,this._ngbTooltipWindowId="ngb-tooltip-"+eo++,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new qe(no,o,r,n,i,c),this._zoneSubscription=s.onStable.subscribe(function(){u._windowRef&&At(u._elementRef.nativeElement,u._windowRef.location.nativeElement,u.placement,"body"===u.container,"bs-tooltip")})}return Object.defineProperty(t.prototype,"ngbTooltip",{get:function(){return this._ngbTooltip},set:function(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()},enumerable:!0,configurable:!0}),t.prototype.open=function(t){var e=this;this._windowRef||!this._ngbTooltip||this.disableTooltip||(this._windowRef=this._popupService.open(this._ngbTooltip,t),this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),St(this._ngZone,this._document,this.autoClose,function(){return e.close()},this.hidden,[this._windowRef.location.nativeElement]),this.shown.emit())},t.prototype.close=function(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())},t.prototype.toggle=function(){this._windowRef?this.close():this.open()},t.prototype.isOpen=function(){return null!=this._windowRef},t.prototype.ngOnInit=function(){this._unregisterListenersFn=bn(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)},t.prototype.ngOnDestroy=function(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t.decorators=[{type:e.Directive,args:[{selector:"[ngbTooltip]",exportAs:"ngbTooltip"}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:e.Injector},{type:e.ComponentFactoryResolver},{type:e.ViewContainerRef},{type:to},{type:e.NgZone},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:e.ChangeDetectorRef},{type:e.ApplicationRef}]},t.propDecorators={autoClose:[{type:e.Input}],placement:[{type:e.Input}],triggers:[{type:e.Input}],container:[{type:e.Input}],disableTooltip:[{type:e.Input}],tooltipClass:[{type:e.Input}],openDelay:[{type:e.Input}],closeDelay:[{type:e.Input}],shown:[{type:e.Output}],hidden:[{type:e.Output}],ngbTooltip:[{type:e.Input}]},t}(),io=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[oo,no],exports:[oo],entryComponents:[no]}]}],t}(),ro=function(){function t(){this.highlightClass="ngb-highlight"}return t.prototype.ngOnChanges=function(t){var e=f(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(function(t){return f(t).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}).filter(function(t){return t});this.parts=n.length?e.split(new RegExp("("+n.join("|")+")","gmi")):[e]},t.decorators=[{type:e.Component,args:[{selector:"ngb-highlight",changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,template:'{{part}}{{part}}',styles:[".ngb-highlight{font-weight:700}"]}]}],t.propDecorators={highlightClass:[{type:e.Input}],result:[{type:e.Input}],term:[{type:e.Input}]},t}(),ao=function(){function t(){this.activeIdx=0,this.focusFirst=!0,this.formatter=f,this.selectEvent=new e.EventEmitter,this.activeChangeEvent=new e.EventEmitter}return t.prototype.hasActive=function(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)},t.decorators=[{type:e.Component,args:[{selector:"ngb-typeahead-window",exportAs:"ngbTypeaheadWindow",host:{"(mousedown)":"$event.preventDefault()",class:"dropdown-menu show",role:"listbox","[id]":"id"},template:'\n \n \n \n \n \n \n '}]}],t.propDecorators={id:[{type:e.Input}],focusFirst:[{type:e.Input}],results:[{type:e.Input}],term:[{type:e.Input}],formatter:[{type:e.Input}],resultTemplate:[{type:e.Input}],selectEvent:[{type:e.Output,args:["select"]}],activeChangeEvent:[{type:e.Output,args:["activeChange"]}]},t}(),so=new e.InjectionToken("live announcer delay",{providedIn:"root",factory:po});function po(){return 100}function lo(t,e){void 0===e&&(e=!1);var n=t.body.querySelector("#ngb-live");return null==n&&e&&((n=t.createElement("div")).setAttribute("id","ngb-live"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.classList.add("sr-only"),t.body.appendChild(n)),n}var co=function(){function t(t,e){this._document=t,this._delay=e}return t.prototype.ngOnDestroy=function(){var t=lo(this._document);t&&t.parentElement.removeChild(t)},t.prototype.say=function(t){var e=lo(this._document,!0),n=this._delay;e.textContent="";var o=function(){return e.textContent=t};null===n?o():setTimeout(o,n)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Inject,args:[so]}]}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(n.DOCUMENT),e.ɵɵinject(so))},token:t,providedIn:"root"}),t}(),uo=function(){function t(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),ho={provide:o.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return go}),multi:!0},fo=0,go=function(){function t(t,n,o,a,s,p,l,c,u,d,h,f){var g=this;this._elementRef=t,this._viewContainerRef=n,this._renderer=o,this._injector=a,this._live=c,this._document=u,this._ngZone=d,this._changeDetector=h,this._applicationRef=f,this._closed$=new i.Subject,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new e.EventEmitter,this.popupId="ngb-typeahead-"+fo++,this._onTouched=function(){},this._onChange=function(t){},this.container=p.container,this.editable=p.editable,this.focusFirst=p.focusFirst,this.showHint=p.showHint,this.placement=p.placement,this._valueChanges=i.fromEvent(t.nativeElement,"input").pipe(r.map(function(t){return t.target.value})),this._resubscribeTypeahead=new i.BehaviorSubject(null),this._popupService=new qe(ao,a,n,o,s,f),this._zoneSubscription=l.onStable.subscribe(function(){g.isPopupOpen()&&At(g._elementRef.nativeElement,g._windowRef.location.nativeElement,g.placement,"body"===g.container)})}return t.prototype.ngOnInit=function(){var t=this,e=this._valueChanges.pipe(r.tap(function(e){t._inputValueBackup=t.showHint?e:null,t.editable&&t._onChange(e)})).pipe(this.ngbTypeahead).pipe(r.tap(function(){t.editable||t._onChange(void 0)})),n=this._resubscribeTypeahead.pipe(r.switchMap(function(){return e}));this._subscription=this._subscribeToUserInput(n)},t.prototype.ngOnDestroy=function(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.writeValue=function(t){this._writeInputValue(this._formatItemForInput(t)),this.showHint&&(this._inputValueBackup=t)},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype.dismissPopup=function(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())},t.prototype.isPopupOpen=function(){return null!=this._windowRef},t.prototype.handleBlur=function(){this._resubscribeTypeahead.next(null),this._onTouched()},t.prototype.handleKeyDown=function(t){if(this.isPopupOpen())switch(t.which){case gt.ArrowDown:t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case gt.ArrowUp:t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case gt.Enter:case gt.Tab:var e=this._windowRef.instance.getActive();v(e)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(e)),this._closePopup()}},t.prototype._openPopup=function(){var t=this;this.isPopupOpen()||(this._inputValueBackup=this._elementRef.nativeElement.value,this._windowRef=this._popupService.open(),this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(function(e){return t._selectResultClosePopup(e)}),this._windowRef.instance.activeChangeEvent.subscribe(function(e){return t.activeDescendant=e}),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),St(this._ngZone,this._document,"outside",function(){return t.dismissPopup()},this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement]))},t.prototype._closePopup=function(){this._closed$.next(),this._popupService.close(),this._windowRef=null,this.activeDescendant=void 0},t.prototype._selectResult=function(t){var e=!1;this.selectItem.emit({item:t,preventDefault:function(){e=!0}}),this._resubscribeTypeahead.next(null),e||(this.writeValue(t),this._onChange(t))},t.prototype._selectResultClosePopup=function(t){this._selectResult(t),this._closePopup()},t.prototype._showHint=function(){if(this.showHint&&this._windowRef.instance.hasActive()&&null!=this._inputValueBackup){var t=this._inputValueBackup.toLowerCase(),e=this._formatItemForInput(this._windowRef.instance.getActive());t===e.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+e.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,e.length])):this._writeInputValue(e)}},t.prototype._formatItemForInput=function(t){return null!=t&&this.inputFormatter?this.inputFormatter(t):f(t)},t.prototype._writeInputValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",f(t))},t.prototype._subscribeToUserInput=function(t){var e=this;return t.subscribe(function(t){t&&0!==t.length?(e._openPopup(),e._windowRef.instance.focusFirst=e.focusFirst,e._windowRef.instance.results=t,e._windowRef.instance.term=e._elementRef.nativeElement.value,e.resultFormatter&&(e._windowRef.instance.formatter=e.resultFormatter),e.resultTemplate&&(e._windowRef.instance.resultTemplate=e.resultTemplate),e._windowRef.instance.resetActive(),e._windowRef.changeDetectorRef.detectChanges(),e._showHint()):e._closePopup();var n=t?t.length:0;e._live.say(0===n?"No results available":n+" result"+(1===n?"":"s")+" available")})},t.prototype._unsubscribeFromUserInput=function(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null},t.decorators=[{type:e.Directive,args:[{selector:"input[ngbTypeahead]",exportAs:"ngbTypeahead",host:{"(blur)":"handleBlur()","[class.open]":"isPopupOpen()","(keydown)":"handleKeyDown($event)","[autocomplete]":"autocomplete",autocapitalize:"off",autocorrect:"off",role:"combobox","aria-multiline":"false","[attr.aria-autocomplete]":'showHint ? "both" : "list"',"[attr.aria-activedescendant]":"activeDescendant","[attr.aria-owns]":"isPopupOpen() ? popupId : null","[attr.aria-expanded]":"isPopupOpen()"},providers:[ho]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ViewContainerRef},{type:e.Renderer2},{type:e.Injector},{type:e.ComponentFactoryResolver},{type:uo},{type:e.NgZone},{type:co},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:e.NgZone},{type:e.ChangeDetectorRef},{type:e.ApplicationRef}]},t.propDecorators={autocomplete:[{type:e.Input}],container:[{type:e.Input}],editable:[{type:e.Input}],focusFirst:[{type:e.Input}],inputFormatter:[{type:e.Input}],ngbTypeahead:[{type:e.Input}],resultFormatter:[{type:e.Input}],resultTemplate:[{type:e.Input}],showHint:[{type:e.Input}],placement:[{type:e.Input}],selectItem:[{type:e.Output}]},t}(),mo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[go,ro,ao],exports:[go,ro],imports:[n.CommonModule],entryComponents:[ao]}]}],t}(),yo=[d,O,P,z,X,Q,je,Be,on,fn,In,xn,Tn,Vn,Zn,Qn,io,mo],bo=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:yo,exports:yo}]}],t}();t.ModalDismissReasons=Qe,t.NgbAccordion=E,t.NgbAccordionConfig=D,t.NgbAccordionModule=O,t.NgbActiveModal=Xe,t.NgbAlert=M,t.NgbAlertConfig=N,t.NgbAlertModule=P,t.NgbButtonLabel=j,t.NgbButtonsModule=z,t.NgbCalendar=it,t.NgbCalendarGregorian=rt,t.NgbCalendarHebrew=Ee,t.NgbCalendarIslamicCivil=Gt,t.NgbCalendarIslamicUmalqura=Qt,t.NgbCalendarPersian=le,t.NgbCarousel=q,t.NgbCarouselConfig=B,t.NgbCarouselModule=X,t.NgbCheckBox=F,t.NgbCollapse=J,t.NgbCollapseModule=Q,t.NgbDate=tt,t.NgbDateAdapter=_t,t.NgbDateNativeAdapter=Me,t.NgbDateNativeUTCAdapter=Pe,t.NgbDateParserFormatter=Vt,t.NgbDatepicker=It,t.NgbDatepickerConfig=bt,t.NgbDatepickerI18n=dt,t.NgbDatepickerI18nHebrew=Ne,t.NgbDatepickerModule=je,t.NgbDropdown=$e,t.NgbDropdownAnchor=Le,t.NgbDropdownConfig=Ae,t.NgbDropdownItem=Ve,t.NgbDropdownMenu=He,t.NgbDropdownModule=Be,t.NgbDropdownToggle=We,t.NgbHighlight=ro,t.NgbInputDatepicker=$t,t.NgbModal=nn,t.NgbModalConfig=Ue,t.NgbModalModule=on,t.NgbModalRef=Je,t.NgbModule=bo,t.NgbPagination=dn,t.NgbPaginationConfig=rn,t.NgbPaginationEllipsis=an,t.NgbPaginationFirst=sn,t.NgbPaginationLast=pn,t.NgbPaginationModule=fn,t.NgbPaginationNext=ln,t.NgbPaginationNumber=cn,t.NgbPaginationPrevious=un,t.NgbPanel=R,t.NgbPanelContent=x,t.NgbPanelHeader=C,t.NgbPanelTitle=k,t.NgbPanelToggle=S,t.NgbPopover=Dn,t.NgbPopoverConfig=vn,t.NgbPopoverModule=In,t.NgbProgressbar=kn,t.NgbProgressbarConfig=Cn,t.NgbProgressbarModule=xn,t.NgbRadio=W,t.NgbRadioGroup=L,t.NgbRating=Sn,t.NgbRatingConfig=Rn,t.NgbRatingModule=Tn,t.NgbSlide=K,t.NgbSlideEventDirection=G,t.NgbSlideEventSource=Z,t.NgbTab=jn,t.NgbTabContent=Pn,t.NgbTabTitle=Mn,t.NgbTabset=An,t.NgbTabsetConfig=On,t.NgbTabsetModule=Vn,t.NgbTimeAdapter=$n,t.NgbTimepicker=Gn,t.NgbTimepickerConfig=Ln,t.NgbTimepickerI18n=Un,t.NgbTimepickerModule=Zn,t.NgbToast=Jn,t.NgbToastConfig=Yn,t.NgbToastHeader=Xn,t.NgbToastModule=Qn,t.NgbTooltip=oo,t.NgbTooltipConfig=to,t.NgbTooltipModule=io,t.NgbTypeahead=go,t.NgbTypeaheadConfig=uo,t.NgbTypeaheadModule=mo,t.SbCard=u,t.SbCardConfig=c,t.SbCardModule=d,t.ɵa=Y,t.ɵb=ot,t.ɵba=so,t.ɵbb=po,t.ɵbc=co,t.ɵbd=Ut,t.ɵbe=Ke,t.ɵc=Ct,t.ɵd=zt,t.ɵe=kt,t.ɵf=Bt,t.ɵg=ut,t.ɵh=ht,t.ɵi=vt,t.ɵj=wt,t.ɵk=Ft,t.ɵl=Ht,t.ɵm=Fe,t.ɵn=wn,t.ɵo=Wn,t.ɵp=zn,t.ɵq=Bn,t.ɵr=Kn,t.ɵs=no,t.ɵt=ao,t.ɵu=ft,t.ɵv=mt,t.ɵw=Ye,t.ɵx=tn,t.ɵy=en,t.ɵz=Ze,Object.defineProperty(t,"__esModule",{value:!0})}); -//# sourceMappingURL=ng-bootstrap.umd.min.js.map \ No newline at end of file diff --git a/dist/ng-bootstrap/bundles/ng-bootstrap.umd.min.js.map b/dist/ng-bootstrap/bundles/ng-bootstrap.umd.min.js.map deleted file mode 100644 index d52ecba..0000000 --- a/dist/ng-bootstrap/bundles/ng-bootstrap.umd.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@sunbird-ed/sunbird-ui-components/card/card-config.ts","ng://@sunbird-ed/sunbird-ui-components/card/card.ts","ng://@sunbird-ed/sunbird-ui-components/card/card.module.ts","ng://@sunbird-ed/sunbird-ui-components/util/util.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion-config.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion.module.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert-config.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert.module.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/label.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/checkbox.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/radio.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/buttons.module.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel-config.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel.module.ts","ng://@sunbird-ed/sunbird-ui-components/collapse/collapse.ts","ng://@sunbird-ed/sunbird-ui-components/collapse/collapse.module.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-date.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-calendar.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-tools.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-i18n.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-service.ts","ng://@sunbird-ed/sunbird-ui-components/util/key.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-keymap-service.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-view-model.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-config.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-month-view.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-navigation.ts","ng://@sunbird-ed/sunbird-ui-components/util/autoclose.ts","ng://@sunbird-ed/sunbird-ui-components/util/focus-trap.ts","ng://@sunbird-ed/sunbird-ui-components/util/positioning.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-date-parser-formatter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-input.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-day-view.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-navigation-select.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-hijri.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-islamic-civil.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-islamic-umalqura.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/jalali/jalali.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/jalali/ngb-calendar-persian.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/ngb-calendar-hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/datepicker-i18n-hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-native-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-native-utc-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker.module.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown-config.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown.module.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-config.ts","ng://@sunbird-ed/sunbird-ui-components/util/popup.ts","ng://@sunbird-ed/sunbird-ui-components/util/scrollbar.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-backdrop.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-ref.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-dismiss-reasons.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-window.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-stack.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal.module.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination-config.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination.module.ts","ng://@sunbird-ed/sunbird-ui-components/util/triggers.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover-config.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover.module.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar-config.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar.module.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating-config.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating.module.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset-config.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset.module.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/ngb-time.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker-config.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/ngb-time-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker-i18n.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker.module.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast-config.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast.module.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip-config.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip.module.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/highlight.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead-window.ts","ng://@sunbird-ed/sunbird-ui-components/util/accessibility/live.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead-config.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead.module.ts","ng://@sunbird-ed/sunbird-ui-components/index.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","this","constructor","prototype","create","__assign","assign","t","s","i","n","arguments","length","call","apply","__read","o","m","Symbol","iterator","r","e","ar","next","done","push","value","error","SbCardConfig","dismissible","type","Injectable","args","providedIn","SbCard","config","_renderer","_element","close","EventEmitter","closeHandler","emit","ngOnChanges","changes","typeChange","firstChange","removeClass","nativeElement","previousValue","addClass","currentValue","ngOnInit","Component","selector","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","host","role","class","[class.alert-dismissible]","template","Renderer2","ElementRef","Input","Output","SbCardModule","NgModule","declarations","exports","imports","CommonModule","entryComponents","toInteger","parseInt","toString","getValueInRange","max","min","Math","isString","isNumber","isNaN","isInteger","isFinite","floor","isDefined","padNumber","slice","hasClassName","element","className","split","indexOf","Element","closest","matches","msMatchesSelector","webkitMatchesSelector","el","document","documentElement","contains","parentElement","parentNode","nodeType","NgbAccordionConfig","closeOthers","nextId","NgbPanelHeader","templateRef","Directive","TemplateRef","NgbPanelTitle","NgbPanelContent","NgbPanel","disabled","id","isOpen","ngAfterContentChecked","titleTpl","titleTpls","first","headerTpl","headerTpls","contentTpl","contentTpls","ContentChildren","descendants","NgbAccordion","activeIds","destroyOnHide","panelChange","closeOtherPanels","isExpanded","panelId","expand","_changeOpenState","_findPanelById","expandAll","_this","panels","forEach","panel","collapse","collapseAll","toggle","_closeOthers","_updateActiveIds","nextState","defaultPrevented_1","preventDefault","find","filter","map","exportAs","[attr.aria-multiselectable]","NgbPanelToggle","accordion","defineProperty","[disabled]","[class.collapsed]","[attr.aria-expanded]","[attr.aria-controls]","(click)","decorators","Optional","Host","NGB_ACCORDION_DIRECTIVES","NgbAccordionModule","NgbAlertConfig","NgbAlert","NgbAlertModule","NgbButtonLabel","[class.btn]","[class.active]","[class.disabled]","[class.focus]","NGB_CHECKBOX_VALUE_ACCESSOR","provide","NG_VALUE_ACCESSOR","useExisting","forwardRef","NgbCheckBox","multi","_label","_cd","valueChecked","valueUnChecked","onChange","_","onTouched","isFocused","focused","onInputChange","$event","modelToPropagate","target","checked","writeValue","registerOnChange","fn","registerOnTouched","setDisabledState","isDisabled","active","markForCheck","autocomplete","[checked]","(change)","(focus)","(blur)","providers","ChangeDetectorRef","NGB_RADIO_VALUE_ACCESSOR","NgbRadioGroup","_radios","Set","_value","name","_disabled","onRadioChange","radio","onRadioValueUpdate","_updateRadiosValue","register","add","_updateRadiosDisabled","unregister","delete","updateValue","updateDisabled","NgbRadio","_group","stringValue","setProperty","_checked","ngOnDestroy","[name]","NGB_BUTTON_DIRECTIVES","NgbButtonsModule","NgbCarouselConfig","interval","wrap","keyboard","pauseOnHover","showNavigationArrows","showNavigationIndicators","NgbSlide","tplRef","NgbCarousel","_platformId","_ngZone","NgbSlideEventSource","_destroy$","Subject","_interval$","BehaviorSubject","_mouseHover$","_pauseOnHover$","_pause$","_wrap$","slide","mouseEnter","mouseLeave","ngAfterContentInit","isPlatformBrowser","runOutsideAngular","hasNextSlide$","combineLatest","pipe","slideEvent","current","startWith","activeId","slides","_a","_b","currentSlideId","slideArr","toArray","currentSlideIdx","_getSlideIdxById","distinctUntilChanged","pause","mouseHover","hasNextSlide","switchMap","timer","NEVER","takeUntil","subscribe","run","TIMER","activeSlide","_getSlideById","select","slideId","source","_cycleToSelected","_getSlideEventDirection","prev","_getPrevSlide","NgbSlideEventDirection","RIGHT","_getNextSlide","LEFT","cycle","slideIdx","direction","selectedSlide","paused","currentActiveSlideId","nextActiveSlideId","[style.display]","tabIndex","(keydown.arrowLeft)","(keydown.arrowRight)","Inject","PLATFORM_ID","NgZone","HostListener","ARROW_LEFT","ARROW_RIGHT","INDICATOR","NGB_CAROUSEL_DIRECTIVES","NgbCarouselModule","NgbCollapse","collapsed","[class.collapse]","[class.show]","NgbCollapseModule","NgbDate","year","month","day","from","date","equals","other","before","after","fromJSDate","jsDate","getFullYear","getMonth","getDate","toJSDate","Date","getTime","setFullYear","NGB_DATEPICKER_CALENDAR_FACTORY","NgbCalendarGregorian","NgbCalendar","useFactory","tslib_1.__extends","getDaysPerWeek","getMonths","getWeeksPerMonth","getNext","period","number","setDate","getPrev","getWeekday","getDay","getWeekNumber","week","firstDayOfWeek","time","setMonth","round","getToday","isValid","isChangedDate","dateComparator","isChangedMonth","checkDateInRange","minDate","maxDate","isDateSelectable","state","markDisabled","buildMonths","calendar","i18n","force","displayMonths","months","monthsToReuse","splice","firstDate","reusedIndex","findIndex","dayTemplateData","outsideDays","calendarToday","lastDate","weeks","weekdays","daysPerWeek","firstMonthDate","dayOfWeek","getFirstViewDate","weekObject","days","newDate","nextDate","ariaLabel","getDayAriaLabel","today","contextUserData","undefined","dayObject","context","$implicit","data","currentMonth","selected","tabindex","hidden","buildMonth","shift","NGB_DATEPICKER_18N_FACTORY","locale","NgbDatepickerI18nDefault","NgbDatepickerI18n","getDayNumerals","getWeekNumerals","weekNumber","getYearNumerals","deps","LOCALE_ID","_locale","_super","weekdaysStartingOnSunday","getLocaleDayNames","FormStyle","Standalone","TranslationWidth","Short","_weekdaysShort","index","_monthsShort","getLocaleMonthNames","Abbreviated","_monthsFull","Wide","getWeekdayShortName","weekday","getMonthShortName","getMonthFullName","formatDate","NgbDatepickerService","_calendar","_i18n","_model$","_select$","_state","focusVisible","navigation","prevDisabled","nextDisabled","selectBoxes","years","selectedDate","model","_nextState","toValidDate","focus","focusDate","focusMove","focusSelect","emitEvent","open","options","defaultValue","ngbDate","patch","newState","_updateState","_patchContexts","prevDate","startDate","Error","checkMinBeforeMax","forceRebuild","yearChanged","monthChanged","start","end","generateSelectBoxYears","generateSelectBoxMonths","nextMonthDisabled","Tab","Enter","Escape","Space","PageUp","PageDown","End","Home","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","NgbDatepickerKeyMapService","_service","model$","_minDate","_maxDate","_firstViewDate","_lastViewDate","processKey","event","which","Key","shiftKey","stopPropagation","PREV","NEXT","NgbDatepickerConfig","showWeekdays","showWeekNumbers","NGB_DATEPICKER_DATE_ADAPTER_FACTORY","NgbDateStructAdapter","NgbDateAdapter","fromModel","toModel","NGB_DATEPICKER_VALUE_ACCESSOR","NgbDatepicker","_keyMapService","_elementRef","_ngbDateAdapter","_destroyed$","navigate","input","select$","oldDate","navigationPrevented","newSelectedDate","newFocusedDate","oldFocusedDate","_controlValue","onStable","asObservable","take","elementToFocus","querySelector","navigateTo","ngAfterViewInit","focusIns$","fromEvent","_monthsEl","focusOuts$","merge","relatedTarget","onDateSelect","onKeyDown","onNavigateDateSelect","onNavigateEvent","NavigationEvent","ViewChild","static","NgbDatepickerMonthView","doSelect","NgbDatepickerNavigation","isContainedIn","array","some","item","matchesSelectorIfAny","iOS","ngbAutoClose","zone","closed$","insideElements","ignoreElements","insideSelector","escapes$","mouseDowns$","MouseEvent","button","closeableClicks$","withLatestFrom","delay","race","navigator","userAgent","test","FOCUSABLE_ELEMENTS_SELECTOR","join","getFocusableBoundaryElements","list","querySelectorAll","ngbFocusTrap","stopFocusTrap$","refocusOnClick","lastFocusedElement$","tabEvent","focusedElement","_c","last","arr","lastFocusedElement","Positioning","getAllStyles","window","getComputedStyle","getStyle","prop","isStaticPositioned","offsetParent","offsetParentEl","position","elPosition","parentOffset","width","height","top","bottom","left","right","getBoundingClientRect","offset","clientTop","clientLeft","elBcr","viewportOffset","pageYOffset","pageXOffset","elOffset","offsetHeight","offsetWidth","positionElements","hostElement","targetElement","placement","appendToBody","placementPrimary","placementSecondary","hostElPosition","targetElStyles","marginTop","parseFloat","marginBottom","marginLeft","marginRight","topPosition","leftPosition","style","transform","targetElBCR","html","windowHeight","innerHeight","clientHeight","windowWidth","innerWidth","clientWidth","placementSeparator","positionService","baseClass","placementVals","isArray","allowedPlacements","classList","addClassesToTarget","targetPlacement","primary","secondary","classes","classname","placementToRemove","remove","hasAuto","val","obj","search","testPlacement","isInViewport","placementVals_1","tslib_1.__values","placementVals_1_1","addedClasses","NGB_DATEPICKER_PARSER_FORMATTER_FACTORY","NgbDateISOParserFormatter","NgbDateParserFormatter","parse","dateParts","trim","format","NgbInputDatepicker","NGB_DATEPICKER_VALIDATOR","NG_VALIDATORS","_parserFormatter","_elRef","_vcRef","_cfr","_dateAdapter","_document","_changeDetector","_cRef","autoClose","dateSelect","closed","_onChange","_onTouched","_validatorChange","_zoneSubscription","_updatePopupPosition","instance","registerOnValidatorChange","validate","c","_fromDateStruct","requiredBefore","requiredAfter","invalid","_model","_writeModelValue","manualDateChange","updateView","inputValueChanged","_inputValue","cf","resolveComponentFactory","createComponent","_applyPopupStyling","location","_applyDatepickerInputs","_subscribeForDatepickerOutputs","changeDetectorRef","detectChanges","container","appendChild","hostView","onBlur","unsubscribe","datepickerInstance","optionName","navigateEvent","positionTarget","HTMLElement","(input)","ViewContainerRef","ComponentFactoryResolver","DOCUMENT","NgbDatepickerDayView","isMuted","[class.bg-primary]","[class.text-white]","[class.text-muted]","[class.outside]","NgbDatepickerNavigationSelect","changeMonth","changeYear","NgbCalendarHijri","_setYear","_setMonth","_setDay","toGregorian","MuhDate","fromGregorian","mDays","getDaysPerMonth","isGregorianLeapYear","gDate","mod","a","NgbCalendarIslamicCivil","gYear","gMonth","gDay","julianDay","GREGORIAN_EPOCH","hYear","hMonth","ceil","hDay","getIslamicMonthStart","hDate","wjd","depoch","quadricent","dqc","cent","dcent","quad","dquad","yindex","yearday","leapadj","tjd2","GREGORIAN_FIRST_DATE","GREGORIAN_LAST_DATE","ONE_DAY","MONTH_LENGTH","NgbCalendarIslamicUmalqura","date1","date2","time1","time2","diff","daysDiff","UTC","abs","j","numOfDays","dayDiff","y","jalaliDate","jYear","jMonth","jDay","julianToGregorian","gregorianToJulian","jalCal","gy","march","div","setHours","gdate","julianDayNumber","jalaliDay","jalaliMonth","numberOfDays","jalaliYear","gregorianDay","leap","julianToJalali","setJalaliMonth","trunc","jump","breaks","breaksLength","leapJ","jp","jm","gm","gd","NgbCalendarPersian","yearValue","setJalaliYear","setJalaliDay","PARTS_PER_HOUR","PARTS_PER_DAY","PARTS_FRACTIONAL_MONTH","PARTS_PER_MONTH","BAHARAD","HEBREW_DAY_ON_JAN_1_1970","numberOfFirstDayInYear","monthsBeforeYear","fractionalMonthsBeforeYear","dayNumber","timeOfDay","isHebrewLeapYear","getDaysInGregorianMonth","getHebrewMonths","getDaysInHebrewYear","getDaysInHebrewMonth","yearLength","yearType","daysInMonth","getDayNumberInHebrewYear","numberOfDay","daysSinceHebEpoch","monthsSinceHebEpoch","firstDayOfThisYear","dayOfYear","hebrewDate","diffDays","hebrewNumerals","numerals","hArray0_9","hArray10_19","hArray20_90","hArray100_900","hArray1000_9000","mem","result","step","unshift","NgbCalendarHebrew","setHebrewMonth","setHebrewDay","WEEKDAYS","MONTHS","MONTHS_LEAP","NgbDatepickerI18nHebrew","NgbDateNativeAdapter","_fromNativeDate","_toNativeDate","NgbDateNativeUTCAdapter","getUTCFullYear","getUTCMonth","getUTCDate","setUTCFullYear","NgbDatepickerModule","FormsModule","NgbDropdownConfig","NgbNavbar","NgbDropdownItem","elementRef","NgbDropdownMenu","dropdown","[class.dropdown-menu]","[attr.x-placement]","(keydown.ArrowUp)","(keydown.ArrowDown)","(keydown.Home)","(keydown.End)","(keydown.Enter)","(keydown.Space)","NgbDropdown","NgbDropdownAnchor","anchorEl","getNativeElement","aria-haspopup","NgbDropdownToggle","ngbNavbar","_closed$","_open","openChange","display","_positionMenu","_applyPlacementClasses","_setCloseHandlers","_applyContainer","isFirstChange","anchor","_anchor","_menu","_menuElement","_resetContainer","key","itemElements","_getMenuElements","isEventFromItems","isEventFromToggle","_isEventFromToggle","itemElement","activeElement","_isDropup","menu","menuItems","_bodyContainer","_getFirstPlacement","renderer","menuElement","dropdownElement","dropdownMenuElement","removeStyle","removeChild","body","bodyContainer","createElement","setStyle","dropdownClass","ContentChild","read","NGB_DROPDOWN_DIRECTIVES","NgbDropdownModule","NgbModalConfig","backdrop","ContentRef","nodes","viewRef","componentRef","PopupService","_type","_injector","_viewContainerRef","_componentFactoryResolver","_applicationRef","content","_windowRef","_contentRef","_getContentRef","detachView","destroy","createEmbeddedView","attachView","rootNodes","createText","noop","ScrollBar","compensate","_isPresent","_adjustBody","_getWidth","userSetPadding","paddingRight","paddingAmount","rect","measurer","NgbModalBackdrop","[class]","NgbActiveModal","dismiss","reason","NgbModalRef","_windowCmptRef","_backdropCmptRef","_beforeDismiss","dismissEvent","Promise","resolve","reject","_resolve","_reject","then","_removeModalElements","_dismiss","windowNativeEl","backdropNativeEl","BACKDROP_CLICK","ESC","NgbModalWindow","backdropClick","ModalDismissReasons","escKey","defaultPrevented","_elWithFocus","autoFocusable","firstFocusable","elWithFocus","(keyup.esc)","[attr.aria-modal]","[attr.aria-labelledby]","NgbModalStack","_scrollBar","_rendererFactory","_activeWindowCmptHasChanged","_ariaHiddenValues","Map","_backdropAttributes","_modalRefs","_windowAttributes","_windowCmpts","activeWindowCmpt","_revertAriaHidden","_setAriaHidden","moduleCFR","contentInjector","containerEl","createRenderer","revertPaddingForScrollBar","removeBodyClass","activeModal","contentRef","injector","backdropCmptRef","_attachBackdrop","windowCmptRef","_attachWindowComponent","ngbModalRef","beforeDismiss","_registerModalRef","_registerWindowCmpt","_applyWindowOptions","_applyBackdropOptions","dismissAll","hasOpenModals","windowInstance","backdropInstance","_createFromTemplateRef","_createFromString","_createFromComponent","component","createTextNode","contentCmptFactory","modalContentInjector","Injector","useValue","parent","componentNativeEl","scrollable","children","sibling","nodeName","set","getAttribute","setAttribute","removeAttribute","clear","unregisterModalRef","ngbWindowCmpt","onDestroy","ApplicationRef","RendererFactory2","NgbModal","_moduleCFR","_modalStack","_config","combinedOptions","NgbModalModule","NgbPaginationConfig","boundaryLinks","directionLinks","ellipses","maxSize","pageSize","rotate","NgbPaginationEllipsis","NgbPaginationFirst","NgbPaginationLast","NgbPaginationNext","NgbPaginationNumber","NgbPaginationPrevious","NgbPagination","pageCount","pages","page","pageChange","size","hasPrevious","hasNext","previousDisabled","selectPage","pageNumber","_updatePages","isEllipsis","_applyEllipses","_applyRotation","leftOffset","rightOffset","_applyPagination","_setPageInRange","newPageNo","prevPageNo","collectionSize","newPage","DIRECTIVES","NgbPaginationModule","Trigger","isManual","DEFAULT_ALIASES","hover","delayOrNoop","listenToTriggers","triggers","isOpenedFn","openFn","closeFn","openDelay","closeDelay","parsedTriggers","aliases","trimmedTriggers","trigger","triggerPair","alias","manualTriggers","parseTriggers","subscription","Observable","subscriber","listeners","toggleFn","listen","unsubscribeFn","observeTriggers","input$","pending","filteredInput$","currentlyOpen","share","delayedOpen$","delayedClose$","triggerDelay","NgbPopoverConfig","disablePopover","NgbPopoverWindow","isTitleTemplate","title","[id]","NgbPopover","componentFactoryResolver","viewContainerRef","shown","_ngbPopoverWindowId","popoverClass","_popupService","_isDisabled","ngbPopover","popoverTitle","_unregisterListenersFn","bind","NgbPopoverModule","NgbProgressbarConfig","animated","striped","showValue","NgbProgressbar","getValue","getPercentValue","NgbProgressbarModule","NgbRatingConfig","readonly","resettable","NGB_RATING_VALUE_ACCESSOR","NgbRating","_changeDetectorRef","contexts","leave","rateChange","ariaValueText","nextRate","enter","handleBlur","handleClick","update","rate","handleKeyDown","v","k","fill","reset","internalChange","newRate","_getFillValue","toFixed","nextValue","aria-valuemin","[attr.aria-valuemax]","[attr.aria-valuenow]","[attr.aria-valuetext]","[attr.aria-disabled]","(keydown)","(mouseleave)","NgbRatingModule","NgbTabsetConfig","justify","orientation","NgbTabTitle","NgbTabContent","NgbTab","NgbTabset","tabChange","justifyClass","tabId","selectedTab","_getTabById","activeTab","tabs","tabsWithId","tab","NGB_TABSET_DIRECTIVES","NgbTabsetModule","NgbTime","hour","minute","second","changeHour","updateHour","NaN","changeMinute","updateMinute","changeSecond","updateSecond","checkSecs","NgbTimepickerConfig","meridian","spinners","seconds","hourStep","minuteStep","secondStep","readonlyInputs","NGB_DATEPICKER_TIME_ADAPTER_FACTORY","NgbTimeStructAdapter","NgbTimeAdapter","NGB_TIMEPICKER_I18N_FACTORY","NgbTimepickerI18nDefault","NgbTimepickerI18n","_periods","getLocaleDayPeriods","Narrow","getMorningPeriod","getAfternoonPeriod","NGB_TIMEPICKER_VALUE_ACCESSOR","NgbTimepicker","_ngbTimeAdapter","_hourStep","_minuteStep","_secondStep","structValue","propagateModelChange","newVal","isPM","enteredHour","toggleMeridian","formatHour","formatMinSec","touched","NgbTimepickerModule","NgbToastConfig","autohide","ariaLive","NgbToastHeader","NgbToast","contentHeaderTpl","hideOutput","_init","_clearTimeout","hide","_timeoutID","setTimeout","clearTimeout","[attr.aria-live]","aria-atomic","[class.toast]","[class.autohide]","Attribute","NgbToastModule","NgbTooltipConfig","disableTooltip","NgbTooltipWindow","NgbTooltip","_ngbTooltipWindowId","tooltipClass","_ngbTooltip","NgbTooltipModule","NgbHighlight","highlightClass","escapedTerms","term","replace","parts","RegExp","NgbTypeaheadWindow","activeIdx","focusFirst","formatter","selectEvent","activeChangeEvent","hasActive","results","getActive","markActive","_activeChanged","resetActive","(mousedown)","ARIA_LIVE_DELAY","InjectionToken","factory","ARIA_LIVE_DELAY_FACTORY","getLiveElement","lazyCreate","Live","_delay","say","message","textContent","setText","NgbTypeaheadConfig","editable","showHint","NGB_TYPEAHEAD_VALUE_ACCESSOR","NgbTypeahead","nextWindowId","ngZone","_live","selectItem","popupId","_valueChanges","_resubscribeTypeahead","isPopupOpen","processedResults$","tap","_inputValueBackup","ngbTypeahead","userInput$","_subscription","_subscribeToUserInput","_closePopup","_unsubscribeFromUserInput","_writeInputValue","_formatItemForInput","dismissPopup","_showHint","_selectResult","_openPopup","_selectResultClosePopup","activeDescendant","userInputLowerCase","toLowerCase","formattedVal","substr","inputFormatter","resultFormatter","resultTemplate","count","[class.open]","[autocomplete]","autocapitalize","autocorrect","aria-multiline","[attr.aria-autocomplete]","[attr.aria-activedescendant]","[attr.aria-owns]","NgbTypeaheadModule","NGB_MODULES","NgbModule"],"mappings":"4cAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAGrB,SAASO,EAAUR,EAAGC,GAEzB,SAASQ,IAAOC,KAAKC,YAAcX,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEY,UAAkB,OAANX,EAAaC,OAAOW,OAAOZ,IAAMQ,EAAGG,UAAYX,EAAEW,UAAW,IAAIH,GAG5E,IAAIK,EAAW,WAQlB,OAPAA,EAAWZ,OAAOa,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAIZ,KADTW,EAAIG,UAAUF,GACOhB,OAAOU,UAAUL,eAAee,KAAKL,EAAGX,KAAIU,EAAEV,GAAKW,EAAEX,IAE9E,OAAOU,IAEKO,MAAMb,KAAMU,YAkFzB,SAASI,EAAOC,EAAGN,GACtB,IAAIO,EAAsB,mBAAXC,QAAyBF,EAAEE,OAAOC,UACjD,IAAKF,EAAG,OAAOD,EACf,IAAmBI,EAAYC,EAA3BZ,EAAIQ,EAAEJ,KAAKG,GAAOM,EAAK,GAC3B,IACI,WAAc,IAANZ,GAAgBA,KAAM,MAAQU,EAAIX,EAAEc,QAAQC,MAAMF,EAAGG,KAAKL,EAAEM,OAExE,MAAOC,GAASN,EAAI,CAAEM,MAAOA,GACjC,QACQ,IACQP,IAAMA,EAAEI,OAASP,E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,GAAcO,IAC3C9uC,QAAS,CAAC2wC,GAAcpC,IACxBtuC,QAAS,CAACC,EAAAA,cACVC,gBAAiB,CAAC2uC,QAGpBuE,EAnBA,GCmIMC,GAAc,CAClBzzC,EAAcuG,EAAoBG,EAAgBoE,EAAkBsF,EAAmBK,EAAmBujB,GAC1GgE,GAAmBsI,GAAgBsC,GAAqBuD,GAAkBQ,GAAsBkC,GAChGkB,GAAiB+C,GAAqBmB,GAAgBQ,GAAkB+E,IAG1EE,GAAA,WAAA,SAAAA,KAEA,2BAFCzzC,EAAAA,SAAQtC,KAAA,CAAC,CAACyC,QAASqzC,GAAatzC,QAASszC,OAE1CC,EAFA","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [SbCard](#/components/alert/api#SbCard) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all alerts used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class SbCardConfig {\n dismissible = true;\n type = 'warning';\n}\n","import {\n Component,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n Renderer2,\n ElementRef,\n OnChanges,\n OnInit,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {SbCardConfig} from './card-config';\n\n/**\n * Alert is a component to provide contextual feedback messages for user.\n *\n * It supports several alert types and can be dismissed.\n */\n@Component({\n selector: 'sb-card',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible'},\n template: `\n \n \n `,\n styleUrls: ['./card.scss']\n})\nexport class SbCard implements OnInit,\n OnChanges {\n /**\n * If `true`, alert can be dismissed by the user.\n *\n * The close button (×) will be displayed and you can be notified\n * of the event with the `(close)` output.\n */\n @Input() dismissible: boolean;\n /**\n * Type of the alert.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n /**\n * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts.\n */\n @Output() close = new EventEmitter();\n\n constructor(config: SbCardConfig, private _renderer: Renderer2, private _element: ElementRef) {\n this.dismissible = config.dismissible;\n this.type = config.type;\n }\n\n closeHandler() { this.close.emit(null); }\n\n ngOnChanges(changes: SimpleChanges) {\n const typeChange = changes['type'];\n if (typeChange && !typeChange.firstChange) {\n this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`);\n this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`);\n }\n }\n\n ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {SbCard} from './card';\n\nexport {SbCard} from './card';\nexport {SbCardConfig} from './card-config';\n\n@NgModule({declarations: [SbCard], exports: [SbCard], imports: [CommonModule], entryComponents: [SbCard]})\nexport class SbCardModule {\n}\n","export function toInteger(value: any): number {\n return parseInt(`${value}`, 10);\n}\n\nexport function toString(value: any): string {\n return (value !== undefined && value !== null) ? `${value}` : '';\n}\n\nexport function getValueInRange(value: number, max: number, min = 0): number {\n return Math.max(Math.min(value, max), min);\n}\n\nexport function isString(value: any): value is string {\n return typeof value === 'string';\n}\n\nexport function isNumber(value: any): value is number {\n return !isNaN(toInteger(value));\n}\n\nexport function isInteger(value: any): value is number {\n return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;\n}\n\nexport function isDefined(value: any): boolean {\n return value !== undefined && value !== null;\n}\n\nexport function padNumber(value: number) {\n if (isNumber(value)) {\n return `0${value}`.slice(-2);\n } else {\n return '';\n }\n}\n\nexport function regExpEscape(text) {\n return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n}\n\nexport function hasClassName(element: any, className: string): boolean {\n return element && element.className && element.className.split &&\n element.className.split(/\\s+/).indexOf(className) >= 0;\n}\n\nif (typeof Element !== 'undefined' && !Element.prototype.closest) {\n // Polyfill for ie10+\n\n if (!Element.prototype.matches) {\n // IE uses the non-standard name: msMatchesSelector\n Element.prototype.matches = (Element.prototype as any).msMatchesSelector || Element.prototype.webkitMatchesSelector;\n }\n\n Element.prototype.closest = function(s: string) {\n let el = this;\n if (!document.documentElement.contains(el)) {\n return null;\n }\n do {\n if (el.matches(s)) {\n return el;\n }\n el = el.parentElement || el.parentNode;\n } while (el !== null && el.nodeType === 1);\n return null;\n };\n}\n\nexport function closest(element: HTMLElement, selector): HTMLElement {\n if (!selector) {\n return null;\n }\n\n return element.closest(selector);\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all accordions used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbAccordionConfig {\n closeOthers = false;\n type: string;\n}\n","import {\n AfterContentChecked,\n Component,\n ContentChildren,\n Directive,\n EventEmitter,\n Host,\n Input,\n Optional,\n Output,\n QueryList,\n TemplateRef\n} from '@angular/core';\n\nimport {isString} from '../util/util';\n\nimport {NgbAccordionConfig} from './accordion-config';\n\nlet nextId = 0;\n\n/**\n * The context for the [NgbPanelHeader](#/components/accordion/api#NgbPanelHeader) template\n *\n * @since 4.1.0\n */\nexport interface NgbPanelHeaderContext {\n /**\n * `True` if current panel is opened\n */\n opened: boolean;\n}\n\n/**\n * A directive that wraps an accordion panel header with any HTML markup and a toggling button\n * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle).\n * See the [header customization demo](#/components/accordion/examples#header) for more details.\n *\n * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title.\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPanelHeader]'})\nexport class NgbPanelHeader {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps only the panel title with HTML markup inside.\n *\n * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header.\n */\n@Directive({selector: 'ng-template[ngbPanelTitle]'})\nexport class NgbPanelTitle {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps the accordion panel content.\n */\n@Directive({selector: 'ng-template[ngbPanelContent]'})\nexport class NgbPanelContent {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps an individual accordion panel with title and collapsible content.\n */\n@Directive({selector: 'ngb-panel'})\nexport class NgbPanel implements AfterContentChecked {\n /**\n * If `true`, the panel is disabled an can't be toggled.\n */\n @Input() disabled = false;\n\n /**\n * An optional id for the panel that must be unique on the page.\n *\n * If not provided, it will be auto-generated in the `ngb-panel-xxx` format.\n */\n @Input() id = `ngb-panel-${nextId++}`;\n\n isOpen = false;\n\n /**\n * The panel title.\n *\n * You can alternatively use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to set panel title.\n */\n @Input() title: string;\n\n /**\n * Type of the current panel.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n\n titleTpl: NgbPanelTitle | null;\n headerTpl: NgbPanelHeader | null;\n contentTpl: NgbPanelContent | null;\n\n @ContentChildren(NgbPanelTitle, {descendants: false}) titleTpls: QueryList;\n @ContentChildren(NgbPanelHeader, {descendants: false}) headerTpls: QueryList;\n @ContentChildren(NgbPanelContent, {descendants: false}) contentTpls: QueryList;\n\n ngAfterContentChecked() {\n // We are using @ContentChildren instead of @ContentChild as in the Angular version being used\n // only @ContentChildren allows us to specify the {descendants: false} option.\n // Without {descendants: false} we are hitting bugs described in:\n // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240\n this.titleTpl = this.titleTpls.first;\n this.headerTpl = this.headerTpls.first;\n this.contentTpl = this.contentTpls.first;\n }\n}\n\n/**\n * An event emitted right before toggling an accordion panel.\n */\nexport interface NgbPanelChangeEvent {\n /**\n * The id of the accordion panel that is being toggled.\n */\n panelId: string;\n\n /**\n * The next state of the panel.\n *\n * `true` if it will be opened, `false` if closed.\n */\n nextState: boolean;\n\n /**\n * Calling this function will prevent panel toggling.\n */\n preventDefault: () => void;\n}\n\n/**\n * Accordion is a collection of collapsible panels (bootstrap cards).\n *\n * It can ensure only one panel is opened at a time and allows to customize panel\n * headers.\n */\n@Component({\n selector: 'ngb-accordion',\n exportAs: 'ngbAccordion',\n host: {'class': 'accordion', 'role': 'tablist', '[attr.aria-multiselectable]': '!closeOtherPanels'},\n template: `\n \n \n \n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n `\n})\nexport class NgbAccordion implements AfterContentChecked {\n @ContentChildren(NgbPanel) panels: QueryList;\n\n /**\n * An array or comma separated strings of panel ids that should be opened **initially**.\n *\n * For subsequent changes use methods like `expand()`, `collapse()`, etc. and\n * the `(panelChange)` event.\n */\n @Input() activeIds: string | string[] = [];\n\n /**\n * If `true`, only one panel could be opened at a time.\n *\n * Opening a new panel will close others.\n */\n @Input('closeOthers') closeOtherPanels: boolean;\n\n /**\n * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed.\n */\n @Input() destroyOnHide = true;\n\n /**\n * Type of panels.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n\n /**\n * Event emitted right before the panel toggle happens.\n *\n * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details.\n */\n @Output() panelChange = new EventEmitter();\n\n constructor(config: NgbAccordionConfig) {\n this.type = config.type;\n this.closeOtherPanels = config.closeOthers;\n }\n\n /**\n * Checks if a panel with a given id is expanded.\n */\n isExpanded(panelId: string): boolean { return this.activeIds.indexOf(panelId) > -1; }\n\n /**\n * Expands a panel with a given id.\n *\n * Has no effect if the panel is already expanded or disabled.\n */\n expand(panelId: string): void { this._changeOpenState(this._findPanelById(panelId), true); }\n\n /**\n * Expands all panels, if `[closeOthers]` is `false`.\n *\n * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened.\n */\n expandAll(): void {\n if (this.closeOtherPanels) {\n if (this.activeIds.length === 0 && this.panels.length) {\n this._changeOpenState(this.panels.first, true);\n }\n } else {\n this.panels.forEach(panel => this._changeOpenState(panel, true));\n }\n }\n\n /**\n * Collapses a panel with the given id.\n *\n * Has no effect if the panel is already collapsed or disabled.\n */\n collapse(panelId: string) { this._changeOpenState(this._findPanelById(panelId), false); }\n\n /**\n * Collapses all opened panels.\n */\n collapseAll() {\n this.panels.forEach((panel) => { this._changeOpenState(panel, false); });\n }\n\n /**\n * Toggles a panel with the given id.\n *\n * Has no effect if the panel is disabled.\n */\n toggle(panelId: string) {\n const panel = this._findPanelById(panelId);\n if (panel) {\n this._changeOpenState(panel, !panel.isOpen);\n }\n }\n\n ngAfterContentChecked() {\n // active id updates\n if (isString(this.activeIds)) {\n this.activeIds = this.activeIds.split(/\\s*,\\s*/);\n }\n\n // update panels open states\n this.panels.forEach(panel => panel.isOpen = !panel.disabled && this.activeIds.indexOf(panel.id) > -1);\n\n // closeOthers updates\n if (this.activeIds.length > 1 && this.closeOtherPanels) {\n this._closeOthers(this.activeIds[0]);\n this._updateActiveIds();\n }\n }\n\n private _changeOpenState(panel: NgbPanel, nextState: boolean) {\n if (panel && !panel.disabled && panel.isOpen !== nextState) {\n let defaultPrevented = false;\n\n this.panelChange.emit(\n {panelId: panel.id, nextState: nextState, preventDefault: () => { defaultPrevented = true; }});\n\n if (!defaultPrevented) {\n panel.isOpen = nextState;\n\n if (nextState && this.closeOtherPanels) {\n this._closeOthers(panel.id);\n }\n this._updateActiveIds();\n }\n }\n }\n\n private _closeOthers(panelId: string) {\n this.panels.forEach(panel => {\n if (panel.id !== panelId) {\n panel.isOpen = false;\n }\n });\n }\n\n private _findPanelById(panelId: string): NgbPanel | null { return this.panels.find(p => p.id === panelId); }\n\n private _updateActiveIds() {\n this.activeIds = this.panels.filter(panel => panel.isOpen && !panel.disabled).map(panel => panel.id);\n }\n}\n\n/**\n * A directive to put on a button that toggles panel opening and closing.\n *\n * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader)\n *\n * @since 4.1.0\n */\n@Directive({\n selector: 'button[ngbPanelToggle]',\n host: {\n 'type': 'button',\n '[disabled]': 'panel.disabled',\n '[class.collapsed]': '!panel.isOpen',\n '[attr.aria-expanded]': 'panel.isOpen',\n '[attr.aria-controls]': 'panel.id',\n '(click)': 'accordion.toggle(panel.id)'\n }\n})\nexport class NgbPanelToggle {\n @Input()\n set ngbPanelToggle(panel: NgbPanel) {\n if (panel) {\n this.panel = panel;\n }\n }\n\n constructor(public accordion: NgbAccordion, @Optional() @Host() public panel: NgbPanel) {}\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle} from './accordion';\n\nexport {\n NgbAccordion,\n NgbPanel,\n NgbPanelTitle,\n NgbPanelContent,\n NgbPanelChangeEvent,\n NgbPanelHeader,\n NgbPanelHeaderContext,\n NgbPanelToggle\n} from './accordion';\nexport {NgbAccordionConfig} from './accordion-config';\n\nconst NGB_ACCORDION_DIRECTIVES =\n [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle];\n\n@NgModule({declarations: NGB_ACCORDION_DIRECTIVES, exports: NGB_ACCORDION_DIRECTIVES, imports: [CommonModule]})\nexport class NgbAccordionModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all alerts used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbAlertConfig {\n dismissible = true;\n type = 'warning';\n}\n","import {\n Component,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n Renderer2,\n ElementRef,\n OnChanges,\n OnInit,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {NgbAlertConfig} from './alert-config';\n\n/**\n * Alert is a component to provide contextual feedback messages for user.\n *\n * It supports several alert types and can be dismissed.\n */\n@Component({\n selector: 'ngb-alert',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible'},\n template: `\n \n \n `,\n styleUrls: ['./alert.scss']\n})\nexport class NgbAlert implements OnInit,\n OnChanges {\n /**\n * If `true`, alert can be dismissed by the user.\n *\n * The close button (×) will be displayed and you can be notified\n * of the event with the `(close)` output.\n */\n @Input() dismissible: boolean;\n /**\n * Type of the alert.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n /**\n * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts.\n */\n @Output() close = new EventEmitter();\n\n constructor(config: NgbAlertConfig, private _renderer: Renderer2, private _element: ElementRef) {\n this.dismissible = config.dismissible;\n this.type = config.type;\n }\n\n closeHandler() { this.close.emit(null); }\n\n ngOnChanges(changes: SimpleChanges) {\n const typeChange = changes['type'];\n if (typeChange && !typeChange.firstChange) {\n this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`);\n this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`);\n }\n }\n\n ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbAlert} from './alert';\n\nexport {NgbAlert} from './alert';\nexport {NgbAlertConfig} from './alert-config';\n\n@NgModule({declarations: [NgbAlert], exports: [NgbAlert], imports: [CommonModule], entryComponents: [NgbAlert]})\nexport class NgbAlertModule {\n}\n","import {Directive} from '@angular/core';\n\n@Directive({\n selector: '[ngbButtonLabel]',\n host:\n {'[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused'}\n})\nexport class NgbButtonLabel {\n active: boolean;\n disabled: boolean;\n focused: boolean;\n}\n","import {ChangeDetectorRef, Directive, forwardRef, Input} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {NgbButtonLabel} from './label';\n\nconst NGB_CHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbCheckBox),\n multi: true\n};\n\n\n/**\n * Allows to easily create Bootstrap-style checkbox buttons.\n *\n * Integrates with forms, so the value of a checked button is bound to the underlying form control\n * either in a reactive or template-driven way.\n */\n@Directive({\n selector: '[ngbButton][type=checkbox]',\n host: {\n 'autocomplete': 'off',\n '[checked]': 'checked',\n '[disabled]': 'disabled',\n '(change)': 'onInputChange($event)',\n '(focus)': 'focused = true',\n '(blur)': 'focused = false'\n },\n providers: [NGB_CHECKBOX_VALUE_ACCESSOR]\n})\nexport class NgbCheckBox implements ControlValueAccessor {\n checked;\n\n /**\n * If `true`, the checkbox button will be disabled\n */\n @Input() disabled = false;\n\n /**\n * The form control value when the checkbox is checked.\n */\n @Input() valueChecked = true;\n\n /**\n * The form control value when the checkbox is unchecked.\n */\n @Input() valueUnChecked = false;\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n set focused(isFocused: boolean) {\n this._label.focused = isFocused;\n if (!isFocused) {\n this.onTouched();\n }\n }\n\n constructor(private _label: NgbButtonLabel, private _cd: ChangeDetectorRef) {}\n\n onInputChange($event) {\n const modelToPropagate = $event.target.checked ? this.valueChecked : this.valueUnChecked;\n this.onChange(modelToPropagate);\n this.onTouched();\n this.writeValue(modelToPropagate);\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n this._label.disabled = isDisabled;\n }\n\n writeValue(value) {\n this.checked = value === this.valueChecked;\n this._label.active = this.checked;\n\n // label won't be updated, if it is inside the OnPush component when [ngModel] changes\n this._cd.markForCheck();\n }\n}\n","import {ChangeDetectorRef, Directive, ElementRef, forwardRef, Input, OnDestroy, Renderer2} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {NgbButtonLabel} from './label';\n\nconst NGB_RADIO_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbRadioGroup),\n multi: true\n};\n\nlet nextId = 0;\n\n/**\n * Allows to easily create Bootstrap-style radio buttons.\n *\n * Integrates with forms, so the value of a checked button is bound to the underlying form control\n * either in a reactive or template-driven way.\n */\n@Directive({selector: '[ngbRadioGroup]', host: {'role': 'radiogroup'}, providers: [NGB_RADIO_VALUE_ACCESSOR]})\nexport class NgbRadioGroup implements ControlValueAccessor {\n private _radios: Set = new Set();\n private _value = null;\n private _disabled: boolean;\n\n get disabled() { return this._disabled; }\n set disabled(isDisabled: boolean) { this.setDisabledState(isDisabled); }\n\n /**\n * Name of the radio group applied to radio input elements.\n *\n * Will be applied to all radio input elements inside the group,\n * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves.\n *\n * If not provided, will be generated in the `ngb-radio-xx` format.\n */\n @Input() name = `ngb-radio-${nextId++}`;\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n onRadioChange(radio: NgbRadio) {\n this.writeValue(radio.value);\n this.onChange(radio.value);\n }\n\n onRadioValueUpdate() { this._updateRadiosValue(); }\n\n register(radio: NgbRadio) { this._radios.add(radio); }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean): void {\n this._disabled = isDisabled;\n this._updateRadiosDisabled();\n }\n\n unregister(radio: NgbRadio) { this._radios.delete(radio); }\n\n writeValue(value) {\n this._value = value;\n this._updateRadiosValue();\n }\n\n private _updateRadiosValue() { this._radios.forEach((radio) => radio.updateValue(this._value)); }\n private _updateRadiosDisabled() { this._radios.forEach((radio) => radio.updateDisabled()); }\n}\n\n\n/**\n * A directive that marks an input of type \"radio\" as a part of the\n * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup).\n */\n@Directive({\n selector: '[ngbButton][type=radio]',\n host: {\n '[checked]': 'checked',\n '[disabled]': 'disabled',\n '[name]': 'nameAttr',\n '(change)': 'onChange()',\n '(focus)': 'focused = true',\n '(blur)': 'focused = false'\n }\n})\nexport class NgbRadio implements OnDestroy {\n private _checked: boolean;\n private _disabled: boolean;\n private _value: any = null;\n\n /**\n * The value for the 'name' property of the input element.\n *\n * All inputs of the radio group should have the same name. If not specified,\n * the name of the enclosing group is used.\n */\n @Input() name: string;\n\n /**\n * The form control value when current radio button is checked.\n */\n @Input('value')\n set value(value: any) {\n this._value = value;\n const stringValue = value ? value.toString() : '';\n this._renderer.setProperty(this._element.nativeElement, 'value', stringValue);\n this._group.onRadioValueUpdate();\n }\n\n /**\n * If `true`, current radio button will be disabled.\n */\n @Input('disabled')\n set disabled(isDisabled: boolean) {\n this._disabled = isDisabled !== false;\n this.updateDisabled();\n }\n\n set focused(isFocused: boolean) {\n if (this._label) {\n this._label.focused = isFocused;\n }\n if (!isFocused) {\n this._group.onTouched();\n }\n }\n\n get checked() { return this._checked; }\n\n get disabled() { return this._group.disabled || this._disabled; }\n\n get value() { return this._value; }\n\n get nameAttr() { return this.name || this._group.name; }\n\n constructor(\n private _group: NgbRadioGroup, private _label: NgbButtonLabel, private _renderer: Renderer2,\n private _element: ElementRef, private _cd: ChangeDetectorRef) {\n this._group.register(this);\n this.updateDisabled();\n }\n\n ngOnDestroy() { this._group.unregister(this); }\n\n onChange() { this._group.onRadioChange(this); }\n\n updateValue(value) {\n // label won't be updated, if it is inside the OnPush component when [ngModel] changes\n if (this.value !== value) {\n this._cd.markForCheck();\n }\n\n this._checked = this.value === value;\n this._label.active = this._checked;\n }\n\n updateDisabled() { this._label.disabled = this.disabled; }\n}\n","import {NgModule} from '@angular/core';\nimport {NgbButtonLabel} from './label';\nimport {NgbCheckBox} from './checkbox';\nimport {NgbRadio, NgbRadioGroup} from './radio';\n\nexport {NgbButtonLabel} from './label';\nexport {NgbCheckBox} from './checkbox';\nexport {NgbRadio, NgbRadioGroup} from './radio';\n\n\nconst NGB_BUTTON_DIRECTIVES = [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio];\n\n@NgModule({declarations: NGB_BUTTON_DIRECTIVES, exports: NGB_BUTTON_DIRECTIVES})\nexport class NgbButtonsModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all carousels used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbCarouselConfig {\n interval = 5000;\n wrap = true;\n keyboard = true;\n pauseOnHover = true;\n showNavigationArrows = true;\n showNavigationIndicators = true;\n}\n","import {\n AfterContentChecked,\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n Directive,\n EventEmitter,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n PLATFORM_ID,\n QueryList,\n TemplateRef,\n HostListener\n} from '@angular/core';\nimport {isPlatformBrowser} from '@angular/common';\n\nimport {NgbCarouselConfig} from './carousel-config';\n\nimport {Subject, timer, BehaviorSubject, combineLatest, NEVER} from 'rxjs';\nimport {startWith, map, switchMap, takeUntil, distinctUntilChanged} from 'rxjs/operators';\n\nlet nextId = 0;\n\n/**\n * A directive that wraps the individual carousel slide.\n */\n@Directive({selector: 'ng-template[ngbSlide]'})\nexport class NgbSlide {\n /**\n * Slide id that must be unique for the entire document.\n *\n * If not provided, will be generated in the `ngb-slide-xx` format.\n */\n @Input() id = `ngb-slide-${nextId++}`;\n constructor(public tplRef: TemplateRef) {}\n}\n\n/**\n * Carousel is a component to easily create and control slideshows.\n *\n * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API.\n */\n@Component({\n selector: 'ngb-carousel',\n exportAs: 'ngbCarousel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'carousel slide',\n '[style.display]': '\"block\"',\n 'tabIndex': '0',\n '(keydown.arrowLeft)': 'keyboard && prev(NgbSlideEventSource.ARROW_LEFT)',\n '(keydown.arrowRight)': 'keyboard && next(NgbSlideEventSource.ARROW_RIGHT)'\n },\n template: `\n
    \n
  1. \n
\n
\n
\n \n
\n
\n \n \n Previous\n \n \n \n Next\n \n `\n})\nexport class NgbCarousel implements AfterContentChecked,\n AfterContentInit, OnDestroy {\n @ContentChildren(NgbSlide) slides: QueryList;\n\n public NgbSlideEventSource = NgbSlideEventSource;\n\n private _destroy$ = new Subject();\n private _interval$ = new BehaviorSubject(0);\n private _mouseHover$ = new BehaviorSubject(false);\n private _pauseOnHover$ = new BehaviorSubject(false);\n private _pause$ = new BehaviorSubject(false);\n private _wrap$ = new BehaviorSubject(false);\n\n /**\n * The slide id that should be displayed **initially**.\n *\n * For subsequent interactions use methods `select()`, `next()`, etc. and the `(slide)` output.\n */\n @Input() activeId: string;\n\n /**\n * Time in milliseconds before the next slide is shown.\n */\n @Input()\n set interval(value: number) {\n this._interval$.next(value);\n }\n\n get interval() { return this._interval$.value; }\n\n /**\n * If `true`, will 'wrap' the carousel by switching from the last slide back to the first.\n */\n @Input()\n set wrap(value: boolean) {\n this._wrap$.next(value);\n }\n\n get wrap() { return this._wrap$.value; }\n\n /**\n * If `true`, allows to interact with carousel using keyboard 'arrow left' and 'arrow right'.\n */\n @Input() keyboard: boolean;\n\n /**\n * If `true`, will pause slide switching when mouse cursor hovers the slide.\n *\n * @since 2.2.0\n */\n @Input()\n set pauseOnHover(value: boolean) {\n this._pauseOnHover$.next(value);\n }\n\n get pauseOnHover() { return this._pauseOnHover$.value; }\n\n /**\n * If `true`, 'previous' and 'next' navigation arrows will be visible on the slide.\n *\n * @since 2.2.0\n */\n @Input() showNavigationArrows: boolean;\n\n /**\n * If `true`, navigation indicators at the bottom of the slide will be visible.\n *\n * @since 2.2.0\n */\n @Input() showNavigationIndicators: boolean;\n\n /**\n * An event emitted right after the slide transition is completed.\n *\n * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details.\n */\n @Output() slide = new EventEmitter();\n\n constructor(\n config: NgbCarouselConfig, @Inject(PLATFORM_ID) private _platformId, private _ngZone: NgZone,\n private _cd: ChangeDetectorRef) {\n this.interval = config.interval;\n this.wrap = config.wrap;\n this.keyboard = config.keyboard;\n this.pauseOnHover = config.pauseOnHover;\n this.showNavigationArrows = config.showNavigationArrows;\n this.showNavigationIndicators = config.showNavigationIndicators;\n }\n\n @HostListener('mouseenter')\n mouseEnter() {\n this._mouseHover$.next(true);\n }\n\n @HostListener('mouseleave')\n mouseLeave() {\n this._mouseHover$.next(false);\n }\n\n ngAfterContentInit() {\n // setInterval() doesn't play well with SSR and protractor,\n // so we should run it in the browser and outside Angular\n if (isPlatformBrowser(this._platformId)) {\n this._ngZone.runOutsideAngular(() => {\n const hasNextSlide$ = combineLatest(\n this.slide.pipe(map(slideEvent => slideEvent.current), startWith(this.activeId)),\n this._wrap$, this.slides.changes.pipe(startWith(null)))\n .pipe(\n map(([currentSlideId, wrap]) => {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n return wrap ? slideArr.length > 1 : currentSlideIdx < slideArr.length - 1;\n }),\n distinctUntilChanged());\n combineLatest(this._pause$, this._pauseOnHover$, this._mouseHover$, this._interval$, hasNextSlide$)\n .pipe(\n map(([pause, pauseOnHover, mouseHover, interval, hasNextSlide]) =>\n ((pause || (pauseOnHover && mouseHover) || !hasNextSlide) ? 0 : interval)),\n\n distinctUntilChanged(), switchMap(interval => interval > 0 ? timer(interval, interval) : NEVER),\n takeUntil(this._destroy$))\n .subscribe(() => this._ngZone.run(() => this.next(NgbSlideEventSource.TIMER)));\n });\n }\n\n this.slides.changes.pipe(takeUntil(this._destroy$)).subscribe(() => this._cd.markForCheck());\n }\n\n ngAfterContentChecked() {\n let activeSlide = this._getSlideById(this.activeId);\n this.activeId = activeSlide ? activeSlide.id : (this.slides.length ? this.slides.first.id : null);\n }\n\n ngOnDestroy() { this._destroy$.next(); }\n\n /**\n * Navigates to a slide with the specified identifier.\n */\n select(slideId: string, source?: NgbSlideEventSource) {\n this._cycleToSelected(slideId, this._getSlideEventDirection(this.activeId, slideId), source);\n }\n\n /**\n * Navigates to the previous slide.\n */\n prev(source?: NgbSlideEventSource) {\n this._cycleToSelected(this._getPrevSlide(this.activeId), NgbSlideEventDirection.RIGHT, source);\n }\n\n /**\n * Navigates to the next slide.\n */\n next(source?: NgbSlideEventSource) {\n this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source);\n }\n\n /**\n * Pauses cycling through the slides.\n */\n pause() { this._pause$.next(true); }\n\n /**\n * Restarts cycling through the slides from left to right.\n */\n cycle() { this._pause$.next(false); }\n\n private _cycleToSelected(slideIdx: string, direction: NgbSlideEventDirection, source?: NgbSlideEventSource) {\n let selectedSlide = this._getSlideById(slideIdx);\n if (selectedSlide && selectedSlide.id !== this.activeId) {\n this.slide.emit(\n {prev: this.activeId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source});\n this.activeId = selectedSlide.id;\n }\n\n // we get here after the interval fires or any external API call like next(), prev() or select()\n this._cd.markForCheck();\n }\n\n private _getSlideEventDirection(currentActiveSlideId: string, nextActiveSlideId: string): NgbSlideEventDirection {\n const currentActiveSlideIdx = this._getSlideIdxById(currentActiveSlideId);\n const nextActiveSlideIdx = this._getSlideIdxById(nextActiveSlideId);\n\n return currentActiveSlideIdx > nextActiveSlideIdx ? NgbSlideEventDirection.RIGHT : NgbSlideEventDirection.LEFT;\n }\n\n private _getSlideById(slideId: string): NgbSlide { return this.slides.find(slide => slide.id === slideId); }\n\n private _getSlideIdxById(slideId: string): number {\n return this.slides.toArray().indexOf(this._getSlideById(slideId));\n }\n\n private _getNextSlide(currentSlideId: string): string {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n const isLastSlide = currentSlideIdx === slideArr.length - 1;\n\n return isLastSlide ? (this.wrap ? slideArr[0].id : slideArr[slideArr.length - 1].id) :\n slideArr[currentSlideIdx + 1].id;\n }\n\n private _getPrevSlide(currentSlideId: string): string {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n const isFirstSlide = currentSlideIdx === 0;\n\n return isFirstSlide ? (this.wrap ? slideArr[slideArr.length - 1].id : slideArr[0].id) :\n slideArr[currentSlideIdx - 1].id;\n }\n}\n\n/**\n * A slide change event emitted right after the slide transition is completed.\n */\nexport interface NgbSlideEvent {\n /**\n * The previous slide id.\n */\n prev: string;\n\n /**\n * The current slide id.\n */\n current: string;\n\n /**\n * The slide event direction.\n *\n * Possible values are `'left' | 'right'`.\n */\n direction: NgbSlideEventDirection;\n\n /**\n * Whether the pause() method was called (and no cycle() call was done afterwards).\n *\n * @since 5.1.0\n */\n paused: boolean;\n\n /**\n * Source triggering the slide change event.\n *\n * Possible values are `'timer' | 'arrowLeft' | 'arrowRight' | 'indicator'`\n *\n * @since 5.1.0\n */\n source?: NgbSlideEventSource;\n}\n\n/**\n * Defines the carousel slide transition direction.\n */\nexport enum NgbSlideEventDirection {\n LEFT = 'left',\n RIGHT = 'right'\n}\n\nexport enum NgbSlideEventSource {\n TIMER = 'timer',\n ARROW_LEFT = 'arrowLeft',\n ARROW_RIGHT = 'arrowRight',\n INDICATOR = 'indicator'\n}\n\nexport const NGB_CAROUSEL_DIRECTIVES = [NgbCarousel, NgbSlide];\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NGB_CAROUSEL_DIRECTIVES} from './carousel';\n\nexport {NgbCarousel, NgbSlide, NgbSlideEvent, NgbSlideEventDirection, NgbSlideEventSource} from './carousel';\nexport {NgbCarouselConfig} from './carousel-config';\n\n@NgModule({declarations: NGB_CAROUSEL_DIRECTIVES, exports: NGB_CAROUSEL_DIRECTIVES, imports: [CommonModule]})\nexport class NgbCarouselModule {\n}\n","import {Directive, Input} from '@angular/core';\n\n/**\n * A directive to provide a simple way of hiding and showing elements on the page.\n */\n@Directive({\n selector: '[ngbCollapse]',\n exportAs: 'ngbCollapse',\n host: {'[class.collapse]': 'true', '[class.show]': '!collapsed'}\n})\nexport class NgbCollapse {\n /**\n * If `true`, will collapse the element or show it otherwise.\n */\n @Input('ngbCollapse') collapsed = false;\n}\n","import {NgModule} from '@angular/core';\nimport {NgbCollapse} from './collapse';\n\nexport {NgbCollapse} from './collapse';\n\n@NgModule({declarations: [NgbCollapse], exports: [NgbCollapse]})\nexport class NgbCollapseModule {\n}\n","import {NgbDateStruct} from './ngb-date-struct';\nimport {isInteger} from '../util/util';\n\n/**\n * A simple class that represents a date that datepicker also uses internally.\n *\n * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods,\n * like `.equals()`, `.before()`, etc.\n *\n * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`.\n *\n * In many cases it is simpler to manipulate these objects together with\n * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details.\n *\n * @since 3.0.0\n */\nexport class NgbDate implements NgbDateStruct {\n /**\n * The year, for example 2016\n */\n year: number;\n\n /**\n * The month, for example 1=Jan ... 12=Dec as in ISO 8601\n */\n month: number;\n\n /**\n * The day of month, starting with 1\n */\n day: number;\n\n /**\n * A **static method** that creates a new date object from the `NgbDateStruct`,\n *\n * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`.\n *\n * If the `date` is already of `NgbDate` type, the method will return the same object.\n */\n static from(date: NgbDateStruct): NgbDate {\n if (date instanceof NgbDate) {\n return date;\n }\n return date ? new NgbDate(date.year, date.month, date.day) : null;\n }\n\n constructor(year: number, month: number, day: number) {\n this.year = isInteger(year) ? year : null;\n this.month = isInteger(month) ? month : null;\n this.day = isInteger(day) ? day : null;\n }\n\n /**\n * Checks if the current date is equal to another date.\n */\n equals(other: NgbDateStruct): boolean {\n return other && this.year === other.year && this.month === other.month && this.day === other.day;\n }\n\n /**\n * Checks if the current date is before another date.\n */\n before(other: NgbDateStruct): boolean {\n if (!other) {\n return false;\n }\n\n if (this.year === other.year) {\n if (this.month === other.month) {\n return this.day === other.day ? false : this.day < other.day;\n } else {\n return this.month < other.month;\n }\n } else {\n return this.year < other.year;\n }\n }\n\n /**\n * Checks if the current date is after another date.\n */\n after(other: NgbDateStruct): boolean {\n if (!other) {\n return false;\n }\n if (this.year === other.year) {\n if (this.month === other.month) {\n return this.day === other.day ? false : this.day > other.day;\n } else {\n return this.month > other.month;\n }\n } else {\n return this.year > other.year;\n }\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {Injectable} from '@angular/core';\nimport {isInteger} from '../util/util';\n\nexport function fromJSDate(jsDate: Date) {\n return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate());\n}\nexport function toJSDate(date: NgbDate) {\n const jsDate = new Date(date.year, date.month - 1, date.day, 12);\n // this is done avoid 30 -> 1930 conversion\n if (!isNaN(jsDate.getTime())) {\n jsDate.setFullYear(date.year);\n }\n return jsDate;\n}\n\nexport type NgbPeriod = 'y' | 'm' | 'd';\n\nexport function NGB_DATEPICKER_CALENDAR_FACTORY() {\n return new NgbCalendarGregorian();\n}\n\n/**\n * A service that represents the calendar used by the datepicker.\n *\n * The default implementation uses the Gregorian calendar. You can inject it in your own\n * implementations if necessary to simplify `NgbDate` calculations.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_CALENDAR_FACTORY})\nexport abstract class NgbCalendar {\n /**\n * Returns the number of days per week.\n */\n abstract getDaysPerWeek(): number;\n\n /**\n * Returns an array of months per year.\n *\n * With default calendar we use ISO 8601 and return [1, 2, ..., 12];\n */\n abstract getMonths(year?: number): number[];\n\n /**\n * Returns the number of weeks per month.\n */\n abstract getWeeksPerMonth(): number;\n\n /**\n * Returns the weekday number for a given day.\n *\n * With the default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun\n */\n abstract getWeekday(date: NgbDate): number;\n\n /**\n * Adds a number of years, months or days to a given date.\n *\n * * `period` can be `y`, `m` or `d` and defaults to day.\n * * `number` defaults to 1.\n *\n * Always returns a new date.\n */\n abstract getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;\n\n /**\n * Subtracts a number of years, months or days from a given date.\n *\n * * `period` can be `y`, `m` or `d` and defaults to day.\n * * `number` defaults to 1.\n *\n * Always returns a new date.\n */\n abstract getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;\n\n /**\n * Returns the week number for a given week.\n */\n abstract getWeekNumber(week: NgbDate[], firstDayOfWeek: number): number;\n\n /**\n * Returns the today's date.\n */\n abstract getToday(): NgbDate;\n\n /**\n * Checks if a date is valid in the current calendar.\n */\n abstract isValid(date: NgbDate): boolean;\n}\n\n@Injectable()\nexport class NgbCalendarGregorian extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n let jsDate = toJSDate(date);\n\n switch (period) {\n case 'y':\n return new NgbDate(date.year + number, 1, 1);\n case 'm':\n jsDate = new Date(date.year, date.month + number - 1, 1, 12);\n break;\n case 'd':\n jsDate.setDate(jsDate.getDate() + number);\n break;\n default:\n return date;\n }\n\n return fromJSDate(jsDate);\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n let jsDate = toJSDate(date);\n let day = jsDate.getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n let date = week[thursdayIndex];\n\n const jsDate = toJSDate(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n jsDate.setMonth(0); // Compare with Jan 1\n jsDate.setDate(1);\n return Math.floor(Math.round((time - jsDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return fromJSDate(new Date()); }\n\n isValid(date: NgbDate): boolean {\n if (!date || !isInteger(date.year) || !isInteger(date.month) || !isInteger(date.day)) {\n return false;\n }\n\n // year 0 doesn't exist in Gregorian calendar\n if (date.year === 0) {\n return false;\n }\n\n const jsDate = toJSDate(date);\n\n return !isNaN(jsDate.getTime()) && jsDate.getFullYear() === date.year && jsDate.getMonth() + 1 === date.month &&\n jsDate.getDate() === date.day;\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {DatepickerViewModel, DayViewModel, MonthViewModel} from './datepicker-view-model';\nimport {NgbCalendar} from './ngb-calendar';\nimport {isDefined} from '../util/util';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\nexport function isChangedDate(prev: NgbDate, next: NgbDate) {\n return !dateComparator(prev, next);\n}\n\nexport function isChangedMonth(prev: NgbDate, next: NgbDate) {\n return !prev && !next ? false : !prev || !next ? true : prev.year !== next.year || prev.month !== next.month;\n}\n\nexport function dateComparator(prev: NgbDate, next: NgbDate) {\n return (!prev && !next) || (!!prev && !!next && prev.equals(next));\n}\n\nexport function checkMinBeforeMax(minDate: NgbDate, maxDate: NgbDate) {\n if (maxDate && minDate && maxDate.before(minDate)) {\n throw new Error(`'maxDate' ${maxDate} should be greater than 'minDate' ${minDate}`);\n }\n}\n\nexport function checkDateInRange(date: NgbDate, minDate: NgbDate, maxDate: NgbDate): NgbDate {\n if (date && minDate && date.before(minDate)) {\n return minDate;\n }\n if (date && maxDate && date.after(maxDate)) {\n return maxDate;\n }\n\n return date;\n}\n\nexport function isDateSelectable(date: NgbDate, state: DatepickerViewModel) {\n const {minDate, maxDate, disabled, markDisabled} = state;\n // clang-format off\n return !(\n !isDefined(date) ||\n disabled ||\n (markDisabled && markDisabled(date, {year: date.year, month: date.month})) ||\n (minDate && date.before(minDate)) ||\n (maxDate && date.after(maxDate))\n );\n // clang-format on\n}\n\nexport function generateSelectBoxMonths(calendar: NgbCalendar, date: NgbDate, minDate: NgbDate, maxDate: NgbDate) {\n if (!date) {\n return [];\n }\n\n let months = calendar.getMonths(date.year);\n\n if (minDate && date.year === minDate.year) {\n const index = months.findIndex(month => month === minDate.month);\n months = months.slice(index);\n }\n\n if (maxDate && date.year === maxDate.year) {\n const index = months.findIndex(month => month === maxDate.month);\n months = months.slice(0, index + 1);\n }\n\n return months;\n}\n\nexport function generateSelectBoxYears(date: NgbDate, minDate: NgbDate, maxDate: NgbDate) {\n if (!date) {\n return [];\n }\n\n const start = minDate && minDate.year || date.year - 10;\n const end = maxDate && maxDate.year || date.year + 10;\n\n return Array.from({length: end - start + 1}, (e, i) => start + i);\n}\n\nexport function nextMonthDisabled(calendar: NgbCalendar, date: NgbDate, maxDate: NgbDate) {\n return maxDate && calendar.getNext(date, 'm').after(maxDate);\n}\n\nexport function prevMonthDisabled(calendar: NgbCalendar, date: NgbDate, minDate: NgbDate) {\n const prevDate = calendar.getPrev(date, 'm');\n return minDate && (prevDate.year === minDate.year && prevDate.month < minDate.month ||\n prevDate.year < minDate.year && minDate.month === 1);\n}\n\nexport function buildMonths(\n calendar: NgbCalendar, date: NgbDate, state: DatepickerViewModel, i18n: NgbDatepickerI18n,\n force: boolean): MonthViewModel[] {\n const {displayMonths, months} = state;\n // move old months to a temporary array\n const monthsToReuse = months.splice(0, months.length);\n\n // generate new first dates, nullify or reuse months\n const firstDates = Array.from({length: displayMonths}, (_, i) => {\n const firstDate = calendar.getNext(date, 'm', i);\n months[i] = null;\n\n if (!force) {\n const reusedIndex = monthsToReuse.findIndex(month => month.firstDate.equals(firstDate));\n // move reused month back to months\n if (reusedIndex !== -1) {\n months[i] = monthsToReuse.splice(reusedIndex, 1)[0];\n }\n }\n\n return firstDate;\n });\n\n // rebuild nullified months\n firstDates.forEach((firstDate, i) => {\n if (months[i] === null) {\n months[i] = buildMonth(calendar, firstDate, state, i18n, monthsToReuse.shift() || {} as MonthViewModel);\n }\n });\n\n return months;\n}\n\nexport function buildMonth(\n calendar: NgbCalendar, date: NgbDate, state: DatepickerViewModel, i18n: NgbDatepickerI18n,\n month: MonthViewModel = {} as MonthViewModel): MonthViewModel {\n const {dayTemplateData, minDate, maxDate, firstDayOfWeek, markDisabled, outsideDays} = state;\n const calendarToday = calendar.getToday();\n\n month.firstDate = null;\n month.lastDate = null;\n month.number = date.month;\n month.year = date.year;\n month.weeks = month.weeks || [];\n month.weekdays = month.weekdays || [];\n\n date = getFirstViewDate(calendar, date, firstDayOfWeek);\n\n // month has weeks\n for (let week = 0; week < calendar.getWeeksPerMonth(); week++) {\n let weekObject = month.weeks[week];\n if (!weekObject) {\n weekObject = month.weeks[week] = {number: 0, days: [], collapsed: true};\n }\n const days = weekObject.days;\n\n // week has days\n for (let day = 0; day < calendar.getDaysPerWeek(); day++) {\n if (week === 0) {\n month.weekdays[day] = calendar.getWeekday(date);\n }\n\n const newDate = new NgbDate(date.year, date.month, date.day);\n const nextDate = calendar.getNext(newDate);\n\n const ariaLabel = i18n.getDayAriaLabel(newDate);\n\n // marking date as disabled\n let disabled = !!((minDate && newDate.before(minDate)) || (maxDate && newDate.after(maxDate)));\n if (!disabled && markDisabled) {\n disabled = markDisabled(newDate, {month: month.number, year: month.year});\n }\n\n // today\n let today = newDate.equals(calendarToday);\n\n // adding user-provided data to the context\n let contextUserData =\n dayTemplateData ? dayTemplateData(newDate, {month: month.number, year: month.year}) : undefined;\n\n // saving first date of the month\n if (month.firstDate === null && newDate.month === month.number) {\n month.firstDate = newDate;\n }\n\n // saving last date of the month\n if (newDate.month === month.number && nextDate.month !== month.number) {\n month.lastDate = newDate;\n }\n\n let dayObject = days[day];\n if (!dayObject) {\n dayObject = days[day] = {} as DayViewModel;\n }\n dayObject.date = newDate;\n dayObject.context = Object.assign(dayObject.context || {}, {\n $implicit: newDate,\n date: newDate,\n data: contextUserData,\n currentMonth: month.number, disabled,\n focused: false,\n selected: false, today\n });\n dayObject.tabindex = -1;\n dayObject.ariaLabel = ariaLabel;\n dayObject.hidden = false;\n\n date = nextDate;\n }\n\n weekObject.number = calendar.getWeekNumber(days.map(day => day.date), firstDayOfWeek);\n\n // marking week as collapsed\n weekObject.collapsed = outsideDays === 'collapsed' && days[0].date.month !== month.number &&\n days[days.length - 1].date.month !== month.number;\n }\n\n return month;\n}\n\nexport function getFirstViewDate(calendar: NgbCalendar, date: NgbDate, firstDayOfWeek: number): NgbDate {\n const daysPerWeek = calendar.getDaysPerWeek();\n const firstMonthDate = new NgbDate(date.year, date.month, 1);\n const dayOfWeek = calendar.getWeekday(firstMonthDate) % daysPerWeek;\n return calendar.getPrev(firstMonthDate, 'd', (daysPerWeek + dayOfWeek - firstDayOfWeek) % daysPerWeek);\n}\n","import {Inject, Injectable, LOCALE_ID} from '@angular/core';\nimport {FormStyle, getLocaleDayNames, getLocaleMonthNames, TranslationWidth, formatDate} from '@angular/common';\nimport {NgbDateStruct} from './ngb-date-struct';\n\nexport function NGB_DATEPICKER_18N_FACTORY(locale) {\n return new NgbDatepickerI18nDefault(locale);\n}\n\n/**\n * A service supplying i18n data to the datepicker component.\n *\n * The default implementation of this service uses the Angular locale and registered locale data for\n * weekdays and month names (as explained in the Angular i18n guide).\n *\n * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year\n * numerals. For other static labels the datepicker uses the default Angular i18n.\n *\n * See the [i18n demo](#/components/datepicker/examples#i18n) and\n * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define\n * a custom provider for i18n.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_18N_FACTORY, deps: [LOCALE_ID]})\nexport abstract class NgbDatepickerI18n {\n /**\n * Returns the short weekday name to display in the heading of the month view.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n abstract getWeekdayShortName(weekday: number): string;\n\n /**\n * Returns the short month name to display in the date picker navigation.\n *\n * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n */\n abstract getMonthShortName(month: number, year?: number): string;\n\n /**\n * Returns the full month name to display in the date picker navigation.\n *\n * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n */\n abstract getMonthFullName(month: number, year?: number): string;\n\n /**\n * Returns the value of the `aria-label` attribute for a specific date.\n *\n * @since 2.0.0\n */\n abstract getDayAriaLabel(date: NgbDateStruct): string;\n\n /**\n * Returns the textual representation of a day that is rendered in a day cell.\n *\n * @since 3.0.0\n */\n getDayNumerals(date: NgbDateStruct): string { return `${date.day}`; }\n\n /**\n * Returns the textual representation of a week number rendered by datepicker.\n *\n * @since 3.0.0\n */\n getWeekNumerals(weekNumber: number): string { return `${weekNumber}`; }\n\n /**\n * Returns the textual representation of a year that is rendered in the datepicker year select box.\n *\n * @since 3.0.0\n */\n getYearNumerals(year: number): string { return `${year}`; }\n}\n\n@Injectable()\nexport class NgbDatepickerI18nDefault extends NgbDatepickerI18n {\n private _weekdaysShort: Array;\n private _monthsShort: Array;\n private _monthsFull: Array;\n\n constructor(@Inject(LOCALE_ID) private _locale: string) {\n super();\n\n const weekdaysStartingOnSunday = getLocaleDayNames(_locale, FormStyle.Standalone, TranslationWidth.Short);\n this._weekdaysShort = weekdaysStartingOnSunday.map((day, index) => weekdaysStartingOnSunday[(index + 1) % 7]);\n\n this._monthsShort = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Abbreviated);\n this._monthsFull = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Wide);\n }\n\n getWeekdayShortName(weekday: number): string { return this._weekdaysShort[weekday - 1]; }\n\n getMonthShortName(month: number): string { return this._monthsShort[month - 1]; }\n\n getMonthFullName(month: number): string { return this._monthsFull[month - 1]; }\n\n getDayAriaLabel(date: NgbDateStruct): string {\n const jsDate = new Date(date.year, date.month - 1, date.day);\n return formatDate(jsDate, 'fullDate', this._locale);\n }\n}\n","import {NgbCalendar, NgbPeriod} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {DatepickerViewModel, NgbDayTemplateData, NgbMarkDisabled} from './datepicker-view-model';\nimport {Injectable} from '@angular/core';\nimport {isInteger, toInteger} from '../util/util';\nimport {Observable, Subject} from 'rxjs';\nimport {\n buildMonths,\n checkDateInRange,\n checkMinBeforeMax,\n isChangedDate,\n isChangedMonth,\n isDateSelectable,\n generateSelectBoxYears,\n generateSelectBoxMonths,\n prevMonthDisabled,\n nextMonthDisabled\n} from './datepicker-tools';\n\nimport {filter} from 'rxjs/operators';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Injectable()\nexport class NgbDatepickerService {\n private _model$ = new Subject();\n\n private _select$ = new Subject();\n\n private _state: DatepickerViewModel = {\n disabled: false,\n displayMonths: 1,\n firstDayOfWeek: 1,\n focusVisible: false,\n months: [],\n navigation: 'select',\n outsideDays: 'visible',\n prevDisabled: false,\n nextDisabled: false,\n selectBoxes: {years: [], months: []},\n selectedDate: null\n };\n\n get model$(): Observable { return this._model$.pipe(filter(model => model.months.length > 0)); }\n\n get select$(): Observable { return this._select$.pipe(filter(date => date !== null)); }\n\n set dayTemplateData(dayTemplateData: NgbDayTemplateData) {\n if (this._state.dayTemplateData !== dayTemplateData) {\n this._nextState({dayTemplateData});\n }\n }\n\n set disabled(disabled: boolean) {\n if (this._state.disabled !== disabled) {\n this._nextState({disabled});\n }\n }\n\n set displayMonths(displayMonths: number) {\n displayMonths = toInteger(displayMonths);\n if (isInteger(displayMonths) && displayMonths > 0 && this._state.displayMonths !== displayMonths) {\n this._nextState({displayMonths});\n }\n }\n\n set firstDayOfWeek(firstDayOfWeek: number) {\n firstDayOfWeek = toInteger(firstDayOfWeek);\n if (isInteger(firstDayOfWeek) && firstDayOfWeek >= 0 && this._state.firstDayOfWeek !== firstDayOfWeek) {\n this._nextState({firstDayOfWeek});\n }\n }\n\n set focusVisible(focusVisible: boolean) {\n if (this._state.focusVisible !== focusVisible && !this._state.disabled) {\n this._nextState({focusVisible});\n }\n }\n\n set maxDate(date: NgbDate) {\n const maxDate = this.toValidDate(date, null);\n if (isChangedDate(this._state.maxDate, maxDate)) {\n this._nextState({maxDate});\n }\n }\n\n set markDisabled(markDisabled: NgbMarkDisabled) {\n if (this._state.markDisabled !== markDisabled) {\n this._nextState({markDisabled});\n }\n }\n\n set minDate(date: NgbDate) {\n const minDate = this.toValidDate(date, null);\n if (isChangedDate(this._state.minDate, minDate)) {\n this._nextState({minDate});\n }\n }\n\n set navigation(navigation: 'select' | 'arrows' | 'none') {\n if (this._state.navigation !== navigation) {\n this._nextState({navigation});\n }\n }\n\n set outsideDays(outsideDays: 'visible' | 'collapsed' | 'hidden') {\n if (this._state.outsideDays !== outsideDays) {\n this._nextState({outsideDays});\n }\n }\n\n constructor(private _calendar: NgbCalendar, private _i18n: NgbDatepickerI18n) {}\n\n focus(date: NgbDate) {\n if (!this._state.disabled && this._calendar.isValid(date) && isChangedDate(this._state.focusDate, date)) {\n this._nextState({focusDate: date});\n }\n }\n\n focusMove(period?: NgbPeriod, number?: number) {\n this.focus(this._calendar.getNext(this._state.focusDate, period, number));\n }\n\n focusSelect() {\n if (isDateSelectable(this._state.focusDate, this._state)) {\n this.select(this._state.focusDate, {emitEvent: true});\n }\n }\n\n open(date: NgbDate) {\n const firstDate = this.toValidDate(date, this._calendar.getToday());\n if (!this._state.disabled && (!this._state.firstDate || isChangedMonth(this._state.firstDate, date))) {\n this._nextState({firstDate});\n }\n }\n\n select(date: NgbDate, options: {emitEvent?: boolean} = {}) {\n const selectedDate = this.toValidDate(date, null);\n if (!this._state.disabled) {\n if (isChangedDate(this._state.selectedDate, selectedDate)) {\n this._nextState({selectedDate});\n }\n\n if (options.emitEvent && isDateSelectable(selectedDate, this._state)) {\n this._select$.next(selectedDate);\n }\n }\n }\n\n toValidDate(date: NgbDateStruct, defaultValue?: NgbDate): NgbDate {\n const ngbDate = NgbDate.from(date);\n if (defaultValue === undefined) {\n defaultValue = this._calendar.getToday();\n }\n return this._calendar.isValid(ngbDate) ? ngbDate : defaultValue;\n }\n\n private _nextState(patch: Partial) {\n const newState = this._updateState(patch);\n this._patchContexts(newState);\n this._state = newState;\n this._model$.next(this._state);\n }\n\n private _patchContexts(state: DatepickerViewModel) {\n const {months, displayMonths, selectedDate, focusDate, focusVisible, disabled, outsideDays} = state;\n state.months.forEach(month => {\n month.weeks.forEach(week => {\n week.days.forEach(day => {\n\n // patch focus flag\n if (focusDate) {\n day.context.focused = focusDate.equals(day.date) && focusVisible;\n }\n\n // calculating tabindex\n day.tabindex = !disabled && day.date.equals(focusDate) && focusDate.month === month.number ? 0 : -1;\n\n // override context disabled\n if (disabled === true) {\n day.context.disabled = true;\n }\n\n // patch selection flag\n if (selectedDate !== undefined) {\n day.context.selected = selectedDate !== null && selectedDate.equals(day.date);\n }\n\n // visibility\n if (month.number !== day.date.month) {\n day.hidden = outsideDays === 'hidden' || outsideDays === 'collapsed' ||\n (displayMonths > 1 && day.date.after(months[0].firstDate) &&\n day.date.before(months[displayMonths - 1].lastDate));\n }\n });\n });\n });\n }\n\n private _updateState(patch: Partial): DatepickerViewModel {\n // patching fields\n const state = Object.assign({}, this._state, patch);\n\n let startDate = state.firstDate;\n\n // min/max dates changed\n if ('minDate' in patch || 'maxDate' in patch) {\n checkMinBeforeMax(state.minDate, state.maxDate);\n state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate);\n state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate);\n startDate = state.focusDate;\n }\n\n // disabled\n if ('disabled' in patch) {\n state.focusVisible = false;\n }\n\n // initial rebuild via 'select()'\n if ('selectedDate' in patch && this._state.months.length === 0) {\n startDate = state.selectedDate;\n }\n\n // terminate early if only focus visibility was changed\n if ('focusVisible' in patch) {\n return state;\n }\n\n // focus date changed\n if ('focusDate' in patch) {\n state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate);\n startDate = state.focusDate;\n\n // nothing to rebuild if only focus changed and it is still visible\n if (state.months.length !== 0 && !state.focusDate.before(state.firstDate) &&\n !state.focusDate.after(state.lastDate)) {\n return state;\n }\n }\n\n // first date changed\n if ('firstDate' in patch) {\n state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate);\n startDate = state.firstDate;\n }\n\n // rebuilding months\n if (startDate) {\n const forceRebuild = 'dayTemplateData' in patch || 'firstDayOfWeek' in patch || 'markDisabled' in patch ||\n 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch || 'outsideDays' in patch;\n\n const months = buildMonths(this._calendar, startDate, state, this._i18n, forceRebuild);\n\n // updating months and boundary dates\n state.months = months;\n state.firstDate = months.length > 0 ? months[0].firstDate : undefined;\n state.lastDate = months.length > 0 ? months[months.length - 1].lastDate : undefined;\n\n // reset selected date if 'markDisabled' returns true\n if ('selectedDate' in patch && !isDateSelectable(state.selectedDate, state)) {\n state.selectedDate = null;\n }\n\n // adjusting focus after months were built\n if ('firstDate' in patch) {\n if (state.focusDate === undefined || state.focusDate.before(state.firstDate) ||\n state.focusDate.after(state.lastDate)) {\n state.focusDate = startDate;\n }\n }\n\n // adjusting months/years for the select box navigation\n const yearChanged = !this._state.firstDate || this._state.firstDate.year !== state.firstDate.year;\n const monthChanged = !this._state.firstDate || this._state.firstDate.month !== state.firstDate.month;\n if (state.navigation === 'select') {\n // years -> boundaries (min/max were changed)\n if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.years.length === 0 || yearChanged) {\n state.selectBoxes.years = generateSelectBoxYears(state.firstDate, state.minDate, state.maxDate);\n }\n\n // months -> when current year or boundaries change\n if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.months.length === 0 || yearChanged) {\n state.selectBoxes.months =\n generateSelectBoxMonths(this._calendar, state.firstDate, state.minDate, state.maxDate);\n }\n } else {\n state.selectBoxes = {years: [], months: []};\n }\n\n // updating navigation arrows -> boundaries change (min/max) or month/year changes\n if ((state.navigation === 'arrows' || state.navigation === 'select') &&\n (monthChanged || yearChanged || 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch)) {\n state.prevDisabled = state.disabled || prevMonthDisabled(this._calendar, state.firstDate, state.minDate);\n state.nextDisabled = state.disabled || nextMonthDisabled(this._calendar, state.lastDate, state.maxDate);\n }\n }\n\n return state;\n }\n}\n","export enum Key {\n Tab = 9,\n Enter = 13,\n Escape = 27,\n Space = 32,\n PageUp = 33,\n PageDown = 34,\n End = 35,\n Home = 36,\n ArrowLeft = 37,\n ArrowUp = 38,\n ArrowRight = 39,\n ArrowDown = 40\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbCalendar} from './ngb-calendar';\nimport {Key} from '../util/key';\nimport {NgbDate} from './ngb-date';\n\n@Injectable()\nexport class NgbDatepickerKeyMapService {\n private _minDate: NgbDate;\n private _maxDate: NgbDate;\n private _firstViewDate: NgbDate;\n private _lastViewDate: NgbDate;\n\n constructor(private _service: NgbDatepickerService, private _calendar: NgbCalendar) {\n _service.model$.subscribe(model => {\n this._minDate = model.minDate;\n this._maxDate = model.maxDate;\n this._firstViewDate = model.firstDate;\n this._lastViewDate = model.lastDate;\n });\n }\n\n processKey(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.PageUp:\n this._service.focusMove(event.shiftKey ? 'y' : 'm', -1);\n break;\n case Key.PageDown:\n this._service.focusMove(event.shiftKey ? 'y' : 'm', 1);\n break;\n case Key.End:\n this._service.focus(event.shiftKey ? this._maxDate : this._lastViewDate);\n break;\n case Key.Home:\n this._service.focus(event.shiftKey ? this._minDate : this._firstViewDate);\n break;\n case Key.ArrowLeft:\n this._service.focusMove('d', -1);\n break;\n case Key.ArrowUp:\n this._service.focusMove('d', -this._calendar.getDaysPerWeek());\n break;\n case Key.ArrowRight:\n this._service.focusMove('d', 1);\n break;\n case Key.ArrowDown:\n this._service.focusMove('d', this._calendar.getDaysPerWeek());\n break;\n case Key.Enter:\n case Key.Space:\n this._service.focusSelect();\n break;\n default:\n return;\n }\n\n // note 'return' in default case\n event.preventDefault();\n event.stopPropagation();\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {DayTemplateContext} from './datepicker-day-template-context';\n\nexport type NgbMarkDisabled = (date: NgbDateStruct, current: {year: number, month: number}) => boolean;\nexport type NgbDayTemplateData = (date: NgbDateStruct, current: {year: number, month: number}) => any;\n\nexport type DayViewModel = {\n date: NgbDate,\n context: DayTemplateContext,\n tabindex: number,\n ariaLabel: string,\n hidden: boolean\n};\n\nexport type WeekViewModel = {\n number: number,\n days: DayViewModel[],\n collapsed: boolean\n};\n\nexport type MonthViewModel = {\n firstDate: NgbDate,\n lastDate: NgbDate,\n number: number,\n year: number,\n weeks: WeekViewModel[],\n weekdays: number[]\n};\n\n// clang-format off\nexport type DatepickerViewModel = {\n dayTemplateData?: NgbDayTemplateData,\n disabled: boolean,\n displayMonths: number,\n firstDate?: NgbDate,\n firstDayOfWeek: number,\n focusDate?: NgbDate,\n focusVisible: boolean,\n lastDate?: NgbDate,\n markDisabled?: NgbMarkDisabled,\n maxDate?: NgbDate,\n minDate?: NgbDate,\n months: MonthViewModel[],\n navigation: 'select' | 'arrows' | 'none',\n outsideDays: 'visible' | 'collapsed' | 'hidden',\n prevDisabled: boolean,\n nextDisabled: boolean,\n selectBoxes: {\n years: number[],\n months: number[]\n },\n selectedDate: NgbDate\n};\n// clang-format on\n\nexport enum NavigationEvent {\n PREV,\n NEXT\n}\n","import {Injectable, TemplateRef} from '@angular/core';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDateStruct} from './ngb-date-struct';\n\n/**\n * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the datepickers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbDatepickerConfig {\n dayTemplate: TemplateRef;\n dayTemplateData: (date: NgbDateStruct, current: {year: number, month: number}) => any;\n footerTemplate: TemplateRef;\n displayMonths = 1;\n firstDayOfWeek = 1;\n markDisabled: (date: NgbDateStruct, current: {year: number, month: number}) => boolean;\n minDate: NgbDateStruct;\n maxDate: NgbDateStruct;\n navigation: 'select' | 'arrows' | 'none' = 'select';\n outsideDays: 'visible' | 'collapsed' | 'hidden' = 'visible';\n showWeekdays = true;\n showWeekNumbers = false;\n startDate: {year: number, month: number};\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {isInteger} from '../../util/util';\n\nexport function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() {\n return new NgbDateStructAdapter();\n}\n\n/**\n * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and\n * any provided user date model `D`, ex. a string, a native date, etc.\n *\n * The adapter is used **only** for conversion when binding datepicker to a form control,\n * ex. `[(ngModel)]=\"userDateModel\"`. Here `userDateModel` can be of any type.\n *\n * The default datepicker implementation assumes we use `NgbDateStruct` as a user model.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details\n * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY})\nexport abstract class NgbDateAdapter {\n /**\n * Converts a user-model date of type `D` to an `NgbDateStruct` for internal use.\n */\n abstract fromModel(value: D): NgbDateStruct;\n\n /**\n * Converts an internal `NgbDateStruct` date to a user-model date of type `D`.\n */\n abstract toModel(date: NgbDateStruct): D;\n}\n\n@Injectable()\nexport class NgbDateStructAdapter extends NgbDateAdapter {\n /**\n * Converts a NgbDateStruct value into NgbDateStruct value\n */\n fromModel(date: NgbDateStruct): NgbDateStruct {\n return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ?\n {year: date.year, month: date.month, day: date.day} :\n null;\n }\n\n /**\n * Converts a NgbDateStruct value into NgbDateStruct value\n */\n toModel(date: NgbDateStruct): NgbDateStruct {\n return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ?\n {year: date.year, month: date.month, day: date.day} :\n null;\n }\n}\n","import {fromEvent, merge, Subject} from 'rxjs';\nimport {filter, take, takeUntil} from 'rxjs/operators';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {NgbCalendar} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbDatepickerKeyMapService} from './datepicker-keymap-service';\nimport {DatepickerViewModel, NavigationEvent} from './datepicker-view-model';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDatepickerConfig} from './datepicker-config';\nimport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\nimport {isChangedDate, isChangedMonth} from './datepicker-tools';\nimport {hasClassName} from '../util/util';\n\nconst NGB_DATEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbDatepicker),\n multi: true\n};\n\n/**\n * An event emitted right before the navigation happens and the month displayed by the datepicker changes.\n */\nexport interface NgbDatepickerNavigateEvent {\n /**\n * The currently displayed month.\n */\n current: {year: number, month: number};\n\n /**\n * The month we're navigating to.\n */\n next: {year: number, month: number};\n\n /**\n * Calling this function will prevent navigation from happening.\n *\n * @since 4.1.0\n */\n preventDefault: () => void;\n}\n\n/**\n * A highly configurable component that helps you with selecting calendar dates.\n *\n * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup.\n */\n@Component({\n exportAs: 'ngbDatepicker',\n selector: 'ngb-datepicker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker.scss'],\n template: `\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n \n
\n
1 && navigation === 'select')\"\n class=\"ngb-dp-month-name\">\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n \n \n
\n
\n
\n\n \n `,\n providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService, NgbDatepickerKeyMapService]\n})\nexport class NgbDatepicker implements OnDestroy,\n OnChanges, OnInit, AfterViewInit, ControlValueAccessor {\n model: DatepickerViewModel;\n\n @ViewChild('months', {static: true}) private _monthsEl: ElementRef;\n private _controlValue: NgbDate;\n private _destroyed$ = new Subject();\n\n /**\n * The reference to a custom template for the day.\n *\n * Allows to completely override the way a day 'cell' in the calendar is displayed.\n *\n * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside.\n */\n @Input() dayTemplate: TemplateRef;\n\n /**\n * The callback to pass any arbitrary data to the template cell via the\n * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter.\n *\n * `current` is the month that is currently displayed by the datepicker.\n *\n * @since 3.3.0\n */\n @Input() dayTemplateData: (date: NgbDate, current: {year: number, month: number}) => any;\n\n /**\n * The number of months to display.\n */\n @Input() displayMonths: number;\n\n /**\n * The first day of the week.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n @Input() firstDayOfWeek: number;\n\n /**\n * The reference to the custom template for the datepicker footer.\n *\n * @since 3.3.0\n */\n @Input() footerTemplate: TemplateRef;\n\n /**\n * The callback to mark some dates as disabled.\n *\n * It is called for each new date when navigating to a different month.\n *\n * `current` is the month that is currently displayed by the datepicker.\n */\n @Input() markDisabled: (date: NgbDate, current: {year: number, month: number}) => boolean;\n\n /**\n * The latest date that can be displayed or selected.\n *\n * If not provided, 'year' select box will display 10 years after the current month.\n */\n @Input() maxDate: NgbDateStruct;\n\n /**\n * The earliest date that can be displayed or selected.\n *\n * If not provided, 'year' select box will display 10 years before the current month.\n */\n @Input() minDate: NgbDateStruct;\n\n /**\n * Navigation type.\n *\n * * `\"select\"` - select boxes for month and navigation arrows\n * * `\"arrows\"` - only navigation arrows\n * * `\"none\"` - no navigation visible at all\n */\n @Input() navigation: 'select' | 'arrows' | 'none';\n\n /**\n * The way of displaying days that don't belong to the current month.\n *\n * * `\"visible\"` - days are visible\n * * `\"hidden\"` - days are hidden, white space preserved\n * * `\"collapsed\"` - days are collapsed, so the datepicker height might change between months\n *\n * For the 2+ months view, days in between months are never shown.\n */\n @Input() outsideDays: 'visible' | 'collapsed' | 'hidden';\n\n /**\n * If `true`, weekdays will be displayed.\n */\n @Input() showWeekdays: boolean;\n\n /**\n * If `true`, week numbers will be displayed.\n */\n @Input() showWeekNumbers: boolean;\n\n /**\n * The date to open calendar with.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date is provided, calendar will open with current month.\n *\n * You could use `navigateTo(date)` method as an alternative.\n */\n @Input() startDate: {year: number, month: number, day?: number};\n\n /**\n * An event emitted right before the navigation happens and displayed month changes.\n *\n * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info.\n */\n @Output() navigate = new EventEmitter();\n\n /**\n * An event emitted when user selects a date using keyboard or mouse.\n *\n * The payload of the event is currently selected `NgbDate`.\n */\n @Output() select = new EventEmitter();\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n constructor(\n private _keyMapService: NgbDatepickerKeyMapService, public _service: NgbDatepickerService,\n private _calendar: NgbCalendar, public i18n: NgbDatepickerI18n, config: NgbDatepickerConfig,\n private _cd: ChangeDetectorRef, private _elementRef: ElementRef,\n private _ngbDateAdapter: NgbDateAdapter, private _ngZone: NgZone) {\n ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate',\n 'maxDate', 'navigation', 'outsideDays', 'showWeekdays', 'showWeekNumbers', 'startDate']\n .forEach(input => this[input] = config[input]);\n\n _service.select$.pipe(takeUntil(this._destroyed$)).subscribe(date => { this.select.emit(date); });\n\n _service.model$.pipe(takeUntil(this._destroyed$)).subscribe(model => {\n const newDate = model.firstDate;\n const oldDate = this.model ? this.model.firstDate : null;\n\n let navigationPrevented = false;\n // emitting navigation event if the first month changes\n if (!newDate.equals(oldDate)) {\n this.navigate.emit({\n current: oldDate ? {year: oldDate.year, month: oldDate.month} : null,\n next: {year: newDate.year, month: newDate.month},\n preventDefault: () => navigationPrevented = true\n });\n\n // can't prevent the very first navigation\n if (navigationPrevented && oldDate !== null) {\n this._service.open(oldDate);\n return;\n }\n }\n\n const newSelectedDate = model.selectedDate;\n const newFocusedDate = model.focusDate;\n const oldFocusedDate = this.model ? this.model.focusDate : null;\n\n this.model = model;\n\n // handling selection change\n if (isChangedDate(newSelectedDate, this._controlValue)) {\n this._controlValue = newSelectedDate;\n this.onTouched();\n this.onChange(this._ngbDateAdapter.toModel(newSelectedDate));\n }\n\n // handling focus change\n if (isChangedDate(newFocusedDate, oldFocusedDate) && oldFocusedDate && model.focusVisible) {\n this.focus();\n }\n\n _cd.markForCheck();\n });\n }\n\n focus() {\n this._ngZone.onStable.asObservable().pipe(take(1)).subscribe(() => {\n const elementToFocus =\n this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex=\"0\"]');\n if (elementToFocus) {\n elementToFocus.focus();\n }\n });\n }\n\n /**\n * Navigates to the provided date.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date provided calendar will open current month.\n *\n * Use the `[startDate]` input as an alternative.\n */\n navigateTo(date?: {year: number, month: number, day?: number}) {\n this._service.open(NgbDate.from(date ? date.day ? date as NgbDateStruct : {...date, day: 1} : null));\n }\n\n ngAfterViewInit() {\n this._ngZone.runOutsideAngular(() => {\n const focusIns$ = fromEvent(this._monthsEl.nativeElement, 'focusin');\n const focusOuts$ = fromEvent(this._monthsEl.nativeElement, 'focusout');\n\n // we're changing 'focusVisible' only when entering or leaving months view\n // and ignoring all focus events where both 'target' and 'related' target are day cells\n merge(focusIns$, focusOuts$)\n .pipe(\n filter(\n ({target, relatedTarget}) =>\n !(hasClassName(target, 'ngb-dp-day') && hasClassName(relatedTarget, 'ngb-dp-day'))),\n takeUntil(this._destroyed$))\n .subscribe(({type}) => this._ngZone.run(() => this._service.focusVisible = type === 'focusin'));\n });\n }\n\n ngOnDestroy() { this._destroyed$.next(); }\n\n ngOnInit() {\n if (this.model === undefined) {\n ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate',\n 'outsideDays']\n .forEach(input => this._service[input] = this[input]);\n this.navigateTo(this.startDate);\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate',\n 'outsideDays']\n .filter(input => input in changes)\n .forEach(input => this._service[input] = this[input]);\n\n if ('startDate' in changes) {\n const {currentValue, previousValue} = changes.startDate;\n if (isChangedMonth(previousValue, currentValue)) {\n this.navigateTo(this.startDate);\n }\n }\n }\n\n onDateSelect(date: NgbDate) {\n this._service.focus(date);\n this._service.select(date, {emitEvent: true});\n }\n\n onKeyDown(event: KeyboardEvent) { this._keyMapService.processKey(event); }\n\n onNavigateDateSelect(date: NgbDate) { this._service.open(date); }\n\n onNavigateEvent(event: NavigationEvent) {\n switch (event) {\n case NavigationEvent.PREV:\n this._service.open(this._calendar.getPrev(this.model.firstDate, 'm', 1));\n break;\n case NavigationEvent.NEXT:\n this._service.open(this._calendar.getNext(this.model.firstDate, 'm', 1));\n break;\n }\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean) { this._service.disabled = isDisabled; }\n\n writeValue(value) {\n this._controlValue = NgbDate.from(this._ngbDateAdapter.fromModel(value));\n this._service.select(this._controlValue);\n }\n}\n","import {Component, Input, TemplateRef, Output, EventEmitter, ViewEncapsulation} from '@angular/core';\nimport {MonthViewModel, DayViewModel} from './datepicker-view-model';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\nimport {DayTemplateContext} from './datepicker-day-template-context';\n\n@Component({\n selector: 'ngb-datepicker-month-view',\n host: {'role': 'grid'},\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-month-view.scss'],\n template: `\n
\n
\n
\n {{ i18n.getWeekdayShortName(w) }}\n
\n
\n \n
\n
{{ i18n.getWeekNumerals(week.number) }}
\n
\n \n \n \n
\n
\n
\n `\n})\nexport class NgbDatepickerMonthView {\n @Input() dayTemplate: TemplateRef;\n @Input() month: MonthViewModel;\n @Input() showWeekdays;\n @Input() showWeekNumbers;\n\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n doSelect(day: DayViewModel) {\n if (!day.context.disabled && !day.hidden) {\n this.select.emit(day.date);\n }\n }\n}\n","import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {NavigationEvent, MonthViewModel} from './datepicker-view-model';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: 'ngb-datepicker-navigation',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-navigation.scss'],\n template: `\n
\n \n
\n \n \n\n \n
0\">
\n
\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n
\n
\n
\n \n
\n `\n})\nexport class NgbDatepickerNavigation {\n navigation = NavigationEvent;\n\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() months: MonthViewModel[] = [];\n @Input() showSelect: boolean;\n @Input() prevDisabled: boolean;\n @Input() nextDisabled: boolean;\n @Input() selectBoxes: {years: number[], months: number[]};\n\n @Output() navigate = new EventEmitter();\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n}\n","import {NgZone} from '@angular/core';\nimport {fromEvent, Observable, race} from 'rxjs';\nimport {delay, filter, map, takeUntil, withLatestFrom} from 'rxjs/operators';\nimport {Key} from './key';\nimport {closest} from './util';\n\nconst isContainedIn = (element: HTMLElement, array?: HTMLElement[]) =>\n array ? array.some(item => item.contains(element)) : false;\n\nconst matchesSelectorIfAny = (element: HTMLElement, selector?: string) =>\n !selector || closest(element, selector) != null;\n\n// we'll have to use 'touch' events instead of 'mouse' events on iOS and add a more significant delay\n// to avoid re-opening when handling (click) on a toggling element\n// TODO: use proper Angular platform detection when NgbAutoClose becomes a service and we can inject PLATFORM_ID\nlet iOS = false;\nif (typeof navigator !== 'undefined') {\n iOS = !!navigator.userAgent && /iPad|iPhone|iPod/.test(navigator.userAgent);\n}\n\nexport function ngbAutoClose(\n zone: NgZone, document: any, type: boolean | 'inside' | 'outside', close: () => void, closed$: Observable,\n insideElements: HTMLElement[], ignoreElements?: HTMLElement[], insideSelector?: string) {\n // closing on ESC and outside clicks\n if (type) {\n zone.runOutsideAngular(() => {\n\n const shouldCloseOnClick = (event: MouseEvent | TouchEvent) => {\n const element = event.target as HTMLElement;\n if ((event instanceof MouseEvent && event.button === 2) || isContainedIn(element, ignoreElements)) {\n return false;\n }\n if (type === 'inside') {\n return isContainedIn(element, insideElements) && matchesSelectorIfAny(element, insideSelector);\n } else if (type === 'outside') {\n return !isContainedIn(element, insideElements);\n } else /* if (type === true) */ {\n return matchesSelectorIfAny(element, insideSelector) || !isContainedIn(element, insideElements);\n }\n };\n\n const escapes$ = fromEvent(document, 'keydown')\n .pipe(\n takeUntil(closed$),\n // tslint:disable-next-line:deprecation\n filter(e => e.which === Key.Escape));\n\n\n // we have to pre-calculate 'shouldCloseOnClick' on 'mousedown/touchstart',\n // because on 'mouseup/touchend' DOM nodes might be detached\n const mouseDowns$ = fromEvent(document, iOS ? 'touchstart' : 'mousedown')\n .pipe(map(shouldCloseOnClick), takeUntil(closed$));\n\n const closeableClicks$ = fromEvent(document, iOS ? 'touchend' : 'mouseup')\n .pipe(\n withLatestFrom(mouseDowns$), filter(([_, shouldClose]) => shouldClose),\n delay(iOS ? 16 : 0), takeUntil(closed$)) as Observable;\n\n\n race([escapes$, closeableClicks$]).subscribe(() => zone.run(close));\n });\n }\n}\n","import {fromEvent, Observable} from 'rxjs';\nimport {filter, map, takeUntil, withLatestFrom} from 'rxjs/operators';\n\nimport {Key} from '../util/key';\n\n\nconst FOCUSABLE_ELEMENTS_SELECTOR = [\n 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type=\"hidden\"])', 'select:not([disabled])',\n 'textarea:not([disabled])', '[contenteditable]', '[tabindex]:not([tabindex=\"-1\"])'\n].join(', ');\n\n/**\n * Returns first and last focusable elements inside of a given element based on specific CSS selector\n */\nexport function getFocusableBoundaryElements(element: HTMLElement): HTMLElement[] {\n const list: HTMLElement[] =\n Array.from(element.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR) as NodeListOf)\n .filter(el => el.tabIndex !== -1);\n return [list[0], list[list.length - 1]];\n}\n\n/**\n * Function that enforces browser focus to be trapped inside a DOM element.\n *\n * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element\n *\n * @param element The element around which focus will be trapped inside\n * @param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners\n * and free internal resources\n * @param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to\n * false)\n */\nexport const ngbFocusTrap = (element: HTMLElement, stopFocusTrap$: Observable, refocusOnClick = false) => {\n // last focused element\n const lastFocusedElement$ =\n fromEvent(element, 'focusin').pipe(takeUntil(stopFocusTrap$), map(e => e.target));\n\n // 'tab' / 'shift+tab' stream\n fromEvent(element, 'keydown')\n .pipe(\n takeUntil(stopFocusTrap$),\n // tslint:disable:deprecation\n filter(e => e.which === Key.Tab),\n // tslint:enable:deprecation\n withLatestFrom(lastFocusedElement$))\n .subscribe(([tabEvent, focusedElement]) => {\n const[first, last] = getFocusableBoundaryElements(element);\n\n if ((focusedElement === first || focusedElement === element) && tabEvent.shiftKey) {\n last.focus();\n tabEvent.preventDefault();\n }\n\n if (focusedElement === last && !tabEvent.shiftKey) {\n first.focus();\n tabEvent.preventDefault();\n }\n });\n\n // inside click\n if (refocusOnClick) {\n fromEvent(element, 'click')\n .pipe(takeUntil(stopFocusTrap$), withLatestFrom(lastFocusedElement$), map(arr => arr[1] as HTMLElement))\n .subscribe(lastFocusedElement => lastFocusedElement.focus());\n }\n};\n","// previous version:\n// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js\nexport class Positioning {\n private getAllStyles(element: HTMLElement) { return window.getComputedStyle(element); }\n\n private getStyle(element: HTMLElement, prop: string): string { return this.getAllStyles(element)[prop]; }\n\n private isStaticPositioned(element: HTMLElement): boolean {\n return (this.getStyle(element, 'position') || 'static') === 'static';\n }\n\n private offsetParent(element: HTMLElement): HTMLElement {\n let offsetParentEl = element.offsetParent || document.documentElement;\n\n while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) {\n offsetParentEl = offsetParentEl.offsetParent;\n }\n\n return offsetParentEl || document.documentElement;\n }\n\n position(element: HTMLElement, round = true): ClientRect {\n let elPosition: ClientRect;\n let parentOffset: ClientRect = {width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0};\n\n if (this.getStyle(element, 'position') === 'fixed') {\n elPosition = element.getBoundingClientRect();\n elPosition = {\n top: elPosition.top,\n bottom: elPosition.bottom,\n left: elPosition.left,\n right: elPosition.right,\n height: elPosition.height,\n width: elPosition.width\n };\n } else {\n const offsetParentEl = this.offsetParent(element);\n\n elPosition = this.offset(element, false);\n\n if (offsetParentEl !== document.documentElement) {\n parentOffset = this.offset(offsetParentEl, false);\n }\n\n parentOffset.top += offsetParentEl.clientTop;\n parentOffset.left += offsetParentEl.clientLeft;\n }\n\n elPosition.top -= parentOffset.top;\n elPosition.bottom -= parentOffset.top;\n elPosition.left -= parentOffset.left;\n elPosition.right -= parentOffset.left;\n\n if (round) {\n elPosition.top = Math.round(elPosition.top);\n elPosition.bottom = Math.round(elPosition.bottom);\n elPosition.left = Math.round(elPosition.left);\n elPosition.right = Math.round(elPosition.right);\n }\n\n return elPosition;\n }\n\n offset(element: HTMLElement, round = true): ClientRect {\n const elBcr = element.getBoundingClientRect();\n const viewportOffset = {\n top: window.pageYOffset - document.documentElement.clientTop,\n left: window.pageXOffset - document.documentElement.clientLeft\n };\n\n let elOffset = {\n height: elBcr.height || element.offsetHeight,\n width: elBcr.width || element.offsetWidth,\n top: elBcr.top + viewportOffset.top,\n bottom: elBcr.bottom + viewportOffset.top,\n left: elBcr.left + viewportOffset.left,\n right: elBcr.right + viewportOffset.left\n };\n\n if (round) {\n elOffset.height = Math.round(elOffset.height);\n elOffset.width = Math.round(elOffset.width);\n elOffset.top = Math.round(elOffset.top);\n elOffset.bottom = Math.round(elOffset.bottom);\n elOffset.left = Math.round(elOffset.left);\n elOffset.right = Math.round(elOffset.right);\n }\n\n return elOffset;\n }\n\n /*\n Return false if the element to position is outside the viewport\n */\n positionElements(hostElement: HTMLElement, targetElement: HTMLElement, placement: string, appendToBody?: boolean):\n boolean {\n const[placementPrimary = 'top', placementSecondary = 'center'] = placement.split('-');\n\n const hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false);\n const targetElStyles = this.getAllStyles(targetElement);\n\n const marginTop = parseFloat(targetElStyles.marginTop);\n const marginBottom = parseFloat(targetElStyles.marginBottom);\n const marginLeft = parseFloat(targetElStyles.marginLeft);\n const marginRight = parseFloat(targetElStyles.marginRight);\n\n let topPosition = 0;\n let leftPosition = 0;\n\n switch (placementPrimary) {\n case 'top':\n topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom));\n break;\n case 'bottom':\n topPosition = (hostElPosition.top + hostElPosition.height);\n break;\n case 'left':\n leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight));\n break;\n case 'right':\n leftPosition = (hostElPosition.left + hostElPosition.width);\n break;\n }\n\n switch (placementSecondary) {\n case 'top':\n topPosition = hostElPosition.top;\n break;\n case 'bottom':\n topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight;\n break;\n case 'left':\n leftPosition = hostElPosition.left;\n break;\n case 'right':\n leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth;\n break;\n case 'center':\n if (placementPrimary === 'top' || placementPrimary === 'bottom') {\n leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2);\n } else {\n topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2);\n }\n break;\n }\n\n /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix\n // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`;\n targetElement.style.transform = `translate(${Math.round(leftPosition)}px, ${Math.round(topPosition)}px)`;\n\n // Check if the targetElement is inside the viewport\n const targetElBCR = targetElement.getBoundingClientRect();\n const html = document.documentElement;\n const windowHeight = window.innerHeight || html.clientHeight;\n const windowWidth = window.innerWidth || html.clientWidth;\n\n return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth &&\n targetElBCR.bottom <= windowHeight;\n }\n}\n\nconst placementSeparator = /\\s+/;\nconst positionService = new Positioning();\n\n/*\n * Accept the placement array and applies the appropriate placement dependent on the viewport.\n * Returns the applied placement.\n * In case of auto placement, placements are selected in order\n * 'top', 'bottom', 'left', 'right',\n * 'top-left', 'top-right',\n * 'bottom-left', 'bottom-right',\n * 'left-top', 'left-bottom',\n * 'right-top', 'right-bottom'.\n * */\nexport function positionElements(\n hostElement: HTMLElement, targetElement: HTMLElement, placement: string | Placement | PlacementArray,\n appendToBody?: boolean, baseClass?: string): Placement {\n let placementVals: Array =\n Array.isArray(placement) ? placement : placement.split(placementSeparator) as Array;\n\n const allowedPlacements = [\n 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom',\n 'right-top', 'right-bottom'\n ];\n\n const classList = targetElement.classList;\n const addClassesToTarget = (targetPlacement: Placement): Array => {\n const[primary, secondary] = targetPlacement.split('-');\n const classes = [];\n if (baseClass) {\n classes.push(`${baseClass}-${primary}`);\n if (secondary) {\n classes.push(`${baseClass}-${primary}-${secondary}`);\n }\n\n classes.forEach((classname) => { classList.add(classname); });\n }\n return classes;\n };\n\n // Remove old placement classes to avoid issues\n if (baseClass) {\n allowedPlacements.forEach((placementToRemove) => { classList.remove(`${baseClass}-${placementToRemove}`); });\n }\n\n // replace auto placement with other placements\n let hasAuto = placementVals.findIndex(val => val === 'auto');\n if (hasAuto >= 0) {\n allowedPlacements.forEach(function(obj) {\n if (placementVals.find(val => val.search('^' + obj) !== -1) == null) {\n placementVals.splice(hasAuto++, 1, obj as Placement);\n }\n });\n }\n\n // coordinates where to position\n\n // Required for transform:\n const style = targetElement.style;\n style.position = 'absolute';\n style.top = '0';\n style.left = '0';\n style['will-change'] = 'transform';\n\n let testPlacement: Placement;\n let isInViewport = false;\n for (testPlacement of placementVals) {\n let addedClasses = addClassesToTarget(testPlacement);\n\n if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) {\n isInViewport = true;\n break;\n }\n\n // Remove the baseClasses for further calculation\n if (baseClass) {\n addedClasses.forEach((classname) => { classList.remove(classname); });\n }\n }\n\n if (!isInViewport) {\n // If nothing match, the first placement is the default one\n testPlacement = placementVals[0];\n addClassesToTarget(testPlacement);\n positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody);\n }\n\n return testPlacement;\n}\n\nexport type Placement = 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' |\n 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';\n\nexport type PlacementArray = Placement | Array| string;\n","import {padNumber, toInteger, isNumber} from '../util/util';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {Injectable} from '@angular/core';\n\nexport function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY() {\n return new NgbDateISOParserFormatter();\n}\n\n/**\n * An abstract service for parsing and formatting dates for the\n * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive.\n * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the\n * input element.\n *\n * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object.\n * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string`\n * in the input.\n *\n * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI\n * to use an alternative string format or a custom parsing logic.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY})\nexport abstract class NgbDateParserFormatter {\n /**\n * Parses the given `string` to an `NgbDateStruct`.\n *\n * Implementations should try their best to provide a result, even\n * partial. They must return `null` if the value can't be parsed.\n */\n abstract parse(value: string): NgbDateStruct;\n\n /**\n * Formats the given `NgbDateStruct` to a `string`.\n *\n * Implementations should return an empty string if the given date is `null`,\n * and try their best to provide a partial result if the given date is incomplete or invalid.\n */\n abstract format(date: NgbDateStruct): string;\n}\n\n@Injectable()\nexport class NgbDateISOParserFormatter extends NgbDateParserFormatter {\n parse(value: string): NgbDateStruct {\n if (value) {\n const dateParts = value.trim().split('-');\n if (dateParts.length === 1 && isNumber(dateParts[0])) {\n return {year: toInteger(dateParts[0]), month: null, day: null};\n } else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) {\n return {year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null};\n } else if (dateParts.length === 3 && isNumber(dateParts[0]) && isNumber(dateParts[1]) && isNumber(dateParts[2])) {\n return {year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: toInteger(dateParts[2])};\n }\n }\n return null;\n }\n\n format(date: NgbDateStruct): string {\n return date ?\n `${date.year}-${isNumber(date.month) ? padNumber(date.month) : ''}-${isNumber(date.day) ? padNumber(date.day) : ''}` :\n '';\n }\n}\n","import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n Output,\n Renderer2,\n SimpleChanges,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, Validator} from '@angular/forms';\n\nimport {ngbAutoClose} from '../util/autoclose';\nimport {ngbFocusTrap} from '../util/focus-trap';\nimport {PlacementArray, positionElements} from '../util/positioning';\n\nimport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nimport {NgbDatepicker, NgbDatepickerNavigateEvent} from './datepicker';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbCalendar} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDateParserFormatter} from './ngb-date-parser-formatter';\nimport {NgbDateStruct} from './ngb-date-struct';\n\nconst NGB_DATEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbInputDatepicker),\n multi: true\n};\n\nconst NGB_DATEPICKER_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => NgbInputDatepicker),\n multi: true\n};\n\n/**\n * A directive that allows to stick a datepicker popup to an input field.\n *\n * Manages interaction with the input field itself, does value formatting and provides forms integration.\n */\n@Directive({\n selector: 'input[ngbDatepicker]',\n exportAs: 'ngbDatepicker',\n host: {\n '(input)': 'manualDateChange($event.target.value)',\n '(change)': 'manualDateChange($event.target.value, true)',\n '(blur)': 'onBlur()',\n '[disabled]': 'disabled'\n },\n providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NGB_DATEPICKER_VALIDATOR, NgbDatepickerService]\n})\nexport class NgbInputDatepicker implements OnChanges,\n OnDestroy, ControlValueAccessor, Validator {\n private _cRef: ComponentRef = null;\n private _disabled = false;\n private _model: NgbDate;\n private _inputValue: string;\n private _zoneSubscription: any;\n\n /**\n * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not.\n *\n * * `true` - the popup will close on both date selection and outside click.\n * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods.\n * * `\"inside\"` - the popup will close on date selection, but not outside clicks.\n * * `\"outside\"` - the popup will close only on the outside click and not on date selection/inside clicks.\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside' = true;\n\n /**\n * The reference to a custom template for the day.\n *\n * Allows to completely override the way a day 'cell' in the calendar is displayed.\n *\n * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside.\n */\n @Input() dayTemplate: TemplateRef;\n\n /**\n * The callback to pass any arbitrary data to the template cell via the\n * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter.\n *\n * `current` is the month that is currently displayed by the datepicker.\n *\n * @since 3.3.0\n */\n @Input() dayTemplateData: (date: NgbDate, current: {year: number, month: number}) => any;\n\n /**\n * The number of months to display.\n */\n @Input() displayMonths: number;\n\n /**\n * The first day of the week.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n @Input() firstDayOfWeek: number;\n\n /**\n * The reference to the custom template for the datepicker footer.\n *\n * @since 3.3.0\n */\n @Input() footerTemplate: TemplateRef;\n\n /**\n * The callback to mark some dates as disabled.\n *\n * It is called for each new date when navigating to a different month.\n *\n * `current` is the month that is currently displayed by the datepicker.\n */\n @Input() markDisabled: (date: NgbDate, current: {year: number, month: number}) => boolean;\n\n /**\n * The earliest date that can be displayed or selected. Also used for form validation.\n *\n * If not provided, 'year' select box will display 10 years before the current month.\n */\n @Input() minDate: NgbDateStruct;\n\n /**\n * The latest date that can be displayed or selected. Also used for form validation.\n *\n * If not provided, 'year' select box will display 10 years after the current month.\n */\n @Input() maxDate: NgbDateStruct;\n\n /**\n * Navigation type.\n *\n * * `\"select\"` - select boxes for month and navigation arrows\n * * `\"arrows\"` - only navigation arrows\n * * `\"none\"` - no navigation visible at all\n */\n @Input() navigation: 'select' | 'arrows' | 'none';\n\n /**\n * The way of displaying days that don't belong to the current month.\n *\n * * `\"visible\"` - days are visible\n * * `\"hidden\"` - days are hidden, white space preserved\n * * `\"collapsed\"` - days are collapsed, so the datepicker height might change between months\n *\n * For the 2+ months view, days in between months are never shown.\n */\n @Input() outsideDays: 'visible' | 'collapsed' | 'hidden';\n\n /**\n * The preferred placement of the datepicker popup.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n\n /**\n * If `true`, weekdays will be displayed.\n */\n @Input() showWeekdays: boolean;\n\n /**\n * If `true`, week numbers will be displayed.\n */\n @Input() showWeekNumbers: boolean;\n\n /**\n * The date to open calendar with.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date is provided, calendar will open with current month.\n *\n * You could use `navigateTo(date)` method as an alternative.\n */\n @Input() startDate: {year: number, month: number, day?: number};\n\n /**\n * A selector specifying the element the datepicker popup should be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * A css selector or html element specifying the element the datepicker popup should be positioned against.\n *\n * By default the input is used as a target.\n *\n * @since 4.2.0\n */\n @Input() positionTarget: string | HTMLElement;\n\n /**\n * An event emitted when user selects a date using keyboard or mouse.\n *\n * The payload of the event is currently selected `NgbDate`.\n *\n * @since 1.1.1\n */\n @Output() dateSelect = new EventEmitter();\n\n /**\n * Event emitted right after the navigation happens and displayed month changes.\n *\n * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info.\n */\n @Output() navigate = new EventEmitter();\n\n /**\n * An event fired after closing datepicker window.\n *\n * @since 4.2.0\n */\n @Output() closed = new EventEmitter();\n\n @Input()\n get disabled() {\n return this._disabled;\n }\n set disabled(value: any) {\n this._disabled = value === '' || (value && value !== 'false');\n\n if (this.isOpen()) {\n this._cRef.instance.setDisabledState(this._disabled);\n }\n }\n\n private _onChange = (_: any) => {};\n private _onTouched = () => {};\n private _validatorChange = () => {};\n\n\n constructor(\n private _parserFormatter: NgbDateParserFormatter, private _elRef: ElementRef,\n private _vcRef: ViewContainerRef, private _renderer: Renderer2, private _cfr: ComponentFactoryResolver,\n private _ngZone: NgZone, private _service: NgbDatepickerService, private _calendar: NgbCalendar,\n private _dateAdapter: NgbDateAdapter, @Inject(DOCUMENT) private _document: any,\n private _changeDetector: ChangeDetectorRef) {\n this._zoneSubscription = _ngZone.onStable.subscribe(() => this._updatePopupPosition());\n }\n\n registerOnChange(fn: (value: any) => any): void { this._onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this._onTouched = fn; }\n\n registerOnValidatorChange(fn: () => void): void { this._validatorChange = fn; }\n\n setDisabledState(isDisabled: boolean): void { this.disabled = isDisabled; }\n\n validate(c: AbstractControl): {[key: string]: any} {\n const value = c.value;\n\n if (value === null || value === undefined) {\n return null;\n }\n\n const ngbDate = this._fromDateStruct(this._dateAdapter.fromModel(value));\n\n if (!this._calendar.isValid(ngbDate)) {\n return {'ngbDate': {invalid: c.value}};\n }\n\n if (this.minDate && ngbDate.before(NgbDate.from(this.minDate))) {\n return {'ngbDate': {requiredBefore: this.minDate}};\n }\n\n if (this.maxDate && ngbDate.after(NgbDate.from(this.maxDate))) {\n return {'ngbDate': {requiredAfter: this.maxDate}};\n }\n }\n\n writeValue(value) {\n this._model = this._fromDateStruct(this._dateAdapter.fromModel(value));\n this._writeModelValue(this._model);\n }\n\n manualDateChange(value: string, updateView = false) {\n const inputValueChanged = value !== this._inputValue;\n if (inputValueChanged) {\n this._inputValue = value;\n this._model = this._fromDateStruct(this._parserFormatter.parse(value));\n }\n if (inputValueChanged || !updateView) {\n this._onChange(this._model ? this._dateAdapter.toModel(this._model) : (value === '' ? null : value));\n }\n if (updateView && this._model) {\n this._writeModelValue(this._model);\n }\n }\n\n isOpen() { return !!this._cRef; }\n\n /**\n * Opens the datepicker popup.\n *\n * If the related form control contains a valid date, the corresponding month will be opened.\n */\n open() {\n if (!this.isOpen()) {\n const cf = this._cfr.resolveComponentFactory(NgbDatepicker);\n this._cRef = this._vcRef.createComponent(cf);\n\n this._applyPopupStyling(this._cRef.location.nativeElement);\n this._applyDatepickerInputs(this._cRef.instance);\n this._subscribeForDatepickerOutputs(this._cRef.instance);\n this._cRef.instance.ngOnInit();\n this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model));\n\n // date selection event handling\n this._cRef.instance.registerOnChange((selectedDate) => {\n this.writeValue(selectedDate);\n this._onChange(selectedDate);\n this._onTouched();\n });\n\n this._cRef.changeDetectorRef.detectChanges();\n\n this._cRef.instance.setDisabledState(this.disabled);\n\n if (this.container === 'body') {\n window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement);\n }\n\n // focus handling\n ngbFocusTrap(this._cRef.location.nativeElement, this.closed, true);\n this._cRef.instance.focus();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.closed, [],\n [this._elRef.nativeElement, this._cRef.location.nativeElement]);\n }\n }\n\n /**\n * Closes the datepicker popup.\n */\n close() {\n if (this.isOpen()) {\n this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView));\n this._cRef = null;\n this.closed.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the datepicker popup.\n */\n toggle() {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Navigates to the provided date.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date provided calendar will open current month.\n *\n * Use the `[startDate]` input as an alternative.\n */\n navigateTo(date?: {year: number, month: number, day?: number}) {\n if (this.isOpen()) {\n this._cRef.instance.navigateTo(date);\n }\n }\n\n onBlur() { this._onTouched(); }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['minDate'] || changes['maxDate']) {\n this._validatorChange();\n }\n }\n\n ngOnDestroy() {\n this.close();\n this._zoneSubscription.unsubscribe();\n }\n\n private _applyDatepickerInputs(datepickerInstance: NgbDatepicker): void {\n ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate',\n 'maxDate', 'navigation', 'outsideDays', 'showNavigation', 'showWeekdays', 'showWeekNumbers']\n .forEach((optionName: string) => {\n if (this[optionName] !== undefined) {\n datepickerInstance[optionName] = this[optionName];\n }\n });\n datepickerInstance.startDate = this.startDate || this._model;\n }\n\n private _applyPopupStyling(nativeElement: any) {\n this._renderer.addClass(nativeElement, 'dropdown-menu');\n this._renderer.addClass(nativeElement, 'show');\n\n if (this.container === 'body') {\n this._renderer.addClass(nativeElement, 'ngb-dp-body');\n }\n }\n\n private _subscribeForDatepickerOutputs(datepickerInstance: NgbDatepicker) {\n datepickerInstance.navigate.subscribe(navigateEvent => this.navigate.emit(navigateEvent));\n datepickerInstance.select.subscribe(date => {\n this.dateSelect.emit(date);\n if (this.autoClose === true || this.autoClose === 'inside') {\n this.close();\n }\n });\n }\n\n private _writeModelValue(model: NgbDate) {\n const value = this._parserFormatter.format(model);\n this._inputValue = value;\n this._renderer.setProperty(this._elRef.nativeElement, 'value', value);\n if (this.isOpen()) {\n this._cRef.instance.writeValue(this._dateAdapter.toModel(model));\n this._onTouched();\n }\n }\n\n private _fromDateStruct(date: NgbDateStruct): NgbDate {\n const ngbDate = date ? new NgbDate(date.year, date.month, date.day) : null;\n return this._calendar.isValid(ngbDate) ? ngbDate : null;\n }\n\n private _updatePopupPosition() {\n if (!this._cRef) {\n return;\n }\n\n let hostElement: HTMLElement;\n if (typeof this.positionTarget === 'string') {\n hostElement = window.document.querySelector(this.positionTarget);\n } else if (this.positionTarget instanceof HTMLElement) {\n hostElement = this.positionTarget;\n } else {\n hostElement = this._elRef.nativeElement;\n }\n\n if (this.positionTarget && !hostElement) {\n throw new Error('ngbDatepicker could not find element declared in [positionTarget] to position against.');\n }\n\n positionElements(hostElement, this._cRef.location.nativeElement, this.placement, this.container === 'body');\n }\n}\n","import {ChangeDetectionStrategy, Component, Input, ViewEncapsulation} from '@angular/core';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: '[ngbDatepickerDayView]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-day-view.scss'],\n host: {\n 'class': 'btn-light',\n '[class.bg-primary]': 'selected',\n '[class.text-white]': 'selected',\n '[class.text-muted]': 'isMuted()',\n '[class.outside]': 'isMuted()',\n '[class.active]': 'focused'\n },\n template: `{{ i18n.getDayNumerals(date) }}`\n})\nexport class NgbDatepickerDayView {\n @Input() currentMonth: number;\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() focused: boolean;\n @Input() selected: boolean;\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n isMuted() { return !this.selected && (this.date.month !== this.currentMonth || this.disabled); }\n}\n","import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {NgbDate} from './ngb-date';\nimport {toInteger} from '../util/util';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: 'ngb-datepicker-navigation-select',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-navigation-select.scss'],\n template: `\n \n \n \n \n \n `\n})\nexport class NgbDatepickerNavigationSelect {\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() months: number[];\n @Input() years: number[];\n\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n changeMonth(month: string) { this.select.emit(new NgbDate(this.date.year, toInteger(month), 1)); }\n\n changeYear(year: string) { this.select.emit(new NgbDate(toInteger(year), this.date.month, 1)); }\n}\n","import {NgbDate} from '../ngb-date';\nimport {NgbPeriod, NgbCalendar} from '../ngb-calendar';\nimport {Injectable} from '@angular/core';\nimport {isNumber} from '../../util/util';\n\n@Injectable()\nexport abstract class NgbCalendarHijri extends NgbCalendar {\n /**\n * Returns the number of days in a specific Hijri month.\n * `month` is 1 for Muharram, 2 for Safar, etc.\n * `year` is any Hijri year.\n */\n abstract getDaysPerMonth(month: number, year: number): number;\n\n /**\n * Returns the equivalent Hijri date value for a give input Gregorian date.\n * `gDate` is s JS Date to be converted to Hijri.\n */\n abstract fromGregorian(gDate: Date): NgbDate;\n\n /**\n * Converts the current Hijri date to Gregorian.\n */\n abstract toGregorian(hDate: NgbDate): Date;\n\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date = this._setYear(date, date.year + number);\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = this._setMonth(date, date.month + number);\n date.day = 1;\n return date;\n case 'd':\n return this._setDay(date, date.day + number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = this.toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n const date = week[thursdayIndex];\n\n const jsDate = this.toGregorian(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n const MuhDate = this.toGregorian(new NgbDate(date.year, 1, 1)); // Compare with Muharram 1\n return Math.floor(Math.round((time - MuhDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return this.fromGregorian(new Date()); }\n\n\n isValid(date: NgbDate): boolean {\n return date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day) &&\n !isNaN(this.toGregorian(date).getTime());\n }\n\n private _setDay(date: NgbDate, day: number): NgbDate {\n day = +day;\n let mDays = this.getDaysPerMonth(date.month, date.year);\n if (day <= 0) {\n while (day <= 0) {\n date = this._setMonth(date, date.month - 1);\n mDays = this.getDaysPerMonth(date.month, date.year);\n day += mDays;\n }\n } else if (day > mDays) {\n while (day > mDays) {\n day -= mDays;\n date = this._setMonth(date, date.month + 1);\n mDays = this.getDaysPerMonth(date.month, date.year);\n }\n }\n date.day = day;\n return date;\n }\n\n private _setMonth(date: NgbDate, month: number): NgbDate {\n month = +month;\n date.year = date.year + Math.floor((month - 1) / 12);\n date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1;\n return date;\n }\n\n private _setYear(date: NgbDate, year: number): NgbDate {\n date.year = +year;\n return date;\n }\n}\n","import {NgbCalendarHijri} from './ngb-calendar-hijri';\nimport {NgbDate} from '../ngb-date';\nimport {Injectable} from '@angular/core';\n\n/**\n * Checks if islamic year is a leap year\n */\nfunction isIslamicLeapYear(hYear: number): boolean {\n return (14 + 11 * hYear) % 30 < 11;\n}\n\n/**\n * Checks if gregorian years is a leap year\n */\nfunction isGregorianLeapYear(gDate: Date): boolean {\n const year = gDate.getFullYear();\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n}\n\n/**\n * Returns the start of Hijri Month.\n * `hMonth` is 0 for Muharram, 1 for Safar, etc.\n * `hYear` is any Hijri hYear.\n */\nfunction getIslamicMonthStart(hYear: number, hMonth: number): number {\n return Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30.0);\n}\n\n/**\n * Returns the start of Hijri year.\n * `year` is any Hijri year.\n */\nfunction getIslamicYearStart(year: number): number {\n return (year - 1) * 354 + Math.floor((3 + 11 * year) / 30.0);\n}\n\nfunction mod(a: number, b: number): number {\n return a - b * Math.floor(a / b);\n}\n\n/**\n * The civil calendar is one type of Hijri calendars used in islamic countries.\n * Uses a fixed cycle of alternating 29- and 30-day months,\n * with a leap day added to the last month of 11 out of every 30 years.\n * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types\n * All the calculations here are based on the equations from \"Calendrical Calculations\" By Edward M. Reingold, Nachum\n * Dershowitz.\n */\n\nconst GREGORIAN_EPOCH = 1721425.5;\nconst ISLAMIC_EPOCH = 1948439.5;\n\n@Injectable()\nexport class NgbCalendarIslamicCivil extends NgbCalendarHijri {\n /**\n * Returns the equivalent islamic(civil) date value for a give input Gregorian date.\n * `gDate` is a JS Date to be converted to Hijri.\n */\n fromGregorian(gDate: Date): NgbDate {\n const gYear = gDate.getFullYear(), gMonth = gDate.getMonth(), gDay = gDate.getDate();\n\n let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) +\n -Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) +\n Math.floor(\n (367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gDate) ? -1 : -2) + gDay);\n julianDay = Math.floor(julianDay) + 0.5;\n\n const days = julianDay - ISLAMIC_EPOCH;\n const hYear = Math.floor((30 * days + 10646) / 10631.0);\n let hMonth = Math.ceil((days - 29 - getIslamicYearStart(hYear)) / 29.5);\n hMonth = Math.min(hMonth, 11);\n const hDay = Math.ceil(days - getIslamicMonthStart(hYear, hMonth)) + 1;\n return new NgbDate(hYear, hMonth + 1, hDay);\n }\n\n /**\n * Returns the equivalent JS date value for a give input islamic(civil) date.\n * `hDate` is an islamic(civil) date to be converted to Gregorian.\n */\n toGregorian(hDate: NgbDate): Date {\n const hYear = hDate.year;\n const hMonth = hDate.month - 1;\n const hDay = hDate.day;\n const julianDay =\n hDay + Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30) + ISLAMIC_EPOCH - 1;\n\n const wjd = Math.floor(julianDay - 0.5) + 0.5, depoch = wjd - GREGORIAN_EPOCH,\n quadricent = Math.floor(depoch / 146097), dqc = mod(depoch, 146097), cent = Math.floor(dqc / 36524),\n dcent = mod(dqc, 36524), quad = Math.floor(dcent / 1461), dquad = mod(dcent, 1461),\n yindex = Math.floor(dquad / 365);\n let year = quadricent * 400 + cent * 100 + quad * 4 + yindex;\n if (!(cent === 4 || yindex === 4)) {\n year++;\n }\n\n const gYearStart = GREGORIAN_EPOCH + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400);\n\n const yearday = wjd - gYearStart;\n\n const tjd = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400) + Math.floor(739 / 12 + (isGregorianLeapYear(new Date(year, 3, 1)) ? -1 : -2) + 1);\n\n const leapadj = wjd < tjd ? 0 : isGregorianLeapYear(new Date(year, 3, 1)) ? 1 : 2;\n\n const month = Math.floor(((yearday + leapadj) * 12 + 373) / 367);\n const tjd2 = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400) +\n Math.floor(\n (367 * month - 362) / 12 + (month <= 2 ? 0 : isGregorianLeapYear(new Date(year, month - 1, 1)) ? -1 : -2) +\n 1);\n\n const day = wjd - tjd2 + 1;\n\n return new Date(year, month - 1, day);\n }\n\n /**\n * Returns the number of days in a specific Hijri month.\n * `month` is 1 for Muharram, 2 for Safar, etc.\n * `year` is any Hijri year.\n */\n getDaysPerMonth(month: number, year: number): number {\n year = year + Math.floor(month / 13);\n month = ((month - 1) % 12) + 1;\n let length = 29 + month % 2;\n if (month === 12 && isIslamicLeapYear(year)) {\n length++;\n }\n return length;\n }\n}\n","import {NgbCalendarIslamicCivil} from './ngb-calendar-islamic-civil';\nimport {NgbDate} from '../ngb-date';\nimport {Injectable} from '@angular/core';\n\n/**\n * Umalqura calendar is one type of Hijri calendars used in islamic countries.\n * This Calendar is used by Saudi Arabia for administrative purpose.\n * Unlike tabular calendars, the algorithm involves astronomical calculation, but it's still deterministic.\n * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types\n */\n\nconst GREGORIAN_FIRST_DATE = new Date(1882, 10, 12);\nconst GREGORIAN_LAST_DATE = new Date(2174, 10, 25);\nconst HIJRI_BEGIN = 1300;\nconst HIJRI_END = 1600;\nconst ONE_DAY = 1000 * 60 * 60 * 24;\n\nconst MONTH_LENGTH = [\n // 1300-1304\n '101010101010', '110101010100', '111011001001', '011011010100', '011011101010',\n // 1305-1309\n '001101101100', '101010101101', '010101010101', '011010101001', '011110010010',\n // 1310-1314\n '101110101001', '010111010100', '101011011010', '010101011100', '110100101101',\n // 1315-1319\n '011010010101', '011101001010', '101101010100', '101101101010', '010110101101',\n // 1320-1324\n '010010101110', '101001001111', '010100010111', '011010001011', '011010100101',\n // 1325-1329\n '101011010101', '001011010110', '100101011011', '010010011101', '101001001101',\n // 1330-1334\n '110100100110', '110110010101', '010110101100', '100110110110', '001010111010',\n // 1335-1339\n '101001011011', '010100101011', '101010010101', '011011001010', '101011101001',\n // 1340-1344\n '001011110100', '100101110110', '001010110110', '100101010110', '101011001010',\n // 1345-1349\n '101110100100', '101111010010', '010111011001', '001011011100', '100101101101',\n // 1350-1354\n '010101001101', '101010100101', '101101010010', '101110100101', '010110110100',\n // 1355-1359\n '100110110110', '010101010111', '001010010111', '010101001011', '011010100011',\n // 1360-1364\n '011101010010', '101101100101', '010101101010', '101010101011', '010100101011',\n // 1365-1369\n '110010010101', '110101001010', '110110100101', '010111001010', '101011010110',\n // 1370-1374\n '100101010111', '010010101011', '100101001011', '101010100101', '101101010010',\n // 1375-1379\n '101101101010', '010101110101', '001001110110', '100010110111', '010001011011',\n // 1380-1384\n '010101010101', '010110101001', '010110110100', '100111011010', '010011011101',\n // 1385-1389\n '001001101110', '100100110110', '101010101010', '110101010100', '110110110010',\n // 1390-1394\n '010111010101', '001011011010', '100101011011', '010010101011', '101001010101',\n // 1395-1399\n '101101001001', '101101100100', '101101110001', '010110110100', '101010110101',\n // 1400-1404\n '101001010101', '110100100101', '111010010010', '111011001001', '011011010100',\n // 1405-1409\n '101011101001', '100101101011', '010010101011', '101010010011', '110101001001',\n // 1410-1414\n '110110100100', '110110110010', '101010111001', '010010111010', '101001011011',\n // 1415-1419\n '010100101011', '101010010101', '101100101010', '101101010101', '010101011100',\n // 1420-1424\n '010010111101', '001000111101', '100100011101', '101010010101', '101101001010',\n // 1425-1429\n '101101011010', '010101101101', '001010110110', '100100111011', '010010011011',\n // 1430-1434\n '011001010101', '011010101001', '011101010100', '101101101010', '010101101100',\n // 1435-1439\n '101010101101', '010101010101', '101100101001', '101110010010', '101110101001',\n // 1440-1444\n '010111010100', '101011011010', '010101011010', '101010101011', '010110010101',\n // 1445-1449\n '011101001001', '011101100100', '101110101010', '010110110101', '001010110110',\n // 1450-1454\n '101001010110', '111001001101', '101100100101', '101101010010', '101101101010',\n // 1455-1459\n '010110101101', '001010101110', '100100101111', '010010010111', '011001001011',\n // 1460-1464\n '011010100101', '011010101100', '101011010110', '010101011101', '010010011101',\n // 1465-1469\n '101001001101', '110100010110', '110110010101', '010110101010', '010110110101',\n // 1470-1474\n '001011011010', '100101011011', '010010101101', '010110010101', '011011001010',\n // 1475-1479\n '011011100100', '101011101010', '010011110101', '001010110110', '100101010110',\n // 1480-1484\n '101010101010', '101101010100', '101111010010', '010111011001', '001011101010',\n // 1485-1489\n '100101101101', '010010101101', '101010010101', '101101001010', '101110100101',\n // 1490-1494\n '010110110010', '100110110101', '010011010110', '101010010111', '010101000111',\n // 1495-1499\n '011010010011', '011101001001', '101101010101', '010101101010', '101001101011',\n // 1500-1504\n '010100101011', '101010001011', '110101000110', '110110100011', '010111001010',\n // 1505-1509\n '101011010110', '010011011011', '001001101011', '100101001011', '101010100101',\n // 1510-1514\n '101101010010', '101101101001', '010101110101', '000101110110', '100010110111',\n // 1515-1519\n '001001011011', '010100101011', '010101100101', '010110110100', '100111011010',\n // 1520-1524\n '010011101101', '000101101101', '100010110110', '101010100110', '110101010010',\n // 1525-1529\n '110110101001', '010111010100', '101011011010', '100101011011', '010010101011',\n // 1530-1534\n '011001010011', '011100101001', '011101100010', '101110101001', '010110110010',\n // 1535-1539\n '101010110101', '010101010101', '101100100101', '110110010010', '111011001001',\n // 1540-1544\n '011011010010', '101011101001', '010101101011', '010010101011', '101001010101',\n // 1545-1549\n '110100101001', '110101010100', '110110101010', '100110110101', '010010111010',\n // 1550-1554\n '101000111011', '010010011011', '101001001101', '101010101010', '101011010101',\n // 1555-1559\n '001011011010', '100101011101', '010001011110', '101000101110', '110010011010',\n // 1560-1564\n '110101010101', '011010110010', '011010111001', '010010111010', '101001011101',\n // 1565-1569\n '010100101101', '101010010101', '101101010010', '101110101000', '101110110100',\n // 1570-1574\n '010110111001', '001011011010', '100101011010', '101101001010', '110110100100',\n // 1575-1579\n '111011010001', '011011101000', '101101101010', '010101101101', '010100110101',\n // 1580-1584\n '011010010101', '110101001010', '110110101000', '110111010100', '011011011010',\n // 1585-1589\n '010101011011', '001010011101', '011000101011', '101100010101', '101101001010',\n // 1590-1594\n '101110010101', '010110101010', '101010101110', '100100101110', '110010001111',\n // 1595-1599\n '010100100111', '011010010101', '011010101010', '101011010110', '010101011101',\n // 1600\n '001010011101'\n];\n\nfunction getDaysDiff(date1: Date, date2: Date): number {\n // Ignores the time part in date1 and date2:\n const time1 = Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate());\n const time2 = Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate());\n const diff = Math.abs(time1 - time2);\n return Math.round(diff / ONE_DAY);\n}\n\n@Injectable()\nexport class NgbCalendarIslamicUmalqura extends NgbCalendarIslamicCivil {\n /**\n * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date.\n * `gdate` is s JS Date to be converted to Hijri.\n */\n fromGregorian(gDate: Date): NgbDate {\n let hDay = 1, hMonth = 0, hYear = 1300;\n let daysDiff = getDaysDiff(gDate, GREGORIAN_FIRST_DATE);\n if (gDate.getTime() - GREGORIAN_FIRST_DATE.getTime() >= 0 && gDate.getTime() - GREGORIAN_LAST_DATE.getTime() <= 0) {\n let year = 1300;\n for (let i = 0; i < MONTH_LENGTH.length; i++, year++) {\n for (let j = 0; j < 12; j++) {\n let numOfDays = +MONTH_LENGTH[i][j] + 29;\n if (daysDiff <= numOfDays) {\n hDay = daysDiff + 1;\n if (hDay > numOfDays) {\n hDay = 1;\n j++;\n }\n if (j > 11) {\n j = 0;\n year++;\n }\n hMonth = j;\n hYear = year;\n return new NgbDate(hYear, hMonth + 1, hDay);\n }\n daysDiff = daysDiff - numOfDays;\n }\n }\n } else {\n return super.fromGregorian(gDate);\n }\n }\n /**\n * Converts the current Hijri date to Gregorian.\n */\n toGregorian(hDate: NgbDate): Date {\n const hYear = hDate.year;\n const hMonth = hDate.month - 1;\n const hDay = hDate.day;\n let gDate = new Date(GREGORIAN_FIRST_DATE);\n let dayDiff = hDay - 1;\n if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) {\n for (let y = 0; y < hYear - HIJRI_BEGIN; y++) {\n for (let m = 0; m < 12; m++) {\n dayDiff += +MONTH_LENGTH[y][m] + 29;\n }\n }\n for (let m = 0; m < hMonth; m++) {\n dayDiff += +MONTH_LENGTH[hYear - HIJRI_BEGIN][m] + 29;\n }\n gDate.setDate(GREGORIAN_FIRST_DATE.getDate() + dayDiff);\n } else {\n gDate = super.toGregorian(hDate);\n }\n return gDate;\n }\n /**\n * Returns the number of days in a specific Hijri hMonth.\n * `hMonth` is 1 for Muharram, 2 for Safar, etc.\n * `hYear` is any Hijri hYear.\n */\n getDaysPerMonth(hMonth: number, hYear: number): number {\n if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) {\n const pos = hYear - HIJRI_BEGIN;\n return +MONTH_LENGTH[pos][hMonth - 1] + 29;\n }\n return super.getDaysPerMonth(hMonth, hYear);\n }\n}\n","import {NgbDate} from '../ngb-date';\n\n/**\n * Returns the equivalent JS date value for a give input Jalali date.\n * `jalaliDate` is an Jalali date to be converted to Gregorian.\n */\nexport function toGregorian(jalaliDate: NgbDate): Date {\n let jdn = jalaliToJulian(jalaliDate.year, jalaliDate.month, jalaliDate.day);\n let date = julianToGregorian(jdn);\n date.setHours(6, 30, 3, 200);\n return date;\n}\n\n/**\n * Returns the equivalent jalali date value for a give input Gregorian date.\n * `gdate` is a JS Date to be converted to jalali.\n * utc to local\n */\nexport function fromGregorian(gdate: Date): NgbDate {\n let g2d = gregorianToJulian(gdate.getFullYear(), gdate.getMonth() + 1, gdate.getDate());\n return julianToJalali(g2d);\n}\n\nexport function setJalaliYear(date: NgbDate, yearValue: number): NgbDate {\n date.year = +yearValue;\n return date;\n}\n\nexport function setJalaliMonth(date: NgbDate, month: number): NgbDate {\n month = +month;\n date.year = date.year + Math.floor((month - 1) / 12);\n date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1;\n return date;\n}\n\nexport function setJalaliDay(date: NgbDate, day: number): NgbDate {\n let mDays = getDaysPerMonth(date.month, date.year);\n if (day <= 0) {\n while (day <= 0) {\n date = setJalaliMonth(date, date.month - 1);\n mDays = getDaysPerMonth(date.month, date.year);\n day += mDays;\n }\n } else if (day > mDays) {\n while (day > mDays) {\n day -= mDays;\n date = setJalaliMonth(date, date.month + 1);\n mDays = getDaysPerMonth(date.month, date.year);\n }\n }\n date.day = day;\n return date;\n}\n\nfunction mod(a: number, b: number): number {\n return a - b * Math.floor(a / b);\n}\n\nfunction div(a: number, b: number) {\n return Math.trunc(a / b);\n}\n\n/*\n This function determines if the Jalali (Persian) year is\n leap (366-day long) or is the common year (365 days), and\n finds the day in March (Gregorian calendar) of the first\n day of the Jalali year (jalaliYear).\n @param jalaliYear Jalali calendar year (-61 to 3177)\n @return\n leap: number of years since the last leap year (0 to 4)\n gYear: Gregorian year of the beginning of Jalali year\n march: the March day of Farvardin the 1st (1st day of jalaliYear)\n @see: http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm\n @see: http://www.fourmilab.ch/documents/calendar/\n */\nfunction jalCal(jalaliYear: number) {\n // Jalali years starting the 33-year rule.\n let breaks =\n [-61, 9, 38, 199, 426, 686, 756, 818, 1111, 1181, 1210, 1635, 2060, 2097, 2192, 2262, 2324, 2394, 2456, 3178];\n const breaksLength = breaks.length;\n const gYear = jalaliYear + 621;\n let leapJ = -14;\n let jp = breaks[0];\n\n if (jalaliYear < jp || jalaliYear >= breaks[breaksLength - 1]) {\n throw new Error('Invalid Jalali year ' + jalaliYear);\n }\n\n // Find the limiting years for the Jalali year jalaliYear.\n let jump;\n for (let i = 1; i < breaksLength; i += 1) {\n const jm = breaks[i];\n jump = jm - jp;\n if (jalaliYear < jm) {\n break;\n }\n leapJ = leapJ + div(jump, 33) * 8 + div(mod(jump, 33), 4);\n jp = jm;\n }\n let n = jalaliYear - jp;\n\n // Find the number of leap years from AD 621 to the beginning\n // of the current Jalali year in the Persian calendar.\n leapJ = leapJ + div(n, 33) * 8 + div(mod(n, 33) + 3, 4);\n if (mod(jump, 33) === 4 && jump - n === 4) {\n leapJ += 1;\n }\n\n // And the same in the Gregorian calendar (until the year gYear).\n const leapG = div(gYear, 4) - div((div(gYear, 100) + 1) * 3, 4) - 150;\n\n // Determine the Gregorian date of Farvardin the 1st.\n const march = 20 + leapJ - leapG;\n\n // Find how many years have passed since the last leap year.\n if (jump - n < 6) {\n n = n - jump + div(jump + 4, 33) * 33;\n }\n let leap = mod(mod(n + 1, 33) - 1, 4);\n if (leap === -1) {\n leap = 4;\n }\n\n return {leap: leap, gy: gYear, march: march};\n}\n\n/*\n Calculates Gregorian and Julian calendar dates from the Julian Day number\n (jdn) for the period since jdn=-34839655 (i.e. the year -100100 of both\n calendars) to some millions years ahead of the present.\n @param jdn Julian Day number\n @return\n gYear: Calendar year (years BC numbered 0, -1, -2, ...)\n gMonth: Calendar month (1 to 12)\n gDay: Calendar day of the month M (1 to 28/29/30/31)\n */\nfunction julianToGregorian(julianDayNumber: number) {\n let j = 4 * julianDayNumber + 139361631;\n j = j + div(div(4 * julianDayNumber + 183187720, 146097) * 3, 4) * 4 - 3908;\n const i = div(mod(j, 1461), 4) * 5 + 308;\n const gDay = div(mod(i, 153), 5) + 1;\n const gMonth = mod(div(i, 153), 12) + 1;\n const gYear = div(j, 1461) - 100100 + div(8 - gMonth, 6);\n\n return new Date(gYear, gMonth - 1, gDay);\n}\n\n/*\n Converts a date of the Jalali calendar to the Julian Day number.\n @param jy Jalali year (1 to 3100)\n @param jm Jalali month (1 to 12)\n @param jd Jalali day (1 to 29/31)\n @return Julian Day number\n */\nfunction gregorianToJulian(gy: number, gm: number, gd: number) {\n let d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod(gm + 9, 12) + 2, 5) + gd - 34840408;\n d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752;\n return d;\n}\n\n/*\n Converts the Julian Day number to a date in the Jalali calendar.\n @param julianDayNumber Julian Day number\n @return\n jalaliYear: Jalali year (1 to 3100)\n jalaliMonth: Jalali month (1 to 12)\n jalaliDay: Jalali day (1 to 29/31)\n */\nfunction julianToJalali(julianDayNumber: number) {\n let gy = julianToGregorian(julianDayNumber).getFullYear() // Calculate Gregorian year (gy).\n ,\n jalaliYear = gy - 621, r = jalCal(jalaliYear), gregorianDay = gregorianToJulian(gy, 3, r.march), jalaliDay,\n jalaliMonth, numberOfDays;\n\n // Find number of days that passed since 1 Farvardin.\n numberOfDays = julianDayNumber - gregorianDay;\n if (numberOfDays >= 0) {\n if (numberOfDays <= 185) {\n // The first 6 months.\n jalaliMonth = 1 + div(numberOfDays, 31);\n jalaliDay = mod(numberOfDays, 31) + 1;\n return new NgbDate(jalaliYear, jalaliMonth, jalaliDay);\n } else {\n // The remaining months.\n numberOfDays -= 186;\n }\n } else {\n // Previous Jalali year.\n jalaliYear -= 1;\n numberOfDays += 179;\n if (r.leap === 1) {\n numberOfDays += 1;\n }\n }\n jalaliMonth = 7 + div(numberOfDays, 30);\n jalaliDay = mod(numberOfDays, 30) + 1;\n\n return new NgbDate(jalaliYear, jalaliMonth, jalaliDay);\n}\n\n/*\n Converts a date of the Jalali calendar to the Julian Day number.\n @param jYear Jalali year (1 to 3100)\n @param jMonth Jalali month (1 to 12)\n @param jDay Jalali day (1 to 29/31)\n @return Julian Day number\n */\nfunction jalaliToJulian(jYear: number, jMonth: number, jDay: number) {\n let r = jalCal(jYear);\n return gregorianToJulian(r.gy, 3, r.march) + (jMonth - 1) * 31 - div(jMonth, 7) * (jMonth - 7) + jDay - 1;\n}\n\n/**\n * Returns the number of days in a specific jalali month.\n */\nfunction getDaysPerMonth(month: number, year: number): number {\n if (month <= 6) {\n return 31;\n }\n if (month <= 11) {\n return 30;\n }\n if (jalCal(year).leap === 0) {\n return 30;\n }\n return 29;\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDate} from '../ngb-date';\nimport {NgbCalendar, NgbPeriod} from '../ngb-calendar';\nimport {isInteger} from '../../util/util';\n\nimport {fromGregorian, setJalaliDay, setJalaliMonth, setJalaliYear, toGregorian} from './jalali';\n\n@Injectable()\nexport class NgbCalendarPersian extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date = setJalaliYear(date, date.year + number);\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = setJalaliMonth(date, date.month + number);\n date.day = 1;\n return date;\n case 'd':\n return setJalaliDay(date, date.day + number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n const date = week[thursdayIndex];\n\n const jsDate = toGregorian(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n const startDate = toGregorian(new NgbDate(date.year, 1, 1));\n return Math.floor(Math.round((time - startDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return fromGregorian(new Date()); }\n\n isValid(date: NgbDate): boolean {\n return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) &&\n !isNaN(toGregorian(date).getTime());\n }\n}\n","import {NgbDate} from '../ngb-date';\nimport {NgbDateStruct} from '../ngb-date-struct';\n\nconst PARTS_PER_HOUR = 1080;\nconst PARTS_PER_DAY = 24 * PARTS_PER_HOUR;\nconst PARTS_FRACTIONAL_MONTH = 12 * PARTS_PER_HOUR + 793;\nconst PARTS_PER_MONTH = 29 * PARTS_PER_DAY + PARTS_FRACTIONAL_MONTH;\nconst BAHARAD = 11 * PARTS_PER_HOUR + 204;\nconst HEBREW_DAY_ON_JAN_1_1970 = 2092591;\nconst GREGORIAN_EPOCH = 1721425.5;\n\nfunction isGregorianLeapYear(year: number): boolean {\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n}\n\nfunction numberOfFirstDayInYear(year: number): number {\n let monthsBeforeYear = Math.floor((235 * year - 234) / 19);\n let fractionalMonthsBeforeYear = monthsBeforeYear * PARTS_FRACTIONAL_MONTH + BAHARAD;\n let dayNumber = monthsBeforeYear * 29 + Math.floor(fractionalMonthsBeforeYear / PARTS_PER_DAY);\n let timeOfDay = fractionalMonthsBeforeYear % PARTS_PER_DAY;\n\n let dayOfWeek = dayNumber % 7; // 0 == Monday\n\n if (dayOfWeek === 2 || dayOfWeek === 4 || dayOfWeek === 6) {\n dayNumber++;\n dayOfWeek = dayNumber % 7;\n }\n if (dayOfWeek === 1 && timeOfDay > 15 * PARTS_PER_HOUR + 204 && !isHebrewLeapYear(year)) {\n dayNumber += 2;\n } else if (dayOfWeek === 0 && timeOfDay > 21 * PARTS_PER_HOUR + 589 && isHebrewLeapYear(year - 1)) {\n dayNumber++;\n }\n return dayNumber;\n}\n\nfunction getDaysInGregorianMonth(month: number, year: number): number {\n let days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n if (isGregorianLeapYear(year)) {\n days[1]++;\n }\n return days[month - 1];\n}\n\nfunction getHebrewMonths(year: number): number {\n return isHebrewLeapYear(year) ? 13 : 12;\n}\n\n/**\n * Returns the number of days in a specific Hebrew year.\n * `year` is any Hebrew year.\n */\nfunction getDaysInHebrewYear(year: number): number {\n return numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year);\n}\n\nexport function isHebrewLeapYear(year: number): boolean {\n let b = (year * 12 + 17) % 19;\n return b >= ((b < 0) ? -7 : 12);\n}\n\n/**\n * Returns the number of days in a specific Hebrew month.\n * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months.\n * `year` is any Hebrew year.\n */\nexport function getDaysInHebrewMonth(month: number, year: number): number {\n let yearLength = numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year);\n let yearType = (yearLength <= 380 ? yearLength : (yearLength - 30)) - 353;\n let leapYear = isHebrewLeapYear(year);\n let daysInMonth = leapYear ? [30, 29, 29, 29, 30, 30, 29, 30, 29, 30, 29, 30, 29] :\n [30, 29, 29, 29, 30, 29, 30, 29, 30, 29, 30, 29];\n if (yearType > 0) {\n daysInMonth[2]++; // Kislev gets an extra day in normal or complete years.\n }\n if (yearType > 1) {\n daysInMonth[1]++; // Heshvan gets an extra day in complete years only.\n }\n return daysInMonth[month - 1];\n}\n\nexport function getDayNumberInHebrewYear(date: NgbDate): number {\n let numberOfDay = 0;\n for (let i = 1; i < date.month; i++) {\n numberOfDay += getDaysInHebrewMonth(i, date.year);\n }\n return numberOfDay + date.day;\n}\n\nexport function setHebrewMonth(date: NgbDate, val: number): NgbDate {\n let after = val >= 0;\n if (!after) {\n val = -val;\n }\n while (val > 0) {\n if (after) {\n if (val > getHebrewMonths(date.year) - date.month) {\n val -= getHebrewMonths(date.year) - date.month + 1;\n date.year++;\n date.month = 1;\n } else {\n date.month += val;\n val = 0;\n }\n } else {\n if (val >= date.month) {\n date.year--;\n val -= date.month;\n date.month = getHebrewMonths(date.year);\n } else {\n date.month -= val;\n val = 0;\n }\n }\n }\n return date;\n}\n\nexport function setHebrewDay(date: NgbDate, val: number): NgbDate {\n let after = val >= 0;\n if (!after) {\n val = -val;\n }\n while (val > 0) {\n if (after) {\n if (val > getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date)) {\n val -= getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date) + 1;\n date.year++;\n date.month = 1;\n date.day = 1;\n } else if (val > getDaysInHebrewMonth(date.month, date.year) - date.day) {\n val -= getDaysInHebrewMonth(date.month, date.year) - date.day + 1;\n date.month++;\n date.day = 1;\n } else {\n date.day += val;\n val = 0;\n }\n } else {\n if (val >= date.day) {\n val -= date.day;\n date.month--;\n if (date.month === 0) {\n date.year--;\n date.month = getHebrewMonths(date.year);\n }\n date.day = getDaysInHebrewMonth(date.month, date.year);\n } else {\n date.day -= val;\n val = 0;\n }\n }\n }\n return date;\n}\n\n/**\n * Returns the equivalent Hebrew date value for a give input Gregorian date.\n * `gdate` is a JS Date to be converted to Hebrew date.\n */\nexport function fromGregorian(gdate: Date): NgbDate {\n const date = new Date(gdate);\n const gYear = date.getFullYear(), gMonth = date.getMonth(), gDay = date.getDate();\n let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) -\n Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) +\n Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gYear) ? -1 : -2) + gDay);\n julianDay = Math.floor(julianDay + 0.5);\n let daysSinceHebEpoch = julianDay - 347997;\n let monthsSinceHebEpoch = Math.floor(daysSinceHebEpoch * PARTS_PER_DAY / PARTS_PER_MONTH);\n let hYear = Math.floor((monthsSinceHebEpoch * 19 + 234) / 235) + 1;\n let firstDayOfThisYear = numberOfFirstDayInYear(hYear);\n let dayOfYear = daysSinceHebEpoch - firstDayOfThisYear;\n while (dayOfYear < 1) {\n hYear--;\n firstDayOfThisYear = numberOfFirstDayInYear(hYear);\n dayOfYear = daysSinceHebEpoch - firstDayOfThisYear;\n }\n let hMonth = 1;\n let hDay = dayOfYear;\n while (hDay > getDaysInHebrewMonth(hMonth, hYear)) {\n hDay -= getDaysInHebrewMonth(hMonth, hYear);\n hMonth++;\n }\n return new NgbDate(hYear, hMonth, hDay);\n}\n\n/**\n * Returns the equivalent JS date value for a given Hebrew date.\n * `hebrewDate` is an Hebrew date to be converted to Gregorian.\n */\nexport function toGregorian(hebrewDate: NgbDateStruct | NgbDate): Date {\n const hYear = hebrewDate.year;\n const hMonth = hebrewDate.month;\n const hDay = hebrewDate.day;\n let days = numberOfFirstDayInYear(hYear);\n for (let i = 1; i < hMonth; i++) {\n days += getDaysInHebrewMonth(i, hYear);\n }\n days += hDay;\n let diffDays = days - HEBREW_DAY_ON_JAN_1_1970;\n let after = diffDays >= 0;\n if (!after) {\n diffDays = -diffDays;\n }\n let gYear = 1970;\n let gMonth = 1;\n let gDay = 1;\n while (diffDays > 0) {\n if (after) {\n if (diffDays >= (isGregorianLeapYear(gYear) ? 366 : 365)) {\n diffDays -= isGregorianLeapYear(gYear) ? 366 : 365;\n gYear++;\n } else if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) {\n diffDays -= getDaysInGregorianMonth(gMonth, gYear);\n gMonth++;\n } else {\n gDay += diffDays;\n diffDays = 0;\n }\n } else {\n if (diffDays >= (isGregorianLeapYear(gYear - 1) ? 366 : 365)) {\n diffDays -= isGregorianLeapYear(gYear - 1) ? 366 : 365;\n gYear--;\n } else {\n if (gMonth > 1) {\n gMonth--;\n } else {\n gMonth = 12;\n gYear--;\n }\n if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) {\n diffDays -= getDaysInGregorianMonth(gMonth, gYear);\n } else {\n gDay = getDaysInGregorianMonth(gMonth, gYear) - diffDays + 1;\n diffDays = 0;\n }\n }\n }\n }\n return new Date(gYear, gMonth - 1, gDay);\n}\n\nexport function hebrewNumerals(numerals: number): string {\n if (!numerals) {\n return '';\n }\n const hArray0_9 = ['', '\\u05d0', '\\u05d1', '\\u05d2', '\\u05d3', '\\u05d4', '\\u05d5', '\\u05d6', '\\u05d7', '\\u05d8'];\n const hArray10_19 = [\n '\\u05d9', '\\u05d9\\u05d0', '\\u05d9\\u05d1', '\\u05d9\\u05d2', '\\u05d9\\u05d3', '\\u05d8\\u05d5', '\\u05d8\\u05d6',\n '\\u05d9\\u05d6', '\\u05d9\\u05d7', '\\u05d9\\u05d8'\n ];\n const hArray20_90 = ['', '', '\\u05db', '\\u05dc', '\\u05de', '\\u05e0', '\\u05e1', '\\u05e2', '\\u05e4', '\\u05e6'];\n const hArray100_900 = [\n '', '\\u05e7', '\\u05e8', '\\u05e9', '\\u05ea', '\\u05ea\\u05e7', '\\u05ea\\u05e8', '\\u05ea\\u05e9', '\\u05ea\\u05ea',\n '\\u05ea\\u05ea\\u05e7'\n ];\n const hArray1000_9000 = [\n '', '\\u05d0', '\\u05d1', '\\u05d1\\u05d0', '\\u05d1\\u05d1', '\\u05d4', '\\u05d4\\u05d0', '\\u05d4\\u05d1',\n '\\u05d4\\u05d1\\u05d0', '\\u05d4\\u05d1\\u05d1'\n ];\n const geresh = '\\u05f3', gershaim = '\\u05f4';\n let mem = 0;\n let result = [];\n let step = 0;\n while (numerals > 0) {\n let m = numerals % 10;\n if (step === 0) {\n mem = m;\n } else if (step === 1) {\n if (m !== 1) {\n result.unshift(hArray20_90[m], hArray0_9[mem]);\n } else {\n result.unshift(hArray10_19[mem]);\n }\n } else if (step === 2) {\n result.unshift(hArray100_900[m]);\n } else {\n if (m !== 5) {\n result.unshift(hArray1000_9000[m], geresh, ' ');\n }\n break;\n }\n numerals = Math.floor(numerals / 10);\n if (step === 0 && numerals === 0) {\n result.unshift(hArray0_9[m]);\n }\n step++;\n }\n result = result.join('').split('');\n if (result.length === 1) {\n result.push(geresh);\n } else if (result.length > 1) {\n result.splice(result.length - 1, 0, gershaim);\n }\n return result.join('');\n}\n","import {NgbDate} from '../ngb-date';\nimport {fromJSDate, NgbCalendar, NgbPeriod, toJSDate} from '../ngb-calendar';\nimport {Injectable} from '@angular/core';\nimport {isNumber} from '../../util/util';\nimport {\n fromGregorian,\n getDayNumberInHebrewYear,\n getDaysInHebrewMonth,\n isHebrewLeapYear,\n toGregorian,\n setHebrewDay,\n setHebrewMonth\n} from './hebrew';\n\n/**\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbCalendarHebrew extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths(year?: number) {\n if (year && isHebrewLeapYear(year)) {\n return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];\n } else {\n return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];\n }\n }\n\n getWeeksPerMonth() { return 6; }\n\n isValid(date: NgbDate): boolean {\n let b = date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day);\n b = b && date.month > 0 && date.month <= (isHebrewLeapYear(date.year) ? 13 : 12);\n b = b && date.day > 0 && date.day <= getDaysInHebrewMonth(date.month, date.year);\n return b && !isNaN(toGregorian(date).getTime());\n }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date.year += number;\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = setHebrewMonth(date, number);\n date.day = 1;\n return date;\n case 'd':\n return setHebrewDay(date, number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n const date = week[week.length - 1];\n return Math.ceil(getDayNumberInHebrewYear(date) / 7);\n }\n\n getToday(): NgbDate { return fromGregorian(new Date()); }\n\n /**\n * @since 3.4.0\n */\n toGregorian(date: NgbDate): NgbDate { return fromJSDate(toGregorian(date)); }\n\n /**\n * @since 3.4.0\n */\n fromGregorian(date: NgbDate): NgbDate { return fromGregorian(toJSDate(date)); }\n}\n","import {NgbDatepickerI18n} from '../datepicker-i18n';\nimport {NgbDateStruct} from '../../index';\nimport {hebrewNumerals, isHebrewLeapYear} from './hebrew';\nimport {Injectable} from '@angular/core';\n\n\nconst WEEKDAYS = ['שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת', 'ראשון'];\nconst MONTHS = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול'];\nconst MONTHS_LEAP =\n ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר א׳', 'אדר ב׳', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול'];\n\n/**\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbDatepickerI18nHebrew extends NgbDatepickerI18n {\n getMonthShortName(month: number, year?: number): string { return this.getMonthFullName(month, year); }\n\n getMonthFullName(month: number, year?: number): string {\n return isHebrewLeapYear(year) ? MONTHS_LEAP[month - 1] : MONTHS[month - 1];\n }\n\n getWeekdayShortName(weekday: number): string { return WEEKDAYS[weekday - 1]; }\n\n getDayAriaLabel(date: NgbDateStruct): string {\n return `${hebrewNumerals(date.day)} ${this.getMonthFullName(date.month, date.year)} ${hebrewNumerals(date.year)}`;\n }\n\n getDayNumerals(date: NgbDateStruct): string { return hebrewNumerals(date.day); }\n\n getWeekNumerals(weekNumber: number): string { return hebrewNumerals(weekNumber); }\n\n getYearNumerals(year: number): string { return hebrewNumerals(year); }\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateAdapter} from './ngb-date-adapter';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {isInteger} from '../../util/util';\n\n/**\n * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses\n * native javascript dates as a user date model.\n */\n@Injectable()\nexport class NgbDateNativeAdapter extends NgbDateAdapter {\n /**\n * Converts a native `Date` to a `NgbDateStruct`.\n */\n fromModel(date: Date): NgbDateStruct {\n return (date instanceof Date && !isNaN(date.getTime())) ? this._fromNativeDate(date) : null;\n }\n\n /**\n * Converts a `NgbDateStruct` to a native `Date`.\n */\n toModel(date: NgbDateStruct): Date {\n return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) ? this._toNativeDate(date) :\n null;\n }\n\n protected _fromNativeDate(date: Date): NgbDateStruct {\n return {year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate()};\n }\n\n protected _toNativeDate(date: NgbDateStruct): Date {\n const jsDate = new Date(date.year, date.month - 1, date.day, 12);\n // avoid 30 -> 1930 conversion\n jsDate.setFullYear(date.year);\n return jsDate;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {NgbDateNativeAdapter} from './ngb-date-native-adapter';\n\n/**\n * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates.\n *\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbDateNativeUTCAdapter extends NgbDateNativeAdapter {\n protected _fromNativeDate(date: Date): NgbDateStruct {\n return {year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate()};\n }\n\n protected _toNativeDate(date: NgbDateStruct): Date {\n const jsDate = new Date(Date.UTC(date.year, date.month - 1, date.day));\n // avoid 30 -> 1930 conversion\n jsDate.setUTCFullYear(date.year);\n return jsDate;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {NgbDatepicker} from './datepicker';\nimport {NgbDatepickerMonthView} from './datepicker-month-view';\nimport {NgbDatepickerNavigation} from './datepicker-navigation';\nimport {NgbInputDatepicker} from './datepicker-input';\nimport {NgbDatepickerDayView} from './datepicker-day-view';\nimport {NgbDatepickerNavigationSelect} from './datepicker-navigation-select';\n\nexport {NgbDatepicker, NgbDatepickerNavigateEvent} from './datepicker';\nexport {NgbInputDatepicker} from './datepicker-input';\nexport {NgbCalendar, NgbPeriod, NgbCalendarGregorian} from './ngb-calendar';\nexport {NgbCalendarIslamicCivil} from './hijri/ngb-calendar-islamic-civil';\nexport {NgbCalendarIslamicUmalqura} from './hijri/ngb-calendar-islamic-umalqura';\nexport {NgbCalendarPersian} from './jalali/ngb-calendar-persian';\nexport {NgbCalendarHebrew} from './hebrew/ngb-calendar-hebrew';\nexport {NgbDatepickerI18nHebrew} from './hebrew/datepicker-i18n-hebrew';\nexport {NgbDatepickerMonthView} from './datepicker-month-view';\nexport {NgbDatepickerDayView} from './datepicker-day-view';\nexport {NgbDatepickerNavigation} from './datepicker-navigation';\nexport {NgbDatepickerNavigationSelect} from './datepicker-navigation-select';\nexport {NgbDatepickerConfig} from './datepicker-config';\nexport {NgbDatepickerI18n} from './datepicker-i18n';\nexport {NgbDateStruct} from './ngb-date-struct';\nexport {NgbDate} from './ngb-date';\nexport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nexport {NgbDateNativeAdapter} from './adapters/ngb-date-native-adapter';\nexport {NgbDateNativeUTCAdapter} from './adapters/ngb-date-native-utc-adapter';\nexport {NgbDateParserFormatter} from './ngb-date-parser-formatter';\n\n@NgModule({\n declarations: [\n NgbDatepicker, NgbDatepickerMonthView, NgbDatepickerNavigation, NgbDatepickerNavigationSelect, NgbDatepickerDayView,\n NgbInputDatepicker\n ],\n exports: [NgbDatepicker, NgbInputDatepicker],\n imports: [CommonModule, FormsModule],\n entryComponents: [NgbDatepicker]\n})\nexport class NgbDatepickerModule {\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the dropdowns used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbDropdownConfig {\n autoClose: boolean | 'outside' | 'inside' = true;\n placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n container: null | 'body';\n}\n","import {\n ChangeDetectorRef,\n ContentChild,\n ContentChildren,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n AfterContentInit,\n OnDestroy,\n Output,\n QueryList,\n Renderer2,\n SimpleChanges,\n Optional\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {Subject, Subscription} from 'rxjs';\nimport {take} from 'rxjs/operators';\n\nimport {Placement, PlacementArray, positionElements} from '../util/positioning';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {Key} from '../util/key';\n\nimport {NgbDropdownConfig} from './dropdown-config';\n\n@Directive({selector: '.navbar'})\nexport class NgbNavbar {\n}\n\n/**\n * A directive you should put put on a dropdown item to enable keyboard navigation.\n * Arrow keys will move focus between items marked with this directive.\n *\n * @since 4.1.0\n */\n@Directive({selector: '[ngbDropdownItem]', host: {'class': 'dropdown-item', '[class.disabled]': 'disabled'}})\nexport class NgbDropdownItem {\n private _disabled = false;\n\n @Input()\n set disabled(value: boolean) {\n this._disabled = value === '' || value === true; // accept an empty attribute as true\n }\n\n get disabled(): boolean { return this._disabled; }\n\n constructor(public elementRef: ElementRef) {}\n}\n\n/**\n * A directive that wraps dropdown menu content and dropdown items.\n */\n@Directive({\n selector: '[ngbDropdownMenu]',\n host: {\n '[class.dropdown-menu]': 'true',\n '[class.show]': 'dropdown.isOpen()',\n '[attr.x-placement]': 'placement',\n '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)',\n '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)',\n '(keydown.Home)': 'dropdown.onKeyDown($event)',\n '(keydown.End)': 'dropdown.onKeyDown($event)',\n '(keydown.Enter)': 'dropdown.onKeyDown($event)',\n '(keydown.Space)': 'dropdown.onKeyDown($event)'\n }\n})\nexport class NgbDropdownMenu {\n placement: Placement = 'bottom';\n isOpen = false;\n\n @ContentChildren(NgbDropdownItem) menuItems: QueryList;\n\n constructor(@Inject(forwardRef(() => NgbDropdown)) public dropdown) {}\n}\n\n/**\n * A directive to mark an element to which dropdown menu will be anchored.\n *\n * This is a simple version of the `NgbDropdownToggle` directive.\n * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support\n * for events other than click.\n *\n * @since 1.1.0\n */\n@Directive({\n selector: '[ngbDropdownAnchor]',\n host: {'class': 'dropdown-toggle', 'aria-haspopup': 'true', '[attr.aria-expanded]': 'dropdown.isOpen()'}\n})\nexport class NgbDropdownAnchor {\n anchorEl;\n\n constructor(@Inject(forwardRef(() => NgbDropdown)) public dropdown, private _elementRef: ElementRef) {\n this.anchorEl = _elementRef.nativeElement;\n }\n\n getNativeElement() { return this._elementRef.nativeElement; }\n}\n\n/**\n * A directive to mark an element that will toggle dropdown via the `click` event.\n *\n * You can also use `NgbDropdownAnchor` as an alternative.\n */\n@Directive({\n selector: '[ngbDropdownToggle]',\n host: {\n 'class': 'dropdown-toggle',\n 'aria-haspopup': 'true',\n '[attr.aria-expanded]': 'dropdown.isOpen()',\n '(click)': 'dropdown.toggle()',\n '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)',\n '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)',\n '(keydown.Home)': 'dropdown.onKeyDown($event)',\n '(keydown.End)': 'dropdown.onKeyDown($event)'\n },\n providers: [{provide: NgbDropdownAnchor, useExisting: forwardRef(() => NgbDropdownToggle)}]\n})\nexport class NgbDropdownToggle extends NgbDropdownAnchor {\n constructor(@Inject(forwardRef(() => NgbDropdown)) dropdown, elementRef: ElementRef) {\n super(dropdown, elementRef);\n }\n}\n\n/**\n * A directive that provides contextual overlays for displaying lists of links and more.\n */\n@Directive({selector: '[ngbDropdown]', exportAs: 'ngbDropdown', host: {'[class.show]': 'isOpen()'}})\nexport class NgbDropdown implements AfterContentInit, OnDestroy {\n private _closed$ = new Subject();\n private _zoneSubscription: Subscription;\n private _bodyContainer: HTMLElement;\n\n @ContentChild(NgbDropdownMenu, {static: false}) private _menu: NgbDropdownMenu;\n @ContentChild(NgbDropdownMenu, {read: ElementRef, static: false}) private _menuElement: ElementRef;\n @ContentChild(NgbDropdownAnchor, {static: false}) private _anchor: NgbDropdownAnchor;\n\n /**\n * Indicates whether the dropdown should be closed when clicking one of dropdown items or pressing ESC.\n *\n * * `true` - the dropdown will close on both outside and inside (menu) clicks.\n * * `false` - the dropdown can only be closed manually via `close()` or `toggle()` methods.\n * * `\"inside\"` - the dropdown will close on inside menu clicks, but not outside clicks.\n * * `\"outside\"` - the dropdown will close only on the outside clicks and not on menu clicks.\n */\n @Input() autoClose: boolean | 'outside' | 'inside';\n\n /**\n * Defines whether or not the dropdown menu is opened initially.\n */\n @Input('open') _open = false;\n\n /**\n * The preferred placement of the dropdown.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * A selector specifying the element the dropdown should be appended to.\n * Currently only supports \"body\".\n *\n * @since 4.1.0\n */\n @Input() container: null | 'body';\n\n /**\n * Enable or disable the dynamic positioning. The default value is dynamic unless the dropdown is used\n * inside a Bootstrap navbar. If you need custom placement for a dropdown in a navbar, set it to\n * dynamic explicitly. See the [positioning of dropdown](#/positioning#dropdown)\n * and the [navbar demo](/#/components/dropdown/examples#navbar) for more details.\n *\n * @since 4.2.0\n */\n @Input() display: 'dynamic' | 'static';\n\n /**\n * An event fired when the dropdown is opened or closed.\n *\n * The event payload is a `boolean`:\n * * `true` - the dropdown was opened\n * * `false` - the dropdown was closed\n */\n @Output() openChange = new EventEmitter();\n\n constructor(\n private _changeDetector: ChangeDetectorRef, config: NgbDropdownConfig, @Inject(DOCUMENT) private _document: any,\n private _ngZone: NgZone, private _elementRef: ElementRef, private _renderer: Renderer2,\n @Optional() ngbNavbar: NgbNavbar) {\n this.placement = config.placement;\n this.container = config.container;\n this.autoClose = config.autoClose;\n\n this.display = ngbNavbar ? 'static' : 'dynamic';\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => { this._positionMenu(); });\n }\n\n ngAfterContentInit() {\n this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n this._applyPlacementClasses();\n if (this._open) {\n this._setCloseHandlers();\n }\n });\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.container && this._open) {\n this._applyContainer(this.container);\n }\n\n if (changes.placement && !changes.placement.isFirstChange) {\n this._applyPlacementClasses();\n }\n }\n\n /**\n * Checks if the dropdown menu is open.\n */\n isOpen(): boolean { return this._open; }\n\n /**\n * Opens the dropdown menu.\n */\n open(): void {\n if (!this._open) {\n this._open = true;\n this._applyContainer(this.container);\n this.openChange.emit(true);\n this._setCloseHandlers();\n }\n }\n\n private _setCloseHandlers() {\n const anchor = this._anchor;\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this._closed$,\n this._menu ? [this._menuElement.nativeElement] : [], anchor ? [anchor.getNativeElement()] : [],\n '.dropdown-item,.dropdown-divider');\n }\n\n /**\n * Closes the dropdown menu.\n */\n close(): void {\n if (this._open) {\n this._open = false;\n this._resetContainer();\n this._closed$.next();\n this.openChange.emit(false);\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the dropdown menu.\n */\n toggle(): void {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n ngOnDestroy() {\n this._resetContainer();\n\n this._closed$.next();\n this._zoneSubscription.unsubscribe();\n }\n\n onKeyDown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n const key = event.which;\n const itemElements = this._getMenuElements();\n\n let position = -1;\n let isEventFromItems = false;\n const isEventFromToggle = this._isEventFromToggle(event);\n\n if (!isEventFromToggle && itemElements.length) {\n itemElements.forEach((itemElement, index) => {\n if (itemElement.contains(event.target as HTMLElement)) {\n isEventFromItems = true;\n }\n if (itemElement === this._document.activeElement) {\n position = index;\n }\n });\n }\n\n // closing on Enter / Space\n if (key === Key.Space || key === Key.Enter) {\n if (isEventFromItems && (this.autoClose === true || this.autoClose === 'inside')) {\n this.close();\n }\n return;\n }\n\n // opening / navigating\n if (isEventFromToggle || isEventFromItems) {\n this.open();\n\n if (itemElements.length) {\n switch (key) {\n case Key.ArrowDown:\n position = Math.min(position + 1, itemElements.length - 1);\n break;\n case Key.ArrowUp:\n if (this._isDropup() && position === -1) {\n position = itemElements.length - 1;\n break;\n }\n position = Math.max(position - 1, 0);\n break;\n case Key.Home:\n position = 0;\n break;\n case Key.End:\n position = itemElements.length - 1;\n break;\n }\n itemElements[position].focus();\n }\n event.preventDefault();\n }\n }\n\n private _isDropup(): boolean { return this._elementRef.nativeElement.classList.contains('dropup'); }\n\n private _isEventFromToggle(event: KeyboardEvent) {\n return this._anchor.getNativeElement().contains(event.target as HTMLElement);\n }\n\n private _getMenuElements(): HTMLElement[] {\n const menu = this._menu;\n if (menu == null) {\n return [];\n }\n return menu.menuItems.filter(item => !item.disabled).map(item => item.elementRef.nativeElement);\n }\n\n private _positionMenu() {\n const menu = this._menu;\n if (this.isOpen() && menu) {\n this._applyPlacementClasses(\n this.display === 'dynamic' ?\n positionElements(\n this._anchor.anchorEl, this._bodyContainer || this._menuElement.nativeElement, this.placement,\n this.container === 'body') :\n this._getFirstPlacement(this.placement));\n }\n }\n\n private _getFirstPlacement(placement: PlacementArray): Placement {\n return Array.isArray(placement) ? placement[0] : placement.split(' ')[0] as Placement;\n }\n\n private _resetContainer() {\n const renderer = this._renderer;\n const menuElement = this._menuElement;\n if (menuElement) {\n const dropdownElement = this._elementRef.nativeElement;\n const dropdownMenuElement = menuElement.nativeElement;\n\n renderer.appendChild(dropdownElement, dropdownMenuElement);\n renderer.removeStyle(dropdownMenuElement, 'position');\n renderer.removeStyle(dropdownMenuElement, 'transform');\n }\n if (this._bodyContainer) {\n renderer.removeChild(this._document.body, this._bodyContainer);\n this._bodyContainer = null;\n }\n }\n\n private _applyContainer(container: null | 'body' = null) {\n this._resetContainer();\n if (container === 'body') {\n const renderer = this._renderer;\n const dropdownMenuElement = this._menuElement.nativeElement;\n const bodyContainer = this._bodyContainer = this._bodyContainer || renderer.createElement('div');\n\n // Override some styles to have the positionning working\n renderer.setStyle(bodyContainer, 'position', 'absolute');\n renderer.setStyle(dropdownMenuElement, 'position', 'static');\n renderer.setStyle(bodyContainer, 'z-index', '1050');\n\n renderer.appendChild(bodyContainer, dropdownMenuElement);\n renderer.appendChild(this._document.body, bodyContainer);\n }\n }\n\n private _applyPlacementClasses(placement?: Placement) {\n const menu = this._menu;\n if (menu) {\n if (!placement) {\n placement = this._getFirstPlacement(this.placement);\n }\n\n const renderer = this._renderer;\n const dropdownElement = this._elementRef.nativeElement;\n\n // remove the current placement classes\n renderer.removeClass(dropdownElement, 'dropup');\n renderer.removeClass(dropdownElement, 'dropdown');\n menu.placement = this.display === 'static' ? null : placement;\n\n /*\n * apply the new placement\n * in case of top use up-arrow or down-arrow otherwise\n */\n const dropdownClass = placement.search('^top') !== -1 ? 'dropup' : 'dropdown';\n renderer.addClass(dropdownElement, dropdownClass);\n\n const bodyContainer = this._bodyContainer;\n if (bodyContainer) {\n renderer.removeClass(bodyContainer, 'dropup');\n renderer.removeClass(bodyContainer, 'dropdown');\n renderer.addClass(bodyContainer, dropdownClass);\n }\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {\n NgbDropdown,\n NgbDropdownAnchor,\n NgbDropdownToggle,\n NgbDropdownMenu,\n NgbDropdownItem,\n NgbNavbar\n} from './dropdown';\n\nexport {NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem} from './dropdown';\nexport {NgbDropdownConfig} from './dropdown-config';\n\nconst NGB_DROPDOWN_DIRECTIVES =\n [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar];\n\n@NgModule({declarations: NGB_DROPDOWN_DIRECTIVES, exports: NGB_DROPDOWN_DIRECTIVES})\nexport class NgbDropdownModule {\n}\n","import {Injectable, Injector} from '@angular/core';\n\n/**\n * Options available when opening new modal windows with `NgbModal.open()` method.\n */\nexport interface NgbModalOptions {\n /**\n * `aria-labelledby` attribute value to set on the modal window.\n *\n * @since 2.2.0\n */\n ariaLabelledBy?: string;\n\n /**\n * If `true`, the backdrop element will be created for a given modal.\n *\n * Alternatively, specify `'static'` for a backdrop which doesn't close the modal on click.\n *\n * Default value is `true`.\n */\n backdrop?: boolean | 'static';\n\n /**\n * Callback right before the modal will be dismissed.\n *\n * If this function returns:\n * * `false`\n * * a promise resolved with `false`\n * * a promise that is rejected\n *\n * then the modal won't be dismissed.\n */\n beforeDismiss?: () => boolean | Promise;\n\n /**\n * If `true`, the modal will be centered vertically.\n *\n * Default value is `false`.\n *\n * @since 1.1.0\n */\n centered?: boolean;\n\n /**\n * A selector specifying the element all new modal windows should be appended to.\n *\n * If not specified, will be `body`.\n */\n container?: string;\n\n /**\n * The `Injector` to use for modal content.\n */\n injector?: Injector;\n\n /**\n * If `true`, the modal will be closed when `Escape` key is pressed\n *\n * Default value is `true`.\n */\n keyboard?: boolean;\n\n /**\n * Scrollable modal content (false by default).\n *\n * @since 5.0.0\n */\n scrollable?: boolean;\n\n /**\n * Size of a new modal window.\n */\n size?: 'sm' | 'lg' | 'xl';\n\n /**\n * A custom class to append to the modal window.\n */\n windowClass?: string;\n\n /**\n * A custom class to append to the modal backdrop.\n *\n * @since 1.1.0\n */\n backdropClass?: string;\n}\n\n/**\n * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all modals used in the application.\n*\n* @since 3.1.0\n*/\n@Injectable({providedIn: 'root'})\nexport class NgbModalConfig implements NgbModalOptions {\n backdrop: boolean | 'static' = true;\n keyboard = true;\n}\n","import {\n Injector,\n TemplateRef,\n ViewRef,\n ViewContainerRef,\n Renderer2,\n ComponentRef,\n ComponentFactoryResolver,\n ApplicationRef\n} from '@angular/core';\n\nexport class ContentRef {\n constructor(public nodes: any[], public viewRef?: ViewRef, public componentRef?: ComponentRef) {}\n}\n\nexport class PopupService {\n private _windowRef: ComponentRef;\n private _contentRef: ContentRef;\n\n constructor(\n private _type: any, private _injector: Injector, private _viewContainerRef: ViewContainerRef,\n private _renderer: Renderer2, private _componentFactoryResolver: ComponentFactoryResolver,\n private _applicationRef: ApplicationRef) {}\n\n open(content?: string | TemplateRef, context?: any): ComponentRef {\n if (!this._windowRef) {\n this._contentRef = this._getContentRef(content, context);\n this._windowRef = this._viewContainerRef.createComponent(\n this._componentFactoryResolver.resolveComponentFactory(this._type), 0, this._injector,\n this._contentRef.nodes);\n }\n\n return this._windowRef;\n }\n\n close() {\n if (this._windowRef) {\n this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView));\n this._windowRef = null;\n\n if (this._contentRef.viewRef) {\n this._applicationRef.detachView(this._contentRef.viewRef);\n this._contentRef.viewRef.destroy();\n this._contentRef = null;\n }\n }\n }\n\n private _getContentRef(content: string | TemplateRef, context?: any): ContentRef {\n if (!content) {\n return new ContentRef([]);\n } else if (content instanceof TemplateRef) {\n const viewRef = content.createEmbeddedView(context);\n this._applicationRef.attachView(viewRef);\n return new ContentRef([viewRef.rootNodes], viewRef);\n } else {\n return new ContentRef([[this._renderer.createText(`${content}`)]]);\n }\n }\n}\n","import {Injectable, Inject} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\n\nconst noop = () => {};\n\n\n\n/** Type for the callback used to revert the scrollbar compensation. */\nexport type CompensationReverter = () => void;\n\n\n\n/**\n * Utility to handle the scrollbar.\n *\n * It allows to compensate the lack of a vertical scrollbar by adding an\n * equivalent padding on the right of the body, and to remove this compensation.\n */\n@Injectable({providedIn: 'root'})\nexport class ScrollBar {\n constructor(@Inject(DOCUMENT) private _document: any) {}\n\n /**\n * Detects if a scrollbar is present and if yes, already compensates for its\n * removal by adding an equivalent padding on the right of the body.\n *\n * @return a callback used to revert the compensation (noop if there was none,\n * otherwise a function removing the padding)\n */\n compensate(): CompensationReverter { return !this._isPresent() ? noop : this._adjustBody(this._getWidth()); }\n\n /**\n * Adds a padding of the given width on the right of the body.\n *\n * @return a callback used to revert the padding to its previous value\n */\n private _adjustBody(width: number): CompensationReverter {\n const body = this._document.body;\n const userSetPadding = body.style.paddingRight;\n const paddingAmount = parseFloat(window.getComputedStyle(body)['padding-right']);\n body.style['padding-right'] = `${paddingAmount + width}px`;\n return () => body.style['padding-right'] = userSetPadding;\n }\n\n /**\n * Tells whether a scrollbar is currently present on the body.\n *\n * @return true if scrollbar is present, false otherwise\n */\n private _isPresent(): boolean {\n const rect = this._document.body.getBoundingClientRect();\n return rect.left + rect.right < window.innerWidth;\n }\n\n /**\n * Calculates and returns the width of a scrollbar.\n *\n * @return the width of a scrollbar on this page\n */\n private _getWidth(): number {\n const measurer = this._document.createElement('div');\n measurer.className = 'modal-scrollbar-measure';\n\n const body = this._document.body;\n body.appendChild(measurer);\n const width = measurer.getBoundingClientRect().width - measurer.clientWidth;\n body.removeChild(measurer);\n\n return width;\n }\n}\n","import {Component, Input} from '@angular/core';\n\n@Component({\n selector: 'ngb-modal-backdrop',\n template: '',\n host:\n {'[class]': '\"modal-backdrop fade show\" + (backdropClass ? \" \" + backdropClass : \"\")', 'style': 'z-index: 1050'}\n})\nexport class NgbModalBackdrop {\n @Input() backdropClass: string;\n}\n","import {ComponentRef} from '@angular/core';\n\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalWindow} from './modal-window';\n\nimport {ContentRef} from '../util/popup';\n\n/**\n * A reference to the currently opened (active) modal.\n *\n * Instances of this class can be injected into your component passed as modal content.\n * So you can `.close()` or `.dismiss()` the modal window from your component.\n */\nexport class NgbActiveModal {\n /**\n * Closes the modal with an optional `result` value.\n *\n * The `NgbMobalRef.result` promise will be resolved with the provided value.\n */\n close(result?: any): void {}\n\n /**\n * Dismisses the modal with an optional `reason` value.\n *\n * The `NgbModalRef.result` promise will be rejected with the provided value.\n */\n dismiss(reason?: any): void {}\n}\n\n/**\n * A reference to the newly opened modal returned by the `NgbModal.open()` method.\n */\nexport class NgbModalRef {\n private _resolve: (result?: any) => void;\n private _reject: (reason?: any) => void;\n\n /**\n * The instance of a component used for the modal content.\n *\n * When a `TemplateRef` is used as the content, will return `undefined`.\n */\n get componentInstance(): any {\n if (this._contentRef.componentRef) {\n return this._contentRef.componentRef.instance;\n }\n }\n\n /**\n * The promise that is resolved when the modal is closed and rejected when the modal is dismissed.\n */\n result: Promise;\n\n constructor(\n private _windowCmptRef: ComponentRef, private _contentRef: ContentRef,\n private _backdropCmptRef?: ComponentRef, private _beforeDismiss?: Function) {\n _windowCmptRef.instance.dismissEvent.subscribe((reason: any) => { this.dismiss(reason); });\n\n this.result = new Promise((resolve, reject) => {\n this._resolve = resolve;\n this._reject = reject;\n });\n this.result.then(null, () => {});\n }\n\n /**\n * Closes the modal with an optional `result` value.\n *\n * The `NgbMobalRef.result` promise will be resolved with the provided value.\n */\n close(result?: any): void {\n if (this._windowCmptRef) {\n this._resolve(result);\n this._removeModalElements();\n }\n }\n\n private _dismiss(reason?: any) {\n this._reject(reason);\n this._removeModalElements();\n }\n\n /**\n * Dismisses the modal with an optional `reason` value.\n *\n * The `NgbModalRef.result` promise will be rejected with the provided value.\n */\n dismiss(reason?: any): void {\n if (this._windowCmptRef) {\n if (!this._beforeDismiss) {\n this._dismiss(reason);\n } else {\n const dismiss = this._beforeDismiss();\n if (dismiss && dismiss.then) {\n dismiss.then(\n result => {\n if (result !== false) {\n this._dismiss(reason);\n }\n },\n () => {});\n } else if (dismiss !== false) {\n this._dismiss(reason);\n }\n }\n }\n }\n\n private _removeModalElements() {\n const windowNativeEl = this._windowCmptRef.location.nativeElement;\n windowNativeEl.parentNode.removeChild(windowNativeEl);\n this._windowCmptRef.destroy();\n\n if (this._backdropCmptRef) {\n const backdropNativeEl = this._backdropCmptRef.location.nativeElement;\n backdropNativeEl.parentNode.removeChild(backdropNativeEl);\n this._backdropCmptRef.destroy();\n }\n\n if (this._contentRef && this._contentRef.viewRef) {\n this._contentRef.viewRef.destroy();\n }\n\n this._windowCmptRef = null;\n this._backdropCmptRef = null;\n this._contentRef = null;\n }\n}\n","export enum ModalDismissReasons {\n BACKDROP_CLICK,\n ESC\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {getFocusableBoundaryElements} from '../util/focus-trap';\nimport {ModalDismissReasons} from './modal-dismiss-reasons';\n\n@Component({\n selector: 'ngb-modal-window',\n host: {\n '[class]': '\"modal fade show d-block\" + (windowClass ? \" \" + windowClass : \"\")',\n 'role': 'dialog',\n 'tabindex': '-1',\n '(keyup.esc)': 'escKey($event)',\n '(click)': 'backdropClick($event)',\n '[attr.aria-modal]': 'true',\n '[attr.aria-labelledby]': 'ariaLabelledBy',\n },\n template: `\n
\n
\n
\n `,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./modal.scss']\n})\nexport class NgbModalWindow implements OnInit,\n AfterViewInit, OnDestroy {\n private _elWithFocus: Element; // element that is focused prior to modal opening\n\n @Input() ariaLabelledBy: string;\n @Input() backdrop: boolean | string = true;\n @Input() centered: string;\n @Input() keyboard = true;\n @Input() scrollable: string;\n @Input() size: string;\n @Input() windowClass: string;\n\n @Output('dismiss') dismissEvent = new EventEmitter();\n\n constructor(@Inject(DOCUMENT) private _document: any, private _elRef: ElementRef) {}\n\n backdropClick($event): void {\n if (this.backdrop === true && this._elRef.nativeElement === $event.target) {\n this.dismiss(ModalDismissReasons.BACKDROP_CLICK);\n }\n }\n\n escKey($event): void {\n if (this.keyboard && !$event.defaultPrevented) {\n this.dismiss(ModalDismissReasons.ESC);\n }\n }\n\n dismiss(reason): void { this.dismissEvent.emit(reason); }\n\n ngOnInit() { this._elWithFocus = this._document.activeElement; }\n\n ngAfterViewInit() {\n if (!this._elRef.nativeElement.contains(document.activeElement)) {\n const autoFocusable = this._elRef.nativeElement.querySelector(`[ngbAutofocus]`) as HTMLElement;\n const firstFocusable = getFocusableBoundaryElements(this._elRef.nativeElement)[0];\n\n const elementToFocus = autoFocusable || firstFocusable || this._elRef.nativeElement;\n elementToFocus.focus();\n }\n }\n\n ngOnDestroy() {\n const body = this._document.body;\n const elWithFocus = this._elWithFocus;\n\n let elementToFocus;\n if (elWithFocus && elWithFocus['focus'] && body.contains(elWithFocus)) {\n elementToFocus = elWithFocus;\n } else {\n elementToFocus = body;\n }\n elementToFocus.focus();\n this._elWithFocus = null;\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ApplicationRef,\n ComponentFactoryResolver,\n ComponentRef,\n Inject,\n Injectable,\n Injector,\n RendererFactory2,\n TemplateRef,\n} from '@angular/core';\nimport {Subject} from 'rxjs';\n\nimport {ngbFocusTrap} from '../util/focus-trap';\nimport {ContentRef} from '../util/popup';\nimport {ScrollBar} from '../util/scrollbar';\nimport {isDefined, isString} from '../util/util';\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalOptions} from './modal-config';\nimport {NgbActiveModal, NgbModalRef} from './modal-ref';\nimport {NgbModalWindow} from './modal-window';\n\n@Injectable({providedIn: 'root'})\nexport class NgbModalStack {\n private _activeWindowCmptHasChanged = new Subject();\n private _ariaHiddenValues: Map = new Map();\n private _backdropAttributes = ['backdropClass'];\n private _modalRefs: NgbModalRef[] = [];\n private _windowAttributes =\n ['ariaLabelledBy', 'backdrop', 'centered', 'keyboard', 'scrollable', 'size', 'windowClass'];\n private _windowCmpts: ComponentRef[] = [];\n\n constructor(\n private _applicationRef: ApplicationRef, private _injector: Injector, @Inject(DOCUMENT) private _document: any,\n private _scrollBar: ScrollBar, private _rendererFactory: RendererFactory2) {\n // Trap focus on active WindowCmpt\n this._activeWindowCmptHasChanged.subscribe(() => {\n if (this._windowCmpts.length) {\n const activeWindowCmpt = this._windowCmpts[this._windowCmpts.length - 1];\n ngbFocusTrap(activeWindowCmpt.location.nativeElement, this._activeWindowCmptHasChanged);\n this._revertAriaHidden();\n this._setAriaHidden(activeWindowCmpt.location.nativeElement);\n }\n });\n }\n\n open(moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, options): NgbModalRef {\n const containerEl =\n isDefined(options.container) ? this._document.querySelector(options.container) : this._document.body;\n const renderer = this._rendererFactory.createRenderer(null, null);\n\n const revertPaddingForScrollBar = this._scrollBar.compensate();\n const removeBodyClass = () => {\n if (!this._modalRefs.length) {\n renderer.removeClass(this._document.body, 'modal-open');\n this._revertAriaHidden();\n }\n };\n\n if (!containerEl) {\n throw new Error(`The specified modal container \"${options.container || 'body'}\" was not found in the DOM.`);\n }\n\n const activeModal = new NgbActiveModal();\n const contentRef =\n this._getContentRef(moduleCFR, options.injector || contentInjector, content, activeModal, options);\n\n let backdropCmptRef: ComponentRef =\n options.backdrop !== false ? this._attachBackdrop(moduleCFR, containerEl) : null;\n let windowCmptRef: ComponentRef = this._attachWindowComponent(moduleCFR, containerEl, contentRef);\n let ngbModalRef: NgbModalRef = new NgbModalRef(windowCmptRef, contentRef, backdropCmptRef, options.beforeDismiss);\n\n this._registerModalRef(ngbModalRef);\n this._registerWindowCmpt(windowCmptRef);\n ngbModalRef.result.then(revertPaddingForScrollBar, revertPaddingForScrollBar);\n ngbModalRef.result.then(removeBodyClass, removeBodyClass);\n activeModal.close = (result: any) => { ngbModalRef.close(result); };\n activeModal.dismiss = (reason: any) => { ngbModalRef.dismiss(reason); };\n\n this._applyWindowOptions(windowCmptRef.instance, options);\n if (this._modalRefs.length === 1) {\n renderer.addClass(this._document.body, 'modal-open');\n }\n\n if (backdropCmptRef && backdropCmptRef.instance) {\n this._applyBackdropOptions(backdropCmptRef.instance, options);\n }\n return ngbModalRef;\n }\n\n dismissAll(reason?: any) { this._modalRefs.forEach(ngbModalRef => ngbModalRef.dismiss(reason)); }\n\n hasOpenModals(): boolean { return this._modalRefs.length > 0; }\n\n private _attachBackdrop(moduleCFR: ComponentFactoryResolver, containerEl: any): ComponentRef {\n let backdropFactory = moduleCFR.resolveComponentFactory(NgbModalBackdrop);\n let backdropCmptRef = backdropFactory.create(this._injector);\n this._applicationRef.attachView(backdropCmptRef.hostView);\n containerEl.appendChild(backdropCmptRef.location.nativeElement);\n return backdropCmptRef;\n }\n\n private _attachWindowComponent(moduleCFR: ComponentFactoryResolver, containerEl: any, contentRef: any):\n ComponentRef {\n let windowFactory = moduleCFR.resolveComponentFactory(NgbModalWindow);\n let windowCmptRef = windowFactory.create(this._injector, contentRef.nodes);\n this._applicationRef.attachView(windowCmptRef.hostView);\n containerEl.appendChild(windowCmptRef.location.nativeElement);\n return windowCmptRef;\n }\n\n private _applyWindowOptions(windowInstance: NgbModalWindow, options: Object): void {\n this._windowAttributes.forEach((optionName: string) => {\n if (isDefined(options[optionName])) {\n windowInstance[optionName] = options[optionName];\n }\n });\n }\n\n private _applyBackdropOptions(backdropInstance: NgbModalBackdrop, options: Object): void {\n this._backdropAttributes.forEach((optionName: string) => {\n if (isDefined(options[optionName])) {\n backdropInstance[optionName] = options[optionName];\n }\n });\n }\n\n private _getContentRef(\n moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, activeModal: NgbActiveModal,\n options: NgbModalOptions): ContentRef {\n if (!content) {\n return new ContentRef([]);\n } else if (content instanceof TemplateRef) {\n return this._createFromTemplateRef(content, activeModal);\n } else if (isString(content)) {\n return this._createFromString(content);\n } else {\n return this._createFromComponent(moduleCFR, contentInjector, content, activeModal, options);\n }\n }\n\n private _createFromTemplateRef(content: TemplateRef, activeModal: NgbActiveModal): ContentRef {\n const context = {\n $implicit: activeModal,\n close(result) { activeModal.close(result); },\n dismiss(reason) { activeModal.dismiss(reason); }\n };\n const viewRef = content.createEmbeddedView(context);\n this._applicationRef.attachView(viewRef);\n return new ContentRef([viewRef.rootNodes], viewRef);\n }\n\n private _createFromString(content: string): ContentRef {\n const component = this._document.createTextNode(`${content}`);\n return new ContentRef([[component]]);\n }\n\n private _createFromComponent(\n moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, context: NgbActiveModal,\n options: NgbModalOptions): ContentRef {\n const contentCmptFactory = moduleCFR.resolveComponentFactory(content);\n const modalContentInjector =\n Injector.create({providers: [{provide: NgbActiveModal, useValue: context}], parent: contentInjector});\n const componentRef = contentCmptFactory.create(modalContentInjector);\n const componentNativeEl = componentRef.location.nativeElement;\n if (options.scrollable) {\n (componentNativeEl as HTMLElement).classList.add('component-host-scrollable');\n }\n this._applicationRef.attachView(componentRef.hostView);\n // FIXME: we should here get rid of the component nativeElement\n // and use `[Array.from(componentNativeEl.childNodes)]` instead and remove the above CSS class.\n return new ContentRef([[componentNativeEl]], componentRef.hostView, componentRef);\n }\n\n private _setAriaHidden(element: Element) {\n const parent = element.parentElement;\n if (parent && element !== this._document.body) {\n Array.from(parent.children).forEach(sibling => {\n if (sibling !== element && sibling.nodeName !== 'SCRIPT') {\n this._ariaHiddenValues.set(sibling, sibling.getAttribute('aria-hidden'));\n sibling.setAttribute('aria-hidden', 'true');\n }\n });\n\n this._setAriaHidden(parent);\n }\n }\n\n private _revertAriaHidden() {\n this._ariaHiddenValues.forEach((value, element) => {\n if (value) {\n element.setAttribute('aria-hidden', value);\n } else {\n element.removeAttribute('aria-hidden');\n }\n });\n this._ariaHiddenValues.clear();\n }\n\n private _registerModalRef(ngbModalRef: NgbModalRef) {\n const unregisterModalRef = () => {\n const index = this._modalRefs.indexOf(ngbModalRef);\n if (index > -1) {\n this._modalRefs.splice(index, 1);\n }\n };\n this._modalRefs.push(ngbModalRef);\n ngbModalRef.result.then(unregisterModalRef, unregisterModalRef);\n }\n\n private _registerWindowCmpt(ngbWindowCmpt: ComponentRef) {\n this._windowCmpts.push(ngbWindowCmpt);\n this._activeWindowCmptHasChanged.next();\n\n ngbWindowCmpt.onDestroy(() => {\n const index = this._windowCmpts.indexOf(ngbWindowCmpt);\n if (index > -1) {\n this._windowCmpts.splice(index, 1);\n this._activeWindowCmptHasChanged.next();\n }\n });\n }\n}\n","import {Injectable, Injector, ComponentFactoryResolver} from '@angular/core';\n\nimport {NgbModalOptions, NgbModalConfig} from './modal-config';\nimport {NgbModalRef} from './modal-ref';\nimport {NgbModalStack} from './modal-stack';\n\n/**\n * A service for opening modal windows.\n *\n * Creating a modal is straightforward: create a component or a template and pass it as an argument to\n * the `.open()` method.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbModal {\n constructor(\n private _moduleCFR: ComponentFactoryResolver, private _injector: Injector, private _modalStack: NgbModalStack,\n private _config: NgbModalConfig) {}\n\n /**\n * Opens a new modal window with the specified content and supplied options.\n *\n * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content,\n * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then\n * use `NgbActiveModal` methods to close / dismiss modals from \"inside\" of your component.\n *\n * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options.\n */\n open(content: any, options: NgbModalOptions = {}): NgbModalRef {\n const combinedOptions = Object.assign({}, this._config, options);\n return this._modalStack.open(this._moduleCFR, this._injector, content, combinedOptions);\n }\n\n /**\n * Dismisses all currently displayed modal windows with the supplied reason.\n *\n * @since 3.1.0\n */\n dismissAll(reason?: any) { this._modalStack.dismissAll(reason); }\n\n /**\n * Indicates if there are currently any open modal windows in the application.\n *\n * @since 3.3.0\n */\n hasOpenModals(): boolean { return this._modalStack.hasOpenModals(); }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbModal} from './modal';\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalWindow} from './modal-window';\n\nexport {NgbModal} from './modal';\nexport {NgbModalConfig, NgbModalOptions} from './modal-config';\nexport {NgbModalRef, NgbActiveModal} from './modal-ref';\nexport {ModalDismissReasons} from './modal-dismiss-reasons';\n\n@NgModule({\n declarations: [NgbModalBackdrop, NgbModalWindow],\n entryComponents: [NgbModalBackdrop, NgbModalWindow],\n providers: [NgbModal]\n})\nexport class NgbModalModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the paginations used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbPaginationConfig {\n disabled = false;\n boundaryLinks = false;\n directionLinks = true;\n ellipses = true;\n maxSize = 0;\n pageSize = 10;\n rotate = false;\n size: 'sm' | 'lg';\n}\n","import {\n Component,\n ContentChild,\n Directive,\n EventEmitter,\n Input,\n Output,\n OnChanges,\n ChangeDetectionStrategy,\n SimpleChanges,\n TemplateRef\n} from '@angular/core';\nimport {getValueInRange, isNumber} from '../util/util';\nimport {NgbPaginationConfig} from './pagination-config';\n\n/**\n * A context for the\n * * `NgbPaginationFirst`\n * * `NgbPaginationPrevious`\n * * `NgbPaginationNext`\n * * `NgbPaginationLast`\n * * `NgbPaginationEllipsis`\n *\n * link templates in case you want to override one.\n *\n * @since 4.1.0\n */\nexport interface NgbPaginationLinkContext {\n /**\n * The currently selected page number\n */\n currentPage: number;\n\n /**\n * If `true`, the current link is disabled\n */\n disabled: boolean;\n}\n\n/**\n * A context for the `NgbPaginationNumber` link template in case you want to override one.\n *\n * Extends `NgbPaginationLinkContext`.\n *\n * @since 4.1.0\n */\nexport interface NgbPaginationNumberContext extends NgbPaginationLinkContext {\n /**\n * The page number, displayed by the current page link.\n */\n $implicit: number;\n}\n\n/**\n * A directive to match the 'ellipsis' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationEllipsis]'})\nexport class NgbPaginationEllipsis {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'first' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationFirst]'})\nexport class NgbPaginationFirst {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'last' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationLast]'})\nexport class NgbPaginationLast {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'next' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationNext]'})\nexport class NgbPaginationNext {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the page 'number' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationNumber]'})\nexport class NgbPaginationNumber {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'previous' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationPrevious]'})\nexport class NgbPaginationPrevious {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A component that displays page numbers and allows to customize them in several ways.\n */\n@Component({\n selector: 'ngb-pagination',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {'role': 'navigation'},\n template: `\n ««\n «\n »\n »»\n ...\n \n {{ page }}\n (current)\n \n \n `\n})\nexport class NgbPagination implements OnChanges {\n pageCount = 0;\n pages: number[] = [];\n\n @ContentChild(NgbPaginationEllipsis, {static: false}) tplEllipsis: NgbPaginationEllipsis;\n @ContentChild(NgbPaginationFirst, {static: false}) tplFirst: NgbPaginationFirst;\n @ContentChild(NgbPaginationLast, {static: false}) tplLast: NgbPaginationLast;\n @ContentChild(NgbPaginationNext, {static: false}) tplNext: NgbPaginationNext;\n @ContentChild(NgbPaginationNumber, {static: false}) tplNumber: NgbPaginationNumber;\n @ContentChild(NgbPaginationPrevious, {static: false}) tplPrevious: NgbPaginationPrevious;\n\n /**\n * If `true`, pagination links will be disabled.\n */\n @Input() disabled: boolean;\n\n /**\n * If `true`, the \"First\" and \"Last\" page links are shown.\n */\n @Input() boundaryLinks: boolean;\n\n /**\n * If `true`, the \"Next\" and \"Previous\" page links are shown.\n */\n @Input() directionLinks: boolean;\n\n /**\n * If `true`, the ellipsis symbols and first/last page numbers will be shown when `maxSize` > number of pages.\n */\n @Input() ellipses: boolean;\n\n /**\n * Whether to rotate pages when `maxSize` > number of pages.\n *\n * The current page always stays in the middle if `true`.\n */\n @Input() rotate: boolean;\n\n /**\n * The number of items in your paginated collection.\n *\n * Note, that this is not the number of pages. Page numbers are calculated dynamically based on\n * `collectionSize` and `pageSize`. Ex. if you have 100 items in your collection and displaying 20 items per page,\n * you'll end up with 5 pages.\n */\n @Input() collectionSize: number;\n\n /**\n * The maximum number of pages to display.\n */\n @Input() maxSize: number;\n\n /**\n * The current page.\n *\n * Page numbers start with `1`.\n */\n @Input() page = 1;\n\n /**\n * The number of items per page.\n */\n @Input() pageSize: number;\n\n /**\n * An event fired when the page is changed. Will fire only if collection size is set and all values are valid.\n *\n * Event payload is the number of the newly selected page.\n *\n * Page numbers start with `1`.\n */\n @Output() pageChange = new EventEmitter(true);\n\n /**\n * The pagination display size.\n *\n * Bootstrap currently supports small and large sizes.\n */\n @Input() size: 'sm' | 'lg';\n\n constructor(config: NgbPaginationConfig) {\n this.disabled = config.disabled;\n this.boundaryLinks = config.boundaryLinks;\n this.directionLinks = config.directionLinks;\n this.ellipses = config.ellipses;\n this.maxSize = config.maxSize;\n this.pageSize = config.pageSize;\n this.rotate = config.rotate;\n this.size = config.size;\n }\n\n hasPrevious(): boolean { return this.page > 1; }\n\n hasNext(): boolean { return this.page < this.pageCount; }\n\n nextDisabled(): boolean { return !this.hasNext() || this.disabled; }\n\n previousDisabled(): boolean { return !this.hasPrevious() || this.disabled; }\n\n selectPage(pageNumber: number): void { this._updatePages(pageNumber); }\n\n ngOnChanges(changes: SimpleChanges): void { this._updatePages(this.page); }\n\n isEllipsis(pageNumber): boolean { return pageNumber === -1; }\n\n /**\n * Appends ellipses and first/last page number to the displayed pages\n */\n private _applyEllipses(start: number, end: number) {\n if (this.ellipses) {\n if (start > 0) {\n if (start > 1) {\n this.pages.unshift(-1);\n }\n this.pages.unshift(1);\n }\n if (end < this.pageCount) {\n if (end < (this.pageCount - 1)) {\n this.pages.push(-1);\n }\n this.pages.push(this.pageCount);\n }\n }\n }\n\n /**\n * Rotates page numbers based on maxSize items visible.\n * Currently selected page stays in the middle:\n *\n * Ex. for selected page = 6:\n * [5,*6*,7] for maxSize = 3\n * [4,5,*6*,7] for maxSize = 4\n */\n private _applyRotation(): [number, number] {\n let start = 0;\n let end = this.pageCount;\n let leftOffset = Math.floor(this.maxSize / 2);\n let rightOffset = this.maxSize % 2 === 0 ? leftOffset - 1 : leftOffset;\n\n if (this.page <= leftOffset) {\n // very beginning, no rotation -> [0..maxSize]\n end = this.maxSize;\n } else if (this.pageCount - this.page < leftOffset) {\n // very end, no rotation -> [len-maxSize..len]\n start = this.pageCount - this.maxSize;\n } else {\n // rotate\n start = this.page - leftOffset - 1;\n end = this.page + rightOffset;\n }\n\n return [start, end];\n }\n\n /**\n * Paginates page numbers based on maxSize items per page.\n */\n private _applyPagination(): [number, number] {\n let page = Math.ceil(this.page / this.maxSize) - 1;\n let start = page * this.maxSize;\n let end = start + this.maxSize;\n\n return [start, end];\n }\n\n private _setPageInRange(newPageNo) {\n const prevPageNo = this.page;\n this.page = getValueInRange(newPageNo, this.pageCount, 1);\n\n if (this.page !== prevPageNo && isNumber(this.collectionSize)) {\n this.pageChange.emit(this.page);\n }\n }\n\n private _updatePages(newPage: number) {\n this.pageCount = Math.ceil(this.collectionSize / this.pageSize);\n\n if (!isNumber(this.pageCount)) {\n this.pageCount = 0;\n }\n\n // fill-in model needed to render pages\n this.pages.length = 0;\n for (let i = 1; i <= this.pageCount; i++) {\n this.pages.push(i);\n }\n\n // set page within 1..max range\n this._setPageInRange(newPage);\n\n // apply maxSize if necessary\n if (this.maxSize > 0 && this.pageCount > this.maxSize) {\n let start = 0;\n let end = this.pageCount;\n\n // either paginating or rotating page numbers\n if (this.rotate) {\n [start, end] = this._applyRotation();\n } else {\n [start, end] = this._applyPagination();\n }\n\n this.pages = this.pages.slice(start, end);\n\n // adding ellipses\n this._applyEllipses(start, end);\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {\n NgbPagination,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination';\n\nexport {\n NgbPagination,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination';\nexport {NgbPaginationConfig} from './pagination-config';\n\nconst DIRECTIVES = [\n NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber,\n NgbPaginationPrevious\n];\n\n@NgModule({declarations: DIRECTIVES, exports: DIRECTIVES, imports: [CommonModule]})\nexport class NgbPaginationModule {\n}\n","import {Observable, merge} from 'rxjs';\nimport {share, filter, delay, map} from 'rxjs/operators';\n\nexport class Trigger {\n constructor(public open: string, public close?: string) {\n if (!close) {\n this.close = open;\n }\n }\n\n isManual() { return this.open === 'manual' || this.close === 'manual'; }\n}\n\nconst DEFAULT_ALIASES = {\n 'hover': ['mouseenter', 'mouseleave'],\n 'focus': ['focusin', 'focusout'],\n};\n\nexport function parseTriggers(triggers: string, aliases = DEFAULT_ALIASES): Trigger[] {\n const trimmedTriggers = (triggers || '').trim();\n\n if (trimmedTriggers.length === 0) {\n return [];\n }\n\n const parsedTriggers = trimmedTriggers.split(/\\s+/).map(trigger => trigger.split(':')).map((triggerPair) => {\n let alias = aliases[triggerPair[0]] || triggerPair;\n return new Trigger(alias[0], alias[1]);\n });\n\n const manualTriggers = parsedTriggers.filter(triggerPair => triggerPair.isManual());\n\n if (manualTriggers.length > 1) {\n throw 'Triggers parse error: only one manual trigger is allowed';\n }\n\n if (manualTriggers.length === 1 && parsedTriggers.length > 1) {\n throw 'Triggers parse error: manual trigger can\\'t be mixed with other triggers';\n }\n\n return parsedTriggers;\n}\n\nexport function observeTriggers(renderer: any, nativeElement: any, triggers: Trigger[], isOpenedFn: () => boolean) {\n return new Observable(subscriber => {\n const listeners = [];\n const openFn = () => subscriber.next(true);\n const closeFn = () => subscriber.next(false);\n const toggleFn = () => subscriber.next(!isOpenedFn());\n\n triggers.forEach((trigger: Trigger) => {\n if (trigger.open === trigger.close) {\n listeners.push(renderer.listen(nativeElement, trigger.open, toggleFn));\n } else {\n listeners.push(\n renderer.listen(nativeElement, trigger.open, openFn),\n renderer.listen(nativeElement, trigger.close, closeFn));\n }\n });\n\n return () => { listeners.forEach(unsubscribeFn => unsubscribeFn()); };\n });\n}\n\nconst delayOrNoop = (time: number) => time > 0 ? delay(time) : (a: Observable) => a;\n\nexport function triggerDelay(openDelay: number, closeDelay: number, isOpenedFn: () => boolean) {\n return (input$: Observable) => {\n let pending = null;\n const filteredInput$ = input$.pipe(\n map(open => ({open})), filter(event => {\n const currentlyOpen = isOpenedFn();\n if (currentlyOpen !== event.open && (!pending || pending.open === currentlyOpen)) {\n pending = event;\n return true;\n }\n if (pending && pending.open !== event.open) {\n pending = null;\n }\n return false;\n }),\n share());\n const delayedOpen$ = filteredInput$.pipe(filter(event => event.open), delayOrNoop(openDelay));\n const delayedClose$ = filteredInput$.pipe(filter(event => !event.open), delayOrNoop(closeDelay));\n return merge(delayedOpen$, delayedClose$)\n .pipe(\n filter(event => {\n if (event === pending) {\n pending = null;\n return event.open !== isOpenedFn();\n }\n return false;\n }),\n map(event => event.open));\n };\n}\n\nexport function listenToTriggers(\n renderer: any, nativeElement: any, triggers: string, isOpenedFn: () => boolean, openFn, closeFn, openDelay = 0,\n closeDelay = 0) {\n const parsedTriggers = parseTriggers(triggers);\n\n if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) {\n return () => {};\n }\n\n const subscription = observeTriggers(renderer, nativeElement, parsedTriggers, isOpenedFn)\n .pipe(triggerDelay(openDelay, closeDelay, isOpenedFn))\n .subscribe(open => (open ? openFn() : closeFn()));\n\n return () => subscription.unsubscribe();\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the popovers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbPopoverConfig {\n autoClose: boolean | 'inside' | 'outside' = true;\n placement: PlacementArray = 'auto';\n triggers = 'click';\n container: string;\n disablePopover = false;\n popoverClass: string;\n openDelay = 0;\n closeDelay = 0;\n}\n","import {\n Component,\n Directive,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n OnChanges,\n Inject,\n Injector,\n Renderer2,\n ComponentRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n ComponentFactoryResolver,\n NgZone,\n SimpleChanges,\n ViewEncapsulation,\n ChangeDetectorRef,\n ApplicationRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {listenToTriggers} from '../util/triggers';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {positionElements, PlacementArray} from '../util/positioning';\nimport {PopupService} from '../util/popup';\n\nimport {NgbPopoverConfig} from './popover-config';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngb-popover-window',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'[class]': '\"popover\" + (popoverClass ? \" \" + popoverClass : \"\")', 'role': 'tooltip', '[id]': 'id'},\n template: `\n
\n

\n {{title}}\n \n

\n
`,\n styleUrls: ['./popover.scss']\n})\nexport class NgbPopoverWindow {\n @Input() title: undefined | string | TemplateRef;\n @Input() id: string;\n @Input() popoverClass: string;\n @Input() context: any;\n\n isTitleTemplate() { return this.title instanceof TemplateRef; }\n}\n\n/**\n * A lightweight and extensible directive for fancy popover creation.\n */\n@Directive({selector: '[ngbPopover]', exportAs: 'ngbPopover'})\nexport class NgbPopover implements OnInit, OnDestroy, OnChanges {\n /**\n * Indicates whether the popover should be closed on `Escape` key and inside/outside clicks:\n *\n * * `true` - closes on both outside and inside clicks as well as `Escape` presses\n * * `false` - disables the autoClose feature (NB: triggers still apply)\n * * `\"inside\"` - closes on inside clicks as well as Escape presses\n * * `\"outside\"` - closes on outside clicks (sometimes also achievable through triggers)\n * as well as `Escape` presses\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside';\n\n /**\n * The string content or a `TemplateRef` for the content to be displayed in the popover.\n *\n * If the title and the content are empty, the popover won't open.\n */\n @Input() ngbPopover: string | TemplateRef;\n\n /**\n * The title of the popover.\n *\n * If the title and the content are empty, the popover won't open.\n */\n @Input() popoverTitle: string | TemplateRef;\n\n /**\n * The preferred placement of the popover.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"auto\"` (same as the sequence above).\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * Specifies events that should trigger the tooltip.\n *\n * Supports a space separated list of event names.\n * For more details see the [triggers demo](#/components/popover/examples#triggers).\n */\n @Input() triggers: string;\n\n /**\n * A selector specifying the element the popover should be appended to.\n *\n * Currently only supports `body`.\n */\n @Input() container: string;\n\n /**\n * If `true`, popover is disabled and won't be displayed.\n *\n * @since 1.1.0\n */\n @Input() disablePopover: boolean;\n\n /**\n * An optional class applied to the popover window element.\n *\n * @since 2.2.0\n */\n @Input() popoverClass: string;\n\n /**\n * The opening delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() openDelay: number;\n\n /**\n * The closing delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() closeDelay: number;\n\n /**\n * An event emitted when the popover is shown. Contains no payload.\n */\n @Output() shown = new EventEmitter();\n\n /**\n * An event emitted when the popover is hidden. Contains no payload.\n */\n @Output() hidden = new EventEmitter();\n\n private _ngbPopoverWindowId = `ngb-popover-${nextId++}`;\n private _popupService: PopupService;\n private _windowRef: ComponentRef;\n private _unregisterListenersFn;\n private _zoneSubscription: any;\n private _isDisabled(): boolean {\n if (this.disablePopover) {\n return true;\n }\n if (!this.ngbPopover && !this.popoverTitle) {\n return true;\n }\n return false;\n }\n\n constructor(\n private _elementRef: ElementRef, private _renderer: Renderer2, injector: Injector,\n componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: NgbPopoverConfig,\n private _ngZone: NgZone, @Inject(DOCUMENT) private _document: any, private _changeDetector: ChangeDetectorRef,\n private _applicationRef: ApplicationRef) {\n this.autoClose = config.autoClose;\n this.placement = config.placement;\n this.triggers = config.triggers;\n this.container = config.container;\n this.disablePopover = config.disablePopover;\n this.popoverClass = config.popoverClass;\n this.openDelay = config.openDelay;\n this.closeDelay = config.closeDelay;\n this._popupService = new PopupService(\n NgbPopoverWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => {\n if (this._windowRef) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body', 'bs-popover');\n }\n });\n }\n\n /**\n * Opens the popover.\n *\n * This is considered to be a \"manual\" triggering.\n * The `context` is an optional value to be injected into the popover template when it is created.\n */\n open(context?: any) {\n if (!this._windowRef && !this._isDisabled()) {\n this._windowRef = this._popupService.open(this.ngbPopover, context);\n this._windowRef.instance.title = this.popoverTitle;\n this._windowRef.instance.context = context;\n this._windowRef.instance.popoverClass = this.popoverClass;\n this._windowRef.instance.id = this._ngbPopoverWindowId;\n\n this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbPopoverWindowId);\n\n if (this.container === 'body') {\n this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n // We need to detect changes, because we don't know where .open() might be called from.\n // Ex. opening popover from one of lifecycle hooks that run after the CD\n // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception\n this._windowRef.changeDetectorRef.detectChanges();\n\n // We need to mark for check, because popover won't work inside the OnPush component.\n // Ex. when we use expression like `{{ popover.isOpen() : 'opened' : 'closed' }}`\n // inside the template of an OnPush component and we change the popover from\n // open -> closed, the expression in question won't be updated unless we explicitly\n // mark the parent component to be checked.\n this._windowRef.changeDetectorRef.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.hidden,\n [this._windowRef.location.nativeElement]);\n this.shown.emit();\n }\n }\n\n /**\n * Closes the popover.\n *\n * This is considered to be a \"manual\" triggering of the popover.\n */\n close(): void {\n if (this._windowRef) {\n this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');\n this._popupService.close();\n this._windowRef = null;\n this.hidden.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the popover.\n *\n * This is considered to be a \"manual\" triggering of the popover.\n */\n toggle(): void {\n if (this._windowRef) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Returns `true`, if the popover is currently shown.\n */\n isOpen(): boolean { return this._windowRef != null; }\n\n ngOnInit() {\n this._unregisterListenersFn = listenToTriggers(\n this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this),\n this.close.bind(this), +this.openDelay, +this.closeDelay);\n }\n\n ngOnChanges(changes: SimpleChanges) {\n // close popover if title and content become empty, or disablePopover set to true\n if ((changes['ngbPopover'] || changes['popoverTitle'] || changes['disablePopover']) && this._isDisabled()) {\n this.close();\n }\n }\n\n ngOnDestroy() {\n this.close();\n // This check is needed as it might happen that ngOnDestroy is called before ngOnInit\n // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199\n if (this._unregisterListenersFn) {\n this._unregisterListenersFn();\n }\n this._zoneSubscription.unsubscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbPopover, NgbPopoverWindow} from './popover';\nimport {CommonModule} from '@angular/common';\n\nexport {NgbPopover} from './popover';\nexport {NgbPopoverConfig} from './popover-config';\nexport {Placement} from '../util/positioning';\n\n@NgModule({\n declarations: [NgbPopover, NgbPopoverWindow],\n exports: [NgbPopover],\n imports: [CommonModule],\n entryComponents: [NgbPopoverWindow]\n})\nexport class NgbPopoverModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the progress bars used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbProgressbarConfig {\n max = 100;\n animated = false;\n striped = false;\n type: string;\n showValue = false;\n height: string;\n}\n","import {Component, Input, ChangeDetectionStrategy} from '@angular/core';\nimport {getValueInRange} from '../util/util';\nimport {NgbProgressbarConfig} from './progressbar-config';\n\n/**\n * A directive that provides feedback on the progress of a workflow or an action.\n */\n@Component({\n selector: 'ngb-progressbar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n
\n
\n {{getPercentValue()}}%\n
\n
\n `\n})\nexport class NgbProgressbar {\n /**\n * The maximal value to be displayed in the progressbar.\n */\n @Input() max: number;\n\n /**\n * If `true`, the stripes on the progressbar are animated.\n *\n * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.\n */\n @Input() animated: boolean;\n\n /**\n * If `true`, the progress bars will be displayed as striped.\n */\n @Input() striped: boolean;\n\n /**\n * If `true`, the current percentage will be shown in the `xx%` format.\n */\n @Input() showValue: boolean;\n\n /**\n * The type of the progress bar.\n *\n * Currently Bootstrap supports `\"success\"`, `\"info\"`, `\"warning\"` or `\"danger\"`.\n */\n @Input() type: string;\n\n /**\n * The current value for the progress bar.\n *\n * Should be in the `[0, max]` range.\n */\n @Input() value = 0;\n\n /**\n * THe height of the progress bar.\n *\n * Accepts any valid CSS height values, ex. `\"2rem\"`\n */\n @Input() height: string;\n\n constructor(config: NgbProgressbarConfig) {\n this.max = config.max;\n this.animated = config.animated;\n this.striped = config.striped;\n this.type = config.type;\n this.showValue = config.showValue;\n this.height = config.height;\n }\n\n getValue() { return getValueInRange(this.value, this.max); }\n\n getPercentValue() { return 100 * this.getValue() / this.max; }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbProgressbar} from './progressbar';\n\nexport {NgbProgressbar} from './progressbar';\nexport {NgbProgressbarConfig} from './progressbar-config';\n\n@NgModule({declarations: [NgbProgressbar], exports: [NgbProgressbar], imports: [CommonModule]})\nexport class NgbProgressbarModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the ratings used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbRatingConfig {\n max = 10;\n readonly = false;\n resettable = false;\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Output,\n EventEmitter,\n OnInit,\n TemplateRef,\n OnChanges,\n SimpleChanges,\n ContentChild,\n forwardRef,\n ChangeDetectorRef\n} from '@angular/core';\nimport {NgbRatingConfig} from './rating-config';\nimport {getValueInRange} from '../util/util';\nimport {Key} from '../util/key';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\n/**\n * The context for the custom star display template defined in the `starTemplate`.\n */\nexport interface StarTemplateContext {\n /**\n * The star fill percentage, an integer in the `[0, 100]` range.\n */\n fill: number;\n\n /**\n * Index of the star, starts with `0`.\n */\n index: number;\n}\n\nconst NGB_RATING_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbRating),\n multi: true\n};\n\n/**\n * A directive that helps visualising and interacting with a star rating bar.\n */\n@Component({\n selector: 'ngb-rating',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'd-inline-flex',\n 'tabindex': '0',\n 'role': 'slider',\n 'aria-valuemin': '0',\n '[attr.aria-valuemax]': 'max',\n '[attr.aria-valuenow]': 'nextRate',\n '[attr.aria-valuetext]': 'ariaValueText()',\n '[attr.aria-disabled]': 'readonly ? true : null',\n '(blur)': 'handleBlur()',\n '(keydown)': 'handleKeyDown($event)',\n '(mouseleave)': 'reset()'\n },\n template: `\n {{ fill === 100 ? '★' : '☆' }}\n \n ({{ index < nextRate ? '*' : ' ' }})\n \n \n \n \n \n `,\n providers: [NGB_RATING_VALUE_ACCESSOR]\n})\nexport class NgbRating implements ControlValueAccessor,\n OnInit, OnChanges {\n contexts: StarTemplateContext[] = [];\n disabled = false;\n nextRate: number;\n\n\n /**\n * The maximal rating that can be given.\n */\n @Input() max: number;\n\n /**\n * The current rating. Could be a decimal value like `3.75`.\n */\n @Input() rate: number;\n\n /**\n * If `true`, the rating can't be changed.\n */\n @Input() readonly: boolean;\n\n /**\n * If `true`, the rating can be reset to `0` by mouse clicking currently set rating.\n */\n @Input() resettable: boolean;\n\n /**\n * The template to override the way each star is displayed.\n *\n * Alternatively put an `` as the only child of your `` element\n */\n @Input() starTemplate: TemplateRef;\n @ContentChild(TemplateRef, {static: false}) starTemplateFromContent: TemplateRef;\n\n /**\n * An event emitted when the user is hovering over a given rating.\n *\n * Event payload equals to the rating being hovered over.\n */\n @Output() hover = new EventEmitter();\n\n /**\n * An event emitted when the user stops hovering over a given rating.\n *\n * Event payload equals to the rating of the last item being hovered over.\n */\n @Output() leave = new EventEmitter();\n\n /**\n * An event emitted when the user selects a new rating.\n *\n * Event payload equals to the newly selected rating.\n */\n @Output() rateChange = new EventEmitter(true);\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n constructor(config: NgbRatingConfig, private _changeDetectorRef: ChangeDetectorRef) {\n this.max = config.max;\n this.readonly = config.readonly;\n }\n\n ariaValueText() { return `${this.nextRate} out of ${this.max}`; }\n\n enter(value: number): void {\n if (!this.readonly && !this.disabled) {\n this._updateState(value);\n }\n this.hover.emit(value);\n }\n\n handleBlur() { this.onTouched(); }\n\n handleClick(value: number) { this.update(this.resettable && this.rate === value ? 0 : value); }\n\n handleKeyDown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.ArrowDown:\n case Key.ArrowLeft:\n this.update(this.rate - 1);\n break;\n case Key.ArrowUp:\n case Key.ArrowRight:\n this.update(this.rate + 1);\n break;\n case Key.Home:\n this.update(0);\n break;\n case Key.End:\n this.update(this.max);\n break;\n default:\n return;\n }\n\n // note 'return' in default case\n event.preventDefault();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['rate']) {\n this.update(this.rate);\n }\n }\n\n ngOnInit(): void {\n this.contexts = Array.from({length: this.max}, (v, k) => ({fill: 0, index: k}));\n this._updateState(this.rate);\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n reset(): void {\n this.leave.emit(this.nextRate);\n this._updateState(this.rate);\n }\n\n setDisabledState(isDisabled: boolean) { this.disabled = isDisabled; }\n\n update(value: number, internalChange = true): void {\n const newRate = getValueInRange(value, this.max, 0);\n if (!this.readonly && !this.disabled && this.rate !== newRate) {\n this.rate = newRate;\n this.rateChange.emit(this.rate);\n }\n if (internalChange) {\n this.onChange(this.rate);\n this.onTouched();\n }\n this._updateState(this.rate);\n }\n\n writeValue(value) {\n this.update(value, false);\n this._changeDetectorRef.markForCheck();\n }\n\n private _getFillValue(index: number): number {\n const diff = this.nextRate - index;\n\n if (diff >= 1) {\n return 100;\n }\n if (diff < 1 && diff > 0) {\n return parseInt((diff * 100).toFixed(2), 10);\n }\n\n return 0;\n }\n\n private _updateState(nextValue: number) {\n this.nextRate = nextValue;\n this.contexts.forEach((context, index) => context.fill = this._getFillValue(index));\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbRating} from './rating';\n\nexport {NgbRating} from './rating';\nexport {NgbRatingConfig} from './rating-config';\n\n@NgModule({declarations: [NgbRating], exports: [NgbRating], imports: [CommonModule]})\nexport class NgbRatingModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbTabset`](#/components/tabset/api#NgbTabset) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the tabsets used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTabsetConfig {\n justify: 'start' | 'center' | 'end' | 'fill' | 'justified' = 'start';\n orientation: 'horizontal' | 'vertical' = 'horizontal';\n type: 'tabs' | 'pills' = 'tabs';\n}\n","import {\n Component,\n Input,\n ContentChildren,\n QueryList,\n Directive,\n TemplateRef,\n AfterContentChecked,\n Output,\n EventEmitter\n} from '@angular/core';\nimport {NgbTabsetConfig} from './tabset-config';\n\nlet nextId = 0;\n\n/**\n * A directive to wrap tab titles that need to contain HTML markup or other directives.\n *\n * Alternatively you could use the `NgbTab.title` input for string titles.\n */\n@Directive({selector: 'ng-template[ngbTabTitle]'})\nexport class NgbTabTitle {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to wrap content to be displayed in a tab.\n */\n@Directive({selector: 'ng-template[ngbTabContent]'})\nexport class NgbTabContent {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive representing an individual tab.\n */\n@Directive({selector: 'ngb-tab'})\nexport class NgbTab implements AfterContentChecked {\n /**\n * The tab identifier.\n *\n * Must be unique for the entire document for proper accessibility support.\n */\n @Input() id = `ngb-tab-${nextId++}`;\n\n /**\n * The tab title.\n *\n * Use the [`NgbTabTitle`](#/components/tabset/api#NgbTabTitle) directive for non-string titles.\n */\n @Input() title: string;\n\n /**\n * If `true`, the current tab is disabled and can't be toggled.\n */\n @Input() disabled = false;\n\n titleTpl: NgbTabTitle | null;\n contentTpl: NgbTabContent | null;\n\n @ContentChildren(NgbTabTitle, {descendants: false}) titleTpls: QueryList;\n @ContentChildren(NgbTabContent, {descendants: false}) contentTpls: QueryList;\n\n ngAfterContentChecked() {\n // We are using @ContentChildren instead of @ContentChild as in the Angular version being used\n // only @ContentChildren allows us to specify the {descendants: false} option.\n // Without {descendants: false} we are hitting bugs described in:\n // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240\n this.titleTpl = this.titleTpls.first;\n this.contentTpl = this.contentTpls.first;\n }\n}\n\n/**\n * The payload of the change event fired right before the tab change.\n */\nexport interface NgbTabChangeEvent {\n /**\n * The id of the currently active tab.\n */\n activeId: string;\n\n /**\n * The id of the newly selected tab.\n */\n nextId: string;\n\n /**\n * Calling this function will prevent tab switching.\n */\n preventDefault: () => void;\n}\n\n/**\n * A component that makes it easy to create tabbed interface.\n */\n@Component({\n selector: 'ngb-tabset',\n exportAs: 'ngbTabset',\n template: `\n \n
\n \n \n \n
\n
\n \n `\n})\nexport class NgbTabset implements AfterContentChecked {\n justifyClass: string;\n\n @ContentChildren(NgbTab) tabs: QueryList;\n\n /**\n * The identifier of the tab that should be opened **initially**.\n *\n * For subsequent tab switches use the `.select()` method and the `(tabChange)` event.\n */\n @Input() activeId: string;\n\n /**\n * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden.\n */\n @Input() destroyOnHide = true;\n\n /**\n * The horizontal alignment of the tabs with flexbox utilities.\n */\n @Input()\n set justify(className: 'start' | 'center' | 'end' | 'fill' | 'justified') {\n if (className === 'fill' || className === 'justified') {\n this.justifyClass = `nav-${className}`;\n } else {\n this.justifyClass = `justify-content-${className}`;\n }\n }\n\n /**\n * The orientation of the tabset.\n */\n @Input() orientation: 'horizontal' | 'vertical';\n\n /**\n * Type of navigation to be used for tabs.\n *\n * Currently Bootstrap supports only `\"tabs\"` and `\"pills\"`.\n *\n * Since `3.0.0` can also be an arbitrary string (ex. for custom themes).\n */\n @Input() type: 'tabs' | 'pills' | string;\n\n /**\n * A tab change event emitted right before the tab change happens.\n *\n * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details.\n */\n @Output() tabChange = new EventEmitter();\n\n constructor(config: NgbTabsetConfig) {\n this.type = config.type;\n this.justify = config.justify;\n this.orientation = config.orientation;\n }\n\n /**\n * Selects the tab with the given id and shows its associated content panel.\n *\n * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or\n * hidden depending on the `destroyOnHide` value.\n */\n select(tabId: string) {\n let selectedTab = this._getTabById(tabId);\n if (selectedTab && !selectedTab.disabled && this.activeId !== selectedTab.id) {\n let defaultPrevented = false;\n\n this.tabChange.emit(\n {activeId: this.activeId, nextId: selectedTab.id, preventDefault: () => { defaultPrevented = true; }});\n\n if (!defaultPrevented) {\n this.activeId = selectedTab.id;\n }\n }\n }\n\n ngAfterContentChecked() {\n // auto-correct activeId that might have been set incorrectly as input\n let activeTab = this._getTabById(this.activeId);\n this.activeId = activeTab ? activeTab.id : (this.tabs.length ? this.tabs.first.id : null);\n }\n\n private _getTabById(id: string): NgbTab {\n let tabsWithId: NgbTab[] = this.tabs.filter(tab => tab.id === id);\n return tabsWithId.length ? tabsWithId[0] : null;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbTabset, NgbTab, NgbTabContent, NgbTabTitle} from './tabset';\n\nexport {NgbTabset, NgbTab, NgbTabContent, NgbTabTitle, NgbTabChangeEvent} from './tabset';\nexport {NgbTabsetConfig} from './tabset-config';\n\nconst NGB_TABSET_DIRECTIVES = [NgbTabset, NgbTab, NgbTabContent, NgbTabTitle];\n\n@NgModule({declarations: NGB_TABSET_DIRECTIVES, exports: NGB_TABSET_DIRECTIVES, imports: [CommonModule]})\nexport class NgbTabsetModule {\n}\n","import {isNumber, toInteger} from '../util/util';\n\nexport class NgbTime {\n hour: number;\n minute: number;\n second: number;\n\n constructor(hour?: number, minute?: number, second?: number) {\n this.hour = toInteger(hour);\n this.minute = toInteger(minute);\n this.second = toInteger(second);\n }\n\n changeHour(step = 1) { this.updateHour((isNaN(this.hour) ? 0 : this.hour) + step); }\n\n updateHour(hour: number) {\n if (isNumber(hour)) {\n this.hour = (hour < 0 ? 24 + hour : hour) % 24;\n } else {\n this.hour = NaN;\n }\n }\n\n changeMinute(step = 1) { this.updateMinute((isNaN(this.minute) ? 0 : this.minute) + step); }\n\n updateMinute(minute: number) {\n if (isNumber(minute)) {\n this.minute = minute % 60 < 0 ? 60 + minute % 60 : minute % 60;\n this.changeHour(Math.floor(minute / 60));\n } else {\n this.minute = NaN;\n }\n }\n\n changeSecond(step = 1) { this.updateSecond((isNaN(this.second) ? 0 : this.second) + step); }\n\n updateSecond(second: number) {\n if (isNumber(second)) {\n this.second = second < 0 ? 60 + second % 60 : second % 60;\n this.changeMinute(Math.floor(second / 60));\n } else {\n this.second = NaN;\n }\n }\n\n isValid(checkSecs = true) {\n return isNumber(this.hour) && isNumber(this.minute) && (checkSecs ? isNumber(this.second) : true);\n }\n\n toString() { return `${this.hour || 0}:${this.minute || 0}:${this.second || 0}`; }\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the timepickers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTimepickerConfig {\n meridian = false;\n spinners = true;\n seconds = false;\n hourStep = 1;\n minuteStep = 1;\n secondStep = 1;\n disabled = false;\n readonlyInputs = false;\n size: 'small' | 'medium' | 'large' = 'medium';\n}\n","import {Injectable} from '@angular/core';\nimport {NgbTimeStruct} from './ngb-time-struct';\nimport {isInteger} from '../util/util';\n\nexport function NGB_DATEPICKER_TIME_ADAPTER_FACTORY() {\n return new NgbTimeStructAdapter();\n}\n\n/**\n * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and\n * any provided user time model `T`, ex. a string, a native date, etc.\n *\n * The adapter is used **only** for conversion when binding timepicker to a form control,\n * ex. `[(ngModel)]=\"userTimeModel\"`. Here `userTimeModel` can be of any type.\n *\n * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model.\n *\n * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example.\n *\n * @since 2.2.0\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY})\nexport abstract class NgbTimeAdapter {\n /**\n * Converts a user-model time of type `T` to an `NgbTimeStruct` for internal use.\n */\n abstract fromModel(value: T): NgbTimeStruct;\n\n /**\n * Converts an internal `NgbTimeStruct` time to a user-model time of type `T`.\n */\n abstract toModel(time: NgbTimeStruct): T;\n}\n\n@Injectable()\nexport class NgbTimeStructAdapter extends NgbTimeAdapter {\n /**\n * Converts a NgbTimeStruct value into NgbTimeStruct value\n */\n fromModel(time: NgbTimeStruct): NgbTimeStruct {\n return (time && isInteger(time.hour) && isInteger(time.minute)) ?\n {hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null} :\n null;\n }\n\n /**\n * Converts a NgbTimeStruct value into NgbTimeStruct value\n */\n toModel(time: NgbTimeStruct): NgbTimeStruct {\n return (time && isInteger(time.hour) && isInteger(time.minute)) ?\n {hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null} :\n null;\n }\n}\n","import {Inject, Injectable, LOCALE_ID} from '@angular/core';\nimport {FormStyle, getLocaleDayPeriods, TranslationWidth} from '@angular/common';\n\nexport function NGB_TIMEPICKER_I18N_FACTORY(locale) {\n return new NgbTimepickerI18nDefault(locale);\n}\n\n/**\n * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component.\n * The default implementation of this service honors the Angular locale, and uses the registered locale data,\n * as explained in the Angular i18n guide.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_TIMEPICKER_I18N_FACTORY, deps: [LOCALE_ID]})\nexport abstract class NgbTimepickerI18n {\n /**\n * Returns the name for the period before midday.\n */\n abstract getMorningPeriod(): string;\n\n /**\n * Returns the name for the period after midday.\n */\n abstract getAfternoonPeriod(): string;\n}\n\n@Injectable()\nexport class NgbTimepickerI18nDefault extends NgbTimepickerI18n {\n private _periods: [string, string];\n\n constructor(@Inject(LOCALE_ID) locale: string) {\n super();\n\n this._periods = getLocaleDayPeriods(locale, FormStyle.Standalone, TranslationWidth.Narrow);\n }\n\n getMorningPeriod(): string { return this._periods[0]; }\n\n getAfternoonPeriod(): string { return this._periods[1]; }\n}\n","import {\n ChangeDetectorRef,\n Component,\n forwardRef,\n Input,\n OnChanges,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {isInteger, isNumber, padNumber, toInteger} from '../util/util';\nimport {NgbTime} from './ngb-time';\nimport {NgbTimepickerConfig} from './timepicker-config';\nimport {NgbTimeAdapter} from './ngb-time-adapter';\nimport {NgbTimepickerI18n} from './timepicker-i18n';\n\nconst NGB_TIMEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbTimepicker),\n multi: true\n};\n\n/**\n * A directive that helps with wth picking hours, minutes and seconds.\n */\n@Component({\n selector: 'ngb-timepicker',\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./timepicker.scss'],\n template: `\n
\n
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
\n
\n \n
\n
\n
\n `,\n providers: [NGB_TIMEPICKER_VALUE_ACCESSOR]\n})\nexport class NgbTimepicker implements ControlValueAccessor,\n OnChanges {\n disabled: boolean;\n model: NgbTime;\n\n private _hourStep: number;\n private _minuteStep: number;\n private _secondStep: number;\n\n /**\n * Whether to display 12H or 24H mode.\n */\n @Input() meridian: boolean;\n\n /**\n * If `true`, the spinners above and below inputs are visible.\n */\n @Input() spinners: boolean;\n\n /**\n * If `true`, it is possible to select seconds.\n */\n @Input() seconds: boolean;\n\n /**\n * The number of hours to add/subtract when clicking hour spinners.\n */\n @Input()\n set hourStep(step: number) {\n this._hourStep = isInteger(step) ? step : this._config.hourStep;\n }\n\n get hourStep(): number { return this._hourStep; }\n\n /**\n * The number of minutes to add/subtract when clicking minute spinners.\n */\n @Input()\n set minuteStep(step: number) {\n this._minuteStep = isInteger(step) ? step : this._config.minuteStep;\n }\n\n get minuteStep(): number { return this._minuteStep; }\n\n /**\n * The number of seconds to add/subtract when clicking second spinners.\n */\n @Input()\n set secondStep(step: number) {\n this._secondStep = isInteger(step) ? step : this._config.secondStep;\n }\n\n get secondStep(): number { return this._secondStep; }\n\n /**\n * If `true`, the timepicker is readonly and can't be changed.\n */\n @Input() readonlyInputs: boolean;\n\n /**\n * The size of inputs and buttons.\n */\n @Input() size: 'small' | 'medium' | 'large';\n\n constructor(\n private readonly _config: NgbTimepickerConfig, private _ngbTimeAdapter: NgbTimeAdapter,\n private _cd: ChangeDetectorRef, public i18n: NgbTimepickerI18n) {\n this.meridian = _config.meridian;\n this.spinners = _config.spinners;\n this.seconds = _config.seconds;\n this.hourStep = _config.hourStep;\n this.minuteStep = _config.minuteStep;\n this.secondStep = _config.secondStep;\n this.disabled = _config.disabled;\n this.readonlyInputs = _config.readonlyInputs;\n this.size = _config.size;\n }\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n writeValue(value) {\n const structValue = this._ngbTimeAdapter.fromModel(value);\n this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime();\n if (!this.seconds && (!structValue || !isNumber(structValue.second))) {\n this.model.second = 0;\n }\n this._cd.markForCheck();\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean) { this.disabled = isDisabled; }\n\n changeHour(step: number) {\n this.model.changeHour(step);\n this.propagateModelChange();\n }\n\n changeMinute(step: number) {\n this.model.changeMinute(step);\n this.propagateModelChange();\n }\n\n changeSecond(step: number) {\n this.model.changeSecond(step);\n this.propagateModelChange();\n }\n\n updateHour(newVal: string) {\n const isPM = this.model.hour >= 12;\n const enteredHour = toInteger(newVal);\n if (this.meridian && (isPM && enteredHour < 12 || !isPM && enteredHour === 12)) {\n this.model.updateHour(enteredHour + 12);\n } else {\n this.model.updateHour(enteredHour);\n }\n this.propagateModelChange();\n }\n\n updateMinute(newVal: string) {\n this.model.updateMinute(toInteger(newVal));\n this.propagateModelChange();\n }\n\n updateSecond(newVal: string) {\n this.model.updateSecond(toInteger(newVal));\n this.propagateModelChange();\n }\n\n toggleMeridian() {\n if (this.meridian) {\n this.changeHour(12);\n }\n }\n\n formatHour(value: number) {\n if (isNumber(value)) {\n if (this.meridian) {\n return padNumber(value % 12 === 0 ? 12 : value % 12);\n } else {\n return padNumber(value % 24);\n }\n } else {\n return padNumber(NaN);\n }\n }\n\n formatMinSec(value: number) { return padNumber(value); }\n\n get isSmallSize(): boolean { return this.size === 'small'; }\n\n get isLargeSize(): boolean { return this.size === 'large'; }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) {\n this.model.second = 0;\n this.propagateModelChange(false);\n }\n }\n\n private propagateModelChange(touched = true) {\n if (touched) {\n this.onTouched();\n }\n if (this.model.isValid(this.seconds)) {\n this.onChange(\n this._ngbTimeAdapter.toModel({hour: this.model.hour, minute: this.model.minute, second: this.model.second}));\n } else {\n this.onChange(this._ngbTimeAdapter.toModel(null));\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbTimepicker} from './timepicker';\n\nexport {NgbTimepicker} from './timepicker';\nexport {NgbTimepickerConfig} from './timepicker-config';\nexport {NgbTimeStruct} from './ngb-time-struct';\nexport {NgbTimeAdapter} from './ngb-time-adapter';\nexport {NgbTimepickerI18n} from './timepicker-i18n';\n\n@NgModule({declarations: [NgbTimepicker], exports: [NgbTimepicker], imports: [CommonModule]})\nexport class NgbTimepickerModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * Interface used to type all toast config options. See `NgbToastConfig`.\n *\n * @since 5.0.0\n */\nexport interface NgbToastOptions {\n /**\n * Specify if the toast component should emit the `hide()` output\n * after a certain `delay` in ms.\n */\n autohide?: boolean;\n\n /**\n * Delay in ms after which the `hide()` output should be emitted.\n */\n delay?: number;\n\n /**\n * Type of aria-live attribute to be used.\n *\n * Could be one of these 2 values (as string):\n * - `polite` (default)\n * - `alert`\n */\n ariaLive?: 'polite' | 'alert';\n}\n\n/**\n * Configuration service for the NgbToast component. You can inject this service, typically in your root component,\n * and customize the values of its properties in order to provide default values for all the toasts used in the\n * application.\n *\n * @since 5.0.0\n */\n@Injectable({providedIn: 'root'})\nexport class NgbToastConfig implements NgbToastOptions {\n autohide = true;\n delay = 500;\n ariaLive: 'polite' | 'alert' = 'polite';\n}\n","import {\n AfterContentInit,\n Attribute,\n Component,\n ContentChild,\n Directive,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {NgbToastConfig} from './toast-config';\n\n/**\n * This directive allows the usage of HTML markup or other directives\n * inside of the toast's header.\n *\n * @since 5.0.0\n */\n@Directive({selector: '[ngbToastHeader]'})\nexport class NgbToastHeader {\n}\n\n/**\n * Toasts provide feedback messages as notifications to the user.\n * Goal is to mimic the push notifications available both on mobile and desktop operating systems.\n *\n * @since 5.0.0\n */\n@Component({\n selector: 'ngb-toast',\n exportAs: 'ngbToast',\n encapsulation: ViewEncapsulation.None,\n host: {\n 'role': 'alert',\n '[attr.aria-live]': 'ariaLive',\n 'aria-atomic': 'true',\n '[class.toast]': 'true',\n '[class.show]': 'true',\n '[class.autohide]': 'autohide',\n },\n template: `\n \n {{header}}\n \n \n
\n \n \n
\n
\n
\n \n
\n `,\n styleUrls: ['./toast.scss']\n})\nexport class NgbToast implements AfterContentInit,\n OnChanges {\n private _timeoutID;\n\n /**\n * Delay after which the toast will hide (ms).\n * default: `500` (ms) (inherited from NgbToastConfig)\n */\n @Input() delay: number;\n\n /**\n * Auto hide the toast after a delay in ms.\n * default: `true` (inherited from NgbToastConfig)\n */\n @Input() autohide: boolean;\n\n /**\n * Text to be used as toast's header.\n * Ignored if a ContentChild template is specified at the same time.\n */\n @Input() header: string;\n\n /**\n * A template like `` can be\n * used in the projected content to allow markup usage.\n */\n @ContentChild(NgbToastHeader, {read: TemplateRef, static: true}) contentHeaderTpl: TemplateRef| null = null;\n\n /**\n * An event fired immediately when toast's `hide()` method has been called.\n * It can only occur in 2 different scenarios:\n * - `autohide` timeout fires\n * - user clicks on a closing cross (×)\n *\n * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of\n * that.\n */\n @Output('hide') hideOutput = new EventEmitter();\n\n constructor(@Attribute('aria-live') public ariaLive: string, config: NgbToastConfig) {\n if (this.ariaLive == null) {\n this.ariaLive = config.ariaLive;\n }\n this.delay = config.delay;\n this.autohide = config.autohide;\n }\n\n ngAfterContentInit() { this._init(); }\n\n ngOnChanges(changes: SimpleChanges) {\n if ('autohide' in changes) {\n this._clearTimeout();\n this._init();\n }\n }\n\n hide() {\n this._clearTimeout();\n this.hideOutput.emit();\n }\n\n private _init() {\n if (this.autohide && !this._timeoutID) {\n this._timeoutID = setTimeout(() => this.hide(), this.delay);\n }\n }\n\n private _clearTimeout() {\n if (this._timeoutID) {\n clearTimeout(this._timeoutID);\n this._timeoutID = null;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\nimport {NgbToast, NgbToastHeader} from './toast';\n\nexport {NgbToast, NgbToastHeader} from './toast';\nexport {NgbToastConfig, NgbToastOptions} from './toast-config';\n\n@NgModule({declarations: [NgbToast, NgbToastHeader], imports: [CommonModule], exports: [NgbToast, NgbToastHeader]})\nexport class NgbToastModule {\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the tooltips used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTooltipConfig {\n autoClose: boolean | 'inside' | 'outside' = true;\n placement: PlacementArray = 'auto';\n triggers = 'hover focus';\n container: string;\n disableTooltip = false;\n tooltipClass: string;\n openDelay = 0;\n closeDelay = 0;\n}\n","import {\n Component,\n Directive,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n Inject,\n Injector,\n Renderer2,\n ComponentRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n ComponentFactoryResolver,\n NgZone,\n ViewEncapsulation,\n ChangeDetectorRef,\n ApplicationRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {listenToTriggers} from '../util/triggers';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {positionElements, PlacementArray} from '../util/positioning';\nimport {PopupService} from '../util/popup';\n\nimport {NgbTooltipConfig} from './tooltip-config';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngb-tooltip-window',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'[class]': '\"tooltip show\" + (tooltipClass ? \" \" + tooltipClass : \"\")', 'role': 'tooltip', '[id]': 'id'},\n template: `
`,\n styleUrls: ['./tooltip.scss']\n})\nexport class NgbTooltipWindow {\n @Input() id: string;\n @Input() tooltipClass: string;\n}\n\n/**\n * A lightweight and extensible directive for fancy tooltip creation.\n */\n@Directive({selector: '[ngbTooltip]', exportAs: 'ngbTooltip'})\nexport class NgbTooltip implements OnInit, OnDestroy {\n /**\n * Indicates whether the tooltip should be closed on `Escape` key and inside/outside clicks:\n *\n * * `true` - closes on both outside and inside clicks as well as `Escape` presses\n * * `false` - disables the autoClose feature (NB: triggers still apply)\n * * `\"inside\"` - closes on inside clicks as well as Escape presses\n * * `\"outside\"` - closes on outside clicks (sometimes also achievable through triggers)\n * as well as `Escape` presses\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside';\n\n /**\n * The preferred placement of the tooltip.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"auto\"` (same as the sequence above).\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * Specifies events that should trigger the tooltip.\n *\n * Supports a space separated list of event names.\n * For more details see the [triggers demo](#/components/tooltip/examples#triggers).\n */\n @Input() triggers: string;\n\n /**\n * A selector specifying the element the tooltip should be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * If `true`, tooltip is disabled and won't be displayed.\n *\n * @since 1.1.0\n */\n @Input() disableTooltip: boolean;\n\n /**\n * An optional class applied to the tooltip window element.\n *\n * @since 3.2.0\n */\n @Input() tooltipClass: string;\n\n /**\n * The opening delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() openDelay: number;\n\n /**\n * The closing delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() closeDelay: number;\n\n /**\n * An event emitted when the tooltip is shown. Contains no payload.\n */\n @Output() shown = new EventEmitter();\n /**\n * An event emitted when the popover is hidden. Contains no payload.\n */\n @Output() hidden = new EventEmitter();\n\n private _ngbTooltip: string | TemplateRef;\n private _ngbTooltipWindowId = `ngb-tooltip-${nextId++}`;\n private _popupService: PopupService;\n private _windowRef: ComponentRef;\n private _unregisterListenersFn;\n private _zoneSubscription: any;\n\n constructor(\n private _elementRef: ElementRef, private _renderer: Renderer2, injector: Injector,\n componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: NgbTooltipConfig,\n private _ngZone: NgZone, @Inject(DOCUMENT) private _document: any, private _changeDetector: ChangeDetectorRef,\n private _applicationRef: ApplicationRef) {\n this.autoClose = config.autoClose;\n this.placement = config.placement;\n this.triggers = config.triggers;\n this.container = config.container;\n this.disableTooltip = config.disableTooltip;\n this.tooltipClass = config.tooltipClass;\n this.openDelay = config.openDelay;\n this.closeDelay = config.closeDelay;\n this._popupService = new PopupService(\n NgbTooltipWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => {\n if (this._windowRef) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body', 'bs-tooltip');\n }\n });\n }\n\n /**\n * The string content or a `TemplateRef` for the content to be displayed in the tooltip.\n *\n * If the content if falsy, the tooltip won't open.\n */\n @Input()\n set ngbTooltip(value: string | TemplateRef) {\n this._ngbTooltip = value;\n if (!value && this._windowRef) {\n this.close();\n }\n }\n\n get ngbTooltip() { return this._ngbTooltip; }\n\n /**\n * Opens the tooltip.\n *\n * This is considered to be a \"manual\" triggering.\n * The `context` is an optional value to be injected into the tooltip template when it is created.\n */\n open(context?: any) {\n if (!this._windowRef && this._ngbTooltip && !this.disableTooltip) {\n this._windowRef = this._popupService.open(this._ngbTooltip, context);\n this._windowRef.instance.tooltipClass = this.tooltipClass;\n this._windowRef.instance.id = this._ngbTooltipWindowId;\n\n this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbTooltipWindowId);\n\n if (this.container === 'body') {\n this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n // We need to detect changes, because we don't know where .open() might be called from.\n // Ex. opening tooltip from one of lifecycle hooks that run after the CD\n // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception\n this._windowRef.changeDetectorRef.detectChanges();\n\n // We need to mark for check, because tooltip won't work inside the OnPush component.\n // Ex. when we use expression like `{{ tooltip.isOpen() : 'opened' : 'closed' }}`\n // inside the template of an OnPush component and we change the tooltip from\n // open -> closed, the expression in question won't be updated unless we explicitly\n // mark the parent component to be checked.\n this._windowRef.changeDetectorRef.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.hidden,\n [this._windowRef.location.nativeElement]);\n\n this.shown.emit();\n }\n }\n\n /**\n * Closes the tooltip.\n *\n * This is considered to be a \"manual\" triggering of the tooltip.\n */\n close(): void {\n if (this._windowRef != null) {\n this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');\n this._popupService.close();\n this._windowRef = null;\n this.hidden.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the tooltip.\n *\n * This is considered to be a \"manual\" triggering of the tooltip.\n */\n toggle(): void {\n if (this._windowRef) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Returns `true`, if the popover is currently shown.\n */\n isOpen(): boolean { return this._windowRef != null; }\n\n ngOnInit() {\n this._unregisterListenersFn = listenToTriggers(\n this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this),\n this.close.bind(this), +this.openDelay, +this.closeDelay);\n }\n\n ngOnDestroy() {\n this.close();\n // This check is needed as it might happen that ngOnDestroy is called before ngOnInit\n // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199\n if (this._unregisterListenersFn) {\n this._unregisterListenersFn();\n }\n this._zoneSubscription.unsubscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbTooltip, NgbTooltipWindow} from './tooltip';\n\nexport {NgbTooltipConfig} from './tooltip-config';\nexport {NgbTooltip} from './tooltip';\nexport {Placement} from '../util/positioning';\n\n@NgModule({declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow]})\nexport class NgbTooltipModule {\n}\n","import {Component, Input, OnChanges, ChangeDetectionStrategy, SimpleChanges, ViewEncapsulation} from '@angular/core';\nimport {regExpEscape, toString} from '../util/util';\n\n/**\n * A component that helps with text highlighting.\n *\n * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify\n * highlighting:\n *\n * Ex. `result=\"Alaska\"` and `term=\"as\"` will produce `Alaska`.\n */\n@Component({\n selector: 'ngb-highlight',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: `` +\n `{{part}}{{part}}` +\n ``, // template needs to be formatted in a certain way so we don't add empty text nodes\n styleUrls: ['./highlight.scss']\n})\nexport class NgbHighlight implements OnChanges {\n parts: string[];\n\n /**\n * The CSS class for `` elements wrapping the `term` inside the `result`.\n */\n @Input() highlightClass = 'ngb-highlight';\n\n /**\n * The text highlighting is added to.\n *\n * If the `term` is found inside this text, it will be highlighted.\n * If the `term` contains array then all the items from it will be highlighted inside the text.\n */\n @Input() result: string;\n\n /**\n * The term or array of terms to be highlighted.\n * Since version `v4.2.0` term could be a `string[]`\n */\n @Input() term: string | string[];\n\n ngOnChanges(changes: SimpleChanges) {\n const result = toString(this.result);\n\n const terms = Array.isArray(this.term) ? this.term : [this.term];\n const escapedTerms = terms.map(term => regExpEscape(toString(term))).filter(term => term);\n\n this.parts = escapedTerms.length ? result.split(new RegExp(`(${escapedTerms.join('|')})`, 'gmi')) : [result];\n }\n}\n","import {Component, Input, Output, EventEmitter, TemplateRef, OnInit} from '@angular/core';\n\nimport {toString} from '../util/util';\n\n/**\n * The context for the typeahead result template in case you want to override the default one.\n */\nexport interface ResultTemplateContext {\n /**\n * Your typeahead result item.\n */\n result: any;\n\n /**\n * Search term from the `` used to get current result.\n */\n term: string;\n}\n\n@Component({\n selector: 'ngb-typeahead-window',\n exportAs: 'ngbTypeaheadWindow',\n host: {'(mousedown)': '$event.preventDefault()', 'class': 'dropdown-menu show', 'role': 'listbox', '[id]': 'id'},\n template: `\n \n \n \n \n \n \n `\n})\nexport class NgbTypeaheadWindow implements OnInit {\n activeIdx = 0;\n\n /**\n * The id for the typeahead window. The id should be unique and the same\n * as the associated typeahead's id.\n */\n @Input() id: string;\n\n /**\n * Flag indicating if the first row should be active initially\n */\n @Input() focusFirst = true;\n\n /**\n * Typeahead match results to be displayed\n */\n @Input() results;\n\n /**\n * Search term used to get current results\n */\n @Input() term: string;\n\n /**\n * A function used to format a given result before display. This function should return a formatted string without any\n * HTML markup\n */\n @Input() formatter = toString;\n\n /**\n * A template to override a matching result default display\n */\n @Input() resultTemplate: TemplateRef;\n\n /**\n * Event raised when user selects a particular result row\n */\n @Output('select') selectEvent = new EventEmitter();\n\n @Output('activeChange') activeChangeEvent = new EventEmitter();\n\n hasActive() { return this.activeIdx > -1 && this.activeIdx < this.results.length; }\n\n getActive() { return this.results[this.activeIdx]; }\n\n markActive(activeIdx: number) {\n this.activeIdx = activeIdx;\n this._activeChanged();\n }\n\n next() {\n if (this.activeIdx === this.results.length - 1) {\n this.activeIdx = this.focusFirst ? (this.activeIdx + 1) % this.results.length : -1;\n } else {\n this.activeIdx++;\n }\n this._activeChanged();\n }\n\n prev() {\n if (this.activeIdx < 0) {\n this.activeIdx = this.results.length - 1;\n } else if (this.activeIdx === 0) {\n this.activeIdx = this.focusFirst ? this.results.length - 1 : -1;\n } else {\n this.activeIdx--;\n }\n this._activeChanged();\n }\n\n resetActive() {\n this.activeIdx = this.focusFirst ? 0 : -1;\n this._activeChanged();\n }\n\n select(item) { this.selectEvent.emit(item); }\n\n ngOnInit() { this.resetActive(); }\n\n private _activeChanged() {\n this.activeChangeEvent.emit(this.activeIdx >= 0 ? this.id + '-' + this.activeIdx : undefined);\n }\n}\n","import {Injectable, Inject, InjectionToken, OnDestroy} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\n\n\n// usefulness (and default value) of delay documented in Material's CDK\n// https://github.com/angular/material2/blob/6405da9b8e8532a7e5c854c920ee1815c275d734/src/cdk/a11y/live-announcer/live-announcer.ts#L50\nexport type ARIA_LIVE_DELAY_TYPE = number | null;\nexport const ARIA_LIVE_DELAY = new InjectionToken(\n 'live announcer delay', {providedIn: 'root', factory: ARIA_LIVE_DELAY_FACTORY});\nexport function ARIA_LIVE_DELAY_FACTORY(): number {\n return 100;\n}\n\n\nfunction getLiveElement(document: any, lazyCreate = false): HTMLElement | null {\n let element = document.body.querySelector('#ngb-live') as HTMLElement;\n\n if (element == null && lazyCreate) {\n element = document.createElement('div');\n\n element.setAttribute('id', 'ngb-live');\n element.setAttribute('aria-live', 'polite');\n element.setAttribute('aria-atomic', 'true');\n\n element.classList.add('sr-only');\n\n document.body.appendChild(element);\n }\n\n return element;\n}\n\n\n\n@Injectable({providedIn: 'root'})\nexport class Live implements OnDestroy {\n constructor(@Inject(DOCUMENT) private _document: any, @Inject(ARIA_LIVE_DELAY) private _delay: any) {}\n\n ngOnDestroy() {\n const element = getLiveElement(this._document);\n if (element) {\n element.parentElement.removeChild(element);\n }\n }\n\n say(message: string) {\n const element = getLiveElement(this._document, true);\n const delay = this._delay;\n\n element.textContent = '';\n const setText = () => element.textContent = message;\n if (delay === null) {\n setText();\n } else {\n setTimeout(setText, delay);\n }\n }\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the typeaheads used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTypeaheadConfig {\n container;\n editable = true;\n focusFirst = true;\n showHint = false;\n placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n}\n","import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Injector,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n Output,\n Renderer2,\n TemplateRef,\n ViewContainerRef,\n ApplicationRef\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {DOCUMENT} from '@angular/common';\nimport {BehaviorSubject, fromEvent, Observable, Subject, Subscription} from 'rxjs';\nimport {map, switchMap, tap} from 'rxjs/operators';\n\nimport {Live} from '../util/accessibility/live';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {Key} from '../util/key';\nimport {PopupService} from '../util/popup';\nimport {PlacementArray, positionElements} from '../util/positioning';\nimport {isDefined, toString} from '../util/util';\n\nimport {NgbTypeaheadConfig} from './typeahead-config';\nimport {NgbTypeaheadWindow, ResultTemplateContext} from './typeahead-window';\n\n\nconst NGB_TYPEAHEAD_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbTypeahead),\n multi: true\n};\n\n/**\n * An event emitted right before an item is selected from the result list.\n */\nexport interface NgbTypeaheadSelectItemEvent {\n /**\n * The item from the result list about to be selected.\n */\n item: any;\n\n /**\n * Calling this function will prevent item selection from happening.\n */\n preventDefault: () => void;\n}\n\nlet nextWindowId = 0;\n\n/**\n * A directive providing a simple way of creating powerful typeaheads from any text input.\n */\n@Directive({\n selector: 'input[ngbTypeahead]',\n exportAs: 'ngbTypeahead',\n host: {\n '(blur)': 'handleBlur()',\n '[class.open]': 'isPopupOpen()',\n '(keydown)': 'handleKeyDown($event)',\n '[autocomplete]': 'autocomplete',\n 'autocapitalize': 'off',\n 'autocorrect': 'off',\n 'role': 'combobox',\n 'aria-multiline': 'false',\n '[attr.aria-autocomplete]': 'showHint ? \"both\" : \"list\"',\n '[attr.aria-activedescendant]': 'activeDescendant',\n '[attr.aria-owns]': 'isPopupOpen() ? popupId : null',\n '[attr.aria-expanded]': 'isPopupOpen()'\n },\n providers: [NGB_TYPEAHEAD_VALUE_ACCESSOR]\n})\nexport class NgbTypeahead implements ControlValueAccessor,\n OnInit, OnDestroy {\n private _popupService: PopupService;\n private _subscription: Subscription;\n private _closed$ = new Subject();\n private _inputValueBackup: string;\n private _valueChanges: Observable;\n private _resubscribeTypeahead: BehaviorSubject;\n private _windowRef: ComponentRef;\n private _zoneSubscription: any;\n\n /**\n * The value for the `autocomplete` attribute for the `` element.\n *\n * Defaults to `\"off\"` to disable the native browser autocomplete, but you can override it if necessary.\n *\n * @since 2.1.0\n */\n @Input() autocomplete = 'off';\n\n /**\n * A selector specifying the element the typeahead popup will be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * If `true`, model values will not be restricted only to items selected from the popup.\n */\n @Input() editable: boolean;\n\n /**\n * If `true`, the first item in the result list will always stay focused while typing.\n */\n @Input() focusFirst: boolean;\n\n /**\n * The function that converts an item from the result list to a `string` to display in the `` field.\n *\n * It is called when the user selects something in the popup or the model value changes, so the input needs to\n * be updated.\n */\n @Input() inputFormatter: (item: any) => string;\n\n /**\n * The function that converts a stream of text values from the `` element to the stream of the array of items\n * to display in the typeahead popup.\n *\n * If the resulting observable emits a non-empty array - the popup will be shown. If it emits an empty array - the\n * popup will be closed.\n *\n * See the [basic example](#/components/typeahead/examples#basic) for more details.\n *\n * Note that the `this` argument is `undefined` so you need to explicitly bind it to a desired \"this\" target.\n */\n @Input() ngbTypeahead: (text: Observable) => Observable;\n\n /**\n * The function that converts an item from the result list to a `string` to display in the popup.\n *\n * Must be provided, if your `ngbTypeahead` returns something other than `Observable`.\n *\n * Alternatively for more complex markup in the popup you should use `resultTemplate`.\n */\n @Input() resultFormatter: (item: any) => string;\n\n /**\n * The template to override the way resulting items are displayed in the popup.\n *\n * See the [ResultTemplateContext](#/components/typeahead/api#ResultTemplateContext) for the template context.\n *\n * Also see the [template for results demo](#/components/typeahead/examples#template) for more details.\n */\n @Input() resultTemplate: TemplateRef;\n\n /**\n * If `true`, will show the hint in the `` when an item in the result list matches.\n */\n @Input() showHint: boolean;\n\n /**\n * The preferred placement of the typeahead.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray = 'bottom-left';\n\n /**\n * An event emitted right before an item is selected from the result list.\n *\n * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent).\n */\n @Output() selectItem = new EventEmitter();\n\n activeDescendant: string;\n popupId = `ngb-typeahead-${nextWindowId++}`;\n\n private _onTouched = () => {};\n private _onChange = (_: any) => {};\n\n constructor(\n private _elementRef: ElementRef, private _viewContainerRef: ViewContainerRef,\n private _renderer: Renderer2, private _injector: Injector, componentFactoryResolver: ComponentFactoryResolver,\n config: NgbTypeaheadConfig, ngZone: NgZone, private _live: Live, @Inject(DOCUMENT) private _document: any,\n private _ngZone: NgZone, private _changeDetector: ChangeDetectorRef, private _applicationRef: ApplicationRef) {\n this.container = config.container;\n this.editable = config.editable;\n this.focusFirst = config.focusFirst;\n this.showHint = config.showHint;\n this.placement = config.placement;\n\n this._valueChanges = fromEvent(_elementRef.nativeElement, 'input')\n .pipe(map($event => ($event.target as HTMLInputElement).value));\n\n this._resubscribeTypeahead = new BehaviorSubject(null);\n\n this._popupService = new PopupService(\n NgbTypeaheadWindow, _injector, _viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = ngZone.onStable.subscribe(() => {\n if (this.isPopupOpen()) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body');\n }\n });\n }\n\n ngOnInit(): void {\n const inputValues$ = this._valueChanges.pipe(tap(value => {\n this._inputValueBackup = this.showHint ? value : null;\n if (this.editable) {\n this._onChange(value);\n }\n }));\n const results$ = inputValues$.pipe(this.ngbTypeahead);\n const processedResults$ = results$.pipe(tap(() => {\n if (!this.editable) {\n this._onChange(undefined);\n }\n }));\n const userInput$ = this._resubscribeTypeahead.pipe(switchMap(() => processedResults$));\n this._subscription = this._subscribeToUserInput(userInput$);\n }\n\n ngOnDestroy(): void {\n this._closePopup();\n this._unsubscribeFromUserInput();\n this._zoneSubscription.unsubscribe();\n }\n\n registerOnChange(fn: (value: any) => any): void { this._onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this._onTouched = fn; }\n\n writeValue(value) {\n this._writeInputValue(this._formatItemForInput(value));\n if (this.showHint) {\n this._inputValueBackup = value;\n }\n }\n\n setDisabledState(isDisabled: boolean): void {\n this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\n }\n\n /**\n * Dismisses typeahead popup window\n */\n dismissPopup() {\n if (this.isPopupOpen()) {\n this._resubscribeTypeahead.next(null);\n this._closePopup();\n if (this.showHint && this._inputValueBackup !== null) {\n this._writeInputValue(this._inputValueBackup);\n }\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Returns true if the typeahead popup window is displayed\n */\n isPopupOpen() { return this._windowRef != null; }\n\n handleBlur() {\n this._resubscribeTypeahead.next(null);\n this._onTouched();\n }\n\n handleKeyDown(event: KeyboardEvent) {\n if (!this.isPopupOpen()) {\n return;\n }\n\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.ArrowDown:\n event.preventDefault();\n this._windowRef.instance.next();\n this._showHint();\n break;\n case Key.ArrowUp:\n event.preventDefault();\n this._windowRef.instance.prev();\n this._showHint();\n break;\n case Key.Enter:\n case Key.Tab:\n const result = this._windowRef.instance.getActive();\n if (isDefined(result)) {\n event.preventDefault();\n event.stopPropagation();\n this._selectResult(result);\n }\n this._closePopup();\n break;\n }\n }\n\n private _openPopup() {\n if (!this.isPopupOpen()) {\n this._inputValueBackup = this._elementRef.nativeElement.value;\n this._windowRef = this._popupService.open();\n this._windowRef.instance.id = this.popupId;\n this._windowRef.instance.selectEvent.subscribe((result: any) => this._selectResultClosePopup(result));\n this._windowRef.instance.activeChangeEvent.subscribe((activeId: string) => this.activeDescendant = activeId);\n\n if (this.container === 'body') {\n window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n this._changeDetector.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, 'outside', () => this.dismissPopup(), this._closed$,\n [this._elementRef.nativeElement, this._windowRef.location.nativeElement]);\n }\n }\n\n private _closePopup() {\n this._closed$.next();\n this._popupService.close();\n this._windowRef = null;\n this.activeDescendant = undefined;\n }\n\n private _selectResult(result: any) {\n let defaultPrevented = false;\n this.selectItem.emit({item: result, preventDefault: () => { defaultPrevented = true; }});\n this._resubscribeTypeahead.next(null);\n\n if (!defaultPrevented) {\n this.writeValue(result);\n this._onChange(result);\n }\n }\n\n private _selectResultClosePopup(result: any) {\n this._selectResult(result);\n this._closePopup();\n }\n\n private _showHint() {\n if (this.showHint && this._windowRef.instance.hasActive() && this._inputValueBackup != null) {\n const userInputLowerCase = this._inputValueBackup.toLowerCase();\n const formattedVal = this._formatItemForInput(this._windowRef.instance.getActive());\n\n if (userInputLowerCase === formattedVal.substr(0, this._inputValueBackup.length).toLowerCase()) {\n this._writeInputValue(this._inputValueBackup + formattedVal.substr(this._inputValueBackup.length));\n this._elementRef.nativeElement['setSelectionRange'].apply(\n this._elementRef.nativeElement, [this._inputValueBackup.length, formattedVal.length]);\n } else {\n this._writeInputValue(formattedVal);\n }\n }\n }\n\n private _formatItemForInput(item: any): string {\n return item != null && this.inputFormatter ? this.inputFormatter(item) : toString(item);\n }\n\n private _writeInputValue(value: string): void {\n this._renderer.setProperty(this._elementRef.nativeElement, 'value', toString(value));\n }\n\n private _subscribeToUserInput(userInput$: Observable): Subscription {\n return userInput$.subscribe((results) => {\n if (!results || results.length === 0) {\n this._closePopup();\n } else {\n this._openPopup();\n this._windowRef.instance.focusFirst = this.focusFirst;\n this._windowRef.instance.results = results;\n this._windowRef.instance.term = this._elementRef.nativeElement.value;\n if (this.resultFormatter) {\n this._windowRef.instance.formatter = this.resultFormatter;\n }\n if (this.resultTemplate) {\n this._windowRef.instance.resultTemplate = this.resultTemplate;\n }\n this._windowRef.instance.resetActive();\n\n // The observable stream we are subscribing to might have async steps\n // and if a component containing typeahead is using the OnPush strategy\n // the change detection turn wouldn't be invoked automatically.\n this._windowRef.changeDetectorRef.detectChanges();\n\n this._showHint();\n }\n\n // live announcer\n const count = results ? results.length : 0;\n this._live.say(count === 0 ? 'No results available' : `${count} result${count === 1 ? '' : 's'} available`);\n });\n }\n\n private _unsubscribeFromUserInput() {\n if (this._subscription) {\n this._subscription.unsubscribe();\n }\n this._subscription = null;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbHighlight} from './highlight';\nimport {NgbTypeaheadWindow} from './typeahead-window';\nimport {NgbTypeahead} from './typeahead';\n\nexport {NgbHighlight} from './highlight';\nexport {NgbTypeaheadWindow} from './typeahead-window';\nexport {NgbTypeaheadConfig} from './typeahead-config';\nexport {NgbTypeahead, NgbTypeaheadSelectItemEvent} from './typeahead';\n\n@NgModule({\n declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow],\n exports: [NgbTypeahead, NgbHighlight],\n imports: [CommonModule],\n entryComponents: [NgbTypeaheadWindow]\n})\nexport class NgbTypeaheadModule {\n}\n","import {NgModule} from '@angular/core';\n\nimport {SbCardModule} from './card/card.module';\nimport {NgbAccordionModule} from './accordion/accordion.module';\nimport {NgbAlertModule} from './alert/alert.module';\nimport {NgbButtonsModule} from './buttons/buttons.module';\nimport {NgbCarouselModule} from './carousel/carousel.module';\nimport {NgbCollapseModule} from './collapse/collapse.module';\nimport {NgbDatepickerModule} from './datepicker/datepicker.module';\nimport {NgbDropdownModule} from './dropdown/dropdown.module';\nimport {NgbModalModule} from './modal/modal.module';\nimport {NgbPaginationModule} from './pagination/pagination.module';\nimport {NgbPopoverModule} from './popover/popover.module';\nimport {NgbProgressbarModule} from './progressbar/progressbar.module';\nimport {NgbRatingModule} from './rating/rating.module';\nimport {NgbTabsetModule} from './tabset/tabset.module';\nimport {NgbTimepickerModule} from './timepicker/timepicker.module';\nimport {NgbToastModule} from './toast/toast.module';\nimport {NgbTooltipModule} from './tooltip/tooltip.module';\nimport {NgbTypeaheadModule} from './typeahead/typeahead.module';\n\n\n\nexport {\n NgbAccordion,\n NgbAccordionConfig,\n NgbAccordionModule,\n NgbPanel,\n NgbPanelChangeEvent,\n NgbPanelContent,\n NgbPanelHeader,\n NgbPanelHeaderContext,\n NgbPanelTitle,\n NgbPanelToggle\n} from './accordion/accordion.module';\nexport {SbCard, SbCardConfig, SbCardModule} from './card/card.module';\nexport {NgbAlert, NgbAlertConfig, NgbAlertModule} from './alert/alert.module';\nexport {NgbButtonLabel, NgbButtonsModule, NgbCheckBox, NgbRadio, NgbRadioGroup} from './buttons/buttons.module';\nexport {\n NgbCarousel,\n NgbCarouselConfig,\n NgbCarouselModule,\n NgbSlide,\n NgbSlideEvent,\n NgbSlideEventDirection,\n NgbSlideEventSource\n} from './carousel/carousel.module';\nexport {NgbCollapse, NgbCollapseModule} from './collapse/collapse.module';\nexport {\n NgbCalendar,\n NgbCalendarGregorian,\n NgbCalendarHebrew,\n NgbCalendarIslamicCivil,\n NgbCalendarIslamicUmalqura,\n NgbCalendarPersian,\n NgbDate,\n NgbDateAdapter,\n NgbDateNativeAdapter,\n NgbDateNativeUTCAdapter,\n NgbDateParserFormatter,\n NgbDatepicker,\n NgbDatepickerConfig,\n NgbDatepickerI18n,\n NgbDatepickerI18nHebrew,\n NgbDatepickerModule,\n NgbDatepickerNavigateEvent,\n NgbDateStruct,\n NgbInputDatepicker,\n NgbPeriod\n} from './datepicker/datepicker.module';\nexport {\n NgbDropdown,\n NgbDropdownAnchor,\n NgbDropdownConfig,\n NgbDropdownItem,\n NgbDropdownMenu,\n NgbDropdownModule,\n NgbDropdownToggle\n} from './dropdown/dropdown.module';\nexport {\n ModalDismissReasons,\n NgbActiveModal,\n NgbModal,\n NgbModalConfig,\n NgbModalModule,\n NgbModalOptions,\n NgbModalRef\n} from './modal/modal.module';\nexport {\n NgbPagination,\n NgbPaginationConfig,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationModule,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination/pagination.module';\nexport {NgbPopover, NgbPopoverConfig, NgbPopoverModule} from './popover/popover.module';\nexport {NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule} from './progressbar/progressbar.module';\nexport {NgbRating, NgbRatingConfig, NgbRatingModule} from './rating/rating.module';\nexport {\n NgbTab,\n NgbTabChangeEvent,\n NgbTabContent,\n NgbTabset,\n NgbTabsetConfig,\n NgbTabsetModule,\n NgbTabTitle\n} from './tabset/tabset.module';\nexport {\n NgbTimeAdapter,\n NgbTimepickerI18n,\n NgbTimepicker,\n NgbTimepickerConfig,\n NgbTimepickerModule,\n NgbTimeStruct\n} from './timepicker/timepicker.module';\nexport {NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule} from './toast/toast.module';\nexport {NgbTooltip, NgbTooltipConfig, NgbTooltipModule} from './tooltip/tooltip.module';\nexport {\n NgbHighlight,\n NgbTypeahead,\n NgbTypeaheadConfig,\n NgbTypeaheadModule,\n NgbTypeaheadSelectItemEvent\n} from './typeahead/typeahead.module';\nexport {Placement} from './util/positioning';\n\n\nconst NGB_MODULES = [\n SbCardModule, NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule,\n NgbDropdownModule, NgbModalModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule,\n NgbTabsetModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule\n];\n\n@NgModule({imports: NGB_MODULES, exports: NGB_MODULES})\nexport class NgbModule {\n}\n"]} \ No newline at end of file diff --git a/dist/ng-bootstrap/buttons/buttons.module.d.ts b/dist/ng-bootstrap/buttons/buttons.module.d.ts deleted file mode 100644 index 6de93d4..0000000 --- a/dist/ng-bootstrap/buttons/buttons.module.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { NgbButtonLabel } from './label'; -export { NgbCheckBox } from './checkbox'; -export { NgbRadio, NgbRadioGroup } from './radio'; -export declare class NgbButtonsModule { -} diff --git a/dist/ng-bootstrap/buttons/checkbox.d.ts b/dist/ng-bootstrap/buttons/checkbox.d.ts deleted file mode 100644 index d789f96..0000000 --- a/dist/ng-bootstrap/buttons/checkbox.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { ChangeDetectorRef } from '@angular/core'; -import { ControlValueAccessor } from '@angular/forms'; -import { NgbButtonLabel } from './label'; -/** - * Allows to easily create Bootstrap-style checkbox buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ -export declare class NgbCheckBox implements ControlValueAccessor { - private _label; - private _cd; - checked: any; - /** - * If `true`, the checkbox button will be disabled - */ - disabled: boolean; - /** - * The form control value when the checkbox is checked. - */ - valueChecked: boolean; - /** - * The form control value when the checkbox is unchecked. - */ - valueUnChecked: boolean; - onChange: (_: any) => void; - onTouched: () => void; - focused: boolean; - constructor(_label: NgbButtonLabel, _cd: ChangeDetectorRef); - onInputChange($event: any): void; - registerOnChange(fn: (value: any) => any): void; - registerOnTouched(fn: () => any): void; - setDisabledState(isDisabled: boolean): void; - writeValue(value: any): void; -} diff --git a/dist/ng-bootstrap/buttons/label.d.ts b/dist/ng-bootstrap/buttons/label.d.ts deleted file mode 100644 index 3491486..0000000 --- a/dist/ng-bootstrap/buttons/label.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare class NgbButtonLabel { - active: boolean; - disabled: boolean; - focused: boolean; -} diff --git a/dist/ng-bootstrap/buttons/radio.d.ts b/dist/ng-bootstrap/buttons/radio.d.ts deleted file mode 100644 index cb6b467..0000000 --- a/dist/ng-bootstrap/buttons/radio.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { ChangeDetectorRef, ElementRef, OnDestroy, Renderer2 } from '@angular/core'; -import { ControlValueAccessor } from '@angular/forms'; -import { NgbButtonLabel } from './label'; -/** - * Allows to easily create Bootstrap-style radio buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ -export declare class NgbRadioGroup implements ControlValueAccessor { - private _radios; - private _value; - private _disabled; - disabled: boolean; - /** - * Name of the radio group applied to radio input elements. - * - * Will be applied to all radio input elements inside the group, - * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves. - * - * If not provided, will be generated in the `ngb-radio-xx` format. - */ - name: string; - onChange: (_: any) => void; - onTouched: () => void; - onRadioChange(radio: NgbRadio): void; - onRadioValueUpdate(): void; - register(radio: NgbRadio): void; - registerOnChange(fn: (value: any) => any): void; - registerOnTouched(fn: () => any): void; - setDisabledState(isDisabled: boolean): void; - unregister(radio: NgbRadio): void; - writeValue(value: any): void; - private _updateRadiosValue; - private _updateRadiosDisabled; -} -/** - * A directive that marks an input of type "radio" as a part of the - * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup). - */ -export declare class NgbRadio implements OnDestroy { - private _group; - private _label; - private _renderer; - private _element; - private _cd; - private _checked; - private _disabled; - private _value; - /** - * The value for the 'name' property of the input element. - * - * All inputs of the radio group should have the same name. If not specified, - * the name of the enclosing group is used. - */ - name: string; - /** - * The form control value when current radio button is checked. - */ - value: any; - /** - * If `true`, current radio button will be disabled. - */ - disabled: boolean; - focused: boolean; - readonly checked: boolean; - readonly nameAttr: string; - constructor(_group: NgbRadioGroup, _label: NgbButtonLabel, _renderer: Renderer2, _element: ElementRef, _cd: ChangeDetectorRef); - ngOnDestroy(): void; - onChange(): void; - updateValue(value: any): void; - updateDisabled(): void; -} diff --git a/dist/ng-bootstrap/card/card-config.d.ts b/dist/ng-bootstrap/card/card-config.d.ts deleted file mode 100644 index 63559c9..0000000 --- a/dist/ng-bootstrap/card/card-config.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * A configuration service for the [SbCard](#/components/alert/api#SbCard) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ -export declare class SbCardConfig { - dismissible: boolean; - type: string; -} diff --git a/dist/ng-bootstrap/card/card.d.ts b/dist/ng-bootstrap/card/card.d.ts deleted file mode 100644 index 7f30cf9..0000000 --- a/dist/ng-bootstrap/card/card.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { EventEmitter, Renderer2, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core'; -import { SbCardConfig } from './card-config'; -/** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ -export declare class SbCard implements OnInit, OnChanges { - private _renderer; - private _element; - /** - * If `true`, alert can be dismissed by the user. - * - * The close button (×) will be displayed and you can be notified - * of the event with the `(close)` output. - */ - dismissible: boolean; - /** - * Type of the alert. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - */ - type: string; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - close: EventEmitter; - constructor(config: SbCardConfig, _renderer: Renderer2, _element: ElementRef); - closeHandler(): void; - ngOnChanges(changes: SimpleChanges): void; - ngOnInit(): void; -} diff --git a/dist/ng-bootstrap/card/card.module.d.ts b/dist/ng-bootstrap/card/card.module.d.ts deleted file mode 100644 index c83bc55..0000000 --- a/dist/ng-bootstrap/card/card.module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { SbCard } from './card'; -export { SbCardConfig } from './card-config'; -export declare class SbCardModule { -} diff --git a/dist/ng-bootstrap/carousel/carousel-config.d.ts b/dist/ng-bootstrap/carousel/carousel-config.d.ts deleted file mode 100644 index 04e81c4..0000000 --- a/dist/ng-bootstrap/carousel/carousel-config.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all carousels used in the application. - */ -export declare class NgbCarouselConfig { - interval: number; - wrap: boolean; - keyboard: boolean; - pauseOnHover: boolean; - showNavigationArrows: boolean; - showNavigationIndicators: boolean; -} diff --git a/dist/ng-bootstrap/carousel/carousel.d.ts b/dist/ng-bootstrap/carousel/carousel.d.ts deleted file mode 100644 index 6dddbf2..0000000 --- a/dist/ng-bootstrap/carousel/carousel.d.ts +++ /dev/null @@ -1,154 +0,0 @@ -import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, EventEmitter, NgZone, OnDestroy, QueryList, TemplateRef } from '@angular/core'; -import { NgbCarouselConfig } from './carousel-config'; -/** - * A directive that wraps the individual carousel slide. - */ -export declare class NgbSlide { - tplRef: TemplateRef; - /** - * Slide id that must be unique for the entire document. - * - * If not provided, will be generated in the `ngb-slide-xx` format. - */ - id: string; - constructor(tplRef: TemplateRef); -} -/** - * Carousel is a component to easily create and control slideshows. - * - * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API. - */ -export declare class NgbCarousel implements AfterContentChecked, AfterContentInit, OnDestroy { - private _platformId; - private _ngZone; - private _cd; - slides: QueryList; - NgbSlideEventSource: typeof NgbSlideEventSource; - private _destroy$; - private _interval$; - private _mouseHover$; - private _pauseOnHover$; - private _pause$; - private _wrap$; - /** - * The slide id that should be displayed **initially**. - * - * For subsequent interactions use methods `select()`, `next()`, etc. and the `(slide)` output. - */ - activeId: string; - /** - * Time in milliseconds before the next slide is shown. - */ - interval: number; - /** - * If `true`, will 'wrap' the carousel by switching from the last slide back to the first. - */ - wrap: boolean; - /** - * If `true`, allows to interact with carousel using keyboard 'arrow left' and 'arrow right'. - */ - keyboard: boolean; - /** - * If `true`, will pause slide switching when mouse cursor hovers the slide. - * - * @since 2.2.0 - */ - pauseOnHover: boolean; - /** - * If `true`, 'previous' and 'next' navigation arrows will be visible on the slide. - * - * @since 2.2.0 - */ - showNavigationArrows: boolean; - /** - * If `true`, navigation indicators at the bottom of the slide will be visible. - * - * @since 2.2.0 - */ - showNavigationIndicators: boolean; - /** - * An event emitted right after the slide transition is completed. - * - * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details. - */ - slide: EventEmitter; - constructor(config: NgbCarouselConfig, _platformId: any, _ngZone: NgZone, _cd: ChangeDetectorRef); - mouseEnter(): void; - mouseLeave(): void; - ngAfterContentInit(): void; - ngAfterContentChecked(): void; - ngOnDestroy(): void; - /** - * Navigates to a slide with the specified identifier. - */ - select(slideId: string, source?: NgbSlideEventSource): void; - /** - * Navigates to the previous slide. - */ - prev(source?: NgbSlideEventSource): void; - /** - * Navigates to the next slide. - */ - next(source?: NgbSlideEventSource): void; - /** - * Pauses cycling through the slides. - */ - pause(): void; - /** - * Restarts cycling through the slides from left to right. - */ - cycle(): void; - private _cycleToSelected; - private _getSlideEventDirection; - private _getSlideById; - private _getSlideIdxById; - private _getNextSlide; - private _getPrevSlide; -} -/** - * A slide change event emitted right after the slide transition is completed. - */ -export interface NgbSlideEvent { - /** - * The previous slide id. - */ - prev: string; - /** - * The current slide id. - */ - current: string; - /** - * The slide event direction. - * - * Possible values are `'left' | 'right'`. - */ - direction: NgbSlideEventDirection; - /** - * Whether the pause() method was called (and no cycle() call was done afterwards). - * - * @since 5.1.0 - */ - paused: boolean; - /** - * Source triggering the slide change event. - * - * Possible values are `'timer' | 'arrowLeft' | 'arrowRight' | 'indicator'` - * - * @since 5.1.0 - */ - source?: NgbSlideEventSource; -} -/** - * Defines the carousel slide transition direction. - */ -export declare enum NgbSlideEventDirection { - LEFT, - RIGHT -} -export declare enum NgbSlideEventSource { - TIMER = "timer", - ARROW_LEFT = "arrowLeft", - ARROW_RIGHT = "arrowRight", - INDICATOR = "indicator" -} -export declare const NGB_CAROUSEL_DIRECTIVES: (typeof NgbSlide | typeof NgbCarousel)[]; diff --git a/dist/ng-bootstrap/carousel/carousel.module.d.ts b/dist/ng-bootstrap/carousel/carousel.module.d.ts deleted file mode 100644 index 595a80c..0000000 --- a/dist/ng-bootstrap/carousel/carousel.module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { NgbCarousel, NgbSlide, NgbSlideEvent, NgbSlideEventDirection, NgbSlideEventSource } from './carousel'; -export { NgbCarouselConfig } from './carousel-config'; -export declare class NgbCarouselModule { -} diff --git a/dist/ng-bootstrap/collapse/collapse.d.ts b/dist/ng-bootstrap/collapse/collapse.d.ts deleted file mode 100644 index 3dff910..0000000 --- a/dist/ng-bootstrap/collapse/collapse.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * A directive to provide a simple way of hiding and showing elements on the page. - */ -export declare class NgbCollapse { - /** - * If `true`, will collapse the element or show it otherwise. - */ - collapsed: boolean; -} diff --git a/dist/ng-bootstrap/collapse/collapse.module.d.ts b/dist/ng-bootstrap/collapse/collapse.module.d.ts deleted file mode 100644 index d40fbd5..0000000 --- a/dist/ng-bootstrap/collapse/collapse.module.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { NgbCollapse } from './collapse'; -export declare class NgbCollapseModule { -} diff --git a/dist/ng-bootstrap/datepicker/adapters/ngb-date-adapter.d.ts b/dist/ng-bootstrap/datepicker/adapters/ngb-date-adapter.d.ts deleted file mode 100644 index 57439a8..0000000 --- a/dist/ng-bootstrap/datepicker/adapters/ngb-date-adapter.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { NgbDateStruct } from '../ngb-date-struct'; -export declare function NGB_DATEPICKER_DATE_ADAPTER_FACTORY(): NgbDateStructAdapter; -/** - * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and - * any provided user date model `D`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding datepicker to a form control, - * ex. `[(ngModel)]="userDateModel"`. Here `userDateModel` can be of any type. - * - * The default datepicker implementation assumes we use `NgbDateStruct` as a user model. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details - * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example. - */ -export declare abstract class NgbDateAdapter { - /** - * Converts a user-model date of type `D` to an `NgbDateStruct` for internal use. - */ - abstract fromModel(value: D): NgbDateStruct; - /** - * Converts an internal `NgbDateStruct` date to a user-model date of type `D`. - */ - abstract toModel(date: NgbDateStruct): D; -} -export declare class NgbDateStructAdapter extends NgbDateAdapter { - /** - * Converts a NgbDateStruct value into NgbDateStruct value - */ - fromModel(date: NgbDateStruct): NgbDateStruct; - /** - * Converts a NgbDateStruct value into NgbDateStruct value - */ - toModel(date: NgbDateStruct): NgbDateStruct; -} diff --git a/dist/ng-bootstrap/datepicker/adapters/ngb-date-native-adapter.d.ts b/dist/ng-bootstrap/datepicker/adapters/ngb-date-native-adapter.d.ts deleted file mode 100644 index 0ba1b80..0000000 --- a/dist/ng-bootstrap/datepicker/adapters/ngb-date-native-adapter.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { NgbDateAdapter } from './ngb-date-adapter'; -import { NgbDateStruct } from '../ngb-date-struct'; -/** - * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses - * native javascript dates as a user date model. - */ -export declare class NgbDateNativeAdapter extends NgbDateAdapter { - /** - * Converts a native `Date` to a `NgbDateStruct`. - */ - fromModel(date: Date): NgbDateStruct; - /** - * Converts a `NgbDateStruct` to a native `Date`. - */ - toModel(date: NgbDateStruct): Date; - protected _fromNativeDate(date: Date): NgbDateStruct; - protected _toNativeDate(date: NgbDateStruct): Date; -} diff --git a/dist/ng-bootstrap/datepicker/adapters/ngb-date-native-utc-adapter.d.ts b/dist/ng-bootstrap/datepicker/adapters/ngb-date-native-utc-adapter.d.ts deleted file mode 100644 index 9c5b365..0000000 --- a/dist/ng-bootstrap/datepicker/adapters/ngb-date-native-utc-adapter.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgbDateStruct } from '../ngb-date-struct'; -import { NgbDateNativeAdapter } from './ngb-date-native-adapter'; -/** - * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates. - * - * @since 3.2.0 - */ -export declare class NgbDateNativeUTCAdapter extends NgbDateNativeAdapter { - protected _fromNativeDate(date: Date): NgbDateStruct; - protected _toNativeDate(date: NgbDateStruct): Date; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-config.d.ts b/dist/ng-bootstrap/datepicker/datepicker-config.d.ts deleted file mode 100644 index 55f7f55..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-config.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { TemplateRef } from '@angular/core'; -import { DayTemplateContext } from './datepicker-day-template-context'; -import { NgbDateStruct } from './ngb-date-struct'; -/** - * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the datepickers used in the application. - */ -export declare class NgbDatepickerConfig { - dayTemplate: TemplateRef; - dayTemplateData: (date: NgbDateStruct, current: { - year: number; - month: number; - }) => any; - footerTemplate: TemplateRef; - displayMonths: number; - firstDayOfWeek: number; - markDisabled: (date: NgbDateStruct, current: { - year: number; - month: number; - }) => boolean; - minDate: NgbDateStruct; - maxDate: NgbDateStruct; - navigation: 'select' | 'arrows' | 'none'; - outsideDays: 'visible' | 'collapsed' | 'hidden'; - showWeekdays: boolean; - showWeekNumbers: boolean; - startDate: { - year: number; - month: number; - }; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-day-template-context.d.ts b/dist/ng-bootstrap/datepicker/datepicker-day-template-context.d.ts deleted file mode 100644 index 28aaa98..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-day-template-context.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { NgbDate } from './ngb-date'; -/** - * The context for the datepicker 'day' template. - * - * You can override the way dates are displayed in the datepicker via the `[dayTemplate]` input. - */ -export interface DayTemplateContext { - /** - * The date that corresponds to the template. Same as the `date` parameter. - * - * Can be used for convenience as a default template key, ex. `let-d`. - * - * @since 3.3.0 - */ - $implicit: NgbDate; - /** - * The month currently displayed by the datepicker. - */ - currentMonth: number; - /** - * Any data you pass using the `[dayTemplateData]` input in the datepicker. - * - * @since 3.3.0 - */ - data?: any; - /** - * The date that corresponds to the template. - */ - date: NgbDate; - /** - * `True` if the current date is disabled. - */ - disabled: boolean; - /** - * `True` if the current date is focused. - */ - focused: boolean; - /** - * `True` if the current date is selected. - */ - selected: boolean; - /** - * `True` if the current date is today (equal to `NgbCalendar.getToday()`). - * - * @since 4.1.0 - */ - today: boolean; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-day-view.d.ts b/dist/ng-bootstrap/datepicker/datepicker-day-view.d.ts deleted file mode 100644 index a112eb4..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-day-view.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { NgbDate } from './ngb-date'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -export declare class NgbDatepickerDayView { - i18n: NgbDatepickerI18n; - currentMonth: number; - date: NgbDate; - disabled: boolean; - focused: boolean; - selected: boolean; - constructor(i18n: NgbDatepickerI18n); - isMuted(): boolean; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-i18n.d.ts b/dist/ng-bootstrap/datepicker/datepicker-i18n.d.ts deleted file mode 100644 index d84653f..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-i18n.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { NgbDateStruct } from './ngb-date-struct'; -export declare function NGB_DATEPICKER_18N_FACTORY(locale: any): NgbDatepickerI18nDefault; -/** - * A service supplying i18n data to the datepicker component. - * - * The default implementation of this service uses the Angular locale and registered locale data for - * weekdays and month names (as explained in the Angular i18n guide). - * - * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year - * numerals. For other static labels the datepicker uses the default Angular i18n. - * - * See the [i18n demo](#/components/datepicker/examples#i18n) and - * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define - * a custom provider for i18n. - */ -export declare abstract class NgbDatepickerI18n { - /** - * Returns the short weekday name to display in the heading of the month view. - * - * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun. - */ - abstract getWeekdayShortName(weekday: number): string; - /** - * Returns the short month name to display in the date picker navigation. - * - * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - */ - abstract getMonthShortName(month: number, year?: number): string; - /** - * Returns the full month name to display in the date picker navigation. - * - * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - */ - abstract getMonthFullName(month: number, year?: number): string; - /** - * Returns the value of the `aria-label` attribute for a specific date. - * - * @since 2.0.0 - */ - abstract getDayAriaLabel(date: NgbDateStruct): string; - /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * @since 3.0.0 - */ - getDayNumerals(date: NgbDateStruct): string; - /** - * Returns the textual representation of a week number rendered by datepicker. - * - * @since 3.0.0 - */ - getWeekNumerals(weekNumber: number): string; - /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * @since 3.0.0 - */ - getYearNumerals(year: number): string; -} -export declare class NgbDatepickerI18nDefault extends NgbDatepickerI18n { - private _locale; - private _weekdaysShort; - private _monthsShort; - private _monthsFull; - constructor(_locale: string); - getWeekdayShortName(weekday: number): string; - getMonthShortName(month: number): string; - getMonthFullName(month: number): string; - getDayAriaLabel(date: NgbDateStruct): string; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-input.d.ts b/dist/ng-bootstrap/datepicker/datepicker-input.d.ts deleted file mode 100644 index 4406949..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-input.d.ts +++ /dev/null @@ -1,242 +0,0 @@ -import { ChangeDetectorRef, ComponentFactoryResolver, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; -import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms'; -import { PlacementArray } from '../util/positioning'; -import { NgbDateAdapter } from './adapters/ngb-date-adapter'; -import { NgbDatepickerNavigateEvent } from './datepicker'; -import { DayTemplateContext } from './datepicker-day-template-context'; -import { NgbDatepickerService } from './datepicker-service'; -import { NgbCalendar } from './ngb-calendar'; -import { NgbDate } from './ngb-date'; -import { NgbDateParserFormatter } from './ngb-date-parser-formatter'; -import { NgbDateStruct } from './ngb-date-struct'; -/** - * A directive that allows to stick a datepicker popup to an input field. - * - * Manages interaction with the input field itself, does value formatting and provides forms integration. - */ -export declare class NgbInputDatepicker implements OnChanges, OnDestroy, ControlValueAccessor, Validator { - private _parserFormatter; - private _elRef; - private _vcRef; - private _renderer; - private _cfr; - private _ngZone; - private _service; - private _calendar; - private _dateAdapter; - private _document; - private _changeDetector; - private _cRef; - private _disabled; - private _model; - private _inputValue; - private _zoneSubscription; - /** - * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not. - * - * * `true` - the popup will close on both date selection and outside click. - * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the popup will close on date selection, but not outside clicks. - * * `"outside"` - the popup will close only on the outside click and not on date selection/inside clicks. - * - * @since 3.0.0 - */ - autoClose: boolean | 'inside' | 'outside'; - /** - * The reference to a custom template for the day. - * - * Allows to completely override the way a day 'cell' in the calendar is displayed. - * - * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside. - */ - dayTemplate: TemplateRef; - /** - * The callback to pass any arbitrary data to the template cell via the - * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter. - * - * `current` is the month that is currently displayed by the datepicker. - * - * @since 3.3.0 - */ - dayTemplateData: (date: NgbDate, current: { - year: number; - month: number; - }) => any; - /** - * The number of months to display. - */ - displayMonths: number; - /** - * The first day of the week. - * - * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun. - */ - firstDayOfWeek: number; - /** - * The reference to the custom template for the datepicker footer. - * - * @since 3.3.0 - */ - footerTemplate: TemplateRef; - /** - * The callback to mark some dates as disabled. - * - * It is called for each new date when navigating to a different month. - * - * `current` is the month that is currently displayed by the datepicker. - */ - markDisabled: (date: NgbDate, current: { - year: number; - month: number; - }) => boolean; - /** - * The earliest date that can be displayed or selected. Also used for form validation. - * - * If not provided, 'year' select box will display 10 years before the current month. - */ - minDate: NgbDateStruct; - /** - * The latest date that can be displayed or selected. Also used for form validation. - * - * If not provided, 'year' select box will display 10 years after the current month. - */ - maxDate: NgbDateStruct; - /** - * Navigation type. - * - * * `"select"` - select boxes for month and navigation arrows - * * `"arrows"` - only navigation arrows - * * `"none"` - no navigation visible at all - */ - navigation: 'select' | 'arrows' | 'none'; - /** - * The way of displaying days that don't belong to the current month. - * - * * `"visible"` - days are visible - * * `"hidden"` - days are hidden, white space preserved - * * `"collapsed"` - days are collapsed, so the datepicker height might change between months - * - * For the 2+ months view, days in between months are never shown. - */ - outsideDays: 'visible' | 'collapsed' | 'hidden'; - /** - * The preferred placement of the datepicker popup. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - placement: PlacementArray; - /** - * If `true`, weekdays will be displayed. - */ - showWeekdays: boolean; - /** - * If `true`, week numbers will be displayed. - */ - showWeekNumbers: boolean; - /** - * The date to open calendar with. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date is provided, calendar will open with current month. - * - * You could use `navigateTo(date)` method as an alternative. - */ - startDate: { - year: number; - month: number; - day?: number; - }; - /** - * A selector specifying the element the datepicker popup should be appended to. - * - * Currently only supports `"body"`. - */ - container: string; - /** - * A css selector or html element specifying the element the datepicker popup should be positioned against. - * - * By default the input is used as a target. - * - * @since 4.2.0 - */ - positionTarget: string | HTMLElement; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - * - * @since 1.1.1 - */ - dateSelect: EventEmitter; - /** - * Event emitted right after the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - navigate: EventEmitter; - /** - * An event fired after closing datepicker window. - * - * @since 4.2.0 - */ - closed: EventEmitter; - disabled: any; - private _onChange; - private _onTouched; - private _validatorChange; - constructor(_parserFormatter: NgbDateParserFormatter, _elRef: ElementRef, _vcRef: ViewContainerRef, _renderer: Renderer2, _cfr: ComponentFactoryResolver, _ngZone: NgZone, _service: NgbDatepickerService, _calendar: NgbCalendar, _dateAdapter: NgbDateAdapter, _document: any, _changeDetector: ChangeDetectorRef); - registerOnChange(fn: (value: any) => any): void; - registerOnTouched(fn: () => any): void; - registerOnValidatorChange(fn: () => void): void; - setDisabledState(isDisabled: boolean): void; - validate(c: AbstractControl): { - [key: string]: any; - }; - writeValue(value: any): void; - manualDateChange(value: string, updateView?: boolean): void; - isOpen(): boolean; - /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - */ - open(): void; - /** - * Closes the datepicker popup. - */ - close(): void; - /** - * Toggles the datepicker popup. - */ - toggle(): void; - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - */ - navigateTo(date?: { - year: number; - month: number; - day?: number; - }): void; - onBlur(): void; - ngOnChanges(changes: SimpleChanges): void; - ngOnDestroy(): void; - private _applyDatepickerInputs; - private _applyPopupStyling; - private _subscribeForDatepickerOutputs; - private _writeModelValue; - private _fromDateStruct; - private _updatePopupPosition; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-keymap-service.d.ts b/dist/ng-bootstrap/datepicker/datepicker-keymap-service.d.ts deleted file mode 100644 index dd52c60..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-keymap-service.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { NgbDatepickerService } from './datepicker-service'; -import { NgbCalendar } from './ngb-calendar'; -export declare class NgbDatepickerKeyMapService { - private _service; - private _calendar; - private _minDate; - private _maxDate; - private _firstViewDate; - private _lastViewDate; - constructor(_service: NgbDatepickerService, _calendar: NgbCalendar); - processKey(event: KeyboardEvent): void; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-month-view.d.ts b/dist/ng-bootstrap/datepicker/datepicker-month-view.d.ts deleted file mode 100644 index 65c5fea..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-month-view.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { TemplateRef, EventEmitter } from '@angular/core'; -import { MonthViewModel, DayViewModel } from './datepicker-view-model'; -import { NgbDate } from './ngb-date'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -import { DayTemplateContext } from './datepicker-day-template-context'; -export declare class NgbDatepickerMonthView { - i18n: NgbDatepickerI18n; - dayTemplate: TemplateRef; - month: MonthViewModel; - showWeekdays: any; - showWeekNumbers: any; - select: EventEmitter; - constructor(i18n: NgbDatepickerI18n); - doSelect(day: DayViewModel): void; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-navigation-select.d.ts b/dist/ng-bootstrap/datepicker/datepicker-navigation-select.d.ts deleted file mode 100644 index 62499e3..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-navigation-select.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { EventEmitter } from '@angular/core'; -import { NgbDate } from './ngb-date'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -export declare class NgbDatepickerNavigationSelect { - i18n: NgbDatepickerI18n; - date: NgbDate; - disabled: boolean; - months: number[]; - years: number[]; - select: EventEmitter; - constructor(i18n: NgbDatepickerI18n); - changeMonth(month: string): void; - changeYear(year: string): void; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-navigation.d.ts b/dist/ng-bootstrap/datepicker/datepicker-navigation.d.ts deleted file mode 100644 index 85e6760..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-navigation.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { EventEmitter } from '@angular/core'; -import { NavigationEvent, MonthViewModel } from './datepicker-view-model'; -import { NgbDate } from './ngb-date'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -export declare class NgbDatepickerNavigation { - i18n: NgbDatepickerI18n; - navigation: typeof NavigationEvent; - date: NgbDate; - disabled: boolean; - months: MonthViewModel[]; - showSelect: boolean; - prevDisabled: boolean; - nextDisabled: boolean; - selectBoxes: { - years: number[]; - months: number[]; - }; - navigate: EventEmitter; - select: EventEmitter; - constructor(i18n: NgbDatepickerI18n); -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-service.d.ts b/dist/ng-bootstrap/datepicker/datepicker-service.d.ts deleted file mode 100644 index 74921de..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-service.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { NgbCalendar, NgbPeriod } from './ngb-calendar'; -import { NgbDate } from './ngb-date'; -import { NgbDateStruct } from './ngb-date-struct'; -import { DatepickerViewModel, NgbDayTemplateData, NgbMarkDisabled } from './datepicker-view-model'; -import { Observable } from 'rxjs'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -export declare class NgbDatepickerService { - private _calendar; - private _i18n; - private _model$; - private _select$; - private _state; - readonly model$: Observable; - readonly select$: Observable; - dayTemplateData: NgbDayTemplateData; - disabled: boolean; - displayMonths: number; - firstDayOfWeek: number; - focusVisible: boolean; - maxDate: NgbDate; - markDisabled: NgbMarkDisabled; - minDate: NgbDate; - navigation: 'select' | 'arrows' | 'none'; - outsideDays: 'visible' | 'collapsed' | 'hidden'; - constructor(_calendar: NgbCalendar, _i18n: NgbDatepickerI18n); - focus(date: NgbDate): void; - focusMove(period?: NgbPeriod, number?: number): void; - focusSelect(): void; - open(date: NgbDate): void; - select(date: NgbDate, options?: { - emitEvent?: boolean; - }): void; - toValidDate(date: NgbDateStruct, defaultValue?: NgbDate): NgbDate; - private _nextState; - private _patchContexts; - private _updateState; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker-tools.d.ts b/dist/ng-bootstrap/datepicker/datepicker-tools.d.ts deleted file mode 100644 index bd62182..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-tools.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { NgbDate } from './ngb-date'; -import { DatepickerViewModel, MonthViewModel } from './datepicker-view-model'; -import { NgbCalendar } from './ngb-calendar'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -export declare function isChangedDate(prev: NgbDate, next: NgbDate): boolean; -export declare function isChangedMonth(prev: NgbDate, next: NgbDate): boolean; -export declare function dateComparator(prev: NgbDate, next: NgbDate): boolean; -export declare function checkMinBeforeMax(minDate: NgbDate, maxDate: NgbDate): void; -export declare function checkDateInRange(date: NgbDate, minDate: NgbDate, maxDate: NgbDate): NgbDate; -export declare function isDateSelectable(date: NgbDate, state: DatepickerViewModel): boolean; -export declare function generateSelectBoxMonths(calendar: NgbCalendar, date: NgbDate, minDate: NgbDate, maxDate: NgbDate): number[]; -export declare function generateSelectBoxYears(date: NgbDate, minDate: NgbDate, maxDate: NgbDate): number[]; -export declare function nextMonthDisabled(calendar: NgbCalendar, date: NgbDate, maxDate: NgbDate): boolean; -export declare function prevMonthDisabled(calendar: NgbCalendar, date: NgbDate, minDate: NgbDate): boolean; -export declare function buildMonths(calendar: NgbCalendar, date: NgbDate, state: DatepickerViewModel, i18n: NgbDatepickerI18n, force: boolean): MonthViewModel[]; -export declare function buildMonth(calendar: NgbCalendar, date: NgbDate, state: DatepickerViewModel, i18n: NgbDatepickerI18n, month?: MonthViewModel): MonthViewModel; -export declare function getFirstViewDate(calendar: NgbCalendar, date: NgbDate, firstDayOfWeek: number): NgbDate; diff --git a/dist/ng-bootstrap/datepicker/datepicker-view-model.d.ts b/dist/ng-bootstrap/datepicker/datepicker-view-model.d.ts deleted file mode 100644 index 4dc5833..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker-view-model.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { NgbDate } from './ngb-date'; -import { NgbDateStruct } from './ngb-date-struct'; -import { DayTemplateContext } from './datepicker-day-template-context'; -export declare type NgbMarkDisabled = (date: NgbDateStruct, current: { - year: number; - month: number; -}) => boolean; -export declare type NgbDayTemplateData = (date: NgbDateStruct, current: { - year: number; - month: number; -}) => any; -export declare type DayViewModel = { - date: NgbDate; - context: DayTemplateContext; - tabindex: number; - ariaLabel: string; - hidden: boolean; -}; -export declare type WeekViewModel = { - number: number; - days: DayViewModel[]; - collapsed: boolean; -}; -export declare type MonthViewModel = { - firstDate: NgbDate; - lastDate: NgbDate; - number: number; - year: number; - weeks: WeekViewModel[]; - weekdays: number[]; -}; -export declare type DatepickerViewModel = { - dayTemplateData?: NgbDayTemplateData; - disabled: boolean; - displayMonths: number; - firstDate?: NgbDate; - firstDayOfWeek: number; - focusDate?: NgbDate; - focusVisible: boolean; - lastDate?: NgbDate; - markDisabled?: NgbMarkDisabled; - maxDate?: NgbDate; - minDate?: NgbDate; - months: MonthViewModel[]; - navigation: 'select' | 'arrows' | 'none'; - outsideDays: 'visible' | 'collapsed' | 'hidden'; - prevDisabled: boolean; - nextDisabled: boolean; - selectBoxes: { - years: number[]; - months: number[]; - }; - selectedDate: NgbDate; -}; -export declare enum NavigationEvent { - PREV = 0, - NEXT = 1 -} diff --git a/dist/ng-bootstrap/datepicker/datepicker.d.ts b/dist/ng-bootstrap/datepicker/datepicker.d.ts deleted file mode 100644 index 32b70f8..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker.d.ts +++ /dev/null @@ -1,195 +0,0 @@ -import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core'; -import { ControlValueAccessor } from '@angular/forms'; -import { NgbCalendar } from './ngb-calendar'; -import { NgbDate } from './ngb-date'; -import { NgbDatepickerService } from './datepicker-service'; -import { NgbDatepickerKeyMapService } from './datepicker-keymap-service'; -import { DatepickerViewModel, NavigationEvent } from './datepicker-view-model'; -import { DayTemplateContext } from './datepicker-day-template-context'; -import { NgbDatepickerConfig } from './datepicker-config'; -import { NgbDateAdapter } from './adapters/ngb-date-adapter'; -import { NgbDateStruct } from './ngb-date-struct'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -/** - * An event emitted right before the navigation happens and the month displayed by the datepicker changes. - */ -export interface NgbDatepickerNavigateEvent { - /** - * The currently displayed month. - */ - current: { - year: number; - month: number; - }; - /** - * The month we're navigating to. - */ - next: { - year: number; - month: number; - }; - /** - * Calling this function will prevent navigation from happening. - * - * @since 4.1.0 - */ - preventDefault: () => void; -} -/** - * A highly configurable component that helps you with selecting calendar dates. - * - * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup. - */ -export declare class NgbDatepicker implements OnDestroy, OnChanges, OnInit, AfterViewInit, ControlValueAccessor { - private _keyMapService; - _service: NgbDatepickerService; - private _calendar; - i18n: NgbDatepickerI18n; - private _cd; - private _elementRef; - private _ngbDateAdapter; - private _ngZone; - model: DatepickerViewModel; - private _monthsEl; - private _controlValue; - private _destroyed$; - /** - * The reference to a custom template for the day. - * - * Allows to completely override the way a day 'cell' in the calendar is displayed. - * - * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside. - */ - dayTemplate: TemplateRef; - /** - * The callback to pass any arbitrary data to the template cell via the - * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter. - * - * `current` is the month that is currently displayed by the datepicker. - * - * @since 3.3.0 - */ - dayTemplateData: (date: NgbDate, current: { - year: number; - month: number; - }) => any; - /** - * The number of months to display. - */ - displayMonths: number; - /** - * The first day of the week. - * - * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun. - */ - firstDayOfWeek: number; - /** - * The reference to the custom template for the datepicker footer. - * - * @since 3.3.0 - */ - footerTemplate: TemplateRef; - /** - * The callback to mark some dates as disabled. - * - * It is called for each new date when navigating to a different month. - * - * `current` is the month that is currently displayed by the datepicker. - */ - markDisabled: (date: NgbDate, current: { - year: number; - month: number; - }) => boolean; - /** - * The latest date that can be displayed or selected. - * - * If not provided, 'year' select box will display 10 years after the current month. - */ - maxDate: NgbDateStruct; - /** - * The earliest date that can be displayed or selected. - * - * If not provided, 'year' select box will display 10 years before the current month. - */ - minDate: NgbDateStruct; - /** - * Navigation type. - * - * * `"select"` - select boxes for month and navigation arrows - * * `"arrows"` - only navigation arrows - * * `"none"` - no navigation visible at all - */ - navigation: 'select' | 'arrows' | 'none'; - /** - * The way of displaying days that don't belong to the current month. - * - * * `"visible"` - days are visible - * * `"hidden"` - days are hidden, white space preserved - * * `"collapsed"` - days are collapsed, so the datepicker height might change between months - * - * For the 2+ months view, days in between months are never shown. - */ - outsideDays: 'visible' | 'collapsed' | 'hidden'; - /** - * If `true`, weekdays will be displayed. - */ - showWeekdays: boolean; - /** - * If `true`, week numbers will be displayed. - */ - showWeekNumbers: boolean; - /** - * The date to open calendar with. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date is provided, calendar will open with current month. - * - * You could use `navigateTo(date)` method as an alternative. - */ - startDate: { - year: number; - month: number; - day?: number; - }; - /** - * An event emitted right before the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - navigate: EventEmitter; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - */ - select: EventEmitter; - onChange: (_: any) => void; - onTouched: () => void; - constructor(_keyMapService: NgbDatepickerKeyMapService, _service: NgbDatepickerService, _calendar: NgbCalendar, i18n: NgbDatepickerI18n, config: NgbDatepickerConfig, _cd: ChangeDetectorRef, _elementRef: ElementRef, _ngbDateAdapter: NgbDateAdapter, _ngZone: NgZone); - focus(): void; - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - */ - navigateTo(date?: { - year: number; - month: number; - day?: number; - }): void; - ngAfterViewInit(): void; - ngOnDestroy(): void; - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; - onDateSelect(date: NgbDate): void; - onKeyDown(event: KeyboardEvent): void; - onNavigateDateSelect(date: NgbDate): void; - onNavigateEvent(event: NavigationEvent): void; - registerOnChange(fn: (value: any) => any): void; - registerOnTouched(fn: () => any): void; - setDisabledState(isDisabled: boolean): void; - writeValue(value: any): void; -} diff --git a/dist/ng-bootstrap/datepicker/datepicker.module.d.ts b/dist/ng-bootstrap/datepicker/datepicker.module.d.ts deleted file mode 100644 index 15f0582..0000000 --- a/dist/ng-bootstrap/datepicker/datepicker.module.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export { NgbDatepicker, NgbDatepickerNavigateEvent } from './datepicker'; -export { NgbInputDatepicker } from './datepicker-input'; -export { NgbCalendar, NgbPeriod, NgbCalendarGregorian } from './ngb-calendar'; -export { NgbCalendarIslamicCivil } from './hijri/ngb-calendar-islamic-civil'; -export { NgbCalendarIslamicUmalqura } from './hijri/ngb-calendar-islamic-umalqura'; -export { NgbCalendarPersian } from './jalali/ngb-calendar-persian'; -export { NgbCalendarHebrew } from './hebrew/ngb-calendar-hebrew'; -export { NgbDatepickerI18nHebrew } from './hebrew/datepicker-i18n-hebrew'; -export { NgbDatepickerMonthView } from './datepicker-month-view'; -export { NgbDatepickerDayView } from './datepicker-day-view'; -export { NgbDatepickerNavigation } from './datepicker-navigation'; -export { NgbDatepickerNavigationSelect } from './datepicker-navigation-select'; -export { NgbDatepickerConfig } from './datepicker-config'; -export { NgbDatepickerI18n } from './datepicker-i18n'; -export { NgbDateStruct } from './ngb-date-struct'; -export { NgbDate } from './ngb-date'; -export { NgbDateAdapter } from './adapters/ngb-date-adapter'; -export { NgbDateNativeAdapter } from './adapters/ngb-date-native-adapter'; -export { NgbDateNativeUTCAdapter } from './adapters/ngb-date-native-utc-adapter'; -export { NgbDateParserFormatter } from './ngb-date-parser-formatter'; -export declare class NgbDatepickerModule { -} diff --git a/dist/ng-bootstrap/datepicker/hebrew/datepicker-i18n-hebrew.d.ts b/dist/ng-bootstrap/datepicker/hebrew/datepicker-i18n-hebrew.d.ts deleted file mode 100644 index 94d9e66..0000000 --- a/dist/ng-bootstrap/datepicker/hebrew/datepicker-i18n-hebrew.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { NgbDatepickerI18n } from '../datepicker-i18n'; -import { NgbDateStruct } from '../../index'; -/** - * @since 3.2.0 - */ -export declare class NgbDatepickerI18nHebrew extends NgbDatepickerI18n { - getMonthShortName(month: number, year?: number): string; - getMonthFullName(month: number, year?: number): string; - getWeekdayShortName(weekday: number): string; - getDayAriaLabel(date: NgbDateStruct): string; - getDayNumerals(date: NgbDateStruct): string; - getWeekNumerals(weekNumber: number): string; - getYearNumerals(year: number): string; -} diff --git a/dist/ng-bootstrap/datepicker/hebrew/hebrew.d.ts b/dist/ng-bootstrap/datepicker/hebrew/hebrew.d.ts deleted file mode 100644 index 6d15a24..0000000 --- a/dist/ng-bootstrap/datepicker/hebrew/hebrew.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { NgbDate } from '../ngb-date'; -import { NgbDateStruct } from '../ngb-date-struct'; -export declare function isHebrewLeapYear(year: number): boolean; -/** - * Returns the number of days in a specific Hebrew month. - * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months. - * `year` is any Hebrew year. - */ -export declare function getDaysInHebrewMonth(month: number, year: number): number; -export declare function getDayNumberInHebrewYear(date: NgbDate): number; -export declare function setHebrewMonth(date: NgbDate, val: number): NgbDate; -export declare function setHebrewDay(date: NgbDate, val: number): NgbDate; -/** - * Returns the equivalent Hebrew date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to Hebrew date. - */ -export declare function fromGregorian(gdate: Date): NgbDate; -/** - * Returns the equivalent JS date value for a given Hebrew date. - * `hebrewDate` is an Hebrew date to be converted to Gregorian. - */ -export declare function toGregorian(hebrewDate: NgbDateStruct | NgbDate): Date; -export declare function hebrewNumerals(numerals: number): string; diff --git a/dist/ng-bootstrap/datepicker/hebrew/ngb-calendar-hebrew.d.ts b/dist/ng-bootstrap/datepicker/hebrew/ngb-calendar-hebrew.d.ts deleted file mode 100644 index dfaff38..0000000 --- a/dist/ng-bootstrap/datepicker/hebrew/ngb-calendar-hebrew.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { NgbDate } from '../ngb-date'; -import { NgbCalendar, NgbPeriod } from '../ngb-calendar'; -/** - * @since 3.2.0 - */ -export declare class NgbCalendarHebrew extends NgbCalendar { - getDaysPerWeek(): number; - getMonths(year?: number): number[]; - getWeeksPerMonth(): number; - isValid(date: NgbDate): boolean; - getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate; - getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate; - getWeekday(date: NgbDate): number; - getWeekNumber(week: NgbDate[], firstDayOfWeek: number): number; - getToday(): NgbDate; - /** - * @since 3.4.0 - */ - toGregorian(date: NgbDate): NgbDate; - /** - * @since 3.4.0 - */ - fromGregorian(date: NgbDate): NgbDate; -} diff --git a/dist/ng-bootstrap/datepicker/hijri/ngb-calendar-hijri.d.ts b/dist/ng-bootstrap/datepicker/hijri/ngb-calendar-hijri.d.ts deleted file mode 100644 index ca424ce..0000000 --- a/dist/ng-bootstrap/datepicker/hijri/ngb-calendar-hijri.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { NgbDate } from '../ngb-date'; -import { NgbPeriod, NgbCalendar } from '../ngb-calendar'; -export declare abstract class NgbCalendarHijri extends NgbCalendar { - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - */ - abstract getDaysPerMonth(month: number, year: number): number; - /** - * Returns the equivalent Hijri date value for a give input Gregorian date. - * `gDate` is s JS Date to be converted to Hijri. - */ - abstract fromGregorian(gDate: Date): NgbDate; - /** - * Converts the current Hijri date to Gregorian. - */ - abstract toGregorian(hDate: NgbDate): Date; - getDaysPerWeek(): number; - getMonths(): number[]; - getWeeksPerMonth(): number; - getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate; - getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate; - getWeekday(date: NgbDate): number; - getWeekNumber(week: NgbDate[], firstDayOfWeek: number): number; - getToday(): NgbDate; - isValid(date: NgbDate): boolean; - private _setDay; - private _setMonth; - private _setYear; -} diff --git a/dist/ng-bootstrap/datepicker/hijri/ngb-calendar-islamic-civil.d.ts b/dist/ng-bootstrap/datepicker/hijri/ngb-calendar-islamic-civil.d.ts deleted file mode 100644 index fd54da8..0000000 --- a/dist/ng-bootstrap/datepicker/hijri/ngb-calendar-islamic-civil.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgbCalendarHijri } from './ngb-calendar-hijri'; -import { NgbDate } from '../ngb-date'; -export declare class NgbCalendarIslamicCivil extends NgbCalendarHijri { - /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - */ - fromGregorian(gDate: Date): NgbDate; - /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - */ - toGregorian(hDate: NgbDate): Date; - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - */ - getDaysPerMonth(month: number, year: number): number; -} diff --git a/dist/ng-bootstrap/datepicker/hijri/ngb-calendar-islamic-umalqura.d.ts b/dist/ng-bootstrap/datepicker/hijri/ngb-calendar-islamic-umalqura.d.ts deleted file mode 100644 index 77d29bf..0000000 --- a/dist/ng-bootstrap/datepicker/hijri/ngb-calendar-islamic-umalqura.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { NgbCalendarIslamicCivil } from './ngb-calendar-islamic-civil'; -import { NgbDate } from '../ngb-date'; -export declare class NgbCalendarIslamicUmalqura extends NgbCalendarIslamicCivil { - /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - */ - fromGregorian(gDate: Date): NgbDate; - /** - * Converts the current Hijri date to Gregorian. - */ - toGregorian(hDate: NgbDate): Date; - /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - */ - getDaysPerMonth(hMonth: number, hYear: number): number; -} diff --git a/dist/ng-bootstrap/datepicker/jalali/jalali.d.ts b/dist/ng-bootstrap/datepicker/jalali/jalali.d.ts deleted file mode 100644 index 65e9146..0000000 --- a/dist/ng-bootstrap/datepicker/jalali/jalali.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { NgbDate } from '../ngb-date'; -/** - * Returns the equivalent JS date value for a give input Jalali date. - * `jalaliDate` is an Jalali date to be converted to Gregorian. - */ -export declare function toGregorian(jalaliDate: NgbDate): Date; -/** - * Returns the equivalent jalali date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to jalali. - * utc to local - */ -export declare function fromGregorian(gdate: Date): NgbDate; -export declare function setJalaliYear(date: NgbDate, yearValue: number): NgbDate; -export declare function setJalaliMonth(date: NgbDate, month: number): NgbDate; -export declare function setJalaliDay(date: NgbDate, day: number): NgbDate; diff --git a/dist/ng-bootstrap/datepicker/jalali/ngb-calendar-persian.d.ts b/dist/ng-bootstrap/datepicker/jalali/ngb-calendar-persian.d.ts deleted file mode 100644 index 8f2af12..0000000 --- a/dist/ng-bootstrap/datepicker/jalali/ngb-calendar-persian.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { NgbDate } from '../ngb-date'; -import { NgbCalendar, NgbPeriod } from '../ngb-calendar'; -export declare class NgbCalendarPersian extends NgbCalendar { - getDaysPerWeek(): number; - getMonths(): number[]; - getWeeksPerMonth(): number; - getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate; - getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate; - getWeekday(date: NgbDate): number; - getWeekNumber(week: NgbDate[], firstDayOfWeek: number): number; - getToday(): NgbDate; - isValid(date: NgbDate): boolean; -} diff --git a/dist/ng-bootstrap/datepicker/ngb-calendar.d.ts b/dist/ng-bootstrap/datepicker/ngb-calendar.d.ts deleted file mode 100644 index c61b330..0000000 --- a/dist/ng-bootstrap/datepicker/ngb-calendar.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { NgbDate } from './ngb-date'; -export declare function fromJSDate(jsDate: Date): NgbDate; -export declare function toJSDate(date: NgbDate): Date; -export declare type NgbPeriod = 'y' | 'm' | 'd'; -export declare function NGB_DATEPICKER_CALENDAR_FACTORY(): NgbCalendarGregorian; -/** - * A service that represents the calendar used by the datepicker. - * - * The default implementation uses the Gregorian calendar. You can inject it in your own - * implementations if necessary to simplify `NgbDate` calculations. - */ -export declare abstract class NgbCalendar { - /** - * Returns the number of days per week. - */ - abstract getDaysPerWeek(): number; - /** - * Returns an array of months per year. - * - * With default calendar we use ISO 8601 and return [1, 2, ..., 12]; - */ - abstract getMonths(year?: number): number[]; - /** - * Returns the number of weeks per month. - */ - abstract getWeeksPerMonth(): number; - /** - * Returns the weekday number for a given day. - * - * With the default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun - */ - abstract getWeekday(date: NgbDate): number; - /** - * Adds a number of years, months or days to a given date. - * - * * `period` can be `y`, `m` or `d` and defaults to day. - * * `number` defaults to 1. - * - * Always returns a new date. - */ - abstract getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate; - /** - * Subtracts a number of years, months or days from a given date. - * - * * `period` can be `y`, `m` or `d` and defaults to day. - * * `number` defaults to 1. - * - * Always returns a new date. - */ - abstract getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate; - /** - * Returns the week number for a given week. - */ - abstract getWeekNumber(week: NgbDate[], firstDayOfWeek: number): number; - /** - * Returns the today's date. - */ - abstract getToday(): NgbDate; - /** - * Checks if a date is valid in the current calendar. - */ - abstract isValid(date: NgbDate): boolean; -} -export declare class NgbCalendarGregorian extends NgbCalendar { - getDaysPerWeek(): number; - getMonths(): number[]; - getWeeksPerMonth(): number; - getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate; - getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate; - getWeekday(date: NgbDate): number; - getWeekNumber(week: NgbDate[], firstDayOfWeek: number): number; - getToday(): NgbDate; - isValid(date: NgbDate): boolean; -} diff --git a/dist/ng-bootstrap/datepicker/ngb-date-parser-formatter.d.ts b/dist/ng-bootstrap/datepicker/ngb-date-parser-formatter.d.ts deleted file mode 100644 index 7a89325..0000000 --- a/dist/ng-bootstrap/datepicker/ngb-date-parser-formatter.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { NgbDateStruct } from './ngb-date-struct'; -export declare function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY(): NgbDateISOParserFormatter; -/** - * An abstract service for parsing and formatting dates for the - * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive. - * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the - * input element. - * - * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object. - * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string` - * in the input. - * - * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI - * to use an alternative string format or a custom parsing logic. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - */ -export declare abstract class NgbDateParserFormatter { - /** - * Parses the given `string` to an `NgbDateStruct`. - * - * Implementations should try their best to provide a result, even - * partial. They must return `null` if the value can't be parsed. - */ - abstract parse(value: string): NgbDateStruct; - /** - * Formats the given `NgbDateStruct` to a `string`. - * - * Implementations should return an empty string if the given date is `null`, - * and try their best to provide a partial result if the given date is incomplete or invalid. - */ - abstract format(date: NgbDateStruct): string; -} -export declare class NgbDateISOParserFormatter extends NgbDateParserFormatter { - parse(value: string): NgbDateStruct; - format(date: NgbDateStruct): string; -} diff --git a/dist/ng-bootstrap/datepicker/ngb-date-struct.d.ts b/dist/ng-bootstrap/datepicker/ngb-date-struct.d.ts deleted file mode 100644 index 2daed55..0000000 --- a/dist/ng-bootstrap/datepicker/ngb-date-struct.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * An interface of the date model used by the datepicker. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - */ -export interface NgbDateStruct { - /** - * The year, for example 2016 - */ - year: number; - /** - * The month, for example 1=Jan ... 12=Dec - */ - month: number; - /** - * The day of month, starting at 1 - */ - day: number; -} diff --git a/dist/ng-bootstrap/datepicker/ngb-date.d.ts b/dist/ng-bootstrap/datepicker/ngb-date.d.ts deleted file mode 100644 index 6fe9c4d..0000000 --- a/dist/ng-bootstrap/datepicker/ngb-date.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { NgbDateStruct } from './ngb-date-struct'; -/** - * A simple class that represents a date that datepicker also uses internally. - * - * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods, - * like `.equals()`, `.before()`, etc. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * In many cases it is simpler to manipulate these objects together with - * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * - * @since 3.0.0 - */ -export declare class NgbDate implements NgbDateStruct { - /** - * The year, for example 2016 - */ - year: number; - /** - * The month, for example 1=Jan ... 12=Dec as in ISO 8601 - */ - month: number; - /** - * The day of month, starting with 1 - */ - day: number; - /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - */ - static from(date: NgbDateStruct): NgbDate; - constructor(year: number, month: number, day: number); - /** - * Checks if the current date is equal to another date. - */ - equals(other: NgbDateStruct): boolean; - /** - * Checks if the current date is before another date. - */ - before(other: NgbDateStruct): boolean; - /** - * Checks if the current date is after another date. - */ - after(other: NgbDateStruct): boolean; -} diff --git a/dist/ng-bootstrap/dropdown/dropdown-config.d.ts b/dist/ng-bootstrap/dropdown/dropdown-config.d.ts deleted file mode 100644 index 58ed7c7..0000000 --- a/dist/ng-bootstrap/dropdown/dropdown-config.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { PlacementArray } from '../util/positioning'; -/** - * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the dropdowns used in the application. - */ -export declare class NgbDropdownConfig { - autoClose: boolean | 'outside' | 'inside'; - placement: PlacementArray; - container: null | 'body'; -} diff --git a/dist/ng-bootstrap/dropdown/dropdown.d.ts b/dist/ng-bootstrap/dropdown/dropdown.d.ts deleted file mode 100644 index d1ff4e8..0000000 --- a/dist/ng-bootstrap/dropdown/dropdown.d.ts +++ /dev/null @@ -1,148 +0,0 @@ -import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, AfterContentInit, OnDestroy, QueryList, Renderer2, SimpleChanges } from '@angular/core'; -import { Placement, PlacementArray } from '../util/positioning'; -import { NgbDropdownConfig } from './dropdown-config'; -export declare class NgbNavbar { -} -/** - * A directive you should put put on a dropdown item to enable keyboard navigation. - * Arrow keys will move focus between items marked with this directive. - * - * @since 4.1.0 - */ -export declare class NgbDropdownItem { - elementRef: ElementRef; - private _disabled; - disabled: boolean; - constructor(elementRef: ElementRef); -} -/** - * A directive that wraps dropdown menu content and dropdown items. - */ -export declare class NgbDropdownMenu { - dropdown: any; - placement: Placement; - isOpen: boolean; - menuItems: QueryList; - constructor(dropdown: any); -} -/** - * A directive to mark an element to which dropdown menu will be anchored. - * - * This is a simple version of the `NgbDropdownToggle` directive. - * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support - * for events other than click. - * - * @since 1.1.0 - */ -export declare class NgbDropdownAnchor { - dropdown: any; - private _elementRef; - anchorEl: any; - constructor(dropdown: any, _elementRef: ElementRef); - getNativeElement(): HTMLElement; -} -/** - * A directive to mark an element that will toggle dropdown via the `click` event. - * - * You can also use `NgbDropdownAnchor` as an alternative. - */ -export declare class NgbDropdownToggle extends NgbDropdownAnchor { - constructor(dropdown: any, elementRef: ElementRef); -} -/** - * A directive that provides contextual overlays for displaying lists of links and more. - */ -export declare class NgbDropdown implements AfterContentInit, OnDestroy { - private _changeDetector; - private _document; - private _ngZone; - private _elementRef; - private _renderer; - private _closed$; - private _zoneSubscription; - private _bodyContainer; - private _menu; - private _menuElement; - private _anchor; - /** - * Indicates whether the dropdown should be closed when clicking one of dropdown items or pressing ESC. - * - * * `true` - the dropdown will close on both outside and inside (menu) clicks. - * * `false` - the dropdown can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the dropdown will close on inside menu clicks, but not outside clicks. - * * `"outside"` - the dropdown will close only on the outside clicks and not on menu clicks. - */ - autoClose: boolean | 'outside' | 'inside'; - /** - * Defines whether or not the dropdown menu is opened initially. - */ - _open: boolean; - /** - * The preferred placement of the dropdown. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - placement: PlacementArray; - /** - * A selector specifying the element the dropdown should be appended to. - * Currently only supports "body". - * - * @since 4.1.0 - */ - container: null | 'body'; - /** - * Enable or disable the dynamic positioning. The default value is dynamic unless the dropdown is used - * inside a Bootstrap navbar. If you need custom placement for a dropdown in a navbar, set it to - * dynamic explicitly. See the [positioning of dropdown](#/positioning#dropdown) - * and the [navbar demo](/#/components/dropdown/examples#navbar) for more details. - * - * @since 4.2.0 - */ - display: 'dynamic' | 'static'; - /** - * An event fired when the dropdown is opened or closed. - * - * The event payload is a `boolean`: - * * `true` - the dropdown was opened - * * `false` - the dropdown was closed - */ - openChange: EventEmitter; - constructor(_changeDetector: ChangeDetectorRef, config: NgbDropdownConfig, _document: any, _ngZone: NgZone, _elementRef: ElementRef, _renderer: Renderer2, ngbNavbar: NgbNavbar); - ngAfterContentInit(): void; - ngOnChanges(changes: SimpleChanges): void; - /** - * Checks if the dropdown menu is open. - */ - isOpen(): boolean; - /** - * Opens the dropdown menu. - */ - open(): void; - private _setCloseHandlers; - /** - * Closes the dropdown menu. - */ - close(): void; - /** - * Toggles the dropdown menu. - */ - toggle(): void; - ngOnDestroy(): void; - onKeyDown(event: KeyboardEvent): void; - private _isDropup; - private _isEventFromToggle; - private _getMenuElements; - private _positionMenu; - private _getFirstPlacement; - private _resetContainer; - private _applyContainer; - private _applyPlacementClasses; -} diff --git a/dist/ng-bootstrap/dropdown/dropdown.module.d.ts b/dist/ng-bootstrap/dropdown/dropdown.module.d.ts deleted file mode 100644 index 2d45c2e..0000000 --- a/dist/ng-bootstrap/dropdown/dropdown.module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem } from './dropdown'; -export { NgbDropdownConfig } from './dropdown-config'; -export declare class NgbDropdownModule { -} diff --git a/dist/ng-bootstrap/esm2015/accordion/accordion-config.js b/dist/ng-bootstrap/esm2015/accordion/accordion-config.js deleted file mode 100644 index ff671ce..0000000 --- a/dist/ng-bootstrap/esm2015/accordion/accordion-config.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all accordions used in the application. - */ -export class NgbAccordionConfig { - constructor() { - this.closeOthers = false; - } -} -NgbAccordionConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbAccordionConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbAccordionConfig_Factory() { return new NgbAccordionConfig(); }, token: NgbAccordionConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbAccordionConfig.prototype.closeOthers; - /** @type {?} */ - NgbAccordionConfig.prototype.type; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImFjY29yZGlvbi9hY2NvcmRpb24tY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QyxNQUFNLE9BQU8sa0JBQWtCO0lBRC9CO1FBRUUsZ0JBQVcsR0FBRyxLQUFLLENBQUM7S0FFckI7OztZQUpBLFVBQVUsU0FBQyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUM7Ozs7O0lBRTlCLHlDQUFvQjs7SUFDcEIsa0NBQWEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0luamVjdGFibGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIEEgY29uZmlndXJhdGlvbiBzZXJ2aWNlIGZvciB0aGUgW05nYkFjY29yZGlvbl0oIy9jb21wb25lbnRzL2FjY29yZGlvbi9hcGkjTmdiQWNjb3JkaW9uKSBjb21wb25lbnQuXG4gKlxuICogWW91IGNhbiBpbmplY3QgdGhpcyBzZXJ2aWNlLCB0eXBpY2FsbHkgaW4geW91ciByb290IGNvbXBvbmVudCwgYW5kIGN1c3RvbWl6ZSBpdHMgcHJvcGVydGllc1xuICogdG8gcHJvdmlkZSBkZWZhdWx0IHZhbHVlcyBmb3IgYWxsIGFjY29yZGlvbnMgdXNlZCBpbiB0aGUgYXBwbGljYXRpb24uXG4gKi9cbkBJbmplY3RhYmxlKHtwcm92aWRlZEluOiAncm9vdCd9KVxuZXhwb3J0IGNsYXNzIE5nYkFjY29yZGlvbkNvbmZpZyB7XG4gIGNsb3NlT3RoZXJzID0gZmFsc2U7XG4gIHR5cGU6IHN0cmluZztcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/accordion/accordion.js b/dist/ng-bootstrap/esm2015/accordion/accordion.js deleted file mode 100644 index 6a01ecb..0000000 --- a/dist/ng-bootstrap/esm2015/accordion/accordion.js +++ /dev/null @@ -1,522 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, ContentChildren, Directive, EventEmitter, Host, Input, Optional, Output, QueryList, TemplateRef } from '@angular/core'; -import { isString } from '../util/util'; -import { NgbAccordionConfig } from './accordion-config'; -/** @type {?} */ -let nextId = 0; -/** - * The context for the [NgbPanelHeader](#/components/accordion/api#NgbPanelHeader) template - * - * \@since 4.1.0 - * @record - */ -export function NgbPanelHeaderContext() { } -if (false) { - /** - * `True` if current panel is opened - * @type {?} - */ - NgbPanelHeaderContext.prototype.opened; -} -/** - * A directive that wraps an accordion panel header with any HTML markup and a toggling button - * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle). - * See the [header customization demo](#/components/accordion/examples#header) for more details. - * - * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title. - * - * \@since 4.1.0 - */ -export class NgbPanelHeader { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPanelHeader.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelHeader]' },] } -]; -/** @nocollapse */ -NgbPanelHeader.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbPanelHeader.prototype.templateRef; -} -/** - * A directive that wraps only the panel title with HTML markup inside. - * - * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header. - */ -export class NgbPanelTitle { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPanelTitle.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelTitle]' },] } -]; -/** @nocollapse */ -NgbPanelTitle.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbPanelTitle.prototype.templateRef; -} -/** - * A directive that wraps the accordion panel content. - */ -export class NgbPanelContent { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPanelContent.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelContent]' },] } -]; -/** @nocollapse */ -NgbPanelContent.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbPanelContent.prototype.templateRef; -} -/** - * A directive that wraps an individual accordion panel with title and collapsible content. - */ -export class NgbPanel { - constructor() { - /** - * If `true`, the panel is disabled an can't be toggled. - */ - this.disabled = false; - /** - * An optional id for the panel that must be unique on the page. - * - * If not provided, it will be auto-generated in the `ngb-panel-xxx` format. - */ - this.id = `ngb-panel-${nextId++}`; - this.isOpen = false; - } - /** - * @return {?} - */ - ngAfterContentChecked() { - // We are using @ContentChildren instead of @ContentChild as in the Angular version being used - // only @ContentChildren allows us to specify the {descendants: false} option. - // Without {descendants: false} we are hitting bugs described in: - // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240 - this.titleTpl = this.titleTpls.first; - this.headerTpl = this.headerTpls.first; - this.contentTpl = this.contentTpls.first; - } -} -NgbPanel.decorators = [ - { type: Directive, args: [{ selector: 'ngb-panel' },] } -]; -NgbPanel.propDecorators = { - disabled: [{ type: Input }], - id: [{ type: Input }], - title: [{ type: Input }], - type: [{ type: Input }], - titleTpls: [{ type: ContentChildren, args: [NgbPanelTitle, { descendants: false },] }], - headerTpls: [{ type: ContentChildren, args: [NgbPanelHeader, { descendants: false },] }], - contentTpls: [{ type: ContentChildren, args: [NgbPanelContent, { descendants: false },] }] -}; -if (false) { - /** - * If `true`, the panel is disabled an can't be toggled. - * @type {?} - */ - NgbPanel.prototype.disabled; - /** - * An optional id for the panel that must be unique on the page. - * - * If not provided, it will be auto-generated in the `ngb-panel-xxx` format. - * @type {?} - */ - NgbPanel.prototype.id; - /** @type {?} */ - NgbPanel.prototype.isOpen; - /** - * The panel title. - * - * You can alternatively use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to set panel title. - * @type {?} - */ - NgbPanel.prototype.title; - /** - * Type of the current panel. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - * @type {?} - */ - NgbPanel.prototype.type; - /** @type {?} */ - NgbPanel.prototype.titleTpl; - /** @type {?} */ - NgbPanel.prototype.headerTpl; - /** @type {?} */ - NgbPanel.prototype.contentTpl; - /** @type {?} */ - NgbPanel.prototype.titleTpls; - /** @type {?} */ - NgbPanel.prototype.headerTpls; - /** @type {?} */ - NgbPanel.prototype.contentTpls; -} -/** - * An event emitted right before toggling an accordion panel. - * @record - */ -export function NgbPanelChangeEvent() { } -if (false) { - /** - * The id of the accordion panel that is being toggled. - * @type {?} - */ - NgbPanelChangeEvent.prototype.panelId; - /** - * The next state of the panel. - * - * `true` if it will be opened, `false` if closed. - * @type {?} - */ - NgbPanelChangeEvent.prototype.nextState; - /** - * Calling this function will prevent panel toggling. - * @type {?} - */ - NgbPanelChangeEvent.prototype.preventDefault; -} -/** - * Accordion is a collection of collapsible panels (bootstrap cards). - * - * It can ensure only one panel is opened at a time and allows to customize panel - * headers. - */ -export class NgbAccordion { - /** - * @param {?} config - */ - constructor(config) { - /** - * An array or comma separated strings of panel ids that should be opened **initially**. - * - * For subsequent changes use methods like `expand()`, `collapse()`, etc. and - * the `(panelChange)` event. - */ - this.activeIds = []; - /** - * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed. - */ - this.destroyOnHide = true; - /** - * Event emitted right before the panel toggle happens. - * - * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details. - */ - this.panelChange = new EventEmitter(); - this.type = config.type; - this.closeOtherPanels = config.closeOthers; - } - /** - * Checks if a panel with a given id is expanded. - * @param {?} panelId - * @return {?} - */ - isExpanded(panelId) { return this.activeIds.indexOf(panelId) > -1; } - /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - * @param {?} panelId - * @return {?} - */ - expand(panelId) { this._changeOpenState(this._findPanelById(panelId), true); } - /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - * @return {?} - */ - expandAll() { - if (this.closeOtherPanels) { - if (this.activeIds.length === 0 && this.panels.length) { - this._changeOpenState(this.panels.first, true); - } - } - else { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - panel => this._changeOpenState(panel, true))); - } - } - /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - * @param {?} panelId - * @return {?} - */ - collapse(panelId) { this._changeOpenState(this._findPanelById(panelId), false); } - /** - * Collapses all opened panels. - * @return {?} - */ - collapseAll() { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - (panel) => { this._changeOpenState(panel, false); })); - } - /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - * @param {?} panelId - * @return {?} - */ - toggle(panelId) { - /** @type {?} */ - const panel = this._findPanelById(panelId); - if (panel) { - this._changeOpenState(panel, !panel.isOpen); - } - } - /** - * @return {?} - */ - ngAfterContentChecked() { - // active id updates - if (isString(this.activeIds)) { - this.activeIds = this.activeIds.split(/\s*,\s*/); - } - // update panels open states - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - panel => panel.isOpen = !panel.disabled && this.activeIds.indexOf(panel.id) > -1)); - // closeOthers updates - if (this.activeIds.length > 1 && this.closeOtherPanels) { - this._closeOthers(this.activeIds[0]); - this._updateActiveIds(); - } - } - /** - * @private - * @param {?} panel - * @param {?} nextState - * @return {?} - */ - _changeOpenState(panel, nextState) { - if (panel && !panel.disabled && panel.isOpen !== nextState) { - /** @type {?} */ - let defaultPrevented = false; - this.panelChange.emit({ panelId: panel.id, nextState: nextState, preventDefault: (/** - * @return {?} - */ - () => { defaultPrevented = true; }) }); - if (!defaultPrevented) { - panel.isOpen = nextState; - if (nextState && this.closeOtherPanels) { - this._closeOthers(panel.id); - } - this._updateActiveIds(); - } - } - } - /** - * @private - * @param {?} panelId - * @return {?} - */ - _closeOthers(panelId) { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - panel => { - if (panel.id !== panelId) { - panel.isOpen = false; - } - })); - } - /** - * @private - * @param {?} panelId - * @return {?} - */ - _findPanelById(panelId) { return this.panels.find((/** - * @param {?} p - * @return {?} - */ - p => p.id === panelId)); } - /** - * @private - * @return {?} - */ - _updateActiveIds() { - this.activeIds = this.panels.filter((/** - * @param {?} panel - * @return {?} - */ - panel => panel.isOpen && !panel.disabled)).map((/** - * @param {?} panel - * @return {?} - */ - panel => panel.id)); - } -} -NgbAccordion.decorators = [ - { type: Component, args: [{ - selector: 'ngb-accordion', - exportAs: 'ngbAccordion', - host: { 'class': 'accordion', 'role': 'tablist', '[attr.aria-multiselectable]': '!closeOtherPanels' }, - template: ` - - - - -
- -
-
- -
-
-
-
- ` - }] } -]; -/** @nocollapse */ -NgbAccordion.ctorParameters = () => [ - { type: NgbAccordionConfig } -]; -NgbAccordion.propDecorators = { - panels: [{ type: ContentChildren, args: [NgbPanel,] }], - activeIds: [{ type: Input }], - closeOtherPanels: [{ type: Input, args: ['closeOthers',] }], - destroyOnHide: [{ type: Input }], - type: [{ type: Input }], - panelChange: [{ type: Output }] -}; -if (false) { - /** @type {?} */ - NgbAccordion.prototype.panels; - /** - * An array or comma separated strings of panel ids that should be opened **initially**. - * - * For subsequent changes use methods like `expand()`, `collapse()`, etc. and - * the `(panelChange)` event. - * @type {?} - */ - NgbAccordion.prototype.activeIds; - /** - * If `true`, only one panel could be opened at a time. - * - * Opening a new panel will close others. - * @type {?} - */ - NgbAccordion.prototype.closeOtherPanels; - /** - * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed. - * @type {?} - */ - NgbAccordion.prototype.destroyOnHide; - /** - * Type of panels. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - * @type {?} - */ - NgbAccordion.prototype.type; - /** - * Event emitted right before the panel toggle happens. - * - * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details. - * @type {?} - */ - NgbAccordion.prototype.panelChange; -} -/** - * A directive to put on a button that toggles panel opening and closing. - * - * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) - * - * \@since 4.1.0 - */ -export class NgbPanelToggle { - /** - * @param {?} accordion - * @param {?} panel - */ - constructor(accordion, panel) { - this.accordion = accordion; - this.panel = panel; - } - /** - * @param {?} panel - * @return {?} - */ - set ngbPanelToggle(panel) { - if (panel) { - this.panel = panel; - } - } -} -NgbPanelToggle.decorators = [ - { type: Directive, args: [{ - selector: 'button[ngbPanelToggle]', - host: { - 'type': 'button', - '[disabled]': 'panel.disabled', - '[class.collapsed]': '!panel.isOpen', - '[attr.aria-expanded]': 'panel.isOpen', - '[attr.aria-controls]': 'panel.id', - '(click)': 'accordion.toggle(panel.id)' - } - },] } -]; -/** @nocollapse */ -NgbPanelToggle.ctorParameters = () => [ - { type: NgbAccordion }, - { type: NgbPanel, decorators: [{ type: Optional }, { type: Host }] } -]; -NgbPanelToggle.propDecorators = { - ngbPanelToggle: [{ type: Input }] -}; -if (false) { - /** @type {?} */ - NgbPanelToggle.prototype.accordion; - /** @type {?} */ - NgbPanelToggle.prototype.panel; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiYWNjb3JkaW9uL2FjY29yZGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUVMLFNBQVMsRUFDVCxlQUFlLEVBQ2YsU0FBUyxFQUNULFlBQVksRUFDWixJQUFJLEVBQ0osS0FBSyxFQUNMLFFBQVEsRUFDUixNQUFNLEVBQ04sU0FBUyxFQUNULFdBQVcsRUFDWixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sY0FBYyxDQUFDO0FBRXRDLE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLG9CQUFvQixDQUFDOztJQUVsRCxNQUFNLEdBQUcsQ0FBQzs7Ozs7OztBQU9kLDJDQUtDOzs7Ozs7SUFEQyx1Q0FBZ0I7Ozs7Ozs7Ozs7O0FBYWxCLE1BQU0sT0FBTyxjQUFjOzs7O0lBQ3pCLFlBQW1CLFdBQTZC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RlcmBdKCMvY29tcG9uZW50cy9hY2NvcmRpb24vYXBpI05nYlBhbmVsSGVhZGVyKVxuICpcbiAqIEBzaW5jZSA0LjEuMFxuICovXG5ARGlyZWN0aXZlKHtcbiAgc2VsZWN0b3I6ICdidXR0b25bbmdiUGFuZWxUb2dnbGVdJyxcbiAgaG9zdDoge1xuICAgICd0eXBlJzogJ2J1dHRvbicsXG4gICAgJ1tkaXNhYmxlZF0nOiAncGFuZWwuZGlzYWJsZWQnLFxuICAgICdbY2xhc3MuY29sbGFwc2VkXSc6ICchcGFuZWwuaXNPcGVuJyxcbiAgICAnW2F0dHIuYXJpYS1leHBhbmRlZF0nOiAncGFuZWwuaXNPcGVuJyxcbiAgICAnW2F0dHIuYXJpYS1jb250cm9sc10nOiAncGFuZWwuaWQnLFxuICAgICcoY2xpY2spJzogJ2FjY29yZGlvbi50b2dnbGUocGFuZWwuaWQpJ1xuICB9XG59KVxuZXhwb3J0IGNsYXNzIE5nYlBhbmVsVG9nZ2xlIHtcbiAgQElucHV0KClcbiAgc2V0IG5nYlBhbmVsVG9nZ2xlKHBhbmVsOiBOZ2JQYW5lbCkge1xuICAgIGlmIChwYW5lbCkge1xuICAgICAgdGhpcy5wYW5lbCA9IHBhbmVsO1xuICAgIH1cbiAgfVxuXG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBhY2NvcmRpb246IE5nYkFjY29yZGlvbiwgQE9wdGlvbmFsKCkgQEhvc3QoKSBwdWJsaWMgcGFuZWw6IE5nYlBhbmVsKSB7fVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/accordion/accordion.module.js b/dist/ng-bootstrap/esm2015/accordion/accordion.module.js deleted file mode 100644 index 88a1412..0000000 --- a/dist/ng-bootstrap/esm2015/accordion/accordion.module.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle } from './accordion'; -export { NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle } from './accordion'; -export { NgbAccordionConfig } from './accordion-config'; -/** @type {?} */ -const NGB_ACCORDION_DIRECTIVES = [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle]; -export class NgbAccordionModule { -} -NgbAccordionModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_ACCORDION_DIRECTIVES, exports: NGB_ACCORDION_DIRECTIVES, imports: [CommonModule] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImFjY29yZGlvbi9hY2NvcmRpb24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsWUFBWSxFQUFFLFFBQVEsRUFBRSxhQUFhLEVBQUUsZUFBZSxFQUFFLGNBQWMsRUFBRSxjQUFjLEVBQUMsTUFBTSxhQUFhLENBQUM7QUFFbkgsT0FBTyxFQUNMLFlBQVksRUFDWixRQUFRLEVBQ1IsYUFBYSxFQUNiLGVBQWUsRUFFZixjQUFjLEVBRWQsY0FBYyxFQUNmLE1BQU0sYUFBYSxDQUFDO0FBQ3JCLE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLG9CQUFvQixDQUFDOzt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diUGFuZWxUb2dnbGVdO1xuXG5ATmdNb2R1bGUoe2RlY2xhcmF0aW9uczogTkdCX0FDQ09SRElPTl9ESVJFQ1RJVkVTLCBleHBvcnRzOiBOR0JfQUNDT1JESU9OX0RJUkVDVElWRVMsIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdfSlcbmV4cG9ydCBjbGFzcyBOZ2JBY2NvcmRpb25Nb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/alert/alert-config.js b/dist/ng-bootstrap/esm2015/alert/alert-config.js deleted file mode 100644 index a32282f..0000000 --- a/dist/ng-bootstrap/esm2015/alert/alert-config.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ -export class NgbAlertConfig { - constructor() { - this.dismissible = true; - this.type = 'warning'; - } -} -NgbAlertConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbAlertConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbAlertConfig_Factory() { return new NgbAlertConfig(); }, token: NgbAlertConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbAlertConfig.prototype.dismissible; - /** @type {?} */ - NgbAlertConfig.prototype.type; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiYWxlcnQvYWxlcnQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QyxNQUFNLE9BQU8sY0FBYztJQUQzQjtRQUVFLGdCQUFXLEdBQUcsSUFBSSxDQUFDO1FBQ25CLFNBQUksR0FBRyxTQUFTLENBQUM7S0FDbEI7OztZQUpBLFVBQVUsU0FBQyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUM7Ozs7O0lBRTlCLHFDQUFtQjs7SUFDbkIsOEJBQWlCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtJbmplY3RhYmxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBBIGNvbmZpZ3VyYXRpb24gc2VydmljZSBmb3IgdGhlIFtOZ2JBbGVydF0oIy9jb21wb25lbnRzL2FsZXJ0L2FwaSNOZ2JBbGVydCkgY29tcG9uZW50LlxuICpcbiAqIFlvdSBjYW4gaW5qZWN0IHRoaXMgc2VydmljZSwgdHlwaWNhbGx5IGluIHlvdXIgcm9vdCBjb21wb25lbnQsIGFuZCBjdXN0b21pemUgaXRzIHByb3BlcnRpZXNcbiAqIHRvIHByb3ZpZGUgZGVmYXVsdCB2YWx1ZXMgZm9yIGFsbCBhbGVydHMgdXNlZCBpbiB0aGUgYXBwbGljYXRpb24uXG4gKi9cbkBJbmplY3RhYmxlKHtwcm92aWRlZEluOiAncm9vdCd9KVxuZXhwb3J0IGNsYXNzIE5nYkFsZXJ0Q29uZmlnIHtcbiAgZGlzbWlzc2libGUgPSB0cnVlO1xuICB0eXBlID0gJ3dhcm5pbmcnO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/alert/alert.js b/dist/ng-bootstrap/esm2015/alert/alert.js deleted file mode 100644 index a7f0c49..0000000 --- a/dist/ng-bootstrap/esm2015/alert/alert.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, Renderer2, ElementRef, ViewEncapsulation } from '@angular/core'; -import { NgbAlertConfig } from './alert-config'; -/** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ -export class NgbAlert { - /** - * @param {?} config - * @param {?} _renderer - * @param {?} _element - */ - constructor(config, _renderer, _element) { - this._renderer = _renderer; - this._element = _element; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - this.close = new EventEmitter(); - this.dismissible = config.dismissible; - this.type = config.type; - } - /** - * @return {?} - */ - closeHandler() { this.close.emit(null); } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - /** @type {?} */ - const typeChange = changes['type']; - if (typeChange && !typeChange.firstChange) { - this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`); - this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`); - } - } - /** - * @return {?} - */ - ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); } -} -NgbAlert.decorators = [ - { type: Component, args: [{ - selector: 'ngb-alert', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { 'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible' }, - template: ` - - - `, - styles: ["ngb-alert{display:block}"] - }] } -]; -/** @nocollapse */ -NgbAlert.ctorParameters = () => [ - { type: NgbAlertConfig }, - { type: Renderer2 }, - { type: ElementRef } -]; -NgbAlert.propDecorators = { - dismissible: [{ type: Input }], - type: [{ type: Input }], - close: [{ type: Output }] -}; -if (false) { - /** - * If `true`, alert can be dismissed by the user. - * - * The close button (×) will be displayed and you can be notified - * of the event with the `(close)` output. - * @type {?} - */ - NgbAlert.prototype.dismissible; - /** - * Type of the alert. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - * @type {?} - */ - NgbAlert.prototype.type; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - * @type {?} - */ - NgbAlert.prototype.close; - /** - * @type {?} - * @private - */ - NgbAlert.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbAlert.prototype._element; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJhbGVydC9hbGVydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksRUFDWix1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFVBQVUsRUFJVixpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLGdCQUFnQixDQUFDOzs7Ozs7QUFxQjlDLE1BQU0sT0FBTyxRQUFROzs7Ozs7SUFxQm5CLFlBQVksTUFBc0IsRUFBVSxTQUFvQixFQUFVLFFBQW9CO1FBQWxELGNBQVMsR0FBVCxTQUFTLENBQVc7UUFBVSxhQUFRLEdBQVIsUUFBUSxDQUFZOzs7O1FBRnBGLFVBQUssR0FBRyxJQUFJLFlBQVksRUFBUSxDQUFDO1FBR3pDLElBQUksQ0FBQyxXQUFXLEdBQUcsTUFBTSxDQUFDLFdBQVcsQ0FBQztRQUN0QyxJQUFJLENBQUMsSUFBSSxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUM7SUFDMUIsQ0FBQzs7OztJQUVELFlBQVksS0FBSyxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7Oz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a/dist/ng-bootstrap/esm2015/alert/alert.module.js b/dist/ng-bootstrap/esm2015/alert/alert.module.js deleted file mode 100644 index aac9212..0000000 --- a/dist/ng-bootstrap/esm2015/alert/alert.module.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbAlert } from './alert'; -export { NgbAlert } from './alert'; -export { NgbAlertConfig } from './alert-config'; -export class NgbAlertModule { -} -NgbAlertModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbAlert], exports: [NgbAlert], imports: [CommonModule], entryComponents: [NgbAlert] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiYWxlcnQvYWxlcnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sU0FBUyxDQUFDO0FBRWpDLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxTQUFTLENBQUM7QUFDakMsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBRzlDLE1BQU0sT0FBTyxjQUFjOzs7WUFEMUIsUUFBUSxTQUFDLEVBQUMsWUFBWSxFQUFFLENBQUMsUUFBUSxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsUUFBUSxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDLEVBQUUsZUFBZSxFQUFFLENBQUMsUUFBUSxDQUFDLEVBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7Q29tbW9uTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5pbXBvcnQge05nYkFsZXJ0fSBmcm9tICcuL2FsZXJ0JztcblxuZXhwb3J0IHtOZ2JBbGVydH0gZnJvbSAnLi9hbGVydCc7XG5leHBvcnQge05nYkFsZXJ0Q29uZmlnfSBmcm9tICcuL2FsZXJ0LWNvbmZpZyc7XG5cbkBOZ01vZHVsZSh7ZGVjbGFyYXRpb25zOiBbTmdiQWxlcnRdLCBleHBvcnRzOiBbTmdiQWxlcnRdLCBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSwgZW50cnlDb21wb25lbnRzOiBbTmdiQWxlcnRdfSlcbmV4cG9ydCBjbGFzcyBOZ2JBbGVydE1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/buttons/buttons.module.js b/dist/ng-bootstrap/esm2015/buttons/buttons.module.js deleted file mode 100644 index 564803f..0000000 --- a/dist/ng-bootstrap/esm2015/buttons/buttons.module.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbButtonLabel } from './label'; -import { NgbCheckBox } from './checkbox'; -import { NgbRadio, NgbRadioGroup } from './radio'; -export { NgbButtonLabel } from './label'; -export { NgbCheckBox } from './checkbox'; -export { NgbRadio, NgbRadioGroup } from './radio'; -/** @type {?} */ -const NGB_BUTTON_DIRECTIVES = [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio]; -export class NgbButtonsModule { -} -NgbButtonsModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_BUTTON_DIRECTIVES, exports: NGB_BUTTON_DIRECTIVES },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9ucy5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJidXR0b25zL2J1dHRvbnMubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxTQUFTLENBQUM7QUFDdkMsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLFlBQVksQ0FBQztBQUN2QyxPQUFPLEVBQUMsUUFBUSxFQUFFLGFBQWEsRUFBQyxNQUFNLFNBQVMsQ0FBQztBQUVoRCxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sU0FBUyxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxXQUFXLEVBQUMsTUFBTSxZQUFZLENBQUM7QUFDdkMsT0FBTyxFQUFDLFFBQVEsRUFBRSxhQUFhLEVBQUMsTUFBTSxTQUFTLENBQUM7O01BRzFDLHFCQUFxQixHQUFHLENBQUMsY0FBYyxFQUFFLFdBQVcsRUFBRSxhQUFhLEVBQUUsUUFBUSxDQUFDO0FBR3BGLE1BQU0sT0FBTyxnQkFBZ0I7OztZQUQ1QixRQUFRLFNBQUMsRUFBQyxZQUFZLEVBQUUscUJBQXFCLEVBQUUsT0FBTyxFQUFFLHFCQUFxQixFQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge05nYkJ1dHRvbkxhYmVsfSBmcm9tICcuL2xhYmVsJztcbmltcG9ydCB7TmdiQ2hlY2tCb3h9IGZyb20gJy4vY2hlY2tib3gnO1xuaW1wb3J0IHtOZ2JSYWRpbywgTmdiUmFkaW9Hcm91cH0gZnJvbSAnLi9yYWRpbyc7XG5cbmV4cG9ydCB7TmdiQnV0dG9uTGFiZWx9IGZyb20gJy4vbGFiZWwnO1xuZXhwb3J0IHtOZ2JDaGVja0JveH0gZnJvbSAnLi9jaGVja2JveCc7XG5leHBvcnQge05nYlJhZGlvLCBOZ2JSYWRpb0dyb3VwfSBmcm9tICcuL3JhZGlvJztcblxuXG5jb25zdCBOR0JfQlVUVE9OX0RJUkVDVElWRVMgPSBbTmdiQnV0dG9uTGFiZWwsIE5nYkNoZWNrQm94LCBOZ2JSYWRpb0dyb3VwLCBOZ2JSYWRpb107XG5cbkBOZ01vZHVsZSh7ZGVjbGFyYXRpb25zOiBOR0JfQlVUVE9OX0RJUkVDVElWRVMsIGV4cG9ydHM6IE5HQl9CVVRUT05fRElSRUNUSVZFU30pXG5leHBvcnQgY2xhc3MgTmdiQnV0dG9uc01vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/buttons/checkbox.js b/dist/ng-bootstrap/esm2015/buttons/checkbox.js deleted file mode 100644 index 437dafa..0000000 --- a/dist/ng-bootstrap/esm2015/buttons/checkbox.js +++ /dev/null @@ -1,160 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, Directive, forwardRef, Input } from '@angular/core'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -import { NgbButtonLabel } from './label'; -/** @type {?} */ -const NGB_CHECKBOX_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbCheckBox)), - multi: true -}; -/** - * Allows to easily create Bootstrap-style checkbox buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ -export class NgbCheckBox { - /** - * @param {?} _label - * @param {?} _cd - */ - constructor(_label, _cd) { - this._label = _label; - this._cd = _cd; - /** - * If `true`, the checkbox button will be disabled - */ - this.disabled = false; - /** - * The form control value when the checkbox is checked. - */ - this.valueChecked = true; - /** - * The form control value when the checkbox is unchecked. - */ - this.valueUnChecked = false; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.onTouched = (/** - * @return {?} - */ - () => { }); - } - /** - * @param {?} isFocused - * @return {?} - */ - set focused(isFocused) { - this._label.focused = isFocused; - if (!isFocused) { - this.onTouched(); - } - } - /** - * @param {?} $event - * @return {?} - */ - onInputChange($event) { - /** @type {?} */ - const modelToPropagate = $event.target.checked ? this.valueChecked : this.valueUnChecked; - this.onChange(modelToPropagate); - this.onTouched(); - this.writeValue(modelToPropagate); - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this.onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this.onTouched = fn; } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { - this.disabled = isDisabled; - this._label.disabled = isDisabled; - } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this.checked = value === this.valueChecked; - this._label.active = this.checked; - // label won't be updated, if it is inside the OnPush component when [ngModel] changes - this._cd.markForCheck(); - } -} -NgbCheckBox.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButton][type=checkbox]', - host: { - 'autocomplete': 'off', - '[checked]': 'checked', - '[disabled]': 'disabled', - '(change)': 'onInputChange($event)', - '(focus)': 'focused = true', - '(blur)': 'focused = false' - }, - providers: [NGB_CHECKBOX_VALUE_ACCESSOR] - },] } -]; -/** @nocollapse */ -NgbCheckBox.ctorParameters = () => [ - { type: NgbButtonLabel }, - { type: ChangeDetectorRef } -]; -NgbCheckBox.propDecorators = { - disabled: [{ type: Input }], - valueChecked: [{ type: Input }], - valueUnChecked: [{ type: Input }] -}; -if (false) { - /** @type {?} */ - NgbCheckBox.prototype.checked; - /** - * If `true`, the checkbox button will be disabled - * @type {?} - */ - NgbCheckBox.prototype.disabled; - /** - * The form control value when the checkbox is checked. - * @type {?} - */ - NgbCheckBox.prototype.valueChecked; - /** - * The form control value when the checkbox is unchecked. - * @type {?} - */ - NgbCheckBox.prototype.valueUnChecked; - /** @type {?} */ - NgbCheckBox.prototype.onChange; - /** @type {?} */ - NgbCheckBox.prototype.onTouched; - /** - * @type {?} - * @private - */ - NgbCheckBox.prototype._label; - /** - * @type {?} - * @private - */ - NgbCheckBox.prototype._cd; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3guanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJidXR0b25zL2NoZWNrYm94LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsaUJBQWlCLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDOUUsT0FBTyxFQUF1QixpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBRXZFLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxTQUFTLENBQUM7O01BRWpDLDJCQUEyQixHQUFHO0lBQ2xDLE9BQU8sRUFBRSxpQkFBaUI7SUFDMUIsV0FBVyxFQUFFLFVBQVU7OztJQUFDLEdBQUcsRUFBRSxDQUFDLFdBQVcsRUFBQztJQUMxQyxLQUFLLEVBQUUsSUFBSTtDQUNaOzs7Ozs7O0FBcUJELE1BQU0sT0FBTyxXQUFXOzs7OztJQTRCdEIsWUFBb0IsTUFBc0IsRUFBVSxHQUFzQjtRQUF0RCxXQUFNLEdBQU4sTUFBTSxDQUF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b1Byb3BhZ2F0ZSA9ICRldmVudC50YXJnZXQuY2hlY2tlZCA/IHRoaXMudmFsdWVDaGVja2VkIDogdGhpcy52YWx1ZVVuQ2hlY2tlZDtcbiAgICB0aGlzLm9uQ2hhbmdlKG1vZGVsVG9Qcm9wYWdhdGUpO1xuICAgIHRoaXMub25Ub3VjaGVkKCk7XG4gICAgdGhpcy53cml0ZVZhbHVlKG1vZGVsVG9Qcm9wYWdhdGUpO1xuICB9XG5cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogKHZhbHVlOiBhbnkpID0+IGFueSk6IHZvaWQgeyB0aGlzLm9uQ2hhbmdlID0gZm47IH1cblxuICByZWdpc3Rlck9uVG91Y2hlZChmbjogKCkgPT4gYW55KTogdm9pZCB7IHRoaXMub25Ub3VjaGVkID0gZm47IH1cblxuICBzZXREaXNhYmxlZFN0YXRlKGlzRGlzYWJsZWQ6IGJvb2xlYW4pOiB2b2lkIHtcbiAgICB0aGlzLmRpc2FibGVkID0gaXNEaXNhYmxlZDtcbiAgICB0aGlzLl9sYWJlbC5kaXNhYmxlZCA9IGlzRGlzYWJsZWQ7XG4gIH1cblxuICB3cml0ZVZhbHVlKHZhbHVlKSB7XG4gICAgdGhpcy5jaGVja2VkID0gdmFsdWUgPT09IHRoaXMudmFsdWVDaGVja2VkO1xuICAgIHRoaXMuX2xhYmVsLmFjdGl2ZSA9IHRoaXMuY2hlY2tlZDtcblxuICAgIC8vIGxhYmVsIHdvbid0IGJlIHVwZGF0ZWQsIGlmIGl0IGlzIGluc2lkZSB0aGUgT25QdXNoIGNvbXBvbmVudCB3aGVuIFtuZ01vZGVsXSBjaGFuZ2VzXG4gICAgdGhpcy5fY2QubWFya0ZvckNoZWNrKCk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/buttons/label.js b/dist/ng-bootstrap/esm2015/buttons/label.js deleted file mode 100644 index 0cdb69b..0000000 --- a/dist/ng-bootstrap/esm2015/buttons/label.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Directive } from '@angular/core'; -export class NgbButtonLabel { -} -NgbButtonLabel.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButtonLabel]', - host: { '[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused' } - },] } -]; -if (false) { - /** @type {?} */ - NgbButtonLabel.prototype.active; - /** @type {?} */ - NgbButtonLabel.prototype.disabled; - /** @type {?} */ - NgbButtonLabel.prototype.focused; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFiZWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJidXR0b25zL2xhYmVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBT3hDLE1BQU0sT0FBTyxjQUFjOzs7WUFMMUIsU0FBUyxTQUFDO2dCQUNULFFBQVEsRUFBRSxrQkFBa0I7Z0JBQzVCLElBQUksRUFDQSxFQUFDLGFBQWEsRUFBRSxNQUFNLEVBQUUsZ0JBQWdCLEVBQUUsUUFBUSxFQUFFLGtCQUFrQixFQUFFLFVBQVUsRUFBRSxlQUFlLEVBQUUsU0FBUyxFQUFDO2FBQ3BIOzs7O0lBRUMsZ0NBQWdCOztJQUNoQixrQ0FBa0I7O0lBQ2xCLGlDQUFpQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7RGlyZWN0aXZlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQERpcmVjdGl2ZSh7XG4gIHNlbGVjdG9yOiAnW25nYkJ1dHRvbkxhYmVsXScsXG4gIGhvc3Q6XG4gICAgICB7J1tjbGFzcy5idG5dJzogJ3RydWUnLCAnW2NsYXNzLmFjdGl2ZV0nOiAnYWN0aXZlJywgJ1tjbGFzcy5kaXNhYmxlZF0nOiAnZGlzYWJsZWQnLCAnW2NsYXNzLmZvY3VzXSc6ICdmb2N1c2VkJ31cbn0pXG5leHBvcnQgY2xhc3MgTmdiQnV0dG9uTGFiZWwge1xuICBhY3RpdmU6IGJvb2xlYW47XG4gIGRpc2FibGVkOiBib29sZWFuO1xuICBmb2N1c2VkOiBib29sZWFuO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/buttons/radio.js b/dist/ng-bootstrap/esm2015/buttons/radio.js deleted file mode 100644 index a4d8e4b..0000000 --- a/dist/ng-bootstrap/esm2015/buttons/radio.js +++ /dev/null @@ -1,333 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, Directive, ElementRef, forwardRef, Input, Renderer2 } from '@angular/core'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -import { NgbButtonLabel } from './label'; -/** @type {?} */ -const NGB_RADIO_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbRadioGroup)), - multi: true -}; -/** @type {?} */ -let nextId = 0; -/** - * Allows to easily create Bootstrap-style radio buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ -export class NgbRadioGroup { - constructor() { - this._radios = new Set(); - this._value = null; - /** - * Name of the radio group applied to radio input elements. - * - * Will be applied to all radio input elements inside the group, - * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves. - * - * If not provided, will be generated in the `ngb-radio-xx` format. - */ - this.name = `ngb-radio-${nextId++}`; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.onTouched = (/** - * @return {?} - */ - () => { }); - } - /** - * @return {?} - */ - get disabled() { return this._disabled; } - /** - * @param {?} isDisabled - * @return {?} - */ - set disabled(isDisabled) { this.setDisabledState(isDisabled); } - /** - * @param {?} radio - * @return {?} - */ - onRadioChange(radio) { - this.writeValue(radio.value); - this.onChange(radio.value); - } - /** - * @return {?} - */ - onRadioValueUpdate() { this._updateRadiosValue(); } - /** - * @param {?} radio - * @return {?} - */ - register(radio) { this._radios.add(radio); } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this.onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this.onTouched = fn; } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { - this._disabled = isDisabled; - this._updateRadiosDisabled(); - } - /** - * @param {?} radio - * @return {?} - */ - unregister(radio) { this._radios.delete(radio); } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this._value = value; - this._updateRadiosValue(); - } - /** - * @private - * @return {?} - */ - _updateRadiosValue() { this._radios.forEach((/** - * @param {?} radio - * @return {?} - */ - (radio) => radio.updateValue(this._value))); } - /** - * @private - * @return {?} - */ - _updateRadiosDisabled() { this._radios.forEach((/** - * @param {?} radio - * @return {?} - */ - (radio) => radio.updateDisabled())); } -} -NgbRadioGroup.decorators = [ - { type: Directive, args: [{ selector: '[ngbRadioGroup]', host: { 'role': 'radiogroup' }, providers: [NGB_RADIO_VALUE_ACCESSOR] },] } -]; -NgbRadioGroup.propDecorators = { - name: [{ type: Input }] -}; -if (false) { - /** - * @type {?} - * @private - */ - NgbRadioGroup.prototype._radios; - /** - * @type {?} - * @private - */ - NgbRadioGroup.prototype._value; - /** - * @type {?} - * @private - */ - NgbRadioGroup.prototype._disabled; - /** - * Name of the radio group applied to radio input elements. - * - * Will be applied to all radio input elements inside the group, - * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves. - * - * If not provided, will be generated in the `ngb-radio-xx` format. - * @type {?} - */ - NgbRadioGroup.prototype.name; - /** @type {?} */ - NgbRadioGroup.prototype.onChange; - /** @type {?} */ - NgbRadioGroup.prototype.onTouched; -} -/** - * A directive that marks an input of type "radio" as a part of the - * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup). - */ -export class NgbRadio { - /** - * @param {?} _group - * @param {?} _label - * @param {?} _renderer - * @param {?} _element - * @param {?} _cd - */ - constructor(_group, _label, _renderer, _element, _cd) { - this._group = _group; - this._label = _label; - this._renderer = _renderer; - this._element = _element; - this._cd = _cd; - this._value = null; - this._group.register(this); - this.updateDisabled(); - } - /** - * The form control value when current radio button is checked. - * @param {?} value - * @return {?} - */ - set value(value) { - this._value = value; - /** @type {?} */ - const stringValue = value ? value.toString() : ''; - this._renderer.setProperty(this._element.nativeElement, 'value', stringValue); - this._group.onRadioValueUpdate(); - } - /** - * If `true`, current radio button will be disabled. - * @param {?} isDisabled - * @return {?} - */ - set disabled(isDisabled) { - this._disabled = isDisabled !== false; - this.updateDisabled(); - } - /** - * @param {?} isFocused - * @return {?} - */ - set focused(isFocused) { - if (this._label) { - this._label.focused = isFocused; - } - if (!isFocused) { - this._group.onTouched(); - } - } - /** - * @return {?} - */ - get checked() { return this._checked; } - /** - * @return {?} - */ - get disabled() { return this._group.disabled || this._disabled; } - /** - * @return {?} - */ - get value() { return this._value; } - /** - * @return {?} - */ - get nameAttr() { return this.name || this._group.name; } - /** - * @return {?} - */ - ngOnDestroy() { this._group.unregister(this); } - /** - * @return {?} - */ - onChange() { this._group.onRadioChange(this); } - /** - * @param {?} value - * @return {?} - */ - updateValue(value) { - // label won't be updated, if it is inside the OnPush component when [ngModel] changes - if (this.value !== value) { - this._cd.markForCheck(); - } - this._checked = this.value === value; - this._label.active = this._checked; - } - /** - * @return {?} - */ - updateDisabled() { this._label.disabled = this.disabled; } -} -NgbRadio.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButton][type=radio]', - host: { - '[checked]': 'checked', - '[disabled]': 'disabled', - '[name]': 'nameAttr', - '(change)': 'onChange()', - '(focus)': 'focused = true', - '(blur)': 'focused = false' - } - },] } -]; -/** @nocollapse */ -NgbRadio.ctorParameters = () => [ - { type: NgbRadioGroup }, - { type: NgbButtonLabel }, - { type: Renderer2 }, - { type: ElementRef }, - { type: ChangeDetectorRef } -]; -NgbRadio.propDecorators = { - name: [{ type: Input }], - value: [{ type: Input, args: ['value',] }], - disabled: [{ type: Input, args: ['disabled',] }] -}; -if (false) { - /** - * @type {?} - * @private - */ - NgbRadio.prototype._checked; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._disabled; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._value; - /** - * The value for the 'name' property of the input element. - * - * All inputs of the radio group should have the same name. If not specified, - * the name of the enclosing group is used. - * @type {?} - */ - NgbRadio.prototype.name; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._group; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._label; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._element; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._cd; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJidXR0b25zL3JhZGlvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsaUJBQWlCLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFhLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNoSCxPQUFPLEVBQXVCLGlCQUFpQixFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFdkUsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLFNBQVMsQ0FBQzs7TUFFakMsd0JBQXdCLEdBQUc7SUF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lzLmRpc2FibGVkOyB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/card/card-config.js b/dist/ng-bootstrap/esm2015/card/card-config.js deleted file mode 100644 index d15c423..0000000 --- a/dist/ng-bootstrap/esm2015/card/card-config.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [SbCard](#/components/alert/api#SbCard) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ -export class SbCardConfig { - constructor() { - this.dismissible = true; - this.type = 'warning'; - } -} -SbCardConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ SbCardConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function SbCardConfig_Factory() { return new SbCardConfig(); }, token: SbCardConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - SbCardConfig.prototype.dismissible; - /** @type {?} */ - SbCardConfig.prototype.type; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJjYXJkL2NhcmQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QyxNQUFNLE9BQU8sWUFBWTtJQUR6QjtRQUVFLGdCQUFXLEdBQUcsSUFBSSxDQUFDO1FBQ25CLFNBQUksR0FBRyxTQUFTLENBQUM7S0FDbEI7OztZQUpBLFVBQVUsU0FBQyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUM7Ozs7O0lBRTlCLG1DQUFtQjs7SUFDbkIsNEJBQWlCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtJbmplY3RhYmxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBBIGNvbmZpZ3VyYXRpb24gc2VydmljZSBmb3IgdGhlIFtTYkNhcmRdKCMvY29tcG9uZW50cy9hbGVydC9hcGkjU2JDYXJkKSBjb21wb25lbnQuXG4gKlxuICogWW91IGNhbiBpbmplY3QgdGhpcyBzZXJ2aWNlLCB0eXBpY2FsbHkgaW4geW91ciByb290IGNvbXBvbmVudCwgYW5kIGN1c3RvbWl6ZSBpdHMgcHJvcGVydGllc1xuICogdG8gcHJvdmlkZSBkZWZhdWx0IHZhbHVlcyBmb3IgYWxsIGFsZXJ0cyB1c2VkIGluIHRoZSBhcHBsaWNhdGlvbi5cbiAqL1xuQEluamVjdGFibGUoe3Byb3ZpZGVkSW46ICdyb290J30pXG5leHBvcnQgY2xhc3MgU2JDYXJkQ29uZmlnIHtcbiAgZGlzbWlzc2libGUgPSB0cnVlO1xuICB0eXBlID0gJ3dhcm5pbmcnO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/card/card.js b/dist/ng-bootstrap/esm2015/card/card.js deleted file mode 100644 index 58adcfd..0000000 --- a/dist/ng-bootstrap/esm2015/card/card.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, Renderer2, ElementRef, ViewEncapsulation } from '@angular/core'; -import { SbCardConfig } from './card-config'; -/** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ -export class SbCard { - /** - * @param {?} config - * @param {?} _renderer - * @param {?} _element - */ - constructor(config, _renderer, _element) { - this._renderer = _renderer; - this._element = _element; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - this.close = new EventEmitter(); - this.dismissible = config.dismissible; - this.type = config.type; - } - /** - * @return {?} - */ - closeHandler() { this.close.emit(null); } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - /** @type {?} */ - const typeChange = changes['type']; - if (typeChange && !typeChange.firstChange) { - this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`); - this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`); - } - } - /** - * @return {?} - */ - ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); } -} -SbCard.decorators = [ - { type: Component, args: [{ - selector: 'sb-card', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { 'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible' }, - template: ` - - - `, - styles: ["ngb-alert{display:block}"] - }] } -]; -/** @nocollapse */ -SbCard.ctorParameters = () => [ - { type: SbCardConfig }, - { type: Renderer2 }, - { type: ElementRef } -]; -SbCard.propDecorators = { - dismissible: [{ type: Input }], - type: [{ type: Input }], - close: [{ type: Output }] -}; -if (false) { - /** - * If `true`, alert can be dismissed by the user. - * - * The close button (×) will be displayed and you can be notified - * of the event with the `(close)` output. - * @type {?} - */ - SbCard.prototype.dismissible; - /** - * Type of the alert. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - * @type {?} - */ - SbCard.prototype.type; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - * @type {?} - */ - SbCard.prototype.close; - /** - * @type {?} - * @private - */ - SbCard.prototype._renderer; - /** - * @type {?} - * @private - */ - SbCard.prototype._element; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJ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IHRoaXMuZGlzbWlzc2libGUgPSBjb25maWcuZGlzbWlzc2libGU7XG4gICAgdGhpcy50eXBlID0gY29uZmlnLnR5cGU7XG4gIH1cblxuICBjbG9zZUhhbmRsZXIoKSB7IHRoaXMuY2xvc2UuZW1pdChudWxsKTsgfVxuXG4gIG5nT25DaGFuZ2VzKGNoYW5nZXM6IFNpbXBsZUNoYW5nZXMpIHtcbiAgICBjb25zdCB0eXBlQ2hhbmdlID0gY2hhbmdlc1sndHlwZSddO1xuICAgIGlmICh0eXBlQ2hhbmdlICYmICF0eXBlQ2hhbmdlLmZpcnN0Q2hhbmdlKSB7XG4gICAgICB0aGlzLl9yZW5kZXJlci5yZW1vdmVDbGFzcyh0aGlzLl9lbGVtZW50Lm5hdGl2ZUVsZW1lbnQsIGBhbGVydC0ke3R5cGVDaGFuZ2UucHJldmlvdXNWYWx1ZX1gKTtcbiAgICAgIHRoaXMuX3JlbmRlcmVyLmFkZENsYXNzKHRoaXMuX2VsZW1lbnQubmF0aXZlRWxlbWVudCwgYGFsZXJ0LSR7dHlwZUNoYW5nZS5jdXJyZW50VmFsdWV9YCk7XG4gICAgfVxuICB9XG5cbiAgbmdPbkluaXQoKSB7IHRoaXMuX3JlbmRlcmVyLmFkZENsYXNzKHRoaXMuX2VsZW1lbnQubmF0aXZlRWxlbWVudCwgYGFsZXJ0LSR7dGhpcy50eXBlfWApOyB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/card/card.module.js b/dist/ng-bootstrap/esm2015/card/card.module.js deleted file mode 100644 index 722bab4..0000000 --- a/dist/ng-bootstrap/esm2015/card/card.module.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { SbCard } from './card'; -export { SbCard } from './card'; -export { SbCardConfig } from './card-config'; -export class SbCardModule { -} -SbCardModule.decorators = [ - { type: NgModule, args: [{ declarations: [SbCard], exports: [SbCard], imports: [CommonModule], entryComponents: [SbCard] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJjYXJkL2NhcmQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsTUFBTSxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRTlCLE9BQU8sRUFBQyxNQUFNLEVBQUMsTUFBTSxRQUFRLENBQUM7QUFDOUIsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUczQyxNQUFNLE9BQU8sWUFBWTs7O1lBRHhCLFFBQVEsU0FBQyxFQUFDLFlBQVksRUFBRSxDQUFDLE1BQU0sQ0FBQyxFQUFFLE9BQU8sRUFBRSxDQUFDLE1BQU0sQ0FBQyxFQUFFLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQyxFQUFFLGVBQWUsRUFBRSxDQUFDLE1BQU0sQ0FBQyxFQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge0NvbW1vbk1vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcblxuaW1wb3J0IHtTYkNhcmR9IGZyb20gJy4vY2FyZCc7XG5cbmV4cG9ydCB7U2JDYXJkfSBmcm9tICcuL2NhcmQnO1xuZXhwb3J0IHtTYkNhcmRDb25maWd9IGZyb20gJy4vY2FyZC1jb25maWcnO1xuXG5ATmdNb2R1bGUoe2RlY2xhcmF0aW9uczogW1NiQ2FyZF0sIGV4cG9ydHM6IFtTYkNhcmRdLCBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSwgZW50cnlDb21wb25lbnRzOiBbU2JDYXJkXX0pXG5leHBvcnQgY2xhc3MgU2JDYXJkTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/carousel/carousel-config.js b/dist/ng-bootstrap/esm2015/carousel/carousel-config.js deleted file mode 100644 index 8564738..0000000 --- a/dist/ng-bootstrap/esm2015/carousel/carousel-config.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all carousels used in the application. - */ -export class NgbCarouselConfig { - constructor() { - this.interval = 5000; - this.wrap = true; - this.keyboard = true; - this.pauseOnHover = true; - this.showNavigationArrows = true; - this.showNavigationIndicators = true; - } -} -NgbCarouselConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbCarouselConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbCarouselConfig_Factory() { return new NgbCarouselConfig(); }, token: NgbCarouselConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbCarouselConfig.prototype.interval; - /** @type {?} */ - NgbCarouselConfig.prototype.wrap; - /** @type {?} */ - NgbCarouselConfig.prototype.keyboard; - /** @type {?} */ - NgbCarouselConfig.prototype.pauseOnHover; - /** @type {?} */ - NgbCarouselConfig.prototype.showNavigationArrows; - /** @type {?} */ - NgbCarouselConfig.prototype.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ZW50LCBhbmQgY3VzdG9taXplIGl0cyBwcm9wZXJ0aWVzXG4gKiB0byBwcm92aWRlIGRlZmF1bHQgdmFsdWVzIGZvciBhbGwgY2Fyb3VzZWxzIHVzZWQgaW4gdGhlIGFwcGxpY2F0aW9uLlxuICovXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBOZ2JDYXJvdXNlbENvbmZpZyB7XG4gIGludGVydmFsID0gNTAwMDtcbiAgd3JhcCA9IHRydWU7XG4gIGtleWJvYXJkID0gdHJ1ZTtcbiAgcGF1c2VPbkhvdmVyID0gdHJ1ZTtcbiAgc2hvd05hdmlnYXRpb25BcnJvd3MgPSB0cnVlO1xuICBzaG93TmF2aWdhdGlvbkluZGljYXRvcnMgPSB0cnVlO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/carousel/carousel.js b/dist/ng-bootstrap/esm2015/carousel/carousel.js deleted file mode 100644 index 46d0c31..0000000 --- a/dist/ng-bootstrap/esm2015/carousel/carousel.js +++ /dev/null @@ -1,507 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Directive, EventEmitter, Inject, Input, NgZone, Output, PLATFORM_ID, QueryList, TemplateRef, HostListener } from '@angular/core'; -import { isPlatformBrowser } from '@angular/common'; -import { NgbCarouselConfig } from './carousel-config'; -import { Subject, timer, BehaviorSubject, combineLatest, NEVER } from 'rxjs'; -import { startWith, map, switchMap, takeUntil, distinctUntilChanged } from 'rxjs/operators'; -/** @type {?} */ -let nextId = 0; -/** - * A directive that wraps the individual carousel slide. - */ -export class NgbSlide { - /** - * @param {?} tplRef - */ - constructor(tplRef) { - this.tplRef = tplRef; - /** - * Slide id that must be unique for the entire document. - * - * If not provided, will be generated in the `ngb-slide-xx` format. - */ - this.id = `ngb-slide-${nextId++}`; - } -} -NgbSlide.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbSlide]' },] } -]; -/** @nocollapse */ -NgbSlide.ctorParameters = () => [ - { type: TemplateRef } -]; -NgbSlide.propDecorators = { - id: [{ type: Input }] -}; -if (false) { - /** - * Slide id that must be unique for the entire document. - * - * If not provided, will be generated in the `ngb-slide-xx` format. - * @type {?} - */ - NgbSlide.prototype.id; - /** @type {?} */ - NgbSlide.prototype.tplRef; -} -/** - * Carousel is a component to easily create and control slideshows. - * - * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API. - */ -export class NgbCarousel { - /** - * @param {?} config - * @param {?} _platformId - * @param {?} _ngZone - * @param {?} _cd - */ - constructor(config, _platformId, _ngZone, _cd) { - this._platformId = _platformId; - this._ngZone = _ngZone; - this._cd = _cd; - this.NgbSlideEventSource = NgbSlideEventSource; - this._destroy$ = new Subject(); - this._interval$ = new BehaviorSubject(0); - this._mouseHover$ = new BehaviorSubject(false); - this._pauseOnHover$ = new BehaviorSubject(false); - this._pause$ = new BehaviorSubject(false); - this._wrap$ = new BehaviorSubject(false); - /** - * An event emitted right after the slide transition is completed. - * - * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details. - */ - this.slide = new EventEmitter(); - this.interval = config.interval; - this.wrap = config.wrap; - this.keyboard = config.keyboard; - this.pauseOnHover = config.pauseOnHover; - this.showNavigationArrows = config.showNavigationArrows; - this.showNavigationIndicators = config.showNavigationIndicators; - } - /** - * Time in milliseconds before the next slide is shown. - * @param {?} value - * @return {?} - */ - set interval(value) { - this._interval$.next(value); - } - /** - * @return {?} - */ - get interval() { return this._interval$.value; } - /** - * If `true`, will 'wrap' the carousel by switching from the last slide back to the first. - * @param {?} value - * @return {?} - */ - set wrap(value) { - this._wrap$.next(value); - } - /** - * @return {?} - */ - get wrap() { return this._wrap$.value; } - /** - * If `true`, will pause slide switching when mouse cursor hovers the slide. - * - * \@since 2.2.0 - * @param {?} value - * @return {?} - */ - set pauseOnHover(value) { - this._pauseOnHover$.next(value); - } - /** - * @return {?} - */ - get pauseOnHover() { return this._pauseOnHover$.value; } - /** - * @return {?} - */ - mouseEnter() { - this._mouseHover$.next(true); - } - /** - * @return {?} - */ - mouseLeave() { - this._mouseHover$.next(false); - } - /** - * @return {?} - */ - ngAfterContentInit() { - // setInterval() doesn't play well with SSR and protractor, - // so we should run it in the browser and outside Angular - if (isPlatformBrowser(this._platformId)) { - this._ngZone.runOutsideAngular((/** - * @return {?} - */ - () => { - /** @type {?} */ - const hasNextSlide$ = combineLatest(this.slide.pipe(map((/** - * @param {?} slideEvent - * @return {?} - */ - slideEvent => slideEvent.current)), startWith(this.activeId)), this._wrap$, this.slides.changes.pipe(startWith(null))) - .pipe(map((/** - * @param {?} __0 - * @return {?} - */ - ([currentSlideId, wrap]) => { - /** @type {?} */ - const slideArr = this.slides.toArray(); - /** @type {?} */ - const currentSlideIdx = this._getSlideIdxById(currentSlideId); - return wrap ? slideArr.length > 1 : currentSlideIdx < slideArr.length - 1; - })), distinctUntilChanged()); - combineLatest(this._pause$, this._pauseOnHover$, this._mouseHover$, this._interval$, hasNextSlide$) - .pipe(map((/** - * @param {?} __0 - * @return {?} - */ - ([pause, pauseOnHover, mouseHover, interval, hasNextSlide]) => ((pause || (pauseOnHover && mouseHover) || !hasNextSlide) ? 0 : interval))), distinctUntilChanged(), switchMap((/** - * @param {?} interval - * @return {?} - */ - interval => interval > 0 ? timer(interval, interval) : NEVER)), takeUntil(this._destroy$)) - .subscribe((/** - * @return {?} - */ - () => this._ngZone.run((/** - * @return {?} - */ - () => this.next(NgbSlideEventSource.TIMER))))); - })); - } - this.slides.changes.pipe(takeUntil(this._destroy$)).subscribe((/** - * @return {?} - */ - () => this._cd.markForCheck())); - } - /** - * @return {?} - */ - ngAfterContentChecked() { - /** @type {?} */ - let activeSlide = this._getSlideById(this.activeId); - this.activeId = activeSlide ? activeSlide.id : (this.slides.length ? this.slides.first.id : null); - } - /** - * @return {?} - */ - ngOnDestroy() { this._destroy$.next(); } - /** - * Navigates to a slide with the specified identifier. - * @param {?} slideId - * @param {?=} source - * @return {?} - */ - select(slideId, source) { - this._cycleToSelected(slideId, this._getSlideEventDirection(this.activeId, slideId), source); - } - /** - * Navigates to the previous slide. - * @param {?=} source - * @return {?} - */ - prev(source) { - this._cycleToSelected(this._getPrevSlide(this.activeId), NgbSlideEventDirection.RIGHT, source); - } - /** - * Navigates to the next slide. - * @param {?=} source - * @return {?} - */ - next(source) { - this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source); - } - /** - * Pauses cycling through the slides. - * @return {?} - */ - pause() { this._pause$.next(true); } - /** - * Restarts cycling through the slides from left to right. - * @return {?} - */ - cycle() { this._pause$.next(false); } - /** - * @private - * @param {?} slideIdx - * @param {?} direction - * @param {?=} source - * @return {?} - */ - _cycleToSelected(slideIdx, direction, source) { - /** @type {?} */ - let selectedSlide = this._getSlideById(slideIdx); - if (selectedSlide && selectedSlide.id !== this.activeId) { - this.slide.emit({ prev: this.activeId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source }); - this.activeId = selectedSlide.id; - } - // we get here after the interval fires or any external API call like next(), prev() or select() - this._cd.markForCheck(); - } - /** - * @private - * @param {?} currentActiveSlideId - * @param {?} nextActiveSlideId - * @return {?} - */ - _getSlideEventDirection(currentActiveSlideId, nextActiveSlideId) { - /** @type {?} */ - const currentActiveSlideIdx = this._getSlideIdxById(currentActiveSlideId); - /** @type {?} */ - const nextActiveSlideIdx = this._getSlideIdxById(nextActiveSlideId); - return currentActiveSlideIdx > nextActiveSlideIdx ? NgbSlideEventDirection.RIGHT : NgbSlideEventDirection.LEFT; - } - /** - * @private - * @param {?} slideId - * @return {?} - */ - _getSlideById(slideId) { return this.slides.find((/** - * @param {?} slide - * @return {?} - */ - slide => slide.id === slideId)); } - /** - * @private - * @param {?} slideId - * @return {?} - */ - _getSlideIdxById(slideId) { - return this.slides.toArray().indexOf(this._getSlideById(slideId)); - } - /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - _getNextSlide(currentSlideId) { - /** @type {?} */ - const slideArr = this.slides.toArray(); - /** @type {?} */ - const currentSlideIdx = this._getSlideIdxById(currentSlideId); - /** @type {?} */ - const isLastSlide = currentSlideIdx === slideArr.length - 1; - return isLastSlide ? (this.wrap ? slideArr[0].id : slideArr[slideArr.length - 1].id) : - slideArr[currentSlideIdx + 1].id; - } - /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - _getPrevSlide(currentSlideId) { - /** @type {?} */ - const slideArr = this.slides.toArray(); - /** @type {?} */ - const currentSlideIdx = this._getSlideIdxById(currentSlideId); - /** @type {?} */ - const isFirstSlide = currentSlideIdx === 0; - return isFirstSlide ? (this.wrap ? slideArr[slideArr.length - 1].id : slideArr[0].id) : - slideArr[currentSlideIdx - 1].id; - } -} -NgbCarousel.decorators = [ - { type: Component, args: [{ - selector: 'ngb-carousel', - exportAs: 'ngbCarousel', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { - 'class': 'carousel slide', - '[style.display]': '"block"', - 'tabIndex': '0', - '(keydown.arrowLeft)': 'keyboard && prev(NgbSlideEventSource.ARROW_LEFT)', - '(keydown.arrowRight)': 'keyboard && next(NgbSlideEventSource.ARROW_RIGHT)' - }, - template: ` - - - - - Previous - - - - Next - - ` - }] } -]; -/** @nocollapse */ -NgbCarousel.ctorParameters = () => [ - { type: NgbCarouselConfig }, - { type: undefined, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, - { type: NgZone }, - { type: ChangeDetectorRef } -]; -NgbCarousel.propDecorators = { - slides: [{ type: ContentChildren, args: [NgbSlide,] }], - activeId: [{ type: Input }], - interval: [{ type: Input }], - wrap: [{ type: Input }], - keyboard: [{ type: Input }], - pauseOnHover: [{ type: Input }], - showNavigationArrows: [{ type: Input }], - showNavigationIndicators: [{ type: Input }], - slide: [{ type: Output }], - mouseEnter: [{ type: HostListener, args: ['mouseenter',] }], - mouseLeave: [{ type: HostListener, args: ['mouseleave',] }] -}; -if (false) { - /** @type {?} */ - NgbCarousel.prototype.slides; - /** @type {?} */ - NgbCarousel.prototype.NgbSlideEventSource; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._destroy$; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._interval$; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._mouseHover$; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._pauseOnHover$; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._pause$; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._wrap$; - /** - * The slide id that should be displayed **initially**. - * - * For subsequent interactions use methods `select()`, `next()`, etc. and the `(slide)` output. - * @type {?} - */ - NgbCarousel.prototype.activeId; - /** - * If `true`, allows to interact with carousel using keyboard 'arrow left' and 'arrow right'. - * @type {?} - */ - NgbCarousel.prototype.keyboard; - /** - * If `true`, 'previous' and 'next' navigation arrows will be visible on the slide. - * - * \@since 2.2.0 - * @type {?} - */ - NgbCarousel.prototype.showNavigationArrows; - /** - * If `true`, navigation indicators at the bottom of the slide will be visible. - * - * \@since 2.2.0 - * @type {?} - */ - NgbCarousel.prototype.showNavigationIndicators; - /** - * An event emitted right after the slide transition is completed. - * - * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details. - * @type {?} - */ - NgbCarousel.prototype.slide; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._platformId; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._cd; -} -/** - * A slide change event emitted right after the slide transition is completed. - * @record - */ -export function NgbSlideEvent() { } -if (false) { - /** - * The previous slide id. - * @type {?} - */ - NgbSlideEvent.prototype.prev; - /** - * The current slide id. - * @type {?} - */ - NgbSlideEvent.prototype.current; - /** - * The slide event direction. - * - * Possible values are `'left' | 'right'`. - * @type {?} - */ - NgbSlideEvent.prototype.direction; - /** - * Whether the pause() method was called (and no cycle() call was done afterwards). - * - * \@since 5.1.0 - * @type {?} - */ - NgbSlideEvent.prototype.paused; - /** - * Source triggering the slide change event. - * - * Possible values are `'timer' | 'arrowLeft' | 'arrowRight' | 'indicator'` - * - * \@since 5.1.0 - * @type {?|undefined} - */ - NgbSlideEvent.prototype.source; -} -/** @enum {string} */ -const NgbSlideEventDirection = { - LEFT: (/** @type {?} */ ('left')), - RIGHT: (/** @type {?} */ ('right')), -}; -export { NgbSlideEventDirection }; -/** @enum {string} */ -const NgbSlideEventSource = { - TIMER: 'timer', - ARROW_LEFT: 'arrowLeft', - ARROW_RIGHT: 'arrowRight', - INDICATOR: 'indicator', -}; -export { NgbSlideEventSource }; -/** @type {?} */ -export const NGB_CAROUSEL_DIRECTIVES = [NgbCarousel, NgbSlide]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2Fyb3VzZWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJjYXJvdXNlbC9jYXJvdXNlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUdMLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIsU0FBUyxFQUNULGVBQWUsRUFDZixTQUFTLEVBQ1QsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxFQUVOLE1BQU0sRUFDTixXQUFXLEVBQ1gsU0FBUyxFQUNULFdBQVcsRUFDWCxZQUFZLEVBQ2IsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFFbEQsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFFcEQsT0FBTyxFQUFDLE9BQU8sRUFBRSxLQUFLLEVBQUUsZUFBZSxFQUFFLGFBQWEsRUFB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UnKVxuICBtb3VzZUxlYXZlKCkge1xuICAgIHRoaXMuX21vdXNlSG92ZXIkLm5leHQoZmFsc2UpO1xuICB9XG5cbiAgbmdBZnRlckNvbnRlbnRJbml0KCkge1xuICAgIC8vIHNldEludGVydmFsKCkgZG9lc24ndCBwbGF5IHdlbGwgd2l0aCBTU1IgYW5kIHByb3RyYWN0b3IsXG4gICAgLy8gc28gd2Ugc2hvdWxkIHJ1biBpdCBpbiB0aGUgYnJvd3NlciBhbmQgb3V0c2lkZSBBbmd1bGFyXG4gICAgaWYgKGlzUGxhdGZvcm1Ccm93c2VyKHRoaXMuX3BsYXRmb3JtSWQpKSB7XG4gICAgICB0aGlzLl9uZ1pvbmUucnVuT3V0c2lkZUFuZ3VsYXIoKCkgPT4ge1xuICAgICAgICBjb25zdCBoYXNOZXh0U2xpZGUkID0gY29tYmluZUxhdGVzdChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNsaWRlLnBpcGUobWFwKHNsaWRlRXZlbnQgPT4gc2xpZGVFdmVudC5jdXJyZW50KSwgc3RhcnRXaXRoKHRoaXMuYWN0aXZlSWQpKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl93cmFwJCwgdGhpcy5zbGlkZXMuY2hhbmdlcy5waXBlKHN0YXJ0V2l0aChudWxsKSkpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcCgoW2N1cnJlbnRTbGlkZUlkLCB3cmFwXSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHNsaWRlQXJyID0gdGhpcy5zbGlkZXMudG9BcnJheSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGN1cnJlbnRTbGlkZUlkeCA9IHRoaXMuX2dldFNsaWRlSWR4QnlJZChjdXJyZW50U2xpZGVJZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXAgPyBzbGlkZUFyci5sZW5ndGggPiAxIDogY3VycmVudFNsaWRlSWR4IDwgc2xpZGVBcnIubGVuZ3RoIC0gMTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpc3RpbmN0VW50aWxDaGFuZ2VkKCkpO1xuICAgICAgICBjb21iaW5lTGF0ZXN0KHRoaXMuX3BhdXNlJCwgdGhpcy5fcGF1c2VPbkhvdmVyJCwgdGhpcy5fbW91c2VIb3ZlciQsIHRoaXMuX2ludGVydmFsJCwgaGFzTmV4dFNsaWRlJClcbiAgICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgIG1hcCgoW3BhdXNlLCBwYXVzZU9uSG92ZXIsIG1vdXNlSG92ZXIsIGludGVydmFsLCBoYXNOZXh0U2xpZGVdKSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgKChwYXVzZSB8fCAocGF1c2VPbkhvdmVyICYmIG1vdXNlSG92ZXIpIHx8ICFoYXNOZXh0U2xpZGUpID8gMCA6IGludGVydmFsKSksXG5cbiAgICAgICAgICAgICAgICBkaXN0aW5jdFVudGlsQ2hhbmdlZCgpLCBzd2l0Y2hNYXAoaW50ZXJ2YWwgPT4gaW50ZXJ2YWwgPiAwID8gdGltZXIoaW50ZXJ2YWwsIGludGVydmFsKSA6IE5FVkVSKSxcbiAgICAgICAgICAgICAgICB0YWtlVW50aWwodGhpcy5fZGVzdHJveSQpKVxuICAgICAgICAgICAgLnN1YnNjcmliZSgoKSA9PiB0aGlzLl9uZ1pvbmUucnVuKCgpID0+IHRoaXMubmV4dChOZ2JTbGlkZUV2ZW50U291cmNlLlRJTUVSKSkpO1xuICAgICAgfSk7XG4gICAgfVxuXG4gICAgdGhpcy5zbGlkZXMuY2hhbm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aXJlY3Rpb24ge1xuICBMRUZUID0gPGFueT4nbGVmdCcsXG4gIFJJR0hUID0gPGFueT4ncmlnaHQnXG59XG5cbmV4cG9ydCBlbnVtIE5nYlNsaWRlRXZlbnRTb3VyY2Uge1xuICBUSU1FUiA9ICd0aW1lcicsXG4gIEFSUk9XX0xFRlQgPSAnYXJyb3dMZWZ0JyxcbiAgQVJST1dfUklHSFQgPSAnYXJyb3dSaWdodCcsXG4gIElORElDQVRPUiA9ICdpbmRpY2F0b3InXG59XG5cbmV4cG9ydCBjb25zdCBOR0JfQ0FST1VTRUxfRElSRUNUSVZFUyA9IFtOZ2JDYXJvdXNlbCwgTmdiU2xpZGVdO1xuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/carousel/carousel.module.js b/dist/ng-bootstrap/esm2015/carousel/carousel.module.js deleted file mode 100644 index 266463a..0000000 --- a/dist/ng-bootstrap/esm2015/carousel/carousel.module.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NGB_CAROUSEL_DIRECTIVES } from './carousel'; -export { NgbCarousel, NgbSlide, NgbSlideEventDirection, NgbSlideEventSource } from './carousel'; -export { NgbCarouselConfig } from './carousel-config'; -export class NgbCarouselModule { -} -NgbCarouselModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_CAROUSEL_DIRECTIVES, exports: NGB_CAROUSEL_DIRECTIVES, imports: [CommonModule] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2Fyb3VzZWwubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiY2Fyb3VzZWwvY2Fyb3VzZWwubW9kdWxlLnRzI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leHBvcnRzOiBOR0JfQ0FST1VTRUxfRElSRUNUSVZFUywgaW1wb3J0czogW0NvbW1vbk1vZHVsZV19KVxuZXhwb3J0IGNsYXNzIE5nYkNhcm91c2VsTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/collapse/collapse.js b/dist/ng-bootstrap/esm2015/collapse/collapse.js deleted file mode 100644 index 93d1c48..0000000 --- a/dist/ng-bootstrap/esm2015/collapse/collapse.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Directive, Input } from '@angular/core'; -/** - * A directive to provide a simple way of hiding and showing elements on the page. - */ -export class NgbCollapse { - constructor() { - /** - * If `true`, will collapse the element or show it otherwise. - */ - this.collapsed = false; - } -} -NgbCollapse.decorators = [ - { type: Directive, args: [{ - selector: '[ngbCollapse]', - exportAs: 'ngbCollapse', - host: { '[class.collapse]': 'true', '[class.show]': '!collapsed' } - },] } -]; -NgbCollapse.propDecorators = { - collapsed: [{ type: Input, args: ['ngbCollapse',] }] -}; -if (false) { - /** - * If `true`, will collapse the element or show it otherwise. - * @type {?} - */ - NgbCollapse.prototype.collapsed; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFwc2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJjb2xsYXBzZS9jb2xsYXBzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7Ozs7QUFVL0MsTUFBTSxPQUFPLFdBQVc7SUFMeEI7Ozs7UUFTd0IsY0FBUyxHQUFHLEtBQUssQ0FBQztJQUMxQyxDQUFDOzs7WUFWQSxTQUFTLFNBQUM7Z0JBQ1QsUUFBUSxFQUFFLGVBQWU7Z0JBQ3pCLFFBQVEsRUFBRSxhQUFhO2dCQUN2QixJQUFJLEVBQUUsRUFBQyxrQkFBa0IsRUFBRSxNQUFNLEVBQUUsY0FBYyxFQUFFLFlBQVksRUFBQzthQUNqRTs7O3dCQUtFLEtBQUssU0FBQyxhQUFhOzs7Ozs7O0lBQXBCLGdDQUF3QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7RGlyZWN0aXZlLCBJbnB1dH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKlxuICogQSBkaXJlY3RpdmUgdG8gcHJvdmlkZSBhIHNpbXBsZSB3YXkgb2YgaGlkaW5nIGFuZCBzaG93aW5nIGVsZW1lbnRzIG9uIHRoZSBwYWdlLlxuICovXG5ARGlyZWN0aXZlKHtcbiAgc2VsZWN0b3I6ICdbbmdiQ29sbGFwc2VdJyxcbiAgZXhwb3J0QXM6ICduZ2JDb2xsYXBzZScsXG4gIGhvc3Q6IHsnW2NsYXNzLmNvbGxhcHNlXSc6ICd0cnVlJywgJ1tjbGFzcy5zaG93XSc6ICchY29sbGFwc2VkJ31cbn0pXG5leHBvcnQgY2xhc3MgTmdiQ29sbGFwc2Uge1xuICAvKipcbiAgICogSWYgYHRydWVgLCB3aWxsIGNvbGxhcHNlIHRoZSBlbGVtZW50IG9yIHNob3cgaXQgb3RoZXJ3aXNlLlxuICAgKi9cbiAgQElucHV0KCduZ2JDb2xsYXBzZScpIGNvbGxhcHNlZCA9IGZhbHNlO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/collapse/collapse.module.js b/dist/ng-bootstrap/esm2015/collapse/collapse.module.js deleted file mode 100644 index 89c3516..0000000 --- a/dist/ng-bootstrap/esm2015/collapse/collapse.module.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbCollapse } from './collapse'; -export { NgbCollapse } from './collapse'; -export class NgbCollapseModule { -} -NgbCollapseModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbCollapse], exports: [NgbCollapse] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFwc2UubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiY29sbGFwc2UvY29sbGFwc2UubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxXQUFXLEVBQUMsTUFBTSxZQUFZLENBQUM7QUFFdkMsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLFlBQVksQ0FBQztBQUd2QyxNQUFNLE9BQU8saUJBQWlCOzs7WUFEN0IsUUFBUSxTQUFDLEVBQUMsWUFBWSxFQUFFLENBQUMsV0FBVyxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsV0FBVyxDQUFDLEVBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7TmdiQ29sbGFwc2V9IGZyb20gJy4vY29sbGFwc2UnO1xuXG5leHBvcnQge05nYkNvbGxhcHNlfSBmcm9tICcuL2NvbGxhcHNlJztcblxuQE5nTW9kdWxlKHtkZWNsYXJhdGlvbnM6IFtOZ2JDb2xsYXBzZV0sIGV4cG9ydHM6IFtOZ2JDb2xsYXBzZV19KVxuZXhwb3J0IGNsYXNzIE5nYkNvbGxhcHNlTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-adapter.js b/dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-adapter.js deleted file mode 100644 index fc19975..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-adapter.js +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import { isInteger } from '../../util/util'; -import * as i0 from "@angular/core"; -/** - * @return {?} - */ -export function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() { - return new NgbDateStructAdapter(); -} -/** - * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and - * any provided user date model `D`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding datepicker to a form control, - * ex. `[(ngModel)]="userDateModel"`. Here `userDateModel` can be of any type. - * - * The default datepicker implementation assumes we use `NgbDateStruct` as a user model. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details - * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example. - * @abstract - * @template D - */ -export class NgbDateAdapter { -} -NgbDateAdapter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY },] } -]; -/** @nocollapse */ NgbDateAdapter.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY, token: NgbDateAdapter, providedIn: "root" }); -if (false) { - /** - * Converts a user-model date of type `D` to an `NgbDateStruct` for internal use. - * @abstract - * @param {?} value - * @return {?} - */ - NgbDateAdapter.prototype.fromModel = function (value) { }; - /** - * Converts an internal `NgbDateStruct` date to a user-model date of type `D`. - * @abstract - * @param {?} date - * @return {?} - */ - NgbDateAdapter.prototype.toModel = function (date) { }; -} -export class NgbDateStructAdapter extends NgbDateAdapter { - /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - fromModel(date) { - return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ? - { year: date.year, month: date.month, day: date.day } : - null; - } - /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - toModel(date) { - return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ? - { year: date.year, month: date.month, day: date.day } : - null; - } -} -NgbDateStructAdapter.decorators = [ - { type: Injectable } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWRhdGUtYWRhcHRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvYWRhcHRlcnMvbmdiLWRhdGUtYWRhcHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0saUJBQWlCLENBQUM7Ozs7O0FBRTFDLE1BQU0sVUFBVSxtQ0FBbUM7SUFDakQsT0FBTyxJQUFJLG9CQUFvQixFQUFFLENBQUM7QUFDcEMsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7O0FBZUQsTUFBTSxPQUFnQixjQUFjOzs7WUFEbkMsVUFBVSxTQUFDLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsbUNBQW1DLEVBQUM7Ozs7Ozs7Ozs7SUFLL0UsMERBQTRDOzs7Ozs7O0lBSzVDLHVEQUF5Qzs7QUFJM0MsTUFBTSxPQUFPLG9CQUFxQixTQUFRLGNBQTZCOzs7Ozs7SUFJckUsU0FBUyxDQUFDLElBQW1CO1FBQzNCLE9BQU8sQ0FBQyxJQUFJLElBQUksU0FBUyxDQUFDLEl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ZWwoZGF0ZTogTmdiRGF0ZVN0cnVjdCk6IE5nYkRhdGVTdHJ1Y3Qge1xuICAgIHJldHVybiAoZGF0ZSAmJiBpc0ludGVnZXIoZGF0ZS55ZWFyKSAmJiBpc0ludGVnZXIoZGF0ZS5tb250aCkgJiYgaXNJbnRlZ2VyKGRhdGUuZGF5KSkgP1xuICAgICAgICB7eWVhcjogZGF0ZS55ZWFyLCBtb250aDogZGF0ZS5tb250aCwgZGF5OiBkYXRlLmRheX0gOlxuICAgICAgICBudWxsO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-native-adapter.js b/dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-native-adapter.js deleted file mode 100644 index 3fb3b95..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-native-adapter.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import { NgbDateAdapter } from './ngb-date-adapter'; -import { isInteger } from '../../util/util'; -/** - * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses - * native javascript dates as a user date model. - */ -export class NgbDateNativeAdapter extends NgbDateAdapter { - /** - * Converts a native `Date` to a `NgbDateStruct`. - * @param {?} date - * @return {?} - */ - fromModel(date) { - return (date instanceof Date && !isNaN(date.getTime())) ? this._fromNativeDate(date) : null; - } - /** - * Converts a `NgbDateStruct` to a native `Date`. - * @param {?} date - * @return {?} - */ - toModel(date) { - return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) ? this._toNativeDate(date) : - null; - } - /** - * @protected - * @param {?} date - * @return {?} - */ - _fromNativeDate(date) { - return { year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate() }; - } - /** - * @protected - * @param {?} date - * @return {?} - */ - _toNativeDate(date) { - /** @type {?} */ - const jsDate = new Date(date.year, date.month - 1, date.day, 12); - // avoid 30 -> 1930 conversion - jsDate.setFullYear(date.year); - return jsDate; - } -} -NgbDateNativeAdapter.decorators = [ - { type: Injectable } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWRhdGUtbmF0aXZlLWFkYXB0ZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2FkYXB0ZXJzL25nYi1kYXRlLW5hdGl2ZS1hZGFwdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUVsRCxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0saUJBQWlCLENBQUM7Ozs7O0FBTzFDLE1BQU0sT0FBTyxvQkFBcUIsU0FBUSxjQUFvQjs7Ozs7O0lBSTVELFNBQVMsQ0FBQyxJQUFVO1FBQ2xCLE9BQU8sQ0FBQyxJQUFJLFlBQVksSUFBSSxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxlQUFlLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztJQUM5RixDQUFDOzs7Ozs7SUFLRCxPQUFPLENBQUMsSUFBbUI7UUFDekIsT0FBTyxJQUFJLElBQUksU0FBUyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxTQUFTLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLFNBQVMsQ0FBQyxJQUFJLENBQUMsR0FBRy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ogZGF0ZS5nZXRNb250aCgpICsgMSwgZGF5OiBkYXRlLmdldERhdGUoKX07XG4gIH1cblxuICBwcm90ZWN0ZWQgX3RvTmF0aXZlRGF0ZShkYXRlOiBOZ2JEYXRlU3RydWN0KTogRGF0ZSB7XG4gICAgY29uc3QganNEYXRlID0gbmV3IERhdGUoZGF0ZS55ZWFyLCBkYXRlLm1vbnRoIC0gMSwgZGF0ZS5kYXksIDEyKTtcbiAgICAvLyBhdm9pZCAzMCAtPiAxOTMwIGNvbnZlcnNpb25cbiAgICBqc0RhdGUuc2V0RnVsbFllYXIoZGF0ZS55ZWFyKTtcbiAgICByZXR1cm4ganNEYXRlO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-native-utc-adapter.js b/dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-native-utc-adapter.js deleted file mode 100644 index 316e302..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/adapters/ngb-date-native-utc-adapter.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import { NgbDateNativeAdapter } from './ngb-date-native-adapter'; -/** - * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates. - * - * \@since 3.2.0 - */ -export class NgbDateNativeUTCAdapter extends NgbDateNativeAdapter { - /** - * @protected - * @param {?} date - * @return {?} - */ - _fromNativeDate(date) { - return { year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate() }; - } - /** - * @protected - * @param {?} date - * @return {?} - */ - _toNativeDate(date) { - /** @type {?} */ - const jsDate = new Date(Date.UTC(date.year, date.month - 1, date.day)); - // avoid 30 -> 1930 conversion - jsDate.setUTCFullYear(date.year); - return jsDate; - } -} -NgbDateNativeUTCAdapter.decorators = [ - { type: Injectable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59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-config.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-config.js deleted file mode 100644 index 45f5a5e..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-config.js +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the datepickers used in the application. - */ -export class NgbDatepickerConfig { - constructor() { - this.displayMonths = 1; - this.firstDayOfWeek = 1; - this.navigation = 'select'; - this.outsideDays = 'visible'; - this.showWeekdays = true; - this.showWeekNumbers = false; - } -} -NgbDatepickerConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbDatepickerConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbDatepickerConfig_Factory() { return new NgbDatepickerConfig(); }, token: NgbDatepickerConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbDatepickerConfig.prototype.dayTemplate; - /** @type {?} */ - NgbDatepickerConfig.prototype.dayTemplateData; - /** @type {?} */ - NgbDatepickerConfig.prototype.footerTemplate; - /** @type {?} */ - NgbDatepickerConfig.prototype.displayMonths; - /** @type {?} */ - NgbDatepickerConfig.prototype.firstDayOfWeek; - /** @type {?} */ - NgbDatepickerConfig.prototype.markDisabled; - /** @type {?} */ - NgbDatepickerConfig.prototype.minDate; - /** @type {?} */ - NgbDatepickerConfig.prototype.maxDate; - /** @type {?} */ - NgbDatepickerConfig.prototype.navigation; - /** @type {?} */ - NgbDatepickerConfig.prototype.outsideDays; - /** @type {?} */ - NgbDatepickerConfig.prototype.showWeekdays; - /** @type {?} */ - NgbDatepickerConfig.prototype.showWeekNumbers; - /** @type {?} */ - NgbDatepickerConfig.prototype.startDate; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2RhdGVwaWNrZXItY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFjLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVd0RCxNQUFNLE9BQU8sbUJBQW1CO0lBRGhDO1FBS0Usa0JBQWEsR0FBRyxDQUFDLENBQUM7UUFDbEIsbUJBQWMsR0FBRyxDQUFDLENBQUM7UUFJbkIsZUFBVSxHQUFpQyxRQUFRLENBQUM7UUFDcEQsZ0JBQVcsR0FBdUMsU0FBUyxDQUFDO1FBQzVELGlCQUFZLEdBQUcsSUFBSSxDQUFDO1FBQ3BCLG9CQUFlLEdBQUcsS0FBSyxDQUFDO0tBRXpCOzs7WUFmQSxVQUFVLFNBQUMsRUFBQyxVQUFVLEVBQUUsTUFBTSxFQUFDOzs7OztJQUU5QiwwQ0FBNkM7O0lBQzdDLDhDQUFzRjs7SUFDdEYsNkNBQWlDOztJQUNqQyw0Q0FBa0I7O0lBQ2xCLDZDQUFtQjs7SUFDbkIsMkNBQXVGOztJQUN2RixzQ0FBdUI7O0lBQ3ZCLHNDQUF1Qjs7SUFDdkIseUNBQW9EOztJQUNwRCwwQ0FBNEQ7O0lBQzVELDJDQUFvQjs7SUFDcEIsOENBQXdCOztJQUN4Qix3Q0FBeUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0luamVjdGFibGUsIFRlbXBsYXRlUmVmfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7R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xlYW47XG4gIG1pbkRhdGU6IE5nYkRhdGVTdHJ1Y3Q7XG4gIG1heERhdGU6IE5nYkRhdGVTdHJ1Y3Q7XG4gIG5hdmlnYXRpb246ICdzZWxlY3QnIHwgJ2Fycm93cycgfCAnbm9uZScgPSAnc2VsZWN0JztcbiAgb3V0c2lkZURheXM6ICd2aXNpYmxlJyB8ICdjb2xsYXBzZWQnIHwgJ2hpZGRlbicgPSAndmlzaWJsZSc7XG4gIHNob3dXZWVrZGF5cyA9IHRydWU7XG4gIHNob3dXZWVrTnVtYmVycyA9IGZhbHNlO1xuICBzdGFydERhdGU6IHt5ZWFyOiBudW1iZXIsIG1vbnRoOiBudW1iZXJ9O1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-day-template-context.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-day-template-context.js deleted file mode 100644 index e75b9bf..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-day-template-context.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * The context for the datepicker 'day' template. - * - * You can override the way dates are displayed in the datepicker via the `[dayTemplate]` input. - * @record - */ -export function DayTemplateContext() { } -if (false) { - /** - * The date that corresponds to the template. Same as the `date` parameter. - * - * Can be used for convenience as a default template key, ex. `let-d`. - * - * \@since 3.3.0 - * @type {?} - */ - DayTemplateContext.prototype.$implicit; - /** - * The month currently displayed by the datepicker. - * @type {?} - */ - DayTemplateContext.prototype.currentMonth; - /** - * Any data you pass using the `[dayTemplateData]` input in the datepicker. - * - * \@since 3.3.0 - * @type {?|undefined} - */ - DayTemplateContext.prototype.data; - /** - * The date that corresponds to the template. - * @type {?} - */ - DayTemplateContext.prototype.date; - /** - * `True` if the current date is disabled. - * @type {?} - */ - DayTemplateContext.prototype.disabled; - /** - * `True` if the current date is focused. - * @type {?} - */ - DayTemplateContext.prototype.focused; - /** - * `True` if the current date is selected. - * @type {?} - */ - DayTemplateContext.prototype.selected; - /** - * `True` if the current date is today (equal to `NgbCalendar.getToday()`). - * - * \@since 4.1.0 - * @type {?} - */ - DayTemplateContext.prototype.today; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1kYXktdGVtcGxhdGUtY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci1kYXktdGVtcGxhdGUtY29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBTUEsd0NBZ0RDOzs7Ozs7Ozs7O0lBeENDLHVDQUFtQjs7Ozs7SUFLbkIsMENBQXFCOzs7Ozs7O0lBT3JCLGtDQUFXOzs7OztJQUtYLGtDQUFjOzs7OztJQUtkLHNDQUFrQjs7Ozs7SUFLbEIscUNBQWlCOzs7OztJQUtqQixzQ0FBa0I7Ozs7Ozs7SUFPbEIsbUNBQWUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nYkRhdGV9IGZyb20gJy4vbmdiLWRhdGUnO1xuLyoqXG4gKiBUaGUgY29udGV4dCBmb3IgdGhlIGRhdGVwaWNrZXIgJ2RheScgdGVtcGxhdGUuXG4gKlxuICogWW91IGNhbiBvdmVycmlkZSB0aGUgd2F5IGRhdGVzIGFyZSBkaXNwbGF5ZWQgaW4gdGhlIGRhdGVwaWNrZXIgdmlhIHRoZSBgW2RheVRlbXBsYXRlXWAgaW5wdXQuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgRGF5VGVtcGxhdGVDb250ZXh0IHtcbiAgLyoqXG4gICAqIFRoZSBkYXRlIHRoYXQgY29ycmVzcG9uZHMgdG8gdGhlIHRlbXBsYXRl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VuZGFyLmdldFRvZGF5KClgKS5cbiAgICpcbiAgICogQHNpbmNlIDQuMS4wXG4gICAqL1xuICB0b2RheTogYm9vbGVhbjtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-day-view.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-day-view.js deleted file mode 100644 index 5f4ea5f..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-day-view.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core'; -import { NgbDate } from './ngb-date'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -export class NgbDatepickerDayView { - /** - * @param {?} i18n - */ - constructor(i18n) { - this.i18n = i18n; - } - /** - * @return {?} - */ - isMuted() { return !this.selected && (this.date.month !== this.currentMonth || this.disabled); } -} -NgbDatepickerDayView.decorators = [ - { type: Component, args: [{ - selector: '[ngbDatepickerDayView]', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { - 'class': 'btn-light', - '[class.bg-primary]': 'selected', - '[class.text-white]': 'selected', - '[class.text-muted]': 'isMuted()', - '[class.outside]': 'isMuted()', - '[class.active]': 'focused' - }, - template: `{{ i18n.getDayNumerals(date) }}`, - styles: ["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"] - }] } -]; -/** @nocollapse */ -NgbDatepickerDayView.ctorParameters = () => [ - { type: NgbDatepickerI18n } -]; -NgbDatepickerDayView.propDecorators = { - currentMonth: [{ type: Input }], - date: [{ type: Input }], - disabled: [{ type: Input }], - focused: [{ type: Input }], - selected: [{ type: Input }] -}; -if (false) { - /** @type {?} */ - NgbDatepickerDayView.prototype.currentMonth; - /** @type {?} */ - NgbDatepickerDayView.prototype.date; - /** @type {?} */ - NgbDatepickerDayView.prototype.disabled; - /** @type {?} */ - NgbDatepickerDayView.prototype.focused; - /** @type {?} */ - NgbDatepickerDayView.prototype.selected; - /** @type {?} */ - NgbDatepickerDayView.prototype.i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1kYXktdmlldy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci1kYXktdmlldy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsaUJBQWlCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDM0YsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLFlBQVksQ0FBQztBQUNuQyxPQUFPLEVBQUMsaUJBQWlCLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQztBQWlCcEQsTUFBTSxPQUFPLG9CQUFvQjs7OztJQU8vQixZQUFtQixJQUF1QjtRQUF2QixTQUFJLEdBQUosSUFBSSxDQUFtQjtJQUFHLENBQUM7Ozs7SUFFOUMsT0FBTyxLQUFLLE9BQU8sQ0FBQyxJQUFJLENBQUMsUUFBUSxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxLQUFLLEtBQUssSUFBSSxDQUFDLFlBQVksSUFBSSxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDOzs7WUF4QmpHLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsd0JBQXdCO2dCQUNsQyxlQUFlLEVBQUUsdUJBQXVCLENBQUMsTUFBTTtnQkFDL0MsYUFBYSxFQUFFLGlCQUFpQixD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1saWdodCcsXG4gICAgJ1tjbGFzcy5iZy1wcmltYXJ5XSc6ICdzZWxlY3RlZCcsXG4gICAgJ1tjbGFzcy50ZXh0LXdoaXRlXSc6ICdzZWxlY3RlZCcsXG4gICAgJ1tjbGFzcy50ZXh0LW11dGVkXSc6ICdpc011dGVkKCknLFxuICAgICdbY2xhc3Mub3V0c2lkZV0nOiAnaXNNdXRlZCgpJyxcbiAgICAnW2NsYXNzLmFjdGl2ZV0nOiAnZm9jdXNlZCdcbiAgfSxcbiAgdGVtcGxhdGU6IGB7eyBpMThuLmdldERheU51bWVyYWxzKGRhdGUpIH19YFxufSlcbmV4cG9ydCBjbGFzcyBOZ2JEYXRlcGlja2VyRGF5VmlldyB7XG4gIEBJbnB1dCgpIGN1cnJlbnRNb250aDogbnVtYmVyO1xuICBASW5wdXQoKSBkYXRlOiBOZ2JEYXRlO1xuICBASW5wdXQoKSBkaXNhYmxlZDogYm9vbGVhbjtcbiAgQElucHV0KCkgZm9jdXNlZDogYm9vbGVhbjtcbiAgQElucHV0KCkgc2VsZWN0ZWQ6IGJvb2xlYW47XG5cbiAgY29uc3RydWN0b3IocHVibGljIGkxOG46IE5nYkRhdGVwaWNrZXJJMThuKSB7fVxuXG4gIGlzTXV0ZWQoKSB7IHJldHVybiAhdGhpcy5zZWxlY3RlZCAmJiAodGhpcy5kYXRlLm1vbnRoICE9PSB0aGlzLmN1cnJlbnRNb250aCB8fCB0aGlzLmRpc2FibGVkKTsgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-i18n.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-i18n.js deleted file mode 100644 index 7937094..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-i18n.js +++ /dev/null @@ -1,171 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Inject, Injectable, LOCALE_ID } from '@angular/core'; -import { FormStyle, getLocaleDayNames, getLocaleMonthNames, TranslationWidth, formatDate } from '@angular/common'; -import * as i0 from "@angular/core"; -/** - * @param {?} locale - * @return {?} - */ -export function NGB_DATEPICKER_18N_FACTORY(locale) { - return new NgbDatepickerI18nDefault(locale); -} -/** - * A service supplying i18n data to the datepicker component. - * - * The default implementation of this service uses the Angular locale and registered locale data for - * weekdays and month names (as explained in the Angular i18n guide). - * - * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year - * numerals. For other static labels the datepicker uses the default Angular i18n. - * - * See the [i18n demo](#/components/datepicker/examples#i18n) and - * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define - * a custom provider for i18n. - * @abstract - */ -export class NgbDatepickerI18n { - /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * \@since 3.0.0 - * @param {?} date - * @return {?} - */ - getDayNumerals(date) { return `${date.day}`; } - /** - * Returns the textual representation of a week number rendered by datepicker. - * - * \@since 3.0.0 - * @param {?} weekNumber - * @return {?} - */ - getWeekNumerals(weekNumber) { return `${weekNumber}`; } - /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * \@since 3.0.0 - * @param {?} year - * @return {?} - */ - getYearNumerals(year) { return `${year}`; } -} -NgbDatepickerI18n.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_18N_FACTORY, deps: [LOCALE_ID] },] } -]; -/** @nocollapse */ NgbDatepickerI18n.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbDatepickerI18n_Factory() { return NGB_DATEPICKER_18N_FACTORY(i0.ɵɵinject(i0.LOCALE_ID)); }, token: NgbDatepickerI18n, providedIn: "root" }); -if (false) { - /** - * Returns the short weekday name to display in the heading of the month view. - * - * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun. - * @abstract - * @param {?} weekday - * @return {?} - */ - NgbDatepickerI18n.prototype.getWeekdayShortName = function (weekday) { }; - /** - * Returns the short month name to display in the date picker navigation. - * - * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * @abstract - * @param {?} month - * @param {?=} year - * @return {?} - */ - NgbDatepickerI18n.prototype.getMonthShortName = function (month, year) { }; - /** - * Returns the full month name to display in the date picker navigation. - * - * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * @abstract - * @param {?} month - * @param {?=} year - * @return {?} - */ - NgbDatepickerI18n.prototype.getMonthFullName = function (month, year) { }; - /** - * Returns the value of the `aria-label` attribute for a specific date. - * - * \@since 2.0.0 - * @abstract - * @param {?} date - * @return {?} - */ - NgbDatepickerI18n.prototype.getDayAriaLabel = function (date) { }; -} -export class NgbDatepickerI18nDefault extends NgbDatepickerI18n { - /** - * @param {?} _locale - */ - constructor(_locale) { - super(); - this._locale = _locale; - /** @type {?} */ - const weekdaysStartingOnSunday = getLocaleDayNames(_locale, FormStyle.Standalone, TranslationWidth.Short); - this._weekdaysShort = weekdaysStartingOnSunday.map((/** - * @param {?} day - * @param {?} index - * @return {?} - */ - (day, index) => weekdaysStartingOnSunday[(index + 1) % 7])); - this._monthsShort = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Abbreviated); - this._monthsFull = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Wide); - } - /** - * @param {?} weekday - * @return {?} - */ - getWeekdayShortName(weekday) { return this._weekdaysShort[weekday - 1]; } - /** - * @param {?} month - * @return {?} - */ - getMonthShortName(month) { return this._monthsShort[month - 1]; } - /** - * @param {?} month - * @return {?} - */ - getMonthFullName(month) { return this._monthsFull[month - 1]; } - /** - * @param {?} date - * @return {?} - */ - getDayAriaLabel(date) { - /** @type {?} */ - const jsDate = new Date(date.year, date.month - 1, date.day); - return formatDate(jsDate, 'fullDate', this._locale); - } -} -NgbDatepickerI18nDefault.decorators = [ - { type: Injectable } -]; -/** @nocollapse */ -NgbDatepickerI18nDefault.ctorParameters = () => [ - { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } -]; -if (false) { - /** - * @type {?} - * @private - */ - NgbDatepickerI18nDefault.prototype._weekdaysShort; - /** - * @type {?} - * @private - */ - NgbDatepickerI18nDefault.prototype._monthsShort; - /** - * @type {?} - * @private - */ - NgbDatepickerI18nDefault.prototype._monthsFull; - /** - * @type {?} - * @private - */ - NgbDatepickerI18nDefault.prototype._locale; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1pMThuLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9kYXRlcGlja2VyLWkxOG4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxNQUFNLEVBQUUsVUFBVSxFQUFFLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUM1RCxPQUFPLEVBQUMsU0FBUyxFQUFFLGlCQUFpQixFQUFFLG1CQUFtQixFQUFFLGdCQUFnQixFQUFFLFVBQVUsRUFBQyxNQUFNLGlCQUFpQixDQUFDOzs7Ozs7QUFHaEgsTUFBTSxVQUFVLDBCQUEwQixDQUFDLE1BQU07SUFDL0MsT0FBTyxJQUFJLHdCQUF3QixDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQzlDLENBQUM7Ozs7Ozs7Ozs7Ozs7OztBQWdCRCxNQUFNLE9BQWdCLGlCQUFpQjs7Ozs7Ozs7SUFrQ3JDLGNBQWMsQ0FBQyxJQUFtQixJQUFZLE9BQU8sR0FBRyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxDQUFDOzs7Ozs7OztJQU9yRSxlQUFlLENBQUMsVUFBa0IsSUFBWSxPQUFPLEdBQUcsVUFBVSxFQUFFLENBQUMsQ0FBQyxDQUFDOzs7Ozs7OztJQU92RSxlQUFlLENBQUMsSUFBWSxJQUF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XJuIHRoaXMuX3dlZWtkYXlzU2hvcnRbd2Vla2RheSAtIDFdOyB9XG5cbiAgZ2V0TW9udGhTaG9ydE5hbWUobW9udGg6IG51bWJlcik6IHN0cmluZyB7IHJldHVybiB0aGlzLl9tb250aHNTaG9ydFttb250aCAtIDFdOyB9XG5cbiAgZ2V0TW9udGhGdWxsTmFtZShtb250aDogbnVtYmVyKTogc3RyaW5nIHsgcmV0dXJuIHRoaXMuX21vbnRoc0Z1bGxbbW9udGggLSAxXTsgfVxuXG4gIGdldERheUFyaWFMYWJlbChkYXRlOiBOZ2JEYXRlU3RydWN0KTogc3RyaW5nIHtcbiAgICBjb25zdCBqc0RhdGUgPSBuZXcgRGF0ZShkYXRlLnllYXIsIGRhdGUubW9udGggLSAxLCBkYXRlLmRheSk7XG4gICAgcmV0dXJuIGZvcm1hdERhdGUoanNEYXRlLCAnZnVsbERhdGUnLCB0aGlzLl9sb2NhbGUpO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-input.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-input.js deleted file mode 100644 index 966ff62..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-input.js +++ /dev/null @@ -1,736 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, ComponentFactoryResolver, Directive, ElementRef, EventEmitter, forwardRef, Inject, Input, NgZone, Output, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms'; -import { ngbAutoClose } from '../util/autoclose'; -import { ngbFocusTrap } from '../util/focus-trap'; -import { positionElements } from '../util/positioning'; -import { NgbDateAdapter } from './adapters/ngb-date-adapter'; -import { NgbDatepicker } from './datepicker'; -import { NgbDatepickerService } from './datepicker-service'; -import { NgbCalendar } from './ngb-calendar'; -import { NgbDate } from './ngb-date'; -import { NgbDateParserFormatter } from './ngb-date-parser-formatter'; -/** @type {?} */ -const NGB_DATEPICKER_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbInputDatepicker)), - multi: true -}; -/** @type {?} */ -const NGB_DATEPICKER_VALIDATOR = { - provide: NG_VALIDATORS, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbInputDatepicker)), - multi: true -}; -/** - * A directive that allows to stick a datepicker popup to an input field. - * - * Manages interaction with the input field itself, does value formatting and provides forms integration. - */ -export class NgbInputDatepicker { - /** - * @param {?} _parserFormatter - * @param {?} _elRef - * @param {?} _vcRef - * @param {?} _renderer - * @param {?} _cfr - * @param {?} _ngZone - * @param {?} _service - * @param {?} _calendar - * @param {?} _dateAdapter - * @param {?} _document - * @param {?} _changeDetector - */ - constructor(_parserFormatter, _elRef, _vcRef, _renderer, _cfr, _ngZone, _service, _calendar, _dateAdapter, _document, _changeDetector) { - this._parserFormatter = _parserFormatter; - this._elRef = _elRef; - this._vcRef = _vcRef; - this._renderer = _renderer; - this._cfr = _cfr; - this._ngZone = _ngZone; - this._service = _service; - this._calendar = _calendar; - this._dateAdapter = _dateAdapter; - this._document = _document; - this._changeDetector = _changeDetector; - this._cRef = null; - this._disabled = false; - /** - * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not. - * - * * `true` - the popup will close on both date selection and outside click. - * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the popup will close on date selection, but not outside clicks. - * * `"outside"` - the popup will close only on the outside click and not on date selection/inside clicks. - * - * \@since 3.0.0 - */ - this.autoClose = true; - /** - * The preferred placement of the datepicker popup. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - * - * \@since 1.1.1 - */ - this.dateSelect = new EventEmitter(); - /** - * Event emitted right after the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - this.navigate = new EventEmitter(); - /** - * An event fired after closing datepicker window. - * - * \@since 4.2.0 - */ - this.closed = new EventEmitter(); - this._onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this._onTouched = (/** - * @return {?} - */ - () => { }); - this._validatorChange = (/** - * @return {?} - */ - () => { }); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - () => this._updatePopupPosition())); - } - /** - * @return {?} - */ - get disabled() { - return this._disabled; - } - /** - * @param {?} value - * @return {?} - */ - set disabled(value) { - this._disabled = value === '' || (value && value !== 'false'); - if (this.isOpen()) { - this._cRef.instance.setDisabledState(this._disabled); - } - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this._onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this._onTouched = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnValidatorChange(fn) { this._validatorChange = fn; } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { this.disabled = isDisabled; } - /** - * @param {?} c - * @return {?} - */ - validate(c) { - /** @type {?} */ - const value = c.value; - if (value === null || value === undefined) { - return null; - } - /** @type {?} */ - const ngbDate = this._fromDateStruct(this._dateAdapter.fromModel(value)); - if (!this._calendar.isValid(ngbDate)) { - return { 'ngbDate': { invalid: c.value } }; - } - if (this.minDate && ngbDate.before(NgbDate.from(this.minDate))) { - return { 'ngbDate': { requiredBefore: this.minDate } }; - } - if (this.maxDate && ngbDate.after(NgbDate.from(this.maxDate))) { - return { 'ngbDate': { requiredAfter: this.maxDate } }; - } - } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this._model = this._fromDateStruct(this._dateAdapter.fromModel(value)); - this._writeModelValue(this._model); - } - /** - * @param {?} value - * @param {?=} updateView - * @return {?} - */ - manualDateChange(value, updateView = false) { - /** @type {?} */ - const inputValueChanged = value !== this._inputValue; - if (inputValueChanged) { - this._inputValue = value; - this._model = this._fromDateStruct(this._parserFormatter.parse(value)); - } - if (inputValueChanged || !updateView) { - this._onChange(this._model ? this._dateAdapter.toModel(this._model) : (value === '' ? null : value)); - } - if (updateView && this._model) { - this._writeModelValue(this._model); - } - } - /** - * @return {?} - */ - isOpen() { return !!this._cRef; } - /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - * @return {?} - */ - open() { - if (!this.isOpen()) { - /** @type {?} */ - const cf = this._cfr.resolveComponentFactory(NgbDatepicker); - this._cRef = this._vcRef.createComponent(cf); - this._applyPopupStyling(this._cRef.location.nativeElement); - this._applyDatepickerInputs(this._cRef.instance); - this._subscribeForDatepickerOutputs(this._cRef.instance); - this._cRef.instance.ngOnInit(); - this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)); - // date selection event handling - this._cRef.instance.registerOnChange((/** - * @param {?} selectedDate - * @return {?} - */ - (selectedDate) => { - this.writeValue(selectedDate); - this._onChange(selectedDate); - this._onTouched(); - })); - this._cRef.changeDetectorRef.detectChanges(); - this._cRef.instance.setDisabledState(this.disabled); - if (this.container === 'body') { - window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement); - } - // focus handling - ngbFocusTrap(this._cRef.location.nativeElement, this.closed, true); - this._cRef.instance.focus(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - () => this.close()), this.closed, [], [this._elRef.nativeElement, this._cRef.location.nativeElement]); - } - } - /** - * Closes the datepicker popup. - * @return {?} - */ - close() { - if (this.isOpen()) { - this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)); - this._cRef = null; - this.closed.emit(); - this._changeDetector.markForCheck(); - } - } - /** - * Toggles the datepicker popup. - * @return {?} - */ - toggle() { - if (this.isOpen()) { - this.close(); - } - else { - this.open(); - } - } - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - navigateTo(date) { - if (this.isOpen()) { - this._cRef.instance.navigateTo(date); - } - } - /** - * @return {?} - */ - onBlur() { this._onTouched(); } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - if (changes['minDate'] || changes['maxDate']) { - this._validatorChange(); - } - } - /** - * @return {?} - */ - ngOnDestroy() { - this.close(); - this._zoneSubscription.unsubscribe(); - } - /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - _applyDatepickerInputs(datepickerInstance) { - ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate', - 'maxDate', 'navigation', 'outsideDays', 'showNavigation', 'showWeekdays', 'showWeekNumbers'] - .forEach((/** - * @param {?} optionName - * @return {?} - */ - (optionName) => { - if (this[optionName] !== undefined) { - datepickerInstance[optionName] = this[optionName]; - } - })); - datepickerInstance.startDate = this.startDate || this._model; - } - /** - * @private - * @param {?} nativeElement - * @return {?} - */ - _applyPopupStyling(nativeElement) { - this._renderer.addClass(nativeElement, 'dropdown-menu'); - this._renderer.addClass(nativeElement, 'show'); - if (this.container === 'body') { - this._renderer.addClass(nativeElement, 'ngb-dp-body'); - } - } - /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - _subscribeForDatepickerOutputs(datepickerInstance) { - datepickerInstance.navigate.subscribe((/** - * @param {?} navigateEvent - * @return {?} - */ - navigateEvent => this.navigate.emit(navigateEvent))); - datepickerInstance.select.subscribe((/** - * @param {?} date - * @return {?} - */ - date => { - this.dateSelect.emit(date); - if (this.autoClose === true || this.autoClose === 'inside') { - this.close(); - } - })); - } - /** - * @private - * @param {?} model - * @return {?} - */ - _writeModelValue(model) { - /** @type {?} */ - const value = this._parserFormatter.format(model); - this._inputValue = value; - this._renderer.setProperty(this._elRef.nativeElement, 'value', value); - if (this.isOpen()) { - this._cRef.instance.writeValue(this._dateAdapter.toModel(model)); - this._onTouched(); - } - } - /** - * @private - * @param {?} date - * @return {?} - */ - _fromDateStruct(date) { - /** @type {?} */ - const ngbDate = date ? new NgbDate(date.year, date.month, date.day) : null; - return this._calendar.isValid(ngbDate) ? ngbDate : null; - } - /** - * @private - * @return {?} - */ - _updatePopupPosition() { - if (!this._cRef) { - return; - } - /** @type {?} */ - let hostElement; - if (typeof this.positionTarget === 'string') { - hostElement = window.document.querySelector(this.positionTarget); - } - else if (this.positionTarget instanceof HTMLElement) { - hostElement = this.positionTarget; - } - else { - hostElement = this._elRef.nativeElement; - } - if (this.positionTarget && !hostElement) { - throw new Error('ngbDatepicker could not find element declared in [positionTarget] to position against.'); - } - positionElements(hostElement, this._cRef.location.nativeElement, this.placement, this.container === 'body'); - } -} -NgbInputDatepicker.decorators = [ - { type: Directive, args: [{ - selector: 'input[ngbDatepicker]', - exportAs: 'ngbDatepicker', - host: { - '(input)': 'manualDateChange($event.target.value)', - '(change)': 'manualDateChange($event.target.value, true)', - '(blur)': 'onBlur()', - '[disabled]': 'disabled' - }, - providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NGB_DATEPICKER_VALIDATOR, NgbDatepickerService] - },] } -]; -/** @nocollapse */ -NgbInputDatepicker.ctorParameters = () => [ - { type: NgbDateParserFormatter }, - { type: ElementRef }, - { type: ViewContainerRef }, - { type: Renderer2 }, - { type: ComponentFactoryResolver }, - { type: NgZone }, - { type: NgbDatepickerService }, - { type: NgbCalendar }, - { type: NgbDateAdapter }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef } -]; -NgbInputDatepicker.propDecorators = { - autoClose: [{ type: Input }], - dayTemplate: [{ type: Input }], - dayTemplateData: [{ type: Input }], - displayMonths: [{ type: Input }], - firstDayOfWeek: [{ type: Input }], - footerTemplate: [{ type: Input }], - markDisabled: [{ type: Input }], - minDate: [{ type: Input }], - maxDate: [{ type: Input }], - navigation: [{ type: Input }], - outsideDays: [{ type: Input }], - placement: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - startDate: [{ type: Input }], - container: [{ type: Input }], - positionTarget: [{ type: Input }], - dateSelect: [{ type: Output }], - navigate: [{ type: Output }], - closed: [{ type: Output }], - disabled: [{ type: Input }] -}; -if (false) { - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._cRef; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._disabled; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._model; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._inputValue; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._zoneSubscription; - /** - * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not. - * - * * `true` - the popup will close on both date selection and outside click. - * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the popup will close on date selection, but not outside clicks. - * * `"outside"` - the popup will close only on the outside click and not on date selection/inside clicks. - * - * \@since 3.0.0 - * @type {?} - */ - NgbInputDatepicker.prototype.autoClose; - /** - * The reference to a custom template for the day. - * - * Allows to completely override the way a day 'cell' in the calendar is displayed. - * - * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside. - * @type {?} - */ - NgbInputDatepicker.prototype.dayTemplate; - /** - * The callback to pass any arbitrary data to the template cell via the - * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter. - * - * `current` is the month that is currently displayed by the datepicker. - * - * \@since 3.3.0 - * @type {?} - */ - NgbInputDatepicker.prototype.dayTemplateData; - /** - * The number of months to display. - * @type {?} - */ - NgbInputDatepicker.prototype.displayMonths; - /** - * The first day of the week. - * - * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun. - * @type {?} - */ - NgbInputDatepicker.prototype.firstDayOfWeek; - /** - * The reference to the custom template for the datepicker footer. - * - * \@since 3.3.0 - * @type {?} - */ - NgbInputDatepicker.prototype.footerTemplate; - /** - * The callback to mark some dates as disabled. - * - * It is called for each new date when navigating to a different month. - * - * `current` is the month that is currently displayed by the datepicker. - * @type {?} - */ - NgbInputDatepicker.prototype.markDisabled; - /** - * The earliest date that can be displayed or selected. Also used for form validation. - * - * If not provided, 'year' select box will display 10 years before the current month. - * @type {?} - */ - NgbInputDatepicker.prototype.minDate; - /** - * The latest date that can be displayed or selected. Also used for form validation. - * - * If not provided, 'year' select box will display 10 years after the current month. - * @type {?} - */ - NgbInputDatepicker.prototype.maxDate; - /** - * Navigation type. - * - * * `"select"` - select boxes for month and navigation arrows - * * `"arrows"` - only navigation arrows - * * `"none"` - no navigation visible at all - * @type {?} - */ - NgbInputDatepicker.prototype.navigation; - /** - * The way of displaying days that don't belong to the current month. - * - * * `"visible"` - days are visible - * * `"hidden"` - days are hidden, white space preserved - * * `"collapsed"` - days are collapsed, so the datepicker height might change between months - * - * For the 2+ months view, days in between months are never shown. - * @type {?} - */ - NgbInputDatepicker.prototype.outsideDays; - /** - * The preferred placement of the datepicker popup. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - * @type {?} - */ - NgbInputDatepicker.prototype.placement; - /** - * If `true`, weekdays will be displayed. - * @type {?} - */ - NgbInputDatepicker.prototype.showWeekdays; - /** - * If `true`, week numbers will be displayed. - * @type {?} - */ - NgbInputDatepicker.prototype.showWeekNumbers; - /** - * The date to open calendar with. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date is provided, calendar will open with current month. - * - * You could use `navigateTo(date)` method as an alternative. - * @type {?} - */ - NgbInputDatepicker.prototype.startDate; - /** - * A selector specifying the element the datepicker popup should be appended to. - * - * Currently only supports `"body"`. - * @type {?} - */ - NgbInputDatepicker.prototype.container; - /** - * A css selector or html element specifying the element the datepicker popup should be positioned against. - * - * By default the input is used as a target. - * - * \@since 4.2.0 - * @type {?} - */ - NgbInputDatepicker.prototype.positionTarget; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - * - * \@since 1.1.1 - * @type {?} - */ - NgbInputDatepicker.prototype.dateSelect; - /** - * Event emitted right after the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - * @type {?} - */ - NgbInputDatepicker.prototype.navigate; - /** - * An event fired after closing datepicker window. - * - * \@since 4.2.0 - * @type {?} - */ - NgbInputDatepicker.prototype.closed; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._onChange; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._onTouched; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._validatorChange; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._parserFormatter; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._elRef; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._vcRef; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._cfr; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._service; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._calendar; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._dateAdapter; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._document; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._changeDetector; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1pbnB1dC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci1pbnB1dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLGlCQUFpQixFQUNqQix3QkFBd0IsRUFFeEIsU0FBUyxFQUNULFVBQVUsRUFDVixZQUFZLEVBQ1osVUFBVSxFQUNWLE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxFQUdOLE1BQU0sRUFDTixTQUFTLEVBRVQsV0FBVyxFQUNYLGdCQUFnQixFQUNqQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUF3QyxhQUFhLEVBQUUsaUJBQWlCLEVBQVksTUFBTSxnQkFBZ0IsQ0FBQztBQUVsSCxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFDL0MsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLG9CQUFvQixDQUFDO0FBQ2hELE9BQU8sRUFBaUIsZ0JBQWdCLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUVyRSxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sNkJBQTZCLENBQUM7QUFDM0QsT0FBTyxFQUFDLGFBQWEsRUFBNkIsTUFBTSxjQUFjLENBQUM7QUFFdkUsT0FBTyxFQUFDLG9CQUFvQixFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFDMUQsT0FBT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W9uVGFyZ2V0IGluc3RhbmNlb2YgSFRNTEVsZW1lbnQpIHtcbiAgICAgIGhvc3RFbGVtZW50ID0gdGhpcy5wb3NpdGlvblRhcmdldDtcbiAgICB9IGVsc2Uge1xuICAgICAgaG9zdEVsZW1lbnQgPSB0aGlzLl9lbFJlZi5uYXRpdmVFbGVtZW50O1xuICAgIH1cblxuICAgIGlmICh0aGlzLnBvc2l0aW9uVGFyZ2V0ICYmICFob3N0RWxlbWVudCkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKCduZ2JEYXRlcGlja2VyIGNvdWxkIG5vdCBmaW5kIGVsZW1lbnQgZGVjbGFyZWQgaW4gW3Bvc2l0aW9uVGFyZ2V0XSB0byBwb3NpdGlvbiBhZ2FpbnN0LicpO1xuICAgIH1cblxuICAgIHBvc2l0aW9uRWxlbWVudHMoaG9zdEVsZW1lbnQsIHRoaXMuX2NSZWYubG9jYXRpb24ubmF0aXZlRWxlbWVudCwgdGhpcy5wbGFjZW1lbnQsIHRoaXMuY29udGFpbmVyID09PSAnYm9keScpO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-keymap-service.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-keymap-service.js deleted file mode 100644 index 1578260..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-keymap-service.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import { NgbDatepickerService } from './datepicker-service'; -import { NgbCalendar } from './ngb-calendar'; -import { Key } from '../util/key'; -export class NgbDatepickerKeyMapService { - /** - * @param {?} _service - * @param {?} _calendar - */ - constructor(_service, _calendar) { - this._service = _service; - this._calendar = _calendar; - _service.model$.subscribe((/** - * @param {?} model - * @return {?} - */ - model => { - this._minDate = model.minDate; - this._maxDate = model.maxDate; - this._firstViewDate = model.firstDate; - this._lastViewDate = model.lastDate; - })); - } - /** - * @param {?} event - * @return {?} - */ - processKey(event) { - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.PageUp: - this._service.focusMove(event.shiftKey ? 'y' : 'm', -1); - break; - case Key.PageDown: - this._service.focusMove(event.shiftKey ? 'y' : 'm', 1); - break; - case Key.End: - this._service.focus(event.shiftKey ? this._maxDate : this._lastViewDate); - break; - case Key.Home: - this._service.focus(event.shiftKey ? this._minDate : this._firstViewDate); - break; - case Key.ArrowLeft: - this._service.focusMove('d', -1); - break; - case Key.ArrowUp: - this._service.focusMove('d', -this._calendar.getDaysPerWeek()); - break; - case Key.ArrowRight: - this._service.focusMove('d', 1); - break; - case Key.ArrowDown: - this._service.focusMove('d', this._calendar.getDaysPerWeek()); - break; - case Key.Enter: - case Key.Space: - this._service.focusSelect(); - break; - default: - return; - } - // note 'return' in default case - event.preventDefault(); - event.stopPropagation(); - } -} -NgbDatepickerKeyMapService.decorators = [ - { type: Injectable } -]; -/** @nocollapse */ -NgbDatepickerKeyMapService.ctorParameters = () => [ - { type: NgbDatepickerService }, - { type: NgbCalendar } -]; -if (false) { - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._minDate; - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._maxDate; - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._firstViewDate; - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._lastViewDate; - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._service; - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._calendar; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1rZXltYXAtc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRh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uJyBpbiBkZWZhdWx0IGNhc2VcbiAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgIGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-month-view.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-month-view.js deleted file mode 100644 index 77e02c6..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-month-view.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, TemplateRef, Output, EventEmitter, ViewEncapsulation } from '@angular/core'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -export class NgbDatepickerMonthView { - /** - * @param {?} i18n - */ - constructor(i18n) { - this.i18n = i18n; - this.select = new EventEmitter(); - } - /** - * @param {?} day - * @return {?} - */ - doSelect(day) { - if (!day.context.disabled && !day.hidden) { - this.select.emit(day.date); - } - } -} -NgbDatepickerMonthView.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-month-view', - host: { 'role': 'grid' }, - encapsulation: ViewEncapsulation.None, - template: ` -
-
-
- {{ i18n.getWeekdayShortName(w) }} -
-
- -
-
{{ i18n.getWeekNumerals(week.number) }}
-
- - - -
-
-
- `, - styles: ["ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}"] - }] } -]; -/** @nocollapse */ -NgbDatepickerMonthView.ctorParameters = () => [ - { type: NgbDatepickerI18n } -]; -NgbDatepickerMonthView.propDecorators = { - dayTemplate: [{ type: Input }], - month: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - select: [{ type: Output }] -}; -if (false) { - /** @type {?} */ - NgbDatepickerMonthView.prototype.dayTemplate; - /** @type {?} */ - NgbDatepickerMonthView.prototype.month; - /** @type {?} */ - NgbDatepickerMonthView.prototype.showWeekdays; - /** @type {?} */ - NgbDatepickerMonthView.prototype.showWeekNumbers; - /** @type {?} */ - NgbDatepickerMonthView.prototype.select; - /** @type {?} */ - NgbDatepickerMonthView.prototype.i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1tb250aC12aWV3LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9kYXRlcGlja2VyLW1vbnRoLXZpZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFFLFdBQVcsRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLGlCQUFpQixFQUFDLE1BQU0sZUFBZSxDQUFDO0FBR3JHLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBZ0NwRCxNQUFNLE9BQU8sc0JBQXNCOzs7O0lBUWpDLFlBQW1CLElBQXVCO1FBQXZCLFNBQUksR0FBSixJQUFJLENBQW1CO1FBRmhDLFdBQU0sR0FBRyxJQUFJLFlBQVksRUFBVyxDQUFDO0lBRUYsQ0FBQzs7Ozs7SUFFOUMsUUFBUSxDQUFDLEdBQWlCO1FBQ3hCLElBQUksQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLFFBQVEsSUFBSSx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dWJsaWMgaTE4bjogTmdiRGF0ZXBpY2tlckkxOG4pIHt9XG5cbiAgZG9TZWxlY3QoZGF5OiBEYXlWaWV3TW9kZWwpIHtcbiAgICBpZiAoIWRheS5jb250ZXh0LmRpc2FibGVkICYmICFkYXkuaGlkZGVuKSB7XG4gICAgICB0aGlzLnNlbGVjdC5lbWl0KGRheS5kYXRlKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-navigation-select.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-navigation-select.js deleted file mode 100644 index e1be06b..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-navigation-select.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core'; -import { NgbDate } from './ngb-date'; -import { toInteger } from '../util/util'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -export class NgbDatepickerNavigationSelect { - /** - * @param {?} i18n - */ - constructor(i18n) { - this.i18n = i18n; - this.select = new EventEmitter(); - } - /** - * @param {?} month - * @return {?} - */ - changeMonth(month) { this.select.emit(new NgbDate(this.date.year, toInteger(month), 1)); } - /** - * @param {?} year - * @return {?} - */ - changeYear(year) { this.select.emit(new NgbDate(toInteger(year), this.date.month, 1)); } -} -NgbDatepickerNavigationSelect.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-navigation-select', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: ` - - `, - styles: ["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}"] - }] } -]; -/** @nocollapse */ -NgbDatepickerNavigationSelect.ctorParameters = () => [ - { type: NgbDatepickerI18n } -]; -NgbDatepickerNavigationSelect.propDecorators = { - date: [{ type: Input }], - disabled: [{ type: Input }], - months: [{ type: Input }], - years: [{ type: Input }], - select: [{ type: Output }] -}; -if (false) { - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.date; - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.disabled; - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.months; - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.years; - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.select; - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1uYXZpZ2F0aW9uLXNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci1uYXZpZ2F0aW9uLXNlbGVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNqSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sWUFBWSxDQUFDO0FBQ25DLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFDdkMsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUE0QnBELE1BQU0sT0FBTyw2QkFBNkI7Ozs7SUFReEMsWUFBbUIsSUFBdUI7UUFBdkIsU0FBSSxHQUFKLElBQUksQ0FBbUI7UUFGaEMsV0FBTSxHQUFHLElBQUksWUFBWSxFQUFXLENBQUM7SUFFRixDQUFDOzs7OztJ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h0aGlzLmRhdGUueWVhciwgdG9JbnRlZ2VyKG1vbnRoKSwgMSkpOyB9XG5cbiAgY2hhbmdlWWVhcih5ZWFyOiBzdHJpbmcpIHsgdGhpcy5zZWxlY3QuZW1pdChuZXcgTmdiRGF0ZSh0b0ludGVnZXIoeWVhciksIHRoaXMuZGF0ZS5tb250aCwgMSkpOyB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-navigation.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-navigation.js deleted file mode 100644 index 468fd1b..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-navigation.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core'; -import { NavigationEvent } from './datepicker-view-model'; -import { NgbDate } from './ngb-date'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -export class NgbDatepickerNavigation { - /** - * @param {?} i18n - */ - constructor(i18n) { - this.i18n = i18n; - this.navigation = NavigationEvent; - this.months = []; - this.navigate = new EventEmitter(); - this.select = new EventEmitter(); - } -} -NgbDatepickerNavigation.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-navigation', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: ` -
- -
- - - - -
-
- {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }} -
-
-
-
- -
- `, - styles: ["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"] - }] } -]; -/** @nocollapse */ -NgbDatepickerNavigation.ctorParameters = () => [ - { type: NgbDatepickerI18n } -]; -NgbDatepickerNavigation.propDecorators = { - date: [{ type: Input }], - disabled: [{ type: Input }], - months: [{ type: Input }], - showSelect: [{ type: Input }], - prevDisabled: [{ type: Input }], - nextDisabled: [{ type: Input }], - selectBoxes: [{ type: Input }], - navigate: [{ type: Output }], - select: [{ type: Output }] -}; -if (false) { - /** @type {?} */ - NgbDatepickerNavigation.prototype.navigation; - /** @type {?} */ - NgbDatepickerNavigation.prototype.date; - /** @type {?} */ - NgbDatepickerNavigation.prototype.disabled; - /** @type {?} */ - NgbDatepickerNavigation.prototype.months; - /** @type {?} */ - NgbDatepickerNavigation.prototype.showSelect; - /** @type {?} */ - NgbDatepickerNavigation.prototype.prevDisabled; - /** @type {?} */ - NgbDatepickerNavigation.prototype.nextDisabled; - /** @type {?} */ - NgbDatepickerNavigation.prototype.selectBoxes; - /** @type {?} */ - NgbDatepickerNavigation.prototype.navigate; - /** @type {?} */ - NgbDatepickerNavigation.prototype.select; - /** @type {?} */ - NgbDatepickerNavigation.prototype.i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF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rZXJOYXZpZ2F0aW9uIHtcbiAgbmF2aWdhdGlvbiA9IE5hdmlnYXRpb25FdmVudDtcblxuICBASW5wdXQoKSBkYXRlOiBOZ2JEYXRlO1xuICBASW5wdXQoKSBkaXNhYmxlZDogYm9vbGVhbjtcbiAgQElucHV0KCkgbW9udGhzOiBNb250aFZpZXdNb2RlbFtdID0gW107XG4gIEBJbnB1dCgpIHNob3dTZWxlY3Q6IGJvb2xlYW47XG4gIEBJbnB1dCgpIHByZXZEaXNhYmxlZDogYm9vbGVhbjtcbiAgQElucHV0KCkgbmV4dERpc2FibGVkOiBib29sZWFuO1xuICBASW5wdXQoKSBzZWxlY3RCb3hlczoge3llYXJzOiBudW1iZXJbXSwgbW9udGhzOiBudW1iZXJbXX07XG5cbiAgQE91dHB1dCgpIG5hdmlnYXRlID0gbmV3IEV2ZW50RW1pdHRlcjxOYXZpZ2F0aW9uRXZlbnQ+KCk7XG4gIEBPdXRwdXQoKSBzZWxlY3QgPSBuZXcgRXZlbnRFbWl0dGVyPE5nYkRhdGU+KCk7XG5cbiAgY29uc3RydWN0b3IocHVibGljIGkxOG46IE5nYkRhdGVwaWNrZXJJMThuKSB7fVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-service.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-service.js deleted file mode 100644 index 4f0f07b..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-service.js +++ /dev/null @@ -1,404 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbCalendar } from './ngb-calendar'; -import { NgbDate } from './ngb-date'; -import { Injectable } from '@angular/core'; -import { isInteger, toInteger } from '../util/util'; -import { Subject } from 'rxjs'; -import { buildMonths, checkDateInRange, checkMinBeforeMax, isChangedDate, isChangedMonth, isDateSelectable, generateSelectBoxYears, generateSelectBoxMonths, prevMonthDisabled, nextMonthDisabled } from './datepicker-tools'; -import { filter } from 'rxjs/operators'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -export class NgbDatepickerService { - /** - * @param {?} _calendar - * @param {?} _i18n - */ - constructor(_calendar, _i18n) { - this._calendar = _calendar; - this._i18n = _i18n; - this._model$ = new Subject(); - this._select$ = new Subject(); - this._state = { - disabled: false, - displayMonths: 1, - firstDayOfWeek: 1, - focusVisible: false, - months: [], - navigation: 'select', - outsideDays: 'visible', - prevDisabled: false, - nextDisabled: false, - selectBoxes: { years: [], months: [] }, - selectedDate: null - }; - } - /** - * @return {?} - */ - get model$() { return this._model$.pipe(filter((/** - * @param {?} model - * @return {?} - */ - model => model.months.length > 0))); } - /** - * @return {?} - */ - get select$() { return this._select$.pipe(filter((/** - * @param {?} date - * @return {?} - */ - date => date !== null))); } - /** - * @param {?} dayTemplateData - * @return {?} - */ - set dayTemplateData(dayTemplateData) { - if (this._state.dayTemplateData !== dayTemplateData) { - this._nextState({ dayTemplateData }); - } - } - /** - * @param {?} disabled - * @return {?} - */ - set disabled(disabled) { - if (this._state.disabled !== disabled) { - this._nextState({ disabled }); - } - } - /** - * @param {?} displayMonths - * @return {?} - */ - set displayMonths(displayMonths) { - displayMonths = toInteger(displayMonths); - if (isInteger(displayMonths) && displayMonths > 0 && this._state.displayMonths !== displayMonths) { - this._nextState({ displayMonths }); - } - } - /** - * @param {?} firstDayOfWeek - * @return {?} - */ - set firstDayOfWeek(firstDayOfWeek) { - firstDayOfWeek = toInteger(firstDayOfWeek); - if (isInteger(firstDayOfWeek) && firstDayOfWeek >= 0 && this._state.firstDayOfWeek !== firstDayOfWeek) { - this._nextState({ firstDayOfWeek }); - } - } - /** - * @param {?} focusVisible - * @return {?} - */ - set focusVisible(focusVisible) { - if (this._state.focusVisible !== focusVisible && !this._state.disabled) { - this._nextState({ focusVisible }); - } - } - /** - * @param {?} date - * @return {?} - */ - set maxDate(date) { - /** @type {?} */ - const maxDate = this.toValidDate(date, null); - if (isChangedDate(this._state.maxDate, maxDate)) { - this._nextState({ maxDate }); - } - } - /** - * @param {?} markDisabled - * @return {?} - */ - set markDisabled(markDisabled) { - if (this._state.markDisabled !== markDisabled) { - this._nextState({ markDisabled }); - } - } - /** - * @param {?} date - * @return {?} - */ - set minDate(date) { - /** @type {?} */ - const minDate = this.toValidDate(date, null); - if (isChangedDate(this._state.minDate, minDate)) { - this._nextState({ minDate }); - } - } - /** - * @param {?} navigation - * @return {?} - */ - set navigation(navigation) { - if (this._state.navigation !== navigation) { - this._nextState({ navigation }); - } - } - /** - * @param {?} outsideDays - * @return {?} - */ - set outsideDays(outsideDays) { - if (this._state.outsideDays !== outsideDays) { - this._nextState({ outsideDays }); - } - } - /** - * @param {?} date - * @return {?} - */ - focus(date) { - if (!this._state.disabled && this._calendar.isValid(date) && isChangedDate(this._state.focusDate, date)) { - this._nextState({ focusDate: date }); - } - } - /** - * @param {?=} period - * @param {?=} number - * @return {?} - */ - focusMove(period, number) { - this.focus(this._calendar.getNext(this._state.focusDate, period, number)); - } - /** - * @return {?} - */ - focusSelect() { - if (isDateSelectable(this._state.focusDate, this._state)) { - this.select(this._state.focusDate, { emitEvent: true }); - } - } - /** - * @param {?} date - * @return {?} - */ - open(date) { - /** @type {?} */ - const firstDate = this.toValidDate(date, this._calendar.getToday()); - if (!this._state.disabled && (!this._state.firstDate || isChangedMonth(this._state.firstDate, date))) { - this._nextState({ firstDate }); - } - } - /** - * @param {?} date - * @param {?=} options - * @return {?} - */ - select(date, options = {}) { - /** @type {?} */ - const selectedDate = this.toValidDate(date, null); - if (!this._state.disabled) { - if (isChangedDate(this._state.selectedDate, selectedDate)) { - this._nextState({ selectedDate }); - } - if (options.emitEvent && isDateSelectable(selectedDate, this._state)) { - this._select$.next(selectedDate); - } - } - } - /** - * @param {?} date - * @param {?=} defaultValue - * @return {?} - */ - toValidDate(date, defaultValue) { - /** @type {?} */ - const ngbDate = NgbDate.from(date); - if (defaultValue === undefined) { - defaultValue = this._calendar.getToday(); - } - return this._calendar.isValid(ngbDate) ? ngbDate : defaultValue; - } - /** - * @private - * @param {?} patch - * @return {?} - */ - _nextState(patch) { - /** @type {?} */ - const newState = this._updateState(patch); - this._patchContexts(newState); - this._state = newState; - this._model$.next(this._state); - } - /** - * @private - * @param {?} state - * @return {?} - */ - _patchContexts(state) { - const { months, displayMonths, selectedDate, focusDate, focusVisible, disabled, outsideDays } = state; - state.months.forEach((/** - * @param {?} month - * @return {?} - */ - month => { - month.weeks.forEach((/** - * @param {?} week - * @return {?} - */ - week => { - week.days.forEach((/** - * @param {?} day - * @return {?} - */ - day => { - // patch focus flag - if (focusDate) { - day.context.focused = focusDate.equals(day.date) && focusVisible; - } - // calculating tabindex - day.tabindex = !disabled && day.date.equals(focusDate) && focusDate.month === month.number ? 0 : -1; - // override context disabled - if (disabled === true) { - day.context.disabled = true; - } - // patch selection flag - if (selectedDate !== undefined) { - day.context.selected = selectedDate !== null && selectedDate.equals(day.date); - } - // visibility - if (month.number !== day.date.month) { - day.hidden = outsideDays === 'hidden' || outsideDays === 'collapsed' || - (displayMonths > 1 && day.date.after(months[0].firstDate) && - day.date.before(months[displayMonths - 1].lastDate)); - } - })); - })); - })); - } - /** - * @private - * @param {?} patch - * @return {?} - */ - _updateState(patch) { - // patching fields - /** @type {?} */ - const state = Object.assign({}, this._state, patch); - /** @type {?} */ - let startDate = state.firstDate; - // min/max dates changed - if ('minDate' in patch || 'maxDate' in patch) { - checkMinBeforeMax(state.minDate, state.maxDate); - state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate); - state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate); - startDate = state.focusDate; - } - // disabled - if ('disabled' in patch) { - state.focusVisible = false; - } - // initial rebuild via 'select()' - if ('selectedDate' in patch && this._state.months.length === 0) { - startDate = state.selectedDate; - } - // terminate early if only focus visibility was changed - if ('focusVisible' in patch) { - return state; - } - // focus date changed - if ('focusDate' in patch) { - state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate); - startDate = state.focusDate; - // nothing to rebuild if only focus changed and it is still visible - if (state.months.length !== 0 && !state.focusDate.before(state.firstDate) && - !state.focusDate.after(state.lastDate)) { - return state; - } - } - // first date changed - if ('firstDate' in patch) { - state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate); - startDate = state.firstDate; - } - // rebuilding months - if (startDate) { - /** @type {?} */ - const forceRebuild = 'dayTemplateData' in patch || 'firstDayOfWeek' in patch || 'markDisabled' in patch || - 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch || 'outsideDays' in patch; - /** @type {?} */ - const months = buildMonths(this._calendar, startDate, state, this._i18n, forceRebuild); - // updating months and boundary dates - state.months = months; - state.firstDate = months.length > 0 ? months[0].firstDate : undefined; - state.lastDate = months.length > 0 ? months[months.length - 1].lastDate : undefined; - // reset selected date if 'markDisabled' returns true - if ('selectedDate' in patch && !isDateSelectable(state.selectedDate, state)) { - state.selectedDate = null; - } - // adjusting focus after months were built - if ('firstDate' in patch) { - if (state.focusDate === undefined || state.focusDate.before(state.firstDate) || - state.focusDate.after(state.lastDate)) { - state.focusDate = startDate; - } - } - // adjusting months/years for the select box navigation - /** @type {?} */ - const yearChanged = !this._state.firstDate || this._state.firstDate.year !== state.firstDate.year; - /** @type {?} */ - const monthChanged = !this._state.firstDate || this._state.firstDate.month !== state.firstDate.month; - if (state.navigation === 'select') { - // years -> boundaries (min/max were changed) - if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.years.length === 0 || yearChanged) { - state.selectBoxes.years = generateSelectBoxYears(state.firstDate, state.minDate, state.maxDate); - } - // months -> when current year or boundaries change - if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.months.length === 0 || yearChanged) { - state.selectBoxes.months = - generateSelectBoxMonths(this._calendar, state.firstDate, state.minDate, state.maxDate); - } - } - else { - state.selectBoxes = { years: [], months: [] }; - } - // updating navigation arrows -> boundaries change (min/max) or month/year changes - if ((state.navigation === 'arrows' || state.navigation === 'select') && - (monthChanged || yearChanged || 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch)) { - state.prevDisabled = state.disabled || prevMonthDisabled(this._calendar, state.firstDate, state.minDate); - state.nextDisabled = state.disabled || nextMonthDisabled(this._calendar, state.lastDate, state.maxDate); - } - } - return state; - } -} -NgbDatepickerService.decorators = [ - { type: Injectable } -]; -/** @nocollapse */ -NgbDatepickerService.ctorParameters = () => [ - { type: NgbCalendar }, - { type: NgbDatepickerI18n } -]; -if (false) { - /** - * @type {?} - * @private - */ - NgbDatepickerService.prototype._model$; - /** - * @type {?} - * @private - */ - NgbDatepickerService.prototype._select$; - /** - * @type {?} - * @private - */ - NgbDatepickerService.prototype._state; - /** - * @type {?} - * @private - */ - NgbDatepickerService.prototype._calendar; - /** - * @type {?} - * @private - */ - NgbDatepickerService.prototype._i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9kYXRlcGlja2VyLXNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxXQUFXLEVBQVksTUFBTSxnQkFBZ0IsQ0FBQztBQUN0RCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sWUFBWSxDQUFDO0FBR25DLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLFNBQVMsRUFBRSxTQUFTLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFDbEQsT0FBTyxFQUFhLE9BQU8sRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUN6QyxPQUFPLEVBQ0wsV0FBVyxFQUNYLGdCQUFnQixFQUNoQixpQkFBaUIsRUFDakIsYUFBYSxFQUNiLGNBQ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AgIChtb250aENoYW5nZWQgfHwgeWVhckNoYW5nZWQgfHwgJ21pbkRhdGUnIGluIHBhdGNoIHx8ICdtYXhEYXRlJyBpbiBwYXRjaCB8fCAnZGlzYWJsZWQnIGluIHBhdGNoKSkge1xuICAgICAgICBzdGF0ZS5wcmV2RGlzYWJsZWQgPSBzdGF0ZS5kaXNhYmxlZCB8fCBwcmV2TW9udGhEaXNhYmxlZCh0aGlzLl9jYWxlbmRhciwgc3RhdGUuZmlyc3REYXRlLCBzdGF0ZS5taW5EYXRlKTtcbiAgICAgICAgc3RhdGUubmV4dERpc2FibGVkID0gc3RhdGUuZGlzYWJsZWQgfHwgbmV4dE1vbnRoRGlzYWJsZWQodGhpcy5fY2FsZW5kYXIsIHN0YXRlLmxhc3REYXRlLCBzdGF0ZS5tYXhEYXRlKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gc3RhdGU7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-tools.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-tools.js deleted file mode 100644 index 119eb73..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-tools.js +++ /dev/null @@ -1,301 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbDate } from './ngb-date'; -import { isDefined } from '../util/util'; -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -export function isChangedDate(prev, next) { - return !dateComparator(prev, next); -} -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -export function isChangedMonth(prev, next) { - return !prev && !next ? false : !prev || !next ? true : prev.year !== next.year || prev.month !== next.month; -} -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -export function dateComparator(prev, next) { - return (!prev && !next) || (!!prev && !!next && prev.equals(next)); -} -/** - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -export function checkMinBeforeMax(minDate, maxDate) { - if (maxDate && minDate && maxDate.before(minDate)) { - throw new Error(`'maxDate' ${maxDate} should be greater than 'minDate' ${minDate}`); - } -} -/** - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -export function checkDateInRange(date, minDate, maxDate) { - if (date && minDate && date.before(minDate)) { - return minDate; - } - if (date && maxDate && date.after(maxDate)) { - return maxDate; - } - return date; -} -/** - * @param {?} date - * @param {?} state - * @return {?} - */ -export function isDateSelectable(date, state) { - const { minDate, maxDate, disabled, markDisabled } = state; - // clang-format off - return !(!isDefined(date) || - disabled || - (markDisabled && markDisabled(date, { year: date.year, month: date.month })) || - (minDate && date.before(minDate)) || - (maxDate && date.after(maxDate))); - // clang-format on -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -export function generateSelectBoxMonths(calendar, date, minDate, maxDate) { - if (!date) { - return []; - } - /** @type {?} */ - let months = calendar.getMonths(date.year); - if (minDate && date.year === minDate.year) { - /** @type {?} */ - const index = months.findIndex((/** - * @param {?} month - * @return {?} - */ - month => month === minDate.month)); - months = months.slice(index); - } - if (maxDate && date.year === maxDate.year) { - /** @type {?} */ - const index = months.findIndex((/** - * @param {?} month - * @return {?} - */ - month => month === maxDate.month)); - months = months.slice(0, index + 1); - } - return months; -} -/** - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -export function generateSelectBoxYears(date, minDate, maxDate) { - if (!date) { - return []; - } - /** @type {?} */ - const start = minDate && minDate.year || date.year - 10; - /** @type {?} */ - const end = maxDate && maxDate.year || date.year + 10; - return Array.from({ length: end - start + 1 }, (/** - * @param {?} e - * @param {?} i - * @return {?} - */ - (e, i) => start + i)); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} maxDate - * @return {?} - */ -export function nextMonthDisabled(calendar, date, maxDate) { - return maxDate && calendar.getNext(date, 'm').after(maxDate); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} minDate - * @return {?} - */ -export function prevMonthDisabled(calendar, date, minDate) { - /** @type {?} */ - const prevDate = calendar.getPrev(date, 'm'); - return minDate && (prevDate.year === minDate.year && prevDate.month < minDate.month || - prevDate.year < minDate.year && minDate.month === 1); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} state - * @param {?} i18n - * @param {?} force - * @return {?} - */ -export function buildMonths(calendar, date, state, i18n, force) { - const { displayMonths, months } = state; - // move old months to a temporary array - /** @type {?} */ - const monthsToReuse = months.splice(0, months.length); - // generate new first dates, nullify or reuse months - /** @type {?} */ - const firstDates = Array.from({ length: displayMonths }, (/** - * @param {?} _ - * @param {?} i - * @return {?} - */ - (_, i) => { - /** @type {?} */ - const firstDate = calendar.getNext(date, 'm', i); - months[i] = null; - if (!force) { - /** @type {?} */ - const reusedIndex = monthsToReuse.findIndex((/** - * @param {?} month - * @return {?} - */ - month => month.firstDate.equals(firstDate))); - // move reused month back to months - if (reusedIndex !== -1) { - months[i] = monthsToReuse.splice(reusedIndex, 1)[0]; - } - } - return firstDate; - })); - // rebuild nullified months - firstDates.forEach((/** - * @param {?} firstDate - * @param {?} i - * @return {?} - */ - (firstDate, i) => { - if (months[i] === null) { - months[i] = buildMonth(calendar, firstDate, state, i18n, monthsToReuse.shift() || (/** @type {?} */ ({}))); - } - })); - return months; -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} state - * @param {?} i18n - * @param {?=} month - * @return {?} - */ -export function buildMonth(calendar, date, state, i18n, month = (/** @type {?} */ ({}))) { - const { dayTemplateData, minDate, maxDate, firstDayOfWeek, markDisabled, outsideDays } = state; - /** @type {?} */ - const calendarToday = calendar.getToday(); - month.firstDate = null; - month.lastDate = null; - month.number = date.month; - month.year = date.year; - month.weeks = month.weeks || []; - month.weekdays = month.weekdays || []; - date = getFirstViewDate(calendar, date, firstDayOfWeek); - // month has weeks - for (let week = 0; week < calendar.getWeeksPerMonth(); week++) { - /** @type {?} */ - let weekObject = month.weeks[week]; - if (!weekObject) { - weekObject = month.weeks[week] = { number: 0, days: [], collapsed: true }; - } - /** @type {?} */ - const days = weekObject.days; - // week has days - for (let day = 0; day < calendar.getDaysPerWeek(); day++) { - if (week === 0) { - month.weekdays[day] = calendar.getWeekday(date); - } - /** @type {?} */ - const newDate = new NgbDate(date.year, date.month, date.day); - /** @type {?} */ - const nextDate = calendar.getNext(newDate); - /** @type {?} */ - const ariaLabel = i18n.getDayAriaLabel(newDate); - // marking date as disabled - /** @type {?} */ - let disabled = !!((minDate && newDate.before(minDate)) || (maxDate && newDate.after(maxDate))); - if (!disabled && markDisabled) { - disabled = markDisabled(newDate, { month: month.number, year: month.year }); - } - // today - /** @type {?} */ - let today = newDate.equals(calendarToday); - // adding user-provided data to the context - /** @type {?} */ - let contextUserData = dayTemplateData ? dayTemplateData(newDate, { month: month.number, year: month.year }) : undefined; - // saving first date of the month - if (month.firstDate === null && newDate.month === month.number) { - month.firstDate = newDate; - } - // saving last date of the month - if (newDate.month === month.number && nextDate.month !== month.number) { - month.lastDate = newDate; - } - /** @type {?} */ - let dayObject = days[day]; - if (!dayObject) { - dayObject = days[day] = (/** @type {?} */ ({})); - } - dayObject.date = newDate; - dayObject.context = Object.assign(dayObject.context || {}, { - $implicit: newDate, - date: newDate, - data: contextUserData, - currentMonth: month.number, disabled, - focused: false, - selected: false, today - }); - dayObject.tabindex = -1; - dayObject.ariaLabel = ariaLabel; - dayObject.hidden = false; - date = nextDate; - } - weekObject.number = calendar.getWeekNumber(days.map((/** - * @param {?} day - * @return {?} - */ - day => day.date)), firstDayOfWeek); - // marking week as collapsed - weekObject.collapsed = outsideDays === 'collapsed' && days[0].date.month !== month.number && - days[days.length - 1].date.month !== month.number; - } - return month; -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} firstDayOfWeek - * @return {?} - */ -export function getFirstViewDate(calendar, date, firstDayOfWeek) { - /** @type {?} */ - const daysPerWeek = calendar.getDaysPerWeek(); - /** @type {?} */ - const firstMonthDate = new NgbDate(date.year, date.month, 1); - /** @type {?} */ - const dayOfWeek = calendar.getWeekday(firstMonthDate) % daysPerWeek; - return calendar.getPrev(firstMonthDate, 'd', (daysPerWeek + dayOfWeek - firstDayOfWeek) % daysPerWeek); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci10b29scy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci10b29scy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLFlBQVksQ0FBQztBQUduQyxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sY0FBYyxDQUFDOzs7Ozs7QUFHdkMsTUFBTSxVQUFVLGFBQWEsQ0FBQyxJQUFhLEVBQUUsSUFBYTtJQUN4RCxPQUFPLENBQUMsY0FBYyxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztBQUNyQyxDQUFDOzs7Ozs7QUFFRCxNQUFNLFVBQVUsY0FBYyxDQUFDLElBQWEsRUFBRSxJQUFhO0lBQ3pELE9BQU8sQ0FBQyxJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksS0FBSyxJQUFJLENBQUMsSUFBSSxJQUFJLElBQUksQ0FBQyxLQUFLLEtBQUssSUFBSSxDQUFDLEtBQUssQ0FBQztBQUMvRyxDQUFDOzs7Ozs7QUFFRCxNQUFNLFVBQVUsY0FBYyxDQUFDLElBQWEsRUFBRSxJQUFhO0lBQ3pELE9BQU8sQ0FBQyxDQUFDLElBQUksSUFBS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cblxuICAgICAgZGF0ZSA9IG5leHREYXRlO1xuICAgIH1cblxuICAgIHdlZWtPYmplY3QubnVtYmVyID0gY2FsZW5kYXIuZ2V0V2Vla051bWJlcihkYXlzLm1hcChkYXkgPT4gZGF5LmRhdGUpLCBmaXJzdERheU9mV2Vlayk7XG5cbiAgICAvLyBtYXJraW5nIHdlZWsgYXMgY29sbGFwc2VkXG4gICAgd2Vla09iamVjdC5jb2xsYXBzZWQgPSBvdXRzaWRlRGF5cyA9PT0gJ2NvbGxhcHNlZCcgJiYgZGF5c1swXS5kYXRlLm1vbnRoICE9PSBtb250aC5udW1iZXIgJiZcbiAgICAgICAgZGF5c1tkYXlzLmxlbmd0aCAtIDFdLmRhdGUubW9udGggIT09IG1vbnRoLm51bWJlcjtcbiAgfVxuXG4gIHJldHVybiBtb250aDtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGdldEZpcnN0Vmlld0RhdGUoY2FsZW5kYXI6IE5nYkNhbGVuZGFyLCBkYXRlOiBOZ2JEYXRlLCBmaXJzdERheU9mV2VlazogbnVtYmVyKTogTmdiRGF0ZSB7XG4gIGNvbnN0IGRheXNQZXJXZWVrID0gY2FsZW5kYXIuZ2V0RGF5c1BlcldlZWsoKTtcbiAgY29uc3QgZmlyc3RNb250aERhdGUgPSBuZXcgTmdiRGF0ZShkYXRlLnllYXIsIGRhdGUubW9udGgsIDEpO1xuICBjb25zdCBkYXlPZldlZWsgPSBjYWxlbmRhci5nZXRXZWVrZGF5KGZpcnN0TW9udGhEYXRlKSAlIGRheXNQZXJXZWVrO1xuICByZXR1cm4gY2FsZW5kYXIuZ2V0UHJldihmaXJzdE1vbnRoRGF0ZSwgJ2QnLCAoZGF5c1BlcldlZWsgKyBkYXlPZldlZWsgLSBmaXJzdERheU9mV2VlaykgJSBkYXlzUGVyV2Vlayk7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker-view-model.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker-view-model.js deleted file mode 100644 index f8fec94..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker-view-model.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -const NavigationEvent = { - PREV: 0, - NEXT: 1, -}; -export { NavigationEvent }; -NavigationEvent[NavigationEvent.PREV] = 'PREV'; -NavigationEvent[NavigationEvent.NEXT] = 'NEXT'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci12aWV3LW1vZGVsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9kYXRlcGlja2VyLXZpZXctbW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0lBeURFLE9BQUk7SUFDSixPQUFJIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ2JEYXRlfSBmcm9tICcuL25nYi1kYXRlJztcbmltcG9ydCB7TmdiRGF0ZVN0cnVjdH0gZnJvbSAnLi9uZ2ItZGF0ZS1zdHJ1Y3QnO1xuaW1wb3J0IHtEYXlUZW1wbGF0ZUNvbnRleHR9IGZyb20gJy4vZGF0ZXBpY2tlci1kYXktdGVtcGxhdGUtY29udGV4dCc7XG5cbmV4cG9ydCB0eXBlIE5nYk1hcmtEaXNhYmxlZCA9IChkYXRlOiBOZ2JEYXRlU3RydWN0LCBjdXJyZW50OiB7eWVhcjogbnVtYmVyLCBtb250aDogbnVtYmVyfSkgPT4gYm9vbGVhbjtcbmV4cG9ydCB0eXBlIE5nYkRheVRlbXBsYXRlRGF0YSA9IChkYXRlOiBOZ2JEYXRlU3RydWN0LCBjdXJyZW50OiB7eWVhcjogbnVtYmVyL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IE1vbnRoVmlld01vZGVsW10sXG4gIG5hdmlnYXRpb246ICdzZWxlY3QnIHwgJ2Fycm93cycgfCAnbm9uZScsXG4gIG91dHNpZGVEYXlzOiAndmlzaWJsZScgfCAnY29sbGFwc2VkJyB8ICdoaWRkZW4nLFxuICBwcmV2RGlzYWJsZWQ6IGJvb2xlYW4sXG4gIG5leHREaXNhYmxlZDogYm9vbGVhbixcbiAgc2VsZWN0Qm94ZXM6IHtcbiAgICB5ZWFyczogbnVtYmVyW10sXG4gICAgbW9udGhzOiBudW1iZXJbXVxuICB9LFxuICBzZWxlY3RlZERhdGU6IE5nYkRhdGVcbn07XG4vLyBjbGFuZy1mb3JtYXQgb25cblxuZXhwb3J0IGVudW0gTmF2aWdhdGlvbkV2ZW50IHtcbiAgUFJFVixcbiAgTkVYVFxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker.js deleted file mode 100644 index d6242a8..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker.js +++ /dev/null @@ -1,573 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { fromEvent, merge, Subject } from 'rxjs'; -import { filter, take, takeUntil } from 'rxjs/operators'; -import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Input, NgZone, Output, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -import { NgbCalendar } from './ngb-calendar'; -import { NgbDate } from './ngb-date'; -import { NgbDatepickerService } from './datepicker-service'; -import { NgbDatepickerKeyMapService } from './datepicker-keymap-service'; -import { NavigationEvent } from './datepicker-view-model'; -import { NgbDatepickerConfig } from './datepicker-config'; -import { NgbDateAdapter } from './adapters/ngb-date-adapter'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -import { isChangedDate, isChangedMonth } from './datepicker-tools'; -import { hasClassName } from '../util/util'; -/** @type {?} */ -const NGB_DATEPICKER_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbDatepicker)), - multi: true -}; -/** - * An event emitted right before the navigation happens and the month displayed by the datepicker changes. - * @record - */ -export function NgbDatepickerNavigateEvent() { } -if (false) { - /** - * The currently displayed month. - * @type {?} - */ - NgbDatepickerNavigateEvent.prototype.current; - /** - * The month we're navigating to. - * @type {?} - */ - NgbDatepickerNavigateEvent.prototype.next; - /** - * Calling this function will prevent navigation from happening. - * - * \@since 4.1.0 - * @type {?} - */ - NgbDatepickerNavigateEvent.prototype.preventDefault; -} -/** - * A highly configurable component that helps you with selecting calendar dates. - * - * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup. - */ -export class NgbDatepicker { - /** - * @param {?} _keyMapService - * @param {?} _service - * @param {?} _calendar - * @param {?} i18n - * @param {?} config - * @param {?} _cd - * @param {?} _elementRef - * @param {?} _ngbDateAdapter - * @param {?} _ngZone - */ - constructor(_keyMapService, _service, _calendar, i18n, config, _cd, _elementRef, _ngbDateAdapter, _ngZone) { - this._keyMapService = _keyMapService; - this._service = _service; - this._calendar = _calendar; - this.i18n = i18n; - this._cd = _cd; - this._elementRef = _elementRef; - this._ngbDateAdapter = _ngbDateAdapter; - this._ngZone = _ngZone; - this._destroyed$ = new Subject(); - /** - * An event emitted right before the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - this.navigate = new EventEmitter(); - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - */ - this.select = new EventEmitter(); - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.onTouched = (/** - * @return {?} - */ - () => { }); - ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate', - 'maxDate', 'navigation', 'outsideDays', 'showWeekdays', 'showWeekNumbers', 'startDate'] - .forEach((/** - * @param {?} input - * @return {?} - */ - input => this[input] = config[input])); - _service.select$.pipe(takeUntil(this._destroyed$)).subscribe((/** - * @param {?} date - * @return {?} - */ - date => { this.select.emit(date); })); - _service.model$.pipe(takeUntil(this._destroyed$)).subscribe((/** - * @param {?} model - * @return {?} - */ - model => { - /** @type {?} */ - const newDate = model.firstDate; - /** @type {?} */ - const oldDate = this.model ? this.model.firstDate : null; - /** @type {?} */ - let navigationPrevented = false; - // emitting navigation event if the first month changes - if (!newDate.equals(oldDate)) { - this.navigate.emit({ - current: oldDate ? { year: oldDate.year, month: oldDate.month } : null, - next: { year: newDate.year, month: newDate.month }, - preventDefault: (/** - * @return {?} - */ - () => navigationPrevented = true) - }); - // can't prevent the very first navigation - if (navigationPrevented && oldDate !== null) { - this._service.open(oldDate); - return; - } - } - /** @type {?} */ - const newSelectedDate = model.selectedDate; - /** @type {?} */ - const newFocusedDate = model.focusDate; - /** @type {?} */ - const oldFocusedDate = this.model ? this.model.focusDate : null; - this.model = model; - // handling selection change - if (isChangedDate(newSelectedDate, this._controlValue)) { - this._controlValue = newSelectedDate; - this.onTouched(); - this.onChange(this._ngbDateAdapter.toModel(newSelectedDate)); - } - // handling focus change - if (isChangedDate(newFocusedDate, oldFocusedDate) && oldFocusedDate && model.focusVisible) { - this.focus(); - } - _cd.markForCheck(); - })); - } - /** - * @return {?} - */ - focus() { - this._ngZone.onStable.asObservable().pipe(take(1)).subscribe((/** - * @return {?} - */ - () => { - /** @type {?} */ - const elementToFocus = this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]'); - if (elementToFocus) { - elementToFocus.focus(); - } - })); - } - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - navigateTo(date) { - this._service.open(NgbDate.from(date ? date.day ? (/** @type {?} */ (date)) : Object.assign({}, date, { day: 1 }) : null)); - } - /** - * @return {?} - */ - ngAfterViewInit() { - this._ngZone.runOutsideAngular((/** - * @return {?} - */ - () => { - /** @type {?} */ - const focusIns$ = fromEvent(this._monthsEl.nativeElement, 'focusin'); - /** @type {?} */ - const focusOuts$ = fromEvent(this._monthsEl.nativeElement, 'focusout'); - // we're changing 'focusVisible' only when entering or leaving months view - // and ignoring all focus events where both 'target' and 'related' target are day cells - merge(focusIns$, focusOuts$) - .pipe(filter((/** - * @param {?} __0 - * @return {?} - */ - ({ target, relatedTarget }) => !(hasClassName(target, 'ngb-dp-day') && hasClassName(relatedTarget, 'ngb-dp-day')))), takeUntil(this._destroyed$)) - .subscribe((/** - * @param {?} __0 - * @return {?} - */ - ({ type }) => this._ngZone.run((/** - * @return {?} - */ - () => this._service.focusVisible = type === 'focusin')))); - })); - } - /** - * @return {?} - */ - ngOnDestroy() { this._destroyed$.next(); } - /** - * @return {?} - */ - ngOnInit() { - if (this.model === undefined) { - ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate', - 'outsideDays'] - .forEach((/** - * @param {?} input - * @return {?} - */ - input => this._service[input] = this[input])); - this.navigateTo(this.startDate); - } - } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate', - 'outsideDays'] - .filter((/** - * @param {?} input - * @return {?} - */ - input => input in changes)) - .forEach((/** - * @param {?} input - * @return {?} - */ - input => this._service[input] = this[input])); - if ('startDate' in changes) { - const { currentValue, previousValue } = changes.startDate; - if (isChangedMonth(previousValue, currentValue)) { - this.navigateTo(this.startDate); - } - } - } - /** - * @param {?} date - * @return {?} - */ - onDateSelect(date) { - this._service.focus(date); - this._service.select(date, { emitEvent: true }); - } - /** - * @param {?} event - * @return {?} - */ - onKeyDown(event) { this._keyMapService.processKey(event); } - /** - * @param {?} date - * @return {?} - */ - onNavigateDateSelect(date) { this._service.open(date); } - /** - * @param {?} event - * @return {?} - */ - onNavigateEvent(event) { - switch (event) { - case NavigationEvent.PREV: - this._service.open(this._calendar.getPrev(this.model.firstDate, 'm', 1)); - break; - case NavigationEvent.NEXT: - this._service.open(this._calendar.getNext(this.model.firstDate, 'm', 1)); - break; - } - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this.onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this.onTouched = fn; } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { this._service.disabled = isDisabled; } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this._controlValue = NgbDate.from(this._ngbDateAdapter.fromModel(value)); - this._service.select(this._controlValue); - } -} -NgbDatepicker.decorators = [ - { type: Component, args: [{ - exportAs: 'ngbDatepicker', - selector: 'ngb-datepicker', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: ` - -
-
-
- -
- - -
- -
- -
-
- {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }} -
- - -
-
-
- - - `, - providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService, NgbDatepickerKeyMapService], - styles: ["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"] - }] } -]; -/** @nocollapse */ -NgbDatepicker.ctorParameters = () => [ - { type: NgbDatepickerKeyMapService }, - { type: NgbDatepickerService }, - { type: NgbCalendar }, - { type: NgbDatepickerI18n }, - { type: NgbDatepickerConfig }, - { type: ChangeDetectorRef }, - { type: ElementRef }, - { type: NgbDateAdapter }, - { type: NgZone } -]; -NgbDatepicker.propDecorators = { - _monthsEl: [{ type: ViewChild, args: ['months', { static: true },] }], - dayTemplate: [{ type: Input }], - dayTemplateData: [{ type: Input }], - displayMonths: [{ type: Input }], - firstDayOfWeek: [{ type: Input }], - footerTemplate: [{ type: Input }], - markDisabled: [{ type: Input }], - maxDate: [{ type: Input }], - minDate: [{ type: Input }], - navigation: [{ type: Input }], - outsideDays: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - startDate: [{ type: Input }], - navigate: [{ type: Output }], - select: [{ type: Output }] -}; -if (false) { - /** @type {?} */ - NgbDatepicker.prototype.model; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._monthsEl; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._controlValue; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._destroyed$; - /** - * The reference to a custom template for the day. - * - * Allows to completely override the way a day 'cell' in the calendar is displayed. - * - * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside. - * @type {?} - */ - NgbDatepicker.prototype.dayTemplate; - /** - * The callback to pass any arbitrary data to the template cell via the - * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter. - * - * `current` is the month that is currently displayed by the datepicker. - * - * \@since 3.3.0 - * @type {?} - */ - NgbDatepicker.prototype.dayTemplateData; - /** - * The number of months to display. - * @type {?} - */ - NgbDatepicker.prototype.displayMonths; - /** - * The first day of the week. - * - * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun. - * @type {?} - */ - NgbDatepicker.prototype.firstDayOfWeek; - /** - * The reference to the custom template for the datepicker footer. - * - * \@since 3.3.0 - * @type {?} - */ - NgbDatepicker.prototype.footerTemplate; - /** - * The callback to mark some dates as disabled. - * - * It is called for each new date when navigating to a different month. - * - * `current` is the month that is currently displayed by the datepicker. - * @type {?} - */ - NgbDatepicker.prototype.markDisabled; - /** - * The latest date that can be displayed or selected. - * - * If not provided, 'year' select box will display 10 years after the current month. - * @type {?} - */ - NgbDatepicker.prototype.maxDate; - /** - * The earliest date that can be displayed or selected. - * - * If not provided, 'year' select box will display 10 years before the current month. - * @type {?} - */ - NgbDatepicker.prototype.minDate; - /** - * Navigation type. - * - * * `"select"` - select boxes for month and navigation arrows - * * `"arrows"` - only navigation arrows - * * `"none"` - no navigation visible at all - * @type {?} - */ - NgbDatepicker.prototype.navigation; - /** - * The way of displaying days that don't belong to the current month. - * - * * `"visible"` - days are visible - * * `"hidden"` - days are hidden, white space preserved - * * `"collapsed"` - days are collapsed, so the datepicker height might change between months - * - * For the 2+ months view, days in between months are never shown. - * @type {?} - */ - NgbDatepicker.prototype.outsideDays; - /** - * If `true`, weekdays will be displayed. - * @type {?} - */ - NgbDatepicker.prototype.showWeekdays; - /** - * If `true`, week numbers will be displayed. - * @type {?} - */ - NgbDatepicker.prototype.showWeekNumbers; - /** - * The date to open calendar with. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date is provided, calendar will open with current month. - * - * You could use `navigateTo(date)` method as an alternative. - * @type {?} - */ - NgbDatepicker.prototype.startDate; - /** - * An event emitted right before the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - * @type {?} - */ - NgbDatepicker.prototype.navigate; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - * @type {?} - */ - NgbDatepicker.prototype.select; - /** @type {?} */ - NgbDatepicker.prototype.onChange; - /** @type {?} */ - NgbDatepicker.prototype.onTouched; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._keyMapService; - /** @type {?} */ - NgbDatepicker.prototype._service; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._calendar; - /** @type {?} */ - NgbDatepicker.prototype.i18n; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._cd; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._elementRef; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._ngbDateAdapter; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._ngZone; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUUsT0FBTyxFQUFDLE1BQU0sTUFBTSxDQUFDO0FBQy9DLE9BQU8sRUFBQyxNQUFNLEVBQUUsSUFBSSxFQUFFLFNBQVMsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQ3ZELE9BQU8sRUFFTCx1QkFBdUIsRUFDdkIsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLFVBQVUsRUFDVixLQUFLLEVBQ0wsTUFBTSxFQUlOLE1BQU0sRUFFTixXQUFXLEVBQ1gsU0FBUyxFQUNULGlCQUFpQixFQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQXVCLGlCQUFpQixFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFDdkUsT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Q2hhbmdlKGZuOiAodmFsdWU6IGFueSkgPT4gYW55KTogdm9pZCB7IHRoaXMub25DaGFuZ2UgPSBmbjsgfVxuXG4gIHJlZ2lzdGVyT25Ub3VjaGVkKGZuOiAoKSA9PiBhbnkpOiB2b2lkIHsgdGhpcy5vblRvdWNoZWQgPSBmbjsgfVxuXG4gIHNldERpc2FibGVkU3RhdGUoaXNEaXNhYmxlZDogYm9vbGVhbikgeyB0aGlzLl9zZXJ2aWNlLmRpc2FibGVkID0gaXNEaXNhYmxlZDsgfVxuXG4gIHdyaXRlVmFsdWUodmFsdWUpIHtcbiAgICB0aGlzLl9jb250cm9sVmFsdWUgPSBOZ2JEYXRlLmZyb20odGhpcy5fbmdiRGF0ZUFkYXB0ZXIuZnJvbU1vZGVsKHZhbHVlKSk7XG4gICAgdGhpcy5fc2VydmljZS5zZWxlY3QodGhpcy5fY29udHJvbFZhbHVlKTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/datepicker.module.js b/dist/ng-bootstrap/esm2015/datepicker/datepicker.module.js deleted file mode 100644 index aaab68c..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/datepicker.module.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { NgbDatepicker } from './datepicker'; -import { NgbDatepickerMonthView } from './datepicker-month-view'; -import { NgbDatepickerNavigation } from './datepicker-navigation'; -import { NgbInputDatepicker } from './datepicker-input'; -import { NgbDatepickerDayView } from './datepicker-day-view'; -import { NgbDatepickerNavigationSelect } from './datepicker-navigation-select'; -export { NgbDatepicker } from './datepicker'; -export { NgbInputDatepicker } from './datepicker-input'; -export { NgbCalendar, NgbCalendarGregorian } from './ngb-calendar'; -export { NgbCalendarIslamicCivil } from './hijri/ngb-calendar-islamic-civil'; -export { NgbCalendarIslamicUmalqura } from './hijri/ngb-calendar-islamic-umalqura'; -export { NgbCalendarPersian } from './jalali/ngb-calendar-persian'; -export { NgbCalendarHebrew } from './hebrew/ngb-calendar-hebrew'; -export { NgbDatepickerI18nHebrew } from './hebrew/datepicker-i18n-hebrew'; -export { NgbDatepickerMonthView } from './datepicker-month-view'; -export { NgbDatepickerDayView } from './datepicker-day-view'; -export { NgbDatepickerNavigation } from './datepicker-navigation'; -export { NgbDatepickerNavigationSelect } from './datepicker-navigation-select'; -export { NgbDatepickerConfig } from './datepicker-config'; -export { NgbDatepickerI18n } from './datepicker-i18n'; -export { NgbDate } from './ngb-date'; -export { NgbDateAdapter } from './adapters/ngb-date-adapter'; -export { NgbDateNativeAdapter } from './adapters/ngb-date-native-adapter'; -export { NgbDateNativeUTCAdapter } from './adapters/ngb-date-native-utc-adapter'; -export { NgbDateParserFormatter } from './ngb-date-parser-formatter'; -export class NgbDatepickerModule { -} -NgbDatepickerModule.decorators = [ - { type: NgModule, args: [{ - declarations: [ - NgbDatepicker, NgbDatepickerMonthView, NgbDatepickerNavigation, NgbDatepickerNavigationSelect, NgbDatepickerDayView, - NgbInputDatepicker - ], - exports: [NgbDatepicker, NgbInputDatepicker], - imports: [CommonModule, FormsModule], - entryComponents: [NgbDatepicker] - },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2RhdGVwaWNrZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLE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TmF0aXZlVVRDQWRhcHRlcn0gZnJvbSAnLi9hZGFwdGVycy9uZ2ItZGF0ZS1uYXRpdmUtdXRjLWFkYXB0ZXInO1xuZXhwb3J0IHtOZ2JEYXRlUGFyc2VyRm9ybWF0dGVyfSBmcm9tICcuL25nYi1kYXRlLXBhcnNlci1mb3JtYXR0ZXInO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBOZ2JEYXRlcGlja2VyLCBOZ2JEYXRlcGlja2VyTW9udGhWaWV3LCBOZ2JEYXRlcGlja2VyTmF2aWdhdGlvbiwgTmdiRGF0ZXBpY2tlck5hdmlnYXRpb25TZWxlY3QsIE5nYkRhdGVwaWNrZXJEYXlWaWV3LFxuICAgIE5nYklucHV0RGF0ZXBpY2tlclxuICBdLFxuICBleHBvcnRzOiBbTmdiRGF0ZXBpY2tlciwgTmdiSW5wdXREYXRlcGlja2VyXSxcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSwgRm9ybXNNb2R1bGVdLFxuICBlbnRyeUNvbXBvbmVudHM6IFtOZ2JEYXRlcGlja2VyXVxufSlcbmV4cG9ydCBjbGFzcyBOZ2JEYXRlcGlja2VyTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/hebrew/datepicker-i18n-hebrew.js b/dist/ng-bootstrap/esm2015/datepicker/hebrew/datepicker-i18n-hebrew.js deleted file mode 100644 index b2fd1a3..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/hebrew/datepicker-i18n-hebrew.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbDatepickerI18n } from '../datepicker-i18n'; -import { hebrewNumerals, isHebrewLeapYear } from './hebrew'; -import { Injectable } from '@angular/core'; -/** @type {?} */ -const WEEKDAYS = ['שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת', 'ראשון']; -/** @type {?} */ -const MONTHS = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול']; -/** @type {?} */ -const MONTHS_LEAP = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר א׳', 'אדר ב׳', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול']; -/** - * \@since 3.2.0 - */ -export class NgbDatepickerI18nHebrew extends NgbDatepickerI18n { - /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - getMonthShortName(month, year) { return this.getMonthFullName(month, year); } - /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - getMonthFullName(month, year) { - return isHebrewLeapYear(year) ? MONTHS_LEAP[month - 1] : MONTHS[month - 1]; - } - /** - * @param {?} weekday - * @return {?} - */ - getWeekdayShortName(weekday) { return WEEKDAYS[weekday - 1]; } - /** - * @param {?} date - * @return {?} - */ - getDayAriaLabel(date) { - return `${hebrewNumerals(date.day)} ${this.getMonthFullName(date.month, date.year)} ${hebrewNumerals(date.year)}`; - } - /** - * @param {?} date - * @return {?} - */ - getDayNumerals(date) { return hebrewNumerals(date.day); } - /** - * @param {?} weekNumber - * @return {?} - */ - getWeekNumerals(weekNumber) { return hebrewNumerals(weekNumber); } - /** - * @param {?} year - * @return {?} - */ - getYearNumerals(year) { return hebrewNumerals(year); } -} -NgbDatepickerI18nHebrew.decorators = [ - { type: Injectable } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1pMThuLWhlYnJldy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvaGVicmV3L2RhdGVwaWNrZXItaTE4bi1oZWJyZXcudHMiXSwibmFtZXMiOltdLCJtYXBw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xlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuXG5jb25zdCBXRUVLREFZUyA9IFsn16nXoNeZJywgJ9ep15zXmdep15knLCAn16jXkdeZ16LXmScsICfXl9ee15nXqdeZJywgJ9ep15nXqdeZJywgJ9ep15HXqicsICfXqNeQ16nXldefJ107XG5jb25zdCBNT05USFMgPSBbJ9eq16nXqNeZJywgJ9eX16nXldefJywgJ9eb16HXnNeVJywgJ9eY15HXqicsICfXqdeR15gnLCAn15DXk9eoJywgJ9eg15nXodefJywgJ9eQ15nXmdeoJywgJ9eh15nXldefJywgJ9eq157XldeWJywgJ9eQ15EnLCAn15DXnNeV15wnXTtcbmNvbnN0IE1PTlRIU19MRUFQID1cbiAgICBbJ9eq16nXqNeZJywgJ9eX16nXldefJywgJ9eb16HXnNeVJywgJ9eY15HXqicsICfXqdeR15gnLCAn15DXk9eoINeQ17MnLCAn15DXk9eoINeR17MnLCAn16DXmdeh158nLCAn15DXmdeZ16gnLCAn16HXmdeV158nLCAn16rXnteV15YnLCAn15DXkScsICfXkNec15XXnCddO1xuXG4vKipcbiAqIEBzaW5jZSAzLjIuMFxuICovXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgTmdiRGF0ZXBpY2tlckkxOG5IZWJyZXcgZXh0ZW5kcyBOZ2JEYXRlcGlja2VySTE4biB7XG4gIGdldE1vbnRoU2hvcnROYW1lKG1vbnRoOiBudW1iZXIsIHllYXI/OiBudW1iZXIpOiBzdHJpbmcgeyByZXR1cm4gdGhpcy5nZXRNb250aEZ1bGxOYW1lKG1vbnRoLCB5ZWFyKTsgfVxuXG4gIGdldE1vbnRoRnVsbE5hbWUobW9udGg6IG51bWJlciwgeWVhcj86IG51bWJlcik6IHN0cmluZyB7XG4gICAgcmV0dXJuIGlzSGVicmV3TGVhcFllYXIoeWVhcikgPyBNT05USFNfTEVBUFttb250aCAtIDFdIDogTU9OVEhTW21vbnRoIC0gMV07XG4gIH1cblxuICBnZXRXZWVrZGF5U2hvcnROYW1lKHdlZWtkYXk6IG51bWJlcik6IHN0cmluZyB7IHJldHVybiBXRUVLREFZU1t3ZWVrZGF5IC0gMV07IH1cblxuICBnZXREYXlBcmlhTGFiZWwoZGF0ZTogTmdiRGF0ZVN0cnVjdCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIGAke2hlYnJld051bWVyYWxzKGRhdGUuZGF5KX0gJHt0aGlzLmdldE1vbnRoRnVsbE5hbWUoZGF0ZS5tb250aCwgZGF0ZS55ZWFyKX0gJHtoZWJyZXdOdW1lcmFscyhkYXRlLnllYXIpfWA7XG4gIH1cblxuICBnZXREYXlOdW1lcmFscyhkYXRlOiBOZ2JEYXRlU3RydWN0KTogc3RyaW5nIHsgcmV0dXJuIGhlYnJld051bWVyYWxzKGRhdGUuZGF5KTsgfVxuXG4gIGdldFdlZWtOdW1lcmFscyh3ZWVrTnVtYmVyOiBudW1iZXIpOiBzdHJpbmcgeyByZXR1cm4gaGVicmV3TnVtZXJhbHMod2Vla051bWJlcik7IH1cblxuICBnZXRZZWFyTnVtZXJhbHMoeWVhcjogbnVtYmVyKTogc3RyaW5nIHsgcmV0dXJuIGhlYnJld051bWVyYWxzKHllYXIpOyB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/hebrew/hebrew.js b/dist/ng-bootstrap/esm2015/datepicker/hebrew/hebrew.js deleted file mode 100644 index 8cc7e74..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/hebrew/hebrew.js +++ /dev/null @@ -1,406 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbDate } from '../ngb-date'; -/** @type {?} */ -const PARTS_PER_HOUR = 1080; -/** @type {?} */ -const PARTS_PER_DAY = 24 * PARTS_PER_HOUR; -/** @type {?} */ -const PARTS_FRACTIONAL_MONTH = 12 * PARTS_PER_HOUR + 793; -/** @type {?} */ -const PARTS_PER_MONTH = 29 * PARTS_PER_DAY + PARTS_FRACTIONAL_MONTH; -/** @type {?} */ -const BAHARAD = 11 * PARTS_PER_HOUR + 204; -/** @type {?} */ -const HEBREW_DAY_ON_JAN_1_1970 = 2092591; -/** @type {?} */ -const GREGORIAN_EPOCH = 1721425.5; -/** - * @param {?} year - * @return {?} - */ -function isGregorianLeapYear(year) { - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; -} -/** - * @param {?} year - * @return {?} - */ -function numberOfFirstDayInYear(year) { - /** @type {?} */ - let monthsBeforeYear = Math.floor((235 * year - 234) / 19); - /** @type {?} */ - let fractionalMonthsBeforeYear = monthsBeforeYear * PARTS_FRACTIONAL_MONTH + BAHARAD; - /** @type {?} */ - let dayNumber = monthsBeforeYear * 29 + Math.floor(fractionalMonthsBeforeYear / PARTS_PER_DAY); - /** @type {?} */ - let timeOfDay = fractionalMonthsBeforeYear % PARTS_PER_DAY; - /** @type {?} */ - let dayOfWeek = dayNumber % 7; - if (dayOfWeek === 2 || dayOfWeek === 4 || dayOfWeek === 6) { - dayNumber++; - dayOfWeek = dayNumber % 7; - } - if (dayOfWeek === 1 && timeOfDay > 15 * PARTS_PER_HOUR + 204 && !isHebrewLeapYear(year)) { - dayNumber += 2; - } - else if (dayOfWeek === 0 && timeOfDay > 21 * PARTS_PER_HOUR + 589 && isHebrewLeapYear(year - 1)) { - dayNumber++; - } - return dayNumber; -} -/** - * @param {?} month - * @param {?} year - * @return {?} - */ -function getDaysInGregorianMonth(month, year) { - /** @type {?} */ - let days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - if (isGregorianLeapYear(year)) { - days[1]++; - } - return days[month - 1]; -} -/** - * @param {?} year - * @return {?} - */ -function getHebrewMonths(year) { - return isHebrewLeapYear(year) ? 13 : 12; -} -/** - * Returns the number of days in a specific Hebrew year. - * `year` is any Hebrew year. - * @param {?} year - * @return {?} - */ -function getDaysInHebrewYear(year) { - return numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year); -} -/** - * @param {?} year - * @return {?} - */ -export function isHebrewLeapYear(year) { - /** @type {?} */ - let b = (year * 12 + 17) % 19; - return b >= ((b < 0) ? -7 : 12); -} -/** - * Returns the number of days in a specific Hebrew month. - * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months. - * `year` is any Hebrew year. - * @param {?} month - * @param {?} year - * @return {?} - */ -export function getDaysInHebrewMonth(month, year) { - /** @type {?} */ - let yearLength = numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year); - /** @type {?} */ - let yearType = (yearLength <= 380 ? yearLength : (yearLength - 30)) - 353; - /** @type {?} */ - let leapYear = isHebrewLeapYear(year); - /** @type {?} */ - let daysInMonth = leapYear ? [30, 29, 29, 29, 30, 30, 29, 30, 29, 30, 29, 30, 29] : - [30, 29, 29, 29, 30, 29, 30, 29, 30, 29, 30, 29]; - if (yearType > 0) { - daysInMonth[2]++; // Kislev gets an extra day in normal or complete years. - } - if (yearType > 1) { - daysInMonth[1]++; // Heshvan gets an extra day in complete years only. - } - return daysInMonth[month - 1]; -} -/** - * @param {?} date - * @return {?} - */ -export function getDayNumberInHebrewYear(date) { - /** @type {?} */ - let numberOfDay = 0; - for (let i = 1; i < date.month; i++) { - numberOfDay += getDaysInHebrewMonth(i, date.year); - } - return numberOfDay + date.day; -} -/** - * @param {?} date - * @param {?} val - * @return {?} - */ -export function setHebrewMonth(date, val) { - /** @type {?} */ - let after = val >= 0; - if (!after) { - val = -val; - } - while (val > 0) { - if (after) { - if (val > getHebrewMonths(date.year) - date.month) { - val -= getHebrewMonths(date.year) - date.month + 1; - date.year++; - date.month = 1; - } - else { - date.month += val; - val = 0; - } - } - else { - if (val >= date.month) { - date.year--; - val -= date.month; - date.month = getHebrewMonths(date.year); - } - else { - date.month -= val; - val = 0; - } - } - } - return date; -} -/** - * @param {?} date - * @param {?} val - * @return {?} - */ -export function setHebrewDay(date, val) { - /** @type {?} */ - let after = val >= 0; - if (!after) { - val = -val; - } - while (val > 0) { - if (after) { - if (val > getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date)) { - val -= getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date) + 1; - date.year++; - date.month = 1; - date.day = 1; - } - else if (val > getDaysInHebrewMonth(date.month, date.year) - date.day) { - val -= getDaysInHebrewMonth(date.month, date.year) - date.day + 1; - date.month++; - date.day = 1; - } - else { - date.day += val; - val = 0; - } - } - else { - if (val >= date.day) { - val -= date.day; - date.month--; - if (date.month === 0) { - date.year--; - date.month = getHebrewMonths(date.year); - } - date.day = getDaysInHebrewMonth(date.month, date.year); - } - else { - date.day -= val; - val = 0; - } - } - } - return date; -} -/** - * Returns the equivalent Hebrew date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to Hebrew date. - * @param {?} gdate - * @return {?} - */ -export function fromGregorian(gdate) { - /** @type {?} */ - const date = new Date(gdate); - /** @type {?} */ - const gYear = date.getFullYear(); - /** @type {?} */ - const gMonth = date.getMonth(); - /** @type {?} */ - const gDay = date.getDate(); - /** @type {?} */ - let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) - - Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) + - Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gYear) ? -1 : -2) + gDay); - julianDay = Math.floor(julianDay + 0.5); - /** @type {?} */ - let daysSinceHebEpoch = julianDay - 347997; - /** @type {?} */ - let monthsSinceHebEpoch = Math.floor(daysSinceHebEpoch * PARTS_PER_DAY / PARTS_PER_MONTH); - /** @type {?} */ - let hYear = Math.floor((monthsSinceHebEpoch * 19 + 234) / 235) + 1; - /** @type {?} */ - let firstDayOfThisYear = numberOfFirstDayInYear(hYear); - /** @type {?} */ - let dayOfYear = daysSinceHebEpoch - firstDayOfThisYear; - while (dayOfYear < 1) { - hYear--; - firstDayOfThisYear = numberOfFirstDayInYear(hYear); - dayOfYear = daysSinceHebEpoch - firstDayOfThisYear; - } - /** @type {?} */ - let hMonth = 1; - /** @type {?} */ - let hDay = dayOfYear; - while (hDay > getDaysInHebrewMonth(hMonth, hYear)) { - hDay -= getDaysInHebrewMonth(hMonth, hYear); - hMonth++; - } - return new NgbDate(hYear, hMonth, hDay); -} -/** - * Returns the equivalent JS date value for a given Hebrew date. - * `hebrewDate` is an Hebrew date to be converted to Gregorian. - * @param {?} hebrewDate - * @return {?} - */ -export function toGregorian(hebrewDate) { - /** @type {?} */ - const hYear = hebrewDate.year; - /** @type {?} */ - const hMonth = hebrewDate.month; - /** @type {?} */ - const hDay = hebrewDate.day; - /** @type {?} */ - let days = numberOfFirstDayInYear(hYear); - for (let i = 1; i < hMonth; i++) { - days += getDaysInHebrewMonth(i, hYear); - } - days += hDay; - /** @type {?} */ - let diffDays = days - HEBREW_DAY_ON_JAN_1_1970; - /** @type {?} */ - let after = diffDays >= 0; - if (!after) { - diffDays = -diffDays; - } - /** @type {?} */ - let gYear = 1970; - /** @type {?} */ - let gMonth = 1; - /** @type {?} */ - let gDay = 1; - while (diffDays > 0) { - if (after) { - if (diffDays >= (isGregorianLeapYear(gYear) ? 366 : 365)) { - diffDays -= isGregorianLeapYear(gYear) ? 366 : 365; - gYear++; - } - else if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) { - diffDays -= getDaysInGregorianMonth(gMonth, gYear); - gMonth++; - } - else { - gDay += diffDays; - diffDays = 0; - } - } - else { - if (diffDays >= (isGregorianLeapYear(gYear - 1) ? 366 : 365)) { - diffDays -= isGregorianLeapYear(gYear - 1) ? 366 : 365; - gYear--; - } - else { - if (gMonth > 1) { - gMonth--; - } - else { - gMonth = 12; - gYear--; - } - if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) { - diffDays -= getDaysInGregorianMonth(gMonth, gYear); - } - else { - gDay = getDaysInGregorianMonth(gMonth, gYear) - diffDays + 1; - diffDays = 0; - } - } - } - } - return new Date(gYear, gMonth - 1, gDay); -} -/** - * @param {?} numerals - * @return {?} - */ -export function hebrewNumerals(numerals) { - if (!numerals) { - return ''; - } - /** @type {?} */ - const hArray0_9 = ['', '\u05d0', '\u05d1', '\u05d2', '\u05d3', '\u05d4', '\u05d5', '\u05d6', '\u05d7', '\u05d8']; - /** @type {?} */ - const hArray10_19 = [ - '\u05d9', '\u05d9\u05d0', '\u05d9\u05d1', '\u05d9\u05d2', '\u05d9\u05d3', '\u05d8\u05d5', '\u05d8\u05d6', - '\u05d9\u05d6', '\u05d9\u05d7', '\u05d9\u05d8' - ]; - /** @type {?} */ - const hArray20_90 = ['', '', '\u05db', '\u05dc', '\u05de', '\u05e0', '\u05e1', '\u05e2', '\u05e4', '\u05e6']; - /** @type {?} */ - const hArray100_900 = [ - '', '\u05e7', '\u05e8', '\u05e9', '\u05ea', '\u05ea\u05e7', '\u05ea\u05e8', '\u05ea\u05e9', '\u05ea\u05ea', - '\u05ea\u05ea\u05e7' - ]; - /** @type {?} */ - const hArray1000_9000 = [ - '', '\u05d0', '\u05d1', '\u05d1\u05d0', '\u05d1\u05d1', '\u05d4', '\u05d4\u05d0', '\u05d4\u05d1', - '\u05d4\u05d1\u05d0', '\u05d4\u05d1\u05d1' - ]; - /** @type {?} */ - const geresh = '\u05f3'; - /** @type {?} */ - const gershaim = '\u05f4'; - /** @type {?} */ - let mem = 0; - /** @type {?} */ - let result = []; - /** @type {?} */ - let step = 0; - while (numerals > 0) { - /** @type {?} */ - let m = numerals % 10; - if (step === 0) { - mem = m; - } - else if (step === 1) { - if (m !== 1) { - result.unshift(hArray20_90[m], hArray0_9[mem]); - } - else { - result.unshift(hArray10_19[mem]); - } - } - else if (step === 2) { - result.unshift(hArray100_900[m]); - } - else { - if (m !== 5) { - result.unshift(hArray1000_9000[m], geresh, ' '); - } - break; - } - numerals = Math.floor(numerals / 10); - if (step === 0 && numerals === 0) { - result.unshift(hArray0_9[m]); - } - step++; - } - result = result.join('').split(''); - if (result.length === 1) { - result.push(geresh); - } - else if (result.length > 1) { - result.splice(result.length - 1, 0, gershaim); - } - return result.join(''); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVicmV3LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9oZWJyZXcvaGVicmV3LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sYUFBYSxDQUFDOztNQUc5QixjQUFjLEdBQUcsSUFBSTs7TUFDckIsYUFBYSxHQUFHLEVBQUUsR0FBRyxjQUFjOztNQUNuQyxzQkFBc0IsR0FBRyxFQUFFLEdBQUcsY0FBYyxHQUFHLEdBQUc7O01BQ2xELGVBQWUsR0FBRyxFQUFFLEdBQUcsYUFBYSxHQUFHLHNCQUFzQjs7TUFDN0QsT0FBTyxHQUFHLEVBQUUsR0FBRyxjQUFjLEdBQUcsR0FBRzs7TUFDbkMsd0JBQXdCLEdBQUcsT0FBTzs7TUFDbEMsZUFBZSxHQUFHLFNBQVM7Ozs7O0FBRWpDLFNBQVMsbUJBQW1CLENBQUMsSUFBWTtJQUN2QyxPQUFPLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLElBQUksR0FBRyxHQUFHLEtBQUssQ0FBQyxJQUFJLElBQUksR0FBRyxHQUFHLEtBQUssQ0FBQyxDQUFDO0FBQ2hFLENBQUM7Ozs7O0FBRUQsU0FBUyxzQkFBc0IsQ0FBQyxJQUFZOztRQUN0QyxnQkFBZ0IsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsR0FBRyxHQUFHLElBQUksR0FBRyxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7O1FBQ3RELDBCQUEwQixHQUFHLGdCQUFnQixHQUFHLHNCQUFzQixHQUFHLE9BQU87O1FBQ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nNwbGl0KCcnKTtcbiAgaWYgKHJlc3VsdC5sZW5ndGggPT09IDEpIHtcbiAgICByZXN1bHQucHVzaChnZXJlc2gpO1xuICB9IGVsc2UgaWYgKHJlc3VsdC5sZW5ndGggPiAxKSB7XG4gICAgcmVzdWx0LnNwbGljZShyZXN1bHQubGVuZ3RoIC0gMSwgMCwgZ2Vyc2hhaW0pO1xuICB9XG4gIHJldHVybiByZXN1bHQuam9pbignJyk7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/hebrew/ngb-calendar-hebrew.js b/dist/ng-bootstrap/esm2015/datepicker/hebrew/ngb-calendar-hebrew.js deleted file mode 100644 index 29ee7bc..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/hebrew/ngb-calendar-hebrew.js +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbDate } from '../ngb-date'; -import { fromJSDate, NgbCalendar, toJSDate } from '../ngb-calendar'; -import { Injectable } from '@angular/core'; -import { isNumber } from '../../util/util'; -import { fromGregorian, getDayNumberInHebrewYear, getDaysInHebrewMonth, isHebrewLeapYear, toGregorian, setHebrewDay, setHebrewMonth } from './hebrew'; -/** - * \@since 3.2.0 - */ -export class NgbCalendarHebrew extends NgbCalendar { - /** - * @return {?} - */ - getDaysPerWeek() { return 7; } - /** - * @param {?=} year - * @return {?} - */ - getMonths(year) { - if (year && isHebrewLeapYear(year)) { - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; - } - else { - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; - } - } - /** - * @return {?} - */ - getWeeksPerMonth() { return 6; } - /** - * @param {?} date - * @return {?} - */ - isValid(date) { - /** @type {?} */ - let b = date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day); - b = b && date.month > 0 && date.month <= (isHebrewLeapYear(date.year) ? 13 : 12); - b = b && date.day > 0 && date.day <= getDaysInHebrewMonth(date.month, date.year); - return b && !isNaN(toGregorian(date).getTime()); - } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getNext(date, period = 'd', number = 1) { - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date.year += number; - date.month = 1; - date.day = 1; - return date; - case 'm': - date = setHebrewMonth(date, number); - date.day = 1; - return date; - case 'd': - return setHebrewDay(date, number); - default: - return date; - } - } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); } - /** - * @param {?} date - * @return {?} - */ - getWeekday(date) { - /** @type {?} */ - const day = toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - } - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - getWeekNumber(week, firstDayOfWeek) { - /** @type {?} */ - const date = week[week.length - 1]; - return Math.ceil(getDayNumberInHebrewYear(date) / 7); - } - /** - * @return {?} - */ - getToday() { return fromGregorian(new Date()); } - /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - toGregorian(date) { return fromJSDate(toGregorian(date)); } - /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - fromGregorian(date) { return fromGregorian(toJSDate(date)); } -} -NgbCalendarHebrew.decorators = [ - { type: Injectable } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLWhlYnJldy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvaGVicmV3L25nYi1jYWxlbmRhci1oZWJyZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxPQUFPLEVBQUMs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LjQuMFxuICAgKi9cbiAgdG9HcmVnb3JpYW4oZGF0ZTogTmdiRGF0ZSk6IE5nYkRhdGUgeyByZXR1cm4gZnJvbUpTRGF0ZSh0b0dyZWdvcmlhbihkYXRlKSk7IH1cblxuICAvKipcbiAgICogQHNpbmNlIDMuNC4wXG4gICAqL1xuICBmcm9tR3JlZ29yaWFuKGRhdGU6IE5nYkRhdGUpOiBOZ2JEYXRlIHsgcmV0dXJuIGZyb21HcmVnb3JpYW4odG9KU0RhdGUoZGF0ZSkpOyB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-hijri.js b/dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-hijri.js deleted file mode 100644 index d4e84a2..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-hijri.js +++ /dev/null @@ -1,182 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbDate } from '../ngb-date'; -import { NgbCalendar } from '../ngb-calendar'; -import { Injectable } from '@angular/core'; -import { isNumber } from '../../util/util'; -/** - * @abstract - */ -export class NgbCalendarHijri extends NgbCalendar { - /** - * @return {?} - */ - getDaysPerWeek() { return 7; } - /** - * @return {?} - */ - getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; } - /** - * @return {?} - */ - getWeeksPerMonth() { return 6; } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getNext(date, period = 'd', number = 1) { - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date = this._setYear(date, date.year + number); - date.month = 1; - date.day = 1; - return date; - case 'm': - date = this._setMonth(date, date.month + number); - date.day = 1; - return date; - case 'd': - return this._setDay(date, date.day + number); - default: - return date; - } - } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); } - /** - * @param {?} date - * @return {?} - */ - getWeekday(date) { - /** @type {?} */ - const day = this.toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - } - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - getWeekNumber(week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - const date = week[thursdayIndex]; - /** @type {?} */ - const jsDate = this.toGregorian(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - const time = jsDate.getTime(); - /** @type {?} */ - const MuhDate = this.toGregorian(new NgbDate(date.year, 1, 1)); - return Math.floor(Math.round((time - MuhDate.getTime()) / 86400000) / 7) + 1; - } - /** - * @return {?} - */ - getToday() { return this.fromGregorian(new Date()); } - /** - * @param {?} date - * @return {?} - */ - isValid(date) { - return date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day) && - !isNaN(this.toGregorian(date).getTime()); - } - /** - * @private - * @param {?} date - * @param {?} day - * @return {?} - */ - _setDay(date, day) { - day = +day; - /** @type {?} */ - let mDays = this.getDaysPerMonth(date.month, date.year); - if (day <= 0) { - while (day <= 0) { - date = this._setMonth(date, date.month - 1); - mDays = this.getDaysPerMonth(date.month, date.year); - day += mDays; - } - } - else if (day > mDays) { - while (day > mDays) { - day -= mDays; - date = this._setMonth(date, date.month + 1); - mDays = this.getDaysPerMonth(date.month, date.year); - } - } - date.day = day; - return date; - } - /** - * @private - * @param {?} date - * @param {?} month - * @return {?} - */ - _setMonth(date, month) { - month = +month; - date.year = date.year + Math.floor((month - 1) / 12); - date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1; - return date; - } - /** - * @private - * @param {?} date - * @param {?} year - * @return {?} - */ - _setYear(date, year) { - date.year = +year; - return date; - } -} -NgbCalendarHijri.decorators = [ - { type: Injectable } -]; -if (false) { - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - * @abstract - * @param {?} month - * @param {?} year - * @return {?} - */ - NgbCalendarHijri.prototype.getDaysPerMonth = function (month, year) { }; - /** - * Returns the equivalent Hijri date value for a give input Gregorian date. - * `gDate` is s JS Date to be converted to Hijri. - * @abstract - * @param {?} gDate - * @return {?} - */ - NgbCalendarHijri.prototype.fromGregorian = function (gDate) { }; - /** - * Converts the current Hijri date to Gregorian. - * @abstract - * @param {?} hDate - * @return {?} - */ - NgbCalendarHijri.prototype.toGregorian = function (hDate) { }; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLWhpanJpLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9oaWpyaS9uZ2ItY2FsZW5kYXItaGlqcmkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxPQUFPLEVBQUMsTUFBTSxhQUFhLENBQUM7QUFDcEMsT0FBTyxFQUFZLFdBQVcsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZELE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDOzs7O0FBR3pDLE1BQU0sT0FBZ0IsZ0JBQWlCLFNBQVEsV0FBVzs7OztJQW1CeEQsY0FBYyxLQUFLLE9BQU8sQ0FBQyxDQUFDLENBQUMsQ0FBQzs7OztJQUU5QixTQUFTLEtBQUssT0FBTyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQy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ZSAoZGF5ID4gbURheXMpIHtcbiAgICAgICAgZGF5IC09IG1EYXlzO1xuICAgICAgICBkYXRlID0gdGhpcy5fc2V0TW9udGgoZGF0ZSwgZGF0ZS5tb250aCArIDEpO1xuICAgICAgICBtRGF5cyA9IHRoaXMuZ2V0RGF5c1Blck1vbnRoKGRhdGUubW9udGgsIGRhdGUueWVhcik7XG4gICAgICB9XG4gICAgfVxuICAgIGRhdGUuZGF5ID0gZGF5O1xuICAgIHJldHVybiBkYXRlO1xuICB9XG5cbiAgcHJpdmF0ZSBfc2V0TW9udGgoZGF0ZTogTmdiRGF0ZSwgbW9udGg6IG51bWJlcik6IE5nYkRhdGUge1xuICAgIG1vbnRoID0gK21vbnRoO1xuICAgIGRhdGUueWVhciA9IGRhdGUueWVhciArIE1hdGguZmxvb3IoKG1vbnRoIC0gMSkgLyAxMik7XG4gICAgZGF0ZS5tb250aCA9IE1hdGguZmxvb3IoKChtb250aCAtIDEpICUgMTIgKyAxMikgJSAxMikgKyAxO1xuICAgIHJldHVybiBkYXRlO1xuICB9XG5cbiAgcHJpdmF0ZSBfc2V0WWVhcihkYXRlOiBOZ2JEYXRlLCB5ZWFyOiBudW1iZXIpOiBOZ2JEYXRlIHtcbiAgICBkYXRlLnllYXIgPSAreWVhcjtcbiAgICByZXR1cm4gZGF0ZTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-islamic-civil.js b/dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-islamic-civil.js deleted file mode 100644 index 4941a01..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-islamic-civil.js +++ /dev/null @@ -1,177 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbCalendarHijri } from './ngb-calendar-hijri'; -import { NgbDate } from '../ngb-date'; -import { Injectable } from '@angular/core'; -/** - * Checks if islamic year is a leap year - * @param {?} hYear - * @return {?} - */ -function isIslamicLeapYear(hYear) { - return (14 + 11 * hYear) % 30 < 11; -} -/** - * Checks if gregorian years is a leap year - * @param {?} gDate - * @return {?} - */ -function isGregorianLeapYear(gDate) { - /** @type {?} */ - const year = gDate.getFullYear(); - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; -} -/** - * Returns the start of Hijri Month. - * `hMonth` is 0 for Muharram, 1 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hYear - * @param {?} hMonth - * @return {?} - */ -function getIslamicMonthStart(hYear, hMonth) { - return Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30.0); -} -/** - * Returns the start of Hijri year. - * `year` is any Hijri year. - * @param {?} year - * @return {?} - */ -function getIslamicYearStart(year) { - return (year - 1) * 354 + Math.floor((3 + 11 * year) / 30.0); -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function mod(a, b) { - return a - b * Math.floor(a / b); -} -/** - * The civil calendar is one type of Hijri calendars used in islamic countries. - * Uses a fixed cycle of alternating 29- and 30-day months, - * with a leap day added to the last month of 11 out of every 30 years. - * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types - * All the calculations here are based on the equations from "Calendrical Calculations" By Edward M. Reingold, Nachum - * Dershowitz. - * @type {?} - */ -const GREGORIAN_EPOCH = 1721425.5; -/** @type {?} */ -const ISLAMIC_EPOCH = 1948439.5; -export class NgbCalendarIslamicCivil extends NgbCalendarHijri { - /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - fromGregorian(gDate) { - /** @type {?} */ - const gYear = gDate.getFullYear(); - /** @type {?} */ - const gMonth = gDate.getMonth(); - /** @type {?} */ - const gDay = gDate.getDate(); - /** @type {?} */ - let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) + - -Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) + - Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gDate) ? -1 : -2) + gDay); - julianDay = Math.floor(julianDay) + 0.5; - /** @type {?} */ - const days = julianDay - ISLAMIC_EPOCH; - /** @type {?} */ - const hYear = Math.floor((30 * days + 10646) / 10631.0); - /** @type {?} */ - let hMonth = Math.ceil((days - 29 - getIslamicYearStart(hYear)) / 29.5); - hMonth = Math.min(hMonth, 11); - /** @type {?} */ - const hDay = Math.ceil(days - getIslamicMonthStart(hYear, hMonth)) + 1; - return new NgbDate(hYear, hMonth + 1, hDay); - } - /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - * @param {?} hDate - * @return {?} - */ - toGregorian(hDate) { - /** @type {?} */ - const hYear = hDate.year; - /** @type {?} */ - const hMonth = hDate.month - 1; - /** @type {?} */ - const hDay = hDate.day; - /** @type {?} */ - const julianDay = hDay + Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30) + ISLAMIC_EPOCH - 1; - /** @type {?} */ - const wjd = Math.floor(julianDay - 0.5) + 0.5; - /** @type {?} */ - const depoch = wjd - GREGORIAN_EPOCH; - /** @type {?} */ - const quadricent = Math.floor(depoch / 146097); - /** @type {?} */ - const dqc = mod(depoch, 146097); - /** @type {?} */ - const cent = Math.floor(dqc / 36524); - /** @type {?} */ - const dcent = mod(dqc, 36524); - /** @type {?} */ - const quad = Math.floor(dcent / 1461); - /** @type {?} */ - const dquad = mod(dcent, 1461); - /** @type {?} */ - const yindex = Math.floor(dquad / 365); - /** @type {?} */ - let year = quadricent * 400 + cent * 100 + quad * 4 + yindex; - if (!(cent === 4 || yindex === 4)) { - year++; - } - /** @type {?} */ - const gYearStart = GREGORIAN_EPOCH + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400); - /** @type {?} */ - const yearday = wjd - gYearStart; - /** @type {?} */ - const tjd = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400) + Math.floor(739 / 12 + (isGregorianLeapYear(new Date(year, 3, 1)) ? -1 : -2) + 1); - /** @type {?} */ - const leapadj = wjd < tjd ? 0 : isGregorianLeapYear(new Date(year, 3, 1)) ? 1 : 2; - /** @type {?} */ - const month = Math.floor(((yearday + leapadj) * 12 + 373) / 367); - /** @type {?} */ - const tjd2 = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400) + - Math.floor((367 * month - 362) / 12 + (month <= 2 ? 0 : isGregorianLeapYear(new Date(year, month - 1, 1)) ? -1 : -2) + - 1); - /** @type {?} */ - const day = wjd - tjd2 + 1; - return new Date(year, month - 1, day); - } - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - * @param {?} month - * @param {?} year - * @return {?} - */ - getDaysPerMonth(month, year) { - year = year + Math.floor(month / 13); - month = ((month - 1) % 12) + 1; - /** @type {?} */ - let length = 29 + month % 2; - if (month === 12 && isIslamicLeapYear(year)) { - length++; - } - return length; - } -} -NgbCalendarIslamicCivil.decorators = [ - { type: Injectable } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLWlzbGFtaWMtY2l2aWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2hpanJpL25nYi1jYWxlbmRhci1pc2xhbWljLWNpdmlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQ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5ZWFyIC0gMSkgLyAxMDApICtcbiAgICAgICAgTWF0aC5mbG9vcigoeWVhciAtIDEpIC8gNDAwKSArXG4gICAgICAgIE1hdGguZmxvb3IoXG4gICAgICAgICAgICAoMzY3ICogbW9udGggLSAzNjIpIC8gMTIgKyAobW9udGggPD0gMiA/IDAgOiBpc0dyZWdvcmlhbkxlYXBZZWFyKG5ldyBEYXRlKHllYXIsIG1vbnRoIC0gMSwgMSkpID8gLTEgOiAtMikgK1xuICAgICAgICAgICAgMSk7XG5cbiAgICBjb25zdCBkYXkgPSB3amQgLSB0amQyICsgMTtcblxuICAgIHJldHVybiBuZXcgRGF0ZSh5ZWFyLCBtb250aCAtIDEsIGRheSk7XG4gIH1cblxuICAvKipcbiAgICogUmV0dXJucyB0aGUgbnVtYmVyIG9mIGRheXMgaW4gYSBzcGVjaWZpYyBIaWpyaSBtb250aC5cbiAgICogYG1vbnRoYCBpcyAxIGZvciBNdWhhcnJhbSwgMiBmb3IgU2FmYXIsIGV0Yy5cbiAgICogYHllYXJgIGlzIGFueSBIaWpyaSB5ZWFyLlxuICAgKi9cbiAgZ2V0RGF5c1Blck1vbnRoKG1vbnRoOiBudW1iZXIsIHllYXI6IG51bWJlcik6IG51bWJlciB7XG4gICAgeWVhciA9IHllYXIgKyBNYXRoLmZsb29yKG1vbnRoIC8gMTMpO1xuICAgIG1vbnRoID0gKChtb250aCAtIDEpICUgMTIpICsgMTtcbiAgICBsZXQgbGVuZ3RoID0gMjkgKyBtb250aCAlIDI7XG4gICAgaWYgKG1vbnRoID09PSAxMiAmJiBpc0lzbGFtaWNMZWFwWWVhcih5ZWFyKSkge1xuICAgICAgbGVuZ3RoKys7XG4gICAgfVxuICAgIHJldHVybiBsZW5ndGg7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-islamic-umalqura.js b/dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-islamic-umalqura.js deleted file mode 100644 index 7ce6e0e..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/hijri/ngb-calendar-islamic-umalqura.js +++ /dev/null @@ -1,261 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbCalendarIslamicCivil } from './ngb-calendar-islamic-civil'; -import { NgbDate } from '../ngb-date'; -import { Injectable } from '@angular/core'; -/** - * Umalqura calendar is one type of Hijri calendars used in islamic countries. - * This Calendar is used by Saudi Arabia for administrative purpose. - * Unlike tabular calendars, the algorithm involves astronomical calculation, but it's still deterministic. - * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types - * @type {?} - */ -const GREGORIAN_FIRST_DATE = new Date(1882, 10, 12); -/** @type {?} */ -const GREGORIAN_LAST_DATE = new Date(2174, 10, 25); -/** @type {?} */ -const HIJRI_BEGIN = 1300; -/** @type {?} */ -const HIJRI_END = 1600; -/** @type {?} */ -const ONE_DAY = 1000 * 60 * 60 * 24; -/** @type {?} */ -const MONTH_LENGTH = [ - // 1300-1304 - '101010101010', '110101010100', '111011001001', '011011010100', '011011101010', - // 1305-1309 - '001101101100', '101010101101', '010101010101', '011010101001', '011110010010', - // 1310-1314 - '101110101001', '010111010100', '101011011010', '010101011100', '110100101101', - // 1315-1319 - '011010010101', '011101001010', '101101010100', '101101101010', '010110101101', - // 1320-1324 - '010010101110', '101001001111', '010100010111', '011010001011', '011010100101', - // 1325-1329 - '101011010101', '001011010110', '100101011011', '010010011101', '101001001101', - // 1330-1334 - '110100100110', '110110010101', '010110101100', '100110110110', '001010111010', - // 1335-1339 - '101001011011', '010100101011', '101010010101', '011011001010', '101011101001', - // 1340-1344 - '001011110100', '100101110110', '001010110110', '100101010110', '101011001010', - // 1345-1349 - '101110100100', '101111010010', '010111011001', '001011011100', '100101101101', - // 1350-1354 - '010101001101', '101010100101', '101101010010', '101110100101', '010110110100', - // 1355-1359 - '100110110110', '010101010111', '001010010111', '010101001011', '011010100011', - // 1360-1364 - '011101010010', '101101100101', '010101101010', '101010101011', '010100101011', - // 1365-1369 - '110010010101', '110101001010', '110110100101', '010111001010', '101011010110', - // 1370-1374 - '100101010111', '010010101011', '100101001011', '101010100101', '101101010010', - // 1375-1379 - '101101101010', '010101110101', '001001110110', '100010110111', '010001011011', - // 1380-1384 - '010101010101', '010110101001', '010110110100', '100111011010', '010011011101', - // 1385-1389 - '001001101110', '100100110110', '101010101010', '110101010100', '110110110010', - // 1390-1394 - '010111010101', '001011011010', '100101011011', '010010101011', '101001010101', - // 1395-1399 - '101101001001', '101101100100', '101101110001', '010110110100', '101010110101', - // 1400-1404 - '101001010101', '110100100101', '111010010010', '111011001001', '011011010100', - // 1405-1409 - '101011101001', '100101101011', '010010101011', '101010010011', '110101001001', - // 1410-1414 - '110110100100', '110110110010', '101010111001', '010010111010', '101001011011', - // 1415-1419 - '010100101011', '101010010101', '101100101010', '101101010101', '010101011100', - // 1420-1424 - '010010111101', '001000111101', '100100011101', '101010010101', '101101001010', - // 1425-1429 - '101101011010', '010101101101', '001010110110', '100100111011', '010010011011', - // 1430-1434 - '011001010101', '011010101001', '011101010100', '101101101010', '010101101100', - // 1435-1439 - '101010101101', '010101010101', '101100101001', '101110010010', '101110101001', - // 1440-1444 - '010111010100', '101011011010', '010101011010', '101010101011', '010110010101', - // 1445-1449 - '011101001001', '011101100100', '101110101010', '010110110101', '001010110110', - // 1450-1454 - '101001010110', '111001001101', '101100100101', '101101010010', '101101101010', - // 1455-1459 - '010110101101', '001010101110', '100100101111', '010010010111', '011001001011', - // 1460-1464 - '011010100101', '011010101100', '101011010110', '010101011101', '010010011101', - // 1465-1469 - '101001001101', '110100010110', '110110010101', '010110101010', '010110110101', - // 1470-1474 - '001011011010', '100101011011', '010010101101', '010110010101', '011011001010', - // 1475-1479 - '011011100100', '101011101010', '010011110101', '001010110110', '100101010110', - // 1480-1484 - '101010101010', '101101010100', '101111010010', '010111011001', '001011101010', - // 1485-1489 - '100101101101', '010010101101', '101010010101', '101101001010', '101110100101', - // 1490-1494 - '010110110010', '100110110101', '010011010110', '101010010111', '010101000111', - // 1495-1499 - '011010010011', '011101001001', '101101010101', '010101101010', '101001101011', - // 1500-1504 - '010100101011', '101010001011', '110101000110', '110110100011', '010111001010', - // 1505-1509 - '101011010110', '010011011011', '001001101011', '100101001011', '101010100101', - // 1510-1514 - '101101010010', '101101101001', '010101110101', '000101110110', '100010110111', - // 1515-1519 - '001001011011', '010100101011', '010101100101', '010110110100', '100111011010', - // 1520-1524 - '010011101101', '000101101101', '100010110110', '101010100110', '110101010010', - // 1525-1529 - '110110101001', '010111010100', '101011011010', '100101011011', '010010101011', - // 1530-1534 - '011001010011', '011100101001', '011101100010', '101110101001', '010110110010', - // 1535-1539 - '101010110101', '010101010101', '101100100101', '110110010010', '111011001001', - // 1540-1544 - '011011010010', '101011101001', '010101101011', '010010101011', '101001010101', - // 1545-1549 - '110100101001', '110101010100', '110110101010', '100110110101', '010010111010', - // 1550-1554 - '101000111011', '010010011011', '101001001101', '101010101010', '101011010101', - // 1555-1559 - '001011011010', '100101011101', '010001011110', '101000101110', '110010011010', - // 1560-1564 - '110101010101', '011010110010', '011010111001', '010010111010', '101001011101', - // 1565-1569 - '010100101101', '101010010101', '101101010010', '101110101000', '101110110100', - // 1570-1574 - '010110111001', '001011011010', '100101011010', '101101001010', '110110100100', - // 1575-1579 - '111011010001', '011011101000', '101101101010', '010101101101', '010100110101', - // 1580-1584 - '011010010101', '110101001010', '110110101000', '110111010100', '011011011010', - // 1585-1589 - '010101011011', '001010011101', '011000101011', '101100010101', '101101001010', - // 1590-1594 - '101110010101', '010110101010', '101010101110', '100100101110', '110010001111', - // 1595-1599 - '010100100111', '011010010101', '011010101010', '101011010110', '010101011101', - // 1600 - '001010011101' -]; -/** - * @param {?} date1 - * @param {?} date2 - * @return {?} - */ -function getDaysDiff(date1, date2) { - // Ignores the time part in date1 and date2: - /** @type {?} */ - const time1 = Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate()); - /** @type {?} */ - const time2 = Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate()); - /** @type {?} */ - const diff = Math.abs(time1 - time2); - return Math.round(diff / ONE_DAY); -} -export class NgbCalendarIslamicUmalqura extends NgbCalendarIslamicCivil { - /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - fromGregorian(gDate) { - /** @type {?} */ - let hDay = 1; - /** @type {?} */ - let hMonth = 0; - /** @type {?} */ - let hYear = 1300; - /** @type {?} */ - let daysDiff = getDaysDiff(gDate, GREGORIAN_FIRST_DATE); - if (gDate.getTime() - GREGORIAN_FIRST_DATE.getTime() >= 0 && gDate.getTime() - GREGORIAN_LAST_DATE.getTime() <= 0) { - /** @type {?} */ - let year = 1300; - for (let i = 0; i < MONTH_LENGTH.length; i++, year++) { - for (let j = 0; j < 12; j++) { - /** @type {?} */ - let numOfDays = +MONTH_LENGTH[i][j] + 29; - if (daysDiff <= numOfDays) { - hDay = daysDiff + 1; - if (hDay > numOfDays) { - hDay = 1; - j++; - } - if (j > 11) { - j = 0; - year++; - } - hMonth = j; - hYear = year; - return new NgbDate(hYear, hMonth + 1, hDay); - } - daysDiff = daysDiff - numOfDays; - } - } - } - else { - return super.fromGregorian(gDate); - } - } - /** - * Converts the current Hijri date to Gregorian. - * @param {?} hDate - * @return {?} - */ - toGregorian(hDate) { - /** @type {?} */ - const hYear = hDate.year; - /** @type {?} */ - const hMonth = hDate.month - 1; - /** @type {?} */ - const hDay = hDate.day; - /** @type {?} */ - let gDate = new Date(GREGORIAN_FIRST_DATE); - /** @type {?} */ - let dayDiff = hDay - 1; - if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) { - for (let y = 0; y < hYear - HIJRI_BEGIN; y++) { - for (let m = 0; m < 12; m++) { - dayDiff += +MONTH_LENGTH[y][m] + 29; - } - } - for (let m = 0; m < hMonth; m++) { - dayDiff += +MONTH_LENGTH[hYear - HIJRI_BEGIN][m] + 29; - } - gDate.setDate(GREGORIAN_FIRST_DATE.getDate() + dayDiff); - } - else { - gDate = super.toGregorian(hDate); - } - return gDate; - } - /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hMonth - * @param {?} hYear - * @return {?} - */ - getDaysPerMonth(hMonth, hYear) { - if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) { - /** @type {?} */ - const pos = hYear - HIJRI_BEGIN; - return +MONTH_LENGTH[pos][hMonth - 1] + 29; - } - return super.getDaysPerMonth(hMonth, hYear); - } -} -NgbCalendarIslamicUmalqura.decorators = [ - { type: Injectable } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLWlzbGFtaWMtdW1hbHF1cmEuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2hpanJpL25nYi1jYWxlbmRhci1pc2xhbWljLXVtYWxxdXJhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsdUJBQXVCLEVBQUMsTUFBTSw4QkFBOEIsQ0FBQztBQUNyRSxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sYUFBYSxDQUFDO0FBQ3BDLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7Ozs7Ozs7O01BU25DLG9CQUFvQixHQUFHLElBQUksSUFBSSxDQUFDLElBQUksRUFBRSxFQUFFLEVBQUUsRUFBRSxDQUFDOztNQUM3QyxtQkFBbUIsR0FBRyxJQUFJLElBQUksQ0FBQyxJQUFJLEVBQUUsRUFBRSxFQUFFLEVBQUUsQ0FBQzs7TUFDNUMsV0F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XZhbGVudCBpc2xhbWljKFVtYWxxdXJhKSBkYXRlIHZhbHVlIGZvciBhIGdpdmUgaW5wdXQgR3JlZ29yaWFuIGRhdGUuXG4gICogYGdkYXRlYCBpcyBzIEpTIERhdGUgdG8gYmUgY29udmVydGVkIHRvIEhpanJpLlxuICAqL1xuICBmcm9tR3JlZ29yaWFuKGdEYXRlOiBEYXRlKTogTmdiRGF0ZSB7XG4gICAgbGV0IGhEYXkgPSAxLCBoTW9udGggPSAwLCBoWWVhciA9IDEzMDA7XG4gICAgbGV0IGRheXNEaWZmID0gZ2V0RGF5c0RpZmYoZ0RhdGUsIEdSRUdPUklBTl9GSVJTVF9EQVRFKTtcbiAgICBpZiAoZ0RhdGUuZ2V0VGltZSgpIC0gR1JFR09SSUFOX0ZJUlNUX0RBVEUuZ2V0VGltZSgpID49IDAgJiYgZ0RhdGUuZ2V0VGltZSgpIC0gR1JFR09SSUFOX0xBU1RfREFURS5nZXRUaW1lKCkgPD0gMCkge1xuICAgICAgbGV0IHllYXIgPSAxMzAwO1xuICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBNT05USF9MRU5HVEgubGVuZ3RoOyBpKyssIHllYXIrKykge1xuICAgICAgICBmb3IgKGxldCBqID0gMDsgaiA8IDEyOyBqKyspIHtcbiAgICAgICAgICBsZXQgbnVtT2ZEYXlzID0gK01PTlRIX0xFTkdUSFtpXVtqXSArIDI5O1xuICAgICAgICAgIGlmIChkYXlzRGlmZiA8PSBudW1PZkRheXMpIHtcbiAgICAgICAgICAgIGhEYXkgPSBkYXlzRGlmZiArIDE7XG4gICAgICAgICAgICBpZiAoaERheSA+IG51bU9mRGF5cykge1xuICAgICAgICAgICAgICBoRGF5ID0gMTtcbiAgICAgICAgICAgICAgaisrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGogPiAxMSkge1xuICAgICAgICAgICAgICBqID0gMDtcbiAgICAgICAgICAgICAgeWVhcisrO1xuICAgICAgICAgICAgfVxuICAgICAgICAg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W21dICsgMjk7XG4gICAgICB9XG4gICAgICBnRGF0ZS5zZXREYXRlKEdSRUdPUklBTl9GSVJTVF9EQVRFLmdldERhdGUoKSArIGRheURpZmYpO1xuICAgIH0gZWxzZSB7XG4gICAgICBnRGF0ZSA9IHN1cGVyLnRvR3JlZ29yaWFuKGhEYXRlKTtcbiAgICB9XG4gICAgcmV0dXJuIGdEYXRlO1xuICB9XG4gIC8qKlxuICAqIFJldHVybnMgdGhlIG51bWJlciBvZiBkYXlzIGluIGEgc3BlY2lmaWMgSGlqcmkgaE1vbnRoLlxuICAqIGBoTW9udGhgIGlzIDEgZm9yIE11aGFycmFtLCAyIGZvciBTYWZhciwgZXRjLlxuICAqIGBoWWVhcmAgaXMgYW55IEhpanJpIGhZZWFyLlxuICAqL1xuICBnZXREYXlzUGVyTW9udGgoaE1vbnRoOiBudW1iZXIsIGhZZWFyOiBudW1iZXIpOiBudW1iZXIge1xuICAgIGlmIChoWWVhciA+PSBISUpSSV9CRUdJTiAmJiBoWWVhciA8PSBISUpSSV9FTkQpIHtcbiAgICAgIGNvbnN0IHBvcyA9IGhZZWFyIC0gSElKUklfQkVHSU47XG4gICAgICByZXR1cm4gK01PTlRIX0xFTkdUSFtwb3NdW2hNb250aCAtIDFdICsgMjk7XG4gICAgfVxuICAgIHJldHVybiBzdXBlci5nZXREYXlzUGVyTW9udGgoaE1vbnRoLCBoWWVhcik7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/jalali/jalali.js b/dist/ng-bootstrap/esm2015/datepicker/jalali/jalali.js deleted file mode 100644 index b094c6a..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/jalali/jalali.js +++ /dev/null @@ -1,300 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbDate } from '../ngb-date'; -/** - * Returns the equivalent JS date value for a give input Jalali date. - * `jalaliDate` is an Jalali date to be converted to Gregorian. - * @param {?} jalaliDate - * @return {?} - */ -export function toGregorian(jalaliDate) { - /** @type {?} */ - let jdn = jalaliToJulian(jalaliDate.year, jalaliDate.month, jalaliDate.day); - /** @type {?} */ - let date = julianToGregorian(jdn); - date.setHours(6, 30, 3, 200); - return date; -} -/** - * Returns the equivalent jalali date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to jalali. - * utc to local - * @param {?} gdate - * @return {?} - */ -export function fromGregorian(gdate) { - /** @type {?} */ - let g2d = gregorianToJulian(gdate.getFullYear(), gdate.getMonth() + 1, gdate.getDate()); - return julianToJalali(g2d); -} -/** - * @param {?} date - * @param {?} yearValue - * @return {?} - */ -export function setJalaliYear(date, yearValue) { - date.year = +yearValue; - return date; -} -/** - * @param {?} date - * @param {?} month - * @return {?} - */ -export function setJalaliMonth(date, month) { - month = +month; - date.year = date.year + Math.floor((month - 1) / 12); - date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1; - return date; -} -/** - * @param {?} date - * @param {?} day - * @return {?} - */ -export function setJalaliDay(date, day) { - /** @type {?} */ - let mDays = getDaysPerMonth(date.month, date.year); - if (day <= 0) { - while (day <= 0) { - date = setJalaliMonth(date, date.month - 1); - mDays = getDaysPerMonth(date.month, date.year); - day += mDays; - } - } - else if (day > mDays) { - while (day > mDays) { - day -= mDays; - date = setJalaliMonth(date, date.month + 1); - mDays = getDaysPerMonth(date.month, date.year); - } - } - date.day = day; - return date; -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function mod(a, b) { - return a - b * Math.floor(a / b); -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function div(a, b) { - return Math.trunc(a / b); -} -/* - This function determines if the Jalali (Persian) year is - leap (366-day long) or is the common year (365 days), and - finds the day in March (Gregorian calendar) of the first - day of the Jalali year (jalaliYear). - @param jalaliYear Jalali calendar year (-61 to 3177) - @return - leap: number of years since the last leap year (0 to 4) - gYear: Gregorian year of the beginning of Jalali year - march: the March day of Farvardin the 1st (1st day of jalaliYear) - @see: http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm - @see: http://www.fourmilab.ch/documents/calendar/ - */ -/** - * @param {?} jalaliYear - * @return {?} - */ -function jalCal(jalaliYear) { - // Jalali years starting the 33-year rule. - /** @type {?} */ - let breaks = [-61, 9, 38, 199, 426, 686, 756, 818, 1111, 1181, 1210, 1635, 2060, 2097, 2192, 2262, 2324, 2394, 2456, 3178]; - /** @type {?} */ - const breaksLength = breaks.length; - /** @type {?} */ - const gYear = jalaliYear + 621; - /** @type {?} */ - let leapJ = -14; - /** @type {?} */ - let jp = breaks[0]; - if (jalaliYear < jp || jalaliYear >= breaks[breaksLength - 1]) { - throw new Error('Invalid Jalali year ' + jalaliYear); - } - // Find the limiting years for the Jalali year jalaliYear. - /** @type {?} */ - let jump; - for (let i = 1; i < breaksLength; i += 1) { - /** @type {?} */ - const jm = breaks[i]; - jump = jm - jp; - if (jalaliYear < jm) { - break; - } - leapJ = leapJ + div(jump, 33) * 8 + div(mod(jump, 33), 4); - jp = jm; - } - /** @type {?} */ - let n = jalaliYear - jp; - // Find the number of leap years from AD 621 to the beginning - // of the current Jalali year in the Persian calendar. - leapJ = leapJ + div(n, 33) * 8 + div(mod(n, 33) + 3, 4); - if (mod(jump, 33) === 4 && jump - n === 4) { - leapJ += 1; - } - // And the same in the Gregorian calendar (until the year gYear). - /** @type {?} */ - const leapG = div(gYear, 4) - div((div(gYear, 100) + 1) * 3, 4) - 150; - // Determine the Gregorian date of Farvardin the 1st. - /** @type {?} */ - const march = 20 + leapJ - leapG; - // Find how many years have passed since the last leap year. - if (jump - n < 6) { - n = n - jump + div(jump + 4, 33) * 33; - } - /** @type {?} */ - let leap = mod(mod(n + 1, 33) - 1, 4); - if (leap === -1) { - leap = 4; - } - return { leap: leap, gy: gYear, march: march }; -} -/* - Calculates Gregorian and Julian calendar dates from the Julian Day number - (jdn) for the period since jdn=-34839655 (i.e. the year -100100 of both - calendars) to some millions years ahead of the present. - @param jdn Julian Day number - @return - gYear: Calendar year (years BC numbered 0, -1, -2, ...) - gMonth: Calendar month (1 to 12) - gDay: Calendar day of the month M (1 to 28/29/30/31) - */ -/** - * @param {?} julianDayNumber - * @return {?} - */ -function julianToGregorian(julianDayNumber) { - /** @type {?} */ - let j = 4 * julianDayNumber + 139361631; - j = j + div(div(4 * julianDayNumber + 183187720, 146097) * 3, 4) * 4 - 3908; - /** @type {?} */ - const i = div(mod(j, 1461), 4) * 5 + 308; - /** @type {?} */ - const gDay = div(mod(i, 153), 5) + 1; - /** @type {?} */ - const gMonth = mod(div(i, 153), 12) + 1; - /** @type {?} */ - const gYear = div(j, 1461) - 100100 + div(8 - gMonth, 6); - return new Date(gYear, gMonth - 1, gDay); -} -/* - Converts a date of the Jalali calendar to the Julian Day number. - @param jy Jalali year (1 to 3100) - @param jm Jalali month (1 to 12) - @param jd Jalali day (1 to 29/31) - @return Julian Day number - */ -/** - * @param {?} gy - * @param {?} gm - * @param {?} gd - * @return {?} - */ -function gregorianToJulian(gy, gm, gd) { - /** @type {?} */ - let d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod(gm + 9, 12) + 2, 5) + gd - 34840408; - d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752; - return d; -} -/* - Converts the Julian Day number to a date in the Jalali calendar. - @param julianDayNumber Julian Day number - @return - jalaliYear: Jalali year (1 to 3100) - jalaliMonth: Jalali month (1 to 12) - jalaliDay: Jalali day (1 to 29/31) - */ -/** - * @param {?} julianDayNumber - * @return {?} - */ -function julianToJalali(julianDayNumber) { - /** @type {?} */ - let gy = julianToGregorian(julianDayNumber).getFullYear() // Calculate Gregorian year (gy). - ; - /** @type {?} */ - let jalaliYear = gy - 621; - /** @type {?} */ - let r = jalCal(jalaliYear); - /** @type {?} */ - let gregorianDay = gregorianToJulian(gy, 3, r.march); - /** @type {?} */ - let jalaliDay; - /** @type {?} */ - let jalaliMonth; - /** @type {?} */ - let numberOfDays; - // Find number of days that passed since 1 Farvardin. - numberOfDays = julianDayNumber - gregorianDay; - if (numberOfDays >= 0) { - if (numberOfDays <= 185) { - // The first 6 months. - jalaliMonth = 1 + div(numberOfDays, 31); - jalaliDay = mod(numberOfDays, 31) + 1; - return new NgbDate(jalaliYear, jalaliMonth, jalaliDay); - } - else { - // The remaining months. - numberOfDays -= 186; - } - } - else { - // Previous Jalali year. - jalaliYear -= 1; - numberOfDays += 179; - if (r.leap === 1) { - numberOfDays += 1; - } - } - jalaliMonth = 7 + div(numberOfDays, 30); - jalaliDay = mod(numberOfDays, 30) + 1; - return new NgbDate(jalaliYear, jalaliMonth, jalaliDay); -} -/* - Converts a date of the Jalali calendar to the Julian Day number. - @param jYear Jalali year (1 to 3100) - @param jMonth Jalali month (1 to 12) - @param jDay Jalali day (1 to 29/31) - @return Julian Day number - */ -/** - * @param {?} jYear - * @param {?} jMonth - * @param {?} jDay - * @return {?} - */ -function jalaliToJulian(jYear, jMonth, jDay) { - /** @type {?} */ - let r = jalCal(jYear); - return gregorianToJulian(r.gy, 3, r.march) + (jMonth - 1) * 31 - div(jMonth, 7) * (jMonth - 7) + jDay - 1; -} -/** - * Returns the number of days in a specific jalali month. - * @param {?} month - * @param {?} year - * @return {?} - */ -function getDaysPerMonth(month, year) { - if (month <= 6) { - return 31; - } - if (month <= 11) { - return 30; - } - if (jalCal(year).leap === 0) { - return 30; - } - return 29; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiamFsYWxpLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9qYWxhbGkvamFsYWxpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sYUFBYSxDQUFDOzs7Ozs7O0FBTXBDLE1B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sQ2FsKHllYXIpLmxlYXAgPT09IDApIHtcbiAgICByZXR1cm4gMzA7XG4gIH1cbiAgcmV0dXJuIDI5O1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/jalali/ngb-calendar-persian.js b/dist/ng-bootstrap/esm2015/datepicker/jalali/ngb-calendar-persian.js deleted file mode 100644 index 7f5a67a..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/jalali/ngb-calendar-persian.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import { NgbDate } from '../ngb-date'; -import { NgbCalendar } from '../ngb-calendar'; -import { isInteger } from '../../util/util'; -import { fromGregorian, setJalaliDay, setJalaliMonth, setJalaliYear, toGregorian } from './jalali'; -export class NgbCalendarPersian extends NgbCalendar { - /** - * @return {?} - */ - getDaysPerWeek() { return 7; } - /** - * @return {?} - */ - getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; } - /** - * @return {?} - */ - getWeeksPerMonth() { return 6; } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getNext(date, period = 'd', number = 1) { - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date = setJalaliYear(date, date.year + number); - date.month = 1; - date.day = 1; - return date; - case 'm': - date = setJalaliMonth(date, date.month + number); - date.day = 1; - return date; - case 'd': - return setJalaliDay(date, date.day + number); - default: - return date; - } - } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); } - /** - * @param {?} date - * @return {?} - */ - getWeekday(date) { - /** @type {?} */ - const day = toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - } - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - getWeekNumber(week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - const date = week[thursdayIndex]; - /** @type {?} */ - const jsDate = toGregorian(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - const time = jsDate.getTime(); - /** @type {?} */ - const startDate = toGregorian(new NgbDate(date.year, 1, 1)); - return Math.floor(Math.round((time - startDate.getTime()) / 86400000) / 7) + 1; - } - /** - * @return {?} - */ - getToday() { return fromGregorian(new Date()); } - /** - * @param {?} date - * @return {?} - */ - isValid(date) { - return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) && - !isNaN(toGregorian(date).getTime()); - } -} -NgbCalendarPersian.decorators = [ - { type: Injectable } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLXBlcnNpYW4uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2phbGFsaS9uZ2ItY2FsZW5kYXItcGVyc2lhbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sYUFBYSxDQUFDO0FBQ3BDLE9BQU8sRUFBQyxXQUFXLEVBQVksTUFBTSxpQkFBaUIsQ0FBQztBQUN2RCxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFFMUMsT0FBTyxFQUFDLGFBQWEsRUFBRSxZQUFZLEVBQUUsY0FBYyxFQUFFLGFBQWE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uKG5ldyBOZ2JEYXRlKGRhdGUueWVhciwgMSwgMSkpO1xuICAgIHJldHVybiBNYXRoLmZsb29yKE1hdGgucm91bmQoKHRpbWUgLSBzdGFydERhdGUuZ2V0VGltZSgpKSAvIDg2NDAwMDAwKSAvIDcpICsgMTtcbiAgfVxuXG4gIGdldFRvZGF5KCk6IE5nYkRhdGUgeyByZXR1cm4gZnJvbUdyZWdvcmlhbihuZXcgRGF0ZSgpKTsgfVxuXG4gIGlzVmFsaWQoZGF0ZTogTmdiRGF0ZSk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBkYXRlICYmIGlzSW50ZWdlcihkYXRlLnllYXIpICYmIGlzSW50ZWdlcihkYXRlLm1vbnRoKSAmJiBpc0ludGVnZXIoZGF0ZS5kYXkpICYmXG4gICAgICAgICFpc05hTih0b0dyZWdvcmlhbihkYXRlKS5nZXRUaW1lKCkpO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/ngb-calendar.js b/dist/ng-bootstrap/esm2015/datepicker/ngb-calendar.js deleted file mode 100644 index 2e57416..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/ngb-calendar.js +++ /dev/null @@ -1,233 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbDate } from './ngb-date'; -import { Injectable } from '@angular/core'; -import { isInteger } from '../util/util'; -import * as i0 from "@angular/core"; -/** - * @param {?} jsDate - * @return {?} - */ -export function fromJSDate(jsDate) { - return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate()); -} -/** - * @param {?} date - * @return {?} - */ -export function toJSDate(date) { - /** @type {?} */ - const jsDate = new Date(date.year, date.month - 1, date.day, 12); - // this is done avoid 30 -> 1930 conversion - if (!isNaN(jsDate.getTime())) { - jsDate.setFullYear(date.year); - } - return jsDate; -} -/** - * @return {?} - */ -export function NGB_DATEPICKER_CALENDAR_FACTORY() { - return new NgbCalendarGregorian(); -} -/** - * A service that represents the calendar used by the datepicker. - * - * The default implementation uses the Gregorian calendar. You can inject it in your own - * implementations if necessary to simplify `NgbDate` calculations. - * @abstract - */ -export class NgbCalendar { -} -NgbCalendar.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_CALENDAR_FACTORY },] } -]; -/** @nocollapse */ NgbCalendar.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_CALENDAR_FACTORY, token: NgbCalendar, providedIn: "root" }); -if (false) { - /** - * Returns the number of days per week. - * @abstract - * @return {?} - */ - NgbCalendar.prototype.getDaysPerWeek = function () { }; - /** - * Returns an array of months per year. - * - * With default calendar we use ISO 8601 and return [1, 2, ..., 12]; - * @abstract - * @param {?=} year - * @return {?} - */ - NgbCalendar.prototype.getMonths = function (year) { }; - /** - * Returns the number of weeks per month. - * @abstract - * @return {?} - */ - NgbCalendar.prototype.getWeeksPerMonth = function () { }; - /** - * Returns the weekday number for a given day. - * - * With the default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun - * @abstract - * @param {?} date - * @return {?} - */ - NgbCalendar.prototype.getWeekday = function (date) { }; - /** - * Adds a number of years, months or days to a given date. - * - * * `period` can be `y`, `m` or `d` and defaults to day. - * * `number` defaults to 1. - * - * Always returns a new date. - * @abstract - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendar.prototype.getNext = function (date, period, number) { }; - /** - * Subtracts a number of years, months or days from a given date. - * - * * `period` can be `y`, `m` or `d` and defaults to day. - * * `number` defaults to 1. - * - * Always returns a new date. - * @abstract - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendar.prototype.getPrev = function (date, period, number) { }; - /** - * Returns the week number for a given week. - * @abstract - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendar.prototype.getWeekNumber = function (week, firstDayOfWeek) { }; - /** - * Returns the today's date. - * @abstract - * @return {?} - */ - NgbCalendar.prototype.getToday = function () { }; - /** - * Checks if a date is valid in the current calendar. - * @abstract - * @param {?} date - * @return {?} - */ - NgbCalendar.prototype.isValid = function (date) { }; -} -export class NgbCalendarGregorian extends NgbCalendar { - /** - * @return {?} - */ - getDaysPerWeek() { return 7; } - /** - * @return {?} - */ - getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; } - /** - * @return {?} - */ - getWeeksPerMonth() { return 6; } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getNext(date, period = 'd', number = 1) { - /** @type {?} */ - let jsDate = toJSDate(date); - switch (period) { - case 'y': - return new NgbDate(date.year + number, 1, 1); - case 'm': - jsDate = new Date(date.year, date.month + number - 1, 1, 12); - break; - case 'd': - jsDate.setDate(jsDate.getDate() + number); - break; - default: - return date; - } - return fromJSDate(jsDate); - } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); } - /** - * @param {?} date - * @return {?} - */ - getWeekday(date) { - /** @type {?} */ - let jsDate = toJSDate(date); - /** @type {?} */ - let day = jsDate.getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - } - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - getWeekNumber(week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - let date = week[thursdayIndex]; - /** @type {?} */ - const jsDate = toJSDate(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - const time = jsDate.getTime(); - jsDate.setMonth(0); // Compare with Jan 1 - jsDate.setDate(1); - return Math.floor(Math.round((time - jsDate.getTime()) / 86400000) / 7) + 1; - } - /** - * @return {?} - */ - getToday() { return fromJSDate(new Date()); } - /** - * @param {?} date - * @return {?} - */ - isValid(date) { - if (!date || !isInteger(date.year) || !isInteger(date.month) || !isInteger(date.day)) { - return false; - } - // year 0 doesn't exist in Gregorian calendar - if (date.year === 0) { - return false; - } - /** @type {?} */ - const jsDate = toJSDate(date); - return !isNaN(jsDate.getTime()) && jsDate.getFullYear() === date.year && jsDate.getMonth() + 1 === date.month && - jsDate.getDate() === date.day; - } -} -NgbCalendarGregorian.decorators = [ - { type: Injectable } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9uZ2ItY2FsZW5kYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxPQUFPLEVBQUMsTUFBTSxZQUFZLENBQUM7QUFDbkMsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sY0FBYyxDQUFDOzs7Ozs7QUFFdkMsTUFBTSxVQUFVLFVBQVUsQ0FBQyxNQUFZO0lBQ3JDLE9BQU8sSUFBSSxPQUFPLENBQUMsTUFBTSxDQUFDLFdBQVcsRUFBRSxFQUFFLE1BQU0sQ0FBQyxRQUFRLEVBQUUsR0FBRyxDQUFDLEVBQUUsTUFBTSxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUM7QUFDcEYsQ0FBQzs7Ozs7QUFDRCxNQUFNLFVBQVUsUUFBUSxDQUFDLElBQWE7O1VBQzlCLE1BQU0sR0FBRyxJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxLQUFLLEdBQ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FsaWQoZGF0ZTogTmdiRGF0ZSk6IGJvb2xlYW4ge1xuICAgIGlmICghZGF0ZSB8fCAhaXNJbnRlZ2VyKGRhdGUueWVhcikgfHwgIWlzSW50ZWdlcihkYXRlLm1vbnRoKSB8fCAhaXNJbnRlZ2VyKGRhdGUuZGF5KSkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIC8vIHllYXIgMCBkb2Vzbid0IGV4aXN0IGluIEdyZWdvcmlhbiBjYWxlbmRhclxuICAgIGlmIChkYXRlLnllYXIgPT09IDApIHtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICBjb25zdCBqc0RhdGUgPSB0b0pTRGF0ZShkYXRlKTtcblxuICAgIHJldHVybiAhaXNOYU4oanNEYXRlLmdldFRpbWUoKSkgJiYganNEYXRlLmdldEZ1bGxZZWFyKCkgPT09IGRhdGUueWVhciAmJiBqc0RhdGUuZ2V0TW9udGgoKSArIDEgPT09IGRhdGUubW9udGggJiZcbiAgICAgICAganNEYXRlLmdldERhdGUoKSA9PT0gZGF0ZS5kYXk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/ngb-date-parser-formatter.js b/dist/ng-bootstrap/esm2015/datepicker/ngb-date-parser-formatter.js deleted file mode 100644 index 83c42a8..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/ngb-date-parser-formatter.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { padNumber, toInteger, isNumber } from '../util/util'; -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * @return {?} - */ -export function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY() { - return new NgbDateISOParserFormatter(); -} -/** - * An abstract service for parsing and formatting dates for the - * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive. - * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the - * input element. - * - * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object. - * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string` - * in the input. - * - * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI - * to use an alternative string format or a custom parsing logic. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * @abstract - */ -export class NgbDateParserFormatter { -} -NgbDateParserFormatter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY },] } -]; -/** @nocollapse */ NgbDateParserFormatter.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY, token: NgbDateParserFormatter, providedIn: "root" }); -if (false) { - /** - * Parses the given `string` to an `NgbDateStruct`. - * - * Implementations should try their best to provide a result, even - * partial. They must return `null` if the value can't be parsed. - * @abstract - * @param {?} value - * @return {?} - */ - NgbDateParserFormatter.prototype.parse = function (value) { }; - /** - * Formats the given `NgbDateStruct` to a `string`. - * - * Implementations should return an empty string if the given date is `null`, - * and try their best to provide a partial result if the given date is incomplete or invalid. - * @abstract - * @param {?} date - * @return {?} - */ - NgbDateParserFormatter.prototype.format = function (date) { }; -} -export class NgbDateISOParserFormatter extends NgbDateParserFormatter { - /** - * @param {?} value - * @return {?} - */ - parse(value) { - if (value) { - /** @type {?} */ - const dateParts = value.trim().split('-'); - if (dateParts.length === 1 && isNumber(dateParts[0])) { - return { year: toInteger(dateParts[0]), month: null, day: null }; - } - else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) { - return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null }; - } - else if (dateParts.length === 3 && isNumber(dateParts[0]) && isNumber(dateParts[1]) && isNumber(dateParts[2])) { - return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: toInteger(dateParts[2]) }; - } - } - return null; - } - /** - * @param {?} date - * @return {?} - */ - format(date) { - return date ? - `${date.year}-${isNumber(date.month) ? padNumber(date.month) : ''}-${isNumber(date.day) ? padNumber(date.day) : ''}` : - ''; - } -} -NgbDateISOParserFormatter.decorators = [ - { type: Injectable } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWRhdGUtcGFyc2VyLWZvcm1hdHRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvbmdiLWRhdGUtcGFyc2VyLWZvcm1hdHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFDLE1BQU0sY0FBYyxDQUFDO0FBRTVELE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7Ozs7O0FBRXpDLE1BQU0sVUFBVSx1Q0FBdUM7SUFDckQsT0FBTyxJQUFJLHlCQUF5QixFQUFFLENBQUM7QUFDekMsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFrQkQsTUFBTSxPQUFnQixzQkFBc0I7OztZQUQzQyxVQUFVLFNBQUMsRUFBQyxVQUFVLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSx1Q0FBdUMsRUFBQzs7Ozs7Ozs7Ozs7OztJQVFuRiw4REFBNkM7Ozs7Ozs7Ozs7SUFRN0MsOERBQTZDOztBQUkvQyxNQUFNLE9BQU8seUJBQTBCLFNBQVEsc0JBQXNCOzs7OztJQUNuRSxLQUFLLENBQUMsS0FBYTtRQUNqQixJQUFJLEtBQUssRUFBRTs7a0JBQ0gsU0FBUyxHQUFHLEtBQUssQ0FBQyxJQUFJLEVBQUUsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDO1lBQ3pDLElBQUksU0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cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/ngb-date-struct.js b/dist/ng-bootstrap/esm2015/datepicker/ngb-date-struct.js deleted file mode 100644 index b67ab82..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/ngb-date-struct.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * An interface of the date model used by the datepicker. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * @record - */ -export function NgbDateStruct() { } -if (false) { - /** - * The year, for example 2016 - * @type {?} - */ - NgbDateStruct.prototype.year; - /** - * The month, for example 1=Jan ... 12=Dec - * @type {?} - */ - NgbDateStruct.prototype.month; - /** - * The day of month, starting at 1 - * @type {?} - */ - NgbDateStruct.prototype.day; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWRhdGUtc3RydWN0LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9uZ2ItZGF0ZS1zdHJ1Y3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBT0EsbUNBZUM7Ozs7OztJQVhDLDZCQUFhOzs7OztJQUtiLDhCQUFjOzs7OztJQUtkLDRCQUFZIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBbiBpbnRlcmZhY2Ugb2YgdGhlIGRhdGUgbW9kZWwgdXNlZCBieSB0aGUgZGF0ZXBpY2tlci5cbiAqXG4gKiBBbGwgZGF0ZXBpY2tlciBBUElzIGNvbnN1bWUgYE5nYkRhdGVTdHJ1Y3RgLCBidXQgcmV0dXJuIGBOZ2JEYXRlYC5cbiAqXG4gKiBTZWUgdGhlIFtkYXRlIGZvcm1hdCBvdmVydmlld10oIy9jb21wb25lbnRzL2RhdGVwaWNrZXIvb3ZlcnZpZXcjZGF0ZS1tb2RlbCkgZm9yIG1vcmUgZGV0YWlscy5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBOZ2JEYXRlU3RydWN0IHtcbiAgLyoqXG4gICAqIFRoZSB5ZWFyLCBmb3IgZXhhbXBsZSAyMDE2XG4gICAqL1xuICB5ZWFyOiBudW1iZXI7XG5cbiAgLyoqXG4gICAqIFRoZSBtb250aCwgZm9yIGV4YW1wbGUgMT1KYW4gLi4uIDEyPURlY1xuICAgKi9cbiAgbW9udGg6IG51bWJlcjtcblxuICAvKipcbiAgICogVGhlIGRheSBvZiBtb250aCwgc3RhcnRpbmcgYXQgMVxuICAgKi9cbiAgZGF5OiBudW1iZXI7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/datepicker/ngb-date.js b/dist/ng-bootstrap/esm2015/datepicker/ngb-date.js deleted file mode 100644 index 86fa9c2..0000000 --- a/dist/ng-bootstrap/esm2015/datepicker/ngb-date.js +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { isInteger } from '../util/util'; -/** - * A simple class that represents a date that datepicker also uses internally. - * - * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods, - * like `.equals()`, `.before()`, etc. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * In many cases it is simpler to manipulate these objects together with - * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * - * \@since 3.0.0 - */ -export class NgbDate { - /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - * @param {?} date - * @return {?} - */ - static from(date) { - if (date instanceof NgbDate) { - return date; - } - return date ? new NgbDate(date.year, date.month, date.day) : null; - } - /** - * @param {?} year - * @param {?} month - * @param {?} day - */ - constructor(year, month, day) { - this.year = isInteger(year) ? year : null; - this.month = isInteger(month) ? month : null; - this.day = isInteger(day) ? day : null; - } - /** - * Checks if the current date is equal to another date. - * @param {?} other - * @return {?} - */ - equals(other) { - return other && this.year === other.year && this.month === other.month && this.day === other.day; - } - /** - * Checks if the current date is before another date. - * @param {?} other - * @return {?} - */ - before(other) { - if (!other) { - return false; - } - if (this.year === other.year) { - if (this.month === other.month) { - return this.day === other.day ? false : this.day < other.day; - } - else { - return this.month < other.month; - } - } - else { - return this.year < other.year; - } - } - /** - * Checks if the current date is after another date. - * @param {?} other - * @return {?} - */ - after(other) { - if (!other) { - return false; - } - if (this.year === other.year) { - if (this.month === other.month) { - return this.day === other.day ? false : this.day > other.day; - } - else { - return this.month > other.month; - } - } - else { - return this.year > other.year; - } - } -} -if (false) { - /** - * The year, for example 2016 - * @type {?} - */ - NgbDate.prototype.year; - /** - * The month, for example 1=Jan ... 12=Dec as in ISO 8601 - * @type {?} - */ - NgbDate.prototype.month; - /** - * The day of month, starting with 1 - * @type {?} - */ - NgbDate.prototype.day; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWRhdGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL25nYi1kYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sY0FBYyxDQUFDOzs7Ozs7Ozs7Ozs7Ozs7O0FBaUJ2QyxNQUFNLE9BQU8sT0FBTzs7Ozs7Ozs7OztJQXVCbEIsTUFB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UgaXMgYWZ0ZXIgYW5vdGhlciBkYXRlLlxuICAgKi9cbiAgYWZ0ZXIob3RoZXI6IE5nYkRhdGVTdHJ1Y3QpOiBib29sZWFuIHtcbiAgICBpZiAoIW90aGVyKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICAgIGlmICh0aGlzLnllYXIgPT09IG90aGVyLnllYXIpIHtcbiAgICAgIGlmICh0aGlzLm1vbnRoID09PSBvdGhlci5tb250aCkge1xuICAgICAgICByZXR1cm4gdGhpcy5kYXkgPT09IG90aGVyLmRheSA/IGZhbHNlIDogdGhpcy5kYXkgPiBvdGhlci5kYXk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gdGhpcy5tb250aCA+IG90aGVyLm1vbnRoO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gdGhpcy55ZWFyID4gb3RoZXIueWVhcjtcbiAgICB9XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/dropdown/dropdown-config.js b/dist/ng-bootstrap/esm2015/dropdown/dropdown-config.js deleted file mode 100644 index d59ef65..0000000 --- a/dist/ng-bootstrap/esm2015/dropdown/dropdown-config.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the dropdowns used in the application. - */ -export class NgbDropdownConfig { - constructor() { - this.autoClose = true; - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - } -} -NgbDropdownConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbDropdownConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbDropdownConfig_Factory() { return new NgbDropdownConfig(); }, token: NgbDropdownConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbDropdownConfig.prototype.autoClose; - /** @type {?} */ - NgbDropdownConfig.prototype.placement; - /** @type {?} */ - NgbDropdownConfig.prototype.container; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZHJvcGRvd24vZHJvcGRvd24tY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVV6QyxNQUFNLE9BQU8saUJBQWlCO0lBRDlCO1FBRUUsY0FBUyxHQUFtQyxJQUFJLENBQUM7UUFDakQsY0FBUyxHQUFtQixDQUFDLGFBQWEsRUFBRSxjQUFjLEVBQUUsVUFBVSxFQUFFLFdBQVcsQ0FBQyxDQUFDO0tBRXRGOzs7WUFMQSxVQUFVLFNBQUMsRUFBQyxVQUFVLEVBQUUsTUFBTSxFQUFDOzs7OztJQUU5QixzQ0FBaUQ7O0lBQ2pELHNDQUFxRjs7SUFDckYsc0NBQXlCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtJbmplY3RhYmxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7UGxhY2VtZW50QXJyYXl9IGZyb20gJy4uL3V0aWwvcG9zaXRpb25pbmcnO1xuXG4vKipcbiAqIEEgY29uZmlndXJhdGlvbiBzZXJ2aWNlIGZvciB0aGUgW2BOZ2JEcm9wZG93bmBdKCMvY29tcG9uZW50cy9kcm9wZG93bi9hcGkjTmdiRHJvcGRvd24pIGNvbXBvbmVudC5cbiAqXG4gKiBZb3UgY2FuIGluamVjdCB0aGlzIHNlcnZpY2UsIHR5cGljYWxseSBpbiB5b3VyIHJvb3QgY29tcG9uZW50LCBhbmQgY3VzdG9taXplIHRoZSB2YWx1ZXMgb2YgaXRzIHByb3BlcnRpZXMgaW5cbiAqIG9yZGVyIHRvIHByb3ZpZGUgZGVmYXVsdCB2YWx1ZXMgZm9yIGFsbCB0aGUgZHJvcGRvd25zIHVzZWQgaW4gdGhlIGFwcGxpY2F0aW9uLlxuICovXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBOZ2JEcm9wZG93bkNvbmZpZyB7XG4gIGF1dG9DbG9zZTogYm9vbGVhbiB8ICdvdXRzaWRlJyB8ICdpbnNpZGUnID0gdHJ1ZTtcbiAgcGxhY2VtZW50OiBQbGFjZW1lbnRBcnJheSA9IFsnYm90dG9tLWxlZnQnLCAnYm90dG9tLXJpZ2h0JywgJ3RvcC1sZWZ0JywgJ3RvcC1yaWdodCddO1xuICBjb250YWluZXI6IG51bGwgfCAnYm9keSc7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/dropdown/dropdown.js b/dist/ng-bootstrap/esm2015/dropdown/dropdown.js deleted file mode 100644 index 1f1f9a7..0000000 --- a/dist/ng-bootstrap/esm2015/dropdown/dropdown.js +++ /dev/null @@ -1,670 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, ContentChild, ContentChildren, Directive, ElementRef, EventEmitter, forwardRef, Inject, Input, NgZone, Output, QueryList, Renderer2, Optional } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { Subject } from 'rxjs'; -import { take } from 'rxjs/operators'; -import { positionElements } from '../util/positioning'; -import { ngbAutoClose } from '../util/autoclose'; -import { Key } from '../util/key'; -import { NgbDropdownConfig } from './dropdown-config'; -export class NgbNavbar { -} -NgbNavbar.decorators = [ - { type: Directive, args: [{ selector: '.navbar' },] } -]; -/** - * A directive you should put put on a dropdown item to enable keyboard navigation. - * Arrow keys will move focus between items marked with this directive. - * - * \@since 4.1.0 - */ -export class NgbDropdownItem { - /** - * @param {?} elementRef - */ - constructor(elementRef) { - this.elementRef = elementRef; - this._disabled = false; - } - /** - * @param {?} value - * @return {?} - */ - set disabled(value) { - this._disabled = (/** @type {?} */ (value)) === '' || value === true; // accept an empty attribute as true - } - /** - * @return {?} - */ - get disabled() { return this._disabled; } -} -NgbDropdownItem.decorators = [ - { type: Directive, args: [{ selector: '[ngbDropdownItem]', host: { 'class': 'dropdown-item', '[class.disabled]': 'disabled' } },] } -]; -/** @nocollapse */ -NgbDropdownItem.ctorParameters = () => [ - { type: ElementRef } -]; -NgbDropdownItem.propDecorators = { - disabled: [{ type: Input }] -}; -if (false) { - /** - * @type {?} - * @private - */ - NgbDropdownItem.prototype._disabled; - /** @type {?} */ - NgbDropdownItem.prototype.elementRef; -} -/** - * A directive that wraps dropdown menu content and dropdown items. - */ -export class NgbDropdownMenu { - /** - * @param {?} dropdown - */ - constructor(dropdown) { - this.dropdown = dropdown; - this.placement = 'bottom'; - this.isOpen = false; - } -} -NgbDropdownMenu.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownMenu]', - host: { - '[class.dropdown-menu]': 'true', - '[class.show]': 'dropdown.isOpen()', - '[attr.x-placement]': 'placement', - '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)', - '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)', - '(keydown.Home)': 'dropdown.onKeyDown($event)', - '(keydown.End)': 'dropdown.onKeyDown($event)', - '(keydown.Enter)': 'dropdown.onKeyDown($event)', - '(keydown.Space)': 'dropdown.onKeyDown($event)' - } - },] } -]; -/** @nocollapse */ -NgbDropdownMenu.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - () => NgbDropdown)),] }] } -]; -NgbDropdownMenu.propDecorators = { - menuItems: [{ type: ContentChildren, args: [NgbDropdownItem,] }] -}; -if (false) { - /** @type {?} */ - NgbDropdownMenu.prototype.placement; - /** @type {?} */ - NgbDropdownMenu.prototype.isOpen; - /** @type {?} */ - NgbDropdownMenu.prototype.menuItems; - /** @type {?} */ - NgbDropdownMenu.prototype.dropdown; -} -/** - * A directive to mark an element to which dropdown menu will be anchored. - * - * This is a simple version of the `NgbDropdownToggle` directive. - * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support - * for events other than click. - * - * \@since 1.1.0 - */ -export class NgbDropdownAnchor { - /** - * @param {?} dropdown - * @param {?} _elementRef - */ - constructor(dropdown, _elementRef) { - this.dropdown = dropdown; - this._elementRef = _elementRef; - this.anchorEl = _elementRef.nativeElement; - } - /** - * @return {?} - */ - getNativeElement() { return this._elementRef.nativeElement; } -} -NgbDropdownAnchor.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownAnchor]', - host: { 'class': 'dropdown-toggle', 'aria-haspopup': 'true', '[attr.aria-expanded]': 'dropdown.isOpen()' } - },] } -]; -/** @nocollapse */ -NgbDropdownAnchor.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - () => NgbDropdown)),] }] }, - { type: ElementRef } -]; -if (false) { - /** @type {?} */ - NgbDropdownAnchor.prototype.anchorEl; - /** @type {?} */ - NgbDropdownAnchor.prototype.dropdown; - /** - * @type {?} - * @private - */ - NgbDropdownAnchor.prototype._elementRef; -} -/** - * A directive to mark an element that will toggle dropdown via the `click` event. - * - * You can also use `NgbDropdownAnchor` as an alternative. - */ -export class NgbDropdownToggle extends NgbDropdownAnchor { - /** - * @param {?} dropdown - * @param {?} elementRef - */ - constructor(dropdown, elementRef) { - super(dropdown, elementRef); - } -} -NgbDropdownToggle.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownToggle]', - host: { - 'class': 'dropdown-toggle', - 'aria-haspopup': 'true', - '[attr.aria-expanded]': 'dropdown.isOpen()', - '(click)': 'dropdown.toggle()', - '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)', - '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)', - '(keydown.Home)': 'dropdown.onKeyDown($event)', - '(keydown.End)': 'dropdown.onKeyDown($event)' - }, - providers: [{ provide: NgbDropdownAnchor, useExisting: forwardRef((/** - * @return {?} - */ - () => NgbDropdownToggle)) }] - },] } -]; -/** @nocollapse */ -NgbDropdownToggle.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - () => NgbDropdown)),] }] }, - { type: ElementRef } -]; -/** - * A directive that provides contextual overlays for displaying lists of links and more. - */ -export class NgbDropdown { - /** - * @param {?} _changeDetector - * @param {?} config - * @param {?} _document - * @param {?} _ngZone - * @param {?} _elementRef - * @param {?} _renderer - * @param {?} ngbNavbar - */ - constructor(_changeDetector, config, _document, _ngZone, _elementRef, _renderer, ngbNavbar) { - this._changeDetector = _changeDetector; - this._document = _document; - this._ngZone = _ngZone; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._closed$ = new Subject(); - /** - * Defines whether or not the dropdown menu is opened initially. - */ - this._open = false; - /** - * An event fired when the dropdown is opened or closed. - * - * The event payload is a `boolean`: - * * `true` - the dropdown was opened - * * `false` - the dropdown was closed - */ - this.openChange = new EventEmitter(); - this.placement = config.placement; - this.container = config.container; - this.autoClose = config.autoClose; - this.display = ngbNavbar ? 'static' : 'dynamic'; - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - () => { this._positionMenu(); })); - } - /** - * @return {?} - */ - ngAfterContentInit() { - this._ngZone.onStable.pipe(take(1)).subscribe((/** - * @return {?} - */ - () => { - this._applyPlacementClasses(); - if (this._open) { - this._setCloseHandlers(); - } - })); - } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - if (changes.container && this._open) { - this._applyContainer(this.container); - } - if (changes.placement && !changes.placement.isFirstChange) { - this._applyPlacementClasses(); - } - } - /** - * Checks if the dropdown menu is open. - * @return {?} - */ - isOpen() { return this._open; } - /** - * Opens the dropdown menu. - * @return {?} - */ - open() { - if (!this._open) { - this._open = true; - this._applyContainer(this.container); - this.openChange.emit(true); - this._setCloseHandlers(); - } - } - /** - * @private - * @return {?} - */ - _setCloseHandlers() { - /** @type {?} */ - const anchor = this._anchor; - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - () => this.close()), this._closed$, this._menu ? [this._menuElement.nativeElement] : [], anchor ? [anchor.getNativeElement()] : [], '.dropdown-item,.dropdown-divider'); - } - /** - * Closes the dropdown menu. - * @return {?} - */ - close() { - if (this._open) { - this._open = false; - this._resetContainer(); - this._closed$.next(); - this.openChange.emit(false); - this._changeDetector.markForCheck(); - } - } - /** - * Toggles the dropdown menu. - * @return {?} - */ - toggle() { - if (this.isOpen()) { - this.close(); - } - else { - this.open(); - } - } - /** - * @return {?} - */ - ngOnDestroy() { - this._resetContainer(); - this._closed$.next(); - this._zoneSubscription.unsubscribe(); - } - /** - * @param {?} event - * @return {?} - */ - onKeyDown(event) { - // tslint:disable-next-line:deprecation - /** @type {?} */ - const key = event.which; - /** @type {?} */ - const itemElements = this._getMenuElements(); - /** @type {?} */ - let position = -1; - /** @type {?} */ - let isEventFromItems = false; - /** @type {?} */ - const isEventFromToggle = this._isEventFromToggle(event); - if (!isEventFromToggle && itemElements.length) { - itemElements.forEach((/** - * @param {?} itemElement - * @param {?} index - * @return {?} - */ - (itemElement, index) => { - if (itemElement.contains((/** @type {?} */ (event.target)))) { - isEventFromItems = true; - } - if (itemElement === this._document.activeElement) { - position = index; - } - })); - } - // closing on Enter / Space - if (key === Key.Space || key === Key.Enter) { - if (isEventFromItems && (this.autoClose === true || this.autoClose === 'inside')) { - this.close(); - } - return; - } - // opening / navigating - if (isEventFromToggle || isEventFromItems) { - this.open(); - if (itemElements.length) { - switch (key) { - case Key.ArrowDown: - position = Math.min(position + 1, itemElements.length - 1); - break; - case Key.ArrowUp: - if (this._isDropup() && position === -1) { - position = itemElements.length - 1; - break; - } - position = Math.max(position - 1, 0); - break; - case Key.Home: - position = 0; - break; - case Key.End: - position = itemElements.length - 1; - break; - } - itemElements[position].focus(); - } - event.preventDefault(); - } - } - /** - * @private - * @return {?} - */ - _isDropup() { return this._elementRef.nativeElement.classList.contains('dropup'); } - /** - * @private - * @param {?} event - * @return {?} - */ - _isEventFromToggle(event) { - return this._anchor.getNativeElement().contains((/** @type {?} */ (event.target))); - } - /** - * @private - * @return {?} - */ - _getMenuElements() { - /** @type {?} */ - const menu = this._menu; - if (menu == null) { - return []; - } - return menu.menuItems.filter((/** - * @param {?} item - * @return {?} - */ - item => !item.disabled)).map((/** - * @param {?} item - * @return {?} - */ - item => item.elementRef.nativeElement)); - } - /** - * @private - * @return {?} - */ - _positionMenu() { - /** @type {?} */ - const menu = this._menu; - if (this.isOpen() && menu) { - this._applyPlacementClasses(this.display === 'dynamic' ? - positionElements(this._anchor.anchorEl, this._bodyContainer || this._menuElement.nativeElement, this.placement, this.container === 'body') : - this._getFirstPlacement(this.placement)); - } - } - /** - * @private - * @param {?} placement - * @return {?} - */ - _getFirstPlacement(placement) { - return Array.isArray(placement) ? placement[0] : (/** @type {?} */ (placement.split(' ')[0])); - } - /** - * @private - * @return {?} - */ - _resetContainer() { - /** @type {?} */ - const renderer = this._renderer; - /** @type {?} */ - const menuElement = this._menuElement; - if (menuElement) { - /** @type {?} */ - const dropdownElement = this._elementRef.nativeElement; - /** @type {?} */ - const dropdownMenuElement = menuElement.nativeElement; - renderer.appendChild(dropdownElement, dropdownMenuElement); - renderer.removeStyle(dropdownMenuElement, 'position'); - renderer.removeStyle(dropdownMenuElement, 'transform'); - } - if (this._bodyContainer) { - renderer.removeChild(this._document.body, this._bodyContainer); - this._bodyContainer = null; - } - } - /** - * @private - * @param {?=} container - * @return {?} - */ - _applyContainer(container = null) { - this._resetContainer(); - if (container === 'body') { - /** @type {?} */ - const renderer = this._renderer; - /** @type {?} */ - const dropdownMenuElement = this._menuElement.nativeElement; - /** @type {?} */ - const bodyContainer = this._bodyContainer = this._bodyContainer || renderer.createElement('div'); - // Override some styles to have the positionning working - renderer.setStyle(bodyContainer, 'position', 'absolute'); - renderer.setStyle(dropdownMenuElement, 'position', 'static'); - renderer.setStyle(bodyContainer, 'z-index', '1050'); - renderer.appendChild(bodyContainer, dropdownMenuElement); - renderer.appendChild(this._document.body, bodyContainer); - } - } - /** - * @private - * @param {?=} placement - * @return {?} - */ - _applyPlacementClasses(placement) { - /** @type {?} */ - const menu = this._menu; - if (menu) { - if (!placement) { - placement = this._getFirstPlacement(this.placement); - } - /** @type {?} */ - const renderer = this._renderer; - /** @type {?} */ - const dropdownElement = this._elementRef.nativeElement; - // remove the current placement classes - renderer.removeClass(dropdownElement, 'dropup'); - renderer.removeClass(dropdownElement, 'dropdown'); - menu.placement = this.display === 'static' ? null : placement; - /* - * apply the new placement - * in case of top use up-arrow or down-arrow otherwise - */ - /** @type {?} */ - const dropdownClass = placement.search('^top') !== -1 ? 'dropup' : 'dropdown'; - renderer.addClass(dropdownElement, dropdownClass); - /** @type {?} */ - const bodyContainer = this._bodyContainer; - if (bodyContainer) { - renderer.removeClass(bodyContainer, 'dropup'); - renderer.removeClass(bodyContainer, 'dropdown'); - renderer.addClass(bodyContainer, dropdownClass); - } - } - } -} -NgbDropdown.decorators = [ - { type: Directive, args: [{ selector: '[ngbDropdown]', exportAs: 'ngbDropdown', host: { '[class.show]': 'isOpen()' } },] } -]; -/** @nocollapse */ -NgbDropdown.ctorParameters = () => [ - { type: ChangeDetectorRef }, - { type: NgbDropdownConfig }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: NgZone }, - { type: ElementRef }, - { type: Renderer2 }, - { type: NgbNavbar, decorators: [{ type: Optional }] } -]; -NgbDropdown.propDecorators = { - _menu: [{ type: ContentChild, args: [NgbDropdownMenu, { static: false },] }], - _menuElement: [{ type: ContentChild, args: [NgbDropdownMenu, { read: ElementRef, static: false },] }], - _anchor: [{ type: ContentChild, args: [NgbDropdownAnchor, { static: false },] }], - autoClose: [{ type: Input }], - _open: [{ type: Input, args: ['open',] }], - placement: [{ type: Input }], - container: [{ type: Input }], - display: [{ type: Input }], - openChange: [{ type: Output }] -}; -if (false) { - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._closed$; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._zoneSubscription; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._bodyContainer; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._menu; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._menuElement; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._anchor; - /** - * Indicates whether the dropdown should be closed when clicking one of dropdown items or pressing ESC. - * - * * `true` - the dropdown will close on both outside and inside (menu) clicks. - * * `false` - the dropdown can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the dropdown will close on inside menu clicks, but not outside clicks. - * * `"outside"` - the dropdown will close only on the outside clicks and not on menu clicks. - * @type {?} - */ - NgbDropdown.prototype.autoClose; - /** - * Defines whether or not the dropdown menu is opened initially. - * @type {?} - */ - NgbDropdown.prototype._open; - /** - * The preferred placement of the dropdown. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - * @type {?} - */ - NgbDropdown.prototype.placement; - /** - * A selector specifying the element the dropdown should be appended to. - * Currently only supports "body". - * - * \@since 4.1.0 - * @type {?} - */ - NgbDropdown.prototype.container; - /** - * Enable or disable the dynamic positioning. The default value is dynamic unless the dropdown is used - * inside a Bootstrap navbar. If you need custom placement for a dropdown in a navbar, set it to - * dynamic explicitly. See the [positioning of dropdown](#/positioning#dropdown) - * and the [navbar demo](/#/components/dropdown/examples#navbar) for more details. - * - * \@since 4.2.0 - * @type {?} - */ - NgbDropdown.prototype.display; - /** - * An event fired when the dropdown is opened or closed. - * - * The event payload is a `boolean`: - * * `true` - the dropdown was opened - * * `false` - the dropdown was closed - * @type {?} - */ - NgbDropdown.prototype.openChange; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._changeDetector; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._document; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._elementRef; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._renderer; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkcm9wZG93bi9kcm9wZG93bi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLGlCQUFpQixFQUNqQixZQUFZLEVBQ1osZUFBZSxFQUNmLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLFVBQVUsRUFDVixNQUFNLEVBQ04sS0FBSyxFQUNMLE1BQU0sRUFHTixNQUFNLEVBQ04sU0FBUyxFQUNULFNBQVMsRUFFVCxRQUFRLEVBQ1QsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBQyxPQUFPLEVBQWUsTUFBTSxNQUFNLENBQUM7QUFDM0MsT0FBTyxFQUFDLElBQUksRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBRXBDLE9BQU8sRUFBNEIsZ0JBQWdCLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUNoRixPQUF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KTtcbiAgICAgIH1cbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICAvLyBvcGVuaW5nIC8gbmF2aWdhdGluZ1xuICAgIGlmIChpc0V2ZW50RnJvbVRvZ2dsZSB8fCBpc0V2ZW50RnJvbUl0ZW1zKSB7XG4gICAgICB0aGlzLm9wZW4oKTtcblxuICAgICAgaWYgKGl0ZW1FbGVtZW50cy5sZW5ndGgpIHtcbiAgICAgICAgc3dpdGNoIChrZXkpIHtcbiAgICAgICAgICBjYXNlIEtleS5BcnJvd0Rvd246XG4gICAgICAgICAgICBwb3NpdGlvbiA9IE1hdGgubWluKHBvc2l0aW9uICsgMSwgaXRlbUVsZW1lbnRzLmxlbmd0aCAtIDEpO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgY2FzZSBLZXkuQXJyb3dVcDpcbiAgICAgICAgICAgIGlmICh0aGlzLl9pc0Ryb3B1cCgpICYmIHBvc2l0aW9uID09PSAtMSkge1xuICAgICAgICAgICAgICBwb3NpdGlvbiA9IGl0ZW1FbGVtZW50cy5sZW5ndGggLSAxO1xuICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHBvc2l0aW9uID0gTWF0aC5tYXgocG9zaXRpb24gLSAxLCAwKTtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgIGNhc2UgS2V5LkhvbWU6XG4gICAgICAgICAgICBwb3NpdGlvbiA9IDA7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgICBjYXNlIEtleS5FbmQ6XG4gICAgICAgICAgICBwb3NpdGlvbiA9IGl0ZW1FbGVtZW50cy5sZW5ndGggLSAxO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICAgICAgaXRlbUVsZW1lbnRzW3Bvc2l0aW9uXS5mb2N1cygpO1xuICAgICAgfVxuICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIF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IpIHtcbiAgICAgICAgcmVuZGVyZXIucmVtb3ZlQ2xhc3MoYm9keUNvbnRhaW5lciwgJ2Ryb3B1cCcpO1xuICAgICAgICByZW5kZXJlci5yZW1vdmVDbGFzcyhib2R5Q29udGFpbmVyLCAnZHJvcGRvd24nKTtcbiAgICAgICAgcmVuZGVyZXIuYWRkQ2xhc3MoYm9keUNvbnRhaW5lciwgZHJvcGRvd25DbGFzcyk7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/dropdown/dropdown.module.js b/dist/ng-bootstrap/esm2015/dropdown/dropdown.module.js deleted file mode 100644 index fd08041..0000000 --- a/dist/ng-bootstrap/esm2015/dropdown/dropdown.module.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar } from './dropdown'; -export { NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem } from './dropdown'; -export { NgbDropdownConfig } from './dropdown-config'; -/** @type {?} */ -const NGB_DROPDOWN_DIRECTIVES = [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar]; -export class NgbDropdownModule { -} -NgbDropdownModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_DROPDOWN_DIRECTIVES, exports: NGB_DROPDOWN_DIRECTIVES },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24ubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZHJvcGRvd24v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3duSXRlbX0gZnJvbSAnLi9kcm9wZG93bic7XG5leHBvcnQge05nYkRyb3Bkb3duQ29uZmlnfSBmcm9tICcuL2Ryb3Bkb3duLWNvbmZpZyc7XG5cbmNvbnN0IE5HQl9EUk9QRE9XTl9ESVJFQ1RJVkVTID1cbiAgICBbTmdiRHJvcGRvd24sIE5nYkRyb3Bkb3duQW5jaG9yLCBOZ2JEcm9wZG93blRvZ2dsZSwgTmdiRHJvcGRvd25NZW51LCBOZ2JEcm9wZG93bkl0ZW0sIE5nYk5hdmJhcl07XG5cbkBOZ01vZHVsZSh7ZGVjbGFyYXRpb25zOiBOR0JfRFJPUERPV05fRElSRUNUSVZFUywgZXhwb3J0czogTkdCX0RST1BET1dOX0RJUkVDVElWRVN9KVxuZXhwb3J0IGNsYXNzIE5nYkRyb3Bkb3duTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/index.js b/dist/ng-bootstrap/esm2015/index.js deleted file mode 100644 index 4bbeb4f..0000000 --- a/dist/ng-bootstrap/esm2015/index.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { SbCardModule } from './card/card.module'; -import { NgbAccordionModule } from './accordion/accordion.module'; -import { NgbAlertModule } from './alert/alert.module'; -import { NgbButtonsModule } from './buttons/buttons.module'; -import { NgbCarouselModule } from './carousel/carousel.module'; -import { NgbCollapseModule } from './collapse/collapse.module'; -import { NgbDatepickerModule } from './datepicker/datepicker.module'; -import { NgbDropdownModule } from './dropdown/dropdown.module'; -import { NgbModalModule } from './modal/modal.module'; -import { NgbPaginationModule } from './pagination/pagination.module'; -import { NgbPopoverModule } from './popover/popover.module'; -import { NgbProgressbarModule } from './progressbar/progressbar.module'; -import { NgbRatingModule } from './rating/rating.module'; -import { NgbTabsetModule } from './tabset/tabset.module'; -import { NgbTimepickerModule } from './timepicker/timepicker.module'; -import { NgbToastModule } from './toast/toast.module'; -import { NgbTooltipModule } from './tooltip/tooltip.module'; -import { NgbTypeaheadModule } from './typeahead/typeahead.module'; -export { NgbAccordion, NgbAccordionConfig, NgbAccordionModule, NgbPanel, NgbPanelContent, NgbPanelHeader, NgbPanelTitle, NgbPanelToggle } from './accordion/accordion.module'; -export { SbCard, SbCardConfig, SbCardModule } from './card/card.module'; -export { NgbAlert, NgbAlertConfig, NgbAlertModule } from './alert/alert.module'; -export { NgbButtonLabel, NgbButtonsModule, NgbCheckBox, NgbRadio, NgbRadioGroup } from './buttons/buttons.module'; -export { NgbCarousel, NgbCarouselConfig, NgbCarouselModule, NgbSlide, NgbSlideEventDirection, NgbSlideEventSource } from './carousel/carousel.module'; -export { NgbCollapse, NgbCollapseModule } from './collapse/collapse.module'; -export { NgbCalendar, NgbCalendarGregorian, NgbCalendarHebrew, NgbCalendarIslamicCivil, NgbCalendarIslamicUmalqura, NgbCalendarPersian, NgbDate, NgbDateAdapter, NgbDateNativeAdapter, NgbDateNativeUTCAdapter, NgbDateParserFormatter, NgbDatepicker, NgbDatepickerConfig, NgbDatepickerI18n, NgbDatepickerI18nHebrew, NgbDatepickerModule, NgbInputDatepicker } from './datepicker/datepicker.module'; -export { NgbDropdown, NgbDropdownAnchor, NgbDropdownConfig, NgbDropdownItem, NgbDropdownMenu, NgbDropdownModule, NgbDropdownToggle } from './dropdown/dropdown.module'; -export { ModalDismissReasons, NgbActiveModal, NgbModal, NgbModalConfig, NgbModalModule, NgbModalRef } from './modal/modal.module'; -export { NgbPagination, NgbPaginationConfig, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationModule, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious } from './pagination/pagination.module'; -export { NgbPopover, NgbPopoverConfig, NgbPopoverModule } from './popover/popover.module'; -export { NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule } from './progressbar/progressbar.module'; -export { NgbRating, NgbRatingConfig, NgbRatingModule } from './rating/rating.module'; -export { NgbTab, NgbTabContent, NgbTabset, NgbTabsetConfig, NgbTabsetModule, NgbTabTitle } from './tabset/tabset.module'; -export { NgbTimeAdapter, NgbTimepickerI18n, NgbTimepicker, NgbTimepickerConfig, NgbTimepickerModule } from './timepicker/timepicker.module'; -export { NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule } from './toast/toast.module'; -export { NgbTooltip, NgbTooltipConfig, NgbTooltipModule } from './tooltip/tooltip.module'; -export { NgbHighlight, NgbTypeahead, NgbTypeaheadConfig, NgbTypeaheadModule } from './typeahead/typeahead.module'; -/** @type {?} */ -const NGB_MODULES = [ - SbCardModule, NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule, - NgbDropdownModule, NgbModalModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule, - NgbTabsetModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule -]; -export class NgbModule { -} -NgbModule.decorators = [ - { type: NgModule, args: [{ imports: NGB_MODULES, exports: NGB_MODULES },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV2QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sb0JBQW9CLENBQUM7QUFDaEQsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFDaEUsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBQ3BELE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2tlck1vZHVsZSwgTmdiVG9hc3RNb2R1bGUsIE5nYlRvb2x0aXBNb2R1bGUsIE5nYlR5cGVhaGVhZE1vZHVsZVxuXTtcblxuQE5nTW9kdWxlKHtpbXBvcnRzOiBOR0JfTU9EVUxFUywgZXhwb3J0czogTkdCX01PRFVMRVN9KVxuZXhwb3J0IGNsYXNzIE5nYk1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/modal/modal-backdrop.js b/dist/ng-bootstrap/esm2015/modal/modal-backdrop.js deleted file mode 100644 index e7cf6e8..0000000 --- a/dist/ng-bootstrap/esm2015/modal/modal-backdrop.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input } from '@angular/core'; -export class NgbModalBackdrop { -} -NgbModalBackdrop.decorators = [ - { type: Component, args: [{ - selector: 'ngb-modal-backdrop', - template: '', - host: { '[class]': '"modal-backdrop fade show" + (backdropClass ? " " + backdropClass : "")', 'style': 'z-index: 1050' } - }] } -]; -NgbModalBackdrop.propDecorators = { - backdropClass: [{ type: Input }] -}; -if (false) { - /** @type {?} */ - NgbModalBackdrop.prototype.backdropClass; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtYmFja2Ryb3AuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJtb2RhbC9tb2RhbC1iYWNrZHJvcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFRL0MsTUFBTSxPQUFPLGdCQUFnQjs7O1lBTjVCLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsb0JBQW9CO2dCQUM5QixRQUFRLEVBQUUsRUFBRTtnQkFDWixJQUFJLEVBQ0EsRUFBQyxTQUFTLEVBQUUseUVBQXlFLEVBQUUsT0FBTyxFQUFFLGVBQWUsRUFBQzthQUNySDs7OzRCQUVFLEtBQUs7Ozs7SUFBTix5Q0FBK0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0NvbXBvbmVudCwgSW5wdXR9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICduZ2ItbW9kYWwtYmFja2Ryb3AnLFxuICB0ZW1wbGF0ZTogJycsXG4gIGhvc3Q6XG4gICAgICB7J1tjbGFzc10nOiAnXCJtb2RhbC1iYWNrZHJvcCBmYWRlIHNob3dcIiArIChiYWNrZHJvcENsYXNzID8gXCIgXCIgKyBiYWNrZHJvcENsYXNzIDogXCJcIiknLCAnc3R5bGUnOiAnei1pbmRleDogMTA1MCd9XG59KVxuZXhwb3J0IGNsYXNzIE5nYk1vZGFsQmFja2Ryb3Age1xuICBASW5wdXQoKSBiYWNrZHJvcENsYXNzOiBzdHJpbmc7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/modal/modal-config.js b/dist/ng-bootstrap/esm2015/modal/modal-config.js deleted file mode 100644 index 6039015..0000000 --- a/dist/ng-bootstrap/esm2015/modal/modal-config.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * Options available when opening new modal windows with `NgbModal.open()` method. - * @record - */ -export function NgbModalOptions() { } -if (false) { - /** - * `aria-labelledby` attribute value to set on the modal window. - * - * \@since 2.2.0 - * @type {?|undefined} - */ - NgbModalOptions.prototype.ariaLabelledBy; - /** - * If `true`, the backdrop element will be created for a given modal. - * - * Alternatively, specify `'static'` for a backdrop which doesn't close the modal on click. - * - * Default value is `true`. - * @type {?|undefined} - */ - NgbModalOptions.prototype.backdrop; - /** - * Callback right before the modal will be dismissed. - * - * If this function returns: - * * `false` - * * a promise resolved with `false` - * * a promise that is rejected - * - * then the modal won't be dismissed. - * @type {?|undefined} - */ - NgbModalOptions.prototype.beforeDismiss; - /** - * If `true`, the modal will be centered vertically. - * - * Default value is `false`. - * - * \@since 1.1.0 - * @type {?|undefined} - */ - NgbModalOptions.prototype.centered; - /** - * A selector specifying the element all new modal windows should be appended to. - * - * If not specified, will be `body`. - * @type {?|undefined} - */ - NgbModalOptions.prototype.container; - /** - * The `Injector` to use for modal content. - * @type {?|undefined} - */ - NgbModalOptions.prototype.injector; - /** - * If `true`, the modal will be closed when `Escape` key is pressed - * - * Default value is `true`. - * @type {?|undefined} - */ - NgbModalOptions.prototype.keyboard; - /** - * Scrollable modal content (false by default). - * - * \@since 5.0.0 - * @type {?|undefined} - */ - NgbModalOptions.prototype.scrollable; - /** - * Size of a new modal window. - * @type {?|undefined} - */ - NgbModalOptions.prototype.size; - /** - * A custom class to append to the modal window. - * @type {?|undefined} - */ - NgbModalOptions.prototype.windowClass; - /** - * A custom class to append to the modal backdrop. - * - * \@since 1.1.0 - * @type {?|undefined} - */ - NgbModalOptions.prototype.backdropClass; -} -/** - * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all modals used in the application. - * - * \@since 3.1.0 - */ -export class NgbModalConfig { - constructor() { - this.backdrop = true; - this.keyboard = true; - } -} -NgbModalConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbModalConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbModalConfig_Factory() { return new NgbModalConfig(); }, token: NgbModalConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbModalConfig.prototype.backdrop; - /** @type {?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SBjbGFzcyB0byBhcHBlbmQgdG8gdGhlIG1vZGFsIGJhY2tkcm9wLlxuICAgKlxuICAgKiBAc2luY2UgMS4xLjBcbiAgICovXG4gIGJhY2tkcm9wQ2xhc3M/OiBzdHJpbmc7XG59XG5cbi8qKlxuICogQSBjb25maWd1cmF0aW9uIHNlcnZpY2UgZm9yIHRoZSBbYE5nYk1vZGFsYF0oIy9jb21wb25lbnRzL21vZGFsL2FwaSNOZ2JNb2RhbCkgc2VydmljZS5cbiAqXG4gKiBZb3UgY2FuIGluamVjdCB0aGlzIHNlcnZpY2UsIHR5cGljYWxseSBpbiB5b3VyIHJvb3QgY29tcG9uZW50LCBhbmQgY3VzdG9taXplIHRoZSB2YWx1ZXMgb2YgaXRzIHByb3BlcnRpZXMgaW5cbiAqIG9yZGVyIHRvIHByb3ZpZGUgZGVmYXVsdCB2YWx1ZXMgZm9yIGFsbCBtb2RhbHMgdXNlZCBpbiB0aGUgYXBwbGljYXRpb24uXG4qXG4qIEBzaW5jZSAzLjEuMFxuKi9cbkBJbmplY3RhYmxlKHtwcm92aWRlZEluOiAncm9vdCd9KVxuZXhwb3J0IGNsYXNzIE5nYk1vZGFsQ29uZmlnIGltcGxlbWVudHMgTmdiTW9kYWxPcHRpb25zIHtcbiAgYmFja2Ryb3A6IGJvb2xlYW4gfCAnc3RhdGljJyA9IHRydWU7XG4gIGtleWJvYXJkID0gdHJ1ZTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/modal/modal-dismiss-reasons.js b/dist/ng-bootstrap/esm2015/modal/modal-dismiss-reasons.js deleted file mode 100644 index c34708d..0000000 --- a/dist/ng-bootstrap/esm2015/modal/modal-dismiss-reasons.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -const ModalDismissReasons = { - BACKDROP_CLICK: 0, - ESC: 1, -}; -export { ModalDismissReasons }; -ModalDismissReasons[ModalDismissReasons.BACKDROP_CLICK] = 'BACKDROP_CLICK'; -ModalDismissReasons[ModalDismissReasons.ESC] = 'ESC'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtZGlzbWlzcy1yZWFzb25zLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibW9kYWwvbW9kYWwtZGlzbWlzcy1yZWFzb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztJQUNFLGlCQUFjO0lBQ2QsTUFBRyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIE1vZGFsRGlzbWlzc1JlYXNvbnMge1xuICBCQUNLRFJPUF9DTElDSyxcbiAgRVNDXG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/modal/modal-ref.js b/dist/ng-bootstrap/esm2015/modal/modal-ref.js deleted file mode 100644 index 644ac9e..0000000 --- a/dist/ng-bootstrap/esm2015/modal/modal-ref.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A reference to the currently opened (active) modal. - * - * Instances of this class can be injected into your component passed as modal content. - * So you can `.close()` or `.dismiss()` the modal window from your component. - */ -export class NgbActiveModal { - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - close(result) { } - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - dismiss(reason) { } -} -/** - * A reference to the newly opened modal returned by the `NgbModal.open()` method. - */ -export class NgbModalRef { - /** - * @param {?} _windowCmptRef - * @param {?} _contentRef - * @param {?=} _backdropCmptRef - * @param {?=} _beforeDismiss - */ - constructor(_windowCmptRef, _contentRef, _backdropCmptRef, _beforeDismiss) { - this._windowCmptRef = _windowCmptRef; - this._contentRef = _contentRef; - this._backdropCmptRef = _backdropCmptRef; - this._beforeDismiss = _beforeDismiss; - _windowCmptRef.instance.dismissEvent.subscribe((/** - * @param {?} reason - * @return {?} - */ - (reason) => { this.dismiss(reason); })); - this.result = new Promise((/** - * @param {?} resolve - * @param {?} reject - * @return {?} - */ - (resolve, reject) => { - this._resolve = resolve; - this._reject = reject; - })); - this.result.then(null, (/** - * @return {?} - */ - () => { })); - } - /** - * The instance of a component used for the modal content. - * - * When a `TemplateRef` is used as the content, will return `undefined`. - * @return {?} - */ - get componentInstance() { - if (this._contentRef.componentRef) { - return this._contentRef.componentRef.instance; - } - } - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - close(result) { - if (this._windowCmptRef) { - this._resolve(result); - this._removeModalElements(); - } - } - /** - * @private - * @param {?=} reason - * @return {?} - */ - _dismiss(reason) { - this._reject(reason); - this._removeModalElements(); - } - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - dismiss(reason) { - if (this._windowCmptRef) { - if (!this._beforeDismiss) { - this._dismiss(reason); - } - else { - /** @type {?} */ - const dismiss = this._beforeDismiss(); - if (dismiss && dismiss.then) { - dismiss.then((/** - * @param {?} result - * @return {?} - */ - result => { - if (result !== false) { - this._dismiss(reason); - } - }), (/** - * @return {?} - */ - () => { })); - } - else if (dismiss !== false) { - this._dismiss(reason); - } - } - } - } - /** - * @private - * @return {?} - */ - _removeModalElements() { - /** @type {?} */ - const windowNativeEl = this._windowCmptRef.location.nativeElement; - windowNativeEl.parentNode.removeChild(windowNativeEl); - this._windowCmptRef.destroy(); - if (this._backdropCmptRef) { - /** @type {?} */ - const backdropNativeEl = this._backdropCmptRef.location.nativeElement; - backdropNativeEl.parentNode.removeChild(backdropNativeEl); - this._backdropCmptRef.destroy(); - } - if (this._contentRef && this._contentRef.viewRef) { - this._contentRef.viewRef.destroy(); - } - this._windowCmptRef = null; - this._backdropCmptRef = null; - this._contentRef = null; - } -} -if (false) { - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._resolve; - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._reject; - /** - * The promise that is resolved when the modal is closed and rejected when the modal is dismissed. - * @type {?} - */ - NgbModalRef.prototype.result; - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._windowCmptRef; - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._contentRef; - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._backdropCmptRef; - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._beforeDismiss; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtcmVmLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibW9kYWwvbW9kYWwtcmVmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFhQSxNQUFNLE9BQU8sY0FBYzs7Ozs7Ozs7SUFNekIsS0FBSyxDQUFDLE1BQVksSUFBUyxDQUFDOzs7Ozs7OztJQU81QixPQUFPLENBQUMsTUFBWSxJQUFTLENBQUM7Q0FDL0I7Ozs7QUFLRCxNQUFNLE9BQU8sV0FBVzs7Ozs7OztJQW9CdEIsWUFDWSxjQUE0QyxFQUFVLFdBQXVCLEVBQzdFLGdCQUFpRCxFQUFVLGNBQXlCO1FBRHBGLG1CQUFjLEdBQWQsY0FBYyxDQUE4QjtRQUFVLGdCQUFXLEdBQVgsV0FBVyxDQUFZO1FBQzdFLHFCQUFnQixHQUFoQixnQkFBZ0IsQ0FBaUM7UUFBVS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bnRSZWYudmlld1JlZikge1xuICAgICAgdGhpcy5fY29udGVudFJlZi52aWV3UmVmLmRlc3Ryb3koKTtcbiAgICB9XG5cbiAgICB0aGlzLl93aW5kb3dDbXB0UmVmID0gbnVsbDtcbiAgICB0aGlzLl9iYWNrZHJvcENtcHRSZWYgPSBudWxsO1xuICAgIHRoaXMuX2NvbnRlbnRSZWYgPSBudWxsO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/modal/modal-stack.js b/dist/ng-bootstrap/esm2015/modal/modal-stack.js deleted file mode 100644 index 2a90cac..0000000 --- a/dist/ng-bootstrap/esm2015/modal/modal-stack.js +++ /dev/null @@ -1,427 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { DOCUMENT } from '@angular/common'; -import { ApplicationRef, Inject, Injectable, Injector, RendererFactory2, TemplateRef, } from '@angular/core'; -import { Subject } from 'rxjs'; -import { ngbFocusTrap } from '../util/focus-trap'; -import { ContentRef } from '../util/popup'; -import { ScrollBar } from '../util/scrollbar'; -import { isDefined, isString } from '../util/util'; -import { NgbModalBackdrop } from './modal-backdrop'; -import { NgbActiveModal, NgbModalRef } from './modal-ref'; -import { NgbModalWindow } from './modal-window'; -import * as i0 from "@angular/core"; -import * as i1 from "@angular/common"; -import * as i2 from "../util/scrollbar"; -export class NgbModalStack { - /** - * @param {?} _applicationRef - * @param {?} _injector - * @param {?} _document - * @param {?} _scrollBar - * @param {?} _rendererFactory - */ - constructor(_applicationRef, _injector, _document, _scrollBar, _rendererFactory) { - this._applicationRef = _applicationRef; - this._injector = _injector; - this._document = _document; - this._scrollBar = _scrollBar; - this._rendererFactory = _rendererFactory; - this._activeWindowCmptHasChanged = new Subject(); - this._ariaHiddenValues = new Map(); - this._backdropAttributes = ['backdropClass']; - this._modalRefs = []; - this._windowAttributes = ['ariaLabelledBy', 'backdrop', 'centered', 'keyboard', 'scrollable', 'size', 'windowClass']; - this._windowCmpts = []; - // Trap focus on active WindowCmpt - this._activeWindowCmptHasChanged.subscribe((/** - * @return {?} - */ - () => { - if (this._windowCmpts.length) { - /** @type {?} */ - const activeWindowCmpt = this._windowCmpts[this._windowCmpts.length - 1]; - ngbFocusTrap(activeWindowCmpt.location.nativeElement, this._activeWindowCmptHasChanged); - this._revertAriaHidden(); - this._setAriaHidden(activeWindowCmpt.location.nativeElement); - } - })); - } - /** - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} options - * @return {?} - */ - open(moduleCFR, contentInjector, content, options) { - /** @type {?} */ - const containerEl = isDefined(options.container) ? this._document.querySelector(options.container) : this._document.body; - /** @type {?} */ - const renderer = this._rendererFactory.createRenderer(null, null); - /** @type {?} */ - const revertPaddingForScrollBar = this._scrollBar.compensate(); - /** @type {?} */ - const removeBodyClass = (/** - * @return {?} - */ - () => { - if (!this._modalRefs.length) { - renderer.removeClass(this._document.body, 'modal-open'); - this._revertAriaHidden(); - } - }); - if (!containerEl) { - throw new Error(`The specified modal container "${options.container || 'body'}" was not found in the DOM.`); - } - /** @type {?} */ - const activeModal = new NgbActiveModal(); - /** @type {?} */ - const contentRef = this._getContentRef(moduleCFR, options.injector || contentInjector, content, activeModal, options); - /** @type {?} */ - let backdropCmptRef = options.backdrop !== false ? this._attachBackdrop(moduleCFR, containerEl) : null; - /** @type {?} */ - let windowCmptRef = this._attachWindowComponent(moduleCFR, containerEl, contentRef); - /** @type {?} */ - let ngbModalRef = new NgbModalRef(windowCmptRef, contentRef, backdropCmptRef, options.beforeDismiss); - this._registerModalRef(ngbModalRef); - this._registerWindowCmpt(windowCmptRef); - ngbModalRef.result.then(revertPaddingForScrollBar, revertPaddingForScrollBar); - ngbModalRef.result.then(removeBodyClass, removeBodyClass); - activeModal.close = (/** - * @param {?} result - * @return {?} - */ - (result) => { ngbModalRef.close(result); }); - activeModal.dismiss = (/** - * @param {?} reason - * @return {?} - */ - (reason) => { ngbModalRef.dismiss(reason); }); - this._applyWindowOptions(windowCmptRef.instance, options); - if (this._modalRefs.length === 1) { - renderer.addClass(this._document.body, 'modal-open'); - } - if (backdropCmptRef && backdropCmptRef.instance) { - this._applyBackdropOptions(backdropCmptRef.instance, options); - } - return ngbModalRef; - } - /** - * @param {?=} reason - * @return {?} - */ - dismissAll(reason) { this._modalRefs.forEach((/** - * @param {?} ngbModalRef - * @return {?} - */ - ngbModalRef => ngbModalRef.dismiss(reason))); } - /** - * @return {?} - */ - hasOpenModals() { return this._modalRefs.length > 0; } - /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @return {?} - */ - _attachBackdrop(moduleCFR, containerEl) { - /** @type {?} */ - let backdropFactory = moduleCFR.resolveComponentFactory(NgbModalBackdrop); - /** @type {?} */ - let backdropCmptRef = backdropFactory.create(this._injector); - this._applicationRef.attachView(backdropCmptRef.hostView); - containerEl.appendChild(backdropCmptRef.location.nativeElement); - return backdropCmptRef; - } - /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @param {?} contentRef - * @return {?} - */ - _attachWindowComponent(moduleCFR, containerEl, contentRef) { - /** @type {?} */ - let windowFactory = moduleCFR.resolveComponentFactory(NgbModalWindow); - /** @type {?} */ - let windowCmptRef = windowFactory.create(this._injector, contentRef.nodes); - this._applicationRef.attachView(windowCmptRef.hostView); - containerEl.appendChild(windowCmptRef.location.nativeElement); - return windowCmptRef; - } - /** - * @private - * @param {?} windowInstance - * @param {?} options - * @return {?} - */ - _applyWindowOptions(windowInstance, options) { - this._windowAttributes.forEach((/** - * @param {?} optionName - * @return {?} - */ - (optionName) => { - if (isDefined(options[optionName])) { - windowInstance[optionName] = options[optionName]; - } - })); - } - /** - * @private - * @param {?} backdropInstance - * @param {?} options - * @return {?} - */ - _applyBackdropOptions(backdropInstance, options) { - this._backdropAttributes.forEach((/** - * @param {?} optionName - * @return {?} - */ - (optionName) => { - if (isDefined(options[optionName])) { - backdropInstance[optionName] = options[optionName]; - } - })); - } - /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} activeModal - * @param {?} options - * @return {?} - */ - _getContentRef(moduleCFR, contentInjector, content, activeModal, options) { - if (!content) { - return new ContentRef([]); - } - else if (content instanceof TemplateRef) { - return this._createFromTemplateRef(content, activeModal); - } - else if (isString(content)) { - return this._createFromString(content); - } - else { - return this._createFromComponent(moduleCFR, contentInjector, content, activeModal, options); - } - } - /** - * @private - * @param {?} content - * @param {?} activeModal - * @return {?} - */ - _createFromTemplateRef(content, activeModal) { - /** @type {?} */ - const context = { - $implicit: activeModal, - /** - * @param {?} result - * @return {?} - */ - close(result) { activeModal.close(result); }, - /** - * @param {?} reason - * @return {?} - */ - dismiss(reason) { activeModal.dismiss(reason); } - }; - /** @type {?} */ - const viewRef = content.createEmbeddedView(context); - this._applicationRef.attachView(viewRef); - return new ContentRef([viewRef.rootNodes], viewRef); - } - /** - * @private - * @param {?} content - * @return {?} - */ - _createFromString(content) { - /** @type {?} */ - const component = this._document.createTextNode(`${content}`); - return new ContentRef([[component]]); - } - /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} context - * @param {?} options - * @return {?} - */ - _createFromComponent(moduleCFR, contentInjector, content, context, options) { - /** @type {?} */ - const contentCmptFactory = moduleCFR.resolveComponentFactory(content); - /** @type {?} */ - const modalContentInjector = Injector.create({ providers: [{ provide: NgbActiveModal, useValue: context }], parent: contentInjector }); - /** @type {?} */ - const componentRef = contentCmptFactory.create(modalContentInjector); - /** @type {?} */ - const componentNativeEl = componentRef.location.nativeElement; - if (options.scrollable) { - ((/** @type {?} */ (componentNativeEl))).classList.add('component-host-scrollable'); - } - this._applicationRef.attachView(componentRef.hostView); - // FIXME: we should here get rid of the component nativeElement - // and use `[Array.from(componentNativeEl.childNodes)]` instead and remove the above CSS class. - return new ContentRef([[componentNativeEl]], componentRef.hostView, componentRef); - } - /** - * @private - * @param {?} element - * @return {?} - */ - _setAriaHidden(element) { - /** @type {?} */ - const parent = element.parentElement; - if (parent && element !== this._document.body) { - Array.from(parent.children).forEach((/** - * @param {?} sibling - * @return {?} - */ - sibling => { - if (sibling !== element && sibling.nodeName !== 'SCRIPT') { - this._ariaHiddenValues.set(sibling, sibling.getAttribute('aria-hidden')); - sibling.setAttribute('aria-hidden', 'true'); - } - })); - this._setAriaHidden(parent); - } - } - /** - * @private - * @return {?} - */ - _revertAriaHidden() { - this._ariaHiddenValues.forEach((/** - * @param {?} value - * @param {?} element - * @return {?} - */ - (value, element) => { - if (value) { - element.setAttribute('aria-hidden', value); - } - else { - element.removeAttribute('aria-hidden'); - } - })); - this._ariaHiddenValues.clear(); - } - /** - * @private - * @param {?} ngbModalRef - * @return {?} - */ - _registerModalRef(ngbModalRef) { - /** @type {?} */ - const unregisterModalRef = (/** - * @return {?} - */ - () => { - /** @type {?} */ - const index = this._modalRefs.indexOf(ngbModalRef); - if (index > -1) { - this._modalRefs.splice(index, 1); - } - }); - this._modalRefs.push(ngbModalRef); - ngbModalRef.result.then(unregisterModalRef, unregisterModalRef); - } - /** - * @private - * @param {?} ngbWindowCmpt - * @return {?} - */ - _registerWindowCmpt(ngbWindowCmpt) { - this._windowCmpts.push(ngbWindowCmpt); - this._activeWindowCmptHasChanged.next(); - ngbWindowCmpt.onDestroy((/** - * @return {?} - */ - () => { - /** @type {?} */ - const index = this._windowCmpts.indexOf(ngbWindowCmpt); - if (index > -1) { - this._windowCmpts.splice(index, 1); - this._activeWindowCmptHasChanged.next(); - } - })); - } -} -NgbModalStack.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ -NgbModalStack.ctorParameters = () => [ - { type: ApplicationRef }, - { type: Injector }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ScrollBar }, - { type: RendererFactory2 } -]; -/** @nocollapse */ NgbModalStack.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbModalStack_Factory() { return new NgbModalStack(i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(i2.ScrollBar), i0.ɵɵinject(i0.RendererFactory2)); }, token: NgbModalStack, providedIn: "root" }); -if (false) { - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._activeWindowCmptHasChanged; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._ariaHiddenValues; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._backdropAttributes; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._modalRefs; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._windowAttributes; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._windowCmpts; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._applicationRef; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._injector; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._document; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._scrollBar; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._rendererFactory; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtc3RhY2suanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJtb2RhbC9tb2RhbC1zdGFjay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFDTCxjQUFjLEVBR2QsTUFBTSxFQUNOLFVBQVUsRUFDVixRQUFRLEVBQ1IsZ0JBQWdCLEVBQ2hCLFdBQVcsR0FDWixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sTUFBTSxDQUFDO0FBRTdCLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBT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kb3dDbXB0KG5nYldpbmRvd0NtcHQ6IENvbXBvbmVudFJlZjxOZ2JNb2RhbFdpbmRvdz4pIHtcbiAgICB0aGlzLl93aW5kb3dDbXB0cy5wdXNoKG5nYldpbmRvd0NtcHQpO1xuICAgIHRoaXMuX2FjdGl2ZVdpbmRvd0NtcHRIYXNDaGFuZ2VkLm5leHQoKTtcblxuICAgIG5nYldpbmRvd0NtcHQub25EZXN0cm95KCgpID0+IHtcbiAgICAgIGNvbnN0IGluZGV4ID0gdGhpcy5fd2luZG93Q21wdHMuaW5kZXhPZihuZ2JXaW5kb3dDbXB0KTtcbiAgICAgIGlmIChpbmRleCA+IC0xKSB7XG4gICAgICAgIHRoaXMuX3dpbmRvd0NtcHRzLnNwbGljZShpbmRleCwgMSk7XG4gICAgICAgIHRoaXMuX2FjdGl2ZVdpbmRvd0NtcHRIYXNDaGFuZ2VkLm5leHQoKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/modal/modal-window.js b/dist/ng-bootstrap/esm2015/modal/modal-window.js deleted file mode 100644 index abd1c16..0000000 --- a/dist/ng-bootstrap/esm2015/modal/modal-window.js +++ /dev/null @@ -1,152 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { DOCUMENT } from '@angular/common'; -import { Component, ElementRef, EventEmitter, Inject, Input, Output, ViewEncapsulation, } from '@angular/core'; -import { getFocusableBoundaryElements } from '../util/focus-trap'; -import { ModalDismissReasons } from './modal-dismiss-reasons'; -export class NgbModalWindow { - /** - * @param {?} _document - * @param {?} _elRef - */ - constructor(_document, _elRef) { - this._document = _document; - this._elRef = _elRef; - this.backdrop = true; - this.keyboard = true; - this.dismissEvent = new EventEmitter(); - } - /** - * @param {?} $event - * @return {?} - */ - backdropClick($event) { - if (this.backdrop === true && this._elRef.nativeElement === $event.target) { - this.dismiss(ModalDismissReasons.BACKDROP_CLICK); - } - } - /** - * @param {?} $event - * @return {?} - */ - escKey($event) { - if (this.keyboard && !$event.defaultPrevented) { - this.dismiss(ModalDismissReasons.ESC); - } - } - /** - * @param {?} reason - * @return {?} - */ - dismiss(reason) { this.dismissEvent.emit(reason); } - /** - * @return {?} - */ - ngOnInit() { this._elWithFocus = this._document.activeElement; } - /** - * @return {?} - */ - ngAfterViewInit() { - if (!this._elRef.nativeElement.contains(document.activeElement)) { - /** @type {?} */ - const autoFocusable = (/** @type {?} */ (this._elRef.nativeElement.querySelector(`[ngbAutofocus]`))); - /** @type {?} */ - const firstFocusable = getFocusableBoundaryElements(this._elRef.nativeElement)[0]; - /** @type {?} */ - const elementToFocus = autoFocusable || firstFocusable || this._elRef.nativeElement; - elementToFocus.focus(); - } - } - /** - * @return {?} - */ - ngOnDestroy() { - /** @type {?} */ - const body = this._document.body; - /** @type {?} */ - const elWithFocus = this._elWithFocus; - /** @type {?} */ - let elementToFocus; - if (elWithFocus && elWithFocus['focus'] && body.contains(elWithFocus)) { - elementToFocus = elWithFocus; - } - else { - elementToFocus = body; - } - elementToFocus.focus(); - this._elWithFocus = null; - } -} -NgbModalWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-modal-window', - host: { - '[class]': '"modal fade show d-block" + (windowClass ? " " + windowClass : "")', - 'role': 'dialog', - 'tabindex': '-1', - '(keyup.esc)': 'escKey($event)', - '(click)': 'backdropClick($event)', - '[attr.aria-modal]': 'true', - '[attr.aria-labelledby]': 'ariaLabelledBy', - }, - template: ` -
- -
- `, - encapsulation: ViewEncapsulation.None, - styles: ["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"] - }] } -]; -/** @nocollapse */ -NgbModalWindow.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ElementRef } -]; -NgbModalWindow.propDecorators = { - ariaLabelledBy: [{ type: Input }], - backdrop: [{ type: Input }], - centered: [{ type: Input }], - keyboard: [{ type: Input }], - scrollable: [{ type: Input }], - size: [{ type: Input }], - windowClass: [{ type: Input }], - dismissEvent: [{ type: Output, args: ['dismiss',] }] -}; -if (false) { - /** - * @type {?} - * @private - */ - NgbModalWindow.prototype._elWithFocus; - /** @type {?} */ - NgbModalWindow.prototype.ariaLabelledBy; - /** @type {?} */ - NgbModalWindow.prototype.backdrop; - /** @type {?} */ - NgbModalWindow.prototype.centered; - /** @type {?} */ - NgbModalWindow.prototype.keyboard; - /** @type {?} */ - NgbModalWindow.prototype.scrollable; - /** @type {?} */ - NgbModalWindow.prototype.size; - /** @type {?} */ - NgbModalWindow.prototype.windowClass; - /** @type {?} */ - NgbModalWindow.prototype.dismissEvent; - /** - * @type {?} - * @private - */ - NgbModalWindow.prototype._document; - /** - * @type {?} - * @private - */ - NgbModalWindow.prototype._elRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtd2luZG93LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibW9kYWwvbW9kYWwtd2luZG93LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUVMLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEVBR0wsTUFBTSxFQUNOLGlCQUFpQixHQUNsQixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUMsNEJBQTRCLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUNoRSxPQUFPLEVBQUMsbUJBQW1CLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQXNCNUQsTUFBTSxPQUFPLGNBQWM7Oz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VtZW50VG9Gb2N1cyA9IGJvZHk7XG4gICAgfVxuICAgIGVsZW1lbnRUb0ZvY3VzLmZvY3VzKCk7XG4gICAgdGhpcy5fZWxXaXRoRm9jdXMgPSBudWxsO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/modal/modal.js b/dist/ng-bootstrap/esm2015/modal/modal.js deleted file mode 100644 index cd4fd5a..0000000 --- a/dist/ng-bootstrap/esm2015/modal/modal.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable, Injector, ComponentFactoryResolver } from '@angular/core'; -import { NgbModalConfig } from './modal-config'; -import { NgbModalStack } from './modal-stack'; -import * as i0 from "@angular/core"; -import * as i1 from "./modal-stack"; -import * as i2 from "./modal-config"; -/** - * A service for opening modal windows. - * - * Creating a modal is straightforward: create a component or a template and pass it as an argument to - * the `.open()` method. - */ -export class NgbModal { - /** - * @param {?} _moduleCFR - * @param {?} _injector - * @param {?} _modalStack - * @param {?} _config - */ - constructor(_moduleCFR, _injector, _modalStack, _config) { - this._moduleCFR = _moduleCFR; - this._injector = _injector; - this._modalStack = _modalStack; - this._config = _config; - } - /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - * @param {?} content - * @param {?=} options - * @return {?} - */ - open(content, options = {}) { - /** @type {?} */ - const combinedOptions = Object.assign({}, this._config, options); - return this._modalStack.open(this._moduleCFR, this._injector, content, combinedOptions); - } - /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * \@since 3.1.0 - * @param {?=} reason - * @return {?} - */ - dismissAll(reason) { this._modalStack.dismissAll(reason); } - /** - * Indicates if there are currently any open modal windows in the application. - * - * \@since 3.3.0 - * @return {?} - */ - hasOpenModals() { return this._modalStack.hasOpenModals(); } -} -NgbModal.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ -NgbModal.ctorParameters = () => [ - { type: ComponentFactoryResolver }, - { type: Injector }, - { type: NgbModalStack }, - { type: NgbModalConfig } -]; -/** @nocollapse */ NgbModal.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbModal_Factory() { return new NgbModal(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1.NgbModalStack), i0.ɵɵinject(i2.NgbModalConfig)); }, token: NgbModal, providedIn: "root" }); -if (false) { - /** - * @type {?} - * @private - */ - NgbModal.prototype._moduleCFR; - /** - * @type {?} - * @private - */ - NgbModal.prototype._injector; - /** - * @type {?} - * @private - */ - NgbModal.prototype._modalStack; - /** - * @type {?} - * @private - */ - NgbModal.prototype._config; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJtb2RhbC9tb2RhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFVBQVUsRUFBRSxRQUFRLEVBQUUsd0JBQXdCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFN0UsT0FBTyxFQUFrQixjQUFjLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUUvRCxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7Ozs7O0FBUzVDLE1BQU0sT0FBTyxRQUFROzs7Ozs7O0lBQ25CLFlBQ1ksVUFBb0MsRUFBVSxTQUFtQixFQUFVLFdBQT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SBhbnkgb3BlbiBtb2RhbCB3aW5kb3dzIGluIHRoZSBhcHBsaWNhdGlvbi5cbiAgICpcbiAgICogQHNpbmNlIDMuMy4wXG4gICAqL1xuICBoYXNPcGVuTW9kYWxzKCk6IGJvb2xlYW4geyByZXR1cm4gdGhpcy5fbW9kYWxTdGFjay5oYXNPcGVuTW9kYWxzKCk7IH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/modal/modal.module.js b/dist/ng-bootstrap/esm2015/modal/modal.module.js deleted file mode 100644 index e526df9..0000000 --- a/dist/ng-bootstrap/esm2015/modal/modal.module.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbModal } from './modal'; -import { NgbModalBackdrop } from './modal-backdrop'; -import { NgbModalWindow } from './modal-window'; -export { NgbModal } from './modal'; -export { NgbModalConfig } from './modal-config'; -export { NgbModalRef, NgbActiveModal } from './modal-ref'; -export { ModalDismissReasons } from './modal-dismiss-reasons'; -export class NgbModalModule { -} -NgbModalModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbModalBackdrop, NgbModalWindow], - entryComponents: [NgbModalBackdrop, NgbModalWindow], - providers: [NgbModal] - },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibW9kYWwvbW9kYWwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXZDLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxTQUFTLENB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XJlZic7XG5leHBvcnQge01vZGFsRGlzbWlzc1JlYXNvbnN9IGZyb20gJy4vbW9kYWwtZGlzbWlzcy1yZWFzb25zJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbTmdiTW9kYWxCYWNrZHJvcCwgTmdiTW9kYWxXaW5kb3ddLFxuICBlbnRyeUNvbXBvbmVudHM6IFtOZ2JNb2RhbEJhY2tkcm9wLCBOZ2JNb2RhbFdpbmRvd10sXG4gIHByb3ZpZGVyczogW05nYk1vZGFsXVxufSlcbmV4cG9ydCBjbGFzcyBOZ2JNb2RhbE1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/ng-bootstrap.js b/dist/ng-bootstrap/esm2015/ng-bootstrap.js deleted file mode 100644 index cf55f84..0000000 --- a/dist/ng-bootstrap/esm2015/ng-bootstrap.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Generated bundle index. Do not edit. - */ -export { NgbAccordion, NgbAccordionConfig, NgbAccordionModule, NgbPanel, NgbPanelContent, NgbPanelHeader, NgbPanelTitle, NgbPanelToggle, SbCard, SbCardConfig, SbCardModule, NgbAlert, NgbAlertConfig, NgbAlertModule, NgbButtonLabel, NgbButtonsModule, NgbCheckBox, NgbRadio, NgbRadioGroup, NgbCarousel, NgbCarouselConfig, NgbCarouselModule, NgbSlide, NgbSlideEventDirection, NgbSlideEventSource, NgbCollapse, NgbCollapseModule, NgbCalendar, NgbCalendarGregorian, NgbCalendarHebrew, NgbCalendarIslamicCivil, NgbCalendarIslamicUmalqura, NgbCalendarPersian, NgbDate, NgbDateAdapter, NgbDateNativeAdapter, NgbDateNativeUTCAdapter, NgbDateParserFormatter, NgbDatepicker, NgbDatepickerConfig, NgbDatepickerI18n, NgbDatepickerI18nHebrew, NgbDatepickerModule, NgbInputDatepicker, NgbDropdown, NgbDropdownAnchor, NgbDropdownConfig, NgbDropdownItem, NgbDropdownMenu, NgbDropdownModule, NgbDropdownToggle, ModalDismissReasons, NgbActiveModal, NgbModal, NgbModalConfig, NgbModalModule, NgbModalRef, NgbPagination, NgbPaginationConfig, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationModule, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious, NgbPopover, NgbPopoverConfig, NgbPopoverModule, NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule, NgbRating, NgbRatingConfig, NgbRatingModule, NgbTab, NgbTabContent, NgbTabset, NgbTabsetConfig, NgbTabsetModule, NgbTabTitle, NgbTimeAdapter, NgbTimepickerI18n, NgbTimepicker, NgbTimepickerConfig, NgbTimepickerModule, NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule, NgbTooltip, NgbTooltipConfig, NgbTooltipModule, NgbHighlight, NgbTypeahead, NgbTypeaheadConfig, NgbTypeaheadModule, NgbModule } from './index'; -export { NGB_CAROUSEL_DIRECTIVES as ɵa } from './carousel/carousel'; -export { NGB_DATEPICKER_DATE_ADAPTER_FACTORY as ɵi, NgbDateStructAdapter as ɵj } from './datepicker/adapters/ngb-date-adapter'; -export { NgbDatepickerDayView as ɵd } from './datepicker/datepicker-day-view'; -export { NGB_DATEPICKER_18N_FACTORY as ɵg, NgbDatepickerI18nDefault as ɵh } from './datepicker/datepicker-i18n'; -export { NgbDatepickerKeyMapService as ɵv } from './datepicker/datepicker-keymap-service'; -export { NgbDatepickerMonthView as ɵc } from './datepicker/datepicker-month-view'; -export { NgbDatepickerNavigation as ɵe } from './datepicker/datepicker-navigation'; -export { NgbDatepickerNavigationSelect as ɵf } from './datepicker/datepicker-navigation-select'; -export { NgbDatepickerService as ɵu } from './datepicker/datepicker-service'; -export { NgbCalendarHijri as ɵbd } from './datepicker/hijri/ngb-calendar-hijri'; -export { NGB_DATEPICKER_CALENDAR_FACTORY as ɵb } from './datepicker/ngb-calendar'; -export { NGB_DATEPICKER_PARSER_FORMATTER_FACTORY as ɵk, NgbDateISOParserFormatter as ɵl } from './datepicker/ngb-date-parser-formatter'; -export { NgbNavbar as ɵm } from './dropdown/dropdown'; -export { NgbModalBackdrop as ɵw } from './modal/modal-backdrop'; -export { NgbModalStack as ɵy } from './modal/modal-stack'; -export { NgbModalWindow as ɵx } from './modal/modal-window'; -export { NgbPopoverWindow as ɵn } from './popover/popover'; -export { NGB_DATEPICKER_TIME_ADAPTER_FACTORY as ɵo, NgbTimeStructAdapter as ɵp } from './timepicker/ngb-time-adapter'; -export { NGB_TIMEPICKER_I18N_FACTORY as ɵq, NgbTimepickerI18nDefault as ɵr } from './timepicker/timepicker-i18n'; -export { NgbTooltipWindow as ɵs } from './tooltip/tooltip'; -export { NgbTypeaheadWindow as ɵt } from './typeahead/typeahead-window'; -export { ARIA_LIVE_DELAY as ɵba, ARIA_LIVE_DELAY_FACTORY as ɵbb, Live as ɵbc } from './util/accessibility/live'; -export { ContentRef as ɵbe } from './util/popup'; -export { ScrollBar as ɵz } from './util/scrollbar'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctYm9vdHN0cmFwLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibmctYm9vdHN0cmFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxtcERBQWMsU0FBUyxDQUFDO0FBRXhCLE9BQU8sRUFBQyx1QkFBdUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUNsRSxPQUFPLEVBQUMsbUNBQW1DLElBQUksRUFBRSxFQUFDLG9CQUFvQixJQUFJLEVBQUUsRUFBQyxNQUFNLHdDQUF3QyxDQUFDO0FBQzVILE9BQU8sRUFBQyxvQkFBb0IsSUFBSSxFQUFFLEVBQ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d2luZG93JztcbmV4cG9ydCB7QVJJQV9MSVZFX0RFTEFZIGFzIMm1YmEsQVJJQV9MSVZFX0RFTEFZX0ZBQ1RPUlkgYXMgybViYixMaXZlIGFzIMm1YmN9IGZyb20gJy4vdXRpbC9hY2Nlc3NpYmlsaXR5L2xpdmUnO1xuZXhwb3J0IHtDb250ZW50UmVmIGFzIMm1YmV9IGZyb20gJy4vdXRpbC9wb3B1cCc7XG5leHBvcnQge1Njcm9sbEJhciBhcyDJtXp9IGZyb20gJy4vdXRpbC9zY3JvbGxiYXInOyJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/pagination/pagination-config.js b/dist/ng-bootstrap/esm2015/pagination/pagination-config.js deleted file mode 100644 index 92dca9d..0000000 --- a/dist/ng-bootstrap/esm2015/pagination/pagination-config.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the paginations used in the application. - */ -export class NgbPaginationConfig { - constructor() { - this.disabled = false; - this.boundaryLinks = false; - this.directionLinks = true; - this.ellipses = true; - this.maxSize = 0; - this.pageSize = 10; - this.rotate = false; - } -} -NgbPaginationConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbPaginationConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbPaginationConfig_Factory() { return new NgbPaginationConfig(); }, token: NgbPaginationConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbPaginationConfig.prototype.disabled; - /** @type {?} */ - NgbPaginationConfig.prototype.boundaryLinks; - /** @type {?} */ - NgbPaginationConfig.prototype.directionLinks; - /** @type {?} */ - NgbPaginationConfig.prototype.ellipses; - /** @type {?} */ - NgbPaginationConfig.prototype.maxSize; - /** @type {?} */ - NgbPaginationConfig.prototype.pageSize; - /** @type {?} */ - NgbPaginationConfig.prototype.rotate; - /** @type {?} */ - NgbPaginationConfig.prototype.size; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJwYWdpbmF0aW9uL3BhZ2luYXRpb24tY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QyxNQUFNLE9BQU8sbUJBQW1CO0lBRGhDO1FBRUUsYUFBUSxHQUFHLEtBQUssQ0FBQztRQUNqQixrQkFBYSxHQUFHLEtBQUssQ0FBQztRQUN0QixtQkFBYyxHQUFHLElBQUksQ0FBQztRQUN0QixhQUFRLEdBQUcsSUFBSSxDQUFDO1FBQ2hCLFlBQU8sR0FBRyxDQUFDLENBQUM7UUFDWixhQUFRLEdBQUcsRUFBRSxDQUFDO1FBQ2QsV0FBTSxHQUFHLEtBQUssQ0FBQztLQUVoQjs7O1lBVkEsVUFBVSxTQUFDLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBQzs7Ozs7SUFFOUIsdUNBQWlCOztJQUNqQiw0Q0FBc0I7O0lBQ3RCLDZDQUFzQjs7SUFDdEIsdUNBQWdCOztJQUNoQixzQ0FBWTs7SUFDWix1Q0FBYzs7SUFDZCxxQ0FBZTs7SUFDZixtQ0FBa0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0luamVjdGFibGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIEEgY29uZmlndXJhdGlvbiBzZXJ2aWNlIGZvciB0aGUgW2BOZ2JQYWdpbmF0aW9uYF0oIy9jb21wb25lbnRzL3BhZ2luYXRpb24vYXBpI05nYlBhZ2luYXRpb24pIGNvbXBvbmVudC5cbiAqXG4gKiBZb3UgY2FuIGluamVjdCB0aGlzIHNlcnZpY2UsIHR5cGljYWxseSBpbiB5b3VyIHJvb3QgY29tcG9uZW50LCBhbmQgY3VzdG9taXplIHRoZSB2YWx1ZXMgb2YgaXRzIHByb3BlcnRpZXMgaW5cbiAqIG9yZGVyIHRvIHByb3ZpZGUgZGVmYXVsdCB2YWx1ZXMgZm9yIGFsbCB0aGUgcGFnaW5hdGlvbnMgdXNlZCBpbiB0aGUgYXBwbGljYXRpb24uXG4gKi9cbkBJbmplY3RhYmxlKHtwcm92aWRlZEluOiAncm9vdCd9KVxuZXhwb3J0IGNsYXNzIE5nYlBhZ2luYXRpb25Db25maWcge1xuICBkaXNhYmxlZCA9IGZhbHNlO1xuICBib3VuZGFyeUxpbmtzID0gZmFsc2U7XG4gIGRpcmVjdGlvbkxpbmtzID0gdHJ1ZTtcbiAgZWxsaXBzZXMgPSB0cnVlO1xuICBtYXhTaXplID0gMDtcbiAgcGFnZVNpemUgPSAxMDtcbiAgcm90YXRlID0gZmFsc2U7XG4gIHNpemU6ICdzbScgfCAnbGcnO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/pagination/pagination.js b/dist/ng-bootstrap/esm2015/pagination/pagination.js deleted file mode 100644 index 3b4c017..0000000 --- a/dist/ng-bootstrap/esm2015/pagination/pagination.js +++ /dev/null @@ -1,551 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, ContentChild, Directive, EventEmitter, Input, Output, ChangeDetectionStrategy, TemplateRef } from '@angular/core'; -import { getValueInRange, isNumber } from '../util/util'; -import { NgbPaginationConfig } from './pagination-config'; -/** - * A context for the - * * `NgbPaginationFirst` - * * `NgbPaginationPrevious` - * * `NgbPaginationNext` - * * `NgbPaginationLast` - * * `NgbPaginationEllipsis` - * - * link templates in case you want to override one. - * - * \@since 4.1.0 - * @record - */ -export function NgbPaginationLinkContext() { } -if (false) { - /** - * The currently selected page number - * @type {?} - */ - NgbPaginationLinkContext.prototype.currentPage; - /** - * If `true`, the current link is disabled - * @type {?} - */ - NgbPaginationLinkContext.prototype.disabled; -} -/** - * A context for the `NgbPaginationNumber` link template in case you want to override one. - * - * Extends `NgbPaginationLinkContext`. - * - * \@since 4.1.0 - * @record - */ -export function NgbPaginationNumberContext() { } -if (false) { - /** - * The page number, displayed by the current page link. - * @type {?} - */ - NgbPaginationNumberContext.prototype.$implicit; -} -/** - * A directive to match the 'ellipsis' link template - * - * \@since 4.1.0 - */ -export class NgbPaginationEllipsis { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationEllipsis.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationEllipsis]' },] } -]; -/** @nocollapse */ -NgbPaginationEllipsis.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbPaginationEllipsis.prototype.templateRef; -} -/** - * A directive to match the 'first' link template - * - * \@since 4.1.0 - */ -export class NgbPaginationFirst { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationFirst.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationFirst]' },] } -]; -/** @nocollapse */ -NgbPaginationFirst.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbPaginationFirst.prototype.templateRef; -} -/** - * A directive to match the 'last' link template - * - * \@since 4.1.0 - */ -export class NgbPaginationLast { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationLast.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationLast]' },] } -]; -/** @nocollapse */ -NgbPaginationLast.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbPaginationLast.prototype.templateRef; -} -/** - * A directive to match the 'next' link template - * - * \@since 4.1.0 - */ -export class NgbPaginationNext { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationNext.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationNext]' },] } -]; -/** @nocollapse */ -NgbPaginationNext.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbPaginationNext.prototype.templateRef; -} -/** - * A directive to match the page 'number' link template - * - * \@since 4.1.0 - */ -export class NgbPaginationNumber { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationNumber.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationNumber]' },] } -]; -/** @nocollapse */ -NgbPaginationNumber.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbPaginationNumber.prototype.templateRef; -} -/** - * A directive to match the 'previous' link template - * - * \@since 4.1.0 - */ -export class NgbPaginationPrevious { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationPrevious.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationPrevious]' },] } -]; -/** @nocollapse */ -NgbPaginationPrevious.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbPaginationPrevious.prototype.templateRef; -} -/** - * A component that displays page numbers and allows to customize them in several ways. - */ -export class NgbPagination { - /** - * @param {?} config - */ - constructor(config) { - this.pageCount = 0; - this.pages = []; - /** - * The current page. - * - * Page numbers start with `1`. - */ - this.page = 1; - /** - * An event fired when the page is changed. Will fire only if collection size is set and all values are valid. - * - * Event payload is the number of the newly selected page. - * - * Page numbers start with `1`. - */ - this.pageChange = new EventEmitter(true); - this.disabled = config.disabled; - this.boundaryLinks = config.boundaryLinks; - this.directionLinks = config.directionLinks; - this.ellipses = config.ellipses; - this.maxSize = config.maxSize; - this.pageSize = config.pageSize; - this.rotate = config.rotate; - this.size = config.size; - } - /** - * @return {?} - */ - hasPrevious() { return this.page > 1; } - /** - * @return {?} - */ - hasNext() { return this.page < this.pageCount; } - /** - * @return {?} - */ - nextDisabled() { return !this.hasNext() || this.disabled; } - /** - * @return {?} - */ - previousDisabled() { return !this.hasPrevious() || this.disabled; } - /** - * @param {?} pageNumber - * @return {?} - */ - selectPage(pageNumber) { this._updatePages(pageNumber); } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { this._updatePages(this.page); } - /** - * @param {?} pageNumber - * @return {?} - */ - isEllipsis(pageNumber) { return pageNumber === -1; } - /** - * Appends ellipses and first/last page number to the displayed pages - * @private - * @param {?} start - * @param {?} end - * @return {?} - */ - _applyEllipses(start, end) { - if (this.ellipses) { - if (start > 0) { - if (start > 1) { - this.pages.unshift(-1); - } - this.pages.unshift(1); - } - if (end < this.pageCount) { - if (end < (this.pageCount - 1)) { - this.pages.push(-1); - } - this.pages.push(this.pageCount); - } - } - } - /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - * @private - * @return {?} - */ - _applyRotation() { - /** @type {?} */ - let start = 0; - /** @type {?} */ - let end = this.pageCount; - /** @type {?} */ - let leftOffset = Math.floor(this.maxSize / 2); - /** @type {?} */ - let rightOffset = this.maxSize % 2 === 0 ? leftOffset - 1 : leftOffset; - if (this.page <= leftOffset) { - // very beginning, no rotation -> [0..maxSize] - end = this.maxSize; - } - else if (this.pageCount - this.page < leftOffset) { - // very end, no rotation -> [len-maxSize..len] - start = this.pageCount - this.maxSize; - } - else { - // rotate - start = this.page - leftOffset - 1; - end = this.page + rightOffset; - } - return [start, end]; - } - /** - * Paginates page numbers based on maxSize items per page. - * @private - * @return {?} - */ - _applyPagination() { - /** @type {?} */ - let page = Math.ceil(this.page / this.maxSize) - 1; - /** @type {?} */ - let start = page * this.maxSize; - /** @type {?} */ - let end = start + this.maxSize; - return [start, end]; - } - /** - * @private - * @param {?} newPageNo - * @return {?} - */ - _setPageInRange(newPageNo) { - /** @type {?} */ - const prevPageNo = this.page; - this.page = getValueInRange(newPageNo, this.pageCount, 1); - if (this.page !== prevPageNo && isNumber(this.collectionSize)) { - this.pageChange.emit(this.page); - } - } - /** - * @private - * @param {?} newPage - * @return {?} - */ - _updatePages(newPage) { - this.pageCount = Math.ceil(this.collectionSize / this.pageSize); - if (!isNumber(this.pageCount)) { - this.pageCount = 0; - } - // fill-in model needed to render pages - this.pages.length = 0; - for (let i = 1; i <= this.pageCount; i++) { - this.pages.push(i); - } - // set page within 1..max range - this._setPageInRange(newPage); - // apply maxSize if necessary - if (this.maxSize > 0 && this.pageCount > this.maxSize) { - /** @type {?} */ - let start = 0; - /** @type {?} */ - let end = this.pageCount; - // either paginating or rotating page numbers - if (this.rotate) { - [start, end] = this._applyRotation(); - } - else { - [start, end] = this._applyPagination(); - } - this.pages = this.pages.slice(start, end); - // adding ellipses - this._applyEllipses(start, end); - } - } -} -NgbPagination.decorators = [ - { type: Component, args: [{ - selector: 'ngb-pagination', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { 'role': 'navigation' }, - template: ` - - - - - ... - - {{ page }} - (current) - - - ` - }] } -]; -/** @nocollapse */ -NgbPagination.ctorParameters = () => [ - { type: NgbPaginationConfig } -]; -NgbPagination.propDecorators = { - tplEllipsis: [{ type: ContentChild, args: [NgbPaginationEllipsis, { static: false },] }], - tplFirst: [{ type: ContentChild, args: [NgbPaginationFirst, { static: false },] }], - tplLast: [{ type: ContentChild, args: [NgbPaginationLast, { static: false },] }], - tplNext: [{ type: ContentChild, args: [NgbPaginationNext, { static: false },] }], - tplNumber: [{ type: ContentChild, args: [NgbPaginationNumber, { static: false },] }], - tplPrevious: [{ type: ContentChild, args: [NgbPaginationPrevious, { static: false },] }], - disabled: [{ type: Input }], - boundaryLinks: [{ type: Input }], - directionLinks: [{ type: Input }], - ellipses: [{ type: Input }], - rotate: [{ type: Input }], - collectionSize: [{ type: Input }], - maxSize: [{ type: Input }], - page: [{ type: Input }], - pageSize: [{ type: Input }], - pageChange: [{ type: Output }], - size: [{ type: Input }] -}; -if (false) { - /** @type {?} */ - NgbPagination.prototype.pageCount; - /** @type {?} */ - NgbPagination.prototype.pages; - /** @type {?} */ - NgbPagination.prototype.tplEllipsis; - /** @type {?} */ - NgbPagination.prototype.tplFirst; - /** @type {?} */ - NgbPagination.prototype.tplLast; - /** @type {?} */ - NgbPagination.prototype.tplNext; - /** @type {?} */ - NgbPagination.prototype.tplNumber; - /** @type {?} */ - NgbPagination.prototype.tplPrevious; - /** - * If `true`, pagination links will be disabled. - * @type {?} - */ - NgbPagination.prototype.disabled; - /** - * If `true`, the "First" and "Last" page links are shown. - * @type {?} - */ - NgbPagination.prototype.boundaryLinks; - /** - * If `true`, the "Next" and "Previous" page links are shown. - * @type {?} - */ - NgbPagination.prototype.directionLinks; - /** - * If `true`, the ellipsis symbols and first/last page numbers will be shown when `maxSize` > number of pages. - * @type {?} - */ - NgbPagination.prototype.ellipses; - /** - * Whether to rotate pages when `maxSize` > number of pages. - * - * The current page always stays in the middle if `true`. - * @type {?} - */ - NgbPagination.prototype.rotate; - /** - * The number of items in your paginated collection. - * - * Note, that this is not the number of pages. Page numbers are calculated dynamically based on - * `collectionSize` and `pageSize`. Ex. if you have 100 items in your collection and displaying 20 items per page, - * you'll end up with 5 pages. - * @type {?} - */ - NgbPagination.prototype.collectionSize; - /** - * The maximum number of pages to display. - * @type {?} - */ - NgbPagination.prototype.maxSize; - /** - * The current page. - * - * Page numbers start with `1`. - * @type {?} - */ - NgbPagination.prototype.page; - /** - * The number of items per page. - * @type {?} - */ - NgbPagination.prototype.pageSize; - /** - * An event fired when the page is changed. Will fire only if collection size is set and all values are valid. - * - * Event payload is the number of the newly selected page. - * - * Page numbers start with `1`. - * @type {?} - */ - NgbPagination.prototype.pageChange; - /** - * The pagination display size. - * - * Bootstrap currently supports small and large sizes. - * @type {?} - */ - NgbPagination.prototype.size; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInBhZ2luYXRpb24vcGFnaW5hdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osU0FBUyxFQUNULFlBQVksRUFDWixLQUFLLEVBQ0wsTUFBTSxFQUVOLHVCQUF1QixFQUV2QixXQUFXLEVBQ1osTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLGVBQWUsRUFBRSxRQUFRLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFDdkQsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0scUJBQXFCLENBQUM7Ozs7Ozs7Ozs7Ozs7O0FBY3hELDhDQVVDOzs7Ozs7SUFOQywrQ0FBb0I7Ozs7O0lBS3BCLDRDQUFrQjs7Ozs7Ozs7OztBQVVwQixnREFLQzs7Ozs7O0lBREMsK0NBQWtCOzs7Ozs7O0FBU3BCLE1BQU0sT0FBTyxxQkFBcUI7Ozs7SUFDaEMsWUFBbUIsV0FBa0Q7UUFBbEQsZ0JBQVcsR0FBWCxXQUFXLENBQXVDO0lBQUcsQ0FBQzs7O1lBRjFFLFNBQVMsU0FBQyxFQUFDLFFBQVEsRUFBRSxvQ0FBb0MsRUFBQzs7OztZQWhEekQsV0FBVzs7OztJQWtEQyw0Q0FBeUQ7Ozs7Ozs7QUFTdkUsTUFBTSxPQUFPLGtCQUFrQjs7OztJQUM3QixZQUFtQixXQUFrRDtRQUFsRCxnQkFBVyx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291bnQgPSAwO1xuICAgIH1cblxuICAgIC8vIGZpbGwtaW4gbW9kZWwgbmVlZGVkIHRvIHJlbmRlciBwYWdlc1xuICAgIHRoaXMucGFnZXMubGVuZ3RoID0gMDtcbiAgICBmb3IgKGxldCBpID0gMTsgaSA8PSB0aGlzLnBhZ2VDb3VudDsgaSsrKSB7XG4gICAgICB0aGlzLnBhZ2VzLnB1c2goaSk7XG4gICAgfVxuXG4gICAgLy8gc2V0IHBhZ2Ugd2l0aGluIDEuLm1heCByYW5nZVxuICAgIHRoaXMuX3NldFBhZ2VJblJhbmdlKG5ld1BhZ2UpO1xuXG4gICAgLy8gYXBwbHkgbWF4U2l6ZSBpZiBuZWNlc3NhcnlcbiAgICBpZiAodGhpcy5tYXhTaXplID4gMCAmJiB0aGlzLnBhZ2VDb3VudCA+IHRoaXMubWF4U2l6ZSkge1xuICAgICAgbGV0IHN0YXJ0ID0gMDtcbiAgICAgIGxldCBlbmQgPSB0aGlzLnBhZ2VDb3VudDtcblxuICAgICAgLy8gZWl0aGVyIHBhZ2luYXRpbmcgb3Igcm90YXRpbmcgcGFnZSBudW1iZXJzXG4gICAgICBpZiAodGhpcy5yb3RhdGUpIHtcbiAgICAgICAgW3N0YXJ0LCBlbmRdID0gdGhpcy5fYXBwbHlSb3RhdGlvbigpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgW3N0YXJ0LCBlbmRdID0gdGhpcy5fYXBwbHlQYWdpbmF0aW9uKCk7XG4gICAgICB9XG5cbiAgICAgIHRoaXMucGFnZXMgPSB0aGlzLnBhZ2VzLnNsaWNlKHN0YXJ0LCBlbmQpO1xuXG4gICAgICAvLyBhZGRpbmcgZWxsaXBzZXNcbiAgICAgIHRoaXMuX2FwcGx5RWxsaXBzZXMoc3RhcnQsIGVuZCk7XG4gICAgfVxuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/pagination/pagination.module.js b/dist/ng-bootstrap/esm2015/pagination/pagination.module.js deleted file mode 100644 index 4ed7497..0000000 --- a/dist/ng-bootstrap/esm2015/pagination/pagination.module.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious } from './pagination'; -export { NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious } from './pagination'; -export { NgbPaginationConfig } from './pagination-config'; -/** @type {?} */ -const DIRECTIVES = [ - NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, - NgbPaginationPrevious -]; -export class NgbPaginationModule { -} -NgbPaginationModule.decorators = [ - { type: NgModule, args: [{ declarations: DIRECTIVES, exports: DIRECTIVES, imports: [CommonModule] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJwYWdpbmF0aW9uL3BhZ2luYXRpb24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQ0wsYUFBYSxFQUNiLHFCQUFxQixFQUNyQixrQkFBa0IsRUFDbEIsaUJBQWlCLEVBQ2pCLGlCQUFpQixFQUNqQixtQkFB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0aW9uRmlyc3QsXG4gIE5nYlBhZ2luYXRpb25MYXN0LFxuICBOZ2JQYWdpbmF0aW9uTmV4dCxcbiAgTmdiUGFnaW5hdGlvbk51bWJlcixcbiAgTmdiUGFnaW5hdGlvblByZXZpb3VzXG59IGZyb20gJy4vcGFnaW5hdGlvbic7XG5leHBvcnQge05nYlBhZ2luYXRpb25Db25maWd9IGZyb20gJy4vcGFnaW5hdGlvbi1jb25maWcnO1xuXG5jb25zdCBESVJFQ1RJVkVTID0gW1xuICBOZ2JQYWdpbmF0aW9uLCBOZ2JQYWdpbmF0aW9uRWxsaXBzaXMsIE5nYlBhZ2luYXRpb25GaXJzdCwgTmdiUGFnaW5hdGlvbkxhc3QsIE5nYlBhZ2luYXRpb25OZXh0LCBOZ2JQYWdpbmF0aW9uTnVtYmVyLFxuICBOZ2JQYWdpbmF0aW9uUHJldmlvdXNcbl07XG5cbkBOZ01vZHVsZSh7ZGVjbGFyYXRpb25zOiBESVJFQ1RJVkVTLCBleHBvcnRzOiBESVJFQ1RJVkVTLCBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXX0pXG5leHBvcnQgY2xhc3MgTmdiUGFnaW5hdGlvbk1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/popover/popover-config.js b/dist/ng-bootstrap/esm2015/popover/popover-config.js deleted file mode 100644 index af58cb1..0000000 --- a/dist/ng-bootstrap/esm2015/popover/popover-config.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the popovers used in the application. - */ -export class NgbPopoverConfig { - constructor() { - this.autoClose = true; - this.placement = 'auto'; - this.triggers = 'click'; - this.disablePopover = false; - this.openDelay = 0; - this.closeDelay = 0; - } -} -NgbPopoverConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbPopoverConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbPopoverConfig_Factory() { return new NgbPopoverConfig(); }, token: NgbPopoverConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbPopoverConfig.prototype.autoClose; - /** @type {?} */ - NgbPopoverConfig.prototype.placement; - /** @type {?} */ - NgbPopoverConfig.prototype.triggers; - /** @type {?} */ - NgbPopoverConfig.prototype.container; - /** @type {?} */ - NgbPopoverConfig.prototype.disablePopover; - /** @type {?} */ - NgbPopoverConfig.prototype.popoverClass; - /** @type {?} */ - NgbPopoverConfig.prototype.openDelay; - /** @type {?} */ - NgbPopoverConfig.prototype.closeDelay; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJwb3BvdmVyL3BvcG92ZXItY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVV6QyxNQUFNLE9BQU8sZ0JBQWdCO0lBRDdCO1FBRUUsY0FBUyxHQUFtQyxJQUFJLENBQUM7UUFDakQsY0FBUyxHQUFtQixNQUFNLENBQUM7UUFDbkMsYUFBUSxHQUFHLE9BQU8sQ0FBQztRQUVuQixtQkFBYyxHQUFHLEtBQUssQ0FBQztRQUV2QixjQUFTLEdBQUcsQ0FBQyxDQUFDO1FBQ2QsZUFBVSxHQUFHLENBQUMsQ0FBQztLQUNoQjs7O1lBVkEsVUFBVSxTQUFDLEVBQUMsVUFBVSxF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HJpbmc7XG4gIG9wZW5EZWxheSA9IDA7XG4gIGNsb3NlRGVsYXkgPSAwO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/popover/popover.js b/dist/ng-bootstrap/esm2015/popover/popover.js deleted file mode 100644 index 4350f3d..0000000 --- a/dist/ng-bootstrap/esm2015/popover/popover.js +++ /dev/null @@ -1,396 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Directive, Input, Output, EventEmitter, ChangeDetectionStrategy, Inject, Injector, Renderer2, ElementRef, TemplateRef, ViewContainerRef, ComponentFactoryResolver, NgZone, ViewEncapsulation, ChangeDetectorRef, ApplicationRef } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { listenToTriggers } from '../util/triggers'; -import { ngbAutoClose } from '../util/autoclose'; -import { positionElements } from '../util/positioning'; -import { PopupService } from '../util/popup'; -import { NgbPopoverConfig } from './popover-config'; -/** @type {?} */ -let nextId = 0; -export class NgbPopoverWindow { - /** - * @return {?} - */ - isTitleTemplate() { return this.title instanceof TemplateRef; } -} -NgbPopoverWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-popover-window', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { '[class]': '"popover" + (popoverClass ? " " + popoverClass : "")', 'role': 'tooltip', '[id]': 'id' }, - template: ` -
-

- {{title}} - -

-
`, - styles: ["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"] - }] } -]; -NgbPopoverWindow.propDecorators = { - title: [{ type: Input }], - id: [{ type: Input }], - popoverClass: [{ type: Input }], - context: [{ type: Input }] -}; -if (false) { - /** @type {?} */ - NgbPopoverWindow.prototype.title; - /** @type {?} */ - NgbPopoverWindow.prototype.id; - /** @type {?} */ - NgbPopoverWindow.prototype.popoverClass; - /** @type {?} */ - NgbPopoverWindow.prototype.context; -} -/** - * A lightweight and extensible directive for fancy popover creation. - */ -export class NgbPopover { - /** - * @param {?} _elementRef - * @param {?} _renderer - * @param {?} injector - * @param {?} componentFactoryResolver - * @param {?} viewContainerRef - * @param {?} config - * @param {?} _ngZone - * @param {?} _document - * @param {?} _changeDetector - * @param {?} _applicationRef - */ - constructor(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, _applicationRef) { - this._elementRef = _elementRef; - this._renderer = _renderer; - this._ngZone = _ngZone; - this._document = _document; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - /** - * An event emitted when the popover is shown. Contains no payload. - */ - this.shown = new EventEmitter(); - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - this.hidden = new EventEmitter(); - this._ngbPopoverWindowId = `ngb-popover-${nextId++}`; - this.autoClose = config.autoClose; - this.placement = config.placement; - this.triggers = config.triggers; - this.container = config.container; - this.disablePopover = config.disablePopover; - this.popoverClass = config.popoverClass; - this.openDelay = config.openDelay; - this.closeDelay = config.closeDelay; - this._popupService = new PopupService(NgbPopoverWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - () => { - if (this._windowRef) { - positionElements(this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement, this.container === 'body', 'bs-popover'); - } - })); - } - /** - * @private - * @return {?} - */ - _isDisabled() { - if (this.disablePopover) { - return true; - } - if (!this.ngbPopover && !this.popoverTitle) { - return true; - } - return false; - } - /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - * @param {?=} context - * @return {?} - */ - open(context) { - if (!this._windowRef && !this._isDisabled()) { - this._windowRef = this._popupService.open(this.ngbPopover, context); - this._windowRef.instance.title = this.popoverTitle; - this._windowRef.instance.context = context; - this._windowRef.instance.popoverClass = this.popoverClass; - this._windowRef.instance.id = this._ngbPopoverWindowId; - this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbPopoverWindowId); - if (this.container === 'body') { - this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - // We need to detect changes, because we don't know where .open() might be called from. - // Ex. opening popover from one of lifecycle hooks that run after the CD - // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception - this._windowRef.changeDetectorRef.detectChanges(); - // We need to mark for check, because popover won't work inside the OnPush component. - // Ex. when we use expression like `{{ popover.isOpen() : 'opened' : 'closed' }}` - // inside the template of an OnPush component and we change the popover from - // open -> closed, the expression in question won't be updated unless we explicitly - // mark the parent component to be checked. - this._windowRef.changeDetectorRef.markForCheck(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - () => this.close()), this.hidden, [this._windowRef.location.nativeElement]); - this.shown.emit(); - } - } - /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - close() { - if (this._windowRef) { - this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby'); - this._popupService.close(); - this._windowRef = null; - this.hidden.emit(); - this._changeDetector.markForCheck(); - } - } - /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - toggle() { - if (this._windowRef) { - this.close(); - } - else { - this.open(); - } - } - /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - isOpen() { return this._windowRef != null; } - /** - * @return {?} - */ - ngOnInit() { - this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay); - } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - // close popover if title and content become empty, or disablePopover set to true - if ((changes['ngbPopover'] || changes['popoverTitle'] || changes['disablePopover']) && this._isDisabled()) { - this.close(); - } - } - /** - * @return {?} - */ - ngOnDestroy() { - this.close(); - // This check is needed as it might happen that ngOnDestroy is called before ngOnInit - // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199 - if (this._unregisterListenersFn) { - this._unregisterListenersFn(); - } - this._zoneSubscription.unsubscribe(); - } -} -NgbPopover.decorators = [ - { type: Directive, args: [{ selector: '[ngbPopover]', exportAs: 'ngbPopover' },] } -]; -/** @nocollapse */ -NgbPopover.ctorParameters = () => [ - { type: ElementRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: ViewContainerRef }, - { type: NgbPopoverConfig }, - { type: NgZone }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } -]; -NgbPopover.propDecorators = { - autoClose: [{ type: Input }], - ngbPopover: [{ type: Input }], - popoverTitle: [{ type: Input }], - placement: [{ type: Input }], - triggers: [{ type: Input }], - container: [{ type: Input }], - disablePopover: [{ type: Input }], - popoverClass: [{ type: Input }], - openDelay: [{ type: Input }], - closeDelay: [{ type: Input }], - shown: [{ type: Output }], - hidden: [{ type: Output }] -}; -if (false) { - /** - * Indicates whether the popover should be closed on `Escape` key and inside/outside clicks: - * - * * `true` - closes on both outside and inside clicks as well as `Escape` presses - * * `false` - disables the autoClose feature (NB: triggers still apply) - * * `"inside"` - closes on inside clicks as well as Escape presses - * * `"outside"` - closes on outside clicks (sometimes also achievable through triggers) - * as well as `Escape` presses - * - * \@since 3.0.0 - * @type {?} - */ - NgbPopover.prototype.autoClose; - /** - * The string content or a `TemplateRef` for the content to be displayed in the popover. - * - * If the title and the content are empty, the popover won't open. - * @type {?} - */ - NgbPopover.prototype.ngbPopover; - /** - * The title of the popover. - * - * If the title and the content are empty, the popover won't open. - * @type {?} - */ - NgbPopover.prototype.popoverTitle; - /** - * The preferred placement of the popover. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"auto"` (same as the sequence above). - * - * Please see the [positioning overview](#/positioning) for more details. - * @type {?} - */ - NgbPopover.prototype.placement; - /** - * Specifies events that should trigger the tooltip. - * - * Supports a space separated list of event names. - * For more details see the [triggers demo](#/components/popover/examples#triggers). - * @type {?} - */ - NgbPopover.prototype.triggers; - /** - * A selector specifying the element the popover should be appended to. - * - * Currently only supports `body`. - * @type {?} - */ - NgbPopover.prototype.container; - /** - * If `true`, popover is disabled and won't be displayed. - * - * \@since 1.1.0 - * @type {?} - */ - NgbPopover.prototype.disablePopover; - /** - * An optional class applied to the popover window element. - * - * \@since 2.2.0 - * @type {?} - */ - NgbPopover.prototype.popoverClass; - /** - * The opening delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * \@since 4.1.0 - * @type {?} - */ - NgbPopover.prototype.openDelay; - /** - * The closing delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * \@since 4.1.0 - * @type {?} - */ - NgbPopover.prototype.closeDelay; - /** - * An event emitted when the popover is shown. Contains no payload. - * @type {?} - */ - NgbPopover.prototype.shown; - /** - * An event emitted when the popover is hidden. Contains no payload. - * @type {?} - */ - NgbPopover.prototype.hidden; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._ngbPopoverWindowId; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._popupService; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._windowRef; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._unregisterListenersFn; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._zoneSubscription; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._elementRef; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._document; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._changeDetector; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._applicationRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInBvcG92ZXIvcG9wb3Zlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxTQUFTLEVBQ1QsS0FBSyxFQUNMLE1BQU0sRUFDTixZQUFZLEVBQ1osdUJBQXVCLEVBSXZCLE1BQU0sRUFDTixRQUFRLEVBQ1IsU0FBUyxFQUVULFVBQVUsRUFDVixXQUFXLEVBQ1gsZ0JBQWdCLEVBQ2hCLHdCQUF3QixFQUN4QixNQUFNLEVBRU4saUJBQWlCLEVBQ2pCLGlCQUFpQixFQUNqQixjQUFjLEVBQ2YsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBRXpDLE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBQ2xELE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQztBQUMvQyxPQUFPLEVBQUMsZ0JBQWdCLEVBQWlCLE1BQU0scUJBQXFCLENBQUM7QUFDckUsT0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AgICB0aGlzLmNsb3NlLmJpbmQodGhpcyksICt0aGlzLm9wZW5EZWxheSwgK3RoaXMuY2xvc2VEZWxheSk7XG4gIH1cblxuICBuZ09uQ2hhbmdlcyhjaGFuZ2VzOiBTaW1wbGVDaGFuZ2VzKSB7XG4gICAgLy8gY2xvc2UgcG9wb3ZlciBpZiB0aXRsZSBhbmQgY29udGVudCBiZWNvbWUgZW1wdHksIG9yIGRpc2FibGVQb3BvdmVyIHNldCB0byB0cnVlXG4gICAgaWYgKChjaGFuZ2VzWyduZ2JQb3BvdmVyJ10gfHwgY2hhbmdlc1sncG9wb3ZlclRpdGxlJ10gfHwgY2hhbmdlc1snZGlzYWJsZVBvcG92ZXInXSkgJiYgdGhpcy5faXNEaXNhYmxlZCgpKSB7XG4gICAgICB0aGlzLmNsb3NlKCk7XG4gICAgfVxuICB9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgdGhpcy5jbG9zZSgpO1xuICAgIC8vIFRoaXMgY2hlY2sgaXMgbmVlZGVkIGFzIGl0IG1pZ2h0IGhhcHBlbiB0aGF0IG5nT25EZXN0cm95IGlzIGNhbGxlZCBiZWZvcmUgbmdPbkluaXRcbiAgICAvLyB1bmRlciBjZXJ0YWluIGNvbmRpdGlvbnMsIHNlZTogaHR0cHM6Ly9naXRodWIuY29tL25nLWJvb3RzdHJhcC9uZy1ib290c3RyYXAvaXNzdWVzLzIxOTlcbiAgICBpZiAodGhpcy5fdW5yZWdpc3Rlckxpc3RlbmVyc0ZuKSB7XG4gICAgICB0aGlzLl91bnJlZ2lzdGVyTGlzdGVuZXJzRm4oKTtcbiAgICB9XG4gICAgdGhpcy5fem9uZVN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/popover/popover.module.js b/dist/ng-bootstrap/esm2015/popover/popover.module.js deleted file mode 100644 index ca0bf40..0000000 --- a/dist/ng-bootstrap/esm2015/popover/popover.module.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbPopover, NgbPopoverWindow } from './popover'; -import { CommonModule } from '@angular/common'; -export { NgbPopover } from './popover'; -export { NgbPopoverConfig } from './popover-config'; -export class NgbPopoverModule { -} -NgbPopoverModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbPopover, NgbPopoverWindow], - exports: [NgbPopover], - imports: [CommonModule], - entryComponents: [NgbPopoverWindow] - },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJwb3BvdmVyL3BvcG92ZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXZDLE9BQU8sRUFBQyxVQUFVLEVBQUUsZ0JBQWdCLEVBQUMsTUFBTSxXQUFXLENBQUM7QUFDdkQsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBRTdDLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxXQUFXLENBQUM7QUFDckMsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFTbEQsTUFBTSxPQUFPLGdCQUFnQjs7O1lBTjVCLFFBQVEsU0FBQztnQkFDUixZQUFZLEVBQUUsQ0FBQyxVQUFVLEVBQUUsZ0JBQWdCLENBQUM7Z0JBQzVDLE9BQU8sRUFBRSxDQUFDLFVBQVUsQ0FBQztnQkFDckIsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO2dCQUN2QixlQUFlLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQzthQUNwQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQge05nYlBvcG92ZXIsIE5nYlBvcG92ZXJXaW5kb3d9IGZyb20gJy4vcG9wb3Zlcic7XG5pbXBvcnQge0NvbW1vbk1vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcblxuZXhwb3J0IHtOZ2JQb3BvdmVyfSBmcm9tICcuL3BvcG92ZXInO1xuZXhwb3J0IHtOZ2JQb3BvdmVyQ29uZmlnfSBmcm9tICcuL3BvcG92ZXItY29uZmlnJztcbmV4cG9ydCB7UGxhY2VtZW50fSBmcm9tICcuLi91dGlsL3Bvc2l0aW9uaW5nJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbTmdiUG9wb3ZlciwgTmdiUG9wb3ZlcldpbmRvd10sXG4gIGV4cG9ydHM6IFtOZ2JQb3BvdmVyXSxcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gIGVudHJ5Q29tcG9uZW50czogW05nYlBvcG92ZXJXaW5kb3ddXG59KVxuZXhwb3J0IGNsYXNzIE5nYlBvcG92ZXJNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/progressbar/progressbar-config.js b/dist/ng-bootstrap/esm2015/progressbar/progressbar-config.js deleted file mode 100644 index c465847..0000000 --- a/dist/ng-bootstrap/esm2015/progressbar/progressbar-config.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the progress bars used in the application. - */ -export class NgbProgressbarConfig { - constructor() { - this.max = 100; - this.animated = false; - this.striped = false; - this.showValue = false; - } -} -NgbProgressbarConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbProgressbarConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbProgressbarConfig_Factory() { return new NgbProgressbarConfig(); }, token: NgbProgressbarConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbProgressbarConfig.prototype.max; - /** @type {?} */ - NgbProgressbarConfig.prototype.animated; - /** @type {?} */ - NgbProgressbarConfig.prototype.striped; - /** @type {?} */ - NgbProgressbarConfig.prototype.type; - /** @type {?} */ - NgbProgressbarConfig.prototype.showValue; - /** @type {?} */ - NgbProgressbarConfig.prototype.height; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3NiYXItY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsicHJvZ3Jlc3NiYXIvcHJvZ3Jlc3NiYXItY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QyxNQUFNLE9BQU8sb0JBQW9CO0lBRGpDO1FBRUUsUUFBRyxHQUFHLEdBQUcsQ0FBQztRQUNWLGFBQVEsR0FBRyxLQUFLLENBQUM7UUFDakIsWUFBTyxHQUFHLEtBQUssQ0FBQztRQUVoQixjQUFTLEdBQUcsS0FBSyxDQUFDO0tBRW5COzs7WUFSQSxVQUFVLFNBQUMsRUFBQyxVQUFVLEVBQUUsTUFBTSxFQUFDOzs7OztJQUU5QixtQ0FBVTs7SUFDVix3Q0FBaUI7O0lBQ2pCLHVDQUFnQjs7SUFDaEIsb0NBQWE7O0lBQ2IseUNBQWtCOztJQUNsQixzQ0FBZSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7SW5qZWN0YWJsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKlxuICogQSBjb25maWd1cmF0aW9uIHNlcnZpY2UgZm9yIHRoZSBbYE5nYlByb2dyZXNzYmFyYF0oIy9jb21wb25lbnRzL3Byb2dyZXNzYmFyL2FwaSNOZ2JQcm9ncmVzc2JhcikgY29tcG9uZW50LlxuICpcbiAqIFlvdSBjYW4gaW5qZWN0IHRoaXMgc2VydmljZSwgdHlwaWNhbGx5IGluIHlvdXIgcm9vdCBjb21wb25lbnQsIGFuZCBjdXN0b21pemUgdGhlIHZhbHVlcyBvZiBpdHMgcHJvcGVydGllcyBpblxuICogb3JkZXIgdG8gcHJvdmlkZSBkZWZhdWx0IHZhbHVlcyBmb3IgYWxsIHRoZSBwcm9ncmVzcyBiYXJzIHVzZWQgaW4gdGhlIGFwcGxpY2F0aW9uLlxuICovXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBOZ2JQcm9ncmVzc2JhckNvbmZpZyB7XG4gIG1heCA9IDEwMDtcbiAgYW5pbWF0ZWQgPSBmYWxzZTtcbiAgc3RyaXBlZCA9IGZhbHNlO1xuICB0eXBlOiBzdHJpbmc7XG4gIHNob3dWYWx1ZSA9IGZhbHNlO1xuICBoZWlnaHQ6IHN0cmluZztcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/progressbar/progressbar.js b/dist/ng-bootstrap/esm2015/progressbar/progressbar.js deleted file mode 100644 index 45cc12d..0000000 --- a/dist/ng-bootstrap/esm2015/progressbar/progressbar.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, ChangeDetectionStrategy } from '@angular/core'; -import { getValueInRange } from '../util/util'; -import { NgbProgressbarConfig } from './progressbar-config'; -/** - * A directive that provides feedback on the progress of a workflow or an action. - */ -export class NgbProgressbar { - /** - * @param {?} config - */ - constructor(config) { - /** - * The current value for the progress bar. - * - * Should be in the `[0, max]` range. - */ - this.value = 0; - this.max = config.max; - this.animated = config.animated; - this.striped = config.striped; - this.type = config.type; - this.showValue = config.showValue; - this.height = config.height; - } - /** - * @return {?} - */ - getValue() { return getValueInRange(this.value, this.max); } - /** - * @return {?} - */ - getPercentValue() { return 100 * this.getValue() / this.max; } -} -NgbProgressbar.decorators = [ - { type: Component, args: [{ - selector: 'ngb-progressbar', - changeDetection: ChangeDetectionStrategy.OnPush, - template: ` -
-
- {{getPercentValue()}}% -
-
- ` - }] } -]; -/** @nocollapse */ -NgbProgressbar.ctorParameters = () => [ - { type: NgbProgressbarConfig } -]; -NgbProgressbar.propDecorators = { - max: [{ type: Input }], - animated: [{ type: Input }], - striped: [{ type: Input }], - showValue: [{ type: Input }], - type: [{ type: Input }], - value: [{ type: Input }], - height: [{ type: Input }] -}; -if (false) { - /** - * The maximal value to be displayed in the progressbar. - * @type {?} - */ - NgbProgressbar.prototype.max; - /** - * If `true`, the stripes on the progressbar are animated. - * - * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`. - * @type {?} - */ - NgbProgressbar.prototype.animated; - /** - * If `true`, the progress bars will be displayed as striped. - * @type {?} - */ - NgbProgressbar.prototype.striped; - /** - * If `true`, the current percentage will be shown in the `xx%` format. - * @type {?} - */ - NgbProgressbar.prototype.showValue; - /** - * The type of the progress bar. - * - * Currently Bootstrap supports `"success"`, `"info"`, `"warning"` or `"danger"`. - * @type {?} - */ - NgbProgressbar.prototype.type; - /** - * The current value for the progress bar. - * - * Should be in the `[0, max]` range. - * @type {?} - */ - NgbProgressbar.prototype.value; - /** - * THe height of the progress bar. - * - * Accep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ElucHV0KCkgaGVpZ2h0OiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IoY29uZmlnOiBOZ2JQcm9ncmVzc2JhckNvbmZpZykge1xuICAgIHRoaXMubWF4ID0gY29uZmlnLm1heDtcbiAgICB0aGlzLmFuaW1hdGVkID0gY29uZmlnLmFuaW1hdGVkO1xuICAgIHRoaXMuc3RyaXBlZCA9IGNvbmZpZy5zdHJpcGVkO1xuICAgIHRoaXMudHlwZSA9IGNvbmZpZy50eXBlO1xuICAgIHRoaXMuc2hvd1ZhbHVlID0gY29uZmlnLnNob3dWYWx1ZTtcbiAgICB0aGlzLmhlaWdodCA9IGNvbmZpZy5oZWlnaHQ7XG4gIH1cblxuICBnZXRWYWx1ZSgpIHsgcmV0dXJuIGdldFZhbHVlSW5SYW5nZSh0aGlzLnZhbHVlLCB0aGlzLm1heCk7IH1cblxuICBnZXRQZXJjZW50VmFsdWUoKSB7IHJldHVybiAxMDAgKiB0aGlzLmdldFZhbHVlKCkgLyB0aGlzLm1heDsgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/progressbar/progressbar.module.js b/dist/ng-bootstrap/esm2015/progressbar/progressbar.module.js deleted file mode 100644 index ce9ef9a..0000000 --- a/dist/ng-bootstrap/esm2015/progressbar/progressbar.module.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbProgressbar } from './progressbar'; -export { NgbProgressbar } from './progressbar'; -export { NgbProgressbarConfig } from './progressbar-config'; -export class NgbProgressbarModule { -} -NgbProgressbarModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbProgressbar], exports: [NgbProgressbar], imports: [CommonModule] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3NiYX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0aW9uczogW05nYlByb2dyZXNzYmFyXSwgZXhwb3J0czogW05nYlByb2dyZXNzYmFyXSwgaW1wb3J0czogW0NvbW1vbk1vZHVsZV19KVxuZXhwb3J0IGNsYXNzIE5nYlByb2dyZXNzYmFyTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/rating/rating-config.js b/dist/ng-bootstrap/esm2015/rating/rating-config.js deleted file mode 100644 index 867e041..0000000 --- a/dist/ng-bootstrap/esm2015/rating/rating-config.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the ratings used in the application. - */ -export class NgbRatingConfig { - constructor() { - this.max = 10; - this.readonly = false; - this.resettable = false; - } -} -NgbRatingConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbRatingConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbRatingConfig_Factory() { return new NgbRatingConfig(); }, token: NgbRatingConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbRatingConfig.prototype.max; - /** @type {?} */ - NgbRatingConfig.prototype.readonly; - /** @type {?} */ - NgbRatingConfig.prototype.resettable; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0aW5nLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInJhdGluZy9yYXRpbmctY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QyxNQUFNLE9BQU8sZUFBZTtJQUQ1QjtRQUVFLFFBQUcsR0FBRyxFQUFFLENBQUM7UUFDVCxhQUFRLEdBQUcsS0FBSyxDQUFDO1FBQ2pCLGVBQVUsR0FBRyxLQUFLLENBQUM7S0FDcEI7OztZQUxBLFVBQVUsU0FBQyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUM7Ozs7O0lBRTlCLDhCQUFTOztJQUNULG1DQUFpQjs7SUFDakIscUNBQW1CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtJbmplY3RhYmxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBBIGNvbmZpZ3VyYXRpb24gc2VydmljZSBmb3IgdGhlIFtgTmdiUmF0aW5nYF0oIy9jb21wb25lbnRzL3JhdGluZy9hcGkjTmdiUmF0aW5nKSBjb21wb25lbnQuXG4gKlxuICogWW91IGNhbiBpbmplY3QgdGhpcyBzZXJ2aWNlLCB0eXBpY2FsbHkgaW4geW91ciByb290IGNvbXBvbmVudCwgYW5kIGN1c3RvbWl6ZSB0aGUgdmFsdWVzIG9mIGl0cyBwcm9wZXJ0aWVzIGluXG4gKiBvcmRlciB0byBwcm92aWRlIGRlZmF1bHQgdmFsdWVzIGZvciBhbGwgdGhlIHJhdGluZ3MgdXNlZCBpbiB0aGUgYXBwbGljYXRpb24uXG4gKi9cbkBJbmplY3RhYmxlKHtwcm92aWRlZEluOiAncm9vdCd9KVxuZXhwb3J0IGNsYXNzIE5nYlJhdGluZ0NvbmZpZyB7XG4gIG1heCA9IDEwO1xuICByZWFkb25seSA9IGZhbHNlO1xuICByZXNldHRhYmxlID0gZmFsc2U7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/rating/rating.js b/dist/ng-bootstrap/esm2015/rating/rating.js deleted file mode 100644 index 76bbb22..0000000 --- a/dist/ng-bootstrap/esm2015/rating/rating.js +++ /dev/null @@ -1,341 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, ChangeDetectionStrategy, Input, Output, EventEmitter, TemplateRef, ContentChild, forwardRef, ChangeDetectorRef } from '@angular/core'; -import { NgbRatingConfig } from './rating-config'; -import { getValueInRange } from '../util/util'; -import { Key } from '../util/key'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -/** - * The context for the custom star display template defined in the `starTemplate`. - * @record - */ -export function StarTemplateContext() { } -if (false) { - /** - * The star fill percentage, an integer in the `[0, 100]` range. - * @type {?} - */ - StarTemplateContext.prototype.fill; - /** - * Index of the star, starts with `0`. - * @type {?} - */ - StarTemplateContext.prototype.index; -} -/** @type {?} */ -const NGB_RATING_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbRating)), - multi: true -}; -/** - * A directive that helps visualising and interacting with a star rating bar. - */ -export class NgbRating { - /** - * @param {?} config - * @param {?} _changeDetectorRef - */ - constructor(config, _changeDetectorRef) { - this._changeDetectorRef = _changeDetectorRef; - this.contexts = []; - this.disabled = false; - /** - * An event emitted when the user is hovering over a given rating. - * - * Event payload equals to the rating being hovered over. - */ - this.hover = new EventEmitter(); - /** - * An event emitted when the user stops hovering over a given rating. - * - * Event payload equals to the rating of the last item being hovered over. - */ - this.leave = new EventEmitter(); - /** - * An event emitted when the user selects a new rating. - * - * Event payload equals to the newly selected rating. - */ - this.rateChange = new EventEmitter(true); - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.onTouched = (/** - * @return {?} - */ - () => { }); - this.max = config.max; - this.readonly = config.readonly; - } - /** - * @return {?} - */ - ariaValueText() { return `${this.nextRate} out of ${this.max}`; } - /** - * @param {?} value - * @return {?} - */ - enter(value) { - if (!this.readonly && !this.disabled) { - this._updateState(value); - } - this.hover.emit(value); - } - /** - * @return {?} - */ - handleBlur() { this.onTouched(); } - /** - * @param {?} value - * @return {?} - */ - handleClick(value) { this.update(this.resettable && this.rate === value ? 0 : value); } - /** - * @param {?} event - * @return {?} - */ - handleKeyDown(event) { - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.ArrowDown: - case Key.ArrowLeft: - this.update(this.rate - 1); - break; - case Key.ArrowUp: - case Key.ArrowRight: - this.update(this.rate + 1); - break; - case Key.Home: - this.update(0); - break; - case Key.End: - this.update(this.max); - break; - default: - return; - } - // note 'return' in default case - event.preventDefault(); - } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - if (changes['rate']) { - this.update(this.rate); - } - } - /** - * @return {?} - */ - ngOnInit() { - this.contexts = Array.from({ length: this.max }, (/** - * @param {?} v - * @param {?} k - * @return {?} - */ - (v, k) => ({ fill: 0, index: k }))); - this._updateState(this.rate); - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this.onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this.onTouched = fn; } - /** - * @return {?} - */ - reset() { - this.leave.emit(this.nextRate); - this._updateState(this.rate); - } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { this.disabled = isDisabled; } - /** - * @param {?} value - * @param {?=} internalChange - * @return {?} - */ - update(value, internalChange = true) { - /** @type {?} */ - const newRate = getValueInRange(value, this.max, 0); - if (!this.readonly && !this.disabled && this.rate !== newRate) { - this.rate = newRate; - this.rateChange.emit(this.rate); - } - if (internalChange) { - this.onChange(this.rate); - this.onTouched(); - } - this._updateState(this.rate); - } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this.update(value, false); - this._changeDetectorRef.markForCheck(); - } - /** - * @private - * @param {?} index - * @return {?} - */ - _getFillValue(index) { - /** @type {?} */ - const diff = this.nextRate - index; - if (diff >= 1) { - return 100; - } - if (diff < 1 && diff > 0) { - return parseInt((diff * 100).toFixed(2), 10); - } - return 0; - } - /** - * @private - * @param {?} nextValue - * @return {?} - */ - _updateState(nextValue) { - this.nextRate = nextValue; - this.contexts.forEach((/** - * @param {?} context - * @param {?} index - * @return {?} - */ - (context, index) => context.fill = this._getFillValue(index))); - } -} -NgbRating.decorators = [ - { type: Component, args: [{ - selector: 'ngb-rating', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { - 'class': 'd-inline-flex', - 'tabindex': '0', - 'role': 'slider', - 'aria-valuemin': '0', - '[attr.aria-valuemax]': 'max', - '[attr.aria-valuenow]': 'nextRate', - '[attr.aria-valuetext]': 'ariaValueText()', - '[attr.aria-disabled]': 'readonly ? true : null', - '(blur)': 'handleBlur()', - '(keydown)': 'handleKeyDown($event)', - '(mouseleave)': 'reset()' - }, - template: ` - {{ fill === 100 ? '★' : '☆' }} - - ({{ index < nextRate ? '*' : ' ' }}) - - - - - - `, - providers: [NGB_RATING_VALUE_ACCESSOR] - }] } -]; -/** @nocollapse */ -NgbRating.ctorParameters = () => [ - { type: NgbRatingConfig }, - { type: ChangeDetectorRef } -]; -NgbRating.propDecorators = { - max: [{ type: Input }], - rate: [{ type: Input }], - readonly: [{ type: Input }], - resettable: [{ type: Input }], - starTemplate: [{ type: Input }], - starTemplateFromContent: [{ type: ContentChild, args: [TemplateRef, { static: false },] }], - hover: [{ type: Output }], - leave: [{ type: Output }], - rateChange: [{ type: Output }] -}; -if (false) { - /** @type {?} */ - NgbRating.prototype.contexts; - /** @type {?} */ - NgbRating.prototype.disabled; - /** @type {?} */ - NgbRating.prototype.nextRate; - /** - * The maximal rating that can be given. - * @type {?} - */ - NgbRating.prototype.max; - /** - * The current rating. Could be a decimal value like `3.75`. - * @type {?} - */ - NgbRating.prototype.rate; - /** - * If `true`, the rating can't be changed. - * @type {?} - */ - NgbRating.prototype.readonly; - /** - * If `true`, the rating can be reset to `0` by mouse clicking currently set rating. - * @type {?} - */ - NgbRating.prototype.resettable; - /** - * The template to override the way each star is displayed. - * - * Alternatively put an `` as the only child of your `` element - * @type {?} - */ - NgbRating.prototype.starTemplate; - /** @type {?} */ - NgbRating.prototype.starTemplateFromContent; - /** - * An event emitted when the user is hovering over a given rating. - * - * Event payload equals to the rating being hovered over. - * @type {?} - */ - NgbRating.prototype.hover; - /** - * An event emitted when the user stops hovering over a given rating. - * - * Event payload equals to the rating of the last item being hovered over. - * @type {?} - */ - NgbRating.prototype.leave; - /** - * An event emitted when the user selects a new rating. - * - * Event payload equals to the newly selected rating. - * @type {?} - */ - NgbRating.prototype.rateChange; - /** @type {?} */ - NgbRating.prototype.onChange; - /** @type {?} */ - NgbRating.prototype.onTouched; - /** - * @type {?} - * @private - */ - NgbRating.prototype._changeDetectorRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0aW5nLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsicmF0aW5nL3JhdGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFDdkIsS0FBSyxFQUNMLE1BQU0sRUFDTixZQUFZLEVBRVosV0FBVyxFQUdYLFlBQVksRUFDWixVQUFVLEVBQ1YsaUJBQWlCLEVBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUNoRCxPQUFPLEVBQUMsZUFBZSxFQUFDLE1BQU0sY0FBYyxDQUFDO0FBQzdDLE9BQU8sRUFBQyxHQUFHLEVBQUMsTUFBTSxhQUFhLENBQUM7QUFDaEMsT0FBTyxFQUF1QixpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDOzs7OztBQUt2RSx5Q0FVQzs7Ozs7O0lBTkMsbUNBQWE7Ozs7O0lBS2Isb0NBQWM7OztNQUdWLHlCQUF5QixHQ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KGRpZmYgPj0gMSkge1xuICAgICAgcmV0dXJuIDEwMDtcbiAgICB9XG4gICAgaWYgKGRpZmYgPCAxICYmIGRpZmYgPiAwKSB7XG4gICAgICByZXR1cm4gcGFyc2VJbnQoKGRpZmYgKiAxMDApLnRvRml4ZWQoMiksIDEwKTtcbiAgICB9XG5cbiAgICByZXR1cm4gMDtcbiAgfVxuXG4gIHByaXZhdGUgX3VwZGF0ZVN0YXRlKG5leHRWYWx1ZTogbnVtYmVyKSB7XG4gICAgdGhpcy5uZXh0UmF0ZSA9IG5leHRWYWx1ZTtcbiAgICB0aGlzLmNvbnRleHRzLmZvckVhY2goKGNvbnRleHQsIGluZGV4KSA9PiBjb250ZXh0LmZpbGwgPSB0aGlzLl9nZXRGaWxsVmFsdWUoaW5kZXgpKTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/rating/rating.module.js b/dist/ng-bootstrap/esm2015/rating/rating.module.js deleted file mode 100644 index 8e56c11..0000000 --- a/dist/ng-bootstrap/esm2015/rating/rating.module.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbRating } from './rating'; -export { NgbRating } from './rating'; -export { NgbRatingConfig } from './rating-config'; -export class NgbRatingModule { -} -NgbRatingModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbRating], exports: [NgbRating], imports: [CommonModule] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0aW5nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInJhdGluZy9yYXRpbmcubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sVUFBVSxDQUFDO0FBRW5DLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxVQUFVLENBQUM7QUFDbkMsT0FBTyxFQUFDLGVBQWUsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBR2hELE1BQU0sT0FBTyxlQUFlOzs7WUFEM0IsUUFBUSxTQUFDLEVBQUMsWUFBWSxFQUFFLENBQUMsU0FBUyxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsU0FBUyxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDLEVBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7Q29tbW9uTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5pbXBvcnQge05nYlJhdGluZ30gZnJvbSAnLi9yYXRpbmcnO1xuXG5leHBvcnQge05nYlJhdGluZ30gZnJvbSAnLi9yYXRpbmcnO1xuZXhwb3J0IHtOZ2JSYXRpbmdDb25maWd9IGZyb20gJy4vcmF0aW5nLWNvbmZpZyc7XG5cbkBOZ01vZHVsZSh7ZGVjbGFyYXRpb25zOiBbTmdiUmF0aW5nXSwgZXhwb3J0czogW05nYlJhdGluZ10sIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdfSlcbmV4cG9ydCBjbGFzcyBOZ2JSYXRpbmdNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/tabset/tabset-config.js b/dist/ng-bootstrap/esm2015/tabset/tabset-config.js deleted file mode 100644 index 44c72a2..0000000 --- a/dist/ng-bootstrap/esm2015/tabset/tabset-config.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbTabset`](#/components/tabset/api#NgbTabset) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tabsets used in the application. - */ -export class NgbTabsetConfig { - constructor() { - this.justify = 'start'; - this.orientation = 'horizontal'; - this.type = 'tabs'; - } -} -NgbTabsetConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbTabsetConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbTabsetConfig_Factory() { return new NgbTabsetConfig(); }, token: NgbTabsetConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbTabsetConfig.prototype.justify; - /** @type {?} */ - NgbTabsetConfig.prototype.orientation; - /** @type {?} */ - NgbTabsetConfig.prototype.type; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFic2V0LWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInRhYnNldC90YWJzZXQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QyxNQUFNLE9BQU8sZUFBZTtJQUQ1QjtRQUVFLFlBQU8sR0FBc0QsT0FBTyxDQUFDO1FBQ3JFLGdCQUFXLEdBQThCLFlBQVksQ0FBQztRQUN0RCxTQUFJLEdBQXFCLE1BQU0sQ0FBQztLQUNqQzs7O1lBTEEsVUFBVSxTQUFDLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBQzs7Ozs7SUFFOUIsa0NBQXFFOztJQUNyRSxzQ0FBc0Q7O0lBQ3RELCtCQUFnQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7SW5qZWN0YWJsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKlxuICogQSBjb25maWd1cmF0aW9uIHNlcnZpY2UgZm9yIHRoZSBbYE5nYlRhYnNldGBdKCMvY29tcG9uZW50cy90YWJzZXQvYXBpI05nYlRhYnNldCkgY29tcG9uZW50LlxuICpcbiAqIFlvdSBjYW4gaW5qZWN0IHRoaXMgc2VydmljZSwgdHlwaWNhbGx5IGluIHlvdXIgcm9vdCBjb21wb25lbnQsIGFuZCBjdXN0b21pemUgdGhlIHZhbHVlcyBvZiBpdHMgcHJvcGVydGllcyBpblxuICogb3JkZXIgdG8gcHJvdmlkZSBkZWZhdWx0IHZhbHVlcyBmb3IgYWxsIHRoZSB0YWJzZXRzIHVzZWQgaW4gdGhlIGFwcGxpY2F0aW9uLlxuICovXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBOZ2JUYWJzZXRDb25maWcge1xuICBqdXN0aWZ5OiAnc3RhcnQnIHwgJ2NlbnRlcicgfCAnZW5kJyB8ICdmaWxsJyB8ICdqdXN0aWZpZWQnID0gJ3N0YXJ0JztcbiAgb3JpZW50YXRpb246ICdob3Jpem9udGFsJyB8ICd2ZXJ0aWNhbCcgPSAnaG9yaXpvbnRhbCc7XG4gIHR5cGU6ICd0YWJzJyB8ICdwaWxscycgPSAndGFicyc7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/tabset/tabset.js b/dist/ng-bootstrap/esm2015/tabset/tabset.js deleted file mode 100644 index 0c8185b..0000000 --- a/dist/ng-bootstrap/esm2015/tabset/tabset.js +++ /dev/null @@ -1,307 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, ContentChildren, QueryList, Directive, TemplateRef, Output, EventEmitter } from '@angular/core'; -import { NgbTabsetConfig } from './tabset-config'; -/** @type {?} */ -let nextId = 0; -/** - * A directive to wrap tab titles that need to contain HTML markup or other directives. - * - * Alternatively you could use the `NgbTab.title` input for string titles. - */ -export class NgbTabTitle { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbTabTitle.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbTabTitle]' },] } -]; -/** @nocollapse */ -NgbTabTitle.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbTabTitle.prototype.templateRef; -} -/** - * A directive to wrap content to be displayed in a tab. - */ -export class NgbTabContent { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbTabContent.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbTabContent]' },] } -]; -/** @nocollapse */ -NgbTabContent.ctorParameters = () => [ - { type: TemplateRef } -]; -if (false) { - /** @type {?} */ - NgbTabContent.prototype.templateRef; -} -/** - * A directive representing an individual tab. - */ -export class NgbTab { - constructor() { - /** - * The tab identifier. - * - * Must be unique for the entire document for proper accessibility support. - */ - this.id = `ngb-tab-${nextId++}`; - /** - * If `true`, the current tab is disabled and can't be toggled. - */ - this.disabled = false; - } - /** - * @return {?} - */ - ngAfterContentChecked() { - // We are using @ContentChildren instead of @ContentChild as in the Angular version being used - // only @ContentChildren allows us to specify the {descendants: false} option. - // Without {descendants: false} we are hitting bugs described in: - // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240 - this.titleTpl = this.titleTpls.first; - this.contentTpl = this.contentTpls.first; - } -} -NgbTab.decorators = [ - { type: Directive, args: [{ selector: 'ngb-tab' },] } -]; -NgbTab.propDecorators = { - id: [{ type: Input }], - title: [{ type: Input }], - disabled: [{ type: Input }], - titleTpls: [{ type: ContentChildren, args: [NgbTabTitle, { descendants: false },] }], - contentTpls: [{ type: ContentChildren, args: [NgbTabContent, { descendants: false },] }] -}; -if (false) { - /** - * The tab identifier. - * - * Must be unique for the entire document for proper accessibility support. - * @type {?} - */ - NgbTab.prototype.id; - /** - * The tab title. - * - * Use the [`NgbTabTitle`](#/components/tabset/api#NgbTabTitle) directive for non-string titles. - * @type {?} - */ - NgbTab.prototype.title; - /** - * If `true`, the current tab is disabled and can't be toggled. - * @type {?} - */ - NgbTab.prototype.disabled; - /** @type {?} */ - NgbTab.prototype.titleTpl; - /** @type {?} */ - NgbTab.prototype.contentTpl; - /** @type {?} */ - NgbTab.prototype.titleTpls; - /** @type {?} */ - NgbTab.prototype.contentTpls; -} -/** - * The payload of the change event fired right before the tab change. - * @record - */ -export function NgbTabChangeEvent() { } -if (false) { - /** - * The id of the currently active tab. - * @type {?} - */ - NgbTabChangeEvent.prototype.activeId; - /** - * The id of the newly selected tab. - * @type {?} - */ - NgbTabChangeEvent.prototype.nextId; - /** - * Calling this function will prevent tab switching. - * @type {?} - */ - NgbTabChangeEvent.prototype.preventDefault; -} -/** - * A component that makes it easy to create tabbed interface. - */ -export class NgbTabset { - /** - * @param {?} config - */ - constructor(config) { - /** - * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden. - */ - this.destroyOnHide = true; - /** - * A tab change event emitted right before the tab change happens. - * - * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details. - */ - this.tabChange = new EventEmitter(); - this.type = config.type; - this.justify = config.justify; - this.orientation = config.orientation; - } - /** - * The horizontal alignment of the tabs with flexbox utilities. - * @param {?} className - * @return {?} - */ - set justify(className) { - if (className === 'fill' || className === 'justified') { - this.justifyClass = `nav-${className}`; - } - else { - this.justifyClass = `justify-content-${className}`; - } - } - /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - * @param {?} tabId - * @return {?} - */ - select(tabId) { - /** @type {?} */ - let selectedTab = this._getTabById(tabId); - if (selectedTab && !selectedTab.disabled && this.activeId !== selectedTab.id) { - /** @type {?} */ - let defaultPrevented = false; - this.tabChange.emit({ activeId: this.activeId, nextId: selectedTab.id, preventDefault: (/** - * @return {?} - */ - () => { defaultPrevented = true; }) }); - if (!defaultPrevented) { - this.activeId = selectedTab.id; - } - } - } - /** - * @return {?} - */ - ngAfterContentChecked() { - // auto-correct activeId that might have been set incorrectly as input - /** @type {?} */ - let activeTab = this._getTabById(this.activeId); - this.activeId = activeTab ? activeTab.id : (this.tabs.length ? this.tabs.first.id : null); - } - /** - * @private - * @param {?} id - * @return {?} - */ - _getTabById(id) { - /** @type {?} */ - let tabsWithId = this.tabs.filter((/** - * @param {?} tab - * @return {?} - */ - tab => tab.id === id)); - return tabsWithId.length ? tabsWithId[0] : null; - } -} -NgbTabset.decorators = [ - { type: Component, args: [{ - selector: 'ngb-tabset', - exportAs: 'ngbTabset', - template: ` - -
- -
- -
-
-
- ` - }] } -]; -/** @nocollapse */ -NgbTabset.ctorParameters = () => [ - { type: NgbTabsetConfig } -]; -NgbTabset.propDecorators = { - tabs: [{ type: ContentChildren, args: [NgbTab,] }], - activeId: [{ type: Input }], - destroyOnHide: [{ type: Input }], - justify: [{ type: Input }], - orientation: [{ type: Input }], - type: [{ type: Input }], - tabChange: [{ type: Output }] -}; -if (false) { - /** @type {?} */ - NgbTabset.prototype.justifyClass; - /** @type {?} */ - NgbTabset.prototype.tabs; - /** - * The identifier of the tab that should be opened **initially**. - * - * For subsequent tab switches use the `.select()` method and the `(tabChange)` event. - * @type {?} - */ - NgbTabset.prototype.activeId; - /** - * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden. - * @type {?} - */ - NgbTabset.prototype.destroyOnHide; - /** - * The orientation of the tabset. - * @type {?} - */ - NgbTabset.prototype.orientation; - /** - * Type of navigation to be used for tabs. - * - * Currently Bootstrap supports only `"tabs"` and `"pills"`. - * - * Since `3.0.0` can also be an arbitrary string (ex. for custom themes). - * @type {?} - */ - NgbTabset.prototype.type; - /** - * A tab change event emitted right before the tab change happens. - * - * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details. - * @type {?} - */ - NgbTabset.prototype.tabChange; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFic2V0LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidGFic2V0L3RhYnNldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBQ0wsZUFBZSxFQUNmLFNBQVMsRUFDVCxTQUFTLEVBQ1QsV0FBVyxFQUVYLE1BQU0sRUFDTixZQUFZLEVBQ2IsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLGVBQWUsRUFBQyxNQUFNLGlCQUFpQixDQUFDOztJQUU1QyxNQUFNLEdBQUcsQ0FBQzs7Ozs7O0FBUWQsTUFBTSxPQUFPLFdBQVc7Ozs7SUFDdEIsWUFBbUIsV0FBNkI7UUFBN0IsZ0JBQVcsR0FBWCxXQUFXLENBQWtCO0lBQUcsQ0FBQzs7O1lBRnJELFNBQVMsU0FBQyxFQUFDLFFBQVEsRUFBRSwwQkFBMEIsRUFBQzs7OztZQWQvQyxXQUFXOzs7O0lBZ0JDLGtDQUFvQzs7Ozs7QUFPbEQsTUFBTSxPQUFPLGFBQWE7Ozs7SUFDeEIsWUFBbUIsV0FBNkI7UUFBN0IsZ0JBQVcsR0FBWCxXQUFXLENBQWtCO0lBQUcsQ0FBQzs7O1lBRnJELFNBQVMsU0FBQyxFQUFDLFFBQVEsRUFBRSw0QkFBNEIsRUFBQzs7OztZQXRCakQsV0FBVzs7OztJQXdCQyxvQ0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IgPSB0aGlzLl9nZXRUYWJCeUlkKHRoaXMuYWN0aXZlSWQpO1xuICAgIHRoaXMuYWN0aXZlSWQgPSBhY3RpdmVUYWIgPyBhY3RpdmVUYWIuaWQgOiAodGhpcy50YWJzLmxlbmd0aCA/IHRoaXMudGFicy5maXJzdC5pZCA6IG51bGwpO1xuICB9XG5cbiAgcHJpdmF0ZSBfZ2V0VGFiQnlJZChpZDogc3RyaW5nKTogTmdiVGFiIHtcbiAgICBsZXQgdGFic1dpdGhJZDogTmdiVGFiW10gPSB0aGlzLnRhYnMuZmlsdGVyKHRhYiA9PiB0YWIuaWQgPT09IGlkKTtcbiAgICByZXR1cm4gdGFic1dpdGhJZC5sZW5ndGggPyB0YWJzV2l0aElkWzBdIDogbnVsbDtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/tabset/tabset.module.js b/dist/ng-bootstrap/esm2015/tabset/tabset.module.js deleted file mode 100644 index 1b3b3b4..0000000 --- a/dist/ng-bootstrap/esm2015/tabset/tabset.module.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbTabset, NgbTab, NgbTabContent, NgbTabTitle } from './tabset'; -export { NgbTabset, NgbTab, NgbTabContent, NgbTabTitle } from './tabset'; -export { NgbTabsetConfig } from './tabset-config'; -/** @type {?} */ -const NGB_TABSET_DIRECTIVES = [NgbTabset, NgbTab, NgbTabContent, NgbTabTitle]; -export class NgbTabsetModule { -} -NgbTabsetModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_TABSET_DIRECTIVES, exports: NGB_TABSET_DIRECTIVES, imports: [CommonModule] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFic2V0Lm1vZHVsZS5qcyIsInNvdXJjZVJ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udGVudCwgTmdiVGFiVGl0bGUsIE5nYlRhYkNoYW5nZUV2ZW50fSBmcm9tICcuL3RhYnNldCc7XG5leHBvcnQge05nYlRhYnNldENvbmZpZ30gZnJvbSAnLi90YWJzZXQtY29uZmlnJztcblxuY29uc3QgTkdCX1RBQlNFVF9ESVJFQ1RJVkVTID0gW05nYlRhYnNldCwgTmdiVGFiLCBOZ2JUYWJDb250ZW50LCBOZ2JUYWJUaXRsZV07XG5cbkBOZ01vZHVsZSh7ZGVjbGFyYXRpb25zOiBOR0JfVEFCU0VUX0RJUkVDVElWRVMsIGV4cG9ydHM6IE5HQl9UQUJTRVRfRElSRUNUSVZFUywgaW1wb3J0czogW0NvbW1vbk1vZHVsZV19KVxuZXhwb3J0IGNsYXNzIE5nYlRhYnNldE1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/timepicker/ngb-time-adapter.js b/dist/ng-bootstrap/esm2015/timepicker/ngb-time-adapter.js deleted file mode 100644 index 2f3ccf9..0000000 --- a/dist/ng-bootstrap/esm2015/timepicker/ngb-time-adapter.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import { isInteger } from '../util/util'; -import * as i0 from "@angular/core"; -/** - * @return {?} - */ -export function NGB_DATEPICKER_TIME_ADAPTER_FACTORY() { - return new NgbTimeStructAdapter(); -} -/** - * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and - * any provided user time model `T`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding timepicker to a form control, - * ex. `[(ngModel)]="userTimeModel"`. Here `userTimeModel` can be of any type. - * - * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model. - * - * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example. - * - * \@since 2.2.0 - * @abstract - * @template T - */ -export class NgbTimeAdapter { -} -NgbTimeAdapter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY },] } -]; -/** @nocollapse */ NgbTimeAdapter.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY, token: NgbTimeAdapter, providedIn: "root" }); -if (false) { - /** - * Converts a user-model time of type `T` to an `NgbTimeStruct` for internal use. - * @abstract - * @param {?} value - * @return {?} - */ - NgbTimeAdapter.prototype.fromModel = function (value) { }; - /** - * Converts an internal `NgbTimeStruct` time to a user-model time of type `T`. - * @abstract - * @param {?} time - * @return {?} - */ - NgbTimeAdapter.prototype.toModel = function (time) { }; -} -export class NgbTimeStructAdapter extends NgbTimeAdapter { - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - fromModel(time) { - return (time && isInteger(time.hour) && isInteger(time.minute)) ? - { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } : - null; - } - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - toModel(time) { - return (time && isInteger(time.hour) && isInteger(time.minute)) ? - { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } : - null; - } -} -NgbTimeStructAdapter.decorators = [ - { type: Injectable } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLXRpbWUtYWRhcHRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInRpbWVwaWNrZXIvbmdiLXRpbWUtYWRhcHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sY0FBYyxD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9kZWwodGltZTogTmdiVGltZVN0cnVjdCk6IE5nYlRpbWVTdHJ1Y3Qge1xuICAgIHJldHVybiAodGltZSAmJiBpc0ludGVnZXIodGltZS5ob3VyKSAmJiBpc0ludGVnZXIodGltZS5taW51dGUpKSA/XG4gICAgICAgIHtob3VyOiB0aW1lLmhvdXIsIG1pbnV0ZTogdGltZS5taW51dGUsIHNlY29uZDogaXNJbnRlZ2VyKHRpbWUuc2Vjb25kKSA/IHRpbWUuc2Vjb25kIDogbnVsbH0gOlxuICAgICAgICBudWxsO1xuICB9XG5cbiAgLyoqXG4gICAqIENvbnZlcnRzIGEgTmdiVGltZVN0cnVjdCB2YWx1ZSBpbnRvIE5nYlRpbWVTdHJ1Y3QgdmFsdWVcbiAgICovXG4gIHRvTW9kZWwodGltZTogTmdiVGltZVN0cnVjdCk6IE5nYlRpbWVTdHJ1Y3Qge1xuICAgIHJldHVybiAodGltZSAmJiBpc0ludGVnZXIodGltZS5ob3VyKSAmJiBpc0ludGVnZXIodGltZS5taW51dGUpKSA/XG4gICAgICAgIHtob3VyOiB0aW1lLmhvdXIsIG1pbnV0ZTogdGltZS5taW51dGUsIHNlY29uZDogaXNJbnRlZ2VyKHRpbWUuc2Vjb25kKSA/IHRpbWUuc2Vjb25kIDogbnVsbH0gOlxuICAgICAgICBudWxsO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/timepicker/ngb-time-struct.js b/dist/ng-bootstrap/esm2015/timepicker/ngb-time-struct.js deleted file mode 100644 index 3bdb2c7..0000000 --- a/dist/ng-bootstrap/esm2015/timepicker/ngb-time-struct.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * An interface for the time model used by the timepicker. - * @record - */ -export function NgbTimeStruct() { } -if (false) { - /** - * The hour in the `[0, 23]` range. - * @type {?} - */ - NgbTimeStruct.prototype.hour; - /** - * The minute in the `[0, 59]` range. - * @type {?} - */ - NgbTimeStruct.prototype.minute; - /** - * The second in the `[0, 59]` range. - * @type {?} - */ - NgbTimeStruct.prototype.second; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLXRpbWUtc3RydWN0LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidGltZXBpY2tlci9uZ2ItdGltZS1zdHJ1Y3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFHQSxtQ0FlQzs7Ozs7O0lBWEMsNkJBQWE7Ozs7O0lBS2IsK0JBQWU7Ozs7O0lBS2YsK0JBQWUiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEFuIGludGVyZmFjZSBmb3IgdGhlIHRpbWUgbW9kZWwgdXNlZCBieSB0aGUgdGltZXBpY2tlci5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBOZ2JUaW1lU3RydWN0IHtcbiAgLyoqXG4gICAqIFRoZSBob3VyIGluIHRoZSBgWzAsIDIzXWAgcmFuZ2UuXG4gICAqL1xuICBob3VyOiBudW1iZXI7XG5cbiAgLyoqXG4gICAqIFRoZSBtaW51dGUgaW4gdGhlIGBbMCwgNTldYCByYW5nZS5cbiAgICovXG4gIG1pbnV0ZTogbnVtYmVyO1xuXG4gIC8qKlxuICAgKiBUaGUgc2Vjb25kIGluIHRoZSBgWzAsIDU5XWAgcmFuZ2UuXG4gICAqL1xuICBzZWNvbmQ6IG51bWJlcjtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/timepicker/ngb-time.js b/dist/ng-bootstrap/esm2015/timepicker/ngb-time.js deleted file mode 100644 index a4da703..0000000 --- a/dist/ng-bootstrap/esm2015/timepicker/ngb-time.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { isNumber, toInteger } from '../util/util'; -export class NgbTime { - /** - * @param {?=} hour - * @param {?=} minute - * @param {?=} second - */ - constructor(hour, minute, second) { - this.hour = toInteger(hour); - this.minute = toInteger(minute); - this.second = toInteger(second); - } - /** - * @param {?=} step - * @return {?} - */ - changeHour(step = 1) { this.updateHour((isNaN(this.hour) ? 0 : this.hour) + step); } - /** - * @param {?} hour - * @return {?} - */ - updateHour(hour) { - if (isNumber(hour)) { - this.hour = (hour < 0 ? 24 + hour : hour) % 24; - } - else { - this.hour = NaN; - } - } - /** - * @param {?=} step - * @return {?} - */ - changeMinute(step = 1) { this.updateMinute((isNaN(this.minute) ? 0 : this.minute) + step); } - /** - * @param {?} minute - * @return {?} - */ - updateMinute(minute) { - if (isNumber(minute)) { - this.minute = minute % 60 < 0 ? 60 + minute % 60 : minute % 60; - this.changeHour(Math.floor(minute / 60)); - } - else { - this.minute = NaN; - } - } - /** - * @param {?=} step - * @return {?} - */ - changeSecond(step = 1) { this.updateSecond((isNaN(this.second) ? 0 : this.second) + step); } - /** - * @param {?} second - * @return {?} - */ - updateSecond(second) { - if (isNumber(second)) { - this.second = second < 0 ? 60 + second % 60 : second % 60; - this.changeMinute(Math.floor(second / 60)); - } - else { - this.second = NaN; - } - } - /** - * @param {?=} checkSecs - * @return {?} - */ - isValid(checkSecs = true) { - return isNumber(this.hour) && isNumber(this.minute) && (checkSecs ? isNumber(this.second) : true); - } - /** - * @return {?} - */ - toString() { return `${this.hour || 0}:${this.minute || 0}:${this.second || 0}`; } -} -if (false) { - /** @type {?} */ - NgbTime.prototype.hour; - /** @type {?} */ - NgbTime.prototype.minute; - /** @type {?} */ - NgbTime.prototype.second; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLXRpbWUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9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B0aGlzLnNlY29uZCkgKyBzdGVwKTsgfVxuXG4gIHVwZGF0ZVNlY29uZChzZWNvbmQ6IG51bWJlcikge1xuICAgIGlmIChpc051bWJlcihzZWNvbmQpKSB7XG4gICAgICB0aGlzLnNlY29uZCA9IHNlY29uZCA8IDAgPyA2MCArIHNlY29uZCAlIDYwIDogc2Vjb25kICUgNjA7XG4gICAgICB0aGlzLmNoYW5nZU1pbnV0ZShNYXRoLmZsb29yKHNlY29uZCAvIDYwKSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMuc2Vjb25kID0gTmFOO1xuICAgIH1cbiAgfVxuXG4gIGlzVmFsaWQoY2hlY2tTZWNzID0gdHJ1ZSkge1xuICAgIHJldHVybiBpc051bWJlcih0aGlzLmhvdXIpICYmIGlzTnVtYmVyKHRoaXMubWludXRlKSAmJiAoY2hlY2tTZWNzID8gaXNOdW1iZXIodGhpcy5zZWNvbmQpIDogdHJ1ZSk7XG4gIH1cblxuICB0b1N0cmluZygpIHsgcmV0dXJuIGAke3RoaXMuaG91ciB8fCAwfToke3RoaXMubWludXRlIHx8IDB9OiR7dGhpcy5zZWNvbmQgfHwgMH1gOyB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/timepicker/timepicker-config.js b/dist/ng-bootstrap/esm2015/timepicker/timepicker-config.js deleted file mode 100644 index 21ed430..0000000 --- a/dist/ng-bootstrap/esm2015/timepicker/timepicker-config.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the timepickers used in the application. - */ -export class NgbTimepickerConfig { - constructor() { - this.meridian = false; - this.spinners = true; - this.seconds = false; - this.hourStep = 1; - this.minuteStep = 1; - this.secondStep = 1; - this.disabled = false; - this.readonlyInputs = false; - this.size = 'medium'; - } -} -NgbTimepickerConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbTimepickerConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbTimepickerConfig_Factory() { return new NgbTimepickerConfig(); }, token: NgbTimepickerConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbTimepickerConfig.prototype.meridian; - /** @type {?} */ - NgbTimepickerConfig.prototype.spinners; - /** @type {?} */ - NgbTimepickerConfig.prototype.seconds; - /** @type {?} */ - NgbTimepickerConfig.prototype.hourStep; - /** @type {?} */ - NgbTimepickerConfig.prototype.minuteStep; - /** @type {?} */ - NgbTimepickerConfig.prototype.secondStep; - /** @type {?} */ - NgbTimepickerConfig.prototype.disabled; - /** @type {?} */ - NgbTimepickerConfig.prototype.readonlyInputs; - /** @type {?} */ - NgbTimepickerConfig.prototype.size; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ0aW1lcGlja2VyL3RpbWVwaWNrZXItY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QyxNQUFNLE9BQU8sbUJBQW1CO0lBRGhDO1FBRUUsYUFBUSxHQUFHLEtBQUssQ0FBQztRQUNqQixhQUFRLEdBQUcsSUFBSSxDQUFDO1FBQ2hCLFlBQU8sR0FBRyxLQUFLLENBQUM7UUFDaEIsYUFBUSxHQUFHLENBQUMsQ0FBQztRQUNiLGVBQVUsR0FBRyxDQUFDLENBQ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VyU3RlcCA9IDE7XG4gIG1pbnV0ZVN0ZXAgPSAxO1xuICBzZWNvbmRTdGVwID0gMTtcbiAgZGlzYWJsZWQgPSBmYWxzZTtcbiAgcmVhZG9ubHlJbnB1dHMgPSBmYWxzZTtcbiAgc2l6ZTogJ3NtYWxsJyB8ICdtZWRpdW0nIHwgJ2xhcmdlJyA9ICdtZWRpdW0nO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/timepicker/timepicker-i18n.js b/dist/ng-bootstrap/esm2015/timepicker/timepicker-i18n.js deleted file mode 100644 index a4da349..0000000 --- a/dist/ng-bootstrap/esm2015/timepicker/timepicker-i18n.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Inject, Injectable, LOCALE_ID } from '@angular/core'; -import { FormStyle, getLocaleDayPeriods, TranslationWidth } from '@angular/common'; -import * as i0 from "@angular/core"; -/** - * @param {?} locale - * @return {?} - */ -export function NGB_TIMEPICKER_I18N_FACTORY(locale) { - return new NgbTimepickerI18nDefault(locale); -} -/** - * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component. - * The default implementation of this service honors the Angular locale, and uses the registered locale data, - * as explained in the Angular i18n guide. - * @abstract - */ -export class NgbTimepickerI18n { -} -NgbTimepickerI18n.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_TIMEPICKER_I18N_FACTORY, deps: [LOCALE_ID] },] } -]; -/** @nocollapse */ NgbTimepickerI18n.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbTimepickerI18n_Factory() { return NGB_TIMEPICKER_I18N_FACTORY(i0.ɵɵinject(i0.LOCALE_ID)); }, token: NgbTimepickerI18n, providedIn: "root" }); -if (false) { - /** - * Returns the name for the period before midday. - * @abstract - * @return {?} - */ - NgbTimepickerI18n.prototype.getMorningPeriod = function () { }; - /** - * Returns the name for the period after midday. - * @abstract - * @return {?} - */ - NgbTimepickerI18n.prototype.getAfternoonPeriod = function () { }; -} -export class NgbTimepickerI18nDefault extends NgbTimepickerI18n { - /** - * @param {?} locale - */ - constructor(locale) { - super(); - this._periods = getLocaleDayPeriods(locale, FormStyle.Standalone, TranslationWidth.Narrow); - } - /** - * @return {?} - */ - getMorningPeriod() { return this._periods[0]; } - /** - * @return {?} - */ - getAfternoonPeriod() { return this._periods[1]; } -} -NgbTimepickerI18nDefault.decorators = [ - { type: Injectable } -]; -/** @nocollapse */ -NgbTimepickerI18nDefault.ctorParameters = () => [ - { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } -]; -if (false) { - /** - * @type {?} - * @private - */ - NgbTimepickerI18nDefault.prototype._periods; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci1pMThuLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidGltZXBpY2tlci90aW1lcGlja2VyLWkxOG4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxNQUFNLEVBQUUsVUFBVSxFQUFFLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUM1RCxPQUFPLEVBQUMsU0FBUyxFQUFFLG1CQUFtQixFQUFFLGdCQUFnQixFQUFDLE1BQU0saUJBQWlCLENBQUM7Ozs7OztBQUVqRixNQUFNLFVBQVUsMkJBQTJCLENBQUMsTUFBTTtJQUNoRCxPQUFPLElBQUksd0JBQXdCLENBQUMsTUFBTSxDQUFDLENBQUM7QUFDOUMsQ0FBQzs7Ozs7OztBQVFELE1BQU0sT0FBZ0IsaUJBQWlCOzs7WUFEdEMsVUFBVSxTQUFDLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsMkJBQTJCL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gRm9ybVN0eWxlLlN0YW5kYWxvbmUsIFRyYW5zbGF0aW9uV2lkdGguTmFycm93KTtcbiAgfVxuXG4gIGdldE1vcm5pbmdQZXJpb2QoKTogc3RyaW5nIHsgcmV0dXJuIHRoaXMuX3BlcmlvZHNbMF07IH1cblxuICBnZXRBZnRlcm5vb25QZXJpb2QoKTogc3RyaW5nIHsgcmV0dXJuIHRoaXMuX3BlcmlvZHNbMV07IH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/timepicker/timepicker.js b/dist/ng-bootstrap/esm2015/timepicker/timepicker.js deleted file mode 100644 index ed2c139..0000000 --- a/dist/ng-bootstrap/esm2015/timepicker/timepicker.js +++ /dev/null @@ -1,410 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, Component, forwardRef, Input, ViewEncapsulation } from '@angular/core'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -import { isInteger, isNumber, padNumber, toInteger } from '../util/util'; -import { NgbTime } from './ngb-time'; -import { NgbTimepickerConfig } from './timepicker-config'; -import { NgbTimeAdapter } from './ngb-time-adapter'; -import { NgbTimepickerI18n } from './timepicker-i18n'; -/** @type {?} */ -const NGB_TIMEPICKER_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbTimepicker)), - multi: true -}; -/** - * A directive that helps with wth picking hours, minutes and seconds. - */ -export class NgbTimepicker { - /** - * @param {?} _config - * @param {?} _ngbTimeAdapter - * @param {?} _cd - * @param {?} i18n - */ - constructor(_config, _ngbTimeAdapter, _cd, i18n) { - this._config = _config; - this._ngbTimeAdapter = _ngbTimeAdapter; - this._cd = _cd; - this.i18n = i18n; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.onTouched = (/** - * @return {?} - */ - () => { }); - this.meridian = _config.meridian; - this.spinners = _config.spinners; - this.seconds = _config.seconds; - this.hourStep = _config.hourStep; - this.minuteStep = _config.minuteStep; - this.secondStep = _config.secondStep; - this.disabled = _config.disabled; - this.readonlyInputs = _config.readonlyInputs; - this.size = _config.size; - } - /** - * The number of hours to add/subtract when clicking hour spinners. - * @param {?} step - * @return {?} - */ - set hourStep(step) { - this._hourStep = isInteger(step) ? step : this._config.hourStep; - } - /** - * @return {?} - */ - get hourStep() { return this._hourStep; } - /** - * The number of minutes to add/subtract when clicking minute spinners. - * @param {?} step - * @return {?} - */ - set minuteStep(step) { - this._minuteStep = isInteger(step) ? step : this._config.minuteStep; - } - /** - * @return {?} - */ - get minuteStep() { return this._minuteStep; } - /** - * The number of seconds to add/subtract when clicking second spinners. - * @param {?} step - * @return {?} - */ - set secondStep(step) { - this._secondStep = isInteger(step) ? step : this._config.secondStep; - } - /** - * @return {?} - */ - get secondStep() { return this._secondStep; } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - /** @type {?} */ - const structValue = this._ngbTimeAdapter.fromModel(value); - this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime(); - if (!this.seconds && (!structValue || !isNumber(structValue.second))) { - this.model.second = 0; - } - this._cd.markForCheck(); - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this.onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this.onTouched = fn; } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { this.disabled = isDisabled; } - /** - * @param {?} step - * @return {?} - */ - changeHour(step) { - this.model.changeHour(step); - this.propagateModelChange(); - } - /** - * @param {?} step - * @return {?} - */ - changeMinute(step) { - this.model.changeMinute(step); - this.propagateModelChange(); - } - /** - * @param {?} step - * @return {?} - */ - changeSecond(step) { - this.model.changeSecond(step); - this.propagateModelChange(); - } - /** - * @param {?} newVal - * @return {?} - */ - updateHour(newVal) { - /** @type {?} */ - const isPM = this.model.hour >= 12; - /** @type {?} */ - const enteredHour = toInteger(newVal); - if (this.meridian && (isPM && enteredHour < 12 || !isPM && enteredHour === 12)) { - this.model.updateHour(enteredHour + 12); - } - else { - this.model.updateHour(enteredHour); - } - this.propagateModelChange(); - } - /** - * @param {?} newVal - * @return {?} - */ - updateMinute(newVal) { - this.model.updateMinute(toInteger(newVal)); - this.propagateModelChange(); - } - /** - * @param {?} newVal - * @return {?} - */ - updateSecond(newVal) { - this.model.updateSecond(toInteger(newVal)); - this.propagateModelChange(); - } - /** - * @return {?} - */ - toggleMeridian() { - if (this.meridian) { - this.changeHour(12); - } - } - /** - * @param {?} value - * @return {?} - */ - formatHour(value) { - if (isNumber(value)) { - if (this.meridian) { - return padNumber(value % 12 === 0 ? 12 : value % 12); - } - else { - return padNumber(value % 24); - } - } - else { - return padNumber(NaN); - } - } - /** - * @param {?} value - * @return {?} - */ - formatMinSec(value) { return padNumber(value); } - /** - * @return {?} - */ - get isSmallSize() { return this.size === 'small'; } - /** - * @return {?} - */ - get isLargeSize() { return this.size === 'large'; } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) { - this.model.second = 0; - this.propagateModelChange(false); - } - } - /** - * @private - * @param {?=} touched - * @return {?} - */ - propagateModelChange(touched = true) { - if (touched) { - this.onTouched(); - } - if (this.model.isValid(this.seconds)) { - this.onChange(this._ngbTimeAdapter.toModel({ hour: this.model.hour, minute: this.model.minute, second: this.model.second })); - } - else { - this.onChange(this._ngbTimeAdapter.toModel(null)); - } - } -} -NgbTimepicker.decorators = [ - { type: Component, args: [{ - selector: 'ngb-timepicker', - encapsulation: ViewEncapsulation.None, - template: ` -
-
-
- - - -
-
:
-
- - - -
-
:
-
- - - -
-
-
- -
-
-
- `, - providers: [NGB_TIMEPICKER_VALUE_ACCESSOR], - styles: ["ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:\"\";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}"] - }] } -]; -/** @nocollapse */ -NgbTimepicker.ctorParameters = () => [ - { type: NgbTimepickerConfig }, - { type: NgbTimeAdapter }, - { type: ChangeDetectorRef }, - { type: NgbTimepickerI18n } -]; -NgbTimepicker.propDecorators = { - meridian: [{ type: Input }], - spinners: [{ type: Input }], - seconds: [{ type: Input }], - hourStep: [{ type: Input }], - minuteStep: [{ type: Input }], - secondStep: [{ type: Input }], - readonlyInputs: [{ type: Input }], - size: [{ type: Input }] -}; -if (false) { - /** @type {?} */ - NgbTimepicker.prototype.disabled; - /** @type {?} */ - NgbTimepicker.prototype.model; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._hourStep; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._minuteStep; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._secondStep; - /** - * Whether to display 12H or 24H mode. - * @type {?} - */ - NgbTimepicker.prototype.meridian; - /** - * If `true`, the spinners above and below inputs are visible. - * @type {?} - */ - NgbTimepicker.prototype.spinners; - /** - * If `true`, it is possible to select seconds. - * @type {?} - */ - NgbTimepicker.prototype.seconds; - /** - * If `true`, the timepicker is readonly and can't be changed. - * @type {?} - */ - NgbTimepicker.prototype.readonlyInputs; - /** - * The size of inputs and buttons. - * @type {?} - */ - NgbTimepicker.prototype.size; - /** @type {?} */ - NgbTimepicker.prototype.onChange; - /** @type {?} */ - NgbTimepicker.prototype.onTouched; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._config; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._ngbTimeAdapter; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._cd; - /** @type {?} */ - NgbTimepicker.prototype.i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInRpbWVwaWNrZXIvdGltZXBpY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsVUFBVSxFQUNWLEtBQUssRUFHTCxpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUF1QixpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBRXZFLE9BQU8sRUFBQyxTQUFTLEVBQUUsUUFBUSxFQUFFLFNBQVMsRUFBRSxTQUFTLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFDdkUsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLFlBQVksQ0FBQztBQUNuQyxPQUFPLEVBQUMsbUJBQW1CLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUN4RCxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sb0JBQW9CLENBQUM7QUFDbEQsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sbUJBQW1CLENBQUM7O01BRTlDLDZCQUE2QixHQUFHO0lBQ3BDLE9BQU8sRUFBRSxpQkFBaUI7SUFDMUIsV0FBVyxFQUFFLFVBQVU7OztJQUFDLEdBQUcsRUFBRSxDQUFDLGFBQWEsRUFBQztJQUM1QyxLQUFLLEVBQUU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ZHMgJiYgdGhpcy5tb2RlbCAmJiAhaXNOdW1iZXIodGhpcy5tb2RlbC5zZWNvbmQpKSB7XG4gICAgICB0aGlzLm1vZGVsLnNlY29uZCA9IDA7XG4gICAgICB0aGlzLnByb3BhZ2F0ZU1vZGVsQ2hhbmdlKGZhbHNlKTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIHByb3BhZ2F0ZU1vZGVsQ2hhbmdlKHRvdWNoZWQgPSB0cnVlKSB7XG4gICAgaWYgKHRvdWNoZWQpIHtcbiAgICAgIHRoaXMub25Ub3VjaGVkKCk7XG4gICAgfVxuICAgIGlmICh0aGlzLm1vZGVsLmlzVmFsaWQodGhpcy5zZWNvbmRzKSkge1xuICAgICAgdGhpcy5vbkNoYW5nZShcbiAgICAgICAgICB0aGlzLl9uZ2JUaW1lQWRhcHRlci50b01vZGVsKHtob3VyOiB0aGlzLm1vZGVsLmhvdXIsIG1pbnV0ZTogdGhpcy5tb2RlbC5taW51dGUsIHNlY29uZDogdGhpcy5tb2RlbC5zZWNvbmR9KSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMub25DaGFuZ2UodGhpcy5fbmdiVGltZUFkYXB0ZXIudG9Nb2RlbChudWxsKSk7XG4gICAgfVxuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/timepicker/timepicker.module.js b/dist/ng-bootstrap/esm2015/timepicker/timepicker.module.js deleted file mode 100644 index e7fdf48..0000000 --- a/dist/ng-bootstrap/esm2015/timepicker/timepicker.module.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbTimepicker } from './timepicker'; -export { NgbTimepicker } from './timepicker'; -export { NgbTimepickerConfig } from './timepicker-config'; -export { NgbTimeAdapter } from './ngb-time-adapter'; -export { NgbTimepickerI18n } from './timepicker-i18n'; -export class NgbTimepickerModule { -} -NgbTimepickerModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbTimepicker], exports: [NgbTimepicker], imports: [CommonModule] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ0aW1lcGlja2VyL3RpbWVwaWNrZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sY0FBYyxDQUFDO0FBRTNDLE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFDM0MsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFFeEQsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLG9CQUFvQixDQUFDO0FBQ2xELE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBR3BELE1BQU0sT0FBTyxtQkFBbUI7OztZQUQvQixRQUFRLFNBQUMsRUFBQyxZQUFZLEVBQUUsQ0FBQyxhQUFhLENBQUMsRUFBRSxPQUFPLEVBQUUsQ0FBQyxhQUFhLENBQUMsRUFBRSxPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUMsRUFBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtDb21tb25Nb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cbmltcG9ydCB7TmdiVGltZXBpY2tlcn0gZnJvbSAnLi90aW1lcGlja2VyJztcblxuZXhwb3J0IHtOZ2JUaW1lcGlja2VyfSBmcm9tICcuL3RpbWVwaWNrZXInO1xuZXhwb3J0IHtOZ2JUaW1lcGlja2VyQ29uZmlnfSBmcm9tICcuL3RpbWVwaWNrZXItY29uZmlnJztcbmV4cG9ydCB7TmdiVGltZVN0cnVjdH0gZnJvbSAnLi9uZ2ItdGltZS1zdHJ1Y3QnO1xuZXhwb3J0IHtOZ2JUaW1lQWRhcHRlcn0gZnJvbSAnLi9uZ2ItdGltZS1hZGFwdGVyJztcbmV4cG9ydCB7TmdiVGltZXBpY2tlckkxOG59IGZyb20gJy4vdGltZXBpY2tlci1pMThuJztcblxuQE5nTW9kdWxlKHtkZWNsYXJhdGlvbnM6IFtOZ2JUaW1lcGlja2VyXSwgZXhwb3J0czogW05nYlRpbWVwaWNrZXJdLCBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXX0pXG5leHBvcnQgY2xhc3MgTmdiVGltZXBpY2tlck1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/toast/toast-config.js b/dist/ng-bootstrap/esm2015/toast/toast-config.js deleted file mode 100644 index 4287ff0..0000000 --- a/dist/ng-bootstrap/esm2015/toast/toast-config.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * Interface used to type all toast config options. See `NgbToastConfig`. - * - * \@since 5.0.0 - * @record - */ -export function NgbToastOptions() { } -if (false) { - /** - * Specify if the toast component should emit the `hide()` output - * after a certain `delay` in ms. - * @type {?|undefined} - */ - NgbToastOptions.prototype.autohide; - /** - * Delay in ms after which the `hide()` output should be emitted. - * @type {?|undefined} - */ - NgbToastOptions.prototype.delay; - /** - * Type of aria-live attribute to be used. - * - * Could be one of these 2 values (as string): - * - `polite` (default) - * - `alert` - * @type {?|undefined} - */ - NgbToastOptions.prototype.ariaLive; -} -/** - * Configuration service for the NgbToast component. You can inject this service, typically in your root component, - * and customize the values of its properties in order to provide default values for all the toasts used in the - * application. - * - * \@since 5.0.0 - */ -export class NgbToastConfig { - constructor() { - this.autohide = true; - this.delay = 500; - this.ariaLive = 'polite'; - } -} -NgbToastConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbToastConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbToastConfig_Factory() { return new NgbToastConfig(); }, token: NgbToastConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbToastConfig.prototype.autohide; - /** @type {?} */ - NgbToastConfig.prototype.delay; - /** @type {?} */ - NgbToastConfig.prototype.ariaLive; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidG9hc3QvdG9hc3QtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQU96QyxxQ0FvQkM7Ozs7Ozs7SUFmQyxtQ0FBbUI7Ozs7O0lBS25CLGdDQUFlOzs7Ozs7Ozs7SUFTZixtQ0FBOEI7Ozs7Ozs7OztBQVdoQyxNQUFNLE9BQU8sY0FBYztJQUQzQjtRQUVFLGFBQVEsR0FBRyxJQUFJLENBQUM7UUFDaEIsVUFBSyxHQUFHLEdBQUcsQ0FBQztRQUNaLGFBQVEsR0FBdUIsUUFBUSxDQUFDO0tBQ3p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iBpbmplY3QgdGhpcyBzZXJ2aWNlLCB0eXBpY2FsbHkgaW4geW91ciByb290IGNvbXBvbmVudCxcbiAqIGFuZCBjdXN0b21pemUgdGhlIHZhbHVlcyBvZiBpdHMgcHJvcGVydGllcyBpbiBvcmRlciB0byBwcm92aWRlIGRlZmF1bHQgdmFsdWVzIGZvciBhbGwgdGhlIHRvYXN0cyB1c2VkIGluIHRoZVxuICogYXBwbGljYXRpb24uXG4gKlxuICogQHNpbmNlIDUuMC4wXG4gKi9cbkBJbmplY3RhYmxlKHtwcm92aWRlZEluOiAncm9vdCd9KVxuZXhwb3J0IGNsYXNzIE5nYlRvYXN0Q29uZmlnIGltcGxlbWVudHMgTmdiVG9hc3RPcHRpb25zIHtcbiAgYXV0b2hpZGUgPSB0cnVlO1xuICBkZWxheSA9IDUwMDtcbiAgYXJpYUxpdmU6ICdwb2xpdGUnIHwgJ2FsZXJ0JyA9ICdwb2xpdGUnO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/toast/toast.js b/dist/ng-bootstrap/esm2015/toast/toast.js deleted file mode 100644 index 0813a84..0000000 --- a/dist/ng-bootstrap/esm2015/toast/toast.js +++ /dev/null @@ -1,184 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Attribute, Component, ContentChild, Directive, EventEmitter, Input, Output, TemplateRef, ViewEncapsulation, } from '@angular/core'; -import { NgbToastConfig } from './toast-config'; -/** - * This directive allows the usage of HTML markup or other directives - * inside of the toast's header. - * - * \@since 5.0.0 - */ -export class NgbToastHeader { -} -NgbToastHeader.decorators = [ - { type: Directive, args: [{ selector: '[ngbToastHeader]' },] } -]; -/** - * Toasts provide feedback messages as notifications to the user. - * Goal is to mimic the push notifications available both on mobile and desktop operating systems. - * - * \@since 5.0.0 - */ -export class NgbToast { - /** - * @param {?} ariaLive - * @param {?} config - */ - constructor(ariaLive, config) { - this.ariaLive = ariaLive; - /** - * A template like `` can be - * used in the projected content to allow markup usage. - */ - this.contentHeaderTpl = null; - /** - * An event fired immediately when toast's `hide()` method has been called. - * It can only occur in 2 different scenarios: - * - `autohide` timeout fires - * - user clicks on a closing cross (×) - * - * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of - * that. - */ - this.hideOutput = new EventEmitter(); - if (this.ariaLive == null) { - this.ariaLive = config.ariaLive; - } - this.delay = config.delay; - this.autohide = config.autohide; - } - /** - * @return {?} - */ - ngAfterContentInit() { this._init(); } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - if ('autohide' in changes) { - this._clearTimeout(); - this._init(); - } - } - /** - * @return {?} - */ - hide() { - this._clearTimeout(); - this.hideOutput.emit(); - } - /** - * @private - * @return {?} - */ - _init() { - if (this.autohide && !this._timeoutID) { - this._timeoutID = setTimeout((/** - * @return {?} - */ - () => this.hide()), this.delay); - } - } - /** - * @private - * @return {?} - */ - _clearTimeout() { - if (this._timeoutID) { - clearTimeout(this._timeoutID); - this._timeoutID = null; - } - } -} -NgbToast.decorators = [ - { type: Component, args: [{ - selector: 'ngb-toast', - exportAs: 'ngbToast', - encapsulation: ViewEncapsulation.None, - host: { - 'role': 'alert', - '[attr.aria-live]': 'ariaLive', - 'aria-atomic': 'true', - '[class.toast]': 'true', - '[class.show]': 'true', - '[class.autohide]': 'autohide', - }, - template: ` - - {{header}} - - -
- - -
-
-
- -
- `, - styles: [".ngb-toasts{position:fixed;top:0;right:0;margin:.5em;z-index:1200}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}"] - }] } -]; -/** @nocollapse */ -NgbToast.ctorParameters = () => [ - { type: String, decorators: [{ type: Attribute, args: ['aria-live',] }] }, - { type: NgbToastConfig } -]; -NgbToast.propDecorators = { - delay: [{ type: Input }], - autohide: [{ type: Input }], - header: [{ type: Input }], - contentHeaderTpl: [{ type: ContentChild, args: [NgbToastHeader, { read: TemplateRef, static: true },] }], - hideOutput: [{ type: Output, args: ['hide',] }] -}; -if (false) { - /** - * @type {?} - * @private - */ - NgbToast.prototype._timeoutID; - /** - * Delay after which the toast will hide (ms). - * default: `500` (ms) (inherited from NgbToastConfig) - * @type {?} - */ - NgbToast.prototype.delay; - /** - * Auto hide the toast after a delay in ms. - * default: `true` (inherited from NgbToastConfig) - * @type {?} - */ - NgbToast.prototype.autohide; - /** - * Text to be used as toast's header. - * Ignored if a ContentChild template is specified at the same time. - * @type {?} - */ - NgbToast.prototype.header; - /** - * A template like `` can be - * used in the projected content to allow markup usage. - * @type {?} - */ - NgbToast.prototype.contentHeaderTpl; - /** - * An event fired immediately when toast's `hide()` method has been called. - * It can only occur in 2 different scenarios: - * - `autohide` timeout fires - * - user clicks on a closing cross (×) - * - * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of - * that. - * @type {?} - */ - NgbToast.prototype.hideOutput; - /** @type {?} */ - NgbToast.prototype.ariaLive; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ0b2FzdC90b2FzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUVMLFNBQVMsRUFDVCxTQUFTLEVBQ1QsWUFBWSxFQUNaLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUVMLE1BQU0sRUFFTixXQUFXLEVBQ1gsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQzs7Ozs7OztBQVM5QyxNQUFNLE9BQU8sY0FBYzs7O1lBRDFCLFNBQVMsU0FBQyxFQUFDLFFBQVEsRUFBRSxrQkFBa0IsRUFBQzs7Ozs7Ozs7QUF3Q3p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nZXMpIHtcbiAgICBpZiAoJ2F1dG9oaWRlJyBpbiBjaGFuZ2VzKSB7XG4gICAgICB0aGlzLl9jbGVhclRpbWVvdXQoKTtcbiAgICAgIHRoaXMuX2luaXQoKTtcbiAgICB9XG4gIH1cblxuICBoaWRlKCkge1xuICAgIHRoaXMuX2NsZWFyVGltZW91dCgpO1xuICAgIHRoaXMuaGlkZU91dHB1dC5lbWl0KCk7XG4gIH1cblxuICBwcml2YXRlIF9pbml0KCkge1xuICAgIGlmICh0aGlzLmF1dG9oaWRlICYmICF0aGlzLl90aW1lb3V0SUQpIHtcbiAgICAgIHRoaXMuX3RpbWVvdXRJRCA9IHNldFRpbWVvdXQoKCkgPT4gdGhpcy5oaWRlKCksIHRoaXMuZGVsYXkpO1xuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgX2NsZWFyVGltZW91dCgpIHtcbiAgICBpZiAodGhpcy5fdGltZW91dElEKSB7XG4gICAgICBjbGVhclRpbWVvdXQodGhpcy5fdGltZW91dElEKTtcbiAgICAgIHRoaXMuX3RpbWVvdXRJRCA9IG51bGw7XG4gICAgfVxuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/toast/toast.module.js b/dist/ng-bootstrap/esm2015/toast/toast.module.js deleted file mode 100644 index 132e2c1..0000000 --- a/dist/ng-bootstrap/esm2015/toast/toast.module.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { CommonModule } from '@angular/common'; -import { NgModule } from '@angular/core'; -import { NgbToast, NgbToastHeader } from './toast'; -export { NgbToast, NgbToastHeader } from './toast'; -export { NgbToastConfig } from './toast-config'; -export class NgbToastModule { -} -NgbToastModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbToast, NgbToastHeader], imports: [CommonModule], exports: [NgbToast, NgbToastHeader] },] } -]; -//# sourceMappingURL=data:application/json;base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Rpb25zfSBmcm9tICcuL3RvYXN0LWNvbmZpZyc7XG5cbkBOZ01vZHVsZSh7ZGVjbGFyYXRpb25zOiBbTmdiVG9hc3QsIE5nYlRvYXN0SGVhZGVyXSwgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sIGV4cG9ydHM6IFtOZ2JUb2FzdCwgTmdiVG9hc3RIZWFkZXJdfSlcbmV4cG9ydCBjbGFzcyBOZ2JUb2FzdE1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/tooltip/tooltip-config.js b/dist/ng-bootstrap/esm2015/tooltip/tooltip-config.js deleted file mode 100644 index 3de5fbe..0000000 --- a/dist/ng-bootstrap/esm2015/tooltip/tooltip-config.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tooltips used in the application. - */ -export class NgbTooltipConfig { - constructor() { - this.autoClose = true; - this.placement = 'auto'; - this.triggers = 'hover focus'; - this.disableTooltip = false; - this.openDelay = 0; - this.closeDelay = 0; - } -} -NgbTooltipConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbTooltipConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbTooltipConfig_Factory() { return new NgbTooltipConfig(); }, token: NgbTooltipConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbTooltipConfig.prototype.autoClose; - /** @type {?} */ - NgbTooltipConfig.prototype.placement; - /** @type {?} */ - NgbTooltipConfig.prototype.triggers; - /** @type {?} */ - NgbTooltipConfig.prototype.container; - /** @type {?} */ - NgbTooltipConfig.prototype.disableTooltip; - /** @type {?} */ - NgbTooltipConfig.prototype.tooltipClass; - /** @type {?} */ - NgbTooltipConfig.prototype.openDelay; - /** @type {?} */ - NgbTooltipConfig.prototype.closeDelay; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ0b29sdGlwL3Rvb2x0aXAtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVV6QyxNQUFNLE9BQU8sZ0JBQWdCO0lBRDdCO1FBRUUsY0FBUyxHQUFtQyxJQUFJLENBQUM7UUFDakQsY0FBUyxHQUFtQixNQUFNLENBQUM7UUFDbkMsYUFBUSxHQUFHLGFBQWEsQ0FBQztRQUV6QixtQkFBYyxHQUFHLEtBQUssQ0FBQztRQUV2QixjQUFTLEdBQUcsQ0FBQyxDQUFDO1FBQ2QsZUFBVSxHQUFHLENBQUMsQ0FBQztLQUNoQjs7O1lBVkEsVUFBVSxTQUFDLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBQzs7Ozs7SUFFOUIscUNBQWlEOztJQUNqRCxxQ0FBbUM7O0lBQ25DLG9DQUF5Qjs7SUFDekIscUNBQWtCOztJQUNsQiwwQ0FBdUI7O0lBQ3ZCLHdDQUFxQjs7SUFDckIscUNBQWM7O0lBQ2Qsc0NBQWUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0luamVjdGFibGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtQbGFjZW1lbnRBcnJheX0gZnJvbSAnLi4vdXRpbC9wb3NpdGlvbmluZyc7XG5cbi8qKlxuICogQSBjb25maWd1cmF0aW9uIHNlcnZpY2UgZm9yIHRoZSBbYE5nYlRvb2x0aXBgXSgjL2NvbXBvbmVudHMvdG9vbHRpcC9hcGkjTmdiVG9vbHRpcCkgY29tcG9uZW50LlxuICpcbiAqIFlvdSBjYW4gaW5qZWN0IHRoaXMgc2VydmljZSwgdHlwaWNhbGx5IGluIHlvdXIgcm9vdCBjb21wb25lbnQsIGFuZCBjdXN0b21pemUgdGhlIHZhbHVlcyBvZiBpdHMgcHJvcGVydGllcyBpblxuICogb3JkZXIgdG8gcHJvdmlkZSBkZWZhdWx0IHZhbHVlcyBmb3IgYWxsIHRoZSB0b29sdGlwcyB1c2VkIGluIHRoZSBhcHBsaWNhdGlvbi5cbiAqL1xuQEluamVjdGFibGUoe3Byb3ZpZGVkSW46ICdyb290J30pXG5leHBvcnQgY2xhc3MgTmdiVG9vbHRpcENvbmZpZyB7XG4gIGF1dG9DbG9zZTogYm9vbGVhbiB8ICdpbnNpZGUnIHwgJ291dHNpZGUnID0gdHJ1ZTtcbiAgcGxhY2VtZW50OiBQbGFjZW1lbnRBcnJheSA9ICdhdXRvJztcbiAgdHJpZ2dlcnMgPSAnaG92ZXIgZm9jdXMnO1xuICBjb250YWluZXI6IHN0cmluZztcbiAgZGlzYWJsZVRvb2x0aXAgPSBmYWxzZTtcbiAgdG9vbHRpcENsYXNzOiBzdHJpbmc7XG4gIG9wZW5EZWxheSA9IDA7XG4gIGNsb3NlRGVsYXkgPSAwO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/tooltip/tooltip.js b/dist/ng-bootstrap/esm2015/tooltip/tooltip.js deleted file mode 100644 index 6ad3de7..0000000 --- a/dist/ng-bootstrap/esm2015/tooltip/tooltip.js +++ /dev/null @@ -1,362 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Directive, Input, Output, EventEmitter, ChangeDetectionStrategy, Inject, Injector, Renderer2, ElementRef, ViewContainerRef, ComponentFactoryResolver, NgZone, ViewEncapsulation, ChangeDetectorRef, ApplicationRef } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { listenToTriggers } from '../util/triggers'; -import { ngbAutoClose } from '../util/autoclose'; -import { positionElements } from '../util/positioning'; -import { PopupService } from '../util/popup'; -import { NgbTooltipConfig } from './tooltip-config'; -/** @type {?} */ -let nextId = 0; -export class NgbTooltipWindow { -} -NgbTooltipWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-tooltip-window', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { '[class]': '"tooltip show" + (tooltipClass ? " " + tooltipClass : "")', 'role': 'tooltip', '[id]': 'id' }, - template: `
`, - styles: ["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"] - }] } -]; -NgbTooltipWindow.propDecorators = { - id: [{ type: Input }], - tooltipClass: [{ type: Input }] -}; -if (false) { - /** @type {?} */ - NgbTooltipWindow.prototype.id; - /** @type {?} */ - NgbTooltipWindow.prototype.tooltipClass; -} -/** - * A lightweight and extensible directive for fancy tooltip creation. - */ -export class NgbTooltip { - /** - * @param {?} _elementRef - * @param {?} _renderer - * @param {?} injector - * @param {?} componentFactoryResolver - * @param {?} viewContainerRef - * @param {?} config - * @param {?} _ngZone - * @param {?} _document - * @param {?} _changeDetector - * @param {?} _applicationRef - */ - constructor(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, _applicationRef) { - this._elementRef = _elementRef; - this._renderer = _renderer; - this._ngZone = _ngZone; - this._document = _document; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - /** - * An event emitted when the tooltip is shown. Contains no payload. - */ - this.shown = new EventEmitter(); - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - this.hidden = new EventEmitter(); - this._ngbTooltipWindowId = `ngb-tooltip-${nextId++}`; - this.autoClose = config.autoClose; - this.placement = config.placement; - this.triggers = config.triggers; - this.container = config.container; - this.disableTooltip = config.disableTooltip; - this.tooltipClass = config.tooltipClass; - this.openDelay = config.openDelay; - this.closeDelay = config.closeDelay; - this._popupService = new PopupService(NgbTooltipWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - () => { - if (this._windowRef) { - positionElements(this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement, this.container === 'body', 'bs-tooltip'); - } - })); - } - /** - * The string content or a `TemplateRef` for the content to be displayed in the tooltip. - * - * If the content if falsy, the tooltip won't open. - * @param {?} value - * @return {?} - */ - set ngbTooltip(value) { - this._ngbTooltip = value; - if (!value && this._windowRef) { - this.close(); - } - } - /** - * @return {?} - */ - get ngbTooltip() { return this._ngbTooltip; } - /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - * @param {?=} context - * @return {?} - */ - open(context) { - if (!this._windowRef && this._ngbTooltip && !this.disableTooltip) { - this._windowRef = this._popupService.open(this._ngbTooltip, context); - this._windowRef.instance.tooltipClass = this.tooltipClass; - this._windowRef.instance.id = this._ngbTooltipWindowId; - this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbTooltipWindowId); - if (this.container === 'body') { - this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - // We need to detect changes, because we don't know where .open() might be called from. - // Ex. opening tooltip from one of lifecycle hooks that run after the CD - // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception - this._windowRef.changeDetectorRef.detectChanges(); - // We need to mark for check, because tooltip won't work inside the OnPush component. - // Ex. when we use expression like `{{ tooltip.isOpen() : 'opened' : 'closed' }}` - // inside the template of an OnPush component and we change the tooltip from - // open -> closed, the expression in question won't be updated unless we explicitly - // mark the parent component to be checked. - this._windowRef.changeDetectorRef.markForCheck(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - () => this.close()), this.hidden, [this._windowRef.location.nativeElement]); - this.shown.emit(); - } - } - /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - close() { - if (this._windowRef != null) { - this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby'); - this._popupService.close(); - this._windowRef = null; - this.hidden.emit(); - this._changeDetector.markForCheck(); - } - } - /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - toggle() { - if (this._windowRef) { - this.close(); - } - else { - this.open(); - } - } - /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - isOpen() { return this._windowRef != null; } - /** - * @return {?} - */ - ngOnInit() { - this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay); - } - /** - * @return {?} - */ - ngOnDestroy() { - this.close(); - // This check is needed as it might happen that ngOnDestroy is called before ngOnInit - // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199 - if (this._unregisterListenersFn) { - this._unregisterListenersFn(); - } - this._zoneSubscription.unsubscribe(); - } -} -NgbTooltip.decorators = [ - { type: Directive, args: [{ selector: '[ngbTooltip]', exportAs: 'ngbTooltip' },] } -]; -/** @nocollapse */ -NgbTooltip.ctorParameters = () => [ - { type: ElementRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: ViewContainerRef }, - { type: NgbTooltipConfig }, - { type: NgZone }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } -]; -NgbTooltip.propDecorators = { - autoClose: [{ type: Input }], - placement: [{ type: Input }], - triggers: [{ type: Input }], - container: [{ type: Input }], - disableTooltip: [{ type: Input }], - tooltipClass: [{ type: Input }], - openDelay: [{ type: Input }], - closeDelay: [{ type: Input }], - shown: [{ type: Output }], - hidden: [{ type: Output }], - ngbTooltip: [{ type: Input }] -}; -if (false) { - /** - * Indicates whether the tooltip should be closed on `Escape` key and inside/outside clicks: - * - * * `true` - closes on both outside and inside clicks as well as `Escape` presses - * * `false` - disables the autoClose feature (NB: triggers still apply) - * * `"inside"` - closes on inside clicks as well as Escape presses - * * `"outside"` - closes on outside clicks (sometimes also achievable through triggers) - * as well as `Escape` presses - * - * \@since 3.0.0 - * @type {?} - */ - NgbTooltip.prototype.autoClose; - /** - * The preferred placement of the tooltip. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"auto"` (same as the sequence above). - * - * Please see the [positioning overview](#/positioning) for more details. - * @type {?} - */ - NgbTooltip.prototype.placement; - /** - * Specifies events that should trigger the tooltip. - * - * Supports a space separated list of event names. - * For more details see the [triggers demo](#/components/tooltip/examples#triggers). - * @type {?} - */ - NgbTooltip.prototype.triggers; - /** - * A selector specifying the element the tooltip should be appended to. - * - * Currently only supports `"body"`. - * @type {?} - */ - NgbTooltip.prototype.container; - /** - * If `true`, tooltip is disabled and won't be displayed. - * - * \@since 1.1.0 - * @type {?} - */ - NgbTooltip.prototype.disableTooltip; - /** - * An optional class applied to the tooltip window element. - * - * \@since 3.2.0 - * @type {?} - */ - NgbTooltip.prototype.tooltipClass; - /** - * The opening delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * \@since 4.1.0 - * @type {?} - */ - NgbTooltip.prototype.openDelay; - /** - * The closing delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * \@since 4.1.0 - * @type {?} - */ - NgbTooltip.prototype.closeDelay; - /** - * An event emitted when the tooltip is shown. Contains no payload. - * @type {?} - */ - NgbTooltip.prototype.shown; - /** - * An event emitted when the popover is hidden. Contains no payload. - * @type {?} - */ - NgbTooltip.prototype.hidden; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._ngbTooltip; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._ngbTooltipWindowId; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._popupService; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._windowRef; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._unregisterListenersFn; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._zoneSubscription; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._elementRef; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._document; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._changeDetector; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._applicationRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInRvb2x0aXAvdG9vbHRpcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxT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uYmluZCh0aGlzKSwgK3RoaXMub3BlbkRlbGF5LCArdGhpcy5jbG9zZURlbGF5KTtcbiAgfVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIHRoaXMuY2xvc2UoKTtcbiAgICAvLyBUaGlzIGNoZWNrIGlzIG5lZWRlZCBhcyBpdCBtaWdodCBoYXBwZW4gdGhhdCBuZ09uRGVzdHJveSBpcyBjYWxsZWQgYmVmb3JlIG5nT25Jbml0XG4gICAgLy8gdW5kZXIgY2VydGFpbiBjb25kaXRpb25zLCBzZWU6IGh0dHBzOi8vZ2l0aHViLmNvbS9uZy1ib290c3RyYXAvbmctYm9vdHN0cmFwL2lzc3Vlcy8yMTk5XG4gICAgaWYgKHRoaXMuX3VucmVnaXN0ZXJMaXN0ZW5lcnNGbikge1xuICAgICAgdGhpcy5fdW5yZWdpc3Rlckxpc3RlbmVyc0ZuKCk7XG4gICAgfVxuICAgIHRoaXMuX3pvbmVTdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/tooltip/tooltip.module.js b/dist/ng-bootstrap/esm2015/tooltip/tooltip.module.js deleted file mode 100644 index f6148e9..0000000 --- a/dist/ng-bootstrap/esm2015/tooltip/tooltip.module.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbTooltip, NgbTooltipWindow } from './tooltip'; -export { NgbTooltipConfig } from './tooltip-config'; -export { NgbTooltip } from './tooltip'; -export class NgbTooltipModule { -} -NgbTooltipModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow] },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5tb2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Z2JUb29sdGlwXSwgZW50cnlDb21wb25lbnRzOiBbTmdiVG9vbHRpcFdpbmRvd119KVxuZXhwb3J0IGNsYXNzIE5nYlRvb2x0aXBNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/typeahead/highlight.js b/dist/ng-bootstrap/esm2015/typeahead/highlight.js deleted file mode 100644 index 3964421..0000000 --- a/dist/ng-bootstrap/esm2015/typeahead/highlight.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core'; -import { regExpEscape, toString } from '../util/util'; -/** - * A component that helps with text highlighting. - * - * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify - * highlighting: - * - * Ex. `result="Alaska"` and `term="as"` will produce `Alaska`. - */ -export class NgbHighlight { - constructor() { - /** - * The CSS class for `` elements wrapping the `term` inside the `result`. - */ - this.highlightClass = 'ngb-highlight'; - } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - /** @type {?} */ - const result = toString(this.result); - /** @type {?} */ - const terms = Array.isArray(this.term) ? this.term : [this.term]; - /** @type {?} */ - const escapedTerms = terms.map((/** - * @param {?} term - * @return {?} - */ - term => regExpEscape(toString(term)))).filter((/** - * @param {?} term - * @return {?} - */ - term => term)); - this.parts = escapedTerms.length ? result.split(new RegExp(`(${escapedTerms.join('|')})`, 'gmi')) : [result]; - } -} -NgbHighlight.decorators = [ - { type: Component, args: [{ - selector: 'ngb-highlight', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: `` + - `{{part}}{{part}}` + - ``, - styles: [".ngb-highlight{font-weight:700}"] - }] } -]; -NgbHighlight.propDecorators = { - highlightClass: [{ type: Input }], - result: [{ type: Input }], - term: [{ type: Input }] -}; -if (false) { - /** @type {?} */ - NgbHighlight.prototype.parts; - /** - * The CSS class for `` elements wrapping the `term` inside the `result`. - * @type {?} - */ - NgbHighlight.prototype.highlightClass; - /** - * The text highlighting is added to. - * - * If the `term` is found inside this text, it will be highlighted. - * If the `term` contains array then all the items from it will be highlighted inside the text. - * @type {?} - */ - NgbHighlight.prototype.result; - /** - * The term or array of terms to be highlighted. - * Since version `v4.2.0` term could be a `string[]` - * @type {?} - */ - NgbHighlight.prototype.term; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGxpZ2h0LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidHlwZWFoZWFkL2hpZ2hsaWdodC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQWEsdUJBQXVCLEVBQWlCLGlCQUFpQixFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3JILE9BQU8sRUFBQyxZQUFZLEVBQUUsUUFBUSxFQUFDLE1BQU0sY0FBYyxDQUFDOzs7Ozs7Ozs7QUFtQnBELE1BQU0sT0FBTyxZQUFZO0lBVHpCOzs7O1FBZVcsbUJBQWMsR0FBRyxlQUFlLENBQUM7SUF3QjVDLENBQUM7Ozs7O0lBUkMsV0FBVyxDQUFDLE9BQXNCOztjQUMxQixNQUFNLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUM7O2NBRTlCLEtBQUssR0FBRyxLQUFLLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDOztjQUMxRCxZQUFZLEdBQUcsS0FBSyxDQUFDLEdBQUc7Ozs7UU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OiBbdGhpcy50ZXJtXTtcbiAgICBjb25zdCBlc2NhcGVkVGVybXMgPSB0ZXJtcy5tYXAodGVybSA9PiByZWdFeHBFc2NhcGUodG9TdHJpbmcodGVybSkpKS5maWx0ZXIodGVybSA9PiB0ZXJtKTtcblxuICAgIHRoaXMucGFydHMgPSBlc2NhcGVkVGVybXMubGVuZ3RoID8gcmVzdWx0LnNwbGl0KG5ldyBSZWdFeHAoYCgke2VzY2FwZWRUZXJtcy5qb2luKCd8Jyl9KWAsICdnbWknKSkgOiBbcmVzdWx0XTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/typeahead/typeahead-config.js b/dist/ng-bootstrap/esm2015/typeahead/typeahead-config.js deleted file mode 100644 index 9bf38aa..0000000 --- a/dist/ng-bootstrap/esm2015/typeahead/typeahead-config.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the typeaheads used in the application. - */ -export class NgbTypeaheadConfig { - constructor() { - this.editable = true; - this.focusFirst = true; - this.showHint = false; - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - } -} -NgbTypeaheadConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbTypeaheadConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbTypeaheadConfig_Factory() { return new NgbTypeaheadConfig(); }, token: NgbTypeaheadConfig, providedIn: "root" }); -if (false) { - /** @type {?} */ - NgbTypeaheadConfig.prototype.container; - /** @type {?} */ - NgbTypeaheadConfig.prototype.editable; - /** @type {?} */ - NgbTypeaheadConfig.prototype.focusFirst; - /** @type {?} */ - NgbTypeaheadConfig.prototype.showHint; - /** @type {?} */ - NgbTypeaheadConfig.prototype.placement; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInR5cGVhaGVhZC90eXBlYWhlYWQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVV6QyxNQUFNLE9BQU8sa0JBQWtCO0lBRC9CO1FBR0UsYUFBUSxHQUFHLElBQUksQ0FBQztRQUNoQixlQUFVLEdBQUcsSUFBSSxDQUFDO1FBQ2xCLGFBQVEsR0FBRyxLQUFLLENBQUM7UUFDakIsY0FBUyxHQUFtQixDQUFDLGFBQWEsRUFBRSxjQUFjLEVBQUUsVUFBVSxFQUFFLFdBQVcsQ0FBQyxDQUFDO0tBQ3RGOzs7WUFQQSxVQUFVLFNBQUMsRUFBQyxVQUFVLEVBQUUsTUFBTSxFQUFDOzs7OztJQUU5Qix1Q0FBVTs7SUFDVixzQ0FBZ0I7O0lBQ2hCLHdDQUFrQjs7SUFDbEIsc0NBQWlCOztJQUNqQix1Q0FBcUYiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0luamVjdGFibGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtQbGFjZW1lbnRBcnJheX0gZnJvbSAnLi4vdXRpbC9wb3NpdGlvbmluZyc7XG5cbi8qKlxuICogQSBjb25maWd1cmF0aW9uIHNlcnZpY2UgZm9yIHRoZSBbYE5nYlR5cGVhaGVhZGBdKCMvY29tcG9uZW50cy90eXBlYWhlYWQvYXBpI05nYlR5cGVhaGVhZCkgY29tcG9uZW50LlxuICpcbiAqIFlvdSBjYW4gaW5qZWN0IHRoaXMgc2VydmljZSwgdHlwaWNhbGx5IGluIHlvdXIgcm9vdCBjb21wb25lbnQsIGFuZCBjdXN0b21pemUgdGhlIHZhbHVlcyBvZiBpdHMgcHJvcGVydGllcyBpblxuICogb3JkZXIgdG8gcHJvdmlkZSBkZWZhdWx0IHZhbHVlcyBmb3IgYWxsIHRoZSB0eXBlYWhlYWRzIHVzZWQgaW4gdGhlIGFwcGxpY2F0aW9uLlxuICovXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBOZ2JUeXBlYWhlYWRDb25maWcge1xuICBjb250YWluZXI7XG4gIGVkaXRhYmxlID0gdHJ1ZTtcbiAgZm9jdXNGaXJzdCA9IHRydWU7XG4gIHNob3dIaW50ID0gZmFsc2U7XG4gIHBsYWNlbWVudDogUGxhY2VtZW50QXJyYXkgPSBbJ2JvdHRvbS1sZWZ0JywgJ2JvdHRvbS1yaWdodCcsICd0b3AtbGVmdCcsICd0b3AtcmlnaHQnXTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/typeahead/typeahead-window.js b/dist/ng-bootstrap/esm2015/typeahead/typeahead-window.js deleted file mode 100644 index b3d2a31..0000000 --- a/dist/ng-bootstrap/esm2015/typeahead/typeahead-window.js +++ /dev/null @@ -1,184 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, Output, EventEmitter, TemplateRef } from '@angular/core'; -import { toString } from '../util/util'; -/** - * The context for the typeahead result template in case you want to override the default one. - * @record - */ -export function ResultTemplateContext() { } -if (false) { - /** - * Your typeahead result item. - * @type {?} - */ - ResultTemplateContext.prototype.result; - /** - * Search term from the `` used to get current result. - * @type {?} - */ - ResultTemplateContext.prototype.term; -} -export class NgbTypeaheadWindow { - constructor() { - this.activeIdx = 0; - /** - * Flag indicating if the first row should be active initially - */ - this.focusFirst = true; - /** - * A function used to format a given result before display. This function should return a formatted string without any - * HTML markup - */ - this.formatter = toString; - /** - * Event raised when user selects a particular result row - */ - this.selectEvent = new EventEmitter(); - this.activeChangeEvent = new EventEmitter(); - } - /** - * @return {?} - */ - hasActive() { return this.activeIdx > -1 && this.activeIdx < this.results.length; } - /** - * @return {?} - */ - getActive() { return this.results[this.activeIdx]; } - /** - * @param {?} activeIdx - * @return {?} - */ - markActive(activeIdx) { - this.activeIdx = activeIdx; - this._activeChanged(); - } - /** - * @return {?} - */ - next() { - if (this.activeIdx === this.results.length - 1) { - this.activeIdx = this.focusFirst ? (this.activeIdx + 1) % this.results.length : -1; - } - else { - this.activeIdx++; - } - this._activeChanged(); - } - /** - * @return {?} - */ - prev() { - if (this.activeIdx < 0) { - this.activeIdx = this.results.length - 1; - } - else if (this.activeIdx === 0) { - this.activeIdx = this.focusFirst ? this.results.length - 1 : -1; - } - else { - this.activeIdx--; - } - this._activeChanged(); - } - /** - * @return {?} - */ - resetActive() { - this.activeIdx = this.focusFirst ? 0 : -1; - this._activeChanged(); - } - /** - * @param {?} item - * @return {?} - */ - select(item) { this.selectEvent.emit(item); } - /** - * @return {?} - */ - ngOnInit() { this.resetActive(); } - /** - * @private - * @return {?} - */ - _activeChanged() { - this.activeChangeEvent.emit(this.activeIdx >= 0 ? this.id + '-' + this.activeIdx : undefined); - } -} -NgbTypeaheadWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-typeahead-window', - exportAs: 'ngbTypeaheadWindow', - host: { '(mousedown)': '$event.preventDefault()', 'class': 'dropdown-menu show', 'role': 'listbox', '[id]': 'id' }, - template: ` - - - - - - - ` - }] } -]; -NgbTypeaheadWindow.propDecorators = { - id: [{ type: Input }], - focusFirst: [{ type: Input }], - results: [{ type: Input }], - term: [{ type: Input }], - formatter: [{ type: Input }], - resultTemplate: [{ type: Input }], - selectEvent: [{ type: Output, args: ['select',] }], - activeChangeEvent: [{ type: Output, args: ['activeChange',] }] -}; -if (false) { - /** @type {?} */ - NgbTypeaheadWindow.prototype.activeIdx; - /** - * The id for the typeahead window. The id should be unique and the same - * as the associated typeahead's id. - * @type {?} - */ - NgbTypeaheadWindow.prototype.id; - /** - * Flag indicating if the first row should be active initially - * @type {?} - */ - NgbTypeaheadWindow.prototype.focusFirst; - /** - * Typeahead match results to be displayed - * @type {?} - */ - NgbTypeaheadWindow.prototype.results; - /** - * Search term used to get current results - * @type {?} - */ - NgbTypeaheadWindow.prototype.term; - /** - * A function used to format a given result before display. This function should return a formatted string without any - * HTML markup - * @type {?} - */ - NgbTypeaheadWindow.prototype.formatter; - /** - * A template to override a matching result default display - * @type {?} - */ - NgbTypeaheadWindow.prototype.resultTemplate; - /** - * Event raised when user selects a particular result row - * @type {?} - */ - NgbTypeaheadWindow.prototype.selectEvent; - /** @type {?} */ - NgbTypeaheadWindow.prototype.activeChangeEvent; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLXdpbmRvdy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInR5cGVhaGVhZC90eXBlYWhlYWQtd2luZG93LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLFdBQVcsRUFBUyxNQUFNLGVBQWUsQ0FBQztBQUUxRixPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sY0FBYyxDQUFDOzs7OztBQUt0QywyQ0FVQzs7Ozs7O0lBTkMsdUNBQVk7Ozs7O0lBS1oscUNBQWE7O0FBdUJmLE1BQU0sT0FBTyxrQkFBa0I7SUFwQi9CO1FBcUJFLGNBQVMsR0FBRyxDQUFDLENBQUM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DaGFuZ2VFdmVudC5lbWl0KHRoaXMuYWN0aXZlSWR4ID49IDAgPyB0aGlzLmlkICsgJy0nICsgdGhpcy5hY3RpdmVJZHggOiB1bmRlZmluZWQpO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/typeahead/typeahead.js b/dist/ng-bootstrap/esm2015/typeahead/typeahead.js deleted file mode 100644 index 6119f8d..0000000 --- a/dist/ng-bootstrap/esm2015/typeahead/typeahead.js +++ /dev/null @@ -1,654 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, ComponentFactoryResolver, Directive, ElementRef, EventEmitter, forwardRef, Inject, Injector, Input, NgZone, Output, Renderer2, TemplateRef, ViewContainerRef, ApplicationRef } from '@angular/core'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -import { DOCUMENT } from '@angular/common'; -import { BehaviorSubject, fromEvent, Subject } from 'rxjs'; -import { map, switchMap, tap } from 'rxjs/operators'; -import { Live } from '../util/accessibility/live'; -import { ngbAutoClose } from '../util/autoclose'; -import { Key } from '../util/key'; -import { PopupService } from '../util/popup'; -import { positionElements } from '../util/positioning'; -import { isDefined, toString } from '../util/util'; -import { NgbTypeaheadConfig } from './typeahead-config'; -import { NgbTypeaheadWindow } from './typeahead-window'; -/** @type {?} */ -const NGB_TYPEAHEAD_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbTypeahead)), - multi: true -}; -/** - * An event emitted right before an item is selected from the result list. - * @record - */ -export function NgbTypeaheadSelectItemEvent() { } -if (false) { - /** - * The item from the result list about to be selected. - * @type {?} - */ - NgbTypeaheadSelectItemEvent.prototype.item; - /** - * Calling this function will prevent item selection from happening. - * @type {?} - */ - NgbTypeaheadSelectItemEvent.prototype.preventDefault; -} -/** @type {?} */ -let nextWindowId = 0; -/** - * A directive providing a simple way of creating powerful typeaheads from any text input. - */ -export class NgbTypeahead { - /** - * @param {?} _elementRef - * @param {?} _viewContainerRef - * @param {?} _renderer - * @param {?} _injector - * @param {?} componentFactoryResolver - * @param {?} config - * @param {?} ngZone - * @param {?} _live - * @param {?} _document - * @param {?} _ngZone - * @param {?} _changeDetector - * @param {?} _applicationRef - */ - constructor(_elementRef, _viewContainerRef, _renderer, _injector, componentFactoryResolver, config, ngZone, _live, _document, _ngZone, _changeDetector, _applicationRef) { - this._elementRef = _elementRef; - this._viewContainerRef = _viewContainerRef; - this._renderer = _renderer; - this._injector = _injector; - this._live = _live; - this._document = _document; - this._ngZone = _ngZone; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - this._closed$ = new Subject(); - /** - * The value for the `autocomplete` attribute for the `` element. - * - * Defaults to `"off"` to disable the native browser autocomplete, but you can override it if necessary. - * - * \@since 2.1.0 - */ - this.autocomplete = 'off'; - /** - * The preferred placement of the typeahead. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - this.placement = 'bottom-left'; - /** - * An event emitted right before an item is selected from the result list. - * - * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent). - */ - this.selectItem = new EventEmitter(); - this.popupId = `ngb-typeahead-${nextWindowId++}`; - this._onTouched = (/** - * @return {?} - */ - () => { }); - this._onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.container = config.container; - this.editable = config.editable; - this.focusFirst = config.focusFirst; - this.showHint = config.showHint; - this.placement = config.placement; - this._valueChanges = fromEvent(_elementRef.nativeElement, 'input') - .pipe(map((/** - * @param {?} $event - * @return {?} - */ - $event => ((/** @type {?} */ ($event.target))).value))); - this._resubscribeTypeahead = new BehaviorSubject(null); - this._popupService = new PopupService(NgbTypeaheadWindow, _injector, _viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = ngZone.onStable.subscribe((/** - * @return {?} - */ - () => { - if (this.isPopupOpen()) { - positionElements(this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement, this.container === 'body'); - } - })); - } - /** - * @return {?} - */ - ngOnInit() { - /** @type {?} */ - const inputValues$ = this._valueChanges.pipe(tap((/** - * @param {?} value - * @return {?} - */ - value => { - this._inputValueBackup = this.showHint ? value : null; - if (this.editable) { - this._onChange(value); - } - }))); - /** @type {?} */ - const results$ = inputValues$.pipe(this.ngbTypeahead); - /** @type {?} */ - const processedResults$ = results$.pipe(tap((/** - * @return {?} - */ - () => { - if (!this.editable) { - this._onChange(undefined); - } - }))); - /** @type {?} */ - const userInput$ = this._resubscribeTypeahead.pipe(switchMap((/** - * @return {?} - */ - () => processedResults$))); - this._subscription = this._subscribeToUserInput(userInput$); - } - /** - * @return {?} - */ - ngOnDestroy() { - this._closePopup(); - this._unsubscribeFromUserInput(); - this._zoneSubscription.unsubscribe(); - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this._onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this._onTouched = fn; } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this._writeInputValue(this._formatItemForInput(value)); - if (this.showHint) { - this._inputValueBackup = value; - } - } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { - this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled); - } - /** - * Dismisses typeahead popup window - * @return {?} - */ - dismissPopup() { - if (this.isPopupOpen()) { - this._resubscribeTypeahead.next(null); - this._closePopup(); - if (this.showHint && this._inputValueBackup !== null) { - this._writeInputValue(this._inputValueBackup); - } - this._changeDetector.markForCheck(); - } - } - /** - * Returns true if the typeahead popup window is displayed - * @return {?} - */ - isPopupOpen() { return this._windowRef != null; } - /** - * @return {?} - */ - handleBlur() { - this._resubscribeTypeahead.next(null); - this._onTouched(); - } - /** - * @param {?} event - * @return {?} - */ - handleKeyDown(event) { - if (!this.isPopupOpen()) { - return; - } - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.ArrowDown: - event.preventDefault(); - this._windowRef.instance.next(); - this._showHint(); - break; - case Key.ArrowUp: - event.preventDefault(); - this._windowRef.instance.prev(); - this._showHint(); - break; - case Key.Enter: - case Key.Tab: - /** @type {?} */ - const result = this._windowRef.instance.getActive(); - if (isDefined(result)) { - event.preventDefault(); - event.stopPropagation(); - this._selectResult(result); - } - this._closePopup(); - break; - } - } - /** - * @private - * @return {?} - */ - _openPopup() { - if (!this.isPopupOpen()) { - this._inputValueBackup = this._elementRef.nativeElement.value; - this._windowRef = this._popupService.open(); - this._windowRef.instance.id = this.popupId; - this._windowRef.instance.selectEvent.subscribe((/** - * @param {?} result - * @return {?} - */ - (result) => this._selectResultClosePopup(result))); - this._windowRef.instance.activeChangeEvent.subscribe((/** - * @param {?} activeId - * @return {?} - */ - (activeId) => this.activeDescendant = activeId)); - if (this.container === 'body') { - window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - this._changeDetector.markForCheck(); - ngbAutoClose(this._ngZone, this._document, 'outside', (/** - * @return {?} - */ - () => this.dismissPopup()), this._closed$, [this._elementRef.nativeElement, this._windowRef.location.nativeElement]); - } - } - /** - * @private - * @return {?} - */ - _closePopup() { - this._closed$.next(); - this._popupService.close(); - this._windowRef = null; - this.activeDescendant = undefined; - } - /** - * @private - * @param {?} result - * @return {?} - */ - _selectResult(result) { - /** @type {?} */ - let defaultPrevented = false; - this.selectItem.emit({ item: result, preventDefault: (/** - * @return {?} - */ - () => { defaultPrevented = true; }) }); - this._resubscribeTypeahead.next(null); - if (!defaultPrevented) { - this.writeValue(result); - this._onChange(result); - } - } - /** - * @private - * @param {?} result - * @return {?} - */ - _selectResultClosePopup(result) { - this._selectResult(result); - this._closePopup(); - } - /** - * @private - * @return {?} - */ - _showHint() { - if (this.showHint && this._windowRef.instance.hasActive() && this._inputValueBackup != null) { - /** @type {?} */ - const userInputLowerCase = this._inputValueBackup.toLowerCase(); - /** @type {?} */ - const formattedVal = this._formatItemForInput(this._windowRef.instance.getActive()); - if (userInputLowerCase === formattedVal.substr(0, this._inputValueBackup.length).toLowerCase()) { - this._writeInputValue(this._inputValueBackup + formattedVal.substr(this._inputValueBackup.length)); - this._elementRef.nativeElement['setSelectionRange'].apply(this._elementRef.nativeElement, [this._inputValueBackup.length, formattedVal.length]); - } - else { - this._writeInputValue(formattedVal); - } - } - } - /** - * @private - * @param {?} item - * @return {?} - */ - _formatItemForInput(item) { - return item != null && this.inputFormatter ? this.inputFormatter(item) : toString(item); - } - /** - * @private - * @param {?} value - * @return {?} - */ - _writeInputValue(value) { - this._renderer.setProperty(this._elementRef.nativeElement, 'value', toString(value)); - } - /** - * @private - * @param {?} userInput$ - * @return {?} - */ - _subscribeToUserInput(userInput$) { - return userInput$.subscribe((/** - * @param {?} results - * @return {?} - */ - (results) => { - if (!results || results.length === 0) { - this._closePopup(); - } - else { - this._openPopup(); - this._windowRef.instance.focusFirst = this.focusFirst; - this._windowRef.instance.results = results; - this._windowRef.instance.term = this._elementRef.nativeElement.value; - if (this.resultFormatter) { - this._windowRef.instance.formatter = this.resultFormatter; - } - if (this.resultTemplate) { - this._windowRef.instance.resultTemplate = this.resultTemplate; - } - this._windowRef.instance.resetActive(); - // The observable stream we are subscribing to might have async steps - // and if a component containing typeahead is using the OnPush strategy - // the change detection turn wouldn't be invoked automatically. - this._windowRef.changeDetectorRef.detectChanges(); - this._showHint(); - } - // live announcer - /** @type {?} */ - const count = results ? results.length : 0; - this._live.say(count === 0 ? 'No results available' : `${count} result${count === 1 ? '' : 's'} available`); - })); - } - /** - * @private - * @return {?} - */ - _unsubscribeFromUserInput() { - if (this._subscription) { - this._subscription.unsubscribe(); - } - this._subscription = null; - } -} -NgbTypeahead.decorators = [ - { type: Directive, args: [{ - selector: 'input[ngbTypeahead]', - exportAs: 'ngbTypeahead', - host: { - '(blur)': 'handleBlur()', - '[class.open]': 'isPopupOpen()', - '(keydown)': 'handleKeyDown($event)', - '[autocomplete]': 'autocomplete', - 'autocapitalize': 'off', - 'autocorrect': 'off', - 'role': 'combobox', - 'aria-multiline': 'false', - '[attr.aria-autocomplete]': 'showHint ? "both" : "list"', - '[attr.aria-activedescendant]': 'activeDescendant', - '[attr.aria-owns]': 'isPopupOpen() ? popupId : null', - '[attr.aria-expanded]': 'isPopupOpen()' - }, - providers: [NGB_TYPEAHEAD_VALUE_ACCESSOR] - },] } -]; -/** @nocollapse */ -NgbTypeahead.ctorParameters = () => [ - { type: ElementRef }, - { type: ViewContainerRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: NgbTypeaheadConfig }, - { type: NgZone }, - { type: Live }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: NgZone }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } -]; -NgbTypeahead.propDecorators = { - autocomplete: [{ type: Input }], - container: [{ type: Input }], - editable: [{ type: Input }], - focusFirst: [{ type: Input }], - inputFormatter: [{ type: Input }], - ngbTypeahead: [{ type: Input }], - resultFormatter: [{ type: Input }], - resultTemplate: [{ type: Input }], - showHint: [{ type: Input }], - placement: [{ type: Input }], - selectItem: [{ type: Output }] -}; -if (false) { - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._popupService; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._subscription; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._closed$; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._inputValueBackup; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._valueChanges; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._resubscribeTypeahead; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._windowRef; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._zoneSubscription; - /** - * The value for the `autocomplete` attribute for the `` element. - * - * Defaults to `"off"` to disable the native browser autocomplete, but you can override it if necessary. - * - * \@since 2.1.0 - * @type {?} - */ - NgbTypeahead.prototype.autocomplete; - /** - * A selector specifying the element the typeahead popup will be appended to. - * - * Currently only supports `"body"`. - * @type {?} - */ - NgbTypeahead.prototype.container; - /** - * If `true`, model values will not be restricted only to items selected from the popup. - * @type {?} - */ - NgbTypeahead.prototype.editable; - /** - * If `true`, the first item in the result list will always stay focused while typing. - * @type {?} - */ - NgbTypeahead.prototype.focusFirst; - /** - * The function that converts an item from the result list to a `string` to display in the `` field. - * - * It is called when the user selects something in the popup or the model value changes, so the input needs to - * be updated. - * @type {?} - */ - NgbTypeahead.prototype.inputFormatter; - /** - * The function that converts a stream of text values from the `` element to the stream of the array of items - * to display in the typeahead popup. - * - * If the resulting observable emits a non-empty array - the popup will be shown. If it emits an empty array - the - * popup will be closed. - * - * See the [basic example](#/components/typeahead/examples#basic) for more details. - * - * Note that the `this` argument is `undefined` so you need to explicitly bind it to a desired "this" target. - * @type {?} - */ - NgbTypeahead.prototype.ngbTypeahead; - /** - * The function that converts an item from the result list to a `string` to display in the popup. - * - * Must be provided, if your `ngbTypeahead` returns something other than `Observable`. - * - * Alternatively for more complex markup in the popup you should use `resultTemplate`. - * @type {?} - */ - NgbTypeahead.prototype.resultFormatter; - /** - * The template to override the way resulting items are displayed in the popup. - * - * See the [ResultTemplateContext](#/components/typeahead/api#ResultTemplateContext) for the template context. - * - * Also see the [template for results demo](#/components/typeahead/examples#template) for more details. - * @type {?} - */ - NgbTypeahead.prototype.resultTemplate; - /** - * If `true`, will show the hint in the `` when an item in the result list matches. - * @type {?} - */ - NgbTypeahead.prototype.showHint; - /** - * The preferred placement of the typeahead. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - * @type {?} - */ - NgbTypeahead.prototype.placement; - /** - * An event emitted right before an item is selected from the result list. - * - * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent). - * @type {?} - */ - NgbTypeahead.prototype.selectItem; - /** @type {?} */ - NgbTypeahead.prototype.activeDescendant; - /** @type {?} */ - NgbTypeahead.prototype.popupId; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._onTouched; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._onChange; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._elementRef; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._viewContainerRef; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._injector; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._live; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._document; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._changeDetector; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._applicationRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidHlwZWFoZWFkL3R5cGVhaGVhZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLGlCQUFpQixFQUNqQix3QkFBd0IsRUFFeEIsU0FBUyxFQUNULFVBQVUsRUFDVixZQUFZLEVBQ1osVUFBVSxFQUNWLE1BQU0s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fd2luZG93UmVmLmNoYW5nZURldGVjdG9yUmVmLmRldGVjdENoYW5nZXMoKTtcblxuICAgICAgICB0aGlzLl9zaG93SGludCgpO1xuICAgICAgfVxuXG4gICAgICAvLyBsaXZlIGFubm91bmNlclxuICAgICAgY29uc3QgY291bnQgPSByZXN1bHRzID8gcmVzdWx0cy5sZW5ndGggOiAwO1xuICAgICAgdGhpcy5fbGl2ZS5zYXkoY291bnQgPT09IDAgPyAnTm8gcmVzdWx0cyBhdmFpbGFibGUnIDogYCR7Y291bnR9IHJlc3VsdCR7Y291bnQgPT09IDEgPyAnJyA6ICdzJ30gYXZhaWxhYmxlYCk7XG4gICAgfSk7XG4gIH1cblxuICBwcml2YXRlIF91bnN1YnNjcmliZUZyb21Vc2VySW5wdXQoKSB7XG4gICAgaWYgKHRoaXMuX3N1YnNjcmlwdGlvbikge1xuICAgICAgdGhpcy5fc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgfVxuICAgIHRoaXMuX3N1YnNjcmlwdGlvbiA9IG51bGw7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/typeahead/typeahead.module.js b/dist/ng-bootstrap/esm2015/typeahead/typeahead.module.js deleted file mode 100644 index c3fc879..0000000 --- a/dist/ng-bootstrap/esm2015/typeahead/typeahead.module.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbHighlight } from './highlight'; -import { NgbTypeaheadWindow } from './typeahead-window'; -import { NgbTypeahead } from './typeahead'; -export { NgbHighlight } from './highlight'; -export { NgbTypeaheadWindow } from './typeahead-window'; -export { NgbTypeaheadConfig } from './typeahead-config'; -export { NgbTypeahead } from './typeahead'; -export class NgbTypeaheadModule { -} -NgbTypeaheadModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow], - exports: [NgbTypeahead, NgbHighlight], - imports: [CommonModule], - entryComponents: [NgbTypeaheadWindow] - },] } -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInR5cGVhaGVhZC90eXBlYWhlYWQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sYUFBYSxDQUFDO0FBQ3pDLE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLG9CQUFvQixDQUFDO0FBQ3RELE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxhQUFhLENBQUM7QUFFekMsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUN6QyxPQUFPLEVBQUMsa0JBQWtCLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQUMsa0JBQWtCLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQUMsWUFBWSxFQUE4QixNQUFNLGFBQWEsQ0FBQztBQVF0RSxNQUFNLE9BQU8sa0JBQWtCOzs7WUFOOUIsUUFBUSxTQUFDO2dCQUNSLFlBQVksRUFBRSxDQUFDLFlBQVksRUFBRSxZQUFZLEVBQUUsa0JBQWtCLENBQUM7Z0JBQzlELE9BQU8sRUFBRSxDQUFDLFlBQVksRUFBRSxZQUFZLENBQUM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at end of file diff --git a/dist/ng-bootstrap/esm2015/util/accessibility/live.js b/dist/ng-bootstrap/esm2015/util/accessibility/live.js deleted file mode 100644 index 3893a22..0000000 --- a/dist/ng-bootstrap/esm2015/util/accessibility/live.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable, Inject, InjectionToken } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import * as i0 from "@angular/core"; -import * as i1 from "@angular/common"; -/** @type {?} */ -export const ARIA_LIVE_DELAY = new InjectionToken('live announcer delay', { providedIn: 'root', factory: ARIA_LIVE_DELAY_FACTORY }); -/** - * @return {?} - */ -export function ARIA_LIVE_DELAY_FACTORY() { - return 100; -} -/** - * @param {?} document - * @param {?=} lazyCreate - * @return {?} - */ -function getLiveElement(document, lazyCreate = false) { - /** @type {?} */ - let element = (/** @type {?} */ (document.body.querySelector('#ngb-live'))); - if (element == null && lazyCreate) { - element = document.createElement('div'); - element.setAttribute('id', 'ngb-live'); - element.setAttribute('aria-live', 'polite'); - element.setAttribute('aria-atomic', 'true'); - element.classList.add('sr-only'); - document.body.appendChild(element); - } - return element; -} -export class Live { - /** - * @param {?} _document - * @param {?} _delay - */ - constructor(_document, _delay) { - this._document = _document; - this._delay = _delay; - } - /** - * @return {?} - */ - ngOnDestroy() { - /** @type {?} */ - const element = getLiveElement(this._document); - if (element) { - element.parentElement.removeChild(element); - } - } - /** - * @param {?} message - * @return {?} - */ - say(message) { - /** @type {?} */ - const element = getLiveElement(this._document, true); - /** @type {?} */ - const delay = this._delay; - element.textContent = ''; - /** @type {?} */ - const setText = (/** - * @return {?} - */ - () => element.textContent = message); - if (delay === null) { - setText(); - } - else { - setTimeout(setText, delay); - } - } -} -Live.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ -Live.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: undefined, decorators: [{ type: Inject, args: [ARIA_LIVE_DELAY,] }] } -]; -/** @nocollapse */ Live.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function Live_Factory() { return new Live(i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(ARIA_LIVE_DELAY)); }, token: Live, providedIn: "root" }); -if (false) { - /** - * @type {?} - * @private - */ - Live.prototype._document; - /** - * @type {?} - * @private - */ - Live.prototype._delay; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInV0aWwvYWNjZXNzaWJpbGl0eS9saXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBRSxjQUFjLEVBQVksTUFBTSxlQUFlLENBQUM7QUFDNUUsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDOzs7O0FBT3pDLE1BQU0sT0FBTyxlQUFlLEdBQUcsSUFBSSxjQUFjLENBQzdDLHNCQUFzQixFQUFFLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBRSxPQUFPLEVBQUUsdUJBQXVCLEVBQUMsQ0FBQzs7OztBQUNuRixNQUFNLFVBQVUsdUJBQXVCO0lBQ3JDLE9BQU8sR0FBRyxDQUFDO0FBQ2IsQ0FBQzs7Ozs7O0FBR0QsU0FBUyxjQUFjLENBQUMsUUFBYSxFQUFFLFVBQVUsR0FBRyxLQUFLOztRQUNuRCxPQUFPLEdBQUcsbUJBQUEsUUFBUSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsV0FBVyxDQUFDLEVBQWU7SUFFckUsSUFBSSxPQUFPLElBQUksSUFBSSxJQUFJLFVBQVUsR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RlIF9kZWxheTogYW55KSB7fVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIGNvbnN0IGVsZW1lbnQgPSBnZXRMaXZlRWxlbWVudCh0aGlzLl9kb2N1bWVudCk7XG4gICAgaWYgKGVsZW1lbnQpIHtcbiAgICAgIGVsZW1lbnQucGFyZW50RWxlbWVudC5yZW1vdmVDaGlsZChlbGVtZW50KTtcbiAgICB9XG4gIH1cblxuICBzYXkobWVzc2FnZTogc3RyaW5nKSB7XG4gICAgY29uc3QgZWxlbWVudCA9IGdldExpdmVFbGVtZW50KHRoaXMuX2RvY3VtZW50LCB0cnVlKTtcbiAgICBjb25zdCBkZWxheSA9IHRoaXMuX2RlbGF5O1xuXG4gICAgZWxlbWVudC50ZXh0Q29udGVudCA9ICcnO1xuICAgIGNvbnN0IHNldFRleHQgPSAoKSA9PiBlbGVtZW50LnRleHRDb250ZW50ID0gbWVzc2FnZTtcbiAgICBpZiAoZGVsYXkgPT09IG51bGwpIHtcbiAgICAgIHNldFRleHQoKTtcbiAgICB9IGVsc2Uge1xuICAgICAgc2V0VGltZW91dChzZXRUZXh0LCBkZWxheSk7XG4gICAgfVxuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/util/autoclose.js b/dist/ng-bootstrap/esm2015/util/autoclose.js deleted file mode 100644 index 6ce1ea8..0000000 --- a/dist/ng-bootstrap/esm2015/util/autoclose.js +++ /dev/null @@ -1,105 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { fromEvent, race } from 'rxjs'; -import { delay, filter, map, takeUntil, withLatestFrom } from 'rxjs/operators'; -import { Key } from './key'; -import { closest } from './util'; -/** @type {?} */ -const isContainedIn = (/** - * @param {?} element - * @param {?=} array - * @return {?} - */ -(element, array) => array ? array.some((/** - * @param {?} item - * @return {?} - */ -item => item.contains(element))) : false); -const ɵ0 = isContainedIn; -/** @type {?} */ -const matchesSelectorIfAny = (/** - * @param {?} element - * @param {?=} selector - * @return {?} - */ -(element, selector) => !selector || closest(element, selector) != null); -const ɵ1 = matchesSelectorIfAny; -// we'll have to use 'touch' events instead of 'mouse' events on iOS and add a more significant delay -// to avoid re-opening when handling (click) on a toggling element -// TODO: use proper Angular platform detection when NgbAutoClose becomes a service and we can inject PLATFORM_ID -/** @type {?} */ -let iOS = false; -if (typeof navigator !== 'undefined') { - iOS = !!navigator.userAgent && /iPad|iPhone|iPod/.test(navigator.userAgent); -} -/** - * @param {?} zone - * @param {?} document - * @param {?} type - * @param {?} close - * @param {?} closed$ - * @param {?} insideElements - * @param {?=} ignoreElements - * @param {?=} insideSelector - * @return {?} - */ -export function ngbAutoClose(zone, document, type, close, closed$, insideElements, ignoreElements, insideSelector) { - // closing on ESC and outside clicks - if (type) { - zone.runOutsideAngular((/** - * @return {?} - */ - () => { - /** @type {?} */ - const shouldCloseOnClick = (/** - * @param {?} event - * @return {?} - */ - (event) => { - /** @type {?} */ - const element = (/** @type {?} */ (event.target)); - if ((event instanceof MouseEvent && event.button === 2) || isContainedIn(element, ignoreElements)) { - return false; - } - if (type === 'inside') { - return isContainedIn(element, insideElements) && matchesSelectorIfAny(element, insideSelector); - } - else if (type === 'outside') { - return !isContainedIn(element, insideElements); - } - else /* if (type === true) */ { - return matchesSelectorIfAny(element, insideSelector) || !isContainedIn(element, insideElements); - } - }); - /** @type {?} */ - const escapes$ = fromEvent(document, 'keydown') - .pipe(takeUntil(closed$), - // tslint:disable-next-line:deprecation - filter((/** - * @param {?} e - * @return {?} - */ - e => e.which === Key.Escape))); - // we have to pre-calculate 'shouldCloseOnClick' on 'mousedown/touchstart', - // because on 'mouseup/touchend' DOM nodes might be detached - /** @type {?} */ - const mouseDowns$ = fromEvent(document, iOS ? 'touchstart' : 'mousedown') - .pipe(map(shouldCloseOnClick), takeUntil(closed$)); - /** @type {?} */ - const closeableClicks$ = (/** @type {?} */ (fromEvent(document, iOS ? 'touchend' : 'mouseup') - .pipe(withLatestFrom(mouseDowns$), filter((/** - * @param {?} __0 - * @return {?} - */ - ([_, shouldClose]) => shouldClose)), delay(iOS ? 16 : 0), takeUntil(closed$)))); - race([escapes$, closeableClicks$]).subscribe((/** - * @return {?} - */ - () => zone.run(close))); - })); - } -} -export { ɵ0, ɵ1 }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2Nsb3NlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidXRpbC9hdXRvY2xvc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUNBLE9BQU8sRUFBQyxTQUFTLEVBQWMsSUFBSSxFQUFDLE1BQU0sTUFBTSxDQUFDO0FBQ2pELE9BQU8sRUFBQyxLQUFLLEVBQUUsTUFBTSxFQUFFLEdBQUcsRUFBRSxTQUFTLEVBQUUsY0FBYyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0UsT0FBTyxFQUFDLEdBQUcsRUFBQyxNQUFNLE9BQU8sQ0FBQztBQUMxQixPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sUUFBUSxDQUFDOztNQUV6QixhQUFhOzs7OztBQUFHLENBQUMsT0FBb0IsRUFBRSxLQUFxQixFQUFFLEVBQUUsQ0FDbEUsS0FBSyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsSUFBSTs7OztBQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUMsRUFBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUE7OztNQUV4RCxvQkFBb0I7Ozs7O0FBQUcsQ0FBQyxPQUFvQixFQUFFLFFBQWlCLEVBQUUsRUFBRSxDQUNyRSxDQUFDLFFBQVEsSUFBSSxPQUFPLENBQUMsT0FBTyxF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DtcbiAgICAgICAgaWYgKChldmVudCBpbnN0YW5jZW9mIE1vdXNlRXZlbnQgJiYgZXZlbnQuYnV0dG9uID09PSAyKSB8fCBpc0NvbnRhaW5lZEluKGVsZW1lbnQsIGlnbm9yZUVsZW1lbnRzKSkge1xuICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAodHlwZSA9PT0gJ2luc2lkZScpIHtcbiAgICAgICAgICByZXR1cm4gaXNDb250YWluZWRJbihlbGVtZW50LCBpbnNpZGVFbGVtZW50cykgJiYgbWF0Y2hlc1NlbGVjdG9ySWZBbnkoZWxlbWVudCwgaW5zaWRlU2VsZWN0b3IpO1xuICAgICAgICB9IGVsc2UgaWYgKHR5cGUgPT09ICdvdXRzaWRlJykge1xuICAgICAgICAgIHJldHVybiAhaXNDb250YWluZWRJbihlbGVtZW50LCBpbnNpZGVFbGVtZW50cyk7XG4gICAgICAgIH0gZWxzZSAvKiBpZiAodHlwZSA9PT0gdHJ1ZSkgKi8ge1xuICAgICAgICAgIHJldHVybiBtYXRjaGVzU2VsZWN0b3JJZkFueShlbGVtZW50LCBpbnNpZGVTZWxlY3RvcikgfHwgIWlzQ29udGFpbmVkSW4oZWxlbWVudCwgaW5zaWRlRWxlbWVudHMpO1xuICAgICAgICB9XG4gICAgICB9O1xuXG4gICAgICBjb25zdCBlc2NhcGVzJCA9IGZyb21FdmVudDxLZXlib2FyZEV2ZW50Pihkb2N1bWVudCwgJ2tleWRvd24nKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFrZVVudGlsKGNsb3NlZCQpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTpkZXByZWNhdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbHRlcihlID0+IGUud2hpY2ggPT09IEtleS5Fc2NhcGUpKTtcblxuXG4gICAgICAvLyB3ZSBoYXZlIHRvIHByZS1jYWxjdWxhdGUgJ3Nob3VsZENsb3NlT25DbGljaycgb24gJ21vdXNlZG93bi90b3VjaHN0YXJ0JyxcbiAgICAgIC8vIGJlY2F1c2Ugb24gJ21vdXNldXAvdG91Y2hlbmQnIERPTSBub2RlcyBtaWdodCBiZSBkZXRhY2hlZFxuICAgICAgY29uc3QgbW91c2VEb3ducyQgPSBmcm9tRXZlbnQ8TW91c2VFdmVudD4oZG9jdW1lbnQsIGlPUyA/ICd0b3VjaHN0YXJ0JyA6ICdtb3VzZWRvd24nKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnBpcGUobWFwKHNob3VsZENsb3NlT25DbGljayksIHRha2VVbnRpbChjbG9zZWQkKSk7XG5cbiAgICAgIGNvbnN0IGNsb3NlYWJsZUNsaWNrcyQgPSBmcm9tRXZlbnQ8TW91c2VFdmVudD4oZG9jdW1lbnQsIGlPUyA/ICd0b3VjaGVuZCcgOiAnbW91c2V1cCcpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2l0aExhdGVzdEZyb20obW91c2VEb3ducyQpLCBmaWx0ZXIoKFtfLCBzaG91bGRDbG9zZV0pID0+IHNob3VsZENsb3NlKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlbGF5KGlPUyA/IDE2IDogMCksIHRha2VVbnRpbChjbG9zZWQkKSkgYXMgT2JzZXJ2YWJsZTxNb3VzZUV2ZW50PjtcblxuXG4gICAgICByYWNlPEV2ZW50PihbZXNjYXBlcyQsIGNsb3NlYWJsZUNsaWNrcyRdKS5zdWJzY3JpYmUoKCkgPT4gem9uZS5ydW4oY2xvc2UpKTtcbiAgICB9KTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/util/focus-trap.js b/dist/ng-bootstrap/esm2015/util/focus-trap.js deleted file mode 100644 index 86bd80d..0000000 --- a/dist/ng-bootstrap/esm2015/util/focus-trap.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { fromEvent } from 'rxjs'; -import { filter, map, takeUntil, withLatestFrom } from 'rxjs/operators'; -import { Key } from '../util/key'; -/** @type {?} */ -const FOCUSABLE_ELEMENTS_SELECTOR = [ - 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type="hidden"])', 'select:not([disabled])', - 'textarea:not([disabled])', '[contenteditable]', '[tabindex]:not([tabindex="-1"])' -].join(', '); -/** - * Returns first and last focusable elements inside of a given element based on specific CSS selector - * @param {?} element - * @return {?} - */ -export function getFocusableBoundaryElements(element) { - /** @type {?} */ - const list = Array.from((/** @type {?} */ (element.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)))) - .filter((/** - * @param {?} el - * @return {?} - */ - el => el.tabIndex !== -1)); - return [list[0], list[list.length - 1]]; -} -/** - * Function that enforces browser focus to be trapped inside a DOM element. - * - * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element - * - * \@param element The element around which focus will be trapped inside - * \@param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners - * and free internal resources - * \@param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to - * false) - * @type {?} - */ -export const ngbFocusTrap = (/** - * @param {?} element - * @param {?} stopFocusTrap$ - * @param {?=} refocusOnClick - * @return {?} - */ -(element, stopFocusTrap$, refocusOnClick = false) => { - // last focused element - /** @type {?} */ - const lastFocusedElement$ = fromEvent(element, 'focusin').pipe(takeUntil(stopFocusTrap$), map((/** - * @param {?} e - * @return {?} - */ - e => e.target))); - // 'tab' / 'shift+tab' stream - fromEvent(element, 'keydown') - .pipe(takeUntil(stopFocusTrap$), - // tslint:disable:deprecation - filter((/** - * @param {?} e - * @return {?} - */ - e => e.which === Key.Tab)), - // tslint:enable:deprecation - withLatestFrom(lastFocusedElement$)) - .subscribe((/** - * @param {?} __0 - * @return {?} - */ - ([tabEvent, focusedElement]) => { - const [first, last] = getFocusableBoundaryElements(element); - if ((focusedElement === first || focusedElement === element) && tabEvent.shiftKey) { - last.focus(); - tabEvent.preventDefault(); - } - if (focusedElement === last && !tabEvent.shiftKey) { - first.focus(); - tabEvent.preventDefault(); - } - })); - // inside click - if (refocusOnClick) { - fromEvent(element, 'click') - .pipe(takeUntil(stopFocusTrap$), withLatestFrom(lastFocusedElement$), map((/** - * @param {?} arr - * @return {?} - */ - arr => (/** @type {?} */ (arr[1]))))) - .subscribe((/** - * @param {?} lastFocusedElement - * @return {?} - */ - lastFocusedElement => lastFocusedElement.focus())); - } -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9jdXMtdHJhcC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInV0aWwvZm9jdXMtdHJhcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBYSxNQUFNLE1BQU0sQ0FBQztBQUMzQyxPQUFPLEVBQUMsTUFBTSxFQUFFLEdBQUcsRUFBRSxTQUFTLEVBQUUsY0FBYyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFdEUsT0FBTyxFQUFDLEdBQUcsRUFBQyxNQUFNLGFBQWEsQ0FBQzs7TUFHMUIsMkJBQTJCLEdBQUc7SUFDbEMsU0FBUyxFQUFFLHdCQUF3QixFQUFFLDRDQUE0QyxFQUFFLHdCQUF3QjtJQUMzRywwQkFBMEIsRUFBRSxtQkFBbUIsRUFBRSxpQ0FBaUM7Q0FDbkYsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDOzs7Ozs7QUFLWixNQUFNLFV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GhMYXRlc3RGcm9tKGxhc3RGb2N1c2VkRWxlbWVudCQpLCBtYXAoYXJyID0+IGFyclsxXSBhcyBIVE1MRWxlbWVudCkpXG4gICAgICAgIC5zdWJzY3JpYmUobGFzdEZvY3VzZWRFbGVtZW50ID0+IGxhc3RGb2N1c2VkRWxlbWVudC5mb2N1cygpKTtcbiAgfVxufTtcbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/util/key.js b/dist/ng-bootstrap/esm2015/util/key.js deleted file mode 100644 index 9d8f928..0000000 --- a/dist/ng-bootstrap/esm2015/util/key.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -const Key = { - Tab: 9, - Enter: 13, - Escape: 27, - Space: 32, - PageUp: 33, - PageDown: 34, - End: 35, - Home: 36, - ArrowLeft: 37, - ArrowUp: 38, - ArrowRight: 39, - ArrowDown: 40, -}; -export { Key }; -Key[Key.Tab] = 'Tab'; -Key[Key.Enter] = 'Enter'; -Key[Key.Escape] = 'Escape'; -Key[Key.Space] = 'Space'; -Key[Key.PageUp] = 'PageUp'; -Key[Key.PageDown] = 'PageDown'; -Key[Key.End] = 'End'; -Key[Key.Home] = 'Home'; -Key[Key.ArrowLeft] = 'ArrowLeft'; -Key[Key.ArrowUp] = 'ArrowUp'; -Key[Key.ArrowRight] = 'ArrowRight'; -Key[Key.ArrowDown] = 'ArrowDown'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidXRpbC9rZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0lBQ0UsTUFBTztJQUNQLFNBQVU7SUFDVixVQUFXO0lBQ1gsU0FBVTtJQUNWLFVBQVc7SUFDWCxZQUFhO0lBQ2IsT0FBUTtJQUNSLFFBQVM7SUFDVCxhQUFjO0lBQ2QsV0FBWTtJQUNaLGNBQWU7SUFDZixhQUFjIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gS2V5IHtcbiAgVGFiID0gOSxcbiAgRW50ZXIgPSAxMyxcbiAgRXNjYXBlID0gMjcsXG4gIFNwYWNlID0gMzIsXG4gIFBhZ2VVcCA9IDMzLFxuICBQYWdlRG93biA9IDM0LFxuICBFbmQgPSAzNSxcbiAgSG9tZSA9IDM2LFxuICBBcnJvd0xlZnQgPSAzNyxcbiAgQXJyb3dVcCA9IDM4LFxuICBBcnJvd1JpZ2h0ID0gMzksXG4gIEFycm93RG93biA9IDQwXG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/util/popup.js b/dist/ng-bootstrap/esm2015/util/popup.js deleted file mode 100644 index 60508a6..0000000 --- a/dist/ng-bootstrap/esm2015/util/popup.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { TemplateRef } from '@angular/core'; -export class ContentRef { - /** - * @param {?} nodes - * @param {?=} viewRef - * @param {?=} componentRef - */ - constructor(nodes, viewRef, componentRef) { - this.nodes = nodes; - this.viewRef = viewRef; - this.componentRef = componentRef; - } -} -if (false) { - /** @type {?} */ - ContentRef.prototype.nodes; - /** @type {?} */ - ContentRef.prototype.viewRef; - /** @type {?} */ - ContentRef.prototype.componentRef; -} -/** - * @template T - */ -export class PopupService { - /** - * @param {?} _type - * @param {?} _injector - * @param {?} _viewContainerRef - * @param {?} _renderer - * @param {?} _componentFactoryResolver - * @param {?} _applicationRef - */ - constructor(_type, _injector, _viewContainerRef, _renderer, _componentFactoryResolver, _applicationRef) { - this._type = _type; - this._injector = _injector; - this._viewContainerRef = _viewContainerRef; - this._renderer = _renderer; - this._componentFactoryResolver = _componentFactoryResolver; - this._applicationRef = _applicationRef; - } - /** - * @param {?=} content - * @param {?=} context - * @return {?} - */ - open(content, context) { - if (!this._windowRef) { - this._contentRef = this._getContentRef(content, context); - this._windowRef = this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type), 0, this._injector, this._contentRef.nodes); - } - return this._windowRef; - } - /** - * @return {?} - */ - close() { - if (this._windowRef) { - this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)); - this._windowRef = null; - if (this._contentRef.viewRef) { - this._applicationRef.detachView(this._contentRef.viewRef); - this._contentRef.viewRef.destroy(); - this._contentRef = null; - } - } - } - /** - * @private - * @param {?} content - * @param {?=} context - * @return {?} - */ - _getContentRef(content, context) { - if (!content) { - return new ContentRef([]); - } - else if (content instanceof TemplateRef) { - /** @type {?} */ - const viewRef = content.createEmbeddedView(context); - this._applicationRef.attachView(viewRef); - return new ContentRef([viewRef.rootNodes], viewRef); - } - else { - return new ContentRef([[this._renderer.createText(`${content}`)]]); - } - } -} -if (false) { - /** - * @type {?} - * @private - */ - PopupService.prototype._windowRef; - /** - * @type {?} - * @private - */ - PopupService.prototype._contentRef; - /** - * @type {?} - * @private - */ - PopupService.prototype._type; - /** - * @type {?} - * @private - */ - PopupService.prototype._injector; - /** - * @type {?} - * @private - */ - PopupService.prototype._viewContainerRef; - /** - * @type {?} - * @private - */ - PopupService.prototype._renderer; - /** - * @type {?} - * @private - */ - PopupService.prototype._componentFactoryResolver; - /** - * @type {?} - * @private - */ - PopupService.prototype._applicationRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wdXAuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ1dGlsL3BvcHVwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3Mi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Rvd1JlZiA9IG51bGw7XG5cbiAgICAgIGlmICh0aGlzLl9jb250ZW50UmVmLnZpZXdSZWYpIHtcbiAgICAgICAgdGhpcy5fYXBwbGljYXRpb25SZWYuZGV0YWNoVmlldyh0aGlzLl9jb250ZW50UmVmLnZpZXdSZWYpO1xuICAgICAgICB0aGlzLl9jb250ZW50UmVmLnZpZXdSZWYuZGVzdHJveSgpO1xuICAgICAgICB0aGlzLl9jb250ZW50UmVmID0gbnVsbDtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBwcml2YXRlIF9nZXRDb250ZW50UmVmKGNvbnRlbnQ6IHN0cmluZyB8IFRlbXBsYXRlUmVmPGFueT4sIGNvbnRleHQ/OiBhbnkpOiBDb250ZW50UmVmIHtcbiAgICBpZiAoIWNvbnRlbnQpIHtcbiAgICAgIHJldHVybiBuZXcgQ29udGVudFJlZihbXSk7XG4gICAgfSBlbHNlIGlmIChjb250ZW50IGluc3RhbmNlb2YgVGVtcGxhdGVSZWYpIHtcbiAgICAgIGNvbnN0IHZpZXdSZWYgPSBjb250ZW50LmNyZWF0ZUVtYmVkZGVkVmlldyhjb250ZXh0KTtcbiAgICAgIHRoaXMuX2FwcGxpY2F0aW9uUmVmLmF0dGFjaFZpZXcodmlld1JlZik7XG4gICAgICByZXR1cm4gbmV3IENvbnRlbnRSZWYoW3ZpZXdSZWYucm9vdE5vZGVzXSwgdmlld1JlZik7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBuZXcgQ29udGVudFJlZihbW3RoaXMuX3JlbmRlcmVyLmNyZWF0ZVRleHQoYCR7Y29udGVudH1gKV1dKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/util/positioning.js b/dist/ng-bootstrap/esm2015/util/positioning.js deleted file mode 100644 index 3f382b2..0000000 --- a/dist/ng-bootstrap/esm2015/util/positioning.js +++ /dev/null @@ -1,317 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -// previous version: -// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js -export class Positioning { - /** - * @private - * @param {?} element - * @return {?} - */ - getAllStyles(element) { return window.getComputedStyle(element); } - /** - * @private - * @param {?} element - * @param {?} prop - * @return {?} - */ - getStyle(element, prop) { return this.getAllStyles(element)[prop]; } - /** - * @private - * @param {?} element - * @return {?} - */ - isStaticPositioned(element) { - return (this.getStyle(element, 'position') || 'static') === 'static'; - } - /** - * @private - * @param {?} element - * @return {?} - */ - offsetParent(element) { - /** @type {?} */ - let offsetParentEl = (/** @type {?} */ (element.offsetParent)) || document.documentElement; - while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) { - offsetParentEl = (/** @type {?} */ (offsetParentEl.offsetParent)); - } - return offsetParentEl || document.documentElement; - } - /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - position(element, round = true) { - /** @type {?} */ - let elPosition; - /** @type {?} */ - let parentOffset = { width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0 }; - if (this.getStyle(element, 'position') === 'fixed') { - elPosition = element.getBoundingClientRect(); - elPosition = { - top: elPosition.top, - bottom: elPosition.bottom, - left: elPosition.left, - right: elPosition.right, - height: elPosition.height, - width: elPosition.width - }; - } - else { - /** @type {?} */ - const offsetParentEl = this.offsetParent(element); - elPosition = this.offset(element, false); - if (offsetParentEl !== document.documentElement) { - parentOffset = this.offset(offsetParentEl, false); - } - parentOffset.top += offsetParentEl.clientTop; - parentOffset.left += offsetParentEl.clientLeft; - } - elPosition.top -= parentOffset.top; - elPosition.bottom -= parentOffset.top; - elPosition.left -= parentOffset.left; - elPosition.right -= parentOffset.left; - if (round) { - elPosition.top = Math.round(elPosition.top); - elPosition.bottom = Math.round(elPosition.bottom); - elPosition.left = Math.round(elPosition.left); - elPosition.right = Math.round(elPosition.right); - } - return elPosition; - } - /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - offset(element, round = true) { - /** @type {?} */ - const elBcr = element.getBoundingClientRect(); - /** @type {?} */ - const viewportOffset = { - top: window.pageYOffset - document.documentElement.clientTop, - left: window.pageXOffset - document.documentElement.clientLeft - }; - /** @type {?} */ - let elOffset = { - height: elBcr.height || element.offsetHeight, - width: elBcr.width || element.offsetWidth, - top: elBcr.top + viewportOffset.top, - bottom: elBcr.bottom + viewportOffset.top, - left: elBcr.left + viewportOffset.left, - right: elBcr.right + viewportOffset.left - }; - if (round) { - elOffset.height = Math.round(elOffset.height); - elOffset.width = Math.round(elOffset.width); - elOffset.top = Math.round(elOffset.top); - elOffset.bottom = Math.round(elOffset.bottom); - elOffset.left = Math.round(elOffset.left); - elOffset.right = Math.round(elOffset.right); - } - return elOffset; - } - /* - Return false if the element to position is outside the viewport - */ - /** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @return {?} - */ - positionElements(hostElement, targetElement, placement, appendToBody) { - const [placementPrimary = 'top', placementSecondary = 'center'] = placement.split('-'); - /** @type {?} */ - const hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false); - /** @type {?} */ - const targetElStyles = this.getAllStyles(targetElement); - /** @type {?} */ - const marginTop = parseFloat(targetElStyles.marginTop); - /** @type {?} */ - const marginBottom = parseFloat(targetElStyles.marginBottom); - /** @type {?} */ - const marginLeft = parseFloat(targetElStyles.marginLeft); - /** @type {?} */ - const marginRight = parseFloat(targetElStyles.marginRight); - /** @type {?} */ - let topPosition = 0; - /** @type {?} */ - let leftPosition = 0; - switch (placementPrimary) { - case 'top': - topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom)); - break; - case 'bottom': - topPosition = (hostElPosition.top + hostElPosition.height); - break; - case 'left': - leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight)); - break; - case 'right': - leftPosition = (hostElPosition.left + hostElPosition.width); - break; - } - switch (placementSecondary) { - case 'top': - topPosition = hostElPosition.top; - break; - case 'bottom': - topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight; - break; - case 'left': - leftPosition = hostElPosition.left; - break; - case 'right': - leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth; - break; - case 'center': - if (placementPrimary === 'top' || placementPrimary === 'bottom') { - leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2); - } - else { - topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2); - } - break; - } - /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix - // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`; - targetElement.style.transform = `translate(${Math.round(leftPosition)}px, ${Math.round(topPosition)}px)`; - // Check if the targetElement is inside the viewport - /** @type {?} */ - const targetElBCR = targetElement.getBoundingClientRect(); - /** @type {?} */ - const html = document.documentElement; - /** @type {?} */ - const windowHeight = window.innerHeight || html.clientHeight; - /** @type {?} */ - const windowWidth = window.innerWidth || html.clientWidth; - return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth && - targetElBCR.bottom <= windowHeight; - } -} -/** @type {?} */ -const placementSeparator = /\s+/; -/** @type {?} */ -const positionService = new Positioning(); -/* - * Accept the placement array and applies the appropriate placement dependent on the viewport. - * Returns the applied placement. - * In case of auto placement, placements are selected in order - * 'top', 'bottom', 'left', 'right', - * 'top-left', 'top-right', - * 'bottom-left', 'bottom-right', - * 'left-top', 'left-bottom', - * 'right-top', 'right-bottom'. - * */ -/** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @param {?=} baseClass - * @return {?} - */ -export function positionElements(hostElement, targetElement, placement, appendToBody, baseClass) { - /** @type {?} */ - let placementVals = Array.isArray(placement) ? placement : (/** @type {?} */ (placement.split(placementSeparator))); - /** @type {?} */ - const allowedPlacements = [ - 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom', - 'right-top', 'right-bottom' - ]; - /** @type {?} */ - const classList = targetElement.classList; - /** @type {?} */ - const addClassesToTarget = (/** - * @param {?} targetPlacement - * @return {?} - */ - (targetPlacement) => { - const [primary, secondary] = targetPlacement.split('-'); - /** @type {?} */ - const classes = []; - if (baseClass) { - classes.push(`${baseClass}-${primary}`); - if (secondary) { - classes.push(`${baseClass}-${primary}-${secondary}`); - } - classes.forEach((/** - * @param {?} classname - * @return {?} - */ - (classname) => { classList.add(classname); })); - } - return classes; - }); - // Remove old placement classes to avoid issues - if (baseClass) { - allowedPlacements.forEach((/** - * @param {?} placementToRemove - * @return {?} - */ - (placementToRemove) => { classList.remove(`${baseClass}-${placementToRemove}`); })); - } - // replace auto placement with other placements - /** @type {?} */ - let hasAuto = placementVals.findIndex((/** - * @param {?} val - * @return {?} - */ - val => val === 'auto')); - if (hasAuto >= 0) { - allowedPlacements.forEach((/** - * @param {?} obj - * @return {?} - */ - function (obj) { - if (placementVals.find((/** - * @param {?} val - * @return {?} - */ - val => val.search('^' + obj) !== -1)) == null) { - placementVals.splice(hasAuto++, 1, (/** @type {?} */ (obj))); - } - })); - } - // coordinates where to position - // Required for transform: - /** @type {?} */ - const style = targetElement.style; - style.position = 'absolute'; - style.top = '0'; - style.left = '0'; - style['will-change'] = 'transform'; - /** @type {?} */ - let testPlacement; - /** @type {?} */ - let isInViewport = false; - for (testPlacement of placementVals) { - /** @type {?} */ - let addedClasses = addClassesToTarget(testPlacement); - if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) { - isInViewport = true; - break; - } - // Remove the baseClasses for further calculation - if (baseClass) { - addedClasses.forEach((/** - * @param {?} classname - * @return {?} - */ - (classname) => { classList.remove(classname); })); - } - } - if (!isInViewport) { - // If nothing match, the first placement is the default one - testPlacement = placementVals[0]; - addClassesToTarget(testPlacement); - positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody); -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ZXN0UGxhY2VtZW50ID0gcGxhY2VtZW50VmFsc1swXTtcbiAgICBhZGRDbGFzc2VzVG9UYXJnZXQodGVzdFBsYWNlbWVudCk7XG4gICAgcG9zaXRpb25TZXJ2aWNlLnBvc2l0aW9uRWxlbWVudHMoaG9zdEVsZW1lbnQsIHRhcmdldEVsZW1lbnQsIHRlc3RQbGFjZW1lbnQsIGFwcGVuZFRvQm9keSk7XG4gIH1cblxuICByZXR1cm4gdGVzdFBsYWNlbWVudDtcbn1cblxuZXhwb3J0IHR5cGUgUGxhY2VtZW50ID0gJ2F1dG8nIHwgJ3RvcCcgfCAnYm90dG9tJyB8ICdsZWZ0JyB8ICdyaWdodCcgfCAndG9wLWxlZnQnIHwgJ3RvcC1yaWdodCcgfCAnYm90dG9tLWxlZnQnIHxcbiAgICAnYm90dG9tLXJpZ2h0JyB8ICdsZWZ0LXRvcCcgfCAnbGVmdC1ib3R0b20nIHwgJ3JpZ2h0LXRvcCcgfCAncmlnaHQtYm90dG9tJztcblxuZXhwb3J0IHR5cGUgUGxhY2VtZW50QXJyYXkgPSBQbGFjZW1lbnQgfCBBcnJheTxQbGFjZW1lbnQ+fCBzdHJpbmc7XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/util/scrollbar.js b/dist/ng-bootstrap/esm2015/util/scrollbar.js deleted file mode 100644 index 0a23365..0000000 --- a/dist/ng-bootstrap/esm2015/util/scrollbar.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable, Inject } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import * as i0 from "@angular/core"; -import * as i1 from "@angular/common"; -/** @type {?} */ -const noop = (/** - * @return {?} - */ -() => { }); -const ɵ0 = noop; -/** - * Utility to handle the scrollbar. - * - * It allows to compensate the lack of a vertical scrollbar by adding an - * equivalent padding on the right of the body, and to remove this compensation. - */ -export class ScrollBar { - /** - * @param {?} _document - */ - constructor(_document) { - this._document = _document; - } - /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return {?} a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - compensate() { return !this._isPresent() ? noop : this._adjustBody(this._getWidth()); } - /** - * Adds a padding of the given width on the right of the body. - * - * @private - * @param {?} width - * @return {?} a callback used to revert the padding to its previous value - */ - _adjustBody(width) { - /** @type {?} */ - const body = this._document.body; - /** @type {?} */ - const userSetPadding = body.style.paddingRight; - /** @type {?} */ - const paddingAmount = parseFloat(window.getComputedStyle(body)['padding-right']); - body.style['padding-right'] = `${paddingAmount + width}px`; - return (/** - * @return {?} - */ - () => body.style['padding-right'] = userSetPadding); - } - /** - * Tells whether a scrollbar is currently present on the body. - * - * @private - * @return {?} true if scrollbar is present, false otherwise - */ - _isPresent() { - /** @type {?} */ - const rect = this._document.body.getBoundingClientRect(); - return rect.left + rect.right < window.innerWidth; - } - /** - * Calculates and returns the width of a scrollbar. - * - * @private - * @return {?} the width of a scrollbar on this page - */ - _getWidth() { - /** @type {?} */ - const measurer = this._document.createElement('div'); - measurer.className = 'modal-scrollbar-measure'; - /** @type {?} */ - const body = this._document.body; - body.appendChild(measurer); - /** @type {?} */ - const width = measurer.getBoundingClientRect().width - measurer.clientWidth; - body.removeChild(measurer); - return width; - } -} -ScrollBar.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ -ScrollBar.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] } -]; -/** @nocollapse */ ScrollBar.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ScrollBar_Factory() { return new ScrollBar(i0.ɵɵinject(i1.DOCUMENT)); }, token: ScrollBar, providedIn: "root" }); -if (false) { - /** - * @type {?} - * @private - */ - ScrollBar.prototype._document; -} -export { ɵ0 }; -//# sourceMappingURL=data:application/json;base64,eyJ2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Y3QgPSB0aGlzLl9kb2N1bWVudC5ib2R5LmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpO1xuICAgIHJldHVybiByZWN0LmxlZnQgKyByZWN0LnJpZ2h0IDwgd2luZG93LmlubmVyV2lkdGg7XG4gIH1cblxuICAvKipcbiAgICogQ2FsY3VsYXRlcyBhbmQgcmV0dXJucyB0aGUgd2lkdGggb2YgYSBzY3JvbGxiYXIuXG4gICAqXG4gICAqIEByZXR1cm4gdGhlIHdpZHRoIG9mIGEgc2Nyb2xsYmFyIG9uIHRoaXMgcGFnZVxuICAgKi9cbiAgcHJpdmF0ZSBfZ2V0V2lkdGgoKTogbnVtYmVyIHtcbiAgICBjb25zdCBtZWFzdXJlciA9IHRoaXMuX2RvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpO1xuICAgIG1lYXN1cmVyLmNsYXNzTmFtZSA9ICdtb2RhbC1zY3JvbGxiYXItbWVhc3VyZSc7XG5cbiAgICBjb25zdCBib2R5ID0gdGhpcy5fZG9jdW1lbnQuYm9keTtcbiAgICBib2R5LmFwcGVuZENoaWxkKG1lYXN1cmVyKTtcbiAgICBjb25zdCB3aWR0aCA9IG1lYXN1cmVyLmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpLndpZHRoIC0gbWVhc3VyZXIuY2xpZW50V2lkdGg7XG4gICAgYm9keS5yZW1vdmVDaGlsZChtZWFzdXJlcik7XG5cbiAgICByZXR1cm4gd2lkdGg7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/util/triggers.js b/dist/ng-bootstrap/esm2015/util/triggers.js deleted file mode 100644 index d39b7f4..0000000 --- a/dist/ng-bootstrap/esm2015/util/triggers.js +++ /dev/null @@ -1,237 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Observable, merge } from 'rxjs'; -import { share, filter, delay, map } from 'rxjs/operators'; -export class Trigger { - /** - * @param {?} open - * @param {?=} close - */ - constructor(open, close) { - this.open = open; - this.close = close; - if (!close) { - this.close = open; - } - } - /** - * @return {?} - */ - isManual() { return this.open === 'manual' || this.close === 'manual'; } -} -if (false) { - /** @type {?} */ - Trigger.prototype.open; - /** @type {?} */ - Trigger.prototype.close; -} -/** @type {?} */ -const DEFAULT_ALIASES = { - 'hover': ['mouseenter', 'mouseleave'], - 'focus': ['focusin', 'focusout'], -}; -/** - * @param {?} triggers - * @param {?=} aliases - * @return {?} - */ -export function parseTriggers(triggers, aliases = DEFAULT_ALIASES) { - /** @type {?} */ - const trimmedTriggers = (triggers || '').trim(); - if (trimmedTriggers.length === 0) { - return []; - } - /** @type {?} */ - const parsedTriggers = trimmedTriggers.split(/\s+/).map((/** - * @param {?} trigger - * @return {?} - */ - trigger => trigger.split(':'))).map((/** - * @param {?} triggerPair - * @return {?} - */ - (triggerPair) => { - /** @type {?} */ - let alias = aliases[triggerPair[0]] || triggerPair; - return new Trigger(alias[0], alias[1]); - })); - /** @type {?} */ - const manualTriggers = parsedTriggers.filter((/** - * @param {?} triggerPair - * @return {?} - */ - triggerPair => triggerPair.isManual())); - if (manualTriggers.length > 1) { - throw 'Triggers parse error: only one manual trigger is allowed'; - } - if (manualTriggers.length === 1 && parsedTriggers.length > 1) { - throw 'Triggers parse error: manual trigger can\'t be mixed with other triggers'; - } - return parsedTriggers; -} -/** - * @param {?} renderer - * @param {?} nativeElement - * @param {?} triggers - * @param {?} isOpenedFn - * @return {?} - */ -export function observeTriggers(renderer, nativeElement, triggers, isOpenedFn) { - return new Observable((/** - * @param {?} subscriber - * @return {?} - */ - subscriber => { - /** @type {?} */ - const listeners = []; - /** @type {?} */ - const openFn = (/** - * @return {?} - */ - () => subscriber.next(true)); - /** @type {?} */ - const closeFn = (/** - * @return {?} - */ - () => subscriber.next(false)); - /** @type {?} */ - const toggleFn = (/** - * @return {?} - */ - () => subscriber.next(!isOpenedFn())); - triggers.forEach((/** - * @param {?} trigger - * @return {?} - */ - (trigger) => { - if (trigger.open === trigger.close) { - listeners.push(renderer.listen(nativeElement, trigger.open, toggleFn)); - } - else { - listeners.push(renderer.listen(nativeElement, trigger.open, openFn), renderer.listen(nativeElement, trigger.close, closeFn)); - } - })); - return (/** - * @return {?} - */ - () => { listeners.forEach((/** - * @param {?} unsubscribeFn - * @return {?} - */ - unsubscribeFn => unsubscribeFn())); }); - })); -} -/** @type {?} */ -const delayOrNoop = (/** - * @template T - * @param {?} time - * @return {?} - */ -(time) => time > 0 ? delay(time) : (/** - * @param {?} a - * @return {?} - */ -(a) => a)); -const ɵ0 = delayOrNoop; -/** - * @param {?} openDelay - * @param {?} closeDelay - * @param {?} isOpenedFn - * @return {?} - */ -export function triggerDelay(openDelay, closeDelay, isOpenedFn) { - return (/** - * @param {?} input$ - * @return {?} - */ - (input$) => { - /** @type {?} */ - let pending = null; - /** @type {?} */ - const filteredInput$ = input$.pipe(map((/** - * @param {?} open - * @return {?} - */ - open => ({ open }))), filter((/** - * @param {?} event - * @return {?} - */ - event => { - /** @type {?} */ - const currentlyOpen = isOpenedFn(); - if (currentlyOpen !== event.open && (!pending || pending.open === currentlyOpen)) { - pending = event; - return true; - } - if (pending && pending.open !== event.open) { - pending = null; - } - return false; - })), share()); - /** @type {?} */ - const delayedOpen$ = filteredInput$.pipe(filter((/** - * @param {?} event - * @return {?} - */ - event => event.open)), delayOrNoop(openDelay)); - /** @type {?} */ - const delayedClose$ = filteredInput$.pipe(filter((/** - * @param {?} event - * @return {?} - */ - event => !event.open)), delayOrNoop(closeDelay)); - return merge(delayedOpen$, delayedClose$) - .pipe(filter((/** - * @param {?} event - * @return {?} - */ - event => { - if (event === pending) { - pending = null; - return event.open !== isOpenedFn(); - } - return false; - })), map((/** - * @param {?} event - * @return {?} - */ - event => event.open))); - }); -} -/** - * @param {?} renderer - * @param {?} nativeElement - * @param {?} triggers - * @param {?} isOpenedFn - * @param {?} openFn - * @param {?} closeFn - * @param {?=} openDelay - * @param {?=} closeDelay - * @return {?} - */ -export function listenToTriggers(renderer, nativeElement, triggers, isOpenedFn, openFn, closeFn, openDelay = 0, closeDelay = 0) { - /** @type {?} */ - const parsedTriggers = parseTriggers(triggers); - if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) { - return (/** - * @return {?} - */ - () => { }); - } - /** @type {?} */ - const subscription = observeTriggers(renderer, nativeElement, parsedTriggers, isOpenedFn) - .pipe(triggerDelay(openDelay, closeDelay, isOpenedFn)) - .subscribe((/** - * @param {?} open - * @return {?} - */ - open => (open ? openFn() : closeFn()))); - return (/** - * @return {?} - */ - () => subscription.unsubscribe()); -} -export { ɵ0 }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJpZ2dlcnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ1dGlsL3RyaWdnZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFFLEtBQUssRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUN2QyxPQUFPLEVBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsR0FBRyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFekQsTUFBTSxPQUFPLE9BQU87Ozs7O0lBQ2xCLFlBQW1CLElBQVksRUFBUyxLQUFjO1FBQW5DLFNBQUksR0FBSixJQUFJLENBQVE7UUFBUyxVQUFLLEdBQUwsS0FBSyxDQUFTO1FBQ3BELElBQUksQ0FBQyxLQUFLLEVBQUU7WUFDVixJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksQ0FBQztTQUNuQjtJQUNILENBQUM7Ozs7SUFFRCxRQUFRLEtBQUssT0FBTyxJQUFJLENBQUMsSUFBSSxLQUFLLFFBQVEsSUFBSSxJQUFJLENBQ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BlbiA9PT0gY3VycmVudGx5T3BlbikpIHtcbiAgICAgICAgICAgIHBlbmRpbmcgPSBldmVudDtcbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAocGVuZGluZyAmJiBwZW5kaW5nLm9wZW4gIT09IGV2ZW50Lm9wZW4pIHtcbiAgICAgICAgICAgIHBlbmRpbmcgPSBudWxsO1xuICAgICAgICAgIH1cbiAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH0pLFxuICAgICAgICBzaGFyZSgpKTtcbiAgICBjb25zdCBkZWxheWVkT3BlbiQgPSBmaWx0ZXJlZElucHV0JC5waXBlKGZpbHRlcihldmVudCA9PiBldmVudC5vcGVuKSwgZGVsYXlPck5vb3Aob3BlbkRlbGF5KSk7XG4gICAgY29uc3QgZGVsYXllZENsb3NlJCA9IGZpbHRlcmVkSW5wdXQkLnBpcGUoZmlsdGVyKGV2ZW50ID0+ICFldmVudC5vcGVuKSwgZGVsYXlPck5vb3AoY2xvc2VEZWxheSkpO1xuICAgIHJldHVybiBtZXJnZShkZWxheWVkT3BlbiQsIGRlbGF5ZWRDbG9zZSQpXG4gICAgICAgIC5waXBlKFxuICAgICAgICAgICAgZmlsdGVyKGV2ZW50ID0+IHtcbiAgICAgICAgICAgICAgaWYgKGV2ZW50ID09PSBwZW5kaW5nKSB7XG4gICAgICAgICAgICAgICAgcGVuZGluZyA9IG51bGw7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGV2ZW50Lm9wZW4gIT09IGlzT3BlbmVkRm4oKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIG1hcChldmVudCA9PiBldmVudC5vcGVuKSk7XG4gIH07XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBsaXN0ZW5Ub1RyaWdnZXJzKFxuICAgIHJlbmRlcmVyOiBhbnksIG5hdGl2ZUVsZW1lbnQ6IGFueSwgdHJpZ2dlcnM6IHN0cmluZywgaXNPcGVuZWRGbjogKCkgPT4gYm9vbGVhbiwgb3BlbkZuLCBjbG9zZUZuLCBvcGVuRGVsYXkgPSAwLFxuICAgIGNsb3NlRGVsYXkgPSAwKSB7XG4gIGNvbnN0IHBhcnNlZFRyaWdnZXJzID0gcGFyc2VUcmlnZ2Vycyh0cmlnZ2Vycyk7XG5cbiAgaWYgKHBhcnNlZFRyaWdnZXJzLmxlbmd0aCA9PT0gMSAmJiBwYXJzZWRUcmlnZ2Vyc1swXS5pc01hbnVhbCgpKSB7XG4gICAgcmV0dXJuICgpID0+IHt9O1xuICB9XG5cbiAgY29uc3Qgc3Vic2NyaXB0aW9uID0gb2JzZXJ2ZVRyaWdnZXJzKHJlbmRlcmVyLCBuYXRpdmVFbGVtZW50LCBwYXJzZWRUcmlnZ2VycywgaXNPcGVuZWRGbilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIC5waXBlKHRyaWdnZXJEZWxheShvcGVuRGVsYXksIGNsb3NlRGVsYXksIGlzT3BlbmVkRm4pKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgLnN1YnNjcmliZShvcGVuID0+IChvcGVuID8gb3BlbkZuKCkgOiBjbG9zZUZuKCkpKTtcblxuICByZXR1cm4gKCkgPT4gc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm2015/util/util.js b/dist/ng-bootstrap/esm2015/util/util.js deleted file mode 100644 index 2778576..0000000 --- a/dist/ng-bootstrap/esm2015/util/util.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} value - * @return {?} - */ -export function toInteger(value) { - return parseInt(`${value}`, 10); -} -/** - * @param {?} value - * @return {?} - */ -export function toString(value) { - return (value !== undefined && value !== null) ? `${value}` : ''; -} -/** - * @param {?} value - * @param {?} max - * @param {?=} min - * @return {?} - */ -export function getValueInRange(value, max, min = 0) { - return Math.max(Math.min(value, max), min); -} -/** - * @param {?} value - * @return {?} - */ -export function isString(value) { - return typeof value === 'string'; -} -/** - * @param {?} value - * @return {?} - */ -export function isNumber(value) { - return !isNaN(toInteger(value)); -} -/** - * @param {?} value - * @return {?} - */ -export function isInteger(value) { - return typeof value === 'number' && isFinite(value) && Math.floor(value) === value; -} -/** - * @param {?} value - * @return {?} - */ -export function isDefined(value) { - return value !== undefined && value !== null; -} -/** - * @param {?} value - * @return {?} - */ -export function padNumber(value) { - if (isNumber(value)) { - return `0${value}`.slice(-2); - } - else { - return ''; - } -} -/** - * @param {?} text - * @return {?} - */ -export function regExpEscape(text) { - return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); -} -/** - * @param {?} element - * @param {?} className - * @return {?} - */ -export function hasClassName(element, className) { - return element && element.className && element.className.split && - element.className.split(/\s+/).indexOf(className) >= 0; -} -if (typeof Element !== 'undefined' && !Element.prototype.closest) { - // Polyfill for ie10+ - if (!Element.prototype.matches) { - // IE uses the non-standard name: msMatchesSelector - Element.prototype.matches = ((/** @type {?} */ (Element.prototype))).msMatchesSelector || Element.prototype.webkitMatchesSelector; - } - Element.prototype.closest = (/** - * @param {?} s - * @return {?} - */ - function (s) { - /** @type {?} */ - let el = this; - if (!document.documentElement.contains(el)) { - return null; - } - do { - if (el.matches(s)) { - return el; - } - el = el.parentElement || el.parentNode; - } while (el !== null && el.nodeType === 1); - return null; - }); -} -/** - * @param {?} element - * @param {?} selector - * @return {?} - */ -export function closest(element, selector) { - if (!selector) { - return null; - } - return element.closest(selector); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2V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ICAgfVxuICAgIGRvIHtcbiAgICAgIGlmIChlbC5tYXRjaGVzKHMpKSB7XG4gICAgICAgIHJldHVybiBlbDtcbiAgICAgIH1cbiAgICAgIGVsID0gZWwucGFyZW50RWxlbWVudCB8fCBlbC5wYXJlbnROb2RlO1xuICAgIH0gd2hpbGUgKGVsICE9PSBudWxsICYmIGVsLm5vZGVUeXBlID09PSAxKTtcbiAgICByZXR1cm4gbnVsbDtcbiAgfTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNsb3Nlc3QoZWxlbWVudDogSFRNTEVsZW1lbnQsIHNlbGVjdG9yKTogSFRNTEVsZW1lbnQge1xuICBpZiAoIXNlbGVjdG9yKSB7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICByZXR1cm4gZWxlbWVudC5jbG9zZXN0KHNlbGVjdG9yKTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/accordion/accordion-config.js b/dist/ng-bootstrap/esm5/accordion/accordion-config.js deleted file mode 100644 index d083961..0000000 --- a/dist/ng-bootstrap/esm5/accordion/accordion-config.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all accordions used in the application. - */ -var NgbAccordionConfig = /** @class */ (function () { - function NgbAccordionConfig() { - this.closeOthers = false; - } - NgbAccordionConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbAccordionConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbAccordionConfig_Factory() { return new NgbAccordionConfig(); }, token: NgbAccordionConfig, providedIn: "root" }); - return NgbAccordionConfig; -}()); -export { NgbAccordionConfig }; -if (false) { - /** @type {?} */ - NgbAccordionConfig.prototype.closeOthers; - /** @type {?} */ - NgbAccordionConfig.prototype.type; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImFjY29yZGlvbi9hY2NvcmRpb24tY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVF6QztJQUFBO1FBRUUsZ0JBQVcsR0FBRyxLQUFLLENBQUM7S0FFckI7O2dCQUpBLFVBQVUsU0FBQyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUM7Ozs2QkFSaEM7Q0FZQyxBQUpELElBSUM7U0FIWSxrQkFBa0I7OztJQUM3Qix5Q0FBb0I7O0lBQ3BCLGtDQUFhIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtJbmplY3RhYmxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBBIGNvbmZpZ3VyYXRpb24gc2VydmljZSBmb3IgdGhlIFtOZ2JBY2NvcmRpb25dKCMvY29tcG9uZW50cy9hY2NvcmRpb24vYXBpI05nYkFjY29yZGlvbikgY29tcG9uZW50LlxuICpcbiAqIFlvdSBjYW4gaW5qZWN0IHRoaXMgc2VydmljZSwgdHlwaWNhbGx5IGluIHlvdXIgcm9vdCBjb21wb25lbnQsIGFuZCBjdXN0b21pemUgaXRzIHByb3BlcnRpZXNcbiAqIHRvIHByb3ZpZGUgZGVmYXVsdCB2YWx1ZXMgZm9yIGFsbCBhY2NvcmRpb25zIHVzZWQgaW4gdGhlIGFwcGxpY2F0aW9uLlxuICovXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBOZ2JBY2NvcmRpb25Db25maWcge1xuICBjbG9zZU90aGVycyA9IGZhbHNlO1xuICB0eXBlOiBzdHJpbmc7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/accordion/accordion.js b/dist/ng-bootstrap/esm5/accordion/accordion.js deleted file mode 100644 index 7a1c2e8..0000000 --- a/dist/ng-bootstrap/esm5/accordion/accordion.js +++ /dev/null @@ -1,593 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, ContentChildren, Directive, EventEmitter, Host, Input, Optional, Output, QueryList, TemplateRef } from '@angular/core'; -import { isString } from '../util/util'; -import { NgbAccordionConfig } from './accordion-config'; -/** @type {?} */ -var nextId = 0; -/** - * The context for the [NgbPanelHeader](#/components/accordion/api#NgbPanelHeader) template - * - * \@since 4.1.0 - * @record - */ -export function NgbPanelHeaderContext() { } -if (false) { - /** - * `True` if current panel is opened - * @type {?} - */ - NgbPanelHeaderContext.prototype.opened; -} -/** - * A directive that wraps an accordion panel header with any HTML markup and a toggling button - * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle). - * See the [header customization demo](#/components/accordion/examples#header) for more details. - * - * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title. - * - * \@since 4.1.0 - */ -var NgbPanelHeader = /** @class */ (function () { - function NgbPanelHeader(templateRef) { - this.templateRef = templateRef; - } - NgbPanelHeader.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelHeader]' },] } - ]; - /** @nocollapse */ - NgbPanelHeader.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPanelHeader; -}()); -export { NgbPanelHeader }; -if (false) { - /** @type {?} */ - NgbPanelHeader.prototype.templateRef; -} -/** - * A directive that wraps only the panel title with HTML markup inside. - * - * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header. - */ -var NgbPanelTitle = /** @class */ (function () { - function NgbPanelTitle(templateRef) { - this.templateRef = templateRef; - } - NgbPanelTitle.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelTitle]' },] } - ]; - /** @nocollapse */ - NgbPanelTitle.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPanelTitle; -}()); -export { NgbPanelTitle }; -if (false) { - /** @type {?} */ - NgbPanelTitle.prototype.templateRef; -} -/** - * A directive that wraps the accordion panel content. - */ -var NgbPanelContent = /** @class */ (function () { - function NgbPanelContent(templateRef) { - this.templateRef = templateRef; - } - NgbPanelContent.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelContent]' },] } - ]; - /** @nocollapse */ - NgbPanelContent.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPanelContent; -}()); -export { NgbPanelContent }; -if (false) { - /** @type {?} */ - NgbPanelContent.prototype.templateRef; -} -/** - * A directive that wraps an individual accordion panel with title and collapsible content. - */ -var NgbPanel = /** @class */ (function () { - function NgbPanel() { - /** - * If `true`, the panel is disabled an can't be toggled. - */ - this.disabled = false; - /** - * An optional id for the panel that must be unique on the page. - * - * If not provided, it will be auto-generated in the `ngb-panel-xxx` format. - */ - this.id = "ngb-panel-" + nextId++; - this.isOpen = false; - } - /** - * @return {?} - */ - NgbPanel.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - // We are using @ContentChildren instead of @ContentChild as in the Angular version being used - // only @ContentChildren allows us to specify the {descendants: false} option. - // Without {descendants: false} we are hitting bugs described in: - // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240 - this.titleTpl = this.titleTpls.first; - this.headerTpl = this.headerTpls.first; - this.contentTpl = this.contentTpls.first; - }; - NgbPanel.decorators = [ - { type: Directive, args: [{ selector: 'ngb-panel' },] } - ]; - NgbPanel.propDecorators = { - disabled: [{ type: Input }], - id: [{ type: Input }], - title: [{ type: Input }], - type: [{ type: Input }], - titleTpls: [{ type: ContentChildren, args: [NgbPanelTitle, { descendants: false },] }], - headerTpls: [{ type: ContentChildren, args: [NgbPanelHeader, { descendants: false },] }], - contentTpls: [{ type: ContentChildren, args: [NgbPanelContent, { descendants: false },] }] - }; - return NgbPanel; -}()); -export { NgbPanel }; -if (false) { - /** - * If `true`, the panel is disabled an can't be toggled. - * @type {?} - */ - NgbPanel.prototype.disabled; - /** - * An optional id for the panel that must be unique on the page. - * - * If not provided, it will be auto-generated in the `ngb-panel-xxx` format. - * @type {?} - */ - NgbPanel.prototype.id; - /** @type {?} */ - NgbPanel.prototype.isOpen; - /** - * The panel title. - * - * You can alternatively use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to set panel title. - * @type {?} - */ - NgbPanel.prototype.title; - /** - * Type of the current panel. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - * @type {?} - */ - NgbPanel.prototype.type; - /** @type {?} */ - NgbPanel.prototype.titleTpl; - /** @type {?} */ - NgbPanel.prototype.headerTpl; - /** @type {?} */ - NgbPanel.prototype.contentTpl; - /** @type {?} */ - NgbPanel.prototype.titleTpls; - /** @type {?} */ - NgbPanel.prototype.headerTpls; - /** @type {?} */ - NgbPanel.prototype.contentTpls; -} -/** - * An event emitted right before toggling an accordion panel. - * @record - */ -export function NgbPanelChangeEvent() { } -if (false) { - /** - * The id of the accordion panel that is being toggled. - * @type {?} - */ - NgbPanelChangeEvent.prototype.panelId; - /** - * The next state of the panel. - * - * `true` if it will be opened, `false` if closed. - * @type {?} - */ - NgbPanelChangeEvent.prototype.nextState; - /** - * Calling this function will prevent panel toggling. - * @type {?} - */ - NgbPanelChangeEvent.prototype.preventDefault; -} -/** - * Accordion is a collection of collapsible panels (bootstrap cards). - * - * It can ensure only one panel is opened at a time and allows to customize panel - * headers. - */ -var NgbAccordion = /** @class */ (function () { - function NgbAccordion(config) { - /** - * An array or comma separated strings of panel ids that should be opened **initially**. - * - * For subsequent changes use methods like `expand()`, `collapse()`, etc. and - * the `(panelChange)` event. - */ - this.activeIds = []; - /** - * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed. - */ - this.destroyOnHide = true; - /** - * Event emitted right before the panel toggle happens. - * - * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details. - */ - this.panelChange = new EventEmitter(); - this.type = config.type; - this.closeOtherPanels = config.closeOthers; - } - /** - * Checks if a panel with a given id is expanded. - */ - /** - * Checks if a panel with a given id is expanded. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.isExpanded = /** - * Checks if a panel with a given id is expanded. - * @param {?} panelId - * @return {?} - */ - function (panelId) { return this.activeIds.indexOf(panelId) > -1; }; - /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - */ - /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.expand = /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - * @param {?} panelId - * @return {?} - */ - function (panelId) { this._changeOpenState(this._findPanelById(panelId), true); }; - /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - */ - /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - * @return {?} - */ - NgbAccordion.prototype.expandAll = /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - * @return {?} - */ - function () { - var _this = this; - if (this.closeOtherPanels) { - if (this.activeIds.length === 0 && this.panels.length) { - this._changeOpenState(this.panels.first, true); - } - } - else { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return _this._changeOpenState(panel, true); })); - } - }; - /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - */ - /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.collapse = /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - * @param {?} panelId - * @return {?} - */ - function (panelId) { this._changeOpenState(this._findPanelById(panelId), false); }; - /** - * Collapses all opened panels. - */ - /** - * Collapses all opened panels. - * @return {?} - */ - NgbAccordion.prototype.collapseAll = /** - * Collapses all opened panels. - * @return {?} - */ - function () { - var _this = this; - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { _this._changeOpenState(panel, false); })); - }; - /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - */ - /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.toggle = /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - * @param {?} panelId - * @return {?} - */ - function (panelId) { - /** @type {?} */ - var panel = this._findPanelById(panelId); - if (panel) { - this._changeOpenState(panel, !panel.isOpen); - } - }; - /** - * @return {?} - */ - NgbAccordion.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - var _this = this; - // active id updates - if (isString(this.activeIds)) { - this.activeIds = this.activeIds.split(/\s*,\s*/); - } - // update panels open states - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return panel.isOpen = !panel.disabled && _this.activeIds.indexOf(panel.id) > -1; })); - // closeOthers updates - if (this.activeIds.length > 1 && this.closeOtherPanels) { - this._closeOthers(this.activeIds[0]); - this._updateActiveIds(); - } - }; - /** - * @private - * @param {?} panel - * @param {?} nextState - * @return {?} - */ - NgbAccordion.prototype._changeOpenState = /** - * @private - * @param {?} panel - * @param {?} nextState - * @return {?} - */ - function (panel, nextState) { - if (panel && !panel.disabled && panel.isOpen !== nextState) { - /** @type {?} */ - var defaultPrevented_1 = false; - this.panelChange.emit({ panelId: panel.id, nextState: nextState, preventDefault: (/** - * @return {?} - */ - function () { defaultPrevented_1 = true; }) }); - if (!defaultPrevented_1) { - panel.isOpen = nextState; - if (nextState && this.closeOtherPanels) { - this._closeOthers(panel.id); - } - this._updateActiveIds(); - } - } - }; - /** - * @private - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype._closeOthers = /** - * @private - * @param {?} panelId - * @return {?} - */ - function (panelId) { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { - if (panel.id !== panelId) { - panel.isOpen = false; - } - })); - }; - /** - * @private - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype._findPanelById = /** - * @private - * @param {?} panelId - * @return {?} - */ - function (panelId) { return this.panels.find((/** - * @param {?} p - * @return {?} - */ - function (p) { return p.id === panelId; })); }; - /** - * @private - * @return {?} - */ - NgbAccordion.prototype._updateActiveIds = /** - * @private - * @return {?} - */ - function () { - this.activeIds = this.panels.filter((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return panel.isOpen && !panel.disabled; })).map((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return panel.id; })); - }; - NgbAccordion.decorators = [ - { type: Component, args: [{ - selector: 'ngb-accordion', - exportAs: 'ngbAccordion', - host: { 'class': 'accordion', 'role': 'tablist', '[attr.aria-multiselectable]': '!closeOtherPanels' }, - template: "\n \n \n \n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n " - }] } - ]; - /** @nocollapse */ - NgbAccordion.ctorParameters = function () { return [ - { type: NgbAccordionConfig } - ]; }; - NgbAccordion.propDecorators = { - panels: [{ type: ContentChildren, args: [NgbPanel,] }], - activeIds: [{ type: Input }], - closeOtherPanels: [{ type: Input, args: ['closeOthers',] }], - destroyOnHide: [{ type: Input }], - type: [{ type: Input }], - panelChange: [{ type: Output }] - }; - return NgbAccordion; -}()); -export { NgbAccordion }; -if (false) { - /** @type {?} */ - NgbAccordion.prototype.panels; - /** - * An array or comma separated strings of panel ids that should be opened **initially**. - * - * For subsequent changes use methods like `expand()`, `collapse()`, etc. and - * the `(panelChange)` event. - * @type {?} - */ - NgbAccordion.prototype.activeIds; - /** - * If `true`, only one panel could be opened at a time. - * - * Opening a new panel will close others. - * @type {?} - */ - NgbAccordion.prototype.closeOtherPanels; - /** - * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed. - * @type {?} - */ - NgbAccordion.prototype.destroyOnHide; - /** - * Type of panels. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - * @type {?} - */ - NgbAccordion.prototype.type; - /** - * Event emitted right before the panel toggle happens. - * - * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details. - * @type {?} - */ - NgbAccordion.prototype.panelChange; -} -/** - * A directive to put on a button that toggles panel opening and closing. - * - * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) - * - * \@since 4.1.0 - */ -var NgbPanelToggle = /** @class */ (function () { - function NgbPanelToggle(accordion, panel) { - this.accordion = accordion; - this.panel = panel; - } - Object.defineProperty(NgbPanelToggle.prototype, "ngbPanelToggle", { - set: /** - * @param {?} panel - * @return {?} - */ - function (panel) { - if (panel) { - this.panel = panel; - } - }, - enumerable: true, - configurable: true - }); - NgbPanelToggle.decorators = [ - { type: Directive, args: [{ - selector: 'button[ngbPanelToggle]', - host: { - 'type': 'button', - '[disabled]': 'panel.disabled', - '[class.collapsed]': '!panel.isOpen', - '[attr.aria-expanded]': 'panel.isOpen', - '[attr.aria-controls]': 'panel.id', - '(click)': 'accordion.toggle(panel.id)' - } - },] } - ]; - /** @nocollapse */ - NgbPanelToggle.ctorParameters = function () { return [ - { type: NgbAccordion }, - { type: NgbPanel, decorators: [{ type: Optional }, { type: Host }] } - ]; }; - NgbPanelToggle.propDecorators = { - ngbPanelToggle: [{ type: Input }] - }; - return NgbPanelToggle; -}()); -export { NgbPanelToggle }; -if (false) { - /** @type {?} */ - NgbP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VxufVxuXG4vKipcbiAqIEEgZGlyZWN0aXZlIHRvIHB1dCBvbiBhIGJ1dHRvbiB0aGF0IHRvZ2dsZXMgcGFuZWwgb3BlbmluZyBhbmQgY2xvc2luZy5cbiAqXG4gKiBUbyBiZSB1c2VkIGluc2lkZSB0aGUgW2BOZ2JQYW5lbEhlYWRlcmBdKCMvY29tcG9uZW50cy9hY2NvcmRpb24vYXBpI05nYlBhbmVsSGVhZGVyKVxuICpcbiAqIEBzaW5jZSA0LjEuMFxuICovXG5ARGlyZWN0aXZlKHtcbiAgc2VsZWN0b3I6ICdidXR0b25bbmdiUGFuZWxUb2dnbGVdJyxcbiAgaG9zdDoge1xuICAgICd0eXBlJzogJ2J1dHRvbicsXG4gICAgJ1tkaXNhYmxlZF0nOiAncGFuZWwuZGlzYWJsZWQnLFxuICAgICdbY2xhc3MuY29sbGFwc2VkXSc6ICchcGFuZWwuaXNPcGVuJyxcbiAgICAnW2F0dHIuYXJpYS1leHBhbmRlZF0nOiAncGFuZWwuaXNPcGVuJyxcbiAgICAnW2F0dHIuYXJpYS1jb250cm9sc10nOiAncGFuZWwuaWQnLFxuICAgICcoY2xpY2spJzogJ2FjY29yZGlvbi50b2dnbGUocGFuZWwuaWQpJ1xuICB9XG59KVxuZXhwb3J0IGNsYXNzIE5nYlBhbmVsVG9nZ2xlIHtcbiAgQElucHV0KClcbiAgc2V0IG5nYlBhbmVsVG9nZ2xlKHBhbmVsOiBOZ2JQYW5lbCkge1xuICAgIGlmIChwYW5lbCkge1xuICAgICAgdGhpcy5wYW5lbCA9IHBhbmVsO1xuICAgIH1cbiAgfVxuXG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBhY2NvcmRpb246IE5nYkFjY29yZGlvbiwgQE9wdGlvbmFsKCkgQEhvc3QoKSBwdWJsaWMgcGFuZWw6IE5nYlBhbmVsKSB7fVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/accordion/accordion.module.js b/dist/ng-bootstrap/esm5/accordion/accordion.module.js deleted file mode 100644 index 399ff0d..0000000 --- a/dist/ng-bootstrap/esm5/accordion/accordion.module.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle } from './accordion'; -export { NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle } from './accordion'; -export { NgbAccordionConfig } from './accordion-config'; -/** @type {?} */ -var NGB_ACCORDION_DIRECTIVES = [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle]; -var NgbAccordionModule = /** @class */ (function () { - function NgbAccordionModule() { - } - NgbAccordionModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_ACCORDION_DIRECTIVES, exports: NGB_ACCORDION_DIRECTIVES, imports: [CommonModule] },] } - ]; - return NgbAccordionModule; -}()); -export { NgbAccordionModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImFjY29yZGlvbi9hY2NvcmRpb24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsWUFBWSxFQUFFLFFBQVEsRUFBRSxhQUFhLEVBQUUsZUFBZSxFQUFFLGNBQ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mdiUGFuZWxUb2dnbGVcbn0gZnJvbSAnLi9hY2NvcmRpb24nO1xuZXhwb3J0IHtOZ2JBY2NvcmRpb25Db25maWd9IGZyb20gJy4vYWNjb3JkaW9uLWNvbmZpZyc7XG5cbmNvbnN0IE5HQl9BQ0NPUkRJT05fRElSRUNUSVZFUyA9XG4gICAgW05nYkFjY29yZGlvbiwgTmdiUGFuZWwsIE5nYlBhbmVsVGl0bGUsIE5nYlBhbmVsQ29udGVudCwgTmdiUGFuZWxIZWFkZXIsIE5nYlBhbmVsVG9nZ2xlXTtcblxuQE5nTW9kdWxlKHtkZWNsYXJhdGlvbnM6IE5HQl9BQ0NPUkRJT05fRElSRUNUSVZFUywgZXhwb3J0czogTkdCX0FDQ09SRElPTl9ESVJFQ1RJVkVTLCBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXX0pXG5leHBvcnQgY2xhc3MgTmdiQWNjb3JkaW9uTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/alert/alert-config.js b/dist/ng-bootstrap/esm5/alert/alert-config.js deleted file mode 100644 index 6b6b2f3..0000000 --- a/dist/ng-bootstrap/esm5/alert/alert-config.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ -var NgbAlertConfig = /** @class */ (function () { - function NgbAlertConfig() { - this.dismissible = true; - this.type = 'warning'; - } - NgbAlertConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbAlertConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbAlertConfig_Factory() { return new NgbAlertConfig(); }, token: NgbAlertConfig, providedIn: "root" }); - return NgbAlertConfig; -}()); -export { NgbAlertConfig }; -if (false) { - /** @type {?} */ - NgbAlertConfig.prototype.dismissible; - /** @type {?} */ - NgbAlertConfig.prototype.type; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiYWxlcnQvYWxlcnQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVF6QztJQUFBO1FBRUUsZ0JBQVcsR0FBRyxJQUFJLENBQUM7UUFDbkIsU0FBSSxHQUFHLFNBQVMsQ0FBQztLQUNsQjs7Z0JBSkEsVUFBVSxTQUFDLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBQzs7O3lCQVJoQztDQVlDLEFBSkQsSUFJQztTQUhZLGNBQWM7OztJQUN6QixxQ0FBbUI7O0lBQ25CLDhCQUFpQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7SW5qZWN0YWJsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKlxuICogQSBjb25maWd1cmF0aW9uIHNlcnZpY2UgZm9yIHRoZSBbTmdiQWxlcnRdKCMvY29tcG9uZW50cy9hbGVydC9hcGkjTmdiQWxlcnQpIGNvbXBvbmVudC5cbiAqXG4gKiBZb3UgY2FuIGluamVjdCB0aGlzIHNlcnZpY2UsIHR5cGljYWxseSBpbiB5b3VyIHJvb3QgY29tcG9uZW50LCBhbmQgY3VzdG9taXplIGl0cyBwcm9wZXJ0aWVzXG4gKiB0byBwcm92aWRlIGRlZmF1bHQgdmFsdWVzIGZvciBhbGwgYWxlcnRzIHVzZWQgaW4gdGhlIGFwcGxpY2F0aW9uLlxuICovXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBOZ2JBbGVydENvbmZpZyB7XG4gIGRpc21pc3NpYmxlID0gdHJ1ZTtcbiAgdHlwZSA9ICd3YXJuaW5nJztcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/alert/alert.js b/dist/ng-bootstrap/esm5/alert/alert.js deleted file mode 100644 index ca8d2f5..0000000 --- a/dist/ng-bootstrap/esm5/alert/alert.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, Renderer2, ElementRef, ViewEncapsulation } from '@angular/core'; -import { NgbAlertConfig } from './alert-config'; -/** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ -var NgbAlert = /** @class */ (function () { - function NgbAlert(config, _renderer, _element) { - this._renderer = _renderer; - this._element = _element; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - this.close = new EventEmitter(); - this.dismissible = config.dismissible; - this.type = config.type; - } - /** - * @return {?} - */ - NgbAlert.prototype.closeHandler = /** - * @return {?} - */ - function () { this.close.emit(null); }; - /** - * @param {?} changes - * @return {?} - */ - NgbAlert.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - /** @type {?} */ - var typeChange = changes['type']; - if (typeChange && !typeChange.firstChange) { - this._renderer.removeClass(this._element.nativeElement, "alert-" + typeChange.previousValue); - this._renderer.addClass(this._element.nativeElement, "alert-" + typeChange.currentValue); - } - }; - /** - * @return {?} - */ - NgbAlert.prototype.ngOnInit = /** - * @return {?} - */ - function () { this._renderer.addClass(this._element.nativeElement, "alert-" + this.type); }; - NgbAlert.decorators = [ - { type: Component, args: [{ - selector: 'ngb-alert', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { 'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible' }, - template: "\n \n \n ", - styles: ["ngb-alert{display:block}"] - }] } - ]; - /** @nocollapse */ - NgbAlert.ctorParameters = function () { return [ - { type: NgbAlertConfig }, - { type: Renderer2 }, - { type: ElementRef } - ]; }; - NgbAlert.propDecorators = { - dismissible: [{ type: Input }], - type: [{ type: Input }], - close: [{ type: Output }] - }; - return NgbAlert; -}()); -export { NgbAlert }; -if (false) { - /** - * If `true`, alert can be dismissed by the user. - * - * The close button (×) will be displayed and you can be notified - * of the event with the `(close)` output. - * @type {?} - */ - NgbAlert.prototype.dismissible; - /** - * Type of the alert. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - * @type {?} - */ - NgbAlert.prototype.type; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - * @type {?} - */ - NgbAlert.prototype.close; - /** - * @type {?} - * @private - */ - NgbAlert.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbAlert.prototype._element; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJhbGVydC9hbGVydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksRUFDWix1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFVBQVUsRUFJVixpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLGdCQUFnQixDQUFD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0eXBlQ2hhbmdlICYmICF0eXBlQ2hhbmdlLmZpcnN0Q2hhbmdlKSB7XG4gICAgICB0aGlzLl9yZW5kZXJlci5yZW1vdmVDbGFzcyh0aGlzLl9lbGVtZW50Lm5hdGl2ZUVsZW1lbnQsIGBhbGVydC0ke3R5cGVDaGFuZ2UucHJldmlvdXNWYWx1ZX1gKTtcbiAgICAgIHRoaXMuX3JlbmRlcmVyLmFkZENsYXNzKHRoaXMuX2VsZW1lbnQubmF0aXZlRWxlbWVudCwgYGFsZXJ0LSR7dHlwZUNoYW5nZS5jdXJyZW50VmFsdWV9YCk7XG4gICAgfVxuICB9XG5cbiAgbmdPbkluaXQoKSB7IHRoaXMuX3JlbmRlcmVyLmFkZENsYXNzKHRoaXMuX2VsZW1lbnQubmF0aXZlRWxlbWVudCwgYGFsZXJ0LSR7dGhpcy50eXBlfWApOyB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/alert/alert.module.js b/dist/ng-bootstrap/esm5/alert/alert.module.js deleted file mode 100644 index 35a4e69..0000000 --- a/dist/ng-bootstrap/esm5/alert/alert.module.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbAlert } from './alert'; -export { NgbAlert } from './alert'; -export { NgbAlertConfig } from './alert-config'; -var NgbAlertModule = /** @class */ (function () { - function NgbAlertModule() { - } - NgbAlertModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbAlert], exports: [NgbAlert], imports: [CommonModule], entryComponents: [NgbAlert] },] } - ]; - return NgbAlertModule; -}()); -export { NgbAlertModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3Vu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3J0czogW0NvbW1vbk1vZHVsZV0sIGVudHJ5Q29tcG9uZW50czogW05nYkFsZXJ0XX0pXG5leHBvcnQgY2xhc3MgTmdiQWxlcnRNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/buttons/buttons.module.js b/dist/ng-bootstrap/esm5/buttons/buttons.module.js deleted file mode 100644 index 9c0e39e..0000000 --- a/dist/ng-bootstrap/esm5/buttons/buttons.module.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbButtonLabel } from './label'; -import { NgbCheckBox } from './checkbox'; -import { NgbRadio, NgbRadioGroup } from './radio'; -export { NgbButtonLabel } from './label'; -export { NgbCheckBox } from './checkbox'; -export { NgbRadio, NgbRadioGroup } from './radio'; -/** @type {?} */ -var NGB_BUTTON_DIRECTIVES = [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio]; -var NgbButtonsModule = /** @class */ (function () { - function NgbButtonsModule() { - } - NgbButtonsModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_BUTTON_DIRECTIVES, exports: NGB_BUTTON_DIRECTIVES },] } - ]; - return NgbButtonsModule; -}()); -export { NgbButtonsModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9ucy5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJidXR0b25zL2J1dHRvbnMubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSx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J1dHRvbkxhYmVsLCBOZ2JDaGVja0JveCwgTmdiUmFkaW9Hcm91cCwgTmdiUmFkaW9dO1xuXG5ATmdNb2R1bGUoe2RlY2xhcmF0aW9uczogTkdCX0JVVFRPTl9ESVJFQ1RJVkVTLCBleHBvcnRzOiBOR0JfQlVUVE9OX0RJUkVDVElWRVN9KVxuZXhwb3J0IGNsYXNzIE5nYkJ1dHRvbnNNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/buttons/checkbox.js b/dist/ng-bootstrap/esm5/buttons/checkbox.js deleted file mode 100644 index 5f2ebc4..0000000 --- a/dist/ng-bootstrap/esm5/buttons/checkbox.js +++ /dev/null @@ -1,182 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, Directive, forwardRef, Input } from '@angular/core'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -import { NgbButtonLabel } from './label'; -/** @type {?} */ -var NGB_CHECKBOX_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbCheckBox; })), - multi: true -}; -/** - * Allows to easily create Bootstrap-style checkbox buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ -var NgbCheckBox = /** @class */ (function () { - function NgbCheckBox(_label, _cd) { - this._label = _label; - this._cd = _cd; - /** - * If `true`, the checkbox button will be disabled - */ - this.disabled = false; - /** - * The form control value when the checkbox is checked. - */ - this.valueChecked = true; - /** - * The form control value when the checkbox is unchecked. - */ - this.valueUnChecked = false; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - } - Object.defineProperty(NgbCheckBox.prototype, "focused", { - set: /** - * @param {?} isFocused - * @return {?} - */ - function (isFocused) { - this._label.focused = isFocused; - if (!isFocused) { - this.onTouched(); - } - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} $event - * @return {?} - */ - NgbCheckBox.prototype.onInputChange = /** - * @param {?} $event - * @return {?} - */ - function ($event) { - /** @type {?} */ - var modelToPropagate = $event.target.checked ? this.valueChecked : this.valueUnChecked; - this.onChange(modelToPropagate); - this.onTouched(); - this.writeValue(modelToPropagate); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbCheckBox.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbCheckBox.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbCheckBox.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this.disabled = isDisabled; - this._label.disabled = isDisabled; - }; - /** - * @param {?} value - * @return {?} - */ - NgbCheckBox.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this.checked = value === this.valueChecked; - this._label.active = this.checked; - // label won't be updated, if it is inside the OnPush component when [ngModel] changes - this._cd.markForCheck(); - }; - NgbCheckBox.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButton][type=checkbox]', - host: { - 'autocomplete': 'off', - '[checked]': 'checked', - '[disabled]': 'disabled', - '(change)': 'onInputChange($event)', - '(focus)': 'focused = true', - '(blur)': 'focused = false' - }, - providers: [NGB_CHECKBOX_VALUE_ACCESSOR] - },] } - ]; - /** @nocollapse */ - NgbCheckBox.ctorParameters = function () { return [ - { type: NgbButtonLabel }, - { type: ChangeDetectorRef } - ]; }; - NgbCheckBox.propDecorators = { - disabled: [{ type: Input }], - valueChecked: [{ type: Input }], - valueUnChecked: [{ type: Input }] - }; - return NgbCheckBox; -}()); -export { NgbCheckBox }; -if (false) { - /** @type {?} */ - NgbCheckBox.prototype.checked; - /** - * If `true`, the checkbox button will be disabled - * @type {?} - */ - NgbCheckBox.prototype.disabled; - /** - * The form control value when the checkbox is checked. - * @type {?} - */ - NgbCheckBox.prototype.valueChecked; - /** - * The form control value when the checkbox is unchecked. - * @type {?} - */ - NgbCheckBox.prototype.valueUnChecked; - /** @type {?} */ - NgbCheckBox.prototype.onChange; - /** @type {?} */ - NgbCheckBox.prototype.onTouched; - /** - * @type {?} - * @private - */ - NgbCheckBox.prototype._label; - /** - * @type {?} - * @private - */ - NgbCheckBox.prototype._cd; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3guanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJidXR0b25zL2NoZWNrYm94LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsaUJBQWlCLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDOUUsT0FBTyxFQUF1QixpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBRXZFLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxTQUFTLENBQUM7O0lBRWpDLDJCQUEyQixHQUFHO0lBQ2xDLE9BQU8sRUFBRSxpQkFBaUI7SUFDMUIsV0FBVyxFQUFFLFVBQVU7OztJQUFDLGNBQU0sT0FBQSxXQUFXLEVBQVgsQ0FBVyxFQUFDO0lBQzFDLEtBQUssRUFBRSxJQUFJO0NBQ1o7Ozs7Ozs7QUFTRDtJQXdDRSxxQkFBb0IsTUFBc0IsRUFBVSxHQUFzQjtRQUF0RCxXQUFNLEdBQU4sTUFBTSxDQUFnQjtRQUFVLFFBQUcsR0FBSCxHQUFHLENBQW1COzs7O1FBdEJqRSxhQUFRLEdBQUcsS0FBSyxDQUFDOzs7O1FBS2pCLGlCQUFZLEdBQUcsSU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b3BhZ2F0ZSA9ICRldmVudC50YXJnZXQuY2hlY2tlZCA/IHRoaXMudmFsdWVDaGVja2VkIDogdGhpcy52YWx1ZVVuQ2hlY2tlZDtcbiAgICB0aGlzLm9uQ2hhbmdlKG1vZGVsVG9Qcm9wYWdhdGUpO1xuICAgIHRoaXMub25Ub3VjaGVkKCk7XG4gICAgdGhpcy53cml0ZVZhbHVlKG1vZGVsVG9Qcm9wYWdhdGUpO1xuICB9XG5cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogKHZhbHVlOiBhbnkpID0+IGFueSk6IHZvaWQgeyB0aGlzLm9uQ2hhbmdlID0gZm47IH1cblxuICByZWdpc3Rlck9uVG91Y2hlZChmbjogKCkgPT4gYW55KTogdm9pZCB7IHRoaXMub25Ub3VjaGVkID0gZm47IH1cblxuICBzZXREaXNhYmxlZFN0YXRlKGlzRGlzYWJsZWQ6IGJvb2xlYW4pOiB2b2lkIHtcbiAgICB0aGlzLmRpc2FibGVkID0gaXNEaXNhYmxlZDtcbiAgICB0aGlzLl9sYWJlbC5kaXNhYmxlZCA9IGlzRGlzYWJsZWQ7XG4gIH1cblxuICB3cml0ZVZhbHVlKHZhbHVlKSB7XG4gICAgdGhpcy5jaGVja2VkID0gdmFsdWUgPT09IHRoaXMudmFsdWVDaGVja2VkO1xuICAgIHRoaXMuX2xhYmVsLmFjdGl2ZSA9IHRoaXMuY2hlY2tlZDtcblxuICAgIC8vIGxhYmVsIHdvbid0IGJlIHVwZGF0ZWQsIGlmIGl0IGlzIGluc2lkZSB0aGUgT25QdXNoIGNvbXBvbmVudCB3aGVuIFtuZ01vZGVsXSBjaGFuZ2VzXG4gICAgdGhpcy5fY2QubWFya0ZvckNoZWNrKCk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/buttons/label.js b/dist/ng-bootstrap/esm5/buttons/label.js deleted file mode 100644 index 53423b4..0000000 --- a/dist/ng-bootstrap/esm5/buttons/label.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Directive } from '@angular/core'; -var NgbButtonLabel = /** @class */ (function () { - function NgbButtonLabel() { - } - NgbButtonLabel.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButtonLabel]', - host: { '[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused' } - },] } - ]; - return NgbButtonLabel; -}()); -export { NgbButtonLabel }; -if (false) { - /** @type {?} */ - NgbButtonLabel.prototype.active; - /** @type {?} */ - NgbButtonLabel.prototype.disabled; - /** @type {?} */ - NgbButtonLabel.prototype.focused; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFiZWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJidXR0b25zL2xhYmVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXhDO0lBQUE7SUFTQSxDQUFDOztnQkFUQSxTQUFTLFNBQUM7b0JBQ1QsUUFBUSxFQUFFLGtCQUFrQjtvQkFDNUIsSUFBSSxFQUNBLEVBQUMsYUFBYSxFQUFFLE1BQU0sRUFBRSxnQkFBZ0IsRUFBRSxRQUFRLEVBQUUsa0JBQWtCLEVBQUUsVUFBVSxFQUFFLGVBQWUsRUFBRSxTQUFTLEVBQUM7aUJBQ3BIOztJQUtELHFCQUFDO0NBQUEsQUFURCxJQVNDO1NBSlksY0FBYzs7O0lBQ3pCLGdDQUFnQjs7SUFDaEIsa0NBQWtCOztJQUNsQixpQ0FBaUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0RpcmVjdGl2ZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBEaXJlY3RpdmUoe1xuICBzZWxlY3RvcjogJ1tuZ2JCdXR0b25MYWJlbF0nLFxuICBob3N0OlxuICAgICAgeydbY2xhc3MuYnRuXSc6ICd0cnVlJywgJ1tjbGFzcy5hY3RpdmVdJzogJ2FjdGl2ZScsICdbY2xhc3MuZGlzYWJsZWRdJzogJ2Rpc2FibGVkJywgJ1tjbGFzcy5mb2N1c10nOiAnZm9jdXNlZCd9XG59KVxuZXhwb3J0IGNsYXNzIE5nYkJ1dHRvbkxhYmVsIHtcbiAgYWN0aXZlOiBib29sZWFuO1xuICBkaXNhYmxlZDogYm9vbGVhbjtcbiAgZm9jdXNlZDogYm9vbGVhbjtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/buttons/radio.js b/dist/ng-bootstrap/esm5/buttons/radio.js deleted file mode 100644 index d20a535..0000000 --- a/dist/ng-bootstrap/esm5/buttons/radio.js +++ /dev/null @@ -1,415 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, Directive, ElementRef, forwardRef, Input, Renderer2 } from '@angular/core'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -import { NgbButtonLabel } from './label'; -/** @type {?} */ -var NGB_RADIO_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbRadioGroup; })), - multi: true -}; -/** @type {?} */ -var nextId = 0; -/** - * Allows to easily create Bootstrap-style radio buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ -var NgbRadioGroup = /** @class */ (function () { - function NgbRadioGroup() { - this._radios = new Set(); - this._value = null; - /** - * Name of the radio group applied to radio input elements. - * - * Will be applied to all radio input elements inside the group, - * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves. - * - * If not provided, will be generated in the `ngb-radio-xx` format. - */ - this.name = "ngb-radio-" + nextId++; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - } - Object.defineProperty(NgbRadioGroup.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { return this._disabled; }, - set: /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.setDisabledState(isDisabled); }, - enumerable: true, - configurable: true - }); - /** - * @param {?} radio - * @return {?} - */ - NgbRadioGroup.prototype.onRadioChange = /** - * @param {?} radio - * @return {?} - */ - function (radio) { - this.writeValue(radio.value); - this.onChange(radio.value); - }; - /** - * @return {?} - */ - NgbRadioGroup.prototype.onRadioValueUpdate = /** - * @return {?} - */ - function () { this._updateRadiosValue(); }; - /** - * @param {?} radio - * @return {?} - */ - NgbRadioGroup.prototype.register = /** - * @param {?} radio - * @return {?} - */ - function (radio) { this._radios.add(radio); }; - /** - * @param {?} fn - * @return {?} - */ - NgbRadioGroup.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbRadioGroup.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbRadioGroup.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this._disabled = isDisabled; - this._updateRadiosDisabled(); - }; - /** - * @param {?} radio - * @return {?} - */ - NgbRadioGroup.prototype.unregister = /** - * @param {?} radio - * @return {?} - */ - function (radio) { this._radios.delete(radio); }; - /** - * @param {?} value - * @return {?} - */ - NgbRadioGroup.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._value = value; - this._updateRadiosValue(); - }; - /** - * @private - * @return {?} - */ - NgbRadioGroup.prototype._updateRadiosValue = /** - * @private - * @return {?} - */ - function () { - var _this = this; - this._radios.forEach((/** - * @param {?} radio - * @return {?} - */ - function (radio) { return radio.updateValue(_this._value); })); - }; - /** - * @private - * @return {?} - */ - NgbRadioGroup.prototype._updateRadiosDisabled = /** - * @private - * @return {?} - */ - function () { this._radios.forEach((/** - * @param {?} radio - * @return {?} - */ - function (radio) { return radio.updateDisabled(); })); }; - NgbRadioGroup.decorators = [ - { type: Directive, args: [{ selector: '[ngbRadioGroup]', host: { 'role': 'radiogroup' }, providers: [NGB_RADIO_VALUE_ACCESSOR] },] } - ]; - NgbRadioGroup.propDecorators = { - name: [{ type: Input }] - }; - return NgbRadioGroup; -}()); -export { NgbRadioGroup }; -if (false) { - /** - * @type {?} - * @private - */ - NgbRadioGroup.prototype._radios; - /** - * @type {?} - * @private - */ - NgbRadioGroup.prototype._value; - /** - * @type {?} - * @private - */ - NgbRadioGroup.prototype._disabled; - /** - * Name of the radio group applied to radio input elements. - * - * Will be applied to all radio input elements inside the group, - * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves. - * - * If not provided, will be generated in the `ngb-radio-xx` format. - * @type {?} - */ - NgbRadioGroup.prototype.name; - /** @type {?} */ - NgbRadioGroup.prototype.onChange; - /** @type {?} */ - NgbRadioGroup.prototype.onTouched; -} -/** - * A directive that marks an input of type "radio" as a part of the - * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup). - */ -var NgbRadio = /** @class */ (function () { - function NgbRadio(_group, _label, _renderer, _element, _cd) { - this._group = _group; - this._label = _label; - this._renderer = _renderer; - this._element = _element; - this._cd = _cd; - this._value = null; - this._group.register(this); - this.updateDisabled(); - } - Object.defineProperty(NgbRadio.prototype, "value", { - get: /** - * @return {?} - */ - function () { return this._value; }, - /** - * The form control value when current radio button is checked. - */ - set: /** - * The form control value when current radio button is checked. - * @param {?} value - * @return {?} - */ - function (value) { - this._value = value; - /** @type {?} */ - var stringValue = value ? value.toString() : ''; - this._renderer.setProperty(this._element.nativeElement, 'value', stringValue); - this._group.onRadioValueUpdate(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { return this._group.disabled || this._disabled; }, - /** - * If `true`, current radio button will be disabled. - */ - set: /** - * If `true`, current radio button will be disabled. - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this._disabled = isDisabled !== false; - this.updateDisabled(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "focused", { - set: /** - * @param {?} isFocused - * @return {?} - */ - function (isFocused) { - if (this._label) { - this._label.focused = isFocused; - } - if (!isFocused) { - this._group.onTouched(); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "checked", { - get: /** - * @return {?} - */ - function () { return this._checked; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "nameAttr", { - get: /** - * @return {?} - */ - function () { return this.name || this._group.name; }, - enumerable: true, - configurable: true - }); - /** - * @return {?} - */ - NgbRadio.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { this._group.unregister(this); }; - /** - * @return {?} - */ - NgbRadio.prototype.onChange = /** - * @return {?} - */ - function () { this._group.onRadioChange(this); }; - /** - * @param {?} value - * @return {?} - */ - NgbRadio.prototype.updateValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - // label won't be updated, if it is inside the OnPush component when [ngModel] changes - if (this.value !== value) { - this._cd.markForCheck(); - } - this._checked = this.value === value; - this._label.active = this._checked; - }; - /** - * @return {?} - */ - NgbRadio.prototype.updateDisabled = /** - * @return {?} - */ - function () { this._label.disabled = this.disabled; }; - NgbRadio.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButton][type=radio]', - host: { - '[checked]': 'checked', - '[disabled]': 'disabled', - '[name]': 'nameAttr', - '(change)': 'onChange()', - '(focus)': 'focused = true', - '(blur)': 'focused = false' - } - },] } - ]; - /** @nocollapse */ - NgbRadio.ctorParameters = function () { return [ - { type: NgbRadioGroup }, - { type: NgbButtonLabel }, - { type: Renderer2 }, - { type: ElementRef }, - { type: ChangeDetectorRef } - ]; }; - NgbRadio.propDecorators = { - name: [{ type: Input }], - value: [{ type: Input, args: ['value',] }], - disabled: [{ type: Input, args: ['disabled',] }] - }; - return NgbRadio; -}()); -export { NgbRadio }; -if (false) { - /** - * @type {?} - * @private - */ - NgbRadio.prototype._checked; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._disabled; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._value; - /** - * The value for the 'name' property of the input element. - * - * All inputs of the radio group should have the same name. If not specified, - * the name of the enclosing group is used. - * @type {?} - */ - NgbRadio.prototype.name; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._group; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._label; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._element; - /** - * @type {?} - * @private - */ - NgbRadio.prototype._cd; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJidXR0b25zL3JhZGlvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsaUJBQWlCLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFhLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNoSCxPQUFPLEVBQXVCLGlCQUFpQixFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFdkUsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLFNBQVMsQ0FBQzs7SUFFakMsd0JBQXdCLEdBQUc7SUFDL0IsT0FBTyxFQUFFLGlCQUFpQjtJQUMxQixXQUFXLEVBQUUsVUFBVTs7O0lBQUMsY0FBTSxPQUFBL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2RlbF0gY2hhbmdlc1xuICAgIGlmICh0aGlzLnZhbHVlICE9PSB2YWx1ZSkge1xuICAgICAgdGhpcy5fY2QubWFya0ZvckNoZWNrKCk7XG4gICAgfVxuXG4gICAgdGhpcy5fY2hlY2tlZCA9IHRoaXMudmFsdWUgPT09IHZhbHVlO1xuICAgIHRoaXMuX2xhYmVsLmFjdGl2ZSA9IHRoaXMuX2NoZWNrZWQ7XG4gIH1cblxuICB1cGRhdGVEaXNhYmxlZCgpIHsgdGhpcy5fbGFiZWwuZGlzYWJsZWQgPSB0aGlzLmRpc2FibGVkOyB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/card/card-config.js b/dist/ng-bootstrap/esm5/card/card-config.js deleted file mode 100644 index ac9052a..0000000 --- a/dist/ng-bootstrap/esm5/card/card-config.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [SbCard](#/components/alert/api#SbCard) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ -var SbCardConfig = /** @class */ (function () { - function SbCardConfig() { - this.dismissible = true; - this.type = 'warning'; - } - SbCardConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ SbCardConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function SbCardConfig_Factory() { return new SbCardConfig(); }, token: SbCardConfig, providedIn: "root" }); - return SbCardConfig; -}()); -export { SbCardConfig }; -if (false) { - /** @type {?} */ - SbCardConfig.prototype.dismissible; - /** @type {?} */ - SbCardConfig.prototype.type; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1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esm5/card/card.js deleted file mode 100644 index 6d1986b..0000000 --- a/dist/ng-bootstrap/esm5/card/card.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, Renderer2, ElementRef, ViewEncapsulation } from '@angular/core'; -import { SbCardConfig } from './card-config'; -/** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ -var SbCard = /** @class */ (function () { - function SbCard(config, _renderer, _element) { - this._renderer = _renderer; - this._element = _element; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - this.close = new EventEmitter(); - this.dismissible = config.dismissible; - this.type = config.type; - } - /** - * @return {?} - */ - SbCard.prototype.closeHandler = /** - * @return {?} - */ - function () { this.close.emit(null); }; - /** - * @param {?} changes - * @return {?} - */ - SbCard.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - /** @type {?} */ - var typeChange = changes['type']; - if (typeChange && !typeChange.firstChange) { - this._renderer.removeClass(this._element.nativeElement, "alert-" + typeChange.previousValue); - this._renderer.addClass(this._element.nativeElement, "alert-" + typeChange.currentValue); - } - }; - /** - * @return {?} - */ - SbCard.prototype.ngOnInit = /** - * @return {?} - */ - function () { this._renderer.addClass(this._element.nativeElement, "alert-" + this.type); }; - SbCard.decorators = [ - { type: Component, args: [{ - selector: 'sb-card', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { 'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible' }, - template: "\n \n \n ", - styles: ["ngb-alert{display:block}"] - }] } - ]; - /** @nocollapse */ - SbCard.ctorParameters = function () { return [ - { type: SbCardConfig }, - { type: Renderer2 }, - { type: ElementRef } - ]; }; - SbCard.propDecorators = { - dismissible: [{ type: Input }], - type: [{ type: Input }], - close: [{ type: Output }] - }; - return SbCard; -}()); -export { SbCard }; -if (false) { - /** - * If `true`, alert can be dismissed by the user. - * - * The close button (×) will be displayed and you can be notified - * of the event with the `(close)` output. - * @type {?} - */ - SbCard.prototype.dismissible; - /** - * Type of the alert. - * - * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`, - * `'secondary'`, `'light'` and `'dark'`. - * @type {?} - */ - SbCard.prototype.type; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - * @type {?} - */ - SbCard.prototype.close; - /** - * @type {?} - * @private - */ - SbCard.prototype._renderer; - /** - * @type {?} - * @private - */ - SbCard.prototype._element; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImNhcmQvY2FyZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksRUFDWix1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFVBQVUsRUFJVixpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGVBQWUsQ0FBQzs7Ozs7O0FBTzNDO0lBbUNFLGdCQUFZLE1BQW9CLEVBQVUsU0FBb0IsRUFBVSxRQUFvQjtRQUFsRCxjQUFTLEdBQVQsU0FBUyxDQUFXO1FBQVUsYUFBUSxHQUFSLFFBQVEsQ0FBWTs7OztRQUZsRixVQUFLLEdBQUcsSUFBSSxZQUFZLEVBQVEsQ0FBQztRQUd6QyxJQUFJLENBQUMsV0FBVyxHQUFHLE1BQU0sQ0FBQyxXQUFXLENBQUM7UUFDdEMsSUFBSSxDQUFDLElBQU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SR7dHlwZUNoYW5nZS5jdXJyZW50VmFsdWV9YCk7XG4gICAgfVxuICB9XG5cbiAgbmdPbkluaXQoKSB7IHRoaXMuX3JlbmRlcmVyLmFkZENsYXNzKHRoaXMuX2VsZW1lbnQubmF0aXZlRWxlbWVudCwgYGFsZXJ0LSR7dGhpcy50eXBlfWApOyB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/card/card.module.js b/dist/ng-bootstrap/esm5/card/card.module.js deleted file mode 100644 index 581584e..0000000 --- a/dist/ng-bootstrap/esm5/card/card.module.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { SbCard } from './card'; -export { SbCard } from './card'; -export { SbCardConfig } from './card-config'; -var SbCardModule = /** @class */ (function () { - function SbCardModule() { - } - SbCardModule.decorators = [ - { type: NgModule, args: [{ declarations: [SbCard], exports: [SbCard], imports: [CommonModule], entryComponents: [SbCard] },] } - ]; - return SbCardModule; -}()); -export { SbCardModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJjYXJkL2NhcmQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsTUFBTSxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRTlCLE9BQU8sRUFBQyxNQUFNLEVBQUMsTUFBTSxRQUFRLENBQUM7QUFDOUIsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUUzQztJQUFBO0lBRUEsQ0FBQzs7Z0JBRkEsUUFBUSxTQUFDLEVBQUMsWUFBWSxFQUFFLENBQUMsTUFBTSxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsTUFBTSxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDLEVBQUUsZUFBZSxFQUFFLENBQUMsTUFBTSxDQUFDLEVBQUM7O0lBRXpHLG1CQUFDO0NBQUEsQUFGRCxJQUVDO1NBRFksWUFBWSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtDb21tb25Nb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cbmltcG9ydCB7U2JDYXJkfSBmcm9tICcuL2NhcmQnO1xuXG5leHBvcnQge1NiQ2FyZH0gZnJvbSAnLi9jYXJkJztcbmV4cG9ydCB7U2JDYXJkQ29uZmlnfSBmcm9tICcuL2NhcmQtY29uZmlnJztcblxuQE5nTW9kdWxlKHtkZWNsYXJhdGlvbnM6IFtTYkNhcmRdLCBleHBvcnRzOiBbU2JDYXJkXSwgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sIGVudHJ5Q29tcG9uZW50czogW1NiQ2FyZF19KVxuZXhwb3J0IGNsYXNzIFNiQ2FyZE1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/carousel/carousel-config.js b/dist/ng-bootstrap/esm5/carousel/carousel-config.js deleted file mode 100644 index 91f5f6c..0000000 --- a/dist/ng-bootstrap/esm5/carousel/carousel-config.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all carousels used in the application. - */ -var NgbCarouselConfig = /** @class */ (function () { - function NgbCarouselConfig() { - this.interval = 5000; - this.wrap = true; - this.keyboard = true; - this.pauseOnHover = true; - this.showNavigationArrows = true; - this.showNavigationIndicators = true; - } - NgbCarouselConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbCarouselConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbCarouselConfig_Factory() { return new NgbCarouselConfig(); }, token: NgbCarouselConfig, providedIn: "root" }); - return NgbCarouselConfig; -}()); -export { NgbCarouselConfig }; -if (false) { - /** @type {?} */ - NgbCarouselConfig.prototype.interval; - /** @type {?} */ - NgbCarouselConfig.prototype.wrap; - /** @type {?} */ - NgbCarouselConfig.prototype.keyboard; - /** @type {?} */ - NgbCarouselConfig.prototype.pauseOnHover; - /** @type {?} */ - NgbCarouselConfig.prototype.showNavigationArrows; - /** @type {?} */ - NgbCarouselConfig.prototype.showNavigationIndicators; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2Fyb3VzZWwtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiY2Fyb3VzZWwvY2Fyb3VzZWwtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVF6QztJQUFBO1FBRUUsYUFBUSxHQUFHLElBQUksQ0FBQztRQUNoQixTQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ1osYUFBUSxHQUFHLEl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pZ2F0aW9uSW5kaWNhdG9ycyA9IHRydWU7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/carousel/carousel.js b/dist/ng-bootstrap/esm5/carousel/carousel.js deleted file mode 100644 index fda57b8..0000000 --- a/dist/ng-bootstrap/esm5/carousel/carousel.js +++ /dev/null @@ -1,600 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Directive, EventEmitter, Inject, Input, NgZone, Output, PLATFORM_ID, QueryList, TemplateRef, HostListener } from '@angular/core'; -import { isPlatformBrowser } from '@angular/common'; -import { NgbCarouselConfig } from './carousel-config'; -import { Subject, timer, BehaviorSubject, combineLatest, NEVER } from 'rxjs'; -import { startWith, map, switchMap, takeUntil, distinctUntilChanged } from 'rxjs/operators'; -/** @type {?} */ -var nextId = 0; -/** - * A directive that wraps the individual carousel slide. - */ -var NgbSlide = /** @class */ (function () { - function NgbSlide(tplRef) { - this.tplRef = tplRef; - /** - * Slide id that must be unique for the entire document. - * - * If not provided, will be generated in the `ngb-slide-xx` format. - */ - this.id = "ngb-slide-" + nextId++; - } - NgbSlide.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbSlide]' },] } - ]; - /** @nocollapse */ - NgbSlide.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - NgbSlide.propDecorators = { - id: [{ type: Input }] - }; - return NgbSlide; -}()); -export { NgbSlide }; -if (false) { - /** - * Slide id that must be unique for the entire document. - * - * If not provided, will be generated in the `ngb-slide-xx` format. - * @type {?} - */ - NgbSlide.prototype.id; - /** @type {?} */ - NgbSlide.prototype.tplRef; -} -/** - * Carousel is a component to easily create and control slideshows. - * - * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API. - */ -var NgbCarousel = /** @class */ (function () { - function NgbCarousel(config, _platformId, _ngZone, _cd) { - this._platformId = _platformId; - this._ngZone = _ngZone; - this._cd = _cd; - this.NgbSlideEventSource = NgbSlideEventSource; - this._destroy$ = new Subject(); - this._interval$ = new BehaviorSubject(0); - this._mouseHover$ = new BehaviorSubject(false); - this._pauseOnHover$ = new BehaviorSubject(false); - this._pause$ = new BehaviorSubject(false); - this._wrap$ = new BehaviorSubject(false); - /** - * An event emitted right after the slide transition is completed. - * - * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details. - */ - this.slide = new EventEmitter(); - this.interval = config.interval; - this.wrap = config.wrap; - this.keyboard = config.keyboard; - this.pauseOnHover = config.pauseOnHover; - this.showNavigationArrows = config.showNavigationArrows; - this.showNavigationIndicators = config.showNavigationIndicators; - } - Object.defineProperty(NgbCarousel.prototype, "interval", { - get: /** - * @return {?} - */ - function () { return this._interval$.value; }, - /** - * Time in milliseconds before the next slide is shown. - */ - set: /** - * Time in milliseconds before the next slide is shown. - * @param {?} value - * @return {?} - */ - function (value) { - this._interval$.next(value); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbCarousel.prototype, "wrap", { - get: /** - * @return {?} - */ - function () { return this._wrap$.value; }, - /** - * If `true`, will 'wrap' the carousel by switching from the last slide back to the first. - */ - set: /** - * If `true`, will 'wrap' the carousel by switching from the last slide back to the first. - * @param {?} value - * @return {?} - */ - function (value) { - this._wrap$.next(value); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbCarousel.prototype, "pauseOnHover", { - get: /** - * @return {?} - */ - function () { return this._pauseOnHover$.value; }, - /** - * If `true`, will pause slide switching when mouse cursor hovers the slide. - * - * @since 2.2.0 - */ - set: /** - * If `true`, will pause slide switching when mouse cursor hovers the slide. - * - * \@since 2.2.0 - * @param {?} value - * @return {?} - */ - function (value) { - this._pauseOnHover$.next(value); - }, - enumerable: true, - configurable: true - }); - /** - * @return {?} - */ - NgbCarousel.prototype.mouseEnter = /** - * @return {?} - */ - function () { - this._mouseHover$.next(true); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.mouseLeave = /** - * @return {?} - */ - function () { - this._mouseHover$.next(false); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.ngAfterContentInit = /** - * @return {?} - */ - function () { - var _this = this; - // setInterval() doesn't play well with SSR and protractor, - // so we should run it in the browser and outside Angular - if (isPlatformBrowser(this._platformId)) { - this._ngZone.runOutsideAngular((/** - * @return {?} - */ - function () { - /** @type {?} */ - var hasNextSlide$ = combineLatest(_this.slide.pipe(map((/** - * @param {?} slideEvent - * @return {?} - */ - function (slideEvent) { return slideEvent.current; })), startWith(_this.activeId)), _this._wrap$, _this.slides.changes.pipe(startWith(null))) - .pipe(map((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = tslib_1.__read(_a, 2), currentSlideId = _b[0], wrap = _b[1]; - /** @type {?} */ - var slideArr = _this.slides.toArray(); - /** @type {?} */ - var currentSlideIdx = _this._getSlideIdxById(currentSlideId); - return wrap ? slideArr.length > 1 : currentSlideIdx < slideArr.length - 1; - })), distinctUntilChanged()); - combineLatest(_this._pause$, _this._pauseOnHover$, _this._mouseHover$, _this._interval$, hasNextSlide$) - .pipe(map((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = tslib_1.__read(_a, 5), pause = _b[0], pauseOnHover = _b[1], mouseHover = _b[2], interval = _b[3], hasNextSlide = _b[4]; - return ((pause || (pauseOnHover && mouseHover) || !hasNextSlide) ? 0 : interval); - })), distinctUntilChanged(), switchMap((/** - * @param {?} interval - * @return {?} - */ - function (interval) { return interval > 0 ? timer(interval, interval) : NEVER; })), takeUntil(_this._destroy$)) - .subscribe((/** - * @return {?} - */ - function () { return _this._ngZone.run((/** - * @return {?} - */ - function () { return _this.next(NgbSlideEventSource.TIMER); })); })); - })); - } - this.slides.changes.pipe(takeUntil(this._destroy$)).subscribe((/** - * @return {?} - */ - function () { return _this._cd.markForCheck(); })); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - /** @type {?} */ - var activeSlide = this._getSlideById(this.activeId); - this.activeId = activeSlide ? activeSlide.id : (this.slides.length ? this.slides.first.id : null); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { this._destroy$.next(); }; - /** - * Navigates to a slide with the specified identifier. - */ - /** - * Navigates to a slide with the specified identifier. - * @param {?} slideId - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype.select = /** - * Navigates to a slide with the specified identifier. - * @param {?} slideId - * @param {?=} source - * @return {?} - */ - function (slideId, source) { - this._cycleToSelected(slideId, this._getSlideEventDirection(this.activeId, slideId), source); - }; - /** - * Navigates to the previous slide. - */ - /** - * Navigates to the previous slide. - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype.prev = /** - * Navigates to the previous slide. - * @param {?=} source - * @return {?} - */ - function (source) { - this._cycleToSelected(this._getPrevSlide(this.activeId), NgbSlideEventDirection.RIGHT, source); - }; - /** - * Navigates to the next slide. - */ - /** - * Navigates to the next slide. - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype.next = /** - * Navigates to the next slide. - * @param {?=} source - * @return {?} - */ - function (source) { - this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source); - }; - /** - * Pauses cycling through the slides. - */ - /** - * Pauses cycling through the slides. - * @return {?} - */ - NgbCarousel.prototype.pause = /** - * Pauses cycling through the slides. - * @return {?} - */ - function () { this._pause$.next(true); }; - /** - * Restarts cycling through the slides from left to right. - */ - /** - * Restarts cycling through the slides from left to right. - * @return {?} - */ - NgbCarousel.prototype.cycle = /** - * Restarts cycling through the slides from left to right. - * @return {?} - */ - function () { this._pause$.next(false); }; - /** - * @private - * @param {?} slideIdx - * @param {?} direction - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype._cycleToSelected = /** - * @private - * @param {?} slideIdx - * @param {?} direction - * @param {?=} source - * @return {?} - */ - function (slideIdx, direction, source) { - /** @type {?} */ - var selectedSlide = this._getSlideById(slideIdx); - if (selectedSlide && selectedSlide.id !== this.activeId) { - this.slide.emit({ prev: this.activeId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source: source }); - this.activeId = selectedSlide.id; - } - // we get here after the interval fires or any external API call like next(), prev() or select() - this._cd.markForCheck(); - }; - /** - * @private - * @param {?} currentActiveSlideId - * @param {?} nextActiveSlideId - * @return {?} - */ - NgbCarousel.prototype._getSlideEventDirection = /** - * @private - * @param {?} currentActiveSlideId - * @param {?} nextActiveSlideId - * @return {?} - */ - function (currentActiveSlideId, nextActiveSlideId) { - /** @type {?} */ - var currentActiveSlideIdx = this._getSlideIdxById(currentActiveSlideId); - /** @type {?} */ - var nextActiveSlideIdx = this._getSlideIdxById(nextActiveSlideId); - return currentActiveSlideIdx > nextActiveSlideIdx ? NgbSlideEventDirection.RIGHT : NgbSlideEventDirection.LEFT; - }; - /** - * @private - * @param {?} slideId - * @return {?} - */ - NgbCarousel.prototype._getSlideById = /** - * @private - * @param {?} slideId - * @return {?} - */ - function (slideId) { return this.slides.find((/** - * @param {?} slide - * @return {?} - */ - function (slide) { return slide.id === slideId; })); }; - /** - * @private - * @param {?} slideId - * @return {?} - */ - NgbCarousel.prototype._getSlideIdxById = /** - * @private - * @param {?} slideId - * @return {?} - */ - function (slideId) { - return this.slides.toArray().indexOf(this._getSlideById(slideId)); - }; - /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - NgbCarousel.prototype._getNextSlide = /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - function (currentSlideId) { - /** @type {?} */ - var slideArr = this.slides.toArray(); - /** @type {?} */ - var currentSlideIdx = this._getSlideIdxById(currentSlideId); - /** @type {?} */ - var isLastSlide = currentSlideIdx === slideArr.length - 1; - return isLastSlide ? (this.wrap ? slideArr[0].id : slideArr[slideArr.length - 1].id) : - slideArr[currentSlideIdx + 1].id; - }; - /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - NgbCarousel.prototype._getPrevSlide = /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - function (currentSlideId) { - /** @type {?} */ - var slideArr = this.slides.toArray(); - /** @type {?} */ - var currentSlideIdx = this._getSlideIdxById(currentSlideId); - /** @type {?} */ - var isFirstSlide = currentSlideIdx === 0; - return isFirstSlide ? (this.wrap ? slideArr[slideArr.length - 1].id : slideArr[0].id) : - slideArr[currentSlideIdx - 1].id; - }; - NgbCarousel.decorators = [ - { type: Component, args: [{ - selector: 'ngb-carousel', - exportAs: 'ngbCarousel', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { - 'class': 'carousel slide', - '[style.display]': '"block"', - 'tabIndex': '0', - '(keydown.arrowLeft)': 'keyboard && prev(NgbSlideEventSource.ARROW_LEFT)', - '(keydown.arrowRight)': 'keyboard && next(NgbSlideEventSource.ARROW_RIGHT)' - }, - template: "\n
    \n
  1. \n
\n
\n
\n \n
\n
\n \n \n Previous\n \n \n \n Next\n \n " - }] } - ]; - /** @nocollapse */ - NgbCarousel.ctorParameters = function () { return [ - { type: NgbCarouselConfig }, - { type: undefined, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, - { type: NgZone }, - { type: ChangeDetectorRef } - ]; }; - NgbCarousel.propDecorators = { - slides: [{ type: ContentChildren, args: [NgbSlide,] }], - activeId: [{ type: Input }], - interval: [{ type: Input }], - wrap: [{ type: Input }], - keyboard: [{ type: Input }], - pauseOnHover: [{ type: Input }], - showNavigationArrows: [{ type: Input }], - showNavigationIndicators: [{ type: Input }], - slide: [{ type: Output }], - mouseEnter: [{ type: HostListener, args: ['mouseenter',] }], - mouseLeave: [{ type: HostListener, args: ['mouseleave',] }] - }; - return NgbCarousel; -}()); -export { NgbCarousel }; -if (false) { - /** @type {?} */ - NgbCarousel.prototype.slides; - /** @type {?} */ - NgbCarousel.prototype.NgbSlideEventSource; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._destroy$; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._interval$; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._mouseHover$; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._pauseOnHover$; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._pause$; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._wrap$; - /** - * The slide id that should be displayed **initially**. - * - * For subsequent interactions use methods `select()`, `next()`, etc. and the `(slide)` output. - * @type {?} - */ - NgbCarousel.prototype.activeId; - /** - * If `true`, allows to interact with carousel using keyboard 'arrow left' and 'arrow right'. - * @type {?} - */ - NgbCarousel.prototype.keyboard; - /** - * If `true`, 'previous' and 'next' navigation arrows will be visible on the slide. - * - * \@since 2.2.0 - * @type {?} - */ - NgbCarousel.prototype.showNavigationArrows; - /** - * If `true`, navigation indicators at the bottom of the slide will be visible. - * - * \@since 2.2.0 - * @type {?} - */ - NgbCarousel.prototype.showNavigationIndicators; - /** - * An event emitted right after the slide transition is completed. - * - * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details. - * @type {?} - */ - NgbCarousel.prototype.slide; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._platformId; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbCarousel.prototype._cd; -} -/** - * A slide change event emitted right after the slide transition is completed. - * @record - */ -export function NgbSlideEvent() { } -if (false) { - /** - * The previous slide id. - * @type {?} - */ - NgbSlideEvent.prototype.prev; - /** - * The current slide id. - * @type {?} - */ - NgbSlideEvent.prototype.current; - /** - * The slide event direction. - * - * Possible values are `'left' | 'right'`. - * @type {?} - */ - NgbSlideEvent.prototype.direction; - /** - * Whether the pause() method was called (and no cycle() call was done afterwards). - * - * \@since 5.1.0 - * @type {?} - */ - NgbSlideEvent.prototype.paused; - /** - * Source triggering the slide change event. - * - * Possible values are `'timer' | 'arrowLeft' | 'arrowRight' | 'indicator'` - * - * \@since 5.1.0 - * @type {?|undefined} - */ - NgbSlideEvent.prototype.source; -} -/** @enum {string} */ -var NgbSlideEventDirection = { - LEFT: (/** @type {?} */ ('left')), - RIGHT: (/** @type {?} */ ('right')), -}; -export { NgbSlideEventDirection }; -/** @enum {string} */ -var NgbSlideEventSource = { - TIMER: 'timer', - ARROW_LEFT: 'arrowLeft', - ARROW_RIGHT: 'arrowRight', - INDICATOR: 'indicator', -}; -export { NgbSlideEventSource }; -/** @type {?} */ -export var NGB_CAROUSEL_DIRECTIVES = [NgbCarousel, NgbSlide]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2Fyb3VzZWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJjYXJvdXNlbC9jYXJvdXNlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFHTCx1QkFBdUIsRUFDdkIsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxlQUFlLEVBQ2YsU0FBUyxFQUNULFlBQVksRUFDWixNQUFNLEVBQ04sS0FBSyxFQUNMLE1BQU0sRUFFTixNQUFNLEVBQ04sV0FBVyxFQUNYLFNBQVMsRUFDVCxXQUFXLEVBQ1gsWUFBWSxFQUNiLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBRWxELE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBRXBELE9BQU8sRUFBQyxPQUFPLEVBQUUsS0FBSyxFQUFFLGVBQWUsRUFBRSxhQUFhLEVBQUUsS0FBSyxFQUFDLE1BQU0sTUFBTSxDQUFDO0FBQzNFLE9BQU8sRUFBQyxTQUFTLEVBQUUsR0FBRyxFQUFFLFNBQVMsRUFBRSxTQUFTLEVBQUUsb0JBQW9CLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQzs7SUFFdEYsTUFBTSxHQUFHLENB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aChudWxsKSkpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcCgoW2N1cnJlbnRTbGlkZUlkLCB3cmFwXSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHNsaWRlQXJyID0gdGhpcy5zbGlkZXMudG9BcnJheSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGN1cnJlbnRTbGlkZUlkeCA9IHRoaXMuX2dldFNsaWRlSWR4QnlJZChjdXJyZW50U2xpZGVJZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXAgPyBzbGlkZUFyci5sZW5ndGggPiAxIDogY3VycmVudFNsaWRlSWR4IDwgc2xpZGVBcnIubGVuZ3RoIC0gMTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpc3RpbmN0VW50aWxDaGFuZ2VkKCkpO1xuICAgICAgICBjb21iaW5lTGF0ZXN0KHRoaXMuX3BhdXNlJCwgdGhpcy5fcGF1c2VPbkhvdmVyJCwgdGhpcy5fbW91c2VIb3ZlciQsIHRoaXMuX2ludGVydmFsJCwgaGFzTmV4dFNsaWRlJClcbiAgICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgIG1hcCgoW3BhdXNlLCBwYXVzZU9uSG92ZXIsIG1vdXNlSG92ZXIsIGludGVydmFsLCBoYXNOZXh0U2xpZGVdKSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgKChwYXVzZSB8fCAocGF1c2VPbkhvdmVyICYmIG1vdXNlSG92ZXIpIHx8ICFoYXNOZXh0U2xpZGUpID8gMCA6IGludGVydmFsKSksXG5cbiAgICAgICAgICAgICAgICBkaXN0aW5j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BjaGFuZ2UgZXZlbnQuXG4gICAqXG4gICAqIFBvc3NpYmxlIHZhbHVlcyBhcmUgYCd0aW1lcicgfCAnYXJyb3dMZWZ0JyB8ICdhcnJvd1JpZ2h0JyB8ICdpbmRpY2F0b3InYFxuICAgKlxuICAgKiBAc2luY2UgNS4xLjBcbiAgICovXG4gIHNvdXJjZT86IE5nYlNsaWRlRXZlbnRTb3VyY2U7XG59XG5cbi8qKlxuICogRGVmaW5lcyB0aGUgY2Fyb3VzZWwgc2xpZGUgdHJhbnNpdGlvbiBkaXJlY3Rpb24uXG4gKi9cbmV4cG9ydCBlbnVtIE5nYlNsaWRlRXZlbnREaXJlY3Rpb24ge1xuICBMRUZUID0gPGFueT4nbGVmdCcsXG4gIFJJR0hUID0gPGFueT4ncmlnaHQnXG59XG5cbmV4cG9ydCBlbnVtIE5nYlNsaWRlRXZlbnRTb3VyY2Uge1xuICBUSU1FUiA9ICd0aW1lcicsXG4gIEFSUk9XX0xFRlQgPSAnYXJyb3dMZWZ0JyxcbiAgQVJST1dfUklHSFQgPSAnYXJyb3dSaWdodCcsXG4gIElORElDQVRPUiA9ICdpbmRpY2F0b3InXG59XG5cbmV4cG9ydCBjb25zdCBOR0JfQ0FST1VTRUxfRElSRUNUSVZFUyA9IFtOZ2JDYXJvdXNlbCwgTmdiU2xpZGVdO1xuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/carousel/carousel.module.js b/dist/ng-bootstrap/esm5/carousel/carousel.module.js deleted file mode 100644 index 68294c4..0000000 --- a/dist/ng-bootstrap/esm5/carousel/carousel.module.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NGB_CAROUSEL_DIRECTIVES } from './carousel'; -export { NgbCarousel, NgbSlide, NgbSlideEventDirection, NgbSlideEventSource } from './carousel'; -export { NgbCarouselConfig } from './carousel-config'; -var NgbCarouselModule = /** @class */ (function () { - function NgbCarouselModule() { - } - NgbCarouselModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_CAROUSEL_DIRECTIVES, exports: NGB_CAROUSEL_DIRECTIVES, imports: [CommonModule] },] } - ]; - return NgbCarouselModule; -}()); -export { NgbCarouselModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2Fyb3VzZWwubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiY2Fyb3VzZWwvY2Fyb3VzZWwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsdUJBQXVCLEVBQUMsTUFBTSxZQUFZLENBQUM7QUFFbkQsT0FBTyxFQUFDLFdBQVcsRUFBRSxRQUFRLEVBQWlCLHNCQUFzQixFQUFFLG1CQUFtQixFQUFDLE1BQU0sWUFBWSxDQUFDO0FBQzdHLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBRXBEO0lBQUE7SUFFQSxDQUFDOztnQkFGQSxRQUFRLFNBQUMsRUFBQyxZQUFZLEVBQUUsdUJBQXVCLEVBQUUsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQyxFQUFDOztJQUU1Ryx3QkFBQztDQUFBLEFBRkQsSUFFQztTQURZLGlCQUFpQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtDb21tb25Nb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cbmltcG9ydCB7TkdCX0NBUk9VU0VMX0RJUkVDVElWRVN9IGZyb20gJy4vY2Fyb3VzZWwnO1xuXG5leHBvcnQge05nYkNhcm91c2VsLCBOZ2JTbGlkZSwgTmdiU2xpZGVFdmVudCwgTmdiU2xpZGVFdmVudERpcmVjdGlvbiwgTmdiU2xpZGVFdmVudFNvdXJjZX0gZnJvbSAnLi9jYXJvdXNlbCc7XG5leHBvcnQge05nYkNhcm91c2VsQ29uZmlnfSBmcm9tICcuL2Nhcm91c2VsLWNvbmZpZyc7XG5cbkBOZ01vZHVsZSh7ZGVjbGFyYXRpb25zOiBOR0JfQ0FST1VTRUxfRElSRUNUSVZFUywgZXhwb3J0czogTkdCX0NBUk9VU0VMX0RJUkVDVElWRVMsIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdfSlcbmV4cG9ydCBjbGFzcyBOZ2JDYXJvdXNlbE1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/collapse/collapse.js b/dist/ng-bootstrap/esm5/collapse/collapse.js deleted file mode 100644 index 2816572..0000000 --- a/dist/ng-bootstrap/esm5/collapse/collapse.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Directive, Input } from '@angular/core'; -/** - * A directive to provide a simple way of hiding and showing elements on the page. - */ -var NgbCollapse = /** @class */ (function () { - function NgbCollapse() { - /** - * If `true`, will collapse the element or show it otherwise. - */ - this.collapsed = false; - } - NgbCollapse.decorators = [ - { type: Directive, args: [{ - selector: '[ngbCollapse]', - exportAs: 'ngbCollapse', - host: { '[class.collapse]': 'true', '[class.show]': '!collapsed' } - },] } - ]; - NgbCollapse.propDecorators = { - collapsed: [{ type: Input, args: ['ngbCollapse',] }] - }; - return NgbCollapse; -}()); -export { NgbCollapse }; -if (false) { - /** - * If `true`, will collapse the element or show it otherwise. - * @type {?} - */ - NgbCollapse.prototype.collapsed; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFwc2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJjb2xsYXBzZS9jb2xsYXBzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7Ozs7QUFLL0M7SUFBQTs7OztRQVN3QixjQUFTLEdBQUcsS0FBSyxDQUFDO0lBQzFDLENBQUM7O2dCQVZBLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsZUFBZTtvQkFDekIsUUFBUSxFQUFFLGFBQWE7b0JBQ3ZCLElBQUksRUFBRSxFQUFDLGtCQUFrQixFQUFFLE1BQU0sRUFBRSxjQUFjLEVBQUUsWUFBWSxFQUFDO2lCQUNqRTs7OzRCQUtFLEtBQUssU0FBQyxhQUFhOztJQUN0QixrQkFBQztDQUFBLEFBVkQsSUFVQztTQUxZLFdBQVc7Ozs7OztJQUl0QixnQ0FBd0MiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0RpcmVjdGl2ZSwgSW5wdXR9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIEEgZGlyZWN0aXZlIHRvIHByb3ZpZGUgYSBzaW1wbGUgd2F5IG9mIGhpZGluZyBhbmQgc2hvd2luZyBlbGVtZW50cyBvbiB0aGUgcGFnZS5cbiAqL1xuQERpcmVjdGl2ZSh7XG4gIHNlbGVjdG9yOiAnW25nYkNvbGxhcHNlXScsXG4gIGV4cG9ydEFzOiAnbmdiQ29sbGFwc2UnLFxuICBob3N0OiB7J1tjbGFzcy5jb2xsYXBzZV0nOiAndHJ1ZScsICdbY2xhc3Muc2hvd10nOiAnIWNvbGxhcHNlZCd9XG59KVxuZXhwb3J0IGNsYXNzIE5nYkNvbGxhcHNlIHtcbiAgLyoqXG4gICAqIElmIGB0cnVlYCwgd2lsbCBjb2xsYXBzZSB0aGUgZWxlbWVudCBvciBzaG93IGl0IG90aGVyd2lzZS5cbiAgICovXG4gIEBJbnB1dCgnbmdiQ29sbGFwc2UnKSBjb2xsYXBzZWQgPSBmYWxzZTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/collapse/collapse.module.js b/dist/ng-bootstrap/esm5/collapse/collapse.module.js deleted file mode 100644 index 4fc91b9..0000000 --- a/dist/ng-bootstrap/esm5/collapse/collapse.module.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbCollapse } from './collapse'; -export { NgbCollapse } from './collapse'; -var NgbCollapseModule = /** @class */ (function () { - function NgbCollapseModule() { - } - NgbCollapseModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbCollapse], exports: [NgbCollapse] },] } - ]; - return NgbCollapseModule; -}()); -export { NgbCollapseModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFwc2UubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiY29sbGFwc2UvY29sbGFwc2UubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxXQUFXLEVBQUMsTUFBTSxZQUFZLENBQUM7QUFFdkMsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLFlBQVksQ0FBQztBQUV2QztJQUFBO0lBRUEsQ0FBQzs7Z0JBRkEsUUFBUSxTQUFDLEVBQUMsWUFBWSxFQUFFLENBQUMsV0FBVyxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsV0FBVyxDQUFDLEVBQUM7O0lBRS9ELHdCQUFDO0NBQUEsQUFGRCxJQUVDO1NBRFksaUJBQWlCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge05nYkNvbGxhcHNlfSBmcm9tICcuL2NvbGxhcHNlJztcblxuZXhwb3J0IHtOZ2JDb2xsYXBzZX0gZnJvbSAnLi9jb2xsYXBzZSc7XG5cbkBOZ01vZHVsZSh7ZGVjbGFyYXRpb25zOiBbTmdiQ29sbGFwc2VdLCBleHBvcnRzOiBbTmdiQ29sbGFwc2VdfSlcbmV4cG9ydCBjbGFzcyBOZ2JDb2xsYXBzZU1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-adapter.js b/dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-adapter.js deleted file mode 100644 index 34e9451..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-adapter.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { Injectable } from '@angular/core'; -import { isInteger } from '../../util/util'; -import * as i0 from "@angular/core"; -/** - * @return {?} - */ -export function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() { - return new NgbDateStructAdapter(); -} -/** - * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and - * any provided user date model `D`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding datepicker to a form control, - * ex. `[(ngModel)]="userDateModel"`. Here `userDateModel` can be of any type. - * - * The default datepicker implementation assumes we use `NgbDateStruct` as a user model. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details - * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example. - * @abstract - * @template D - */ -var NgbDateAdapter = /** @class */ (function () { - function NgbDateAdapter() { - } - NgbDateAdapter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY },] } - ]; - /** @nocollapse */ NgbDateAdapter.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY, token: NgbDateAdapter, providedIn: "root" }); - return NgbDateAdapter; -}()); -export { NgbDateAdapter }; -if (false) { - /** - * Converts a user-model date of type `D` to an `NgbDateStruct` for internal use. - * @abstract - * @param {?} value - * @return {?} - */ - NgbDateAdapter.prototype.fromModel = function (value) { }; - /** - * Converts an internal `NgbDateStruct` date to a user-model date of type `D`. - * @abstract - * @param {?} date - * @return {?} - */ - NgbDateAdapter.prototype.toModel = function (date) { }; -} -var NgbDateStructAdapter = /** @class */ (function (_super) { - tslib_1.__extends(NgbDateStructAdapter, _super); - function NgbDateStructAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Converts a NgbDateStruct value into NgbDateStruct value - */ - /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - NgbDateStructAdapter.prototype.fromModel = /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - function (date) { - return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ? - { year: date.year, month: date.month, day: date.day } : - null; - }; - /** - * Converts a NgbDateStruct value into NgbDateStruct value - */ - /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - NgbDateStructAdapter.prototype.toModel = /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - function (date) { - return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ? - { year: date.year, month: date.month, day: date.day } : - null; - }; - NgbDateStructAdapter.decorators = [ - { type: Injectable } - ]; - return NgbDateStructAdapter; -}(NgbDateAdapter)); -export { NgbDateStructAdapter }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWRhdGUtYWRhcHRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvYWRhcHRlcnMvbmdiLWRhdGUtYWRhcHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGlCQUFpQixDQUFDOzs7OztBQUUxQyxNQUFNLFVBQVUsbUNBQW1DO0lBQ2pELE9BQU8sSUFBSSxvQkFBb0IsRUFBRSxDQUFDO0FBQ3BDLENBQUM7Ozs7Ozs7Ozs7Ozs7OztBQWNEO0lBQUE7S0FXQzs7Z0JBWEEsVUFBVSxTQUFDLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsbUNBQW1DLEVBQUM7Ozt5QkFwQmpGO0NBK0JDLEFBWEQsSUFXQztTQVZxQixjQUFjOzs7Ozs7OztJQUlsQywwREFBNEM7Ozs7Ozs7SUFLNUMsdURBQXlDOztBQUczQztJQUMwQyxnREFBNkI7SUFEdkU7O0lBbUJBLENBQUM7SUFqQkM7O09BRUc7Ozs7OztJQUNILHdDQUFTOzs7OztJQUFULFVBQVUsSUFBbUI7UUFDM0IsT0FBTyxDQUFDLElBQUksSUFBSSxTQUFTLENBQUMsSUFBSSxDQUF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bnZlcnRzIGEgTmdiRGF0ZVN0cnVjdCB2YWx1ZSBpbnRvIE5nYkRhdGVTdHJ1Y3QgdmFsdWVcbiAgICovXG4gIHRvTW9kZWwoZGF0ZTogTmdiRGF0ZVN0cnVjdCk6IE5nYkRhdGVTdHJ1Y3Qge1xuICAgIHJldHVybiAoZGF0ZSAmJiBpc0ludGVnZXIoZGF0ZS55ZWFyKSAmJiBpc0ludGVnZXIoZGF0ZS5tb250aCkgJiYgaXNJbnRlZ2VyKGRhdGUuZGF5KSkgP1xuICAgICAgICB7eWVhcjogZGF0ZS55ZWFyLCBtb250aDogZGF0ZS5tb250aCwgZGF5OiBkYXRlLmRheX0gOlxuICAgICAgICBudWxsO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-native-adapter.js b/dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-native-adapter.js deleted file mode 100644 index ad111ed..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-native-adapter.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { Injectable } from '@angular/core'; -import { NgbDateAdapter } from './ngb-date-adapter'; -import { isInteger } from '../../util/util'; -/** - * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses - * native javascript dates as a user date model. - */ -var NgbDateNativeAdapter = /** @class */ (function (_super) { - tslib_1.__extends(NgbDateNativeAdapter, _super); - function NgbDateNativeAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Converts a native `Date` to a `NgbDateStruct`. - */ - /** - * Converts a native `Date` to a `NgbDateStruct`. - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype.fromModel = /** - * Converts a native `Date` to a `NgbDateStruct`. - * @param {?} date - * @return {?} - */ - function (date) { - return (date instanceof Date && !isNaN(date.getTime())) ? this._fromNativeDate(date) : null; - }; - /** - * Converts a `NgbDateStruct` to a native `Date`. - */ - /** - * Converts a `NgbDateStruct` to a native `Date`. - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype.toModel = /** - * Converts a `NgbDateStruct` to a native `Date`. - * @param {?} date - * @return {?} - */ - function (date) { - return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) ? this._toNativeDate(date) : - null; - }; - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype._fromNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - return { year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate() }; - }; - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype._toNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = new Date(date.year, date.month - 1, date.day, 12); - // avoid 30 -> 1930 conversion - jsDate.setFullYear(date.year); - return jsDate; - }; - NgbDateNativeAdapter.decorators = [ - { type: Injectable } - ]; - return NgbDateNativeAdapter; -}(NgbDateAdapter)); -export { NgbDateNativeAdapter }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWRhdGUtbmF0aXZlLWFkYXB0ZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2FkYXB0ZXJzL25nYi1kYXRlLW5hdGl2ZS1hZGFwdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sb0JBQW9CLENBQUM7QUFFbEQsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQ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biJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-native-utc-adapter.js b/dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-native-utc-adapter.js deleted file mode 100644 index 0b6992d..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/adapters/ngb-date-native-utc-adapter.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { Injectable } from '@angular/core'; -import { NgbDateNativeAdapter } from './ngb-date-native-adapter'; -/** - * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates. - * - * \@since 3.2.0 - */ -var NgbDateNativeUTCAdapter = /** @class */ (function (_super) { - tslib_1.__extends(NgbDateNativeUTCAdapter, _super); - function NgbDateNativeUTCAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeUTCAdapter.prototype._fromNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - return { year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate() }; - }; - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeUTCAdapter.prototype._toNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = new Date(Date.UTC(date.year, date.month - 1, date.day)); - // avoid 30 -> 1930 conversion - jsDate.setUTCFullYear(date.year); - return jsDate; - }; - NgbDateNativeUTCAdapter.decorators = [ - { type: Injectable } - ]; - return NgbDateNativeUTCAdapter; -}(NgbDateNativeAdapter)); -export { NgbDateNativeUTCAdapter }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWRhdGUtbmF0aXZlLXV0Yy1hZGFwdGVyLmpzIiwic291cmNlUm9vdCI6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G59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-config.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-config.js deleted file mode 100644 index 60e0e38..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-config.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the datepickers used in the application. - */ -var NgbDatepickerConfig = /** @class */ (function () { - function NgbDatepickerConfig() { - this.displayMonths = 1; - this.firstDayOfWeek = 1; - this.navigation = 'select'; - this.outsideDays = 'visible'; - this.showWeekdays = true; - this.showWeekNumbers = false; - } - NgbDatepickerConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbDatepickerConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbDatepickerConfig_Factory() { return new NgbDatepickerConfig(); }, token: NgbDatepickerConfig, providedIn: "root" }); - return NgbDatepickerConfig; -}()); -export { NgbDatepickerConfig }; -if (false) { - /** @type {?} */ - NgbDatepickerConfig.prototype.dayTemplate; - /** @type {?} */ - NgbDatepickerConfig.prototype.dayTemplateData; - /** @type {?} */ - NgbDatepickerConfig.prototype.footerTemplate; - /** @type {?} */ - NgbDatepickerConfig.prototype.displayMonths; - /** @type {?} */ - NgbDatepickerConfig.prototype.firstDayOfWeek; - /** @type {?} */ - NgbDatepickerConfig.prototype.markDisabled; - /** @type {?} */ - NgbDatepickerConfig.prototype.minDate; - /** @type {?} */ - NgbDatepickerConfig.prototype.maxDate; - /** @type {?} */ - NgbDatepickerConfig.prototype.navigation; - /** @type {?} */ - NgbDatepickerConfig.prototype.outsideDays; - /** @type {?} */ - NgbDatepickerConfig.prototype.showWeekdays; - /** @type {?} */ - NgbDatepickerConfig.prototype.showWeekNumbers; - /** @type {?} */ - NgbDatepickerConfig.prototype.startDate; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2RhdGVwaWNrZXItY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFjLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVV0RDtJQUFBO1FBS0Usa0JBQWEsR0FBRyxDQUFDLENBQUM7UUFDbEIsbUJBQWMsR0FBRyxDQUFDLENBQUM7UUFJbkIsZUFBVSxHQUFpQyxRQUFRLENBQUM7UUFDcEQsZ0JBQVcsR0FBdUMsU0FBUyxDQUFDO1FBQzVELGlCQUFZLEdBQUcsSUFBSSxDQUFDO1FBQ3BCLG9CQUFlLEdBQUcsS0FBSyxDQUFDO0tBRXpCOztnQkFmQSxVQUFVLFNBQUMsRUFBQyxVQUFVLEVBQUUsTUFBTSxFQUFDOzs7OEJBVmhDO0NBeUJDLEFBZkQsSUFlQztTQWRZLG1CQUFtQjs7O0lBQzlCLDBDQUE2Qzs7SUFDN0MsOENBQXNGOztJQUN0Riw2Q0FBaUM7O0lBQ2pDLDRDQUFrQjs7SUFDbEIsNkNBQW1COztJQUNuQiwyQ0FBdUY7O0lBQ3ZGLHNDQUF1Qjs7SUFDdkIsc0NBQXVCOztJQUN2Qix5Q0FBb0Q7O0lBQ3BELDBDQUE0RDs7SUFDNUQsMkNBQW9COztJQUNwQiw4Q0FBd0I7O0lBQ3hCLHdDQUF5QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB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WJsZWQ6IChkYXRlOiBOZ2JEYXRlU3RydWN0LCBjdXJyZW50OiB7eWVhcjogbnVtYmVyLCBtb250aDogbnVtYmVyfSkgPT4gYm9vbGVhbjtcbiAgbWluRGF0ZTogTmdiRGF0ZVN0cnVjdDtcbiAgbWF4RGF0ZTogTmdiRGF0ZVN0cnVjdDtcbiAgbmF2aWdhdGlvbjogJ3NlbGVjdCcgfCAnYXJyb3dzJyB8ICdub25lJyA9ICdzZWxlY3QnO1xuICBvdXRzaWRlRGF5czogJ3Zpc2libGUnIHwgJ2NvbGxhcHNlZCcgfCAnaGlkZGVuJyA9ICd2aXNpYmxlJztcbiAgc2hvd1dlZWtkYXlzID0gdHJ1ZTtcbiAgc2hvd1dlZWtOdW1iZXJzID0gZmFsc2U7XG4gIHN0YXJ0RGF0ZToge3llYXI6IG51bWJlciwgbW9udGg6IG51bWJlcn07XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-day-template-context.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-day-template-context.js deleted file mode 100644 index e75b9bf..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-day-template-context.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * The context for the datepicker 'day' template. - * - * You can override the way dates are displayed in the datepicker via the `[dayTemplate]` input. - * @record - */ -export function DayTemplateContext() { } -if (false) { - /** - * The date that corresponds to the template. Same as the `date` parameter. - * - * Can be used for convenience as a default template key, ex. `let-d`. - * - * \@since 3.3.0 - * @type {?} - */ - DayTemplateContext.prototype.$implicit; - /** - * The month currently displayed by the datepicker. - * @type {?} - */ - DayTemplateContext.prototype.currentMonth; - /** - * Any data you pass using the `[dayTemplateData]` input in the datepicker. - * - * \@since 3.3.0 - * @type {?|undefined} - */ - DayTemplateContext.prototype.data; - /** - * The date that corresponds to the template. - * @type {?} - */ - DayTemplateContext.prototype.date; - /** - * `True` if the current date is disabled. - * @type {?} - */ - DayTemplateContext.prototype.disabled; - /** - * `True` if the current date is focused. - * @type {?} - */ - DayTemplateContext.prototype.focused; - /** - * `True` if the current date is selected. - * @type {?} - */ - DayTemplateContext.prototype.selected; - /** - * `True` if the current date is today (equal to `NgbCalendar.getToday()`). - * - * \@since 4.1.0 - * @type {?} - */ - DayTemplateContext.prototype.today; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1kYXktdGVtcGxhdGUtY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci1kYXktdGVtcGxhdGUtY29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBTUEsd0NBZ0RDOzs7Ozs7Ozs7O0lBeENDLHVDQUFtQjs7Ozs7SUFLbkIsMENBQXFCOzs7Ozs7O0lBT3JCLGtDQUFXOzs7OztJQUtYLGtDQUFjOzs7OztJQUtkLHNDQUFrQjs7Ozs7SUFLbEIscUNBQWlCOzs7OztJQUtqQixzQ0FBa0I7Ozs7Ozs7SUFPbEIsbUNBQWUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nYkRhdGV9IGZyb20gJy4vbmdiLWRhdGUnO1xuLyoqXG4gKiBUaGUgY29udGV4dCBmb3IgdGhlIGRhdGVwaWNrZXIgJ2RheScgdGVtcGxhdGUuXG4gKlxuICogWW91IGNhbiBvdmVycmlkZSB0aGUgd2F5IGRhdGVzIGFyZSBkaXNwbGF5ZWQgaW4gdGhlIGRhdGVwaWNrZXIgdmlhIHRoZSBgW2RheVRlbXBsYXRlXWAgaW5wdXQuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgRG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O1xuXG4gIC8qKlxuICAgKiBgVHJ1ZWAgaWYgdGhlIGN1cnJlbnQgZGF0ZSBpcyB0b2RheSAoZXF1YWwgdG8gYE5nYkNhbGVuZGFyLmdldFRvZGF5KClgKS5cbiAgICpcbiAgICogQHNpbmNlIDQuMS4wXG4gICAqL1xuICB0b2RheTogYm9vbGVhbjtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-day-view.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-day-view.js deleted file mode 100644 index f71b446..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-day-view.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core'; -import { NgbDate } from './ngb-date'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -var NgbDatepickerDayView = /** @class */ (function () { - function NgbDatepickerDayView(i18n) { - this.i18n = i18n; - } - /** - * @return {?} - */ - NgbDatepickerDayView.prototype.isMuted = /** - * @return {?} - */ - function () { return !this.selected && (this.date.month !== this.currentMonth || this.disabled); }; - NgbDatepickerDayView.decorators = [ - { type: Component, args: [{ - selector: '[ngbDatepickerDayView]', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { - 'class': 'btn-light', - '[class.bg-primary]': 'selected', - '[class.text-white]': 'selected', - '[class.text-muted]': 'isMuted()', - '[class.outside]': 'isMuted()', - '[class.active]': 'focused' - }, - template: "{{ i18n.getDayNumerals(date) }}", - styles: ["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerDayView.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerDayView.propDecorators = { - currentMonth: [{ type: Input }], - date: [{ type: Input }], - disabled: [{ type: Input }], - focused: [{ type: Input }], - selected: [{ type: Input }] - }; - return NgbDatepickerDayView; -}()); -export { NgbDatepickerDayView }; -if (false) { - /** @type {?} */ - NgbDatepickerDayView.prototype.currentMonth; - /** @type {?} */ - NgbDatepickerDayView.prototype.date; - /** @type {?} */ - NgbDatepickerDayView.prototype.disabled; - /** @type {?} */ - NgbDatepickerDayView.prototype.focused; - /** @type {?} */ - NgbDatepickerDayView.prototype.selected; - /** @type {?} */ - NgbDatepickerDayView.prototype.i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1kYXktdmlldy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci1kYXktdmlldy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsaUJBQWlCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDM0YsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLFlBQVksQ0FBQztBQUNuQyxPQUFPLEVBQUMsaUJBQWlCLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQztBQUVwRDtJQXNCRSw4QkFBbUIsSUFBdUI7UUFBdkIsU0FBSSxHQUFKLElBQUksQ0FBbUI7SUFBRyxDQUFDOzs7O0lBRTlDLHNDQUFPOzs7SUFBUCxjQUFZLE9BQU8sQ0FBQyxJQUFJLENBQUMsUUFBUSxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxLQUFLLEtBQUssSUFBSSxDQUFDLFlBQVksSUFBSSxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUM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/esm5/datepicker/datepicker-i18n.js deleted file mode 100644 index e27522e..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-i18n.js +++ /dev/null @@ -1,229 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { Inject, Injectable, LOCALE_ID } from '@angular/core'; -import { FormStyle, getLocaleDayNames, getLocaleMonthNames, TranslationWidth, formatDate } from '@angular/common'; -import * as i0 from "@angular/core"; -/** - * @param {?} locale - * @return {?} - */ -export function NGB_DATEPICKER_18N_FACTORY(locale) { - return new NgbDatepickerI18nDefault(locale); -} -/** - * A service supplying i18n data to the datepicker component. - * - * The default implementation of this service uses the Angular locale and registered locale data for - * weekdays and month names (as explained in the Angular i18n guide). - * - * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year - * numerals. For other static labels the datepicker uses the default Angular i18n. - * - * See the [i18n demo](#/components/datepicker/examples#i18n) and - * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define - * a custom provider for i18n. - * @abstract - */ -var NgbDatepickerI18n = /** @class */ (function () { - function NgbDatepickerI18n() { - } - /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * @since 3.0.0 - */ - /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * \@since 3.0.0 - * @param {?} date - * @return {?} - */ - NgbDatepickerI18n.prototype.getDayNumerals = /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * \@since 3.0.0 - * @param {?} date - * @return {?} - */ - function (date) { return "" + date.day; }; - /** - * Returns the textual representation of a week number rendered by datepicker. - * - * @since 3.0.0 - */ - /** - * Returns the textual representation of a week number rendered by datepicker. - * - * \@since 3.0.0 - * @param {?} weekNumber - * @return {?} - */ - NgbDatepickerI18n.prototype.getWeekNumerals = /** - * Returns the textual representation of a week number rendered by datepicker. - * - * \@since 3.0.0 - * @param {?} weekNumber - * @return {?} - */ - function (weekNumber) { return "" + weekNumber; }; - /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * @since 3.0.0 - */ - /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * \@since 3.0.0 - * @param {?} year - * @return {?} - */ - NgbDatepickerI18n.prototype.getYearNumerals = /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * \@since 3.0.0 - * @param {?} year - * @return {?} - */ - function (year) { return "" + year; }; - NgbDatepickerI18n.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_18N_FACTORY, deps: [LOCALE_ID] },] } - ]; - /** @nocollapse */ NgbDatepickerI18n.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbDatepickerI18n_Factory() { return NGB_DATEPICKER_18N_FACTORY(i0.ɵɵinject(i0.LOCALE_ID)); }, token: NgbDatepickerI18n, providedIn: "root" }); - return NgbDatepickerI18n; -}()); -export { NgbDatepickerI18n }; -if (false) { - /** - * Returns the short weekday name to display in the heading of the month view. - * - * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun. - * @abstract - * @param {?} weekday - * @return {?} - */ - NgbDatepickerI18n.prototype.getWeekdayShortName = function (weekday) { }; - /** - * Returns the short month name to display in the date picker navigation. - * - * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * @abstract - * @param {?} month - * @param {?=} year - * @return {?} - */ - NgbDatepickerI18n.prototype.getMonthShortName = function (month, year) { }; - /** - * Returns the full month name to display in the date picker navigation. - * - * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * @abstract - * @param {?} month - * @param {?=} year - * @return {?} - */ - NgbDatepickerI18n.prototype.getMonthFullName = function (month, year) { }; - /** - * Returns the value of the `aria-label` attribute for a specific date. - * - * \@since 2.0.0 - * @abstract - * @param {?} date - * @return {?} - */ - NgbDatepickerI18n.prototype.getDayAriaLabel = function (date) { }; -} -var NgbDatepickerI18nDefault = /** @class */ (function (_super) { - tslib_1.__extends(NgbDatepickerI18nDefault, _super); - function NgbDatepickerI18nDefault(_locale) { - var _this = _super.call(this) || this; - _this._locale = _locale; - /** @type {?} */ - var weekdaysStartingOnSunday = getLocaleDayNames(_locale, FormStyle.Standalone, TranslationWidth.Short); - _this._weekdaysShort = weekdaysStartingOnSunday.map((/** - * @param {?} day - * @param {?} index - * @return {?} - */ - function (day, index) { return weekdaysStartingOnSunday[(index + 1) % 7]; })); - _this._monthsShort = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Abbreviated); - _this._monthsFull = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Wide); - return _this; - } - /** - * @param {?} weekday - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getWeekdayShortName = /** - * @param {?} weekday - * @return {?} - */ - function (weekday) { return this._weekdaysShort[weekday - 1]; }; - /** - * @param {?} month - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getMonthShortName = /** - * @param {?} month - * @return {?} - */ - function (month) { return this._monthsShort[month - 1]; }; - /** - * @param {?} month - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getMonthFullName = /** - * @param {?} month - * @return {?} - */ - function (month) { return this._monthsFull[month - 1]; }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getDayAriaLabel = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = new Date(date.year, date.month - 1, date.day); - return formatDate(jsDate, 'fullDate', this._locale); - }; - NgbDatepickerI18nDefault.decorators = [ - { type: Injectable } - ]; - /** @nocollapse */ - NgbDatepickerI18nDefault.ctorParameters = function () { return [ - { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } - ]; }; - return NgbDatepickerI18nDefault; -}(NgbDatepickerI18n)); -export { NgbDatepickerI18nDefault }; -if (false) { - /** - * @type {?} - * @private - */ - NgbDatepickerI18nDefault.prototype._weekdaysShort; - /** - * @type {?} - * @private - */ - NgbDatepickerI18nDefault.prototype._monthsShort; - /** - * @type {?} - * @private - */ - NgbDatepickerI18nDefault.prototype._monthsFull; - /** - * @type {?} - * @private - */ - NgbDatepickerI18nDefault.prototype._locale; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1pMThuLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9kYXRlcGlja2VyLWkxOG4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUMsTUFBTSxFQUFFLFVBQVUsRUFBRSxTQUFTLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0FBTyxFQUFDLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxtQkFBbUIsRUFBRSxnQkFBZ0IsRUFBRSxVQUFVLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQzs7Ozs7O0FBR2hILE1BQU0sVUFBVSwwQkFBMEIsQ0FBQyxNQUFNO0lBQy9DLE9BQU8sSUFBSSx3QkFBd0IsQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUM5QyxDQUFDOzs7Ozs7Ozs7Ozs7Ozs7QUFlRDtJQUFBO0tBa0RDO0lBcEJDOzs7O09BSUc7Ozs7Ozs7O0lBQ0gsMENBQWM7Ozs7Ozs7SUFBZCxVQUFlLElBQW1CLElBQVksT0FBTyxLQUFHLElBQUksQ0FBQyxHQUFLLENBQUMsQ0FBQyxDQUFDO0lBRXJFOzs7O09BSUc7Ozs7Ozs7O0lBQ0gsMkNBQWU7Ozs7Ozs7SUFBZixVQUFnQixVQUFrQixJQUFZLE9BQU8sS0FBRyxVQUFZLENBQUMsQ0FBQyxDQUFDO0lBRXZFOzs7O09BSUc7Ozs7Ozs7O0lBQ0gsMkNBQWU7Ozs7Ozs7SUFBZixVQUFnQixJQUFZLElBQVksT0FBTyxLQU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aE5hbWVzKF9sb2NhbGUsIEZvcm1TdHlsZS5TdGFuZGFsb25lLCBUcmFuc2xhdGlvbldpZHRoLldpZGUpO1xuICB9XG5cbiAgZ2V0V2Vla2RheVNob3J0TmFtZSh3ZWVrZGF5OiBudW1iZXIpOiBzdHJpbmcgeyByZXR1cm4gdGhpcy5fd2Vla2RheXNTaG9ydFt3ZWVrZGF5IC0gMV07IH1cblxuICBnZXRNb250aFNob3J0TmFtZShtb250aDogbnVtYmVyKTogc3RyaW5nIHsgcmV0dXJuIHRoaXMuX21vbnRoc1Nob3J0W21vbnRoIC0gMV07IH1cblxuICBnZXRNb250aEZ1bGxOYW1lKG1vbnRoOiBudW1iZXIpOiBzdHJpbmcgeyByZXR1cm4gdGhpcy5fbW9udGhzRnVsbFttb250aCAtIDFdOyB9XG5cbiAgZ2V0RGF5QXJpYUxhYmVsKGRhdGU6IE5nYkRhdGVTdHJ1Y3QpOiBzdHJpbmcge1xuICAgIGNvbnN0IGpzRGF0ZSA9IG5ldyBEYXRlKGRhdGUueWVhciwgZGF0ZS5tb250aCAtIDEsIGRhdGUuZGF5KTtcbiAgICByZXR1cm4gZm9ybWF0RGF0ZShqc0RhdGUsICdmdWxsRGF0ZScsIHRoaXMuX2xvY2FsZSk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-input.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-input.js deleted file mode 100644 index 7b776ae..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-input.js +++ /dev/null @@ -1,848 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, ComponentFactoryResolver, Directive, ElementRef, EventEmitter, forwardRef, Inject, Input, NgZone, Output, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms'; -import { ngbAutoClose } from '../util/autoclose'; -import { ngbFocusTrap } from '../util/focus-trap'; -import { positionElements } from '../util/positioning'; -import { NgbDateAdapter } from './adapters/ngb-date-adapter'; -import { NgbDatepicker } from './datepicker'; -import { NgbDatepickerService } from './datepicker-service'; -import { NgbCalendar } from './ngb-calendar'; -import { NgbDate } from './ngb-date'; -import { NgbDateParserFormatter } from './ngb-date-parser-formatter'; -/** @type {?} */ -var NGB_DATEPICKER_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbInputDatepicker; })), - multi: true -}; -/** @type {?} */ -var NGB_DATEPICKER_VALIDATOR = { - provide: NG_VALIDATORS, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbInputDatepicker; })), - multi: true -}; -/** - * A directive that allows to stick a datepicker popup to an input field. - * - * Manages interaction with the input field itself, does value formatting and provides forms integration. - */ -var NgbInputDatepicker = /** @class */ (function () { - function NgbInputDatepicker(_parserFormatter, _elRef, _vcRef, _renderer, _cfr, _ngZone, _service, _calendar, _dateAdapter, _document, _changeDetector) { - var _this = this; - this._parserFormatter = _parserFormatter; - this._elRef = _elRef; - this._vcRef = _vcRef; - this._renderer = _renderer; - this._cfr = _cfr; - this._ngZone = _ngZone; - this._service = _service; - this._calendar = _calendar; - this._dateAdapter = _dateAdapter; - this._document = _document; - this._changeDetector = _changeDetector; - this._cRef = null; - this._disabled = false; - /** - * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not. - * - * * `true` - the popup will close on both date selection and outside click. - * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the popup will close on date selection, but not outside clicks. - * * `"outside"` - the popup will close only on the outside click and not on date selection/inside clicks. - * - * \@since 3.0.0 - */ - this.autoClose = true; - /** - * The preferred placement of the datepicker popup. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - * - * \@since 1.1.1 - */ - this.dateSelect = new EventEmitter(); - /** - * Event emitted right after the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - this.navigate = new EventEmitter(); - /** - * An event fired after closing datepicker window. - * - * \@since 4.2.0 - */ - this.closed = new EventEmitter(); - this._onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this._onTouched = (/** - * @return {?} - */ - function () { }); - this._validatorChange = (/** - * @return {?} - */ - function () { }); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { return _this._updatePopupPosition(); })); - } - Object.defineProperty(NgbInputDatepicker.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { - return this._disabled; - }, - set: /** - * @param {?} value - * @return {?} - */ - function (value) { - this._disabled = value === '' || (value && value !== 'false'); - if (this.isOpen()) { - this._cRef.instance.setDisabledState(this._disabled); - } - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} fn - * @return {?} - */ - NgbInputDatepicker.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbInputDatepicker.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onTouched = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbInputDatepicker.prototype.registerOnValidatorChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._validatorChange = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbInputDatepicker.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.disabled = isDisabled; }; - /** - * @param {?} c - * @return {?} - */ - NgbInputDatepicker.prototype.validate = /** - * @param {?} c - * @return {?} - */ - function (c) { - /** @type {?} */ - var value = c.value; - if (value === null || value === undefined) { - return null; - } - /** @type {?} */ - var ngbDate = this._fromDateStruct(this._dateAdapter.fromModel(value)); - if (!this._calendar.isValid(ngbDate)) { - return { 'ngbDate': { invalid: c.value } }; - } - if (this.minDate && ngbDate.before(NgbDate.from(this.minDate))) { - return { 'ngbDate': { requiredBefore: this.minDate } }; - } - if (this.maxDate && ngbDate.after(NgbDate.from(this.maxDate))) { - return { 'ngbDate': { requiredAfter: this.maxDate } }; - } - }; - /** - * @param {?} value - * @return {?} - */ - NgbInputDatepicker.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._model = this._fromDateStruct(this._dateAdapter.fromModel(value)); - this._writeModelValue(this._model); - }; - /** - * @param {?} value - * @param {?=} updateView - * @return {?} - */ - NgbInputDatepicker.prototype.manualDateChange = /** - * @param {?} value - * @param {?=} updateView - * @return {?} - */ - function (value, updateView) { - if (updateView === void 0) { updateView = false; } - /** @type {?} */ - var inputValueChanged = value !== this._inputValue; - if (inputValueChanged) { - this._inputValue = value; - this._model = this._fromDateStruct(this._parserFormatter.parse(value)); - } - if (inputValueChanged || !updateView) { - this._onChange(this._model ? this._dateAdapter.toModel(this._model) : (value === '' ? null : value)); - } - if (updateView && this._model) { - this._writeModelValue(this._model); - } - }; - /** - * @return {?} - */ - NgbInputDatepicker.prototype.isOpen = /** - * @return {?} - */ - function () { return !!this._cRef; }; - /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - */ - /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - * @return {?} - */ - NgbInputDatepicker.prototype.open = /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - * @return {?} - */ - function () { - var _this = this; - if (!this.isOpen()) { - /** @type {?} */ - var cf = this._cfr.resolveComponentFactory(NgbDatepicker); - this._cRef = this._vcRef.createComponent(cf); - this._applyPopupStyling(this._cRef.location.nativeElement); - this._applyDatepickerInputs(this._cRef.instance); - this._subscribeForDatepickerOutputs(this._cRef.instance); - this._cRef.instance.ngOnInit(); - this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)); - // date selection event handling - this._cRef.instance.registerOnChange((/** - * @param {?} selectedDate - * @return {?} - */ - function (selectedDate) { - _this.writeValue(selectedDate); - _this._onChange(selectedDate); - _this._onTouched(); - })); - this._cRef.changeDetectorRef.detectChanges(); - this._cRef.instance.setDisabledState(this.disabled); - if (this.container === 'body') { - window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement); - } - // focus handling - ngbFocusTrap(this._cRef.location.nativeElement, this.closed, true); - this._cRef.instance.focus(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this.closed, [], [this._elRef.nativeElement, this._cRef.location.nativeElement]); - } - }; - /** - * Closes the datepicker popup. - */ - /** - * Closes the datepicker popup. - * @return {?} - */ - NgbInputDatepicker.prototype.close = /** - * Closes the datepicker popup. - * @return {?} - */ - function () { - if (this.isOpen()) { - this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)); - this._cRef = null; - this.closed.emit(); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the datepicker popup. - */ - /** - * Toggles the datepicker popup. - * @return {?} - */ - NgbInputDatepicker.prototype.toggle = /** - * Toggles the datepicker popup. - * @return {?} - */ - function () { - if (this.isOpen()) { - this.close(); - } - else { - this.open(); - } - }; - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - */ - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - NgbInputDatepicker.prototype.navigateTo = /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - function (date) { - if (this.isOpen()) { - this._cRef.instance.navigateTo(date); - } - }; - /** - * @return {?} - */ - NgbInputDatepicker.prototype.onBlur = /** - * @return {?} - */ - function () { this._onTouched(); }; - /** - * @param {?} changes - * @return {?} - */ - NgbInputDatepicker.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes['minDate'] || changes['maxDate']) { - this._validatorChange(); - } - }; - /** - * @return {?} - */ - NgbInputDatepicker.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this.close(); - this._zoneSubscription.unsubscribe(); - }; - /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - NgbInputDatepicker.prototype._applyDatepickerInputs = /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - function (datepickerInstance) { - var _this = this; - ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate', - 'maxDate', 'navigation', 'outsideDays', 'showNavigation', 'showWeekdays', 'showWeekNumbers'] - .forEach((/** - * @param {?} optionName - * @return {?} - */ - function (optionName) { - if (_this[optionName] !== undefined) { - datepickerInstance[optionName] = _this[optionName]; - } - })); - datepickerInstance.startDate = this.startDate || this._model; - }; - /** - * @private - * @param {?} nativeElement - * @return {?} - */ - NgbInputDatepicker.prototype._applyPopupStyling = /** - * @private - * @param {?} nativeElement - * @return {?} - */ - function (nativeElement) { - this._renderer.addClass(nativeElement, 'dropdown-menu'); - this._renderer.addClass(nativeElement, 'show'); - if (this.container === 'body') { - this._renderer.addClass(nativeElement, 'ngb-dp-body'); - } - }; - /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - NgbInputDatepicker.prototype._subscribeForDatepickerOutputs = /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - function (datepickerInstance) { - var _this = this; - datepickerInstance.navigate.subscribe((/** - * @param {?} navigateEvent - * @return {?} - */ - function (navigateEvent) { return _this.navigate.emit(navigateEvent); })); - datepickerInstance.select.subscribe((/** - * @param {?} date - * @return {?} - */ - function (date) { - _this.dateSelect.emit(date); - if (_this.autoClose === true || _this.autoClose === 'inside') { - _this.close(); - } - })); - }; - /** - * @private - * @param {?} model - * @return {?} - */ - NgbInputDatepicker.prototype._writeModelValue = /** - * @private - * @param {?} model - * @return {?} - */ - function (model) { - /** @type {?} */ - var value = this._parserFormatter.format(model); - this._inputValue = value; - this._renderer.setProperty(this._elRef.nativeElement, 'value', value); - if (this.isOpen()) { - this._cRef.instance.writeValue(this._dateAdapter.toModel(model)); - this._onTouched(); - } - }; - /** - * @private - * @param {?} date - * @return {?} - */ - NgbInputDatepicker.prototype._fromDateStruct = /** - * @private - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var ngbDate = date ? new NgbDate(date.year, date.month, date.day) : null; - return this._calendar.isValid(ngbDate) ? ngbDate : null; - }; - /** - * @private - * @return {?} - */ - NgbInputDatepicker.prototype._updatePopupPosition = /** - * @private - * @return {?} - */ - function () { - if (!this._cRef) { - return; - } - /** @type {?} */ - var hostElement; - if (typeof this.positionTarget === 'string') { - hostElement = window.document.querySelector(this.positionTarget); - } - else if (this.positionTarget instanceof HTMLElement) { - hostElement = this.positionTarget; - } - else { - hostElement = this._elRef.nativeElement; - } - if (this.positionTarget && !hostElement) { - throw new Error('ngbDatepicker could not find element declared in [positionTarget] to position against.'); - } - positionElements(hostElement, this._cRef.location.nativeElement, this.placement, this.container === 'body'); - }; - NgbInputDatepicker.decorators = [ - { type: Directive, args: [{ - selector: 'input[ngbDatepicker]', - exportAs: 'ngbDatepicker', - host: { - '(input)': 'manualDateChange($event.target.value)', - '(change)': 'manualDateChange($event.target.value, true)', - '(blur)': 'onBlur()', - '[disabled]': 'disabled' - }, - providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NGB_DATEPICKER_VALIDATOR, NgbDatepickerService] - },] } - ]; - /** @nocollapse */ - NgbInputDatepicker.ctorParameters = function () { return [ - { type: NgbDateParserFormatter }, - { type: ElementRef }, - { type: ViewContainerRef }, - { type: Renderer2 }, - { type: ComponentFactoryResolver }, - { type: NgZone }, - { type: NgbDatepickerService }, - { type: NgbCalendar }, - { type: NgbDateAdapter }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef } - ]; }; - NgbInputDatepicker.propDecorators = { - autoClose: [{ type: Input }], - dayTemplate: [{ type: Input }], - dayTemplateData: [{ type: Input }], - displayMonths: [{ type: Input }], - firstDayOfWeek: [{ type: Input }], - footerTemplate: [{ type: Input }], - markDisabled: [{ type: Input }], - minDate: [{ type: Input }], - maxDate: [{ type: Input }], - navigation: [{ type: Input }], - outsideDays: [{ type: Input }], - placement: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - startDate: [{ type: Input }], - container: [{ type: Input }], - positionTarget: [{ type: Input }], - dateSelect: [{ type: Output }], - navigate: [{ type: Output }], - closed: [{ type: Output }], - disabled: [{ type: Input }] - }; - return NgbInputDatepicker; -}()); -export { NgbInputDatepicker }; -if (false) { - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._cRef; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._disabled; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._model; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._inputValue; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._zoneSubscription; - /** - * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not. - * - * * `true` - the popup will close on both date selection and outside click. - * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the popup will close on date selection, but not outside clicks. - * * `"outside"` - the popup will close only on the outside click and not on date selection/inside clicks. - * - * \@since 3.0.0 - * @type {?} - */ - NgbInputDatepicker.prototype.autoClose; - /** - * The reference to a custom template for the day. - * - * Allows to completely override the way a day 'cell' in the calendar is displayed. - * - * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside. - * @type {?} - */ - NgbInputDatepicker.prototype.dayTemplate; - /** - * The callback to pass any arbitrary data to the template cell via the - * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter. - * - * `current` is the month that is currently displayed by the datepicker. - * - * \@since 3.3.0 - * @type {?} - */ - NgbInputDatepicker.prototype.dayTemplateData; - /** - * The number of months to display. - * @type {?} - */ - NgbInputDatepicker.prototype.displayMonths; - /** - * The first day of the week. - * - * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun. - * @type {?} - */ - NgbInputDatepicker.prototype.firstDayOfWeek; - /** - * The reference to the custom template for the datepicker footer. - * - * \@since 3.3.0 - * @type {?} - */ - NgbInputDatepicker.prototype.footerTemplate; - /** - * The callback to mark some dates as disabled. - * - * It is called for each new date when navigating to a different month. - * - * `current` is the month that is currently displayed by the datepicker. - * @type {?} - */ - NgbInputDatepicker.prototype.markDisabled; - /** - * The earliest date that can be displayed or selected. Also used for form validation. - * - * If not provided, 'year' select box will display 10 years before the current month. - * @type {?} - */ - NgbInputDatepicker.prototype.minDate; - /** - * The latest date that can be displayed or selected. Also used for form validation. - * - * If not provided, 'year' select box will display 10 years after the current month. - * @type {?} - */ - NgbInputDatepicker.prototype.maxDate; - /** - * Navigation type. - * - * * `"select"` - select boxes for month and navigation arrows - * * `"arrows"` - only navigation arrows - * * `"none"` - no navigation visible at all - * @type {?} - */ - NgbInputDatepicker.prototype.navigation; - /** - * The way of displaying days that don't belong to the current month. - * - * * `"visible"` - days are visible - * * `"hidden"` - days are hidden, white space preserved - * * `"collapsed"` - days are collapsed, so the datepicker height might change between months - * - * For the 2+ months view, days in between months are never shown. - * @type {?} - */ - NgbInputDatepicker.prototype.outsideDays; - /** - * The preferred placement of the datepicker popup. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - * @type {?} - */ - NgbInputDatepicker.prototype.placement; - /** - * If `true`, weekdays will be displayed. - * @type {?} - */ - NgbInputDatepicker.prototype.showWeekdays; - /** - * If `true`, week numbers will be displayed. - * @type {?} - */ - NgbInputDatepicker.prototype.showWeekNumbers; - /** - * The date to open calendar with. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date is provided, calendar will open with current month. - * - * You could use `navigateTo(date)` method as an alternative. - * @type {?} - */ - NgbInputDatepicker.prototype.startDate; - /** - * A selector specifying the element the datepicker popup should be appended to. - * - * Currently only supports `"body"`. - * @type {?} - */ - NgbInputDatepicker.prototype.container; - /** - * A css selector or html element specifying the element the datepicker popup should be positioned against. - * - * By default the input is used as a target. - * - * \@since 4.2.0 - * @type {?} - */ - NgbInputDatepicker.prototype.positionTarget; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - * - * \@since 1.1.1 - * @type {?} - */ - NgbInputDatepicker.prototype.dateSelect; - /** - * Event emitted right after the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - * @type {?} - */ - NgbInputDatepicker.prototype.navigate; - /** - * An event fired after closing datepicker window. - * - * \@since 4.2.0 - * @type {?} - */ - NgbInputDatepicker.prototype.closed; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._onChange; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._onTouched; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._validatorChange; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._parserFormatter; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._elRef; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._vcRef; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._cfr; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._service; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._calendar; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._dateAdapter; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._document; - /** - * @type {?} - * @private - */ - NgbInputDatepicker.prototype._changeDetector; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1pbnB1dC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci1pbnB1dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLGlCQUFpQixFQUNqQix3QkFBd0IsRUFFeEIsU0FBUyxFQUNULFVBQVUsRUFDVixZQUFZLEVBQ1osVUFBVSxFQUNWLE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxFQUdOLE1BQU0sRUFDTixTQUFTLEVBRVQsV0FBVyxFQUNYLGdCQUFnQixFQUNqQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUF3QyxhQUFhLEVBQUUsaUJBQWlCLEVBQVksTUFBTSxnQkFBZ0IsQ0FBQztBQUVs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WNsYXJlZCBpbiBbcG9zaXRpb25UYXJnZXRdIHRvIHBvc2l0aW9uIGFnYWluc3QuJyk7XG4gICAgfVxuXG4gICAgcG9zaXRpb25FbGVtZW50cyhob3N0RWxlbWVudCwgdGhpcy5fY1JlZi5sb2NhdGlvbi5uYXRpdmVFbGVtZW50LCB0aGlzLnBsYWNlbWVudCwgdGhpcy5jb250YWluZXIgPT09ICdib2R5Jyk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-keymap-service.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-keymap-service.js deleted file mode 100644 index 5dcdb55..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-keymap-service.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import { NgbDatepickerService } from './datepicker-service'; -import { NgbCalendar } from './ngb-calendar'; -import { Key } from '../util/key'; -var NgbDatepickerKeyMapService = /** @class */ (function () { - function NgbDatepickerKeyMapService(_service, _calendar) { - var _this = this; - this._service = _service; - this._calendar = _calendar; - _service.model$.subscribe((/** - * @param {?} model - * @return {?} - */ - function (model) { - _this._minDate = model.minDate; - _this._maxDate = model.maxDate; - _this._firstViewDate = model.firstDate; - _this._lastViewDate = model.lastDate; - })); - } - /** - * @param {?} event - * @return {?} - */ - NgbDatepickerKeyMapService.prototype.processKey = /** - * @param {?} event - * @return {?} - */ - function (event) { - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.PageUp: - this._service.focusMove(event.shiftKey ? 'y' : 'm', -1); - break; - case Key.PageDown: - this._service.focusMove(event.shiftKey ? 'y' : 'm', 1); - break; - case Key.End: - this._service.focus(event.shiftKey ? this._maxDate : this._lastViewDate); - break; - case Key.Home: - this._service.focus(event.shiftKey ? this._minDate : this._firstViewDate); - break; - case Key.ArrowLeft: - this._service.focusMove('d', -1); - break; - case Key.ArrowUp: - this._service.focusMove('d', -this._calendar.getDaysPerWeek()); - break; - case Key.ArrowRight: - this._service.focusMove('d', 1); - break; - case Key.ArrowDown: - this._service.focusMove('d', this._calendar.getDaysPerWeek()); - break; - case Key.Enter: - case Key.Space: - this._service.focusSelect(); - break; - default: - return; - } - // note 'return' in default case - event.preventDefault(); - event.stopPropagation(); - }; - NgbDatepickerKeyMapService.decorators = [ - { type: Injectable } - ]; - /** @nocollapse */ - NgbDatepickerKeyMapService.ctorParameters = function () { return [ - { type: NgbDatepickerService }, - { type: NgbCalendar } - ]; }; - return NgbDatepickerKeyMapService; -}()); -export { NgbDatepickerKeyMapService }; -if (false) { - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._minDate; - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._maxDate; - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._firstViewDate; - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._lastViewDate; - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._service; - /** - * @type {?} - * @private - */ - NgbDatepickerKeyMapService.prototype._calendar; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1rZXltYXAtc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci1rZXltYXAtc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUMsb0JBQW9CLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUMxRCxPQUFPLEVBQUMsV0FBVyxFQUF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aztcbiAgICAgIGNhc2UgS2V5LkhvbWU6XG4gICAgICAgIHRoaXMuX3NlcnZpY2UuZm9jdXMoZXZlbnQuc2hpZnRLZXkgPyB0aGlzLl9taW5EYXRlIDogdGhpcy5fZmlyc3RWaWV3RGF0ZSk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSBLZXkuQXJyb3dMZWZ0OlxuICAgICAgICB0aGlzLl9zZXJ2aWNlLmZvY3VzTW92ZSgnZCcsIC0xKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlIEtleS5BcnJvd1VwOlxuICAgICAgICB0aGlzLl9zZXJ2aWNlLmZvY3VzTW92ZSgnZCcsIC10aGlzLl9jYWxlbmRhci5nZXREYXlzUGVyV2VlaygpKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlIEtleS5BcnJvd1JpZ2h0OlxuICAgICAgICB0aGlzLl9zZXJ2aWNlLmZvY3VzTW92ZSgnZCcsIDEpO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgS2V5LkFycm93RG93bjpcbiAgICAgICAgdGhpcy5fc2VydmljZS5mb2N1c01vdmUoJ2QnLCB0aGlzLl9jYWxlbmRhci5nZXREYXlzUGVyV2VlaygpKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlIEtleS5FbnRlcjpcbiAgICAgIGNhc2UgS2V5LlNwYWNlOlxuICAgICAgICB0aGlzLl9zZXJ2aWNlLmZvY3VzU2VsZWN0KCk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgZGVmYXVsdDpcbiAgICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIC8vIG5vdGUgJ3JldHVybicgaW4gZGVmYXVsdCBjYXNlXG4gICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-month-view.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-month-view.js deleted file mode 100644 index bd43d81..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-month-view.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, TemplateRef, Output, EventEmitter, ViewEncapsulation } from '@angular/core'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -var NgbDatepickerMonthView = /** @class */ (function () { - function NgbDatepickerMonthView(i18n) { - this.i18n = i18n; - this.select = new EventEmitter(); - } - /** - * @param {?} day - * @return {?} - */ - NgbDatepickerMonthView.prototype.doSelect = /** - * @param {?} day - * @return {?} - */ - function (day) { - if (!day.context.disabled && !day.hidden) { - this.select.emit(day.date); - } - }; - NgbDatepickerMonthView.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-month-view', - host: { 'role': 'grid' }, - encapsulation: ViewEncapsulation.None, - template: "\n
\n
\n
\n {{ i18n.getWeekdayShortName(w) }}\n
\n
\n \n
\n
{{ i18n.getWeekNumerals(week.number) }}
\n
\n \n \n \n
\n
\n
\n ", - styles: ["ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerMonthView.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerMonthView.propDecorators = { - dayTemplate: [{ type: Input }], - month: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - select: [{ type: Output }] - }; - return NgbDatepickerMonthView; -}()); -export { NgbDatepickerMonthView }; -if (false) { - /** @type {?} */ - NgbDatepickerMonthView.prototype.dayTemplate; - /** @type {?} */ - NgbDatepickerMonthView.prototype.month; - /** @type {?} */ - NgbDatepickerMonthView.prototype.showWeekdays; - /** @type {?} */ - NgbDatepickerMonthView.prototype.showWeekNumbers; - /** @type {?} */ - NgbDatepickerMonthView.prototype.select; - /** @type {?} */ - NgbDatepickerMonthView.prototype.i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1tb250aC12aWV3LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9kYXRlcGlja2VyLW1vbnRoLXZpZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFFLFdBQVcsRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLGlCQUFpQixFQUFDLE1BQU0sZUFBZSxDQUFDO0FBR3JHLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBR3BEO0lBcUNFLGdDQUFtQixJQUF1QjtRQUF2QixTQUFJLEdBQUosSUFBSSxDQUFtQjtRQUZoQyxXQUFNLEdBQUcsSUFBSSxZQUFZLEVBQVcsQ0FBQztJQUVGLENBQUM7Ozs7O0lBRTlDLHlDQUFROzs7O0lBQVIsVUFBUyxHQUFpQjtRQUN4QixJQUFJLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxRQUFRLElBQUksQ0FBQyxHQUFHLENBQUMsTUFBTSxFQUFFO1lBQ3hDLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQ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GVsKSB7XG4gICAgaWYgKCFkYXkuY29udGV4dC5kaXNhYmxlZCAmJiAhZGF5LmhpZGRlbikge1xuICAgICAgdGhpcy5zZWxlY3QuZW1pdChkYXkuZGF0ZSk7XG4gICAgfVxuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-navigation-select.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-navigation-select.js deleted file mode 100644 index 07c21fd..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-navigation-select.js +++ /dev/null @@ -1,69 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core'; -import { NgbDate } from './ngb-date'; -import { toInteger } from '../util/util'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -var NgbDatepickerNavigationSelect = /** @class */ (function () { - function NgbDatepickerNavigationSelect(i18n) { - this.i18n = i18n; - this.select = new EventEmitter(); - } - /** - * @param {?} month - * @return {?} - */ - NgbDatepickerNavigationSelect.prototype.changeMonth = /** - * @param {?} month - * @return {?} - */ - function (month) { this.select.emit(new NgbDate(this.date.year, toInteger(month), 1)); }; - /** - * @param {?} year - * @return {?} - */ - NgbDatepickerNavigationSelect.prototype.changeYear = /** - * @param {?} year - * @return {?} - */ - function (year) { this.select.emit(new NgbDate(toInteger(year), this.date.month, 1)); }; - NgbDatepickerNavigationSelect.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-navigation-select', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: "\n \n \n \n \n \n ", - styles: ["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerNavigationSelect.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerNavigationSelect.propDecorators = { - date: [{ type: Input }], - disabled: [{ type: Input }], - months: [{ type: Input }], - years: [{ type: Input }], - select: [{ type: Output }] - }; - return NgbDatepickerNavigationSelect; -}()); -export { NgbDatepickerNavigationSelect }; -if (false) { - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.date; - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.disabled; - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.months; - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.years; - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.select; - /** @type {?} */ - NgbDatepickerNavigationSelect.prototype.i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1uYXZpZ2F0aW9uLXNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci1uYXZpZ2F0aW9uLXNlbGVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNqSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sWUFBWSxDQUFDO0FBQ25DLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxjQUFjLENBQUM7QUFDdkMsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFFcEQ7SUFrQ0UsdUNBQW1CLElBQXVCO1FBQXZCLFNBQUksR0FBSixJQUFJLENBQW1CO1FBRmhDLFdBQU0sR0FBRyxJQUFJ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1YmxpYyBpMThuOiBOZ2JEYXRlcGlja2VySTE4bikge31cblxuICBjaGFuZ2VNb250aChtb250aDogc3RyaW5nKSB7IHRoaXMuc2VsZWN0LmVtaXQobmV3IE5nYkRhdGUodGhpcy5kYXRlLnllYXIsIHRvSW50ZWdlcihtb250aCksIDEpKTsgfVxuXG4gIGNoYW5nZVllYXIoeWVhcjogc3RyaW5nKSB7IHRoaXMuc2VsZWN0LmVtaXQobmV3IE5nYkRhdGUodG9JbnRlZ2VyKHllYXIpLCB0aGlzLmRhdGUubW9udGgsIDEpKTsgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-navigation.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-navigation.js deleted file mode 100644 index b95145c..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-navigation.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core'; -import { NavigationEvent } from './datepicker-view-model'; -import { NgbDate } from './ngb-date'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -var NgbDatepickerNavigation = /** @class */ (function () { - function NgbDatepickerNavigation(i18n) { - this.i18n = i18n; - this.navigation = NavigationEvent; - this.months = []; - this.navigate = new EventEmitter(); - this.select = new EventEmitter(); - } - NgbDatepickerNavigation.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-navigation', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: "\n
\n \n
\n \n \n\n \n
0\">
\n
\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n
\n
\n
\n \n
\n ", - styles: ["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerNavigation.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerNavigation.propDecorators = { - date: [{ type: Input }], - disabled: [{ type: Input }], - months: [{ type: Input }], - showSelect: [{ type: Input }], - prevDisabled: [{ type: Input }], - nextDisabled: [{ type: Input }], - selectBoxes: [{ type: Input }], - navigate: [{ type: Output }], - select: [{ type: Output }] - }; - return NgbDatepickerNavigation; -}()); -export { NgbDatepickerNavigation }; -if (false) { - /** @type {?} */ - NgbDatepickerNavigation.prototype.navigation; - /** @type {?} */ - NgbDatepickerNavigation.prototype.date; - /** @type {?} */ - NgbDatepickerNavigation.prototype.disabled; - /** @type {?} */ - NgbDatepickerNavigation.prototype.months; - /** @type {?} */ - NgbDatepickerNavigation.prototype.showSelect; - /** @type {?} */ - NgbDatepickerNavigation.prototype.prevDisabled; - /** @type {?} */ - NgbDatepickerNavigation.prototype.nextDisabled; - /** @type {?} */ - NgbDatepickerNavigation.prototype.selectBoxes; - /** @type {?} */ - NgbDatepickerNavigation.prototype.navigate; - /** @type {?} */ - NgbDatepickerNavigation.prototype.select; - /** @type {?} */ - NgbDatepickerNavigation.prototype.i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1uYXZpZ2F0aW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9kYXRlcGlja2VyLW5hdmlnYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsdUJBQXVCLEVBQUUsaUJBQWlCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDakgsT0FBTyxFQUFDLGVBQWUsRUFBaUIsTUFBTSx5QkFBeUIsQ0FBQztBQUN4RSxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sWUFBWSxDQUFDO0FBQ25DLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBRXBEO0lBbURFLGlDQUFtQixJQUF1QjtRQUF2QixTQUFJLEdBQUosSUFBSSxDQUFtQjtRQWIxQyxlQUFVLEdBQUcsZUFBZSxDQUFDO1FBSXBCLFdBQU0sR0FBcUIsRUFBRSxDQUFDO1FBTTdCLGFBQVEsR0FBRyxJQUFJLFlBQVksRUFBbUIsQ0FBQztRQUMvQyxXQUFNLEdBQUcsSUFBSSxZQUFZLEVBQVcsQ0FBQztJQUVGLENBQUM7O2dCQW5EL0MsU0FBUyxTQUFDO29CQUNULFFBQVEsRUFBRSwyQkFBMkI7b0JBQ3JDLGVBQWUsRUFBRSx1QkFBdUIsQ0FBQyxNQUFNO29CQUMvQyxhQUFhLEVBQUU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iLWRwLW5hdmlnYXRpb24tY2hldnJvblwiPjwvc3Bhbj5cbiAgICAgIDwvYnV0dG9uPlxuICAgIDwvZGl2PlxuICAgIGBcbn0pXG5leHBvcnQgY2xhc3MgTmdiRGF0ZXBpY2tlck5hdmlnYXRpb24ge1xuICBuYXZpZ2F0aW9uID0gTmF2aWdhdGlvbkV2ZW50O1xuXG4gIEBJbnB1dCgpIGRhdGU6IE5nYkRhdGU7XG4gIEBJbnB1dCgpIGRpc2FibGVkOiBib29sZWFuO1xuICBASW5wdXQoKSBtb250aHM6IE1vbnRoVmlld01vZGVsW10gPSBbXTtcbiAgQElucHV0KCkgc2hvd1NlbGVjdDogYm9vbGVhbjtcbiAgQElucHV0KCkgcHJldkRpc2FibGVkOiBib29sZWFuO1xuICBASW5wdXQoKSBuZXh0RGlzYWJsZWQ6IGJvb2xlYW47XG4gIEBJbnB1dCgpIHNlbGVjdEJveGVzOiB7eWVhcnM6IG51bWJlcltdLCBtb250aHM6IG51bWJlcltdfTtcblxuICBAT3V0cHV0KCkgbmF2aWdhdGUgPSBuZXcgRXZlbnRFbWl0dGVyPE5hdmlnYXRpb25FdmVudD4oKTtcbiAgQE91dHB1dCgpIHNlbGVjdCA9IG5ldyBFdmVudEVtaXR0ZXI8TmdiRGF0ZT4oKTtcblxuICBjb25zdHJ1Y3RvcihwdWJsaWMgaTE4bjogTmdiRGF0ZXBpY2tlckkxOG4pIHt9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-service.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-service.js deleted file mode 100644 index 3ebfa04..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-service.js +++ /dev/null @@ -1,492 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbCalendar } from './ngb-calendar'; -import { NgbDate } from './ngb-date'; -import { Injectable } from '@angular/core'; -import { isInteger, toInteger } from '../util/util'; -import { Subject } from 'rxjs'; -import { buildMonths, checkDateInRange, checkMinBeforeMax, isChangedDate, isChangedMonth, isDateSelectable, generateSelectBoxYears, generateSelectBoxMonths, prevMonthDisabled, nextMonthDisabled } from './datepicker-tools'; -import { filter } from 'rxjs/operators'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -var NgbDatepickerService = /** @class */ (function () { - function NgbDatepickerService(_calendar, _i18n) { - this._calendar = _calendar; - this._i18n = _i18n; - this._model$ = new Subject(); - this._select$ = new Subject(); - this._state = { - disabled: false, - displayMonths: 1, - firstDayOfWeek: 1, - focusVisible: false, - months: [], - navigation: 'select', - outsideDays: 'visible', - prevDisabled: false, - nextDisabled: false, - selectBoxes: { years: [], months: [] }, - selectedDate: null - }; - } - Object.defineProperty(NgbDatepickerService.prototype, "model$", { - get: /** - * @return {?} - */ - function () { return this._model$.pipe(filter((/** - * @param {?} model - * @return {?} - */ - function (model) { return model.months.length > 0; }))); }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "select$", { - get: /** - * @return {?} - */ - function () { return this._select$.pipe(filter((/** - * @param {?} date - * @return {?} - */ - function (date) { return date !== null; }))); }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "dayTemplateData", { - set: /** - * @param {?} dayTemplateData - * @return {?} - */ - function (dayTemplateData) { - if (this._state.dayTemplateData !== dayTemplateData) { - this._nextState({ dayTemplateData: dayTemplateData }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "disabled", { - set: /** - * @param {?} disabled - * @return {?} - */ - function (disabled) { - if (this._state.disabled !== disabled) { - this._nextState({ disabled: disabled }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "displayMonths", { - set: /** - * @param {?} displayMonths - * @return {?} - */ - function (displayMonths) { - displayMonths = toInteger(displayMonths); - if (isInteger(displayMonths) && displayMonths > 0 && this._state.displayMonths !== displayMonths) { - this._nextState({ displayMonths: displayMonths }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "firstDayOfWeek", { - set: /** - * @param {?} firstDayOfWeek - * @return {?} - */ - function (firstDayOfWeek) { - firstDayOfWeek = toInteger(firstDayOfWeek); - if (isInteger(firstDayOfWeek) && firstDayOfWeek >= 0 && this._state.firstDayOfWeek !== firstDayOfWeek) { - this._nextState({ firstDayOfWeek: firstDayOfWeek }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "focusVisible", { - set: /** - * @param {?} focusVisible - * @return {?} - */ - function (focusVisible) { - if (this._state.focusVisible !== focusVisible && !this._state.disabled) { - this._nextState({ focusVisible: focusVisible }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "maxDate", { - set: /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var maxDate = this.toValidDate(date, null); - if (isChangedDate(this._state.maxDate, maxDate)) { - this._nextState({ maxDate: maxDate }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "markDisabled", { - set: /** - * @param {?} markDisabled - * @return {?} - */ - function (markDisabled) { - if (this._state.markDisabled !== markDisabled) { - this._nextState({ markDisabled: markDisabled }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "minDate", { - set: /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var minDate = this.toValidDate(date, null); - if (isChangedDate(this._state.minDate, minDate)) { - this._nextState({ minDate: minDate }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "navigation", { - set: /** - * @param {?} navigation - * @return {?} - */ - function (navigation) { - if (this._state.navigation !== navigation) { - this._nextState({ navigation: navigation }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "outsideDays", { - set: /** - * @param {?} outsideDays - * @return {?} - */ - function (outsideDays) { - if (this._state.outsideDays !== outsideDays) { - this._nextState({ outsideDays: outsideDays }); - } - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerService.prototype.focus = /** - * @param {?} date - * @return {?} - */ - function (date) { - if (!this._state.disabled && this._calendar.isValid(date) && isChangedDate(this._state.focusDate, date)) { - this._nextState({ focusDate: date }); - } - }; - /** - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbDatepickerService.prototype.focusMove = /** - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (period, number) { - this.focus(this._calendar.getNext(this._state.focusDate, period, number)); - }; - /** - * @return {?} - */ - NgbDatepickerService.prototype.focusSelect = /** - * @return {?} - */ - function () { - if (isDateSelectable(this._state.focusDate, this._state)) { - this.select(this._state.focusDate, { emitEvent: true }); - } - }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerService.prototype.open = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var firstDate = this.toValidDate(date, this._calendar.getToday()); - if (!this._state.disabled && (!this._state.firstDate || isChangedMonth(this._state.firstDate, date))) { - this._nextState({ firstDate: firstDate }); - } - }; - /** - * @param {?} date - * @param {?=} options - * @return {?} - */ - NgbDatepickerService.prototype.select = /** - * @param {?} date - * @param {?=} options - * @return {?} - */ - function (date, options) { - if (options === void 0) { options = {}; } - /** @type {?} */ - var selectedDate = this.toValidDate(date, null); - if (!this._state.disabled) { - if (isChangedDate(this._state.selectedDate, selectedDate)) { - this._nextState({ selectedDate: selectedDate }); - } - if (options.emitEvent && isDateSelectable(selectedDate, this._state)) { - this._select$.next(selectedDate); - } - } - }; - /** - * @param {?} date - * @param {?=} defaultValue - * @return {?} - */ - NgbDatepickerService.prototype.toValidDate = /** - * @param {?} date - * @param {?=} defaultValue - * @return {?} - */ - function (date, defaultValue) { - /** @type {?} */ - var ngbDate = NgbDate.from(date); - if (defaultValue === undefined) { - defaultValue = this._calendar.getToday(); - } - return this._calendar.isValid(ngbDate) ? ngbDate : defaultValue; - }; - /** - * @private - * @param {?} patch - * @return {?} - */ - NgbDatepickerService.prototype._nextState = /** - * @private - * @param {?} patch - * @return {?} - */ - function (patch) { - /** @type {?} */ - var newState = this._updateState(patch); - this._patchContexts(newState); - this._state = newState; - this._model$.next(this._state); - }; - /** - * @private - * @param {?} state - * @return {?} - */ - NgbDatepickerService.prototype._patchContexts = /** - * @private - * @param {?} state - * @return {?} - */ - function (state) { - var months = state.months, displayMonths = state.displayMonths, selectedDate = state.selectedDate, focusDate = state.focusDate, focusVisible = state.focusVisible, disabled = state.disabled, outsideDays = state.outsideDays; - state.months.forEach((/** - * @param {?} month - * @return {?} - */ - function (month) { - month.weeks.forEach((/** - * @param {?} week - * @return {?} - */ - function (week) { - week.days.forEach((/** - * @param {?} day - * @return {?} - */ - function (day) { - // patch focus flag - if (focusDate) { - day.context.focused = focusDate.equals(day.date) && focusVisible; - } - // calculating tabindex - day.tabindex = !disabled && day.date.equals(focusDate) && focusDate.month === month.number ? 0 : -1; - // override context disabled - if (disabled === true) { - day.context.disabled = true; - } - // patch selection flag - if (selectedDate !== undefined) { - day.context.selected = selectedDate !== null && selectedDate.equals(day.date); - } - // visibility - if (month.number !== day.date.month) { - day.hidden = outsideDays === 'hidden' || outsideDays === 'collapsed' || - (displayMonths > 1 && day.date.after(months[0].firstDate) && - day.date.before(months[displayMonths - 1].lastDate)); - } - })); - })); - })); - }; - /** - * @private - * @param {?} patch - * @return {?} - */ - NgbDatepickerService.prototype._updateState = /** - * @private - * @param {?} patch - * @return {?} - */ - function (patch) { - // patching fields - /** @type {?} */ - var state = Object.assign({}, this._state, patch); - /** @type {?} */ - var startDate = state.firstDate; - // min/max dates changed - if ('minDate' in patch || 'maxDate' in patch) { - checkMinBeforeMax(state.minDate, state.maxDate); - state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate); - state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate); - startDate = state.focusDate; - } - // disabled - if ('disabled' in patch) { - state.focusVisible = false; - } - // initial rebuild via 'select()' - if ('selectedDate' in patch && this._state.months.length === 0) { - startDate = state.selectedDate; - } - // terminate early if only focus visibility was changed - if ('focusVisible' in patch) { - return state; - } - // focus date changed - if ('focusDate' in patch) { - state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate); - startDate = state.focusDate; - // nothing to rebuild if only focus changed and it is still visible - if (state.months.length !== 0 && !state.focusDate.before(state.firstDate) && - !state.focusDate.after(state.lastDate)) { - return state; - } - } - // first date changed - if ('firstDate' in patch) { - state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate); - startDate = state.firstDate; - } - // rebuilding months - if (startDate) { - /** @type {?} */ - var forceRebuild = 'dayTemplateData' in patch || 'firstDayOfWeek' in patch || 'markDisabled' in patch || - 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch || 'outsideDays' in patch; - /** @type {?} */ - var months = buildMonths(this._calendar, startDate, state, this._i18n, forceRebuild); - // updating months and boundary dates - state.months = months; - state.firstDate = months.length > 0 ? months[0].firstDate : undefined; - state.lastDate = months.length > 0 ? months[months.length - 1].lastDate : undefined; - // reset selected date if 'markDisabled' returns true - if ('selectedDate' in patch && !isDateSelectable(state.selectedDate, state)) { - state.selectedDate = null; - } - // adjusting focus after months were built - if ('firstDate' in patch) { - if (state.focusDate === undefined || state.focusDate.before(state.firstDate) || - state.focusDate.after(state.lastDate)) { - state.focusDate = startDate; - } - } - // adjusting months/years for the select box navigation - /** @type {?} */ - var yearChanged = !this._state.firstDate || this._state.firstDate.year !== state.firstDate.year; - /** @type {?} */ - var monthChanged = !this._state.firstDate || this._state.firstDate.month !== state.firstDate.month; - if (state.navigation === 'select') { - // years -> boundaries (min/max were changed) - if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.years.length === 0 || yearChanged) { - state.selectBoxes.years = generateSelectBoxYears(state.firstDate, state.minDate, state.maxDate); - } - // months -> when current year or boundaries change - if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.months.length === 0 || yearChanged) { - state.selectBoxes.months = - generateSelectBoxMonths(this._calendar, state.firstDate, state.minDate, state.maxDate); - } - } - else { - state.selectBoxes = { years: [], months: [] }; - } - // updating navigation arrows -> boundaries change (min/max) or month/year changes - if ((state.navigation === 'arrows' || state.navigation === 'select') && - (monthChanged || yearChanged || 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch)) { - state.prevDisabled = state.disabled || prevMonthDisabled(this._calendar, state.firstDate, state.minDate); - state.nextDisabled = state.disabled || nextMonthDisabled(this._calendar, state.lastDate, state.maxDate); - } - } - return state; - }; - NgbDatepickerService.decorators = [ - { type: Injectable } - ]; - /** @nocollapse */ - NgbDatepickerService.ctorParameters = function () { return [ - { type: NgbCalendar }, - { type: NgbDatepickerI18n } - ]; }; - return NgbDatepickerService; -}()); -export { NgbDatepickerService }; -if (false) { - /** - * @type {?} - * @private - */ - NgbDatepickerService.prototype._model$; - /** - * @type {?} - * @private - */ - NgbDatepickerService.prototype._select$; - /** - * @type {?} - * @private - */ - NgbDatepickerService.prototype._state; - /** - * @type {?} - * @private - */ - NgbDatepickerService.prototype._calendar; - /** - * @type {?} - * @private - */ - NgbDatepickerService.prototype._i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9kYXRlcGlja2VyLXNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxXQUFXLEVBQVksTUFBTSxnQkFBZ0IsQ0FBQztBQUN0RCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sWUFBWSxDQUFDO0FBR25DLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLEN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IHBhdGNoIHx8ICdkaXNhYmxlZCcgaW4gcGF0Y2gpKSB7XG4gICAgICAgIHN0YXRlLnByZXZEaXNhYmxlZCA9IHN0YXRlLmRpc2FibGVkIHx8IHByZXZNb250aERpc2FibGVkKHRoaXMuX2NhbGVuZGFyLCBzdGF0ZS5maXJzdERhdGUsIHN0YXRlLm1pbkRhdGUpO1xuICAgICAgICBzdGF0ZS5uZXh0RGlzYWJsZWQgPSBzdGF0ZS5kaXNhYmxlZCB8fCBuZXh0TW9udGhEaXNhYmxlZCh0aGlzLl9jYWxlbmRhciwgc3RhdGUubGFzdERhdGUsIHN0YXRlLm1heERhdGUpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBzdGF0ZTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-tools.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-tools.js deleted file mode 100644 index 166b311..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-tools.js +++ /dev/null @@ -1,302 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbDate } from './ngb-date'; -import { isDefined } from '../util/util'; -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -export function isChangedDate(prev, next) { - return !dateComparator(prev, next); -} -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -export function isChangedMonth(prev, next) { - return !prev && !next ? false : !prev || !next ? true : prev.year !== next.year || prev.month !== next.month; -} -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -export function dateComparator(prev, next) { - return (!prev && !next) || (!!prev && !!next && prev.equals(next)); -} -/** - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -export function checkMinBeforeMax(minDate, maxDate) { - if (maxDate && minDate && maxDate.before(minDate)) { - throw new Error("'maxDate' " + maxDate + " should be greater than 'minDate' " + minDate); - } -} -/** - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -export function checkDateInRange(date, minDate, maxDate) { - if (date && minDate && date.before(minDate)) { - return minDate; - } - if (date && maxDate && date.after(maxDate)) { - return maxDate; - } - return date; -} -/** - * @param {?} date - * @param {?} state - * @return {?} - */ -export function isDateSelectable(date, state) { - var minDate = state.minDate, maxDate = state.maxDate, disabled = state.disabled, markDisabled = state.markDisabled; - // clang-format off - return !(!isDefined(date) || - disabled || - (markDisabled && markDisabled(date, { year: date.year, month: date.month })) || - (minDate && date.before(minDate)) || - (maxDate && date.after(maxDate))); - // clang-format on -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -export function generateSelectBoxMonths(calendar, date, minDate, maxDate) { - if (!date) { - return []; - } - /** @type {?} */ - var months = calendar.getMonths(date.year); - if (minDate && date.year === minDate.year) { - /** @type {?} */ - var index = months.findIndex((/** - * @param {?} month - * @return {?} - */ - function (month) { return month === minDate.month; })); - months = months.slice(index); - } - if (maxDate && date.year === maxDate.year) { - /** @type {?} */ - var index = months.findIndex((/** - * @param {?} month - * @return {?} - */ - function (month) { return month === maxDate.month; })); - months = months.slice(0, index + 1); - } - return months; -} -/** - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -export function generateSelectBoxYears(date, minDate, maxDate) { - if (!date) { - return []; - } - /** @type {?} */ - var start = minDate && minDate.year || date.year - 10; - /** @type {?} */ - var end = maxDate && maxDate.year || date.year + 10; - return Array.from({ length: end - start + 1 }, (/** - * @param {?} e - * @param {?} i - * @return {?} - */ - function (e, i) { return start + i; })); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} maxDate - * @return {?} - */ -export function nextMonthDisabled(calendar, date, maxDate) { - return maxDate && calendar.getNext(date, 'm').after(maxDate); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} minDate - * @return {?} - */ -export function prevMonthDisabled(calendar, date, minDate) { - /** @type {?} */ - var prevDate = calendar.getPrev(date, 'm'); - return minDate && (prevDate.year === minDate.year && prevDate.month < minDate.month || - prevDate.year < minDate.year && minDate.month === 1); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} state - * @param {?} i18n - * @param {?} force - * @return {?} - */ -export function buildMonths(calendar, date, state, i18n, force) { - var displayMonths = state.displayMonths, months = state.months; - // move old months to a temporary array - /** @type {?} */ - var monthsToReuse = months.splice(0, months.length); - // generate new first dates, nullify or reuse months - /** @type {?} */ - var firstDates = Array.from({ length: displayMonths }, (/** - * @param {?} _ - * @param {?} i - * @return {?} - */ - function (_, i) { - /** @type {?} */ - var firstDate = calendar.getNext(date, 'm', i); - months[i] = null; - if (!force) { - /** @type {?} */ - var reusedIndex = monthsToReuse.findIndex((/** - * @param {?} month - * @return {?} - */ - function (month) { return month.firstDate.equals(firstDate); })); - // move reused month back to months - if (reusedIndex !== -1) { - months[i] = monthsToReuse.splice(reusedIndex, 1)[0]; - } - } - return firstDate; - })); - // rebuild nullified months - firstDates.forEach((/** - * @param {?} firstDate - * @param {?} i - * @return {?} - */ - function (firstDate, i) { - if (months[i] === null) { - months[i] = buildMonth(calendar, firstDate, state, i18n, monthsToReuse.shift() || (/** @type {?} */ ({}))); - } - })); - return months; -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} state - * @param {?} i18n - * @param {?=} month - * @return {?} - */ -export function buildMonth(calendar, date, state, i18n, month) { - if (month === void 0) { month = (/** @type {?} */ ({})); } - var dayTemplateData = state.dayTemplateData, minDate = state.minDate, maxDate = state.maxDate, firstDayOfWeek = state.firstDayOfWeek, markDisabled = state.markDisabled, outsideDays = state.outsideDays; - /** @type {?} */ - var calendarToday = calendar.getToday(); - month.firstDate = null; - month.lastDate = null; - month.number = date.month; - month.year = date.year; - month.weeks = month.weeks || []; - month.weekdays = month.weekdays || []; - date = getFirstViewDate(calendar, date, firstDayOfWeek); - // month has weeks - for (var week = 0; week < calendar.getWeeksPerMonth(); week++) { - /** @type {?} */ - var weekObject = month.weeks[week]; - if (!weekObject) { - weekObject = month.weeks[week] = { number: 0, days: [], collapsed: true }; - } - /** @type {?} */ - var days = weekObject.days; - // week has days - for (var day = 0; day < calendar.getDaysPerWeek(); day++) { - if (week === 0) { - month.weekdays[day] = calendar.getWeekday(date); - } - /** @type {?} */ - var newDate = new NgbDate(date.year, date.month, date.day); - /** @type {?} */ - var nextDate = calendar.getNext(newDate); - /** @type {?} */ - var ariaLabel = i18n.getDayAriaLabel(newDate); - // marking date as disabled - /** @type {?} */ - var disabled = !!((minDate && newDate.before(minDate)) || (maxDate && newDate.after(maxDate))); - if (!disabled && markDisabled) { - disabled = markDisabled(newDate, { month: month.number, year: month.year }); - } - // today - /** @type {?} */ - var today = newDate.equals(calendarToday); - // adding user-provided data to the context - /** @type {?} */ - var contextUserData = dayTemplateData ? dayTemplateData(newDate, { month: month.number, year: month.year }) : undefined; - // saving first date of the month - if (month.firstDate === null && newDate.month === month.number) { - month.firstDate = newDate; - } - // saving last date of the month - if (newDate.month === month.number && nextDate.month !== month.number) { - month.lastDate = newDate; - } - /** @type {?} */ - var dayObject = days[day]; - if (!dayObject) { - dayObject = days[day] = (/** @type {?} */ ({})); - } - dayObject.date = newDate; - dayObject.context = Object.assign(dayObject.context || {}, { - $implicit: newDate, - date: newDate, - data: contextUserData, - currentMonth: month.number, disabled: disabled, - focused: false, - selected: false, today: today - }); - dayObject.tabindex = -1; - dayObject.ariaLabel = ariaLabel; - dayObject.hidden = false; - date = nextDate; - } - weekObject.number = calendar.getWeekNumber(days.map((/** - * @param {?} day - * @return {?} - */ - function (day) { return day.date; })), firstDayOfWeek); - // marking week as collapsed - weekObject.collapsed = outsideDays === 'collapsed' && days[0].date.month !== month.number && - days[days.length - 1].date.month !== month.number; - } - return month; -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} firstDayOfWeek - * @return {?} - */ -export function getFirstViewDate(calendar, date, firstDayOfWeek) { - /** @type {?} */ - var daysPerWeek = calendar.getDaysPerWeek(); - /** @type {?} */ - var firstMonthDate = new NgbDate(date.year, date.month, 1); - /** @type {?} */ - var dayOfWeek = calendar.getWeekday(firstMonthDate) % daysPerWeek; - return calendar.getPrev(firstMonthDate, 'd', (daysPerWeek + dayOfWeek - firstDayOfWeek) % daysPerWeek); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci10b29scy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci10b29scy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLFlBQVksQ0FBQztBQUduQyxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sY0FBYyxDQUFDOzs7Ozs7QUFHdkMsTUFBTSxVQUFVLGFBQWEsQ0FBQyxJQUFhLEVBQUUsSUFBYTtJQUN4RCxPQUFPLENBQUMsY0FBYyxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztBQUNyQyxDQUFDOzs7Ozs7QUFFRCxNQUFNLFVBQVUsY0FBYyxDQUFDLElBQWEsRUFBRSxJQUFhO0lBQ3pELE9BQU8sQ0FBQyxJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksS0FBSyxJQUFJLENBQUMsSUFBSSxJQUFJLElBQUksQ0FBQyxLQUFLLEtBQUssSUFBSSxDQUFDLEtBQUssQ0FBQztBQUMvRyxDQUFDOzs7Ozs7QUFFRCxNQUFNLFVBQVUsY0FBYyxDQUFDLElBQWEsRUFBRSxJQUFhO0lBQ3pELE9BQU8sQ0FB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V2VlaykgJSBkYXlzUGVyV2Vlayk7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker-view-model.js b/dist/ng-bootstrap/esm5/datepicker/datepicker-view-model.js deleted file mode 100644 index 3a30522..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker-view-model.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -var NavigationEvent = { - PREV: 0, - NEXT: 1, -}; -export { NavigationEvent }; -NavigationEvent[NavigationEvent.PREV] = 'PREV'; -NavigationEvent[NavigationEvent.NEXT] = 'NEXT'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci12aWV3LW1vZGVsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9kYXRlcGlja2VyLXZpZXctbW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0lBeURFLE9BQUk7SUFDSixPQUFJIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ2JEYXRlfSBmcm9tICcuL25nYi1kYXRlJztcbmltcG9ydCB7TmdiRGF0ZVN0cnVjdH0gZnJvbSAnLi9uZ2ItZGF0ZS1zdHJ1Y3QnO1xuaW1wb3J0IHtEYXlUZW1wbGF0ZUNvbnRleHR9IGZyb20gJy4vZGF0ZXBpY2tlci1kYXktdGVtcGxhdGUtY29udGV4dCc7XG5cbmV4cG9ydCB0eXBlIE5nYk1hcmtEaXNhYmxlZCA9IChkYXRlOiBOZ2JEYXRlU3RydWN0LCBjdXJyZW50OiB7eWVhcjogbnVtYmVyLCBtb250aDogbnVtYmVyfSkgPT4gYm9vb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mtEaXNhYmxlZD86IE5nYk1hcmtEaXNhYmxlZCxcbiAgbWF4RGF0ZT86IE5nYkRhdGUsXG4gIG1pbkRhdGU/OiBOZ2JEYXRlLFxuICBtb250aHM6IE1vbnRoVmlld01vZGVsW10sXG4gIG5hdmlnYXRpb246ICdzZWxlY3QnIHwgJ2Fycm93cycgfCAnbm9uZScsXG4gIG91dHNpZGVEYXlzOiAndmlzaWJsZScgfCAnY29sbGFwc2VkJyB8ICdoaWRkZW4nLFxuICBwcmV2RGlzYWJsZWQ6IGJvb2xlYW4sXG4gIG5leHREaXNhYmxlZDogYm9vbGVhbixcbiAgc2VsZWN0Qm94ZXM6IHtcbiAgICB5ZWFyczogbnVtYmVyW10sXG4gICAgbW9udGhzOiBudW1iZXJbXVxuICB9LFxuICBzZWxlY3RlZERhdGU6IE5nYkRhdGVcbn07XG4vLyBjbGFuZy1mb3JtYXQgb25cblxuZXhwb3J0IGVudW0gTmF2aWdhdGlvbkV2ZW50IHtcbiAgUFJFVixcbiAgTkVYVFxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker.js b/dist/ng-bootstrap/esm5/datepicker/datepicker.js deleted file mode 100644 index a0158df..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker.js +++ /dev/null @@ -1,598 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { fromEvent, merge, Subject } from 'rxjs'; -import { filter, take, takeUntil } from 'rxjs/operators'; -import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Input, NgZone, Output, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -import { NgbCalendar } from './ngb-calendar'; -import { NgbDate } from './ngb-date'; -import { NgbDatepickerService } from './datepicker-service'; -import { NgbDatepickerKeyMapService } from './datepicker-keymap-service'; -import { NavigationEvent } from './datepicker-view-model'; -import { NgbDatepickerConfig } from './datepicker-config'; -import { NgbDateAdapter } from './adapters/ngb-date-adapter'; -import { NgbDatepickerI18n } from './datepicker-i18n'; -import { isChangedDate, isChangedMonth } from './datepicker-tools'; -import { hasClassName } from '../util/util'; -/** @type {?} */ -var NGB_DATEPICKER_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbDatepicker; })), - multi: true -}; -/** - * An event emitted right before the navigation happens and the month displayed by the datepicker changes. - * @record - */ -export function NgbDatepickerNavigateEvent() { } -if (false) { - /** - * The currently displayed month. - * @type {?} - */ - NgbDatepickerNavigateEvent.prototype.current; - /** - * The month we're navigating to. - * @type {?} - */ - NgbDatepickerNavigateEvent.prototype.next; - /** - * Calling this function will prevent navigation from happening. - * - * \@since 4.1.0 - * @type {?} - */ - NgbDatepickerNavigateEvent.prototype.preventDefault; -} -/** - * A highly configurable component that helps you with selecting calendar dates. - * - * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup. - */ -var NgbDatepicker = /** @class */ (function () { - function NgbDatepicker(_keyMapService, _service, _calendar, i18n, config, _cd, _elementRef, _ngbDateAdapter, _ngZone) { - var _this = this; - this._keyMapService = _keyMapService; - this._service = _service; - this._calendar = _calendar; - this.i18n = i18n; - this._cd = _cd; - this._elementRef = _elementRef; - this._ngbDateAdapter = _ngbDateAdapter; - this._ngZone = _ngZone; - this._destroyed$ = new Subject(); - /** - * An event emitted right before the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - this.navigate = new EventEmitter(); - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - */ - this.select = new EventEmitter(); - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate', - 'maxDate', 'navigation', 'outsideDays', 'showWeekdays', 'showWeekNumbers', 'startDate'] - .forEach((/** - * @param {?} input - * @return {?} - */ - function (input) { return _this[input] = config[input]; })); - _service.select$.pipe(takeUntil(this._destroyed$)).subscribe((/** - * @param {?} date - * @return {?} - */ - function (date) { _this.select.emit(date); })); - _service.model$.pipe(takeUntil(this._destroyed$)).subscribe((/** - * @param {?} model - * @return {?} - */ - function (model) { - /** @type {?} */ - var newDate = model.firstDate; - /** @type {?} */ - var oldDate = _this.model ? _this.model.firstDate : null; - /** @type {?} */ - var navigationPrevented = false; - // emitting navigation event if the first month changes - if (!newDate.equals(oldDate)) { - _this.navigate.emit({ - current: oldDate ? { year: oldDate.year, month: oldDate.month } : null, - next: { year: newDate.year, month: newDate.month }, - preventDefault: (/** - * @return {?} - */ - function () { return navigationPrevented = true; }) - }); - // can't prevent the very first navigation - if (navigationPrevented && oldDate !== null) { - _this._service.open(oldDate); - return; - } - } - /** @type {?} */ - var newSelectedDate = model.selectedDate; - /** @type {?} */ - var newFocusedDate = model.focusDate; - /** @type {?} */ - var oldFocusedDate = _this.model ? _this.model.focusDate : null; - _this.model = model; - // handling selection change - if (isChangedDate(newSelectedDate, _this._controlValue)) { - _this._controlValue = newSelectedDate; - _this.onTouched(); - _this.onChange(_this._ngbDateAdapter.toModel(newSelectedDate)); - } - // handling focus change - if (isChangedDate(newFocusedDate, oldFocusedDate) && oldFocusedDate && model.focusVisible) { - _this.focus(); - } - _cd.markForCheck(); - })); - } - /** - * @return {?} - */ - NgbDatepicker.prototype.focus = /** - * @return {?} - */ - function () { - var _this = this; - this._ngZone.onStable.asObservable().pipe(take(1)).subscribe((/** - * @return {?} - */ - function () { - /** @type {?} */ - var elementToFocus = _this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]'); - if (elementToFocus) { - elementToFocus.focus(); - } - })); - }; - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - */ - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - NgbDatepicker.prototype.navigateTo = /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - function (date) { - this._service.open(NgbDate.from(date ? date.day ? (/** @type {?} */ (date)) : tslib_1.__assign({}, date, { day: 1 }) : null)); - }; - /** - * @return {?} - */ - NgbDatepicker.prototype.ngAfterViewInit = /** - * @return {?} - */ - function () { - var _this = this; - this._ngZone.runOutsideAngular((/** - * @return {?} - */ - function () { - /** @type {?} */ - var focusIns$ = fromEvent(_this._monthsEl.nativeElement, 'focusin'); - /** @type {?} */ - var focusOuts$ = fromEvent(_this._monthsEl.nativeElement, 'focusout'); - // we're changing 'focusVisible' only when entering or leaving months view - // and ignoring all focus events where both 'target' and 'related' target are day cells - merge(focusIns$, focusOuts$) - .pipe(filter((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var target = _a.target, relatedTarget = _a.relatedTarget; - return !(hasClassName(target, 'ngb-dp-day') && hasClassName(relatedTarget, 'ngb-dp-day')); - })), takeUntil(_this._destroyed$)) - .subscribe((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var type = _a.type; - return _this._ngZone.run((/** - * @return {?} - */ - function () { return _this._service.focusVisible = type === 'focusin'; })); - })); - })); - }; - /** - * @return {?} - */ - NgbDatepicker.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { this._destroyed$.next(); }; - /** - * @return {?} - */ - NgbDatepicker.prototype.ngOnInit = /** - * @return {?} - */ - function () { - var _this = this; - if (this.model === undefined) { - ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate', - 'outsideDays'] - .forEach((/** - * @param {?} input - * @return {?} - */ - function (input) { return _this._service[input] = _this[input]; })); - this.navigateTo(this.startDate); - } - }; - /** - * @param {?} changes - * @return {?} - */ - NgbDatepicker.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - var _this = this; - ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate', - 'outsideDays'] - .filter((/** - * @param {?} input - * @return {?} - */ - function (input) { return input in changes; })) - .forEach((/** - * @param {?} input - * @return {?} - */ - function (input) { return _this._service[input] = _this[input]; })); - if ('startDate' in changes) { - var _a = changes.startDate, currentValue = _a.currentValue, previousValue = _a.previousValue; - if (isChangedMonth(previousValue, currentValue)) { - this.navigateTo(this.startDate); - } - } - }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepicker.prototype.onDateSelect = /** - * @param {?} date - * @return {?} - */ - function (date) { - this._service.focus(date); - this._service.select(date, { emitEvent: true }); - }; - /** - * @param {?} event - * @return {?} - */ - NgbDatepicker.prototype.onKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { this._keyMapService.processKey(event); }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepicker.prototype.onNavigateDateSelect = /** - * @param {?} date - * @return {?} - */ - function (date) { this._service.open(date); }; - /** - * @param {?} event - * @return {?} - */ - NgbDatepicker.prototype.onNavigateEvent = /** - * @param {?} event - * @return {?} - */ - function (event) { - switch (event) { - case NavigationEvent.PREV: - this._service.open(this._calendar.getPrev(this.model.firstDate, 'm', 1)); - break; - case NavigationEvent.NEXT: - this._service.open(this._calendar.getNext(this.model.firstDate, 'm', 1)); - break; - } - }; - /** - * @param {?} fn - * @return {?} - */ - NgbDatepicker.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbDatepicker.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbDatepicker.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this._service.disabled = isDisabled; }; - /** - * @param {?} value - * @return {?} - */ - NgbDatepicker.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._controlValue = NgbDate.from(this._ngbDateAdapter.fromModel(value)); - this._service.select(this._controlValue); - }; - NgbDatepicker.decorators = [ - { type: Component, args: [{ - exportAs: 'ngbDatepicker', - selector: 'ngb-datepicker', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: "\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n \n
\n
1 && navigation === 'select')\"\n class=\"ngb-dp-month-name\">\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n \n \n
\n
\n
\n\n \n ", - providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService, NgbDatepickerKeyMapService], - styles: ["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"] - }] } - ]; - /** @nocollapse */ - NgbDatepicker.ctorParameters = function () { return [ - { type: NgbDatepickerKeyMapService }, - { type: NgbDatepickerService }, - { type: NgbCalendar }, - { type: NgbDatepickerI18n }, - { type: NgbDatepickerConfig }, - { type: ChangeDetectorRef }, - { type: ElementRef }, - { type: NgbDateAdapter }, - { type: NgZone } - ]; }; - NgbDatepicker.propDecorators = { - _monthsEl: [{ type: ViewChild, args: ['months', { static: true },] }], - dayTemplate: [{ type: Input }], - dayTemplateData: [{ type: Input }], - displayMonths: [{ type: Input }], - firstDayOfWeek: [{ type: Input }], - footerTemplate: [{ type: Input }], - markDisabled: [{ type: Input }], - maxDate: [{ type: Input }], - minDate: [{ type: Input }], - navigation: [{ type: Input }], - outsideDays: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - startDate: [{ type: Input }], - navigate: [{ type: Output }], - select: [{ type: Output }] - }; - return NgbDatepicker; -}()); -export { NgbDatepicker }; -if (false) { - /** @type {?} */ - NgbDatepicker.prototype.model; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._monthsEl; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._controlValue; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._destroyed$; - /** - * The reference to a custom template for the day. - * - * Allows to completely override the way a day 'cell' in the calendar is displayed. - * - * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside. - * @type {?} - */ - NgbDatepicker.prototype.dayTemplate; - /** - * The callback to pass any arbitrary data to the template cell via the - * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter. - * - * `current` is the month that is currently displayed by the datepicker. - * - * \@since 3.3.0 - * @type {?} - */ - NgbDatepicker.prototype.dayTemplateData; - /** - * The number of months to display. - * @type {?} - */ - NgbDatepicker.prototype.displayMonths; - /** - * The first day of the week. - * - * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun. - * @type {?} - */ - NgbDatepicker.prototype.firstDayOfWeek; - /** - * The reference to the custom template for the datepicker footer. - * - * \@since 3.3.0 - * @type {?} - */ - NgbDatepicker.prototype.footerTemplate; - /** - * The callback to mark some dates as disabled. - * - * It is called for each new date when navigating to a different month. - * - * `current` is the month that is currently displayed by the datepicker. - * @type {?} - */ - NgbDatepicker.prototype.markDisabled; - /** - * The latest date that can be displayed or selected. - * - * If not provided, 'year' select box will display 10 years after the current month. - * @type {?} - */ - NgbDatepicker.prototype.maxDate; - /** - * The earliest date that can be displayed or selected. - * - * If not provided, 'year' select box will display 10 years before the current month. - * @type {?} - */ - NgbDatepicker.prototype.minDate; - /** - * Navigation type. - * - * * `"select"` - select boxes for month and navigation arrows - * * `"arrows"` - only navigation arrows - * * `"none"` - no navigation visible at all - * @type {?} - */ - NgbDatepicker.prototype.navigation; - /** - * The way of displaying days that don't belong to the current month. - * - * * `"visible"` - days are visible - * * `"hidden"` - days are hidden, white space preserved - * * `"collapsed"` - days are collapsed, so the datepicker height might change between months - * - * For the 2+ months view, days in between months are never shown. - * @type {?} - */ - NgbDatepicker.prototype.outsideDays; - /** - * If `true`, weekdays will be displayed. - * @type {?} - */ - NgbDatepicker.prototype.showWeekdays; - /** - * If `true`, week numbers will be displayed. - * @type {?} - */ - NgbDatepicker.prototype.showWeekNumbers; - /** - * The date to open calendar with. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date is provided, calendar will open with current month. - * - * You could use `navigateTo(date)` method as an alternative. - * @type {?} - */ - NgbDatepicker.prototype.startDate; - /** - * An event emitted right before the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - * @type {?} - */ - NgbDatepicker.prototype.navigate; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - * @type {?} - */ - NgbDatepicker.prototype.select; - /** @type {?} */ - NgbDatepicker.prototype.onChange; - /** @type {?} */ - NgbDatepicker.prototype.onTouched; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._keyMapService; - /** @type {?} */ - NgbDatepicker.prototype._service; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._calendar; - /** @type {?} */ - NgbDatepicker.prototype.i18n; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._cd; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._elementRef; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._ngbDateAdapter; - /** - * @type {?} - * @private - */ - NgbDatepicker.prototype._ngZone; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvZGF0ZXBpY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUMvQyxPQUFPLEVBQUMsTUFBTSxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUN2RCxPQUFPLEVBRUwsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsVUFBVSxFQUNWLFlBQVksRUFDWixVQUFVLEVBQ1YsS0FBSyxFQUNMLE1BQU0sRUFJTixNQUFNLEVBRU4sV0FBVyxFQUNYLFNBQVMsRUFDVCxpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUF1QixpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQ3ZFLE9BQU8sRUFBQyxXQUFXLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUMzQyxPQUFPLEVBQUMs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kpO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgTmF2aWdhdGlvbkV2ZW50Lk5FWFQ6XG4gICAgICAgIHRoaXMuX3NlcnZpY2Uub3Blbih0aGlzLl9jYWxlbmRhci5nZXROZXh0KHRoaXMubW9kZWwuZmlyc3REYXRlLCAnbScsIDEpKTtcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuICB9XG5cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogKHZhbHVlOiBhbnkpID0+IGFueSk6IHZvaWQgeyB0aGlzLm9uQ2hhbmdlID0gZm47IH1cblxuICByZWdpc3Rlck9uVG91Y2hlZChmbjogKCkgPT4gYW55KTogdm9pZCB7IHRoaXMub25Ub3VjaGVkID0gZm47IH1cblxuICBzZXREaXNhYmxlZFN0YXRlKGlzRGlzYWJsZWQ6IGJvb2xlYW4pIHsgdGhpcy5fc2VydmljZS5kaXNhYmxlZCA9IGlzRGlzYWJsZWQ7IH1cblxuICB3cml0ZVZhbHVlKHZhbHVlKSB7XG4gICAgdGhpcy5fY29udHJvbFZhbHVlID0gTmdiRGF0ZS5mcm9tKHRoaXMuX25nYkRhdGVBZGFwdGVyLmZyb21Nb2RlbCh2YWx1ZSkpO1xuICAgIHRoaXMuX3NlcnZpY2Uuc2VsZWN0KHRoaXMuX2NvbnRyb2xWYWx1ZSk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/datepicker.module.js b/dist/ng-bootstrap/esm5/datepicker/datepicker.module.js deleted file mode 100644 index e54027e..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/datepicker.module.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { NgbDatepicker } from './datepicker'; -import { NgbDatepickerMonthView } from './datepicker-month-view'; -import { NgbDatepickerNavigation } from './datepicker-navigation'; -import { NgbInputDatepicker } from './datepicker-input'; -import { NgbDatepickerDayView } from './datepicker-day-view'; -import { NgbDatepickerNavigationSelect } from './datepicker-navigation-select'; -export { NgbDatepicker } from './datepicker'; -export { NgbInputDatepicker } from './datepicker-input'; -export { NgbCalendar, NgbCalendarGregorian } from './ngb-calendar'; -export { NgbCalendarIslamicCivil } from './hijri/ngb-calendar-islamic-civil'; -export { NgbCalendarIslamicUmalqura } from './hijri/ngb-calendar-islamic-umalqura'; -export { NgbCalendarPersian } from './jalali/ngb-calendar-persian'; -export { NgbCalendarHebrew } from './hebrew/ngb-calendar-hebrew'; -export { NgbDatepickerI18nHebrew } from './hebrew/datepicker-i18n-hebrew'; -export { NgbDatepickerMonthView } from './datepicker-month-view'; -export { NgbDatepickerDayView } from './datepicker-day-view'; -export { NgbDatepickerNavigation } from './datepicker-navigation'; -export { NgbDatepickerNavigationSelect } from './datepicker-navigation-select'; -export { NgbDatepickerConfig } from './datepicker-config'; -export { NgbDatepickerI18n } from './datepicker-i18n'; -export { NgbDate } from './ngb-date'; -export { NgbDateAdapter } from './adapters/ngb-date-adapter'; -export { NgbDateNativeAdapter } from './adapters/ngb-date-native-adapter'; -export { NgbDateNativeUTCAdapter } from './adapters/ngb-date-native-utc-adapter'; -export { NgbDateParserFormatter } from './ngb-date-parser-formatter'; -var NgbDatepickerModule = /** @class */ (function () { - function NgbDatepickerModule() { - } - NgbDatepickerModule.decorators = [ - { type: NgModule, args: [{ - declarations: [ - NgbDatepicker, NgbDatepickerMonthView, NgbDatepickerNavigation, NgbDatepickerNavigationSelect, NgbDatepickerDayView, - NgbInputDatepicker - ], - exports: [NgbDatepicker, NgbInputDatepicker], - imports: [CommonModule, FormsModule], - entryComponents: [NgbDatepicker] - },] } - ]; - return NgbDatepickerModule; -}()); -export { NgbDatepickerModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi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/datepicker/hebrew/datepicker-i18n-hebrew.js deleted file mode 100644 index 11b3e01..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/hebrew/datepicker-i18n-hebrew.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { NgbDatepickerI18n } from '../datepicker-i18n'; -import { hebrewNumerals, isHebrewLeapYear } from './hebrew'; -import { Injectable } from '@angular/core'; -/** @type {?} */ -var WEEKDAYS = ['שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת', 'ראשון']; -/** @type {?} */ -var MONTHS = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול']; -/** @type {?} */ -var MONTHS_LEAP = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר א׳', 'אדר ב׳', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול']; -/** - * \@since 3.2.0 - */ -var NgbDatepickerI18nHebrew = /** @class */ (function (_super) { - tslib_1.__extends(NgbDatepickerI18nHebrew, _super); - function NgbDatepickerI18nHebrew() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getMonthShortName = /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - function (month, year) { return this.getMonthFullName(month, year); }; - /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getMonthFullName = /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - function (month, year) { - return isHebrewLeapYear(year) ? MONTHS_LEAP[month - 1] : MONTHS[month - 1]; - }; - /** - * @param {?} weekday - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getWeekdayShortName = /** - * @param {?} weekday - * @return {?} - */ - function (weekday) { return WEEKDAYS[weekday - 1]; }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getDayAriaLabel = /** - * @param {?} date - * @return {?} - */ - function (date) { - return hebrewNumerals(date.day) + " " + this.getMonthFullName(date.month, date.year) + " " + hebrewNumerals(date.year); - }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getDayNumerals = /** - * @param {?} date - * @return {?} - */ - function (date) { return hebrewNumerals(date.day); }; - /** - * @param {?} weekNumber - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getWeekNumerals = /** - * @param {?} weekNumber - * @return {?} - */ - function (weekNumber) { return hebrewNumerals(weekNumber); }; - /** - * @param {?} year - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getYearNumerals = /** - * @param {?} year - * @return {?} - */ - function (year) { return hebrewNumerals(year); }; - NgbDatepickerI18nHebrew.decorators = [ - { type: Injectable } - ]; - return NgbDatepickerI18nHebrew; -}(NgbDatepickerI18n)); -export { NgbDatepickerI18nHebrew }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXBpY2tlci1pMThuLWhlYnJldy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvaGVicmV3L2RhdGVwaWNrZXItaTE4bi1oZWJyZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUMsaUJBQWlCLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUVyRCxPQUFPLEVBQUMsY0FBYyxFQUFFLGdCQUFnQixFQUFDLE1BQU0sVUFBVSxDQUFDO0FBQzFELE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7O0lBR25DLFFBQVEsR0FBRyxDQUFDLEtBQUssRUFBRSxPQUFPLE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16nXmScsICfXqdeZ16nXmScsICfXqdeR16onLCAn16jXkNep15XXnyddO1xuY29uc3QgTU9OVEhTID0gWyfXqtep16jXmScsICfXl9ep15XXnycsICfXm9eh15zXlScsICfXmNeR16onLCAn16nXkdeYJywgJ9eQ15PXqCcsICfXoNeZ16HXnycsICfXkNeZ15nXqCcsICfXodeZ15XXnycsICfXqtee15XXlicsICfXkNeRJywgJ9eQ15zXldecJ107XG5jb25zdCBNT05USFNfTEVBUCA9XG4gICAgWyfXqtep16jXmScsICfXl9ep15XXnycsICfXm9eh15zXlScsICfXmNeR16onLCAn16nXkdeYJywgJ9eQ15PXqCDXkNezJywgJ9eQ15PXqCDXkdezJywgJ9eg15nXodefJywgJ9eQ15nXmdeoJywgJ9eh15nXldefJywgJ9eq157XldeWJywgJ9eQ15EnLCAn15DXnNeV15wnXTtcblxuLyoqXG4gKiBAc2luY2UgMy4yLjBcbiAqL1xuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIE5nYkRhdGVwaWNrZXJJMThuSGVicmV3IGV4dGVuZHMgTmdiRGF0ZXBpY2tlckkxOG4ge1xuICBnZXRNb250aFNob3J0TmFtZShtb250aDogbnVtYmVyLCB5ZWFyPzogbnVtYmVyKTogc3RyaW5nIHsgcmV0dXJuIHRoaXMuZ2V0TW9udGhGdWxsTmFtZShtb250aCwgeWVhcik7IH1cblxuICBnZXRNb250aEZ1bGxOYW1lKG1vbnRoOiBudW1iZXIsIHllYXI/OiBudW1iZXIpOiBzdHJpbmcge1xuICAgIHJldHVybiBpc0hlYnJld0xlYXBZZWFyKHllYXIpID8gTU9OVEhTX0xFQVBbbW9udGggLSAxXSA6IE1PTlRIU1ttb250aCAtIDFdO1xuICB9XG5cbiAgZ2V0V2Vla2RheVNob3J0TmFtZSh3ZWVrZGF5OiBudW1iZXIpOiBzdHJpbmcgeyByZXR1cm4gV0VFS0RBWVNbd2Vla2RheSAtIDFdOyB9XG5cbiAgZ2V0RGF5QXJpYUxhYmVsKGRhdGU6IE5nYkRhdGVTdHJ1Y3QpOiBzdHJpbmcge1xuICAgIHJldHVybiBgJHtoZWJyZXdOdW1lcmFscyhkYXRlLmRheSl9ICR7dGhpcy5nZXRNb250aEZ1bGxOYW1lKGRhdGUubW9udGgsIGRhdGUueWVhcil9ICR7aGVicmV3TnVtZXJhbHMoZGF0ZS55ZWFyKX1gO1xuICB9XG5cbiAgZ2V0RGF5TnVtZXJhbHMoZGF0ZTogTmdiRGF0ZVN0cnVjdCk6IHN0cmluZyB7IHJldHVybiBoZWJyZXdOdW1lcmFscyhkYXRlLmRheSk7IH1cblxuICBnZXRXZWVrTnVtZXJhbHMod2Vla051bWJlcjogbnVtYmVyKTogc3RyaW5nIHsgcmV0dXJuIGhlYnJld051bWVyYWxzKHdlZWtOdW1iZXIpOyB9XG5cbiAgZ2V0WWVhck51bWVyYWxzKHllYXI6IG51bWJlcik6IHN0cmluZyB7IHJldHVybiBoZWJyZXdOdW1lcmFscyh5ZWFyKTsgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/hebrew/hebrew.js b/dist/ng-bootstrap/esm5/datepicker/hebrew/hebrew.js deleted file mode 100644 index 4c010dc..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/hebrew/hebrew.js +++ /dev/null @@ -1,406 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbDate } from '../ngb-date'; -/** @type {?} */ -var PARTS_PER_HOUR = 1080; -/** @type {?} */ -var PARTS_PER_DAY = 24 * PARTS_PER_HOUR; -/** @type {?} */ -var PARTS_FRACTIONAL_MONTH = 12 * PARTS_PER_HOUR + 793; -/** @type {?} */ -var PARTS_PER_MONTH = 29 * PARTS_PER_DAY + PARTS_FRACTIONAL_MONTH; -/** @type {?} */ -var BAHARAD = 11 * PARTS_PER_HOUR + 204; -/** @type {?} */ -var HEBREW_DAY_ON_JAN_1_1970 = 2092591; -/** @type {?} */ -var GREGORIAN_EPOCH = 1721425.5; -/** - * @param {?} year - * @return {?} - */ -function isGregorianLeapYear(year) { - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; -} -/** - * @param {?} year - * @return {?} - */ -function numberOfFirstDayInYear(year) { - /** @type {?} */ - var monthsBeforeYear = Math.floor((235 * year - 234) / 19); - /** @type {?} */ - var fractionalMonthsBeforeYear = monthsBeforeYear * PARTS_FRACTIONAL_MONTH + BAHARAD; - /** @type {?} */ - var dayNumber = monthsBeforeYear * 29 + Math.floor(fractionalMonthsBeforeYear / PARTS_PER_DAY); - /** @type {?} */ - var timeOfDay = fractionalMonthsBeforeYear % PARTS_PER_DAY; - /** @type {?} */ - var dayOfWeek = dayNumber % 7; - if (dayOfWeek === 2 || dayOfWeek === 4 || dayOfWeek === 6) { - dayNumber++; - dayOfWeek = dayNumber % 7; - } - if (dayOfWeek === 1 && timeOfDay > 15 * PARTS_PER_HOUR + 204 && !isHebrewLeapYear(year)) { - dayNumber += 2; - } - else if (dayOfWeek === 0 && timeOfDay > 21 * PARTS_PER_HOUR + 589 && isHebrewLeapYear(year - 1)) { - dayNumber++; - } - return dayNumber; -} -/** - * @param {?} month - * @param {?} year - * @return {?} - */ -function getDaysInGregorianMonth(month, year) { - /** @type {?} */ - var days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - if (isGregorianLeapYear(year)) { - days[1]++; - } - return days[month - 1]; -} -/** - * @param {?} year - * @return {?} - */ -function getHebrewMonths(year) { - return isHebrewLeapYear(year) ? 13 : 12; -} -/** - * Returns the number of days in a specific Hebrew year. - * `year` is any Hebrew year. - * @param {?} year - * @return {?} - */ -function getDaysInHebrewYear(year) { - return numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year); -} -/** - * @param {?} year - * @return {?} - */ -export function isHebrewLeapYear(year) { - /** @type {?} */ - var b = (year * 12 + 17) % 19; - return b >= ((b < 0) ? -7 : 12); -} -/** - * Returns the number of days in a specific Hebrew month. - * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months. - * `year` is any Hebrew year. - * @param {?} month - * @param {?} year - * @return {?} - */ -export function getDaysInHebrewMonth(month, year) { - /** @type {?} */ - var yearLength = numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year); - /** @type {?} */ - var yearType = (yearLength <= 380 ? yearLength : (yearLength - 30)) - 353; - /** @type {?} */ - var leapYear = isHebrewLeapYear(year); - /** @type {?} */ - var daysInMonth = leapYear ? [30, 29, 29, 29, 30, 30, 29, 30, 29, 30, 29, 30, 29] : - [30, 29, 29, 29, 30, 29, 30, 29, 30, 29, 30, 29]; - if (yearType > 0) { - daysInMonth[2]++; // Kislev gets an extra day in normal or complete years. - } - if (yearType > 1) { - daysInMonth[1]++; // Heshvan gets an extra day in complete years only. - } - return daysInMonth[month - 1]; -} -/** - * @param {?} date - * @return {?} - */ -export function getDayNumberInHebrewYear(date) { - /** @type {?} */ - var numberOfDay = 0; - for (var i = 1; i < date.month; i++) { - numberOfDay += getDaysInHebrewMonth(i, date.year); - } - return numberOfDay + date.day; -} -/** - * @param {?} date - * @param {?} val - * @return {?} - */ -export function setHebrewMonth(date, val) { - /** @type {?} */ - var after = val >= 0; - if (!after) { - val = -val; - } - while (val > 0) { - if (after) { - if (val > getHebrewMonths(date.year) - date.month) { - val -= getHebrewMonths(date.year) - date.month + 1; - date.year++; - date.month = 1; - } - else { - date.month += val; - val = 0; - } - } - else { - if (val >= date.month) { - date.year--; - val -= date.month; - date.month = getHebrewMonths(date.year); - } - else { - date.month -= val; - val = 0; - } - } - } - return date; -} -/** - * @param {?} date - * @param {?} val - * @return {?} - */ -export function setHebrewDay(date, val) { - /** @type {?} */ - var after = val >= 0; - if (!after) { - val = -val; - } - while (val > 0) { - if (after) { - if (val > getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date)) { - val -= getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date) + 1; - date.year++; - date.month = 1; - date.day = 1; - } - else if (val > getDaysInHebrewMonth(date.month, date.year) - date.day) { - val -= getDaysInHebrewMonth(date.month, date.year) - date.day + 1; - date.month++; - date.day = 1; - } - else { - date.day += val; - val = 0; - } - } - else { - if (val >= date.day) { - val -= date.day; - date.month--; - if (date.month === 0) { - date.year--; - date.month = getHebrewMonths(date.year); - } - date.day = getDaysInHebrewMonth(date.month, date.year); - } - else { - date.day -= val; - val = 0; - } - } - } - return date; -} -/** - * Returns the equivalent Hebrew date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to Hebrew date. - * @param {?} gdate - * @return {?} - */ -export function fromGregorian(gdate) { - /** @type {?} */ - var date = new Date(gdate); - /** @type {?} */ - var gYear = date.getFullYear(); - /** @type {?} */ - var gMonth = date.getMonth(); - /** @type {?} */ - var gDay = date.getDate(); - /** @type {?} */ - var julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) - - Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) + - Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gYear) ? -1 : -2) + gDay); - julianDay = Math.floor(julianDay + 0.5); - /** @type {?} */ - var daysSinceHebEpoch = julianDay - 347997; - /** @type {?} */ - var monthsSinceHebEpoch = Math.floor(daysSinceHebEpoch * PARTS_PER_DAY / PARTS_PER_MONTH); - /** @type {?} */ - var hYear = Math.floor((monthsSinceHebEpoch * 19 + 234) / 235) + 1; - /** @type {?} */ - var firstDayOfThisYear = numberOfFirstDayInYear(hYear); - /** @type {?} */ - var dayOfYear = daysSinceHebEpoch - firstDayOfThisYear; - while (dayOfYear < 1) { - hYear--; - firstDayOfThisYear = numberOfFirstDayInYear(hYear); - dayOfYear = daysSinceHebEpoch - firstDayOfThisYear; - } - /** @type {?} */ - var hMonth = 1; - /** @type {?} */ - var hDay = dayOfYear; - while (hDay > getDaysInHebrewMonth(hMonth, hYear)) { - hDay -= getDaysInHebrewMonth(hMonth, hYear); - hMonth++; - } - return new NgbDate(hYear, hMonth, hDay); -} -/** - * Returns the equivalent JS date value for a given Hebrew date. - * `hebrewDate` is an Hebrew date to be converted to Gregorian. - * @param {?} hebrewDate - * @return {?} - */ -export function toGregorian(hebrewDate) { - /** @type {?} */ - var hYear = hebrewDate.year; - /** @type {?} */ - var hMonth = hebrewDate.month; - /** @type {?} */ - var hDay = hebrewDate.day; - /** @type {?} */ - var days = numberOfFirstDayInYear(hYear); - for (var i = 1; i < hMonth; i++) { - days += getDaysInHebrewMonth(i, hYear); - } - days += hDay; - /** @type {?} */ - var diffDays = days - HEBREW_DAY_ON_JAN_1_1970; - /** @type {?} */ - var after = diffDays >= 0; - if (!after) { - diffDays = -diffDays; - } - /** @type {?} */ - var gYear = 1970; - /** @type {?} */ - var gMonth = 1; - /** @type {?} */ - var gDay = 1; - while (diffDays > 0) { - if (after) { - if (diffDays >= (isGregorianLeapYear(gYear) ? 366 : 365)) { - diffDays -= isGregorianLeapYear(gYear) ? 366 : 365; - gYear++; - } - else if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) { - diffDays -= getDaysInGregorianMonth(gMonth, gYear); - gMonth++; - } - else { - gDay += diffDays; - diffDays = 0; - } - } - else { - if (diffDays >= (isGregorianLeapYear(gYear - 1) ? 366 : 365)) { - diffDays -= isGregorianLeapYear(gYear - 1) ? 366 : 365; - gYear--; - } - else { - if (gMonth > 1) { - gMonth--; - } - else { - gMonth = 12; - gYear--; - } - if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) { - diffDays -= getDaysInGregorianMonth(gMonth, gYear); - } - else { - gDay = getDaysInGregorianMonth(gMonth, gYear) - diffDays + 1; - diffDays = 0; - } - } - } - } - return new Date(gYear, gMonth - 1, gDay); -} -/** - * @param {?} numerals - * @return {?} - */ -export function hebrewNumerals(numerals) { - if (!numerals) { - return ''; - } - /** @type {?} */ - var hArray0_9 = ['', '\u05d0', '\u05d1', '\u05d2', '\u05d3', '\u05d4', '\u05d5', '\u05d6', '\u05d7', '\u05d8']; - /** @type {?} */ - var hArray10_19 = [ - '\u05d9', '\u05d9\u05d0', '\u05d9\u05d1', '\u05d9\u05d2', '\u05d9\u05d3', '\u05d8\u05d5', '\u05d8\u05d6', - '\u05d9\u05d6', '\u05d9\u05d7', '\u05d9\u05d8' - ]; - /** @type {?} */ - var hArray20_90 = ['', '', '\u05db', '\u05dc', '\u05de', '\u05e0', '\u05e1', '\u05e2', '\u05e4', '\u05e6']; - /** @type {?} */ - var hArray100_900 = [ - '', '\u05e7', '\u05e8', '\u05e9', '\u05ea', '\u05ea\u05e7', '\u05ea\u05e8', '\u05ea\u05e9', '\u05ea\u05ea', - '\u05ea\u05ea\u05e7' - ]; - /** @type {?} */ - var hArray1000_9000 = [ - '', '\u05d0', '\u05d1', '\u05d1\u05d0', '\u05d1\u05d1', '\u05d4', '\u05d4\u05d0', '\u05d4\u05d1', - '\u05d4\u05d1\u05d0', '\u05d4\u05d1\u05d1' - ]; - /** @type {?} */ - var geresh = '\u05f3'; - /** @type {?} */ - var gershaim = '\u05f4'; - /** @type {?} */ - var mem = 0; - /** @type {?} */ - var result = []; - /** @type {?} */ - var step = 0; - while (numerals > 0) { - /** @type {?} */ - var m = numerals % 10; - if (step === 0) { - mem = m; - } - else if (step === 1) { - if (m !== 1) { - result.unshift(hArray20_90[m], hArray0_9[mem]); - } - else { - result.unshift(hArray10_19[mem]); - } - } - else if (step === 2) { - result.unshift(hArray100_900[m]); - } - else { - if (m !== 5) { - result.unshift(hArray1000_9000[m], geresh, ' '); - } - break; - } - numerals = Math.floor(numerals / 10); - if (step === 0 && numerals === 0) { - result.unshift(hArray0_9[m]); - } - step++; - } - result = result.join('').split(''); - if (result.length === 1) { - result.push(geresh); - } - else if (result.length > 1) { - result.splice(result.length - 1, 0, gershaim); - } - return result.join(''); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVicmV3LmpzIiwic291cmNlUm9vdCI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ndGggPiAxKSB7XG4gICAgcmVzdWx0LnNwbGljZShyZXN1bHQubGVuZ3RoIC0gMSwgMCwgZ2Vyc2hhaW0pO1xuICB9XG4gIHJldHVybiByZXN1bHQuam9pbignJyk7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/hebrew/ngb-calendar-hebrew.js b/dist/ng-bootstrap/esm5/datepicker/hebrew/ngb-calendar-hebrew.js deleted file mode 100644 index 157ca50..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/hebrew/ngb-calendar-hebrew.js +++ /dev/null @@ -1,183 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { NgbDate } from '../ngb-date'; -import { fromJSDate, NgbCalendar, toJSDate } from '../ngb-calendar'; -import { Injectable } from '@angular/core'; -import { isNumber } from '../../util/util'; -import { fromGregorian, getDayNumberInHebrewYear, getDaysInHebrewMonth, isHebrewLeapYear, toGregorian, setHebrewDay, setHebrewMonth } from './hebrew'; -/** - * \@since 3.2.0 - */ -var NgbCalendarHebrew = /** @class */ (function (_super) { - tslib_1.__extends(NgbCalendarHebrew, _super); - function NgbCalendarHebrew() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarHebrew.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @param {?=} year - * @return {?} - */ - NgbCalendarHebrew.prototype.getMonths = /** - * @param {?=} year - * @return {?} - */ - function (year) { - if (year && isHebrewLeapYear(year)) { - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; - } - else { - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; - } - }; - /** - * @return {?} - */ - NgbCalendarHebrew.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var b = date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day); - b = b && date.month > 0 && date.month <= (isHebrewLeapYear(date.year) ? 13 : 12); - b = b && date.day > 0 && date.day <= getDaysInHebrewMonth(date.month, date.year); - return b && !isNaN(toGregorian(date).getTime()); - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHebrew.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date.year += number; - date.month = 1; - date.day = 1; - return date; - case 'm': - date = setHebrewMonth(date, number); - date.day = 1; - return date; - case 'd': - return setHebrewDay(date, number); - default: - return date; - } - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHebrew.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var day = toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarHebrew.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - /** @type {?} */ - var date = week[week.length - 1]; - return Math.ceil(getDayNumberInHebrewYear(date) / 7); - }; - /** - * @return {?} - */ - NgbCalendarHebrew.prototype.getToday = /** - * @return {?} - */ - function () { return fromGregorian(new Date()); }; - /** - * @since 3.4.0 - */ - /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.toGregorian = /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - function (date) { return fromJSDate(toGregorian(date)); }; - /** - * @since 3.4.0 - */ - /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.fromGregorian = /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - function (date) { return fromGregorian(toJSDate(date)); }; - NgbCalendarHebrew.decorators = [ - { type: Injectable } - ]; - return NgbCalendarHebrew; -}(NgbCalendar)); -export { NgbCalendarHebrew }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLWhlYnJldy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvaGVicmV3L25nYi1jYWxlbmRhci1oZWJyZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sYUFBYSxDQUFDO0FBQ3BDLE9BQU8sRUFBQyxVQUFVLEVBQUUsV0FBVyxFQUFhLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdFLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFDTCxhQUFhLEVBQ2Isd0JBQXdCLEVBQ3hCLG9CQUFvQixFQUNwQixnQkFBZ0IsRUFDaEIsV0FBVyxFQUNYLFlBQVksRUFDWixjQUFjLEVBQ2YsTUFBTSxVQUFVLENBQUM7Ozs7QUFLbEI7SUFDdUMsNkNBQVc7SUFEbEQ7O0lBaUVBLENBQUM7Ozs7SUEvREMsMENBQWM7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AgKiBAc2luY2UgMy40LjBcbiAgICovXG4gIGZyb21HcmVnb3JpYW4oZGF0ZTogTmdiRGF0ZSk6IE5nYkRhdGUgeyByZXR1cm4gZnJvbUdyZWdvcmlhbih0b0pTRGF0ZShkYXRlKSk7IH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-hijri.js b/dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-hijri.js deleted file mode 100644 index 255bfa7..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-hijri.js +++ /dev/null @@ -1,250 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { NgbDate } from '../ngb-date'; -import { NgbCalendar } from '../ngb-calendar'; -import { Injectable } from '@angular/core'; -import { isNumber } from '../../util/util'; -/** - * @abstract - */ -var NgbCalendarHijri = /** @class */ (function (_super) { - tslib_1.__extends(NgbCalendarHijri, _super); - function NgbCalendarHijri() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getMonths = /** - * @return {?} - */ - function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }; - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHijri.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date = this._setYear(date, date.year + number); - date.month = 1; - date.day = 1; - return date; - case 'm': - date = this._setMonth(date, date.month + number); - date.day = 1; - return date; - case 'd': - return this._setDay(date, date.day + number); - default: - return date; - } - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHijri.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHijri.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var day = this.toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarHijri.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - var thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - var date = week[thursdayIndex]; - /** @type {?} */ - var jsDate = this.toGregorian(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - var time = jsDate.getTime(); - /** @type {?} */ - var MuhDate = this.toGregorian(new NgbDate(date.year, 1, 1)); - return Math.floor(Math.round((time - MuhDate.getTime()) / 86400000) / 7) + 1; - }; - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getToday = /** - * @return {?} - */ - function () { return this.fromGregorian(new Date()); }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHijri.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - return date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day) && - !isNaN(this.toGregorian(date).getTime()); - }; - /** - * @private - * @param {?} date - * @param {?} day - * @return {?} - */ - NgbCalendarHijri.prototype._setDay = /** - * @private - * @param {?} date - * @param {?} day - * @return {?} - */ - function (date, day) { - day = +day; - /** @type {?} */ - var mDays = this.getDaysPerMonth(date.month, date.year); - if (day <= 0) { - while (day <= 0) { - date = this._setMonth(date, date.month - 1); - mDays = this.getDaysPerMonth(date.month, date.year); - day += mDays; - } - } - else if (day > mDays) { - while (day > mDays) { - day -= mDays; - date = this._setMonth(date, date.month + 1); - mDays = this.getDaysPerMonth(date.month, date.year); - } - } - date.day = day; - return date; - }; - /** - * @private - * @param {?} date - * @param {?} month - * @return {?} - */ - NgbCalendarHijri.prototype._setMonth = /** - * @private - * @param {?} date - * @param {?} month - * @return {?} - */ - function (date, month) { - month = +month; - date.year = date.year + Math.floor((month - 1) / 12); - date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1; - return date; - }; - /** - * @private - * @param {?} date - * @param {?} year - * @return {?} - */ - NgbCalendarHijri.prototype._setYear = /** - * @private - * @param {?} date - * @param {?} year - * @return {?} - */ - function (date, year) { - date.year = +year; - return date; - }; - NgbCalendarHijri.decorators = [ - { type: Injectable } - ]; - return NgbCalendarHijri; -}(NgbCalendar)); -export { NgbCalendarHijri }; -if (false) { - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - * @abstract - * @param {?} month - * @param {?} year - * @return {?} - */ - NgbCalendarHijri.prototype.getDaysPerMonth = function (month, year) { }; - /** - * Returns the equivalent Hijri date value for a give input Gregorian date. - * `gDate` is s JS Date to be converted to Hijri. - * @abstract - * @param {?} gDate - * @return {?} - */ - NgbCalendarHijri.prototype.fromGregorian = function (gDate) { }; - /** - * Converts the current Hijri date to Gregorian. - * @abstract - * @param {?} hDate - * @return {?} - */ - NgbCalendarHijri.prototype.toGregorian = function (hDate) { }; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLWhpanJpLmpzIiwic291cmNl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GVyTW9udGgoZGF0ZS5tb250aCwgZGF0ZS55ZWFyKTtcbiAgICAgIH1cbiAgICB9XG4gICAgZGF0ZS5kYXkgPSBkYXk7XG4gICAgcmV0dXJuIGRhdGU7XG4gIH1cblxuICBwcml2YXRlIF9zZXRNb250aChkYXRlOiBOZ2JEYXRlLCBtb250aDogbnVtYmVyKTogTmdiRGF0ZSB7XG4gICAgbW9udGggPSArbW9udGg7XG4gICAgZGF0ZS55ZWFyID0gZGF0ZS55ZWFyICsgTWF0aC5mbG9vcigobW9udGggLSAxKSAvIDEyKTtcbiAgICBkYXRlLm1vbnRoID0gTWF0aC5mbG9vcigoKG1vbnRoIC0gMSkgJSAxMiArIDEyKSAlIDEyKSArIDE7XG4gICAgcmV0dXJuIGRhdGU7XG4gIH1cblxuICBwcml2YXRlIF9zZXRZZWFyKGRhdGU6IE5nYkRhdGUsIHllYXI6IG51bWJlcik6IE5nYkRhdGUge1xuICAgIGRhdGUueWVhciA9ICt5ZWFyO1xuICAgIHJldHVybiBkYXRlO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-islamic-civil.js b/dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-islamic-civil.js deleted file mode 100644 index 131da9c..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-islamic-civil.js +++ /dev/null @@ -1,217 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { NgbCalendarHijri } from './ngb-calendar-hijri'; -import { NgbDate } from '../ngb-date'; -import { Injectable } from '@angular/core'; -/** - * Checks if islamic year is a leap year - * @param {?} hYear - * @return {?} - */ -function isIslamicLeapYear(hYear) { - return (14 + 11 * hYear) % 30 < 11; -} -/** - * Checks if gregorian years is a leap year - * @param {?} gDate - * @return {?} - */ -function isGregorianLeapYear(gDate) { - /** @type {?} */ - var year = gDate.getFullYear(); - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; -} -/** - * Returns the start of Hijri Month. - * `hMonth` is 0 for Muharram, 1 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hYear - * @param {?} hMonth - * @return {?} - */ -function getIslamicMonthStart(hYear, hMonth) { - return Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30.0); -} -/** - * Returns the start of Hijri year. - * `year` is any Hijri year. - * @param {?} year - * @return {?} - */ -function getIslamicYearStart(year) { - return (year - 1) * 354 + Math.floor((3 + 11 * year) / 30.0); -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function mod(a, b) { - return a - b * Math.floor(a / b); -} -/** - * The civil calendar is one type of Hijri calendars used in islamic countries. - * Uses a fixed cycle of alternating 29- and 30-day months, - * with a leap day added to the last month of 11 out of every 30 years. - * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types - * All the calculations here are based on the equations from "Calendrical Calculations" By Edward M. Reingold, Nachum - * Dershowitz. - * @type {?} - */ -var GREGORIAN_EPOCH = 1721425.5; -/** @type {?} */ -var ISLAMIC_EPOCH = 1948439.5; -var NgbCalendarIslamicCivil = /** @class */ (function (_super) { - tslib_1.__extends(NgbCalendarIslamicCivil, _super); - function NgbCalendarIslamicCivil() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - */ - /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - NgbCalendarIslamicCivil.prototype.fromGregorian = /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - function (gDate) { - /** @type {?} */ - var gYear = gDate.getFullYear(); - /** @type {?} */ - var gMonth = gDate.getMonth(); - /** @type {?} */ - var gDay = gDate.getDate(); - /** @type {?} */ - var julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) + - -Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) + - Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gDate) ? -1 : -2) + gDay); - julianDay = Math.floor(julianDay) + 0.5; - /** @type {?} */ - var days = julianDay - ISLAMIC_EPOCH; - /** @type {?} */ - var hYear = Math.floor((30 * days + 10646) / 10631.0); - /** @type {?} */ - var hMonth = Math.ceil((days - 29 - getIslamicYearStart(hYear)) / 29.5); - hMonth = Math.min(hMonth, 11); - /** @type {?} */ - var hDay = Math.ceil(days - getIslamicMonthStart(hYear, hMonth)) + 1; - return new NgbDate(hYear, hMonth + 1, hDay); - }; - /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - */ - /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - * @param {?} hDate - * @return {?} - */ - NgbCalendarIslamicCivil.prototype.toGregorian = /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - * @param {?} hDate - * @return {?} - */ - function (hDate) { - /** @type {?} */ - var hYear = hDate.year; - /** @type {?} */ - var hMonth = hDate.month - 1; - /** @type {?} */ - var hDay = hDate.day; - /** @type {?} */ - var julianDay = hDay + Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30) + ISLAMIC_EPOCH - 1; - /** @type {?} */ - var wjd = Math.floor(julianDay - 0.5) + 0.5; - /** @type {?} */ - var depoch = wjd - GREGORIAN_EPOCH; - /** @type {?} */ - var quadricent = Math.floor(depoch / 146097); - /** @type {?} */ - var dqc = mod(depoch, 146097); - /** @type {?} */ - var cent = Math.floor(dqc / 36524); - /** @type {?} */ - var dcent = mod(dqc, 36524); - /** @type {?} */ - var quad = Math.floor(dcent / 1461); - /** @type {?} */ - var dquad = mod(dcent, 1461); - /** @type {?} */ - var yindex = Math.floor(dquad / 365); - /** @type {?} */ - var year = quadricent * 400 + cent * 100 + quad * 4 + yindex; - if (!(cent === 4 || yindex === 4)) { - year++; - } - /** @type {?} */ - var gYearStart = GREGORIAN_EPOCH + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400); - /** @type {?} */ - var yearday = wjd - gYearStart; - /** @type {?} */ - var tjd = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400) + Math.floor(739 / 12 + (isGregorianLeapYear(new Date(year, 3, 1)) ? -1 : -2) + 1); - /** @type {?} */ - var leapadj = wjd < tjd ? 0 : isGregorianLeapYear(new Date(year, 3, 1)) ? 1 : 2; - /** @type {?} */ - var month = Math.floor(((yearday + leapadj) * 12 + 373) / 367); - /** @type {?} */ - var tjd2 = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400) + - Math.floor((367 * month - 362) / 12 + (month <= 2 ? 0 : isGregorianLeapYear(new Date(year, month - 1, 1)) ? -1 : -2) + - 1); - /** @type {?} */ - var day = wjd - tjd2 + 1; - return new Date(year, month - 1, day); - }; - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - */ - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - * @param {?} month - * @param {?} year - * @return {?} - */ - NgbCalendarIslamicCivil.prototype.getDaysPerMonth = /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - * @param {?} month - * @param {?} year - * @return {?} - */ - function (month, year) { - year = year + Math.floor(month / 13); - month = ((month - 1) % 12) + 1; - /** @type {?} */ - var length = 29 + month % 2; - if (month === 12 && isIslamicLeapYear(year)) { - length++; - } - return length; - }; - NgbCalendarIslamicCivil.decorators = [ - { type: Injectable } - ]; - return NgbCalendarIslamicCivil; -}(NgbCalendarHijri)); -export { NgbCalendarIslamicCivil }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLWlzbGFtaWMtY2l2aWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2hpanJpL25nYi1jYWxlbmRhci1pc2xhbWljLWNpdmlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFDdEQsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUNwQyxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7QUFLekMsU0FBUyxpQkFBaUIsQ0FBQyxLQUFhO0lBQ3RDLE9BQU8sQ0FBQyxFQUFFLEdBQUcsRUFBRSxHQUFHLEtBQUssQ0FBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLENBQUM7QUFDckMsQ0FBQzs7Ozs7O0FBS0QsU0FBUyxtQkFBbUIsQ0FBQyxLQUFXOztRQUNoQyxJQUFJLEdBQUcsS0FBSyxDQUFDLFdBQVcsRUFBRTtJQUNoQyxPQUFPLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLElBQUksR0FBRyxHQUFHLEtBQUssQ0FBQyxJQUFJLElBQUksR0FBRyxHQUFHLEtBQUssQ0FBQyxDQUFDO0FBQ2hFLENBQUM7Ozs7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3IERhdGUoeWVhciwgbW9udGggLSAxLCBkYXkpO1xuICB9XG5cbiAgLyoqXG4gICAqIFJldHVybnMgdGhlIG51bWJlciBvZiBkYXlzIGluIGEgc3BlY2lmaWMgSGlqcmkgbW9udGguXG4gICAqIGBtb250aGAgaXMgMSBmb3IgTXVoYXJyYW0sIDIgZm9yIFNhZmFyLCBldGMuXG4gICAqIGB5ZWFyYCBpcyBhbnkgSGlqcmkgeWVhci5cbiAgICovXG4gIGdldERheXNQZXJNb250aChtb250aDogbnVtYmVyLCB5ZWFyOiBudW1iZXIpOiBudW1iZXIge1xuICAgIHllYXIgPSB5ZWFyICsgTWF0aC5mbG9vcihtb250aCAvIDEzKTtcbiAgICBtb250aCA9ICgobW9udGggLSAxKSAlIDEyKSArIDE7XG4gICAgbGV0IGxlbmd0aCA9IDI5ICsgbW9udGggJSAyO1xuICAgIGlmIChtb250aCA9PT0gMTIgJiYgaXNJc2xhbWljTGVhcFllYXIoeWVhcikpIHtcbiAgICAgIGxlbmd0aCsrO1xuICAgIH1cbiAgICByZXR1cm4gbGVuZ3RoO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-islamic-umalqura.js b/dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-islamic-umalqura.js deleted file mode 100644 index cc00411..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/hijri/ngb-calendar-islamic-umalqura.js +++ /dev/null @@ -1,299 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { NgbCalendarIslamicCivil } from './ngb-calendar-islamic-civil'; -import { NgbDate } from '../ngb-date'; -import { Injectable } from '@angular/core'; -/** - * Umalqura calendar is one type of Hijri calendars used in islamic countries. - * This Calendar is used by Saudi Arabia for administrative purpose. - * Unlike tabular calendars, the algorithm involves astronomical calculation, but it's still deterministic. - * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types - * @type {?} - */ -var GREGORIAN_FIRST_DATE = new Date(1882, 10, 12); -/** @type {?} */ -var GREGORIAN_LAST_DATE = new Date(2174, 10, 25); -/** @type {?} */ -var HIJRI_BEGIN = 1300; -/** @type {?} */ -var HIJRI_END = 1600; -/** @type {?} */ -var ONE_DAY = 1000 * 60 * 60 * 24; -/** @type {?} */ -var MONTH_LENGTH = [ - // 1300-1304 - '101010101010', '110101010100', '111011001001', '011011010100', '011011101010', - // 1305-1309 - '001101101100', '101010101101', '010101010101', '011010101001', '011110010010', - // 1310-1314 - '101110101001', '010111010100', '101011011010', '010101011100', '110100101101', - // 1315-1319 - '011010010101', '011101001010', '101101010100', '101101101010', '010110101101', - // 1320-1324 - '010010101110', '101001001111', '010100010111', '011010001011', '011010100101', - // 1325-1329 - '101011010101', '001011010110', '100101011011', '010010011101', '101001001101', - // 1330-1334 - '110100100110', '110110010101', '010110101100', '100110110110', '001010111010', - // 1335-1339 - '101001011011', '010100101011', '101010010101', '011011001010', '101011101001', - // 1340-1344 - '001011110100', '100101110110', '001010110110', '100101010110', '101011001010', - // 1345-1349 - '101110100100', '101111010010', '010111011001', '001011011100', '100101101101', - // 1350-1354 - '010101001101', '101010100101', '101101010010', '101110100101', '010110110100', - // 1355-1359 - '100110110110', '010101010111', '001010010111', '010101001011', '011010100011', - // 1360-1364 - '011101010010', '101101100101', '010101101010', '101010101011', '010100101011', - // 1365-1369 - '110010010101', '110101001010', '110110100101', '010111001010', '101011010110', - // 1370-1374 - '100101010111', '010010101011', '100101001011', '101010100101', '101101010010', - // 1375-1379 - '101101101010', '010101110101', '001001110110', '100010110111', '010001011011', - // 1380-1384 - '010101010101', '010110101001', '010110110100', '100111011010', '010011011101', - // 1385-1389 - '001001101110', '100100110110', '101010101010', '110101010100', '110110110010', - // 1390-1394 - '010111010101', '001011011010', '100101011011', '010010101011', '101001010101', - // 1395-1399 - '101101001001', '101101100100', '101101110001', '010110110100', '101010110101', - // 1400-1404 - '101001010101', '110100100101', '111010010010', '111011001001', '011011010100', - // 1405-1409 - '101011101001', '100101101011', '010010101011', '101010010011', '110101001001', - // 1410-1414 - '110110100100', '110110110010', '101010111001', '010010111010', '101001011011', - // 1415-1419 - '010100101011', '101010010101', '101100101010', '101101010101', '010101011100', - // 1420-1424 - '010010111101', '001000111101', '100100011101', '101010010101', '101101001010', - // 1425-1429 - '101101011010', '010101101101', '001010110110', '100100111011', '010010011011', - // 1430-1434 - '011001010101', '011010101001', '011101010100', '101101101010', '010101101100', - // 1435-1439 - '101010101101', '010101010101', '101100101001', '101110010010', '101110101001', - // 1440-1444 - '010111010100', '101011011010', '010101011010', '101010101011', '010110010101', - // 1445-1449 - '011101001001', '011101100100', '101110101010', '010110110101', '001010110110', - // 1450-1454 - '101001010110', '111001001101', '101100100101', '101101010010', '101101101010', - // 1455-1459 - '010110101101', '001010101110', '100100101111', '010010010111', '011001001011', - // 1460-1464 - '011010100101', '011010101100', '101011010110', '010101011101', '010010011101', - // 1465-1469 - '101001001101', '110100010110', '110110010101', '010110101010', '010110110101', - // 1470-1474 - '001011011010', '100101011011', '010010101101', '010110010101', '011011001010', - // 1475-1479 - '011011100100', '101011101010', '010011110101', '001010110110', '100101010110', - // 1480-1484 - '101010101010', '101101010100', '101111010010', '010111011001', '001011101010', - // 1485-1489 - '100101101101', '010010101101', '101010010101', '101101001010', '101110100101', - // 1490-1494 - '010110110010', '100110110101', '010011010110', '101010010111', '010101000111', - // 1495-1499 - '011010010011', '011101001001', '101101010101', '010101101010', '101001101011', - // 1500-1504 - '010100101011', '101010001011', '110101000110', '110110100011', '010111001010', - // 1505-1509 - '101011010110', '010011011011', '001001101011', '100101001011', '101010100101', - // 1510-1514 - '101101010010', '101101101001', '010101110101', '000101110110', '100010110111', - // 1515-1519 - '001001011011', '010100101011', '010101100101', '010110110100', '100111011010', - // 1520-1524 - '010011101101', '000101101101', '100010110110', '101010100110', '110101010010', - // 1525-1529 - '110110101001', '010111010100', '101011011010', '100101011011', '010010101011', - // 1530-1534 - '011001010011', '011100101001', '011101100010', '101110101001', '010110110010', - // 1535-1539 - '101010110101', '010101010101', '101100100101', '110110010010', '111011001001', - // 1540-1544 - '011011010010', '101011101001', '010101101011', '010010101011', '101001010101', - // 1545-1549 - '110100101001', '110101010100', '110110101010', '100110110101', '010010111010', - // 1550-1554 - '101000111011', '010010011011', '101001001101', '101010101010', '101011010101', - // 1555-1559 - '001011011010', '100101011101', '010001011110', '101000101110', '110010011010', - // 1560-1564 - '110101010101', '011010110010', '011010111001', '010010111010', '101001011101', - // 1565-1569 - '010100101101', '101010010101', '101101010010', '101110101000', '101110110100', - // 1570-1574 - '010110111001', '001011011010', '100101011010', '101101001010', '110110100100', - // 1575-1579 - '111011010001', '011011101000', '101101101010', '010101101101', '010100110101', - // 1580-1584 - '011010010101', '110101001010', '110110101000', '110111010100', '011011011010', - // 1585-1589 - '010101011011', '001010011101', '011000101011', '101100010101', '101101001010', - // 1590-1594 - '101110010101', '010110101010', '101010101110', '100100101110', '110010001111', - // 1595-1599 - '010100100111', '011010010101', '011010101010', '101011010110', '010101011101', - // 1600 - '001010011101' -]; -/** - * @param {?} date1 - * @param {?} date2 - * @return {?} - */ -function getDaysDiff(date1, date2) { - // Ignores the time part in date1 and date2: - /** @type {?} */ - var time1 = Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate()); - /** @type {?} */ - var time2 = Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate()); - /** @type {?} */ - var diff = Math.abs(time1 - time2); - return Math.round(diff / ONE_DAY); -} -var NgbCalendarIslamicUmalqura = /** @class */ (function (_super) { - tslib_1.__extends(NgbCalendarIslamicUmalqura, _super); - function NgbCalendarIslamicUmalqura() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - */ - /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - NgbCalendarIslamicUmalqura.prototype.fromGregorian = /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - function (gDate) { - /** @type {?} */ - var hDay = 1; - /** @type {?} */ - var hMonth = 0; - /** @type {?} */ - var hYear = 1300; - /** @type {?} */ - var daysDiff = getDaysDiff(gDate, GREGORIAN_FIRST_DATE); - if (gDate.getTime() - GREGORIAN_FIRST_DATE.getTime() >= 0 && gDate.getTime() - GREGORIAN_LAST_DATE.getTime() <= 0) { - /** @type {?} */ - var year = 1300; - for (var i = 0; i < MONTH_LENGTH.length; i++, year++) { - for (var j = 0; j < 12; j++) { - /** @type {?} */ - var numOfDays = +MONTH_LENGTH[i][j] + 29; - if (daysDiff <= numOfDays) { - hDay = daysDiff + 1; - if (hDay > numOfDays) { - hDay = 1; - j++; - } - if (j > 11) { - j = 0; - year++; - } - hMonth = j; - hYear = year; - return new NgbDate(hYear, hMonth + 1, hDay); - } - daysDiff = daysDiff - numOfDays; - } - } - } - else { - return _super.prototype.fromGregorian.call(this, gDate); - } - }; - /** - * Converts the current Hijri date to Gregorian. - */ - /** - * Converts the current Hijri date to Gregorian. - * @param {?} hDate - * @return {?} - */ - NgbCalendarIslamicUmalqura.prototype.toGregorian = /** - * Converts the current Hijri date to Gregorian. - * @param {?} hDate - * @return {?} - */ - function (hDate) { - /** @type {?} */ - var hYear = hDate.year; - /** @type {?} */ - var hMonth = hDate.month - 1; - /** @type {?} */ - var hDay = hDate.day; - /** @type {?} */ - var gDate = new Date(GREGORIAN_FIRST_DATE); - /** @type {?} */ - var dayDiff = hDay - 1; - if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) { - for (var y = 0; y < hYear - HIJRI_BEGIN; y++) { - for (var m = 0; m < 12; m++) { - dayDiff += +MONTH_LENGTH[y][m] + 29; - } - } - for (var m = 0; m < hMonth; m++) { - dayDiff += +MONTH_LENGTH[hYear - HIJRI_BEGIN][m] + 29; - } - gDate.setDate(GREGORIAN_FIRST_DATE.getDate() + dayDiff); - } - else { - gDate = _super.prototype.toGregorian.call(this, hDate); - } - return gDate; - }; - /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - */ - /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hMonth - * @param {?} hYear - * @return {?} - */ - NgbCalendarIslamicUmalqura.prototype.getDaysPerMonth = /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hMonth - * @param {?} hYear - * @return {?} - */ - function (hMonth, hYear) { - if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) { - /** @type {?} */ - var pos = hYear - HIJRI_BEGIN; - return +MONTH_LENGTH[pos][hMonth - 1] + 29; - } - return _super.prototype.getDaysPerMonth.call(this, hMonth, hYear); - }; - NgbCalendarIslamicUmalqura.decorators = [ - { type: Injectable } - ]; - return NgbCalendarIslamicUmalqura; -}(NgbCalendarIslamicCivil)); -export { NgbCalendarIslamicUmalqura }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLWlzbGFtaWMtdW1hbHF1cmEuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2hpanJpL25nYi1jYWxlbmRhci1pc2xhbWljLXVtYWxxdXJhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFDLHVCQUF1QixFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFDckUsT0F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CBpID0gMDsgaSA8IE1PTlRIX0xFTkdUSC5sZW5ndGg7IGkrKywgeWVhcisrKSB7XG4gICAgICAgIGZvciAobGV0IGogPSAwOyBqIDwgMTI7IGorKykge1xuICAgICAgICAgIGxldCBudW1PZkRheXMgPSArTU9OVEhfTEVOR1RIW2ldW2pdICsgMjk7XG4gICAgICAgICAgaWYgKGRheXNEaWZmIDw9IG51bU9mRGF5cykge1xuICAgICAgICAgICAgaERheSA9IGRheXNEaWZmICsgMTtcbiAgICAgICAgICAgIGlmIChoRGF5ID4gbnVtT2ZEYXlzKSB7XG4gICAgICAgICAgICAgIGhEYXkgPSAxO1xuICAgICAgICAgICAgICBqKys7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoaiA+IDExKSB7XG4gICAgICAgICAgICAgIGogPSAwO1xuICAgICAgICAgICAgICB5ZWFyKys7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBoTW9udGggPSBqO1xuICAgICAgICAgICAgaFllYXIgPSB5ZWFyO1xuICAgICAgICAgICAgcmV0dXJuIG5ldyBOZ2JEYXRlKGhZZWFyLCBoTW9udGggKyAxLCBoRGF5KTtcbiAgICAgICAgICB9XG4gICAgICAgICAgZGF5c0RpZmYgPSBkYXlzRGlmZiAtIG51bU9mRGF5cztcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gc3VwZXIuZnJvbUdyZWdvcmlhbihnRGF0ZSk7XG4gICAgfVxuICB9XG4gIC8qKlxuICAqIENvbnZlcnRzIHRoZSBjdXJyZW50IEhpanJpIGRhdGUgdG8gR3JlZ29yaWFuLlxuICAqL1xuICB0b0dyZWdvcmlhbihoRGF0ZTogTmdiRGF0ZSk6IERhdGUge1xuICAgIGNvbnN0IGhZZWFyID0gaERhdGUueWVhcjtcbiAgICBjb25zdCBoTW9udGggPSBoRGF0ZS5tb250aCAtIDE7XG4gICAgY29uc3QgaERheSA9IGhEYXRlLmRheTtcbiAgICBsZXQ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aFllYXIgLSBISUpSSV9CRUdJTjtcbiAgICAgIHJldHVybiArTU9OVEhfTEVOR1RIW3Bvc11baE1vbnRoIC0gMV0gKyAyOTtcbiAgICB9XG4gICAgcmV0dXJuIHN1cGVyLmdldERheXNQZXJNb250aChoTW9udGgsIGhZZWFyKTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/jalali/jalali.js b/dist/ng-bootstrap/esm5/datepicker/jalali/jalali.js deleted file mode 100644 index ce43220..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/jalali/jalali.js +++ /dev/null @@ -1,300 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgbDate } from '../ngb-date'; -/** - * Returns the equivalent JS date value for a give input Jalali date. - * `jalaliDate` is an Jalali date to be converted to Gregorian. - * @param {?} jalaliDate - * @return {?} - */ -export function toGregorian(jalaliDate) { - /** @type {?} */ - var jdn = jalaliToJulian(jalaliDate.year, jalaliDate.month, jalaliDate.day); - /** @type {?} */ - var date = julianToGregorian(jdn); - date.setHours(6, 30, 3, 200); - return date; -} -/** - * Returns the equivalent jalali date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to jalali. - * utc to local - * @param {?} gdate - * @return {?} - */ -export function fromGregorian(gdate) { - /** @type {?} */ - var g2d = gregorianToJulian(gdate.getFullYear(), gdate.getMonth() + 1, gdate.getDate()); - return julianToJalali(g2d); -} -/** - * @param {?} date - * @param {?} yearValue - * @return {?} - */ -export function setJalaliYear(date, yearValue) { - date.year = +yearValue; - return date; -} -/** - * @param {?} date - * @param {?} month - * @return {?} - */ -export function setJalaliMonth(date, month) { - month = +month; - date.year = date.year + Math.floor((month - 1) / 12); - date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1; - return date; -} -/** - * @param {?} date - * @param {?} day - * @return {?} - */ -export function setJalaliDay(date, day) { - /** @type {?} */ - var mDays = getDaysPerMonth(date.month, date.year); - if (day <= 0) { - while (day <= 0) { - date = setJalaliMonth(date, date.month - 1); - mDays = getDaysPerMonth(date.month, date.year); - day += mDays; - } - } - else if (day > mDays) { - while (day > mDays) { - day -= mDays; - date = setJalaliMonth(date, date.month + 1); - mDays = getDaysPerMonth(date.month, date.year); - } - } - date.day = day; - return date; -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function mod(a, b) { - return a - b * Math.floor(a / b); -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function div(a, b) { - return Math.trunc(a / b); -} -/* - This function determines if the Jalali (Persian) year is - leap (366-day long) or is the common year (365 days), and - finds the day in March (Gregorian calendar) of the first - day of the Jalali year (jalaliYear). - @param jalaliYear Jalali calendar year (-61 to 3177) - @return - leap: number of years since the last leap year (0 to 4) - gYear: Gregorian year of the beginning of Jalali year - march: the March day of Farvardin the 1st (1st day of jalaliYear) - @see: http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm - @see: http://www.fourmilab.ch/documents/calendar/ - */ -/** - * @param {?} jalaliYear - * @return {?} - */ -function jalCal(jalaliYear) { - // Jalali years starting the 33-year rule. - /** @type {?} */ - var breaks = [-61, 9, 38, 199, 426, 686, 756, 818, 1111, 1181, 1210, 1635, 2060, 2097, 2192, 2262, 2324, 2394, 2456, 3178]; - /** @type {?} */ - var breaksLength = breaks.length; - /** @type {?} */ - var gYear = jalaliYear + 621; - /** @type {?} */ - var leapJ = -14; - /** @type {?} */ - var jp = breaks[0]; - if (jalaliYear < jp || jalaliYear >= breaks[breaksLength - 1]) { - throw new Error('Invalid Jalali year ' + jalaliYear); - } - // Find the limiting years for the Jalali year jalaliYear. - /** @type {?} */ - var jump; - for (var i = 1; i < breaksLength; i += 1) { - /** @type {?} */ - var jm = breaks[i]; - jump = jm - jp; - if (jalaliYear < jm) { - break; - } - leapJ = leapJ + div(jump, 33) * 8 + div(mod(jump, 33), 4); - jp = jm; - } - /** @type {?} */ - var n = jalaliYear - jp; - // Find the number of leap years from AD 621 to the beginning - // of the current Jalali year in the Persian calendar. - leapJ = leapJ + div(n, 33) * 8 + div(mod(n, 33) + 3, 4); - if (mod(jump, 33) === 4 && jump - n === 4) { - leapJ += 1; - } - // And the same in the Gregorian calendar (until the year gYear). - /** @type {?} */ - var leapG = div(gYear, 4) - div((div(gYear, 100) + 1) * 3, 4) - 150; - // Determine the Gregorian date of Farvardin the 1st. - /** @type {?} */ - var march = 20 + leapJ - leapG; - // Find how many years have passed since the last leap year. - if (jump - n < 6) { - n = n - jump + div(jump + 4, 33) * 33; - } - /** @type {?} */ - var leap = mod(mod(n + 1, 33) - 1, 4); - if (leap === -1) { - leap = 4; - } - return { leap: leap, gy: gYear, march: march }; -} -/* - Calculates Gregorian and Julian calendar dates from the Julian Day number - (jdn) for the period since jdn=-34839655 (i.e. the year -100100 of both - calendars) to some millions years ahead of the present. - @param jdn Julian Day number - @return - gYear: Calendar year (years BC numbered 0, -1, -2, ...) - gMonth: Calendar month (1 to 12) - gDay: Calendar day of the month M (1 to 28/29/30/31) - */ -/** - * @param {?} julianDayNumber - * @return {?} - */ -function julianToGregorian(julianDayNumber) { - /** @type {?} */ - var j = 4 * julianDayNumber + 139361631; - j = j + div(div(4 * julianDayNumber + 183187720, 146097) * 3, 4) * 4 - 3908; - /** @type {?} */ - var i = div(mod(j, 1461), 4) * 5 + 308; - /** @type {?} */ - var gDay = div(mod(i, 153), 5) + 1; - /** @type {?} */ - var gMonth = mod(div(i, 153), 12) + 1; - /** @type {?} */ - var gYear = div(j, 1461) - 100100 + div(8 - gMonth, 6); - return new Date(gYear, gMonth - 1, gDay); -} -/* - Converts a date of the Jalali calendar to the Julian Day number. - @param jy Jalali year (1 to 3100) - @param jm Jalali month (1 to 12) - @param jd Jalali day (1 to 29/31) - @return Julian Day number - */ -/** - * @param {?} gy - * @param {?} gm - * @param {?} gd - * @return {?} - */ -function gregorianToJulian(gy, gm, gd) { - /** @type {?} */ - var d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod(gm + 9, 12) + 2, 5) + gd - 34840408; - d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752; - return d; -} -/* - Converts the Julian Day number to a date in the Jalali calendar. - @param julianDayNumber Julian Day number - @return - jalaliYear: Jalali year (1 to 3100) - jalaliMonth: Jalali month (1 to 12) - jalaliDay: Jalali day (1 to 29/31) - */ -/** - * @param {?} julianDayNumber - * @return {?} - */ -function julianToJalali(julianDayNumber) { - /** @type {?} */ - var gy = julianToGregorian(julianDayNumber).getFullYear() // Calculate Gregorian year (gy). - ; - /** @type {?} */ - var jalaliYear = gy - 621; - /** @type {?} */ - var r = jalCal(jalaliYear); - /** @type {?} */ - var gregorianDay = gregorianToJulian(gy, 3, r.march); - /** @type {?} */ - var jalaliDay; - /** @type {?} */ - var jalaliMonth; - /** @type {?} */ - var numberOfDays; - // Find number of days that passed since 1 Farvardin. - numberOfDays = julianDayNumber - gregorianDay; - if (numberOfDays >= 0) { - if (numberOfDays <= 185) { - // The first 6 months. - jalaliMonth = 1 + div(numberOfDays, 31); - jalaliDay = mod(numberOfDays, 31) + 1; - return new NgbDate(jalaliYear, jalaliMonth, jalaliDay); - } - else { - // The remaining months. - numberOfDays -= 186; - } - } - else { - // Previous Jalali year. - jalaliYear -= 1; - numberOfDays += 179; - if (r.leap === 1) { - numberOfDays += 1; - } - } - jalaliMonth = 7 + div(numberOfDays, 30); - jalaliDay = mod(numberOfDays, 30) + 1; - return new NgbDate(jalaliYear, jalaliMonth, jalaliDay); -} -/* - Converts a date of the Jalali calendar to the Julian Day number. - @param jYear Jalali year (1 to 3100) - @param jMonth Jalali month (1 to 12) - @param jDay Jalali day (1 to 29/31) - @return Julian Day number - */ -/** - * @param {?} jYear - * @param {?} jMonth - * @param {?} jDay - * @return {?} - */ -function jalaliToJulian(jYear, jMonth, jDay) { - /** @type {?} */ - var r = jalCal(jYear); - return gregorianToJulian(r.gy, 3, r.march) + (jMonth - 1) * 31 - div(jMonth, 7) * (jMonth - 7) + jDay - 1; -} -/** - * Returns the number of days in a specific jalali month. - * @param {?} month - * @param {?} year - * @return {?} - */ -function getDaysPerMonth(month, year) { - if (month <= 6) { - return 31; - } - if (month <= 11) { - return 30; - } - if (jalCal(year).leap === 0) { - return 30; - } - return 29; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiamFsYWxpLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9qYWxhbGkvamFsYWxpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sYUFBYSxDQUFDOzs7Ozs7O0FBTXBDLE1BQU0sVUFBVSxXQUFXLENBQUMsVUFBbUI7O1FBQ3pDLEdBQUcsR0FBRyxjQUFjLENBQUMsVUFBVSxDQUFDLElBQUksRUFBRSxVQUFVLENBQUMsS0FBSyxFQUFFLFVBQVUsQ0FBQyxHQUFHLENBQUM7O1FBQ3ZFLElBQUksR0FBRyxpQkFBaUIsQ0FBQyxHQUFHLENBQUM7SUFDakMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxHQUFHLENBQUMsQ0FBQztJQUM3QixPQUFPLElBQUksQ0FBQztBQUNkLENBQUM7Ozs7Ozs7O0FBT0QsTUFBTSxVQUFVLGFBQWEsQ0FBQyxLQUFXOztRQUNuQyxHQUFHLEdBQUcsaUJBQWlCLENBQUMsS0FBSyxDQUFDLFdBQVcsRUFBRSxFQUFFLEtBQUssQ0FBQyxRQUFRLEVBQUUsR0FBRyxDQUFDLEVBQUUsS0FBSyxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ3ZGLE9BQU8sY0FBYyxDQUFDLEdBQUcsQ0FBQy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cikge1xuICBsZXQgciA9IGphbENhbChqWWVhcik7XG4gIHJldHVybiBncmVnb3JpYW5Ub0p1bGlhbihyLmd5LCAzLCByLm1hcmNoKSArIChqTW9udGggLSAxKSAqIDMxIC0gZGl2KGpNb250aCwgNykgKiAoak1vbnRoIC0gNykgKyBqRGF5IC0gMTtcbn1cblxuLyoqXG4gKiBSZXR1cm5zIHRoZSBudW1iZXIgb2YgZGF5cyBpbiBhIHNwZWNpZmljIGphbGFsaSBtb250aC5cbiAqL1xuZnVuY3Rpb24gZ2V0RGF5c1Blck1vbnRoKG1vbnRoOiBudW1iZXIsIHllYXI6IG51bWJlcik6IG51bWJlciB7XG4gIGlmIChtb250aCA8PSA2KSB7XG4gICAgcmV0dXJuIDMxO1xuICB9XG4gIGlmIChtb250aCA8PSAxMSkge1xuICAgIHJldHVybiAzMDtcbiAgfVxuICBpZiAoamFsQ2FsKHllYXIpLmxlYXAgPT09IDApIHtcbiAgICByZXR1cm4gMzA7XG4gIH1cbiAgcmV0dXJuIDI5O1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/jalali/ngb-calendar-persian.js b/dist/ng-bootstrap/esm5/datepicker/jalali/ngb-calendar-persian.js deleted file mode 100644 index ed013e7..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/jalali/ngb-calendar-persian.js +++ /dev/null @@ -1,154 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { Injectable } from '@angular/core'; -import { NgbDate } from '../ngb-date'; -import { NgbCalendar } from '../ngb-calendar'; -import { isInteger } from '../../util/util'; -import { fromGregorian, setJalaliDay, setJalaliMonth, setJalaliYear, toGregorian } from './jalali'; -var NgbCalendarPersian = /** @class */ (function (_super) { - tslib_1.__extends(NgbCalendarPersian, _super); - function NgbCalendarPersian() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getMonths = /** - * @return {?} - */ - function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }; - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarPersian.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date = setJalaliYear(date, date.year + number); - date.month = 1; - date.day = 1; - return date; - case 'm': - date = setJalaliMonth(date, date.month + number); - date.day = 1; - return date; - case 'd': - return setJalaliDay(date, date.day + number); - default: - return date; - } - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarPersian.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarPersian.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var day = toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarPersian.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - var thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - var date = week[thursdayIndex]; - /** @type {?} */ - var jsDate = toGregorian(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - var time = jsDate.getTime(); - /** @type {?} */ - var startDate = toGregorian(new NgbDate(date.year, 1, 1)); - return Math.floor(Math.round((time - startDate.getTime()) / 86400000) / 7) + 1; - }; - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getToday = /** - * @return {?} - */ - function () { return fromGregorian(new Date()); }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarPersian.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) && - !isNaN(toGregorian(date).getTime()); - }; - NgbCalendarPersian.decorators = [ - { type: Injectable } - ]; - return NgbCalendarPersian; -}(NgbCalendar)); -export { NgbCalendarPersian }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLXBlcnNpYW4uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJkYXRlcGlja2VyL2phbGFsaS9uZ2ItY2FsZW5kYXItcGVyc2lhbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUNwQyxPQUFPLEVBQUMsV0FBVyxFQUFZLE1BQU0saUJBQWlCLENBQUM7QUFDdkQsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBRTFDLE9BQU8sRUFBQyxhQUFhLEVBQUUsWUFBWSxFQUFFLGNBQWMsRUFBRSxhQUFhLEVBQUUsV0FBVyxFQUFDLE1BQU0sVU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XG5cbiAgICBjb25zdCBqc0RhdGUgPSB0b0dyZWdvcmlhbihkYXRlKTtcbiAgICBqc0RhdGUuc2V0RGF0ZShqc0RhdGUuZ2V0RGF0ZSgpICsgNCAtIChqc0RhdGUuZ2V0RGF5KCkgfHwgNykpOyAgLy8gVGh1cnNkYXlcbiAgICBjb25zdCB0aW1lID0ganNEYXRlLmdldFRpbWUoKTtcbiAgICBjb25zdCBzdGFydERhdGUgPSB0b0dyZWdvcmlhbihuZXcgTmdiRGF0ZShkYXRlLnllYXIsIDEsIDEpKTtcbiAgICByZXR1cm4gTWF0aC5mbG9vcihNYXRoLnJvdW5kKCh0aW1lIC0gc3RhcnREYXRlLmdldFRpbWUoKSkgLyA4NjQwMDAwMCkgLyA3KSArIDE7XG4gIH1cblxuICBnZXRUb2RheSgpOiBOZ2JEYXRlIHsgcmV0dXJuIGZyb21HcmVnb3JpYW4obmV3IERhdGUoKSk7IH1cblxuICBpc1ZhbGlkKGRhdGU6IE5nYkRhdGUpOiBib29sZWFuIHtcbiAgICByZXR1cm4gZGF0ZSAmJiBpc0ludGVnZXIoZGF0ZS55ZWFyKSAmJiBpc0ludGVnZXIoZGF0ZS5tb250aCkgJiYgaXNJbnRlZ2VyKGRhdGUuZGF5KSAmJlxuICAgICAgICAhaXNOYU4odG9HcmVnb3JpYW4oZGF0ZSkuZ2V0VGltZSgpKTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/ngb-calendar.js b/dist/ng-bootstrap/esm5/datepicker/ngb-calendar.js deleted file mode 100644 index fb1e639..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/ngb-calendar.js +++ /dev/null @@ -1,287 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { NgbDate } from './ngb-date'; -import { Injectable } from '@angular/core'; -import { isInteger } from '../util/util'; -import * as i0 from "@angular/core"; -/** - * @param {?} jsDate - * @return {?} - */ -export function fromJSDate(jsDate) { - return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate()); -} -/** - * @param {?} date - * @return {?} - */ -export function toJSDate(date) { - /** @type {?} */ - var jsDate = new Date(date.year, date.month - 1, date.day, 12); - // this is done avoid 30 -> 1930 conversion - if (!isNaN(jsDate.getTime())) { - jsDate.setFullYear(date.year); - } - return jsDate; -} -/** - * @return {?} - */ -export function NGB_DATEPICKER_CALENDAR_FACTORY() { - return new NgbCalendarGregorian(); -} -/** - * A service that represents the calendar used by the datepicker. - * - * The default implementation uses the Gregorian calendar. You can inject it in your own - * implementations if necessary to simplify `NgbDate` calculations. - * @abstract - */ -var NgbCalendar = /** @class */ (function () { - function NgbCalendar() { - } - NgbCalendar.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_CALENDAR_FACTORY },] } - ]; - /** @nocollapse */ NgbCalendar.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_CALENDAR_FACTORY, token: NgbCalendar, providedIn: "root" }); - return NgbCalendar; -}()); -export { NgbCalendar }; -if (false) { - /** - * Returns the number of days per week. - * @abstract - * @return {?} - */ - NgbCalendar.prototype.getDaysPerWeek = function () { }; - /** - * Returns an array of months per year. - * - * With default calendar we use ISO 8601 and return [1, 2, ..., 12]; - * @abstract - * @param {?=} year - * @return {?} - */ - NgbCalendar.prototype.getMonths = function (year) { }; - /** - * Returns the number of weeks per month. - * @abstract - * @return {?} - */ - NgbCalendar.prototype.getWeeksPerMonth = function () { }; - /** - * Returns the weekday number for a given day. - * - * With the default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun - * @abstract - * @param {?} date - * @return {?} - */ - NgbCalendar.prototype.getWeekday = function (date) { }; - /** - * Adds a number of years, months or days to a given date. - * - * * `period` can be `y`, `m` or `d` and defaults to day. - * * `number` defaults to 1. - * - * Always returns a new date. - * @abstract - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendar.prototype.getNext = function (date, period, number) { }; - /** - * Subtracts a number of years, months or days from a given date. - * - * * `period` can be `y`, `m` or `d` and defaults to day. - * * `number` defaults to 1. - * - * Always returns a new date. - * @abstract - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendar.prototype.getPrev = function (date, period, number) { }; - /** - * Returns the week number for a given week. - * @abstract - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendar.prototype.getWeekNumber = function (week, firstDayOfWeek) { }; - /** - * Returns the today's date. - * @abstract - * @return {?} - */ - NgbCalendar.prototype.getToday = function () { }; - /** - * Checks if a date is valid in the current calendar. - * @abstract - * @param {?} date - * @return {?} - */ - NgbCalendar.prototype.isValid = function (date) { }; -} -var NgbCalendarGregorian = /** @class */ (function (_super) { - tslib_1.__extends(NgbCalendarGregorian, _super); - function NgbCalendarGregorian() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getMonths = /** - * @return {?} - */ - function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }; - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarGregorian.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - /** @type {?} */ - var jsDate = toJSDate(date); - switch (period) { - case 'y': - return new NgbDate(date.year + number, 1, 1); - case 'm': - jsDate = new Date(date.year, date.month + number - 1, 1, 12); - break; - case 'd': - jsDate.setDate(jsDate.getDate() + number); - break; - default: - return date; - } - return fromJSDate(jsDate); - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarGregorian.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarGregorian.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = toJSDate(date); - /** @type {?} */ - var day = jsDate.getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarGregorian.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - var thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - var date = week[thursdayIndex]; - /** @type {?} */ - var jsDate = toJSDate(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - var time = jsDate.getTime(); - jsDate.setMonth(0); // Compare with Jan 1 - jsDate.setDate(1); - return Math.floor(Math.round((time - jsDate.getTime()) / 86400000) / 7) + 1; - }; - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getToday = /** - * @return {?} - */ - function () { return fromJSDate(new Date()); }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarGregorian.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - if (!date || !isInteger(date.year) || !isInteger(date.month) || !isInteger(date.day)) { - return false; - } - // year 0 doesn't exist in Gregorian calendar - if (date.year === 0) { - return false; - } - /** @type {?} */ - var jsDate = toJSDate(date); - return !isNaN(jsDate.getTime()) && jsDate.getFullYear() === date.year && jsDate.getMonth() + 1 === date.month && - jsDate.getDate() === date.day; - }; - NgbCalendarGregorian.decorators = [ - { type: Injectable } - ]; - return NgbCalendarGregorian; -}(NgbCalendar)); -export { NgbCalendarGregorian }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWNhbGVuZGFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZGF0ZXBpY2tlci9uZ2ItY2FsZW5kYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sWUFBWSxDQUFDO0FBQ25DLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGNBQWMsQ0FBQzs7Ozs7O0FBRXZDLE1BQU0sVUFBVSxVQUFVLENBQUMsTUFBWTtJQUNyQyxPQUFPLElBQUksT0FBTyxDQUFDLE1BQU0sQ0FBQyxXQUFXLEVBQUUsRUFBRSxNQUFNLENBQUMsUUFBUSxFQUFFLEdBQUcsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFDO0FBQ3BGLENBQUM7Ozs7O0FBQ0QsTUFBTSxVQUFVLFFBQVEsQ0FBQyxJQUFhOztRQUM5QixNQUFNLEdBQUcsSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsS0FBSyxHQUFHLENBQUMsRUFBRSxJQUFJLENBQUMsR0FBRyxFQUFFLEVBQUUsQ0FBQztJQUNoRSwyQ0FBMkM7SUFDM0MsSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsT0FBTyxFQUFFLENBQUMsRUFBRTtRQUM1QixNQUFNLENBQUMsV0F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uICBnZXRUb2RheSgpOiBOZ2JEYXRlIHsgcmV0dXJuIGZyb21KU0RhdGUobmV3IERhdGUoKSk7IH1cblxuICBpc1ZhbGlkKGRhdGU6IE5nYkRhdGUpOiBib29sZWFuIHtcbiAgICBpZiAoIWRhdGUgfHwgIWlzSW50ZWdlcihkYXRlLnllYXIpIHx8ICFpc0ludGVnZXIoZGF0ZS5tb250aCkgfHwgIWlzSW50ZWdlcihkYXRlLmRheSkpIHtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICAvLyB5ZWFyIDAgZG9lc24ndCBleGlzdCBpbiBHcmVnb3JpYW4gY2FsZW5kYXJcbiAgICBpZiAoZGF0ZS55ZWFyID09PSAwKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgY29uc3QganNEYXRlID0gdG9KU0RhdGUoZGF0ZSk7XG5cbiAgICByZXR1cm4gIWlzTmFOKGpzRGF0ZS5nZXRUaW1lKCkpICYmIGpzRGF0ZS5nZXRGdWxsWWVhcigpID09PSBkYXRlLnllYXIgJiYganNEYXRlLmdldE1vbnRoKCkgKyAxID09PSBkYXRlLm1vbnRoICYmXG4gICAgICAgIGpzRGF0ZS5nZXREYXRlKCkgPT09IGRhdGUuZGF5O1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/ngb-date-parser-formatter.js b/dist/ng-bootstrap/esm5/datepicker/ngb-date-parser-formatter.js deleted file mode 100644 index 14105ed..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/ngb-date-parser-formatter.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { padNumber, toInteger, isNumber } from '../util/util'; -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * @return {?} - */ -export function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY() { - return new NgbDateISOParserFormatter(); -} -/** - * An abstract service for parsing and formatting dates for the - * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive. - * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the - * input element. - * - * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object. - * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string` - * in the input. - * - * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI - * to use an alternative string format or a custom parsing logic. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * @abstract - */ -var NgbDateParserFormatter = /** @class */ (function () { - function NgbDateParserFormatter() { - } - NgbDateParserFormatter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY },] } - ]; - /** @nocollapse */ NgbDateParserFormatter.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY, token: NgbDateParserFormatter, providedIn: "root" }); - return NgbDateParserFormatter; -}()); -export { NgbDateParserFormatter }; -if (false) { - /** - * Parses the given `string` to an `NgbDateStruct`. - * - * Implementations should try their best to provide a result, even - * partial. They must return `null` if the value can't be parsed. - * @abstract - * @param {?} value - * @return {?} - */ - NgbDateParserFormatter.prototype.parse = function (value) { }; - /** - * Formats the given `NgbDateStruct` to a `string`. - * - * Implementations should return an empty string if the given date is `null`, - * and try their best to provide a partial result if the given date is incomplete or invalid. - * @abstract - * @param {?} date - * @return {?} - */ - NgbDateParserFormatter.prototype.format = function (date) { }; -} -var NgbDateISOParserFormatter = /** @class */ (function (_super) { - tslib_1.__extends(NgbDateISOParserFormatter, _super); - function NgbDateISOParserFormatter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @param {?} value - * @return {?} - */ - NgbDateISOParserFormatter.prototype.parse = /** - * @param {?} value - * @return {?} - */ - function (value) { - if (value) { - /** @type {?} */ - var dateParts = value.trim().split('-'); - if (dateParts.length === 1 && isNumber(dateParts[0])) { - return { year: toInteger(dateParts[0]), month: null, day: null }; - } - else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) { - return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null }; - } - else if (dateParts.length === 3 && isNumber(dateParts[0]) && isNumber(dateParts[1]) && isNumber(dateParts[2])) { - return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: toInteger(dateParts[2]) }; - } - } - return null; - }; - /** - * @param {?} date - * @return {?} - */ - NgbDateISOParserFormatter.prototype.format = /** - * @param {?} date - * @return {?} - */ - function (date) { - return date ? - date.year + "-" + (isNumber(date.month) ? padNumber(date.month) : '') + "-" + (isNumber(date.day) ? padNumber(date.day) : '') : - ''; - }; - NgbDateISOParserFormatter.decorators = [ - { type: Injectable } - ]; - return NgbDateISOParserFormatter; -}(NgbDateParserFormatter)); -export { NgbDateISOParserFormatter }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLWRhdGUtcGFyc2VyLWZvcm1hdHRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImRhdGVwaWNrZXIvbmdiLWRhdGUtcGFyc2VyLWZvcm1hdHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBQyxNQUFNLGNBQWMsQ0FBQztBQUU1RCxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7OztBQUV6QyxNQUFNLFVBQVUsdUNBQXVDO0lBQ3JELE9BQU8sSUFBSSx5QkFBeUIsRUFBRSxDQUFDO0FBQ3pDLENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBaUJEO0lBQUE7S0FpQkM7O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lUGFydHNbMV0pICYmIGlzTnVtYmVyKGRhdGVQYXJ0c1syXSkpIHtcbiAgICAgICAgcmV0dXJuIHt5ZWFyOiB0b0ludGVnZXIoZGF0ZVBhcnRzWzBdKSwgbW9udGg6IHRvSW50ZWdlcihkYXRlUGFydHNbMV0pLCBkYXk6IHRvSW50ZWdlcihkYXRlUGFydHNbMl0pfTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICBmb3JtYXQoZGF0ZTogTmdiRGF0ZVN0cnVjdCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIGRhdGUgP1xuICAgICAgICBgJHtkYXRlLnllYXJ9LSR7aXNOdW1iZXIoZGF0ZS5tb250aCkgPyBwYWROdW1iZXIoZGF0ZS5tb250aCkgOiAnJ30tJHtpc051bWJlcihkYXRlLmRheSkgPyBwYWROdW1iZXIoZGF0ZS5kYXkpIDogJyd9YCA6XG4gICAgICAgICcnO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/datepicker/ngb-date-struct.js b/dist/ng-bootstrap/esm5/datepicker/ngb-date-struct.js deleted file mode 100644 index b67ab82..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/ngb-date-struct.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * An interface of the date model used by the datepicker. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * @record - */ -export function NgbDateStruct() { } -if (false) { - /** - * The year, for example 2016 - * @type {?} - */ - NgbDateStruct.prototype.year; - /** - * The month, for example 1=Jan ... 12=Dec - * @type {?} - */ - NgbDateStruct.prototype.month; - /** - * The day of month, starting at 1 - * @type {?} - */ - NgbDateStruct.prototype.day; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW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/ngb-date.js deleted file mode 100644 index 3011fbc..0000000 --- a/dist/ng-bootstrap/esm5/datepicker/ngb-date.js +++ /dev/null @@ -1,182 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { isInteger } from '../util/util'; -/** - * A simple class that represents a date that datepicker also uses internally. - * - * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods, - * like `.equals()`, `.before()`, etc. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * In many cases it is simpler to manipulate these objects together with - * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * - * \@since 3.0.0 - */ -var /** - * A simple class that represents a date that datepicker also uses internally. - * - * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods, - * like `.equals()`, `.before()`, etc. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * In many cases it is simpler to manipulate these objects together with - * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * - * \@since 3.0.0 - */ -NgbDate = /** @class */ (function () { - function NgbDate(year, month, day) { - this.year = isInteger(year) ? year : null; - this.month = isInteger(month) ? month : null; - this.day = isInteger(day) ? day : null; - } - /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - */ - /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - * @param {?} date - * @return {?} - */ - NgbDate.from = /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - * @param {?} date - * @return {?} - */ - function (date) { - if (date instanceof NgbDate) { - return date; - } - return date ? new NgbDate(date.year, date.month, date.day) : null; - }; - /** - * Checks if the current date is equal to another date. - */ - /** - * Checks if the current date is equal to another date. - * @param {?} other - * @return {?} - */ - NgbDate.prototype.equals = /** - * Checks if the current date is equal to another date. - * @param {?} other - * @return {?} - */ - function (other) { - return other && this.year === other.year && this.month === other.month && this.day === other.day; - }; - /** - * Checks if the current date is before another date. - */ - /** - * Checks if the current date is before another date. - * @param {?} other - * @return {?} - */ - NgbDate.prototype.before = /** - * Checks if the current date is before another date. - * @param {?} other - * @return {?} - */ - function (other) { - if (!other) { - return false; - } - if (this.year === other.year) { - if (this.month === other.month) { - return this.day === other.day ? false : this.day < other.day; - } - else { - return this.month < other.month; - } - } - else { - return this.year < other.year; - } - }; - /** - * Checks if the current date is after another date. - */ - /** - * Checks if the current date is after another date. - * @param {?} other - * @return {?} - */ - NgbDate.prototype.after = /** - * Checks if the current date is after another date. - * @param {?} other - * @return {?} - */ - function (other) { - if (!other) { - return false; - } - if (this.year === other.year) { - if (this.month === other.month) { - return this.day === other.day ? false : this.day > other.day; - } - else { - return this.month > other.month; - } - } - else { - return this.year > other.year; - } - }; - return NgbDate; -}()); -/** - * A simple class that represents a date that datepicker also uses internally. - * - * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods, - * like `.equals()`, `.before()`, etc. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * In many cases it is simpler to manipulate these objects together with - * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * - * \@since 3.0.0 - */ -export { NgbDate }; -if (false) { - /** - * The year, for example 2016 - * @type {?} - */ - NgbDate.prototype.year; - /** - * The month, for example 1=Jan ... 12=Dec as in ISO 8601 - * @type {?} - */ - NgbDate.prototype.month; - /** - * The day of month, starting with 1 - * @type {?} - */ - NgbDate.prototype.day; -} -//# sourceMappingURL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cbiAgYmVmb3JlKG90aGVyOiBOZ2JEYXRlU3RydWN0KTogYm9vbGVhbiB7XG4gICAgaWYgKCFvdGhlcikge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIGlmICh0aGlzLnllYXIgPT09IG90aGVyLnllYXIpIHtcbiAgICAgIGlmICh0aGlzLm1vbnRoID09PSBvdGhlci5tb250aCkge1xuICAgICAgICByZXR1cm4gdGhpcy5kYXkgPT09IG90aGVyLmRheSA/IGZhbHNlIDogdGhpcy5kYXkgPCBvdGhlci5kYXk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gdGhpcy5tb250aCA8IG90aGVyLm1vbnRoO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gdGhpcy55ZWFyIDwgb3RoZXIueWVhcjtcbiAgICB9XG4gIH1cblxuICAvKipcbiAgICogQ2hlY2tzIGlmIHRoZSBjdXJyZW50IGRhdGUgaXMgYWZ0ZXIgYW5vdGhlciBkYXRlLlxuICAgKi9cbiAgYWZ0ZXIob3RoZXI6IE5nYkRhdGVTdHJ1Y3QpOiBib29sZWFuIHtcbiAgICBpZiAoIW90aGVyKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICAgIGlmICh0aGlzLnllYXIgPT09IG90aGVyLnllYXIpIHtcbiAgICAgIGlmICh0aGlzLm1vbnRoID09PSBvdGhlci5tb250aCkge1xuICAgICAgICByZXR1cm4gdGhpcy5kYXkgPT09IG90aGVyLmRheSA/IGZhbHNlIDogdGhpcy5kYXkgPiBvdGhlci5kYXk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gdGhpcy5tb250aCA+IG90aGVyLm1vbnRoO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gdGhpcy55ZWFyID4gb3RoZXIueWVhcjtcbiAgICB9XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/dropdown/dropdown-config.js b/dist/ng-bootstrap/esm5/dropdown/dropdown-config.js deleted file mode 100644 index 1bcf9d7..0000000 --- a/dist/ng-bootstrap/esm5/dropdown/dropdown-config.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the dropdowns used in the application. - */ -var NgbDropdownConfig = /** @class */ (function () { - function NgbDropdownConfig() { - this.autoClose = true; - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - } - NgbDropdownConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbDropdownConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbDropdownConfig_Factory() { return new NgbDropdownConfig(); }, token: NgbDropdownConfig, providedIn: "root" }); - return NgbDropdownConfig; -}()); -export { NgbDropdownConfig }; -if (false) { - /** @type {?} */ - NgbDropdownConfig.prototype.autoClose; - /** @type {?} */ - NgbDropdownConfig.prototype.placement; - /** @type {?} */ - NgbDropdownConfig.prototype.container; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiZHJvcGRvd24vZHJvcGRvd24tY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QztJQUFBO1FBRUUsY0FBUyxHQUFt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2JvdHRvbS1yaWdodCcsICd0b3AtbGVmdCcsICd0b3AtcmlnaHQnXTtcbiAgY29udGFpbmVyOiBudWxsIHwgJ2JvZHknO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/dropdown/dropdown.js b/dist/ng-bootstrap/esm5/dropdown/dropdown.js deleted file mode 100644 index cbb6459..0000000 --- a/dist/ng-bootstrap/esm5/dropdown/dropdown.js +++ /dev/null @@ -1,757 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { ChangeDetectorRef, ContentChild, ContentChildren, Directive, ElementRef, EventEmitter, forwardRef, Inject, Input, NgZone, Output, QueryList, Renderer2, Optional } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { Subject } from 'rxjs'; -import { take } from 'rxjs/operators'; -import { positionElements } from '../util/positioning'; -import { ngbAutoClose } from '../util/autoclose'; -import { Key } from '../util/key'; -import { NgbDropdownConfig } from './dropdown-config'; -var NgbNavbar = /** @class */ (function () { - function NgbNavbar() { - } - NgbNavbar.decorators = [ - { type: Directive, args: [{ selector: '.navbar' },] } - ]; - return NgbNavbar; -}()); -export { NgbNavbar }; -/** - * A directive you should put put on a dropdown item to enable keyboard navigation. - * Arrow keys will move focus between items marked with this directive. - * - * \@since 4.1.0 - */ -var NgbDropdownItem = /** @class */ (function () { - function NgbDropdownItem(elementRef) { - this.elementRef = elementRef; - this._disabled = false; - } - Object.defineProperty(NgbDropdownItem.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { return this._disabled; }, - set: /** - * @param {?} value - * @return {?} - */ - function (value) { - this._disabled = (/** @type {?} */ (value)) === '' || value === true; // accept an empty attribute as true - }, - enumerable: true, - configurable: true - }); - NgbDropdownItem.decorators = [ - { type: Directive, args: [{ selector: '[ngbDropdownItem]', host: { 'class': 'dropdown-item', '[class.disabled]': 'disabled' } },] } - ]; - /** @nocollapse */ - NgbDropdownItem.ctorParameters = function () { return [ - { type: ElementRef } - ]; }; - NgbDropdownItem.propDecorators = { - disabled: [{ type: Input }] - }; - return NgbDropdownItem; -}()); -export { NgbDropdownItem }; -if (false) { - /** - * @type {?} - * @private - */ - NgbDropdownItem.prototype._disabled; - /** @type {?} */ - NgbDropdownItem.prototype.elementRef; -} -/** - * A directive that wraps dropdown menu content and dropdown items. - */ -var NgbDropdownMenu = /** @class */ (function () { - function NgbDropdownMenu(dropdown) { - this.dropdown = dropdown; - this.placement = 'bottom'; - this.isOpen = false; - } - NgbDropdownMenu.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownMenu]', - host: { - '[class.dropdown-menu]': 'true', - '[class.show]': 'dropdown.isOpen()', - '[attr.x-placement]': 'placement', - '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)', - '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)', - '(keydown.Home)': 'dropdown.onKeyDown($event)', - '(keydown.End)': 'dropdown.onKeyDown($event)', - '(keydown.Enter)': 'dropdown.onKeyDown($event)', - '(keydown.Space)': 'dropdown.onKeyDown($event)' - } - },] } - ]; - /** @nocollapse */ - NgbDropdownMenu.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - function () { return NgbDropdown; })),] }] } - ]; }; - NgbDropdownMenu.propDecorators = { - menuItems: [{ type: ContentChildren, args: [NgbDropdownItem,] }] - }; - return NgbDropdownMenu; -}()); -export { NgbDropdownMenu }; -if (false) { - /** @type {?} */ - NgbDropdownMenu.prototype.placement; - /** @type {?} */ - NgbDropdownMenu.prototype.isOpen; - /** @type {?} */ - NgbDropdownMenu.prototype.menuItems; - /** @type {?} */ - NgbDropdownMenu.prototype.dropdown; -} -/** - * A directive to mark an element to which dropdown menu will be anchored. - * - * This is a simple version of the `NgbDropdownToggle` directive. - * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support - * for events other than click. - * - * \@since 1.1.0 - */ -var NgbDropdownAnchor = /** @class */ (function () { - function NgbDropdownAnchor(dropdown, _elementRef) { - this.dropdown = dropdown; - this._elementRef = _elementRef; - this.anchorEl = _elementRef.nativeElement; - } - /** - * @return {?} - */ - NgbDropdownAnchor.prototype.getNativeElement = /** - * @return {?} - */ - function () { return this._elementRef.nativeElement; }; - NgbDropdownAnchor.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownAnchor]', - host: { 'class': 'dropdown-toggle', 'aria-haspopup': 'true', '[attr.aria-expanded]': 'dropdown.isOpen()' } - },] } - ]; - /** @nocollapse */ - NgbDropdownAnchor.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - function () { return NgbDropdown; })),] }] }, - { type: ElementRef } - ]; }; - return NgbDropdownAnchor; -}()); -export { NgbDropdownAnchor }; -if (false) { - /** @type {?} */ - NgbDropdownAnchor.prototype.anchorEl; - /** @type {?} */ - NgbDropdownAnchor.prototype.dropdown; - /** - * @type {?} - * @private - */ - NgbDropdownAnchor.prototype._elementRef; -} -/** - * A directive to mark an element that will toggle dropdown via the `click` event. - * - * You can also use `NgbDropdownAnchor` as an alternative. - */ -var NgbDropdownToggle = /** @class */ (function (_super) { - tslib_1.__extends(NgbDropdownToggle, _super); - function NgbDropdownToggle(dropdown, elementRef) { - return _super.call(this, dropdown, elementRef) || this; - } - NgbDropdownToggle.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownToggle]', - host: { - 'class': 'dropdown-toggle', - 'aria-haspopup': 'true', - '[attr.aria-expanded]': 'dropdown.isOpen()', - '(click)': 'dropdown.toggle()', - '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)', - '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)', - '(keydown.Home)': 'dropdown.onKeyDown($event)', - '(keydown.End)': 'dropdown.onKeyDown($event)' - }, - providers: [{ provide: NgbDropdownAnchor, useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbDropdownToggle; })) }] - },] } - ]; - /** @nocollapse */ - NgbDropdownToggle.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - function () { return NgbDropdown; })),] }] }, - { type: ElementRef } - ]; }; - return NgbDropdownToggle; -}(NgbDropdownAnchor)); -export { NgbDropdownToggle }; -/** - * A directive that provides contextual overlays for displaying lists of links and more. - */ -var NgbDropdown = /** @class */ (function () { - function NgbDropdown(_changeDetector, config, _document, _ngZone, _elementRef, _renderer, ngbNavbar) { - var _this = this; - this._changeDetector = _changeDetector; - this._document = _document; - this._ngZone = _ngZone; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._closed$ = new Subject(); - /** - * Defines whether or not the dropdown menu is opened initially. - */ - this._open = false; - /** - * An event fired when the dropdown is opened or closed. - * - * The event payload is a `boolean`: - * * `true` - the dropdown was opened - * * `false` - the dropdown was closed - */ - this.openChange = new EventEmitter(); - this.placement = config.placement; - this.container = config.container; - this.autoClose = config.autoClose; - this.display = ngbNavbar ? 'static' : 'dynamic'; - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { _this._positionMenu(); })); - } - /** - * @return {?} - */ - NgbDropdown.prototype.ngAfterContentInit = /** - * @return {?} - */ - function () { - var _this = this; - this._ngZone.onStable.pipe(take(1)).subscribe((/** - * @return {?} - */ - function () { - _this._applyPlacementClasses(); - if (_this._open) { - _this._setCloseHandlers(); - } - })); - }; - /** - * @param {?} changes - * @return {?} - */ - NgbDropdown.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes.container && this._open) { - this._applyContainer(this.container); - } - if (changes.placement && !changes.placement.isFirstChange) { - this._applyPlacementClasses(); - } - }; - /** - * Checks if the dropdown menu is open. - */ - /** - * Checks if the dropdown menu is open. - * @return {?} - */ - NgbDropdown.prototype.isOpen = /** - * Checks if the dropdown menu is open. - * @return {?} - */ - function () { return this._open; }; - /** - * Opens the dropdown menu. - */ - /** - * Opens the dropdown menu. - * @return {?} - */ - NgbDropdown.prototype.open = /** - * Opens the dropdown menu. - * @return {?} - */ - function () { - if (!this._open) { - this._open = true; - this._applyContainer(this.container); - this.openChange.emit(true); - this._setCloseHandlers(); - } - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._setCloseHandlers = /** - * @private - * @return {?} - */ - function () { - var _this = this; - /** @type {?} */ - var anchor = this._anchor; - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this._closed$, this._menu ? [this._menuElement.nativeElement] : [], anchor ? [anchor.getNativeElement()] : [], '.dropdown-item,.dropdown-divider'); - }; - /** - * Closes the dropdown menu. - */ - /** - * Closes the dropdown menu. - * @return {?} - */ - NgbDropdown.prototype.close = /** - * Closes the dropdown menu. - * @return {?} - */ - function () { - if (this._open) { - this._open = false; - this._resetContainer(); - this._closed$.next(); - this.openChange.emit(false); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the dropdown menu. - */ - /** - * Toggles the dropdown menu. - * @return {?} - */ - NgbDropdown.prototype.toggle = /** - * Toggles the dropdown menu. - * @return {?} - */ - function () { - if (this.isOpen()) { - this.close(); - } - else { - this.open(); - } - }; - /** - * @return {?} - */ - NgbDropdown.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this._resetContainer(); - this._closed$.next(); - this._zoneSubscription.unsubscribe(); - }; - /** - * @param {?} event - * @return {?} - */ - NgbDropdown.prototype.onKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { - var _this = this; - // tslint:disable-next-line:deprecation - /** @type {?} */ - var key = event.which; - /** @type {?} */ - var itemElements = this._getMenuElements(); - /** @type {?} */ - var position = -1; - /** @type {?} */ - var isEventFromItems = false; - /** @type {?} */ - var isEventFromToggle = this._isEventFromToggle(event); - if (!isEventFromToggle && itemElements.length) { - itemElements.forEach((/** - * @param {?} itemElement - * @param {?} index - * @return {?} - */ - function (itemElement, index) { - if (itemElement.contains((/** @type {?} */ (event.target)))) { - isEventFromItems = true; - } - if (itemElement === _this._document.activeElement) { - position = index; - } - })); - } - // closing on Enter / Space - if (key === Key.Space || key === Key.Enter) { - if (isEventFromItems && (this.autoClose === true || this.autoClose === 'inside')) { - this.close(); - } - return; - } - // opening / navigating - if (isEventFromToggle || isEventFromItems) { - this.open(); - if (itemElements.length) { - switch (key) { - case Key.ArrowDown: - position = Math.min(position + 1, itemElements.length - 1); - break; - case Key.ArrowUp: - if (this._isDropup() && position === -1) { - position = itemElements.length - 1; - break; - } - position = Math.max(position - 1, 0); - break; - case Key.Home: - position = 0; - break; - case Key.End: - position = itemElements.length - 1; - break; - } - itemElements[position].focus(); - } - event.preventDefault(); - } - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._isDropup = /** - * @private - * @return {?} - */ - function () { return this._elementRef.nativeElement.classList.contains('dropup'); }; - /** - * @private - * @param {?} event - * @return {?} - */ - NgbDropdown.prototype._isEventFromToggle = /** - * @private - * @param {?} event - * @return {?} - */ - function (event) { - return this._anchor.getNativeElement().contains((/** @type {?} */ (event.target))); - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._getMenuElements = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var menu = this._menu; - if (menu == null) { - return []; - } - return menu.menuItems.filter((/** - * @param {?} item - * @return {?} - */ - function (item) { return !item.disabled; })).map((/** - * @param {?} item - * @return {?} - */ - function (item) { return item.elementRef.nativeElement; })); - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._positionMenu = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var menu = this._menu; - if (this.isOpen() && menu) { - this._applyPlacementClasses(this.display === 'dynamic' ? - positionElements(this._anchor.anchorEl, this._bodyContainer || this._menuElement.nativeElement, this.placement, this.container === 'body') : - this._getFirstPlacement(this.placement)); - } - }; - /** - * @private - * @param {?} placement - * @return {?} - */ - NgbDropdown.prototype._getFirstPlacement = /** - * @private - * @param {?} placement - * @return {?} - */ - function (placement) { - return Array.isArray(placement) ? placement[0] : (/** @type {?} */ (placement.split(' ')[0])); - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._resetContainer = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var renderer = this._renderer; - /** @type {?} */ - var menuElement = this._menuElement; - if (menuElement) { - /** @type {?} */ - var dropdownElement = this._elementRef.nativeElement; - /** @type {?} */ - var dropdownMenuElement = menuElement.nativeElement; - renderer.appendChild(dropdownElement, dropdownMenuElement); - renderer.removeStyle(dropdownMenuElement, 'position'); - renderer.removeStyle(dropdownMenuElement, 'transform'); - } - if (this._bodyContainer) { - renderer.removeChild(this._document.body, this._bodyContainer); - this._bodyContainer = null; - } - }; - /** - * @private - * @param {?=} container - * @return {?} - */ - NgbDropdown.prototype._applyContainer = /** - * @private - * @param {?=} container - * @return {?} - */ - function (container) { - if (container === void 0) { container = null; } - this._resetContainer(); - if (container === 'body') { - /** @type {?} */ - var renderer = this._renderer; - /** @type {?} */ - var dropdownMenuElement = this._menuElement.nativeElement; - /** @type {?} */ - var bodyContainer = this._bodyContainer = this._bodyContainer || renderer.createElement('div'); - // Override some styles to have the positionning working - renderer.setStyle(bodyContainer, 'position', 'absolute'); - renderer.setStyle(dropdownMenuElement, 'position', 'static'); - renderer.setStyle(bodyContainer, 'z-index', '1050'); - renderer.appendChild(bodyContainer, dropdownMenuElement); - renderer.appendChild(this._document.body, bodyContainer); - } - }; - /** - * @private - * @param {?=} placement - * @return {?} - */ - NgbDropdown.prototype._applyPlacementClasses = /** - * @private - * @param {?=} placement - * @return {?} - */ - function (placement) { - /** @type {?} */ - var menu = this._menu; - if (menu) { - if (!placement) { - placement = this._getFirstPlacement(this.placement); - } - /** @type {?} */ - var renderer = this._renderer; - /** @type {?} */ - var dropdownElement = this._elementRef.nativeElement; - // remove the current placement classes - renderer.removeClass(dropdownElement, 'dropup'); - renderer.removeClass(dropdownElement, 'dropdown'); - menu.placement = this.display === 'static' ? null : placement; - /* - * apply the new placement - * in case of top use up-arrow or down-arrow otherwise - */ - /** @type {?} */ - var dropdownClass = placement.search('^top') !== -1 ? 'dropup' : 'dropdown'; - renderer.addClass(dropdownElement, dropdownClass); - /** @type {?} */ - var bodyContainer = this._bodyContainer; - if (bodyContainer) { - renderer.removeClass(bodyContainer, 'dropup'); - renderer.removeClass(bodyContainer, 'dropdown'); - renderer.addClass(bodyContainer, dropdownClass); - } - } - }; - NgbDropdown.decorators = [ - { type: Directive, args: [{ selector: '[ngbDropdown]', exportAs: 'ngbDropdown', host: { '[class.show]': 'isOpen()' } },] } - ]; - /** @nocollapse */ - NgbDropdown.ctorParameters = function () { return [ - { type: ChangeDetectorRef }, - { type: NgbDropdownConfig }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: NgZone }, - { type: ElementRef }, - { type: Renderer2 }, - { type: NgbNavbar, decorators: [{ type: Optional }] } - ]; }; - NgbDropdown.propDecorators = { - _menu: [{ type: ContentChild, args: [NgbDropdownMenu, { static: false },] }], - _menuElement: [{ type: ContentChild, args: [NgbDropdownMenu, { read: ElementRef, static: false },] }], - _anchor: [{ type: ContentChild, args: [NgbDropdownAnchor, { static: false },] }], - autoClose: [{ type: Input }], - _open: [{ type: Input, args: ['open',] }], - placement: [{ type: Input }], - container: [{ type: Input }], - display: [{ type: Input }], - openChange: [{ type: Output }] - }; - return NgbDropdown; -}()); -export { NgbDropdown }; -if (false) { - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._closed$; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._zoneSubscription; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._bodyContainer; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._menu; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._menuElement; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._anchor; - /** - * Indicates whether the dropdown should be closed when clicking one of dropdown items or pressing ESC. - * - * * `true` - the dropdown will close on both outside and inside (menu) clicks. - * * `false` - the dropdown can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the dropdown will close on inside menu clicks, but not outside clicks. - * * `"outside"` - the dropdown will close only on the outside clicks and not on menu clicks. - * @type {?} - */ - NgbDropdown.prototype.autoClose; - /** - * Defines whether or not the dropdown menu is opened initially. - * @type {?} - */ - NgbDropdown.prototype._open; - /** - * The preferred placement of the dropdown. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - * @type {?} - */ - NgbDropdown.prototype.placement; - /** - * A selector specifying the element the dropdown should be appended to. - * Currently only supports "body". - * - * \@since 4.1.0 - * @type {?} - */ - NgbDropdown.prototype.container; - /** - * Enable or disable the dynamic positioning. The default value is dynamic unless the dropdown is used - * inside a Bootstrap navbar. If you need custom placement for a dropdown in a navbar, set it to - * dynamic explicitly. See the [positioning of dropdown](#/positioning#dropdown) - * and the [navbar demo](/#/components/dropdown/examples#navbar) for more details. - * - * \@since 4.2.0 - * @type {?} - */ - NgbDropdown.prototype.display; - /** - * An event fired when the dropdown is opened or closed. - * - * The event payload is a `boolean`: - * * `true` - the dropdown was opened - * * `false` - the dropdown was closed - * @type {?} - */ - NgbDropdown.prototype.openChange; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._changeDetector; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._document; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._elementRef; - /** - * @type {?} - * @private - */ - NgbDropdown.prototype._renderer; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHM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Ghpcy5hdXRvQ2xvc2UgPT09ICdpbnNpZGUnKSkge1xuICAgICAgICB0aGlzLmNsb3NlKCk7XG4gICAgICB9XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgLy8gb3BlbmluZyAvIG5hdmlnYXRpbmdcbiAgICBpZiAoaXNFdmVudEZyb21Ub2dnbGUgfHwgaXNFdmVudEZyb21JdGVtcykge1xuICAgICAgdGhpcy5vcGVuKCk7XG5cbiAgICAgIGlmIChpdGVtRWxlbWVudHMubGVuZ3RoKSB7XG4gICAgICAgIHN3aXRjaCAoa2V5KSB7XG4gICAgICAgICAgY2FzZSBLZXkuQXJyb3dEb3duOlxuICAgICAgICAgICAgcG9zaXRpb24gPSBNYXRoLm1pbihwb3NpdGlvbiArIDEsIGl0ZW1FbGVtZW50cy5sZW5ndGggLSAxKTtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgIGNhc2UgS2V5LkFycm93VXA6XG4gICAgICAgICAgICBpZiAodGhpcy5faXNEcm9wdXAoKSAmJiBwb3NpdGlvbiA9PT0gLTEpIHtcbiAgICAgICAgICAgICAgcG9zaXRpb24gPSBpdGVtRWxlbWVudHMubGVuZ3RoIC0gMTtcbiAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBwb3NpdGlvbiA9IE1hdGgubWF4KHBvc2l0aW9uIC0gMSwgMCk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgICBjYXNlIEtleS5Ib21lOlxuICAgICAgICAgICAgcG9zaXRpb24gPSAwO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgY2FzZSBLZXkuRW5kOlxuICAgICAgICAgICAgcG9zaXRpb24gPSBpdGVtRWxlbWVudHMubGVuZ3RoIC0gMTtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgICAgIGl0ZW1FbGVtZW50c1twb3NpdGlvbl0uZm9jdXMoKTtcbiAgICAgIH1cbiAgICAgIGV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25zdCBib2R5Q29udGFpbmVyID0gdGhpcy5fYm9keUNvbnRhaW5lcjtcbiAgICAgIGlmIChib2R5Q29udGFpbmVyKSB7XG4gICAgICAgIHJlbmRlcmVyLnJlbW92ZUNsYXNzKGJvZHlDb250YWluZXIsICdkcm9wdXAnKTtcbiAgICAgICAgcmVuZGVyZXIucmVtb3ZlQ2xhc3MoYm9keUNvbnRhaW5lciwgJ2Ryb3Bkb3duJyk7XG4gICAgICAgIHJlbmRlcmVyLmFkZENsYXNzKGJvZHlDb250YWluZXIsIGRyb3Bkb3duQ2xhc3MpO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/dropdown/dropdown.module.js b/dist/ng-bootstrap/esm5/dropdown/dropdown.module.js deleted file mode 100644 index a58cccb..0000000 --- a/dist/ng-bootstrap/esm5/dropdown/dropdown.module.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar } from './dropdown'; -export { NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem } from './dropdown'; -export { NgbDropdownConfig } from './dropdown-config'; -/** @type {?} */ -var NGB_DROPDOWN_DIRECTIVES = [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar]; -var NgbDropdownModule = /** @class */ (function () { - function NgbDropdownModule() { - } - NgbDropdownModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_DROPDOWN_DIRECTIVES, exports: NGB_DROPDOWN_DIRECTIVES },] } - ]; - return NgbDropdownModule; -}()); -export { NgbDropdownModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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RHJvcGRvd25JdGVtLFxuICBOZ2JOYXZiYXJcbn0gZnJvbSAnLi9kcm9wZG93bic7XG5cbmV4cG9ydCB7TmdiRHJvcGRvd24sIE5nYkRyb3Bkb3duQW5jaG9yLCBOZ2JEcm9wZG93blRvZ2dsZSwgTmdiRHJvcGRvd25NZW51LCBOZ2JEcm9wZG93bkl0ZW19IGZyb20gJy4vZHJvcGRvd24nO1xuZXhwb3J0IHtOZ2JEcm9wZG93bkNvbmZpZ30gZnJvbSAnLi9kcm9wZG93bi1jb25maWcnO1xuXG5jb25zdCBOR0JfRFJPUERPV05fRElSRUNUSVZFUyA9XG4gICAgW05nYkRyb3Bkb3duLCBOZ2JEcm9wZG93bkFuY2hvciwgTmdiRHJvcGRvd25Ub2dnbGUsIE5nYkRyb3Bkb3duTWVudSwgTmdiRHJvcGRvd25JdGVtLCBOZ2JOYXZiYXJdO1xuXG5ATmdNb2R1bGUoe2RlY2xhcmF0aW9uczogTkdCX0RST1BET1dOX0RJUkVDVElWRVMsIGV4cG9ydHM6IE5HQl9EUk9QRE9XTl9ESVJFQ1RJVkVTfSlcbmV4cG9ydCBjbGFzcyBOZ2JEcm9wZG93bk1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/index.js b/dist/ng-bootstrap/esm5/index.js deleted file mode 100644 index 41ad458..0000000 --- a/dist/ng-bootstrap/esm5/index.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { SbCardModule } from './card/card.module'; -import { NgbAccordionModule } from './accordion/accordion.module'; -import { NgbAlertModule } from './alert/alert.module'; -import { NgbButtonsModule } from './buttons/buttons.module'; -import { NgbCarouselModule } from './carousel/carousel.module'; -import { NgbCollapseModule } from './collapse/collapse.module'; -import { NgbDatepickerModule } from './datepicker/datepicker.module'; -import { NgbDropdownModule } from './dropdown/dropdown.module'; -import { NgbModalModule } from './modal/modal.module'; -import { NgbPaginationModule } from './pagination/pagination.module'; -import { NgbPopoverModule } from './popover/popover.module'; -import { NgbProgressbarModule } from './progressbar/progressbar.module'; -import { NgbRatingModule } from './rating/rating.module'; -import { NgbTabsetModule } from './tabset/tabset.module'; -import { NgbTimepickerModule } from './timepicker/timepicker.module'; -import { NgbToastModule } from './toast/toast.module'; -import { NgbTooltipModule } from './tooltip/tooltip.module'; -import { NgbTypeaheadModule } from './typeahead/typeahead.module'; -export { NgbAccordion, NgbAccordionConfig, NgbAccordionModule, NgbPanel, NgbPanelContent, NgbPanelHeader, NgbPanelTitle, NgbPanelToggle } from './accordion/accordion.module'; -export { SbCard, SbCardConfig, SbCardModule } from './card/card.module'; -export { NgbAlert, NgbAlertConfig, NgbAlertModule } from './alert/alert.module'; -export { NgbButtonLabel, NgbButtonsModule, NgbCheckBox, NgbRadio, NgbRadioGroup } from './buttons/buttons.module'; -export { NgbCarousel, NgbCarouselConfig, NgbCarouselModule, NgbSlide, NgbSlideEventDirection, NgbSlideEventSource } from './carousel/carousel.module'; -export { NgbCollapse, NgbCollapseModule } from './collapse/collapse.module'; -export { NgbCalendar, NgbCalendarGregorian, NgbCalendarHebrew, NgbCalendarIslamicCivil, NgbCalendarIslamicUmalqura, NgbCalendarPersian, NgbDate, NgbDateAdapter, NgbDateNativeAdapter, NgbDateNativeUTCAdapter, NgbDateParserFormatter, NgbDatepicker, NgbDatepickerConfig, NgbDatepickerI18n, NgbDatepickerI18nHebrew, NgbDatepickerModule, NgbInputDatepicker } from './datepicker/datepicker.module'; -export { NgbDropdown, NgbDropdownAnchor, NgbDropdownConfig, NgbDropdownItem, NgbDropdownMenu, NgbDropdownModule, NgbDropdownToggle } from './dropdown/dropdown.module'; -export { ModalDismissReasons, NgbActiveModal, NgbModal, NgbModalConfig, NgbModalModule, NgbModalRef } from './modal/modal.module'; -export { NgbPagination, NgbPaginationConfig, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationModule, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious } from './pagination/pagination.module'; -export { NgbPopover, NgbPopoverConfig, NgbPopoverModule } from './popover/popover.module'; -export { NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule } from './progressbar/progressbar.module'; -export { NgbRating, NgbRatingConfig, NgbRatingModule } from './rating/rating.module'; -export { NgbTab, NgbTabContent, NgbTabset, NgbTabsetConfig, NgbTabsetModule, NgbTabTitle } from './tabset/tabset.module'; -export { NgbTimeAdapter, NgbTimepickerI18n, NgbTimepicker, NgbTimepickerConfig, NgbTimepickerModule } from './timepicker/timepicker.module'; -export { NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule } from './toast/toast.module'; -export { NgbTooltip, NgbTooltipConfig, NgbTooltipModule } from './tooltip/tooltip.module'; -export { NgbHighlight, NgbTypeahead, NgbTypeaheadConfig, NgbTypeaheadModule } from './typeahead/typeahead.module'; -/** @type {?} */ -var NGB_MODULES = [ - SbCardModule, NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule, - NgbDropdownModule, NgbModalModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule, - NgbTabsetModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule -]; -var NgbModule = /** @class */ (function () { - function NgbModule() { - } - NgbModule.decorators = [ - { type: NgModule, args: [{ imports: NGB_MODULES, exports: NGB_MODULES },] } - ]; - return NgbModule; -}()); -export { NgbModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLF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YkNhcm91c2VsTW9kdWxlLCBOZ2JDb2xsYXBzZU1vZHVsZSwgTmdiRGF0ZXBpY2tlck1vZHVsZSxcbiAgTmdiRHJvcGRvd25Nb2R1bGUsIE5nYk1vZGFsTW9kdWxlLCBOZ2JQYWdpbmF0aW9uTW9kdWxlLCBOZ2JQb3BvdmVyTW9kdWxlLCBOZ2JQcm9ncmVzc2Jhck1vZHVsZSwgTmdiUmF0aW5nTW9kdWxlLFxuICBOZ2JUYWJzZXRNb2R1bGUsIE5nYlRpbWVwaWNrZXJNb2R1bGUsIE5nYlRvYXN0TW9kdWxlLCBOZ2JUb29sdGlwTW9kdWxlLCBOZ2JUeXBlYWhlYWRNb2R1bGVcbl07XG5cbkBOZ01vZHVsZSh7aW1wb3J0czogTkdCX01PRFVMRVMsIGV4cG9ydHM6IE5HQl9NT0RVTEVTfSlcbmV4cG9ydCBjbGFzcyBOZ2JNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/modal/modal-backdrop.js b/dist/ng-bootstrap/esm5/modal/modal-backdrop.js deleted file mode 100644 index 07c2c0b..0000000 --- a/dist/ng-bootstrap/esm5/modal/modal-backdrop.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input } from '@angular/core'; -var NgbModalBackdrop = /** @class */ (function () { - function NgbModalBackdrop() { - } - NgbModalBackdrop.decorators = [ - { type: Component, args: [{ - selector: 'ngb-modal-backdrop', - template: '', - host: { '[class]': '"modal-backdrop fade show" + (backdropClass ? " " + backdropClass : "")', 'style': 'z-index: 1050' } - }] } - ]; - NgbModalBackdrop.propDecorators = { - backdropClass: [{ type: Input }] - }; - return NgbModalBackdrop; -}()); -export { NgbModalBackdrop }; -if (false) { - /** @type {?} */ - NgbModalBackdrop.prototype.backdropClass; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZX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config.js b/dist/ng-bootstrap/esm5/modal/modal-config.js deleted file mode 100644 index 88568aa..0000000 --- a/dist/ng-bootstrap/esm5/modal/modal-config.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * Options available when opening new modal windows with `NgbModal.open()` method. - * @record - */ -export function NgbModalOptions() { } -if (false) { - /** - * `aria-labelledby` attribute value to set on the modal window. - * - * \@since 2.2.0 - * @type {?|undefined} - */ - NgbModalOptions.prototype.ariaLabelledBy; - /** - * If `true`, the backdrop element will be created for a given modal. - * - * Alternatively, specify `'static'` for a backdrop which doesn't close the modal on click. - * - * Default value is `true`. - * @type {?|undefined} - */ - NgbModalOptions.prototype.backdrop; - /** - * Callback right before the modal will be dismissed. - * - * If this function returns: - * * `false` - * * a promise resolved with `false` - * * a promise that is rejected - * - * then the modal won't be dismissed. - * @type {?|undefined} - */ - NgbModalOptions.prototype.beforeDismiss; - /** - * If `true`, the modal will be centered vertically. - * - * Default value is `false`. - * - * \@since 1.1.0 - * @type {?|undefined} - */ - NgbModalOptions.prototype.centered; - /** - * A selector specifying the element all new modal windows should be appended to. - * - * If not specified, will be `body`. - * @type {?|undefined} - */ - NgbModalOptions.prototype.container; - /** - * The `Injector` to use for modal content. - * @type {?|undefined} - */ - NgbModalOptions.prototype.injector; - /** - * If `true`, the modal will be closed when `Escape` key is pressed - * - * Default value is `true`. - * @type {?|undefined} - */ - NgbModalOptions.prototype.keyboard; - /** - * Scrollable modal content (false by default). - * - * \@since 5.0.0 - * @type {?|undefined} - */ - NgbModalOptions.prototype.scrollable; - /** - * Size of a new modal window. - * @type {?|undefined} - */ - NgbModalOptions.prototype.size; - /** - * A custom class to append to the modal window. - * @type {?|undefined} - */ - NgbModalOptions.prototype.windowClass; - /** - * A custom class to append to the modal backdrop. - * - * \@since 1.1.0 - * @type {?|undefined} - */ - NgbModalOptions.prototype.backdropClass; -} -/** - * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all modals used in the application. - * - * \@since 3.1.0 - */ -var NgbModalConfig = /** @class */ (function () { - function NgbModalConfig() { - this.backdrop = true; - this.keyboard = true; - } - NgbModalConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbModalConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbModalConfig_Factory() { return new NgbModalConfig(); }, token: NgbModalConfig, providedIn: "root" }); - return NgbModalConfig; -}()); -export { NgbModalConfig }; -if (false) { - /** @type {?} */ - NgbModalConfig.prototype.backdrop; - /** @type {?} */ - NgbModalConfig.prototype.keyboard; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibW9kYWwvbW9kYWwtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFXLE1BQU0sZUFBZSxDQUFDOzs7Ozs7QUFLbkQscUNBZ0ZDOzs7Ozs7OztJQTFFQyx5Q0FBd0I7Ozs7Ozs7OztJQVN4QixtQ0FBOEI7Ozs7Ozs7Ozs7OztJQVk5Qix3Q0FBaUQ7Ozs7Ozs7OztJQVNqRCxtQ0FBbUI7Ozs7Ozs7SUFPbkIsb0NBQW1COzs7OztJQUtuQixtQ0FBb0I7Ozs7Ozs7SUFPcEIsbUNBQW1COzs7Ozs7O0lBT25CLHFDQUFxQjs7Ozs7SUFLckIsK0JBQTBCOzs7OztJQUsxQixzQ0FBcUI7Ozs7Ozs7SUFPckIsd0NBQXVCOzs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nYk1vZGFsQ29uZmlnIGltcGxlbWVudHMgTmdiTW9kYWxPcHRpb25zIHtcbiAgYmFja2Ryb3A6IGJvb2xlYW4gfCAnc3RhdGljJyA9IHRydWU7XG4gIGtleWJvYXJkID0gdHJ1ZTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/modal/modal-dismiss-reasons.js b/dist/ng-bootstrap/esm5/modal/modal-dismiss-reasons.js deleted file mode 100644 index 38acb23..0000000 --- a/dist/ng-bootstrap/esm5/modal/modal-dismiss-reasons.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -var ModalDismissReasons = { - BACKDROP_CLICK: 0, - ESC: 1, -}; -export { ModalDismissReasons }; -ModalDismissReasons[ModalDismissReasons.BACKDROP_CLICK] = 'BACKDROP_CLICK'; -ModalDismissReasons[ModalDismissReasons.ESC] = 'ESC'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtZGlzbWlzcy1yZWFzb25zLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibW9kYWwvbW9kYWwtZGlzbWlzcy1yZWFzb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztJQUNFLGlCQUFjO0lBQ2QsTUFBRyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIE1vZGFsRGlzbWlzc1JlYXNvbnMge1xuICBCQUNLRFJPUF9DTElDSyxcbiAgRVNDXG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/modal/modal-ref.js b/dist/ng-bootstrap/esm5/modal/modal-ref.js deleted file mode 100644 index b1d2b77..0000000 --- a/dist/ng-bootstrap/esm5/modal/modal-ref.js +++ /dev/null @@ -1,277 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A reference to the currently opened (active) modal. - * - * Instances of this class can be injected into your component passed as modal content. - * So you can `.close()` or `.dismiss()` the modal window from your component. - */ -var /** - * A reference to the currently opened (active) modal. - * - * Instances of this class can be injected into your component passed as modal content. - * So you can `.close()` or `.dismiss()` the modal window from your component. - */ -NgbActiveModal = /** @class */ (function () { - function NgbActiveModal() { - } - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - */ - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - NgbActiveModal.prototype.close = /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - function (result) { }; - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - */ - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - NgbActiveModal.prototype.dismiss = /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - function (reason) { }; - return NgbActiveModal; -}()); -/** - * A reference to the currently opened (active) modal. - * - * Instances of this class can be injected into your component passed as modal content. - * So you can `.close()` or `.dismiss()` the modal window from your component. - */ -export { NgbActiveModal }; -/** - * A reference to the newly opened modal returned by the `NgbModal.open()` method. - */ -var /** - * A reference to the newly opened modal returned by the `NgbModal.open()` method. - */ -NgbModalRef = /** @class */ (function () { - function NgbModalRef(_windowCmptRef, _contentRef, _backdropCmptRef, _beforeDismiss) { - var _this = this; - this._windowCmptRef = _windowCmptRef; - this._contentRef = _contentRef; - this._backdropCmptRef = _backdropCmptRef; - this._beforeDismiss = _beforeDismiss; - _windowCmptRef.instance.dismissEvent.subscribe((/** - * @param {?} reason - * @return {?} - */ - function (reason) { _this.dismiss(reason); })); - this.result = new Promise((/** - * @param {?} resolve - * @param {?} reject - * @return {?} - */ - function (resolve, reject) { - _this._resolve = resolve; - _this._reject = reject; - })); - this.result.then(null, (/** - * @return {?} - */ - function () { })); - } - Object.defineProperty(NgbModalRef.prototype, "componentInstance", { - /** - * The instance of a component used for the modal content. - * - * When a `TemplateRef` is used as the content, will return `undefined`. - */ - get: /** - * The instance of a component used for the modal content. - * - * When a `TemplateRef` is used as the content, will return `undefined`. - * @return {?} - */ - function () { - if (this._contentRef.componentRef) { - return this._contentRef.componentRef.instance; - } - }, - enumerable: true, - configurable: true - }); - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - */ - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - NgbModalRef.prototype.close = /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - function (result) { - if (this._windowCmptRef) { - this._resolve(result); - this._removeModalElements(); - } - }; - /** - * @private - * @param {?=} reason - * @return {?} - */ - NgbModalRef.prototype._dismiss = /** - * @private - * @param {?=} reason - * @return {?} - */ - function (reason) { - this._reject(reason); - this._removeModalElements(); - }; - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - */ - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - NgbModalRef.prototype.dismiss = /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - function (reason) { - var _this = this; - if (this._windowCmptRef) { - if (!this._beforeDismiss) { - this._dismiss(reason); - } - else { - /** @type {?} */ - var dismiss = this._beforeDismiss(); - if (dismiss && dismiss.then) { - dismiss.then((/** - * @param {?} result - * @return {?} - */ - function (result) { - if (result !== false) { - _this._dismiss(reason); - } - }), (/** - * @return {?} - */ - function () { })); - } - else if (dismiss !== false) { - this._dismiss(reason); - } - } - } - }; - /** - * @private - * @return {?} - */ - NgbModalRef.prototype._removeModalElements = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var windowNativeEl = this._windowCmptRef.location.nativeElement; - windowNativeEl.parentNode.removeChild(windowNativeEl); - this._windowCmptRef.destroy(); - if (this._backdropCmptRef) { - /** @type {?} */ - var backdropNativeEl = this._backdropCmptRef.location.nativeElement; - backdropNativeEl.parentNode.removeChild(backdropNativeEl); - this._backdropCmptRef.destroy(); - } - if (this._contentRef && this._contentRef.viewRef) { - this._contentRef.viewRef.destroy(); - } - this._windowCmptRef = null; - this._backdropCmptRef = null; - this._contentRef = null; - }; - return NgbModalRef; -}()); -/** - * A reference to the newly opened modal returned by the `NgbModal.open()` method. - */ -export { NgbModalRef }; -if (false) { - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._resolve; - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._reject; - /** - * The promise that is resolved when the modal is closed and rejected when the modal is dismissed. - * @type {?} - */ - NgbModalRef.prototype.result; - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._windowCmptRef; - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._contentRef; - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._backdropCmptRef; - /** - * @type {?} - * @private - */ - NgbModalRef.prototype._beforeDismiss; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtcmVmLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibW9kYWwvbW9kYWwtcmVmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3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IH1cbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBwcml2YXRlIF9yZW1vdmVNb2RhbEVsZW1lbnRzKCkge1xuICAgIGNvbnN0IHdpbmRvd05hdGl2ZUVsID0gdGhpcy5fd2luZG93Q21wdFJlZi5sb2NhdGlvbi5uYXRpdmVFbGVtZW50O1xuICAgIHdpbmRvd05hdGl2ZUVsLnBhcmVudE5vZGUucmVtb3ZlQ2hpbGQod2luZG93TmF0aXZlRWwpO1xuICAgIHRoaXMuX3dpbmRvd0NtcHRSZWYuZGVzdHJveSgpO1xuXG4gICAgaWYgKHRoaXMuX2JhY2tkcm9wQ21wdFJlZikge1xuICAgICAgY29uc3QgYmFja2Ryb3BOYXRpdmVFbCA9IHRoaXMuX2JhY2tkcm9wQ21wdFJlZi5sb2NhdGlvbi5uYXRpdmVFbGVtZW50O1xuICAgICAgYmFja2Ryb3BOYXRpdmVFbC5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKGJhY2tkcm9wTmF0aXZlRWwpO1xuICAgICAgdGhpcy5fYmFja2Ryb3BDbXB0UmVmLmRlc3Ryb3koKTtcbiAgICB9XG5cbiAgICBpZiAodGhpcy5fY29udGVudFJlZiAmJiB0aGlzLl9jb250ZW50UmVmLnZpZXdSZWYpIHtcbiAgICAgIHRoaXMuX2NvbnRlbnRSZWYudmlld1JlZi5kZXN0cm95KCk7XG4gICAgfVxuXG4gICAgdGhpcy5fd2luZG93Q21wdFJlZiA9IG51bGw7XG4gICAgdGhpcy5fYmFja2Ryb3BDbXB0UmVmID0gbnVsbDtcbiAgICB0aGlzLl9jb250ZW50UmVmID0gbnVsbDtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/modal/modal-stack.js b/dist/ng-bootstrap/esm5/modal/modal-stack.js deleted file mode 100644 index ee9d1dd..0000000 --- a/dist/ng-bootstrap/esm5/modal/modal-stack.js +++ /dev/null @@ -1,514 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { DOCUMENT } from '@angular/common'; -import { ApplicationRef, Inject, Injectable, Injector, RendererFactory2, TemplateRef, } from '@angular/core'; -import { Subject } from 'rxjs'; -import { ngbFocusTrap } from '../util/focus-trap'; -import { ContentRef } from '../util/popup'; -import { ScrollBar } from '../util/scrollbar'; -import { isDefined, isString } from '../util/util'; -import { NgbModalBackdrop } from './modal-backdrop'; -import { NgbActiveModal, NgbModalRef } from './modal-ref'; -import { NgbModalWindow } from './modal-window'; -import * as i0 from "@angular/core"; -import * as i1 from "@angular/common"; -import * as i2 from "../util/scrollbar"; -var NgbModalStack = /** @class */ (function () { - function NgbModalStack(_applicationRef, _injector, _document, _scrollBar, _rendererFactory) { - var _this = this; - this._applicationRef = _applicationRef; - this._injector = _injector; - this._document = _document; - this._scrollBar = _scrollBar; - this._rendererFactory = _rendererFactory; - this._activeWindowCmptHasChanged = new Subject(); - this._ariaHiddenValues = new Map(); - this._backdropAttributes = ['backdropClass']; - this._modalRefs = []; - this._windowAttributes = ['ariaLabelledBy', 'backdrop', 'centered', 'keyboard', 'scrollable', 'size', 'windowClass']; - this._windowCmpts = []; - // Trap focus on active WindowCmpt - this._activeWindowCmptHasChanged.subscribe((/** - * @return {?} - */ - function () { - if (_this._windowCmpts.length) { - /** @type {?} */ - var activeWindowCmpt = _this._windowCmpts[_this._windowCmpts.length - 1]; - ngbFocusTrap(activeWindowCmpt.location.nativeElement, _this._activeWindowCmptHasChanged); - _this._revertAriaHidden(); - _this._setAriaHidden(activeWindowCmpt.location.nativeElement); - } - })); - } - /** - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype.open = /** - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} options - * @return {?} - */ - function (moduleCFR, contentInjector, content, options) { - var _this = this; - /** @type {?} */ - var containerEl = isDefined(options.container) ? this._document.querySelector(options.container) : this._document.body; - /** @type {?} */ - var renderer = this._rendererFactory.createRenderer(null, null); - /** @type {?} */ - var revertPaddingForScrollBar = this._scrollBar.compensate(); - /** @type {?} */ - var removeBodyClass = (/** - * @return {?} - */ - function () { - if (!_this._modalRefs.length) { - renderer.removeClass(_this._document.body, 'modal-open'); - _this._revertAriaHidden(); - } - }); - if (!containerEl) { - throw new Error("The specified modal container \"" + (options.container || 'body') + "\" was not found in the DOM."); - } - /** @type {?} */ - var activeModal = new NgbActiveModal(); - /** @type {?} */ - var contentRef = this._getContentRef(moduleCFR, options.injector || contentInjector, content, activeModal, options); - /** @type {?} */ - var backdropCmptRef = options.backdrop !== false ? this._attachBackdrop(moduleCFR, containerEl) : null; - /** @type {?} */ - var windowCmptRef = this._attachWindowComponent(moduleCFR, containerEl, contentRef); - /** @type {?} */ - var ngbModalRef = new NgbModalRef(windowCmptRef, contentRef, backdropCmptRef, options.beforeDismiss); - this._registerModalRef(ngbModalRef); - this._registerWindowCmpt(windowCmptRef); - ngbModalRef.result.then(revertPaddingForScrollBar, revertPaddingForScrollBar); - ngbModalRef.result.then(removeBodyClass, removeBodyClass); - activeModal.close = (/** - * @param {?} result - * @return {?} - */ - function (result) { ngbModalRef.close(result); }); - activeModal.dismiss = (/** - * @param {?} reason - * @return {?} - */ - function (reason) { ngbModalRef.dismiss(reason); }); - this._applyWindowOptions(windowCmptRef.instance, options); - if (this._modalRefs.length === 1) { - renderer.addClass(this._document.body, 'modal-open'); - } - if (backdropCmptRef && backdropCmptRef.instance) { - this._applyBackdropOptions(backdropCmptRef.instance, options); - } - return ngbModalRef; - }; - /** - * @param {?=} reason - * @return {?} - */ - NgbModalStack.prototype.dismissAll = /** - * @param {?=} reason - * @return {?} - */ - function (reason) { this._modalRefs.forEach((/** - * @param {?} ngbModalRef - * @return {?} - */ - function (ngbModalRef) { return ngbModalRef.dismiss(reason); })); }; - /** - * @return {?} - */ - NgbModalStack.prototype.hasOpenModals = /** - * @return {?} - */ - function () { return this._modalRefs.length > 0; }; - /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @return {?} - */ - NgbModalStack.prototype._attachBackdrop = /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @return {?} - */ - function (moduleCFR, containerEl) { - /** @type {?} */ - var backdropFactory = moduleCFR.resolveComponentFactory(NgbModalBackdrop); - /** @type {?} */ - var backdropCmptRef = backdropFactory.create(this._injector); - this._applicationRef.attachView(backdropCmptRef.hostView); - containerEl.appendChild(backdropCmptRef.location.nativeElement); - return backdropCmptRef; - }; - /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @param {?} contentRef - * @return {?} - */ - NgbModalStack.prototype._attachWindowComponent = /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @param {?} contentRef - * @return {?} - */ - function (moduleCFR, containerEl, contentRef) { - /** @type {?} */ - var windowFactory = moduleCFR.resolveComponentFactory(NgbModalWindow); - /** @type {?} */ - var windowCmptRef = windowFactory.create(this._injector, contentRef.nodes); - this._applicationRef.attachView(windowCmptRef.hostView); - containerEl.appendChild(windowCmptRef.location.nativeElement); - return windowCmptRef; - }; - /** - * @private - * @param {?} windowInstance - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._applyWindowOptions = /** - * @private - * @param {?} windowInstance - * @param {?} options - * @return {?} - */ - function (windowInstance, options) { - this._windowAttributes.forEach((/** - * @param {?} optionName - * @return {?} - */ - function (optionName) { - if (isDefined(options[optionName])) { - windowInstance[optionName] = options[optionName]; - } - })); - }; - /** - * @private - * @param {?} backdropInstance - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._applyBackdropOptions = /** - * @private - * @param {?} backdropInstance - * @param {?} options - * @return {?} - */ - function (backdropInstance, options) { - this._backdropAttributes.forEach((/** - * @param {?} optionName - * @return {?} - */ - function (optionName) { - if (isDefined(options[optionName])) { - backdropInstance[optionName] = options[optionName]; - } - })); - }; - /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} activeModal - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._getContentRef = /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} activeModal - * @param {?} options - * @return {?} - */ - function (moduleCFR, contentInjector, content, activeModal, options) { - if (!content) { - return new ContentRef([]); - } - else if (content instanceof TemplateRef) { - return this._createFromTemplateRef(content, activeModal); - } - else if (isString(content)) { - return this._createFromString(content); - } - else { - return this._createFromComponent(moduleCFR, contentInjector, content, activeModal, options); - } - }; - /** - * @private - * @param {?} content - * @param {?} activeModal - * @return {?} - */ - NgbModalStack.prototype._createFromTemplateRef = /** - * @private - * @param {?} content - * @param {?} activeModal - * @return {?} - */ - function (content, activeModal) { - /** @type {?} */ - var context = { - $implicit: activeModal, - close: /** - * @param {?} result - * @return {?} - */ - function (result) { activeModal.close(result); }, - dismiss: /** - * @param {?} reason - * @return {?} - */ - function (reason) { activeModal.dismiss(reason); } - }; - /** @type {?} */ - var viewRef = content.createEmbeddedView(context); - this._applicationRef.attachView(viewRef); - return new ContentRef([viewRef.rootNodes], viewRef); - }; - /** - * @private - * @param {?} content - * @return {?} - */ - NgbModalStack.prototype._createFromString = /** - * @private - * @param {?} content - * @return {?} - */ - function (content) { - /** @type {?} */ - var component = this._document.createTextNode("" + content); - return new ContentRef([[component]]); - }; - /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} context - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._createFromComponent = /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} context - * @param {?} options - * @return {?} - */ - function (moduleCFR, contentInjector, content, context, options) { - /** @type {?} */ - var contentCmptFactory = moduleCFR.resolveComponentFactory(content); - /** @type {?} */ - var modalContentInjector = Injector.create({ providers: [{ provide: NgbActiveModal, useValue: context }], parent: contentInjector }); - /** @type {?} */ - var componentRef = contentCmptFactory.create(modalContentInjector); - /** @type {?} */ - var componentNativeEl = componentRef.location.nativeElement; - if (options.scrollable) { - ((/** @type {?} */ (componentNativeEl))).classList.add('component-host-scrollable'); - } - this._applicationRef.attachView(componentRef.hostView); - // FIXME: we should here get rid of the component nativeElement - // and use `[Array.from(componentNativeEl.childNodes)]` instead and remove the above CSS class. - return new ContentRef([[componentNativeEl]], componentRef.hostView, componentRef); - }; - /** - * @private - * @param {?} element - * @return {?} - */ - NgbModalStack.prototype._setAriaHidden = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { - var _this = this; - /** @type {?} */ - var parent = element.parentElement; - if (parent && element !== this._document.body) { - Array.from(parent.children).forEach((/** - * @param {?} sibling - * @return {?} - */ - function (sibling) { - if (sibling !== element && sibling.nodeName !== 'SCRIPT') { - _this._ariaHiddenValues.set(sibling, sibling.getAttribute('aria-hidden')); - sibling.setAttribute('aria-hidden', 'true'); - } - })); - this._setAriaHidden(parent); - } - }; - /** - * @private - * @return {?} - */ - NgbModalStack.prototype._revertAriaHidden = /** - * @private - * @return {?} - */ - function () { - this._ariaHiddenValues.forEach((/** - * @param {?} value - * @param {?} element - * @return {?} - */ - function (value, element) { - if (value) { - element.setAttribute('aria-hidden', value); - } - else { - element.removeAttribute('aria-hidden'); - } - })); - this._ariaHiddenValues.clear(); - }; - /** - * @private - * @param {?} ngbModalRef - * @return {?} - */ - NgbModalStack.prototype._registerModalRef = /** - * @private - * @param {?} ngbModalRef - * @return {?} - */ - function (ngbModalRef) { - var _this = this; - /** @type {?} */ - var unregisterModalRef = (/** - * @return {?} - */ - function () { - /** @type {?} */ - var index = _this._modalRefs.indexOf(ngbModalRef); - if (index > -1) { - _this._modalRefs.splice(index, 1); - } - }); - this._modalRefs.push(ngbModalRef); - ngbModalRef.result.then(unregisterModalRef, unregisterModalRef); - }; - /** - * @private - * @param {?} ngbWindowCmpt - * @return {?} - */ - NgbModalStack.prototype._registerWindowCmpt = /** - * @private - * @param {?} ngbWindowCmpt - * @return {?} - */ - function (ngbWindowCmpt) { - var _this = this; - this._windowCmpts.push(ngbWindowCmpt); - this._activeWindowCmptHasChanged.next(); - ngbWindowCmpt.onDestroy((/** - * @return {?} - */ - function () { - /** @type {?} */ - var index = _this._windowCmpts.indexOf(ngbWindowCmpt); - if (index > -1) { - _this._windowCmpts.splice(index, 1); - _this._activeWindowCmptHasChanged.next(); - } - })); - }; - NgbModalStack.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - NgbModalStack.ctorParameters = function () { return [ - { type: ApplicationRef }, - { type: Injector }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ScrollBar }, - { type: RendererFactory2 } - ]; }; - /** @nocollapse */ NgbModalStack.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbModalStack_Factory() { return new NgbModalStack(i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(i2.ScrollBar), i0.ɵɵinject(i0.RendererFactory2)); }, token: NgbModalStack, providedIn: "root" }); - return NgbModalStack; -}()); -export { NgbModalStack }; -if (false) { - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._activeWindowCmptHasChanged; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._ariaHiddenValues; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._backdropAttributes; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._modalRefs; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._windowAttributes; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._windowCmpts; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._applicationRef; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._injector; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._document; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._scrollBar; - /** - * @type {?} - * @private - */ - NgbModalStack.prototype._rendererFactory; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtc3RhY2suanMiLCJzb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LCAxKTtcbiAgICAgICAgdGhpcy5fYWN0aXZlV2luZG93Q21wdEhhc0NoYW5nZWQubmV4dCgpO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/modal/modal-window.js b/dist/ng-bootstrap/esm5/modal/modal-window.js deleted file mode 100644 index 93095aa..0000000 --- a/dist/ng-bootstrap/esm5/modal/modal-window.js +++ /dev/null @@ -1,166 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { DOCUMENT } from '@angular/common'; -import { Component, ElementRef, EventEmitter, Inject, Input, Output, ViewEncapsulation, } from '@angular/core'; -import { getFocusableBoundaryElements } from '../util/focus-trap'; -import { ModalDismissReasons } from './modal-dismiss-reasons'; -var NgbModalWindow = /** @class */ (function () { - function NgbModalWindow(_document, _elRef) { - this._document = _document; - this._elRef = _elRef; - this.backdrop = true; - this.keyboard = true; - this.dismissEvent = new EventEmitter(); - } - /** - * @param {?} $event - * @return {?} - */ - NgbModalWindow.prototype.backdropClick = /** - * @param {?} $event - * @return {?} - */ - function ($event) { - if (this.backdrop === true && this._elRef.nativeElement === $event.target) { - this.dismiss(ModalDismissReasons.BACKDROP_CLICK); - } - }; - /** - * @param {?} $event - * @return {?} - */ - NgbModalWindow.prototype.escKey = /** - * @param {?} $event - * @return {?} - */ - function ($event) { - if (this.keyboard && !$event.defaultPrevented) { - this.dismiss(ModalDismissReasons.ESC); - } - }; - /** - * @param {?} reason - * @return {?} - */ - NgbModalWindow.prototype.dismiss = /** - * @param {?} reason - * @return {?} - */ - function (reason) { this.dismissEvent.emit(reason); }; - /** - * @return {?} - */ - NgbModalWindow.prototype.ngOnInit = /** - * @return {?} - */ - function () { this._elWithFocus = this._document.activeElement; }; - /** - * @return {?} - */ - NgbModalWindow.prototype.ngAfterViewInit = /** - * @return {?} - */ - function () { - if (!this._elRef.nativeElement.contains(document.activeElement)) { - /** @type {?} */ - var autoFocusable = (/** @type {?} */ (this._elRef.nativeElement.querySelector("[ngbAutofocus]"))); - /** @type {?} */ - var firstFocusable = getFocusableBoundaryElements(this._elRef.nativeElement)[0]; - /** @type {?} */ - var elementToFocus = autoFocusable || firstFocusable || this._elRef.nativeElement; - elementToFocus.focus(); - } - }; - /** - * @return {?} - */ - NgbModalWindow.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - /** @type {?} */ - var body = this._document.body; - /** @type {?} */ - var elWithFocus = this._elWithFocus; - /** @type {?} */ - var elementToFocus; - if (elWithFocus && elWithFocus['focus'] && body.contains(elWithFocus)) { - elementToFocus = elWithFocus; - } - else { - elementToFocus = body; - } - elementToFocus.focus(); - this._elWithFocus = null; - }; - NgbModalWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-modal-window', - host: { - '[class]': '"modal fade show d-block" + (windowClass ? " " + windowClass : "")', - 'role': 'dialog', - 'tabindex': '-1', - '(keyup.esc)': 'escKey($event)', - '(click)': 'backdropClick($event)', - '[attr.aria-modal]': 'true', - '[attr.aria-labelledby]': 'ariaLabelledBy', - }, - template: "\n
\n
\n
\n ", - encapsulation: ViewEncapsulation.None, - styles: ["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"] - }] } - ]; - /** @nocollapse */ - NgbModalWindow.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ElementRef } - ]; }; - NgbModalWindow.propDecorators = { - ariaLabelledBy: [{ type: Input }], - backdrop: [{ type: Input }], - centered: [{ type: Input }], - keyboard: [{ type: Input }], - scrollable: [{ type: Input }], - size: [{ type: Input }], - windowClass: [{ type: Input }], - dismissEvent: [{ type: Output, args: ['dismiss',] }] - }; - return NgbModalWindow; -}()); -export { NgbModalWindow }; -if (false) { - /** - * @type {?} - * @private - */ - NgbModalWindow.prototype._elWithFocus; - /** @type {?} */ - NgbModalWindow.prototype.ariaLabelledBy; - /** @type {?} */ - NgbModalWindow.prototype.backdrop; - /** @type {?} */ - NgbModalWindow.prototype.centered; - /** @type {?} */ - NgbModalWindow.prototype.keyboard; - /** @type {?} */ - NgbModalWindow.prototype.scrollable; - /** @type {?} */ - NgbModalWindow.prototype.size; - /** @type {?} */ - NgbModalWindow.prototype.windowClass; - /** @type {?} */ - NgbModalWindow.prototype.dismissEvent; - /** - * @type {?} - * @private - */ - NgbModalWindow.prototype._document; - /** - * @type {?} - * @private - */ - NgbModalWindow.prototype._elRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtd2luZG93LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibW9kYWwvbW9kYWwtd2luZG93LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUVMLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEVBR0wsTUFBTSxFQUNOLGlCQUFpQixHQUNsQixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUMsNEJBQTRCLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUNoRSxPQUFPLEVBQUMsbUJBQW1CLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUU1RDtJQWtDRSx3QkFBc0MsU0FBYyxFQUFVLE1BQStCO1FBQXZELGNBQVMsR0FBVCxTQUFTLENBQUs7UUFBVSxXQUFNLEdBQU4sTUFBTSxDQUF5QjtRQVRwRixhQUFRLEdBQXFCLElBQUksQ0FBQztRQUVsQyxhQUFRLEdBQUcsSUFBSSxDQUFDO1FBS04saUJBQVksR0FBRyxJQUFJ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Y3VzKCk7XG4gICAgdGhpcy5fZWxXaXRoRm9jdXMgPSBudWxsO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/modal/modal.js b/dist/ng-bootstrap/esm5/modal/modal.js deleted file mode 100644 index 42e950b..0000000 --- a/dist/ng-bootstrap/esm5/modal/modal.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable, Injector, ComponentFactoryResolver } from '@angular/core'; -import { NgbModalConfig } from './modal-config'; -import { NgbModalStack } from './modal-stack'; -import * as i0 from "@angular/core"; -import * as i1 from "./modal-stack"; -import * as i2 from "./modal-config"; -/** - * A service for opening modal windows. - * - * Creating a modal is straightforward: create a component or a template and pass it as an argument to - * the `.open()` method. - */ -var NgbModal = /** @class */ (function () { - function NgbModal(_moduleCFR, _injector, _modalStack, _config) { - this._moduleCFR = _moduleCFR; - this._injector = _injector; - this._modalStack = _modalStack; - this._config = _config; - } - /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - */ - /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - * @param {?} content - * @param {?=} options - * @return {?} - */ - NgbModal.prototype.open = /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - * @param {?} content - * @param {?=} options - * @return {?} - */ - function (content, options) { - if (options === void 0) { options = {}; } - /** @type {?} */ - var combinedOptions = Object.assign({}, this._config, options); - return this._modalStack.open(this._moduleCFR, this._injector, content, combinedOptions); - }; - /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * @since 3.1.0 - */ - /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * \@since 3.1.0 - * @param {?=} reason - * @return {?} - */ - NgbModal.prototype.dismissAll = /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * \@since 3.1.0 - * @param {?=} reason - * @return {?} - */ - function (reason) { this._modalStack.dismissAll(reason); }; - /** - * Indicates if there are currently any open modal windows in the application. - * - * @since 3.3.0 - */ - /** - * Indicates if there are currently any open modal windows in the application. - * - * \@since 3.3.0 - * @return {?} - */ - NgbModal.prototype.hasOpenModals = /** - * Indicates if there are currently any open modal windows in the application. - * - * \@since 3.3.0 - * @return {?} - */ - function () { return this._modalStack.hasOpenModals(); }; - NgbModal.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - NgbModal.ctorParameters = function () { return [ - { type: ComponentFactoryResolver }, - { type: Injector }, - { type: NgbModalStack }, - { type: NgbModalConfig } - ]; }; - /** @nocollapse */ NgbModal.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbModal_Factory() { return new NgbModal(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1.NgbModalStack), i0.ɵɵinject(i2.NgbModalConfig)); }, token: NgbModal, providedIn: "root" }); - return NgbModal; -}()); -export { NgbModal }; -if (false) { - /** - * @type {?} - * @private - */ - NgbModal.prototype._moduleCFR; - /** - * @type {?} - * @private - */ - NgbModal.prototype._injector; - /** - * @type {?} - * @private - */ - NgbModal.prototype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BvbmVudHMvbW9kYWwvYXBpI05nYk1vZGFsT3B0aW9ucykgZm9yIHRoZSBsaXN0IG9mIHN1cHBvcnRlZCBvcHRpb25zLlxuICAgKi9cbiAgb3Blbihjb250ZW50OiBhbnksIG9wdGlvbnM6IE5nYk1vZGFsT3B0aW9ucyA9IHt9KTogTmdiTW9kYWxSZWYge1xuICAgIGNvbnN0IGNvbWJpbmVkT3B0aW9ucyA9IE9iamVjdC5hc3NpZ24oe30sIHRoaXMuX2NvbmZpZywgb3B0aW9ucyk7XG4gICAgcmV0dXJuIHRoaXMuX21vZGFsU3RhY2sub3Blbih0aGlzLl9tb2R1bGVDRlIsIHRoaXMuX2luamVjdG9yLCBjb250ZW50LCBjb21iaW5lZE9wdGlvbnMpO1xuICB9XG5cbiAgLyoqXG4gICAqIERpc21pc3NlcyBhbGwgY3VycmVudGx5IGRpc3BsYXllZCBtb2RhbCB3aW5kb3dzIHdpdGggdGhlIHN1cHBsaWVkIHJlYXNvbi5cbiAgICpcbiAgICogQHNpbmNlIDMuMS4wXG4gICAqL1xuICBkaXNtaXNzQWxsKHJlYXNvbj86IGFueSkgeyB0aGlzLl9tb2RhbFN0YWNrLmRpc21pc3NBbGwocmVhc29uKTsgfVxuXG4gIC8qKlxuICAgKiBJbmRpY2F0ZXMgaWYgdGhlcmUgYXJlIGN1cnJlbnRseSBhbnkgb3BlbiBtb2RhbCB3aW5kb3dzIGluIHRoZSBhcHBsaWNhdGlvbi5cbiAgICpcbiAgICogQHNpbmNlIDMuMy4wXG4gICAqL1xuICBoYXNPcGVuTW9kYWxzKCk6IGJvb2xlYW4geyByZXR1cm4gdGhpcy5fbW9kYWxTdGFjay5oYXNPcGVuTW9kYWxzKCk7IH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/modal/modal.module.js b/dist/ng-bootstrap/esm5/modal/modal.module.js deleted file mode 100644 index 19c6a20..0000000 --- a/dist/ng-bootstrap/esm5/modal/modal.module.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbModal } from './modal'; -import { NgbModalBackdrop } from './modal-backdrop'; -import { NgbModalWindow } from './modal-window'; -export { NgbModal } from './modal'; -export { NgbModalConfig } from './modal-config'; -export { NgbModalRef, NgbActiveModal } from './modal-ref'; -export { ModalDismissReasons } from './modal-dismiss-reasons'; -var NgbModalModule = /** @class */ (function () { - function NgbModalModule() { - } - NgbModalModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbModalBackdrop, NgbModalWindow], - entryComponents: [NgbModalBackdrop, NgbModalWindow], - providers: [NgbModal] - },] } - ]; - return NgbModalModule; -}()); -export { NgbModalModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibW9kYWwvbW9kYWwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXZDLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxTQUFTLENBQUM7QUFDakMsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBRTlDLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxTQUFTLENBQUM7QUFDakMsT0FBTyxFQUFDLGNBQWMsRUFBa0IsTUFBTSxnQkFBZ0IsQ0FBQztBQUMvRCxPQUFPLEVBQUMsV0FBVyxFQUFFLGNBQWMsRUFBQyxNQUFNLGF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wcm92aWRlcnM6IFtOZ2JNb2RhbF1cbn0pXG5leHBvcnQgY2xhc3MgTmdiTW9kYWxNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/ng-bootstrap.js b/dist/ng-bootstrap/esm5/ng-bootstrap.js deleted file mode 100644 index cf55f84..0000000 --- a/dist/ng-bootstrap/esm5/ng-bootstrap.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Generated bundle index. Do not edit. - */ -export { NgbAccordion, NgbAccordionConfig, NgbAccordionModule, NgbPanel, NgbPanelContent, NgbPanelHeader, NgbPanelTitle, NgbPanelToggle, SbCard, SbCardConfig, SbCardModule, NgbAlert, NgbAlertConfig, NgbAlertModule, NgbButtonLabel, NgbButtonsModule, NgbCheckBox, NgbRadio, NgbRadioGroup, NgbCarousel, NgbCarouselConfig, NgbCarouselModule, NgbSlide, NgbSlideEventDirection, NgbSlideEventSource, NgbCollapse, NgbCollapseModule, NgbCalendar, NgbCalendarGregorian, NgbCalendarHebrew, NgbCalendarIslamicCivil, NgbCalendarIslamicUmalqura, NgbCalendarPersian, NgbDate, NgbDateAdapter, NgbDateNativeAdapter, NgbDateNativeUTCAdapter, NgbDateParserFormatter, NgbDatepicker, NgbDatepickerConfig, NgbDatepickerI18n, NgbDatepickerI18nHebrew, NgbDatepickerModule, NgbInputDatepicker, NgbDropdown, NgbDropdownAnchor, NgbDropdownConfig, NgbDropdownItem, NgbDropdownMenu, NgbDropdownModule, NgbDropdownToggle, ModalDismissReasons, NgbActiveModal, NgbModal, NgbModalConfig, NgbModalModule, NgbModalRef, NgbPagination, NgbPaginationConfig, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationModule, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious, NgbPopover, NgbPopoverConfig, NgbPopoverModule, NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule, NgbRating, NgbRatingConfig, NgbRatingModule, NgbTab, NgbTabContent, NgbTabset, NgbTabsetConfig, NgbTabsetModule, NgbTabTitle, NgbTimeAdapter, NgbTimepickerI18n, NgbTimepicker, NgbTimepickerConfig, NgbTimepickerModule, NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule, NgbTooltip, NgbTooltipConfig, NgbTooltipModule, NgbHighlight, NgbTypeahead, NgbTypeaheadConfig, NgbTypeaheadModule, NgbModule } from './index'; -export { NGB_CAROUSEL_DIRECTIVES as ɵa } from './carousel/carousel'; -export { NGB_DATEPICKER_DATE_ADAPTER_FACTORY as ɵi, NgbDateStructAdapter as ɵj } from './datepicker/adapters/ngb-date-adapter'; -export { NgbDatepickerDayView as ɵd } from './datepicker/datepicker-day-view'; -export { NGB_DATEPICKER_18N_FACTORY as ɵg, NgbDatepickerI18nDefault as ɵh } from './datepicker/datepicker-i18n'; -export { NgbDatepickerKeyMapService as ɵv } from './datepicker/datepicker-keymap-service'; -export { NgbDatepickerMonthView as ɵc } from './datepicker/datepicker-month-view'; -export { NgbDatepickerNavigation as ɵe } from './datepicker/datepicker-navigation'; -export { NgbDatepickerNavigationSelect as ɵf } from './datepicker/datepicker-navigation-select'; -export { NgbDatepickerService as ɵu } from './datepicker/datepicker-service'; -export { NgbCalendarHijri as ɵbd } from './datepicker/hijri/ngb-calendar-hijri'; -export { NGB_DATEPICKER_CALENDAR_FACTORY as ɵb } from './datepicker/ngb-calendar'; -export { NGB_DATEPICKER_PARSER_FORMATTER_FACTORY as ɵk, NgbDateISOParserFormatter as ɵl } from './datepicker/ngb-date-parser-formatter'; -export { NgbNavbar as ɵm } from './dropdown/dropdown'; -export { NgbModalBackdrop as ɵw } from './modal/modal-backdrop'; -export { NgbModalStack as ɵy } from './modal/modal-stack'; -export { NgbModalWindow as ɵx } from './modal/modal-window'; -export { NgbPopoverWindow as ɵn } from './popover/popover'; -export { NGB_DATEPICKER_TIME_ADAPTER_FACTORY as ɵo, NgbTimeStructAdapter as ɵp } from './timepicker/ngb-time-adapter'; -export { NGB_TIMEPICKER_I18N_FACTORY as ɵq, NgbTimepickerI18nDefault as ɵr } from './timepicker/timepicker-i18n'; -export { NgbTooltipWindow as ɵs } from './tooltip/tooltip'; -export { NgbTypeaheadWindow as ɵt } from './typeahead/typeahead-window'; -export { ARIA_LIVE_DELAY as ɵba, ARIA_LIVE_DELAY_FACTORY as ɵbb, Live as ɵbc } from './util/accessibility/live'; -export { ContentRef as ɵbe } from './util/popup'; -export { ScrollBar as ɵz } from './util/scrollbar'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctYm9vdHN0cmFwLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsibmctYm9vdHN0cmFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSxtcERBQWMsU0FBUyxDQUFDO0FBRXhCLE9BQU8sRUFBQyx1QkFBdUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUNsRSxPQUFPLEVBQUMsbUNBQW1DLElBQUksRUFBRSxFQUFDLG9CQUFvQixJQUFJLEVBQUUsRUFBQyxNQUFNLHdDQUF3QyxDQUFDO0FBQzVILE9BQU8sRUFBQyxvQkFBb0IsSUFBSSxFQUFFLEVBQUMsTUFBTSxrQ0FBa0MsQ0FBQztBQUM1RSxPQUFPLEVBQUMsMEJBQTBCLElBQUksRUFBRSxFQUFDLHdCQUF3QixJQUFJLEVBQUUsRUFBQyxNQUFNLDhCQUE4QixDQUFDO0FBQzdHLE9BQU8sRUFBQywwQkFBMEIsSUFBSSxFQUFFLEVBQUMsTUFBTSx3Q0FBd0MsQ0FBQztBQUN4RixPQUFPLEVBQUMsc0JBQXNCLElBQUksRUFBRSxFQUFDLE1BQU0sb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IGZyb20gJy4vdXRpbC9zY3JvbGxiYXInOyJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/pagination/pagination-config.js b/dist/ng-bootstrap/esm5/pagination/pagination-config.js deleted file mode 100644 index 97b83f6..0000000 --- a/dist/ng-bootstrap/esm5/pagination/pagination-config.js +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the paginations used in the application. - */ -var NgbPaginationConfig = /** @class */ (function () { - function NgbPaginationConfig() { - this.disabled = false; - this.boundaryLinks = false; - this.directionLinks = true; - this.ellipses = true; - this.maxSize = 0; - this.pageSize = 10; - this.rotate = false; - } - NgbPaginationConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbPaginationConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbPaginationConfig_Factory() { return new NgbPaginationConfig(); }, token: NgbPaginationConfig, providedIn: "root" }); - return NgbPaginationConfig; -}()); -export { NgbPaginationConfig }; -if (false) { - /** @type {?} */ - NgbPaginationConfig.prototype.disabled; - /** @type {?} */ - NgbPaginationConfig.prototype.boundaryLinks; - /** @type {?} */ - NgbPaginationConfig.prototype.directionLinks; - /** @type {?} */ - NgbPaginationConfig.prototype.ellipses; - /** @type {?} */ - NgbPaginationConfig.prototype.maxSize; - /** @type {?} */ - NgbPaginationConfig.prototype.pageSize; - /** @type {?} */ - NgbPaginationConfig.prototype.rotate; - /** @type {?} */ - NgbPaginationConfig.prototype.size; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi1jb25maWcuanMiLCJzb3VyY2V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bnQsIGFuZCBjdXN0b21pemUgdGhlIHZhbHVlcyBvZiBpdHMgcHJvcGVydGllcyBpblxuICogb3JkZXIgdG8gcHJvdmlkZSBkZWZhdWx0IHZhbHVlcyBmb3IgYWxsIHRoZSBwYWdpbmF0aW9ucyB1c2VkIGluIHRoZSBhcHBsaWNhdGlvbi5cbiAqL1xuQEluamVjdGFibGUoe3Byb3ZpZGVkSW46ICdyb290J30pXG5leHBvcnQgY2xhc3MgTmdiUGFnaW5hdGlvbkNvbmZpZyB7XG4gIGRpc2FibGVkID0gZmFsc2U7XG4gIGJvdW5kYXJ5TGlua3MgPSBmYWxzZTtcbiAgZGlyZWN0aW9uTGlua3MgPSB0cnVlO1xuICBlbGxpcHNlcyA9IHRydWU7XG4gIG1heFNpemUgPSAwO1xuICBwYWdlU2l6ZSA9IDEwO1xuICByb3RhdGUgPSBmYWxzZTtcbiAgc2l6ZTogJ3NtJyB8ICdsZyc7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/pagination/pagination.js b/dist/ng-bootstrap/esm5/pagination/pagination.js deleted file mode 100644 index 0845a7d..0000000 --- a/dist/ng-bootstrap/esm5/pagination/pagination.js +++ /dev/null @@ -1,561 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { Component, ContentChild, Directive, EventEmitter, Input, Output, ChangeDetectionStrategy, TemplateRef } from '@angular/core'; -import { getValueInRange, isNumber } from '../util/util'; -import { NgbPaginationConfig } from './pagination-config'; -/** - * A context for the - * * `NgbPaginationFirst` - * * `NgbPaginationPrevious` - * * `NgbPaginationNext` - * * `NgbPaginationLast` - * * `NgbPaginationEllipsis` - * - * link templates in case you want to override one. - * - * \@since 4.1.0 - * @record - */ -export function NgbPaginationLinkContext() { } -if (false) { - /** - * The currently selected page number - * @type {?} - */ - NgbPaginationLinkContext.prototype.currentPage; - /** - * If `true`, the current link is disabled - * @type {?} - */ - NgbPaginationLinkContext.prototype.disabled; -} -/** - * A context for the `NgbPaginationNumber` link template in case you want to override one. - * - * Extends `NgbPaginationLinkContext`. - * - * \@since 4.1.0 - * @record - */ -export function NgbPaginationNumberContext() { } -if (false) { - /** - * The page number, displayed by the current page link. - * @type {?} - */ - NgbPaginationNumberContext.prototype.$implicit; -} -/** - * A directive to match the 'ellipsis' link template - * - * \@since 4.1.0 - */ -var NgbPaginationEllipsis = /** @class */ (function () { - function NgbPaginationEllipsis(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationEllipsis.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationEllipsis]' },] } - ]; - /** @nocollapse */ - NgbPaginationEllipsis.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationEllipsis; -}()); -export { NgbPaginationEllipsis }; -if (false) { - /** @type {?} */ - NgbPaginationEllipsis.prototype.templateRef; -} -/** - * A directive to match the 'first' link template - * - * \@since 4.1.0 - */ -var NgbPaginationFirst = /** @class */ (function () { - function NgbPaginationFirst(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationFirst.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationFirst]' },] } - ]; - /** @nocollapse */ - NgbPaginationFirst.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationFirst; -}()); -export { NgbPaginationFirst }; -if (false) { - /** @type {?} */ - NgbPaginationFirst.prototype.templateRef; -} -/** - * A directive to match the 'last' link template - * - * \@since 4.1.0 - */ -var NgbPaginationLast = /** @class */ (function () { - function NgbPaginationLast(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationLast.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationLast]' },] } - ]; - /** @nocollapse */ - NgbPaginationLast.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationLast; -}()); -export { NgbPaginationLast }; -if (false) { - /** @type {?} */ - NgbPaginationLast.prototype.templateRef; -} -/** - * A directive to match the 'next' link template - * - * \@since 4.1.0 - */ -var NgbPaginationNext = /** @class */ (function () { - function NgbPaginationNext(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationNext.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationNext]' },] } - ]; - /** @nocollapse */ - NgbPaginationNext.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationNext; -}()); -export { NgbPaginationNext }; -if (false) { - /** @type {?} */ - NgbPaginationNext.prototype.templateRef; -} -/** - * A directive to match the page 'number' link template - * - * \@since 4.1.0 - */ -var NgbPaginationNumber = /** @class */ (function () { - function NgbPaginationNumber(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationNumber.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationNumber]' },] } - ]; - /** @nocollapse */ - NgbPaginationNumber.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationNumber; -}()); -export { NgbPaginationNumber }; -if (false) { - /** @type {?} */ - NgbPaginationNumber.prototype.templateRef; -} -/** - * A directive to match the 'previous' link template - * - * \@since 4.1.0 - */ -var NgbPaginationPrevious = /** @class */ (function () { - function NgbPaginationPrevious(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationPrevious.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationPrevious]' },] } - ]; - /** @nocollapse */ - NgbPaginationPrevious.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationPrevious; -}()); -export { NgbPaginationPrevious }; -if (false) { - /** @type {?} */ - NgbPaginationPrevious.prototype.templateRef; -} -/** - * A component that displays page numbers and allows to customize them in several ways. - */ -var NgbPagination = /** @class */ (function () { - function NgbPagination(config) { - this.pageCount = 0; - this.pages = []; - /** - * The current page. - * - * Page numbers start with `1`. - */ - this.page = 1; - /** - * An event fired when the page is changed. Will fire only if collection size is set and all values are valid. - * - * Event payload is the number of the newly selected page. - * - * Page numbers start with `1`. - */ - this.pageChange = new EventEmitter(true); - this.disabled = config.disabled; - this.boundaryLinks = config.boundaryLinks; - this.directionLinks = config.directionLinks; - this.ellipses = config.ellipses; - this.maxSize = config.maxSize; - this.pageSize = config.pageSize; - this.rotate = config.rotate; - this.size = config.size; - } - /** - * @return {?} - */ - NgbPagination.prototype.hasPrevious = /** - * @return {?} - */ - function () { return this.page > 1; }; - /** - * @return {?} - */ - NgbPagination.prototype.hasNext = /** - * @return {?} - */ - function () { return this.page < this.pageCount; }; - /** - * @return {?} - */ - NgbPagination.prototype.nextDisabled = /** - * @return {?} - */ - function () { return !this.hasNext() || this.disabled; }; - /** - * @return {?} - */ - NgbPagination.prototype.previousDisabled = /** - * @return {?} - */ - function () { return !this.hasPrevious() || this.disabled; }; - /** - * @param {?} pageNumber - * @return {?} - */ - NgbPagination.prototype.selectPage = /** - * @param {?} pageNumber - * @return {?} - */ - function (pageNumber) { this._updatePages(pageNumber); }; - /** - * @param {?} changes - * @return {?} - */ - NgbPagination.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { this._updatePages(this.page); }; - /** - * @param {?} pageNumber - * @return {?} - */ - NgbPagination.prototype.isEllipsis = /** - * @param {?} pageNumber - * @return {?} - */ - function (pageNumber) { return pageNumber === -1; }; - /** - * Appends ellipses and first/last page number to the displayed pages - */ - /** - * Appends ellipses and first/last page number to the displayed pages - * @private - * @param {?} start - * @param {?} end - * @return {?} - */ - NgbPagination.prototype._applyEllipses = /** - * Appends ellipses and first/last page number to the displayed pages - * @private - * @param {?} start - * @param {?} end - * @return {?} - */ - function (start, end) { - if (this.ellipses) { - if (start > 0) { - if (start > 1) { - this.pages.unshift(-1); - } - this.pages.unshift(1); - } - if (end < this.pageCount) { - if (end < (this.pageCount - 1)) { - this.pages.push(-1); - } - this.pages.push(this.pageCount); - } - } - }; - /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - */ - /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - * @private - * @return {?} - */ - NgbPagination.prototype._applyRotation = /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var start = 0; - /** @type {?} */ - var end = this.pageCount; - /** @type {?} */ - var leftOffset = Math.floor(this.maxSize / 2); - /** @type {?} */ - var rightOffset = this.maxSize % 2 === 0 ? leftOffset - 1 : leftOffset; - if (this.page <= leftOffset) { - // very beginning, no rotation -> [0..maxSize] - end = this.maxSize; - } - else if (this.pageCount - this.page < leftOffset) { - // very end, no rotation -> [len-maxSize..len] - start = this.pageCount - this.maxSize; - } - else { - // rotate - start = this.page - leftOffset - 1; - end = this.page + rightOffset; - } - return [start, end]; - }; - /** - * Paginates page numbers based on maxSize items per page. - */ - /** - * Paginates page numbers based on maxSize items per page. - * @private - * @return {?} - */ - NgbPagination.prototype._applyPagination = /** - * Paginates page numbers based on maxSize items per page. - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var page = Math.ceil(this.page / this.maxSize) - 1; - /** @type {?} */ - var start = page * this.maxSize; - /** @type {?} */ - var end = start + this.maxSize; - return [start, end]; - }; - /** - * @private - * @param {?} newPageNo - * @return {?} - */ - NgbPagination.prototype._setPageInRange = /** - * @private - * @param {?} newPageNo - * @return {?} - */ - function (newPageNo) { - /** @type {?} */ - var prevPageNo = this.page; - this.page = getValueInRange(newPageNo, this.pageCount, 1); - if (this.page !== prevPageNo && isNumber(this.collectionSize)) { - this.pageChange.emit(this.page); - } - }; - /** - * @private - * @param {?} newPage - * @return {?} - */ - NgbPagination.prototype._updatePages = /** - * @private - * @param {?} newPage - * @return {?} - */ - function (newPage) { - var _a, _b; - this.pageCount = Math.ceil(this.collectionSize / this.pageSize); - if (!isNumber(this.pageCount)) { - this.pageCount = 0; - } - // fill-in model needed to render pages - this.pages.length = 0; - for (var i = 1; i <= this.pageCount; i++) { - this.pages.push(i); - } - // set page within 1..max range - this._setPageInRange(newPage); - // apply maxSize if necessary - if (this.maxSize > 0 && this.pageCount > this.maxSize) { - /** @type {?} */ - var start = 0; - /** @type {?} */ - var end = this.pageCount; - // either paginating or rotating page numbers - if (this.rotate) { - _a = tslib_1.__read(this._applyRotation(), 2), start = _a[0], end = _a[1]; - } - else { - _b = tslib_1.__read(this._applyPagination(), 2), start = _b[0], end = _b[1]; - } - this.pages = this.pages.slice(start, end); - // adding ellipses - this._applyEllipses(start, end); - } - }; - NgbPagination.decorators = [ - { type: Component, args: [{ - selector: 'ngb-pagination', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { 'role': 'navigation' }, - template: "\n ««\n «\n »\n »»\n ...\n \n {{ page }}\n (current)\n \n \n " - }] } - ]; - /** @nocollapse */ - NgbPagination.ctorParameters = function () { return [ - { type: NgbPaginationConfig } - ]; }; - NgbPagination.propDecorators = { - tplEllipsis: [{ type: ContentChild, args: [NgbPaginationEllipsis, { static: false },] }], - tplFirst: [{ type: ContentChild, args: [NgbPaginationFirst, { static: false },] }], - tplLast: [{ type: ContentChild, args: [NgbPaginationLast, { static: false },] }], - tplNext: [{ type: ContentChild, args: [NgbPaginationNext, { static: false },] }], - tplNumber: [{ type: ContentChild, args: [NgbPaginationNumber, { static: false },] }], - tplPrevious: [{ type: ContentChild, args: [NgbPaginationPrevious, { static: false },] }], - disabled: [{ type: Input }], - boundaryLinks: [{ type: Input }], - directionLinks: [{ type: Input }], - ellipses: [{ type: Input }], - rotate: [{ type: Input }], - collectionSize: [{ type: Input }], - maxSize: [{ type: Input }], - page: [{ type: Input }], - pageSize: [{ type: Input }], - pageChange: [{ type: Output }], - size: [{ type: Input }] - }; - return NgbPagination; -}()); -export { NgbPagination }; -if (false) { - /** @type {?} */ - NgbPagination.prototype.pageCount; - /** @type {?} */ - NgbPagination.prototype.pages; - /** @type {?} */ - NgbPagination.prototype.tplEllipsis; - /** @type {?} */ - NgbPagination.prototype.tplFirst; - /** @type {?} */ - NgbPagination.prototype.tplLast; - /** @type {?} */ - NgbPagination.prototype.tplNext; - /** @type {?} */ - NgbPagination.prototype.tplNumber; - /** @type {?} */ - NgbPagination.prototype.tplPrevious; - /** - * If `true`, pagination links will be disabled. - * @type {?} - */ - NgbPagination.prototype.disabled; - /** - * If `true`, the "First" and "Last" page links are shown. - * @type {?} - */ - NgbPagination.prototype.boundaryLinks; - /** - * If `true`, the "Next" and "Previous" page links are shown. - * @type {?} - */ - NgbPagination.prototype.directionLinks; - /** - * If `true`, the ellipsis symbols and first/last page numbers will be shown when `maxSize` > number of pages. - * @type {?} - */ - NgbPagination.prototype.ellipses; - /** - * Whether to rotate pages when `maxSize` > number of pages. - * - * The current page always stays in the middle if `true`. - * @type {?} - */ - NgbPagination.prototype.rotate; - /** - * The number of items in your paginated collection. - * - * Note, that this is not the number of pages. Page numbers are calculated dynamically based on - * `collectionSize` and `pageSize`. Ex. if you have 100 items in your collection and displaying 20 items per page, - * you'll end up with 5 pages. - * @type {?} - */ - NgbPagination.prototype.collectionSize; - /** - * The maximum number of pages to display. - * @type {?} - */ - NgbPagination.prototype.maxSize; - /** - * The current page. - * - * Page numbers start with `1`. - * @type {?} - */ - NgbPagination.prototype.page; - /** - * The number of items per page. - * @type {?} - */ - NgbPagination.prototype.pageSize; - /** - * An event fired when the page is changed. Will fire only if collection size is set and all values are valid. - * - * Event payload is the number of the newly selected page. - * - * Page numbers start with `1`. - * @type {?} - */ - NgbPagination.prototype.pageChange; - /** - * The pagination display size. - * - * Bootstrap currently supports small and large sizes. - * @type {?} - */ - NgbPagination.prototype.size; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL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ist/ng-bootstrap/esm5/pagination/pagination.module.js b/dist/ng-bootstrap/esm5/pagination/pagination.module.js deleted file mode 100644 index 3c20639..0000000 --- a/dist/ng-bootstrap/esm5/pagination/pagination.module.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious } from './pagination'; -export { NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious } from './pagination'; -export { NgbPaginationConfig } from './pagination-config'; -/** @type {?} */ -var DIRECTIVES = [ - NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, - NgbPaginationPrevious -]; -var NgbPaginationModule = /** @class */ (function () { - function NgbPaginationModule() { - } - NgbPaginationModule.decorators = [ - { type: NgModule, args: [{ declarations: DIRECTIVES, exports: DIRECTIVES, imports: [CommonModule] },] } - ]; - return NgbPaginationModule; -}()); -export { NgbPaginationModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdGlvbi5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJwYWdpbmF0aW9uL3BhZ2luYXRpb24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0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hdGlvbk51bWJlcixcbiAgTmdiUGFnaW5hdGlvblByZXZpb3VzXG59IGZyb20gJy4vcGFnaW5hdGlvbic7XG5cbmV4cG9ydCB7XG4gIE5nYlBhZ2luYXRpb24sXG4gIE5nYlBhZ2luYXRpb25FbGxpcHNpcyxcbiAgTmdiUGFnaW5hdGlvbkZpcnN0LFxuICBOZ2JQYWdpbmF0aW9uTGFzdCxcbiAgTmdiUGFnaW5hdGlvbk5leHQsXG4gIE5nYlBhZ2luYXRpb25OdW1iZXIsXG4gIE5nYlBhZ2luYXRpb25QcmV2aW91c1xufSBmcm9tICcuL3BhZ2luYXRpb24nO1xuZXhwb3J0IHtOZ2JQYWdpbmF0aW9uQ29uZmlnfSBmcm9tICcuL3BhZ2luYXRpb24tY29uZmlnJztcblxuY29uc3QgRElSRUNUSVZFUyA9IFtcbiAgTmdiUGFnaW5hdGlvbiwgTmdiUGFnaW5hdGlvbkVsbGlwc2lzLCBOZ2JQYWdpbmF0aW9uRmlyc3QsIE5nYlBhZ2luYXRpb25MYXN0LCBOZ2JQYWdpbmF0aW9uTmV4dCwgTmdiUGFnaW5hdGlvbk51bWJlcixcbiAgTmdiUGFnaW5hdGlvblByZXZpb3VzXG5dO1xuXG5ATmdNb2R1bGUoe2RlY2xhcmF0aW9uczogRElSRUNUSVZFUywgZXhwb3J0czogRElSRUNUSVZFUywgaW1wb3J0czogW0NvbW1vbk1vZHVsZV19KVxuZXhwb3J0IGNsYXNzIE5nYlBhZ2luYXRpb25Nb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/popover/popover-config.js b/dist/ng-bootstrap/esm5/popover/popover-config.js deleted file mode 100644 index f704331..0000000 --- a/dist/ng-bootstrap/esm5/popover/popover-config.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the popovers used in the application. - */ -var NgbPopoverConfig = /** @class */ (function () { - function NgbPopoverConfig() { - this.autoClose = true; - this.placement = 'auto'; - this.triggers = 'click'; - this.disablePopover = false; - this.openDelay = 0; - this.closeDelay = 0; - } - NgbPopoverConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbPopoverConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbPopoverConfig_Factory() { return new NgbPopoverConfig(); }, token: NgbPopoverConfig, providedIn: "root" }); - return NgbPopoverConfig; -}()); -export { NgbPopoverConfig }; -if (false) { - /** @type {?} */ - NgbPopoverConfig.prototype.autoClose; - /** @type {?} */ - NgbPopoverConfig.prototype.placement; - /** @type {?} */ - NgbPopoverConfig.prototype.triggers; - /** @type {?} */ - NgbPopoverConfig.prototype.container; - /** @type {?} */ - NgbPopoverConfig.prototype.disablePopover; - /** @type {?} */ - NgbPopoverConfig.prototype.popoverClass; - /** @type {?} */ - NgbPopoverConfig.prototype.openDelay; - /** @type {?} */ - NgbPopoverConfig.prototype.closeDelay; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJwb3BvdmVyL3BvcG92ZXItY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QztJQUFBO1FBRUUsY0FBUyxHQUFtQyxJQUFJLENBQUM7UUFDakQsY0FBUyxHQUFtQixNQUFNLENBQUM7UUFDbkM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XV0b0Nsb3NlOiBib29sZWFuIHwgJ2luc2lkZScgfCAnb3V0c2lkZScgPSB0cnVlO1xuICBwbGFjZW1lbnQ6IFBsYWNlbWVudEFycmF5ID0gJ2F1dG8nO1xuICB0cmlnZ2VycyA9ICdjbGljayc7XG4gIGNvbnRhaW5lcjogc3RyaW5nO1xuICBkaXNhYmxlUG9wb3ZlciA9IGZhbHNlO1xuICBwb3BvdmVyQ2xhc3M6IHN0cmluZztcbiAgb3BlbkRlbGF5ID0gMDtcbiAgY2xvc2VEZWxheSA9IDA7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/popover/popover.js b/dist/ng-bootstrap/esm5/popover/popover.js deleted file mode 100644 index e1025dc..0000000 --- a/dist/ng-bootstrap/esm5/popover/popover.js +++ /dev/null @@ -1,446 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Directive, Input, Output, EventEmitter, ChangeDetectionStrategy, Inject, Injector, Renderer2, ElementRef, TemplateRef, ViewContainerRef, ComponentFactoryResolver, NgZone, ViewEncapsulation, ChangeDetectorRef, ApplicationRef } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { listenToTriggers } from '../util/triggers'; -import { ngbAutoClose } from '../util/autoclose'; -import { positionElements } from '../util/positioning'; -import { PopupService } from '../util/popup'; -import { NgbPopoverConfig } from './popover-config'; -/** @type {?} */ -var nextId = 0; -var NgbPopoverWindow = /** @class */ (function () { - function NgbPopoverWindow() { - } - /** - * @return {?} - */ - NgbPopoverWindow.prototype.isTitleTemplate = /** - * @return {?} - */ - function () { return this.title instanceof TemplateRef; }; - NgbPopoverWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-popover-window', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { '[class]': '"popover" + (popoverClass ? " " + popoverClass : "")', 'role': 'tooltip', '[id]': 'id' }, - template: "\n
\n

\n {{title}}\n \n

\n
", - styles: ["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"] - }] } - ]; - NgbPopoverWindow.propDecorators = { - title: [{ type: Input }], - id: [{ type: Input }], - popoverClass: [{ type: Input }], - context: [{ type: Input }] - }; - return NgbPopoverWindow; -}()); -export { NgbPopoverWindow }; -if (false) { - /** @type {?} */ - NgbPopoverWindow.prototype.title; - /** @type {?} */ - NgbPopoverWindow.prototype.id; - /** @type {?} */ - NgbPopoverWindow.prototype.popoverClass; - /** @type {?} */ - NgbPopoverWindow.prototype.context; -} -/** - * A lightweight and extensible directive for fancy popover creation. - */ -var NgbPopover = /** @class */ (function () { - function NgbPopover(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, _applicationRef) { - var _this = this; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._ngZone = _ngZone; - this._document = _document; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - /** - * An event emitted when the popover is shown. Contains no payload. - */ - this.shown = new EventEmitter(); - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - this.hidden = new EventEmitter(); - this._ngbPopoverWindowId = "ngb-popover-" + nextId++; - this.autoClose = config.autoClose; - this.placement = config.placement; - this.triggers = config.triggers; - this.container = config.container; - this.disablePopover = config.disablePopover; - this.popoverClass = config.popoverClass; - this.openDelay = config.openDelay; - this.closeDelay = config.closeDelay; - this._popupService = new PopupService(NgbPopoverWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { - if (_this._windowRef) { - positionElements(_this._elementRef.nativeElement, _this._windowRef.location.nativeElement, _this.placement, _this.container === 'body', 'bs-popover'); - } - })); - } - /** - * @private - * @return {?} - */ - NgbPopover.prototype._isDisabled = /** - * @private - * @return {?} - */ - function () { - if (this.disablePopover) { - return true; - } - if (!this.ngbPopover && !this.popoverTitle) { - return true; - } - return false; - }; - /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - */ - /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - * @param {?=} context - * @return {?} - */ - NgbPopover.prototype.open = /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - * @param {?=} context - * @return {?} - */ - function (context) { - var _this = this; - if (!this._windowRef && !this._isDisabled()) { - this._windowRef = this._popupService.open(this.ngbPopover, context); - this._windowRef.instance.title = this.popoverTitle; - this._windowRef.instance.context = context; - this._windowRef.instance.popoverClass = this.popoverClass; - this._windowRef.instance.id = this._ngbPopoverWindowId; - this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbPopoverWindowId); - if (this.container === 'body') { - this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - // We need to detect changes, because we don't know where .open() might be called from. - // Ex. opening popover from one of lifecycle hooks that run after the CD - // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception - this._windowRef.changeDetectorRef.detectChanges(); - // We need to mark for check, because popover won't work inside the OnPush component. - // Ex. when we use expression like `{{ popover.isOpen() : 'opened' : 'closed' }}` - // inside the template of an OnPush component and we change the popover from - // open -> closed, the expression in question won't be updated unless we explicitly - // mark the parent component to be checked. - this._windowRef.changeDetectorRef.markForCheck(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this.hidden, [this._windowRef.location.nativeElement]); - this.shown.emit(); - } - }; - /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - */ - /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - NgbPopover.prototype.close = /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - function () { - if (this._windowRef) { - this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby'); - this._popupService.close(); - this._windowRef = null; - this.hidden.emit(); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - */ - /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - NgbPopover.prototype.toggle = /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - function () { - if (this._windowRef) { - this.close(); - } - else { - this.open(); - } - }; - /** - * Returns `true`, if the popover is currently shown. - */ - /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - NgbPopover.prototype.isOpen = /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - function () { return this._windowRef != null; }; - /** - * @return {?} - */ - NgbPopover.prototype.ngOnInit = /** - * @return {?} - */ - function () { - this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay); - }; - /** - * @param {?} changes - * @return {?} - */ - NgbPopover.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - // close popover if title and content become empty, or disablePopover set to true - if ((changes['ngbPopover'] || changes['popoverTitle'] || changes['disablePopover']) && this._isDisabled()) { - this.close(); - } - }; - /** - * @return {?} - */ - NgbPopover.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this.close(); - // This check is needed as it might happen that ngOnDestroy is called before ngOnInit - // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199 - if (this._unregisterListenersFn) { - this._unregisterListenersFn(); - } - this._zoneSubscription.unsubscribe(); - }; - NgbPopover.decorators = [ - { type: Directive, args: [{ selector: '[ngbPopover]', exportAs: 'ngbPopover' },] } - ]; - /** @nocollapse */ - NgbPopover.ctorParameters = function () { return [ - { type: ElementRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: ViewContainerRef }, - { type: NgbPopoverConfig }, - { type: NgZone }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } - ]; }; - NgbPopover.propDecorators = { - autoClose: [{ type: Input }], - ngbPopover: [{ type: Input }], - popoverTitle: [{ type: Input }], - placement: [{ type: Input }], - triggers: [{ type: Input }], - container: [{ type: Input }], - disablePopover: [{ type: Input }], - popoverClass: [{ type: Input }], - openDelay: [{ type: Input }], - closeDelay: [{ type: Input }], - shown: [{ type: Output }], - hidden: [{ type: Output }] - }; - return NgbPopover; -}()); -export { NgbPopover }; -if (false) { - /** - * Indicates whether the popover should be closed on `Escape` key and inside/outside clicks: - * - * * `true` - closes on both outside and inside clicks as well as `Escape` presses - * * `false` - disables the autoClose feature (NB: triggers still apply) - * * `"inside"` - closes on inside clicks as well as Escape presses - * * `"outside"` - closes on outside clicks (sometimes also achievable through triggers) - * as well as `Escape` presses - * - * \@since 3.0.0 - * @type {?} - */ - NgbPopover.prototype.autoClose; - /** - * The string content or a `TemplateRef` for the content to be displayed in the popover. - * - * If the title and the content are empty, the popover won't open. - * @type {?} - */ - NgbPopover.prototype.ngbPopover; - /** - * The title of the popover. - * - * If the title and the content are empty, the popover won't open. - * @type {?} - */ - NgbPopover.prototype.popoverTitle; - /** - * The preferred placement of the popover. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"auto"` (same as the sequence above). - * - * Please see the [positioning overview](#/positioning) for more details. - * @type {?} - */ - NgbPopover.prototype.placement; - /** - * Specifies events that should trigger the tooltip. - * - * Supports a space separated list of event names. - * For more details see the [triggers demo](#/components/popover/examples#triggers). - * @type {?} - */ - NgbPopover.prototype.triggers; - /** - * A selector specifying the element the popover should be appended to. - * - * Currently only supports `body`. - * @type {?} - */ - NgbPopover.prototype.container; - /** - * If `true`, popover is disabled and won't be displayed. - * - * \@since 1.1.0 - * @type {?} - */ - NgbPopover.prototype.disablePopover; - /** - * An optional class applied to the popover window element. - * - * \@since 2.2.0 - * @type {?} - */ - NgbPopover.prototype.popoverClass; - /** - * The opening delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * \@since 4.1.0 - * @type {?} - */ - NgbPopover.prototype.openDelay; - /** - * The closing delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * \@since 4.1.0 - * @type {?} - */ - NgbPopover.prototype.closeDelay; - /** - * An event emitted when the popover is shown. Contains no payload. - * @type {?} - */ - NgbPopover.prototype.shown; - /** - * An event emitted when the popover is hidden. Contains no payload. - * @type {?} - */ - NgbPopover.prototype.hidden; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._ngbPopoverWindowId; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._popupService; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._windowRef; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._unregisterListenersFn; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._zoneSubscription; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._elementRef; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._document; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._changeDetector; - /** - * @type {?} - * @private - */ - NgbPopover.prototype._applicationRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInBvcG92ZXIvcG9wb3Zlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxTQUFTLEVBQ1QsS0FBSyxFQUNMLE1BQU0sRUFDTixZQUFZLEVBQ1osdUJBQXVCLEVBSXZCLE1BQU0sRUFDTixRQUFRLEVBQ1IsU0FBUyxFQUVULFVBQVUsRUFDVixXQUFXLEVBQ1gsZ0JBQWdCLEVBQ2hCLHdCQUF3QixFQUN4QixNQUFNLEVBRU4saUJBQWlCLEVBQ2pCLGlCQUFpQixFQUNqQixjQUFjLEVBQ2YsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBRXpDLE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBQ2xELE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQztBQUMvQyxPQUFPLEVBQUMsZ0JBQWdCLEVBQWlCLE1BQU0scUJBQXFCLENBQUM7QUFDckUsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSxrQkFBa0IsQ0FBQzs7SUFFOUMsTUFBTSxHQUFHLENBQUM7QUFFZDtJQUFBO0lBcUJBLENBQUM7Ozs7SUFEQywwQ0FBZTs7O0lBQWYsY0FBb0IsT0FBTyxJQUFJLENBQUMsS0FBSyxZQUFZLFd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h0aGlzKSwgdGhpcy5vcGVuLmJpbmQodGhpcyksXG4gICAgICAgIHRoaXMuY2xvc2UuYmluZCh0aGlzKSwgK3RoaXMub3BlbkRlbGF5LCArdGhpcy5jbG9zZURlbGF5KTtcbiAgfVxuXG4gIG5nT25DaGFuZ2VzKGNoYW5nZXM6IFNpbXBsZUNoYW5nZXMpIHtcbiAgICAvLyBjbG9zZSBwb3BvdmVyIGlmIHRpdGxlIGFuZCBjb250ZW50IGJlY29tZSBlbXB0eSwgb3IgZGlzYWJsZVBvcG92ZXIgc2V0IHRvIHRydWVcbiAgICBpZiAoKGNoYW5nZXNbJ25nYlBvcG92ZXInXSB8fCBjaGFuZ2VzWydwb3BvdmVyVGl0bGUnXSB8fCBjaGFuZ2VzWydkaXNhYmxlUG9wb3ZlciddKSAmJiB0aGlzLl9pc0Rpc2FibGVkKCkpIHtcbiAgICAgIHRoaXMuY2xvc2UoKTtcbiAgICB9XG4gIH1cblxuICBuZ09uRGVzdHJveSgpIHtcbiAgICB0aGlzLmNsb3NlKCk7XG4gICAgLy8gVGhpcyBjaGVjayBpcyBuZWVkZWQgYXMgaXQgbWlnaHQgaGFwcGVuIHRoYXQgbmdPbkRlc3Ryb3kgaXMgY2FsbGVkIGJlZm9yZSBuZ09uSW5pdFxuICAgIC8vIHVuZGVyIGNlcnRhaW4gY29uZGl0aW9ucywgc2VlOiBodHRwczovL2dpdGh1Yi5jb20vbmctYm9vdHN0cmFwL25nLWJvb3RzdHJhcC9pc3N1ZXMvMjE5OVxuICAgIGlmICh0aGlzLl91bnJlZ2lzdGVyTGlzdGVuZXJzRm4pIHtcbiAgICAgIHRoaXMuX3VucmVnaXN0ZXJMaXN0ZW5lcnNGbigpO1xuICAgIH1cbiAgICB0aGlzLl96b25lU3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/popover/popover.module.js b/dist/ng-bootstrap/esm5/popover/popover.module.js deleted file mode 100644 index 604f131..0000000 --- a/dist/ng-bootstrap/esm5/popover/popover.module.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbPopover, NgbPopoverWindow } from './popover'; -import { CommonModule } from '@angular/common'; -export { NgbPopover } from './popover'; -export { NgbPopoverConfig } from './popover-config'; -var NgbPopoverModule = /** @class */ (function () { - function NgbPopoverModule() { - } - NgbPopoverModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbPopover, NgbPopoverWindow], - exports: [NgbPopover], - imports: [CommonModule], - entryComponents: [NgbPopoverWindow] - },] } - ]; - return NgbPopoverModule; -}()); -export { NgbPopoverModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJwb3BvdmVyL3BvcG92ZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXZDLE9BQU8sRUFBQyxVQUFVLEVBQUUsZ0JBQWdCLEVBQUMsTUFBTSxXQUFXLENBQUM7QUFDdkQsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBRTdDLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxXQUFXLENBQUM7QUFDckMsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFHbEQ7SUFBQTtJQU9BLENBQUM7O2dCQVBBLFFBQVEsU0FBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyxVQUFVLEVBQUUsZ0JBQWdCLENBQUM7b0JBQzVDLE9BQU8sRUFBRSxDQUFDLFVBQVUsQ0FBQztvQkFDckIsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDO29CQUN2QixlQUFlLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQztpQkFDcEM7O0lBRUQsdUJBQUM7Q0FBQSxBQVBELElBT0M7U0FEWSxnQkFBZ0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHtOZ2JQb3BvdmVyLCBOZ2JQb3BvdmVyV2luZG93fSBmcm9tICcuL3BvcG92ZXInO1xuaW1wb3J0IHtDb21tb25Nb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cbmV4cG9ydCB7TmdiUG9wb3Zlcn0gZnJvbSAnLi9wb3BvdmVyJztcbmV4cG9ydCB7TmdiUG9wb3ZlckNvbmZpZ30gZnJvbSAnLi9wb3BvdmVyLWNvbmZpZyc7XG5leHBvcnQge1BsYWNlbWVudH0gZnJvbSAnLi4vdXRpbC9wb3NpdGlvbmluZyc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW05nYlBvcG92ZXIsIE5nYlBvcG92ZXJXaW5kb3ddLFxuICBleHBvcnRzOiBbTmdiUG9wb3Zlcl0sXG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBlbnRyeUNvbXBvbmVudHM6IFtOZ2JQb3BvdmVyV2luZG93XVxufSlcbmV4cG9ydCBjbGFzcyBOZ2JQb3BvdmVyTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/progressbar/progressbar-config.js b/dist/ng-bootstrap/esm5/progressbar/progressbar-config.js deleted file mode 100644 index b72150c..0000000 --- a/dist/ng-bootstrap/esm5/progressbar/progressbar-config.js +++ /dev/null @@ -1,41 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the progress bars used in the application. - */ -var NgbProgressbarConfig = /** @class */ (function () { - function NgbProgressbarConfig() { - this.max = 100; - this.animated = false; - this.striped = false; - this.showValue = false; - } - NgbProgressbarConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbProgressbarConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbProgressbarConfig_Factory() { return new NgbProgressbarConfig(); }, token: NgbProgressbarConfig, providedIn: "root" }); - return NgbProgressbarConfig; -}()); -export { NgbProgressbarConfig }; -if (false) { - /** @type {?} */ - NgbProgressbarConfig.prototype.max; - /** @type {?} */ - NgbProgressbarConfig.prototype.animated; - /** @type {?} */ - NgbProgressbarConfig.prototype.striped; - /** @type {?} */ - NgbProgressbarConfig.prototype.type; - /** @type {?} */ - NgbProgressbarConfig.prototype.showValue; - /** @type {?} */ - NgbProgressbarConfig.prototype.height; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3NiYXItY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsicHJvZ3Jlc3NiYXIvcHJvZ3Jlc3NiYXItY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVF6QztJQUFBO1FBRUUsUUFBRyxHQUFHLEdBQUcsQ0FBQztRQUNWLGF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RyaW5nO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/progressbar/progressbar.js b/dist/ng-bootstrap/esm5/progressbar/progressbar.js deleted file mode 100644 index 83d7b47..0000000 --- a/dist/ng-bootstrap/esm5/progressbar/progressbar.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, ChangeDetectionStrategy } from '@angular/core'; -import { getValueInRange } from '../util/util'; -import { NgbProgressbarConfig } from './progressbar-config'; -/** - * A directive that provides feedback on the progress of a workflow or an action. - */ -var NgbProgressbar = /** @class */ (function () { - function NgbProgressbar(config) { - /** - * The current value for the progress bar. - * - * Should be in the `[0, max]` range. - */ - this.value = 0; - this.max = config.max; - this.animated = config.animated; - this.striped = config.striped; - this.type = config.type; - this.showValue = config.showValue; - this.height = config.height; - } - /** - * @return {?} - */ - NgbProgressbar.prototype.getValue = /** - * @return {?} - */ - function () { return getValueInRange(this.value, this.max); }; - /** - * @return {?} - */ - NgbProgressbar.prototype.getPercentValue = /** - * @return {?} - */ - function () { return 100 * this.getValue() / this.max; }; - NgbProgressbar.decorators = [ - { type: Component, args: [{ - selector: 'ngb-progressbar', - changeDetection: ChangeDetectionStrategy.OnPush, - template: "\n
\n
\n {{getPercentValue()}}%\n
\n
\n " - }] } - ]; - /** @nocollapse */ - NgbProgressbar.ctorParameters = function () { return [ - { type: NgbProgressbarConfig } - ]; }; - NgbProgressbar.propDecorators = { - max: [{ type: Input }], - animated: [{ type: Input }], - striped: [{ type: Input }], - showValue: [{ type: Input }], - type: [{ type: Input }], - value: [{ type: Input }], - height: [{ type: Input }] - }; - return NgbProgressbar; -}()); -export { NgbProgressbar }; -if (false) { - /** - * The maximal value to be displayed in the progressbar. - * @type {?} - */ - NgbProgressbar.prototype.max; - /** - * If `true`, the stripes on the progressbar are animated. - * - * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`. - * @type {?} - */ - NgbProgressbar.prototype.animated; - /** - * If `true`, the progress bars will be displayed as striped. - * @type {?} - */ - NgbProgressbar.prototype.striped; - /** - * If `true`, the current percentage will be shown in the `xx%` format. - * @type {?} - */ - NgbProgressbar.prototype.showValue; - /** - * The type of the progress bar. - * - * Currently Bootstrap supports `"success"`, `"info"`, `"warning"` or `"danger"`. - * @type {?} - */ - NgbProgressbar.prototype.type; - /** - * The current value for the progress bar. - * - * Should be in the `[0, max]` range. - * @type {?} - */ - NgbProgressbar.prototype.value; - /** - * THe height of the progress bar. - * - * Accepts any valid CSS height values, ex. `"2rem"` - * @type {?} - */ - NgbProgressbar.prototype.height; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3NiYXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJwcm9ncmVzc2Jhci9wcm9ncmVzc2Jhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUUsdUJBQXVCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDeEUsT0FBTyxFQUFDLGVBQWUsRUFBQyxNQUFNLGNBQWMsQ0FBQztBQUM3QyxPQUFPLEVBQUMsb0JBQW9CLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQzs7OztBQUsxRDtJQXlERSx3QkFBWSxNQUE0Qjs7Ozs7O1FBVC9CLFVBQUssR0FBRyxDQUFDLENBQUM7UUFVakIsSUFBSSxDQUFDLEdBQUcsR0FBRyxNQUFNLENBQUMsR0FBRyxDQUFDO1FBQ3RCLElBQUksQ0FBQyxRQUFRLEdBQUcsTUFBTSxDQUFDLFFBQVEsQ0FBQztRQUNoQyxJQUFJLENBQUMsT0FBTyxHQUFHLE1BQU0sQ0FBQy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0cmluZztcblxuICAvKipcbiAgICogVGhlIGN1cnJlbnQgdmFsdWUgZm9yIHRoZSBwcm9ncmVzcyBiYXIuXG4gICAqXG4gICAqIFNob3VsZCBiZSBpbiB0aGUgYFswLCBtYXhdYCByYW5nZS5cbiAgICovXG4gIEBJbnB1dCgpIHZhbHVlID0gMDtcblxuICAvKipcbiAgICogVEhlIGhlaWdodCBvZiB0aGUgcHJvZ3Jlc3MgYmFyLlxuICAgKlxuICAgKiBBY2NlcHRzIGFueSB2YWxpZCBDU1MgaGVpZ2h0IHZhbHVlcywgZXguIGBcIjJyZW1cImBcbiAgICovXG4gIEBJbnB1dCgpIGhlaWdodDogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKGNvbmZpZzogTmdiUHJvZ3Jlc3NiYXJDb25maWcpIHtcbiAgICB0aGlzLm1heCA9IGNvbmZpZy5tYXg7XG4gICAgdGhpcy5hbmltYXRlZCA9IGNvbmZpZy5hbmltYXRlZDtcbiAgICB0aGlzLnN0cmlwZWQgPSBjb25maWcuc3RyaXBlZDtcbiAgICB0aGlzLnR5cGUgPSBjb25maWcudHlwZTtcbiAgICB0aGlzLnNob3dWYWx1ZSA9IGNvbmZpZy5zaG93VmFsdWU7XG4gICAgdGhpcy5oZWlnaHQgPSBjb25maWcuaGVpZ2h0O1xuICB9XG5cbiAgZ2V0VmFsdWUoKSB7IHJldHVybiBnZXRWYWx1ZUluUmFuZ2UodGhpcy52YWx1ZSwgdGhpcy5tYXgpOyB9XG5cbiAgZ2V0UGVyY2VudFZhbHVlKCkgeyByZXR1cm4gMTAwICogdGhpcy5nZXRWYWx1ZSgpIC8gdGhpcy5tYXg7IH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/progressbar/progressbar.module.js b/dist/ng-bootstrap/esm5/progressbar/progressbar.module.js deleted file mode 100644 index f6fdf0e..0000000 --- a/dist/ng-bootstrap/esm5/progressbar/progressbar.module.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbProgressbar } from './progressbar'; -export { NgbProgressbar } from './progressbar'; -export { NgbProgressbarConfig } from './progressbar-config'; -var NgbProgressbarModule = /** @class */ (function () { - function NgbProgressbarModule() { - } - NgbProgressbarModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbProgressbar], exports: [NgbProgressbar], imports: [CommonModule] },] } - ]; - return NgbProgressbarModule; -}()); -export { NgbProgressbarModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3NiYXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsicHJvZ3Jlc3NiYXIvcHJvZ3Jlc3NiYXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRTdDLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDN0MsT0FBTyxFQUFDLG9CQUFvQixFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFFMUQ7SUFBQTtJQUVBLENBQUM7O2dCQUZBLFFBQVEsU0FBQyxFQUFDLFlBQVksRUFBRSxDQUFDLGNBQWMsQ0FBQyxFQUFFLE9BQU8sRUFBRSxDQUFDLGNBQWMsQ0FBQyxFQUFFLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQyxFQUFDOztJQUU5RiwyQkFBQztDQUFBLEFBRkQsSUFFQztTQURZLG9CQUFvQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtDb21tb25Nb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cbmltcG9ydCB7TmdiUHJvZ3Jlc3NiYXJ9IGZyb20gJy4vcHJvZ3Jlc3NiYXInO1xuXG5leHBvcnQge05nYlByb2dyZXNzYmFyfSBmcm9tICcuL3Byb2dyZXNzYmFyJztcbmV4cG9ydCB7TmdiUHJvZ3Jlc3NiYXJDb25maWd9IGZyb20gJy4vcHJvZ3Jlc3NiYXItY29uZmlnJztcblxuQE5nTW9kdWxlKHtkZWNsYXJhdGlvbnM6IFtOZ2JQcm9ncmVzc2Jhcl0sIGV4cG9ydHM6IFtOZ2JQcm9ncmVzc2Jhcl0sIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdfSlcbmV4cG9ydCBjbGFzcyBOZ2JQcm9ncmVzc2Jhck1vZHVsZSB7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/rating/rating-config.js b/dist/ng-bootstrap/esm5/rating/rating-config.js deleted file mode 100644 index 1855c66..0000000 --- a/dist/ng-bootstrap/esm5/rating/rating-config.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the ratings used in the application. - */ -var NgbRatingConfig = /** @class */ (function () { - function NgbRatingConfig() { - this.max = 10; - this.readonly = false; - this.resettable = false; - } - NgbRatingConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbRatingConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbRatingConfig_Factory() { return new NgbRatingConfig(); }, token: NgbRatingConfig, providedIn: "root" }); - return NgbRatingConfig; -}()); -export { NgbRatingConfig }; -if (false) { - /** @type {?} */ - NgbRatingConfig.prototype.max; - /** @type {?} */ - NgbRatingConfig.prototype.readonly; - /** @type {?} */ - NgbRatingConfig.prototype.resettable; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0aW5nLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInJhdGluZy9yYXRpbmctY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVF6QztJQUFBO1FBRUUsUUFBRyxHQUFHLEVBQUUsQ0FBQztRQUNULGFBQVEsR0FBRyxLQUFLLENBQUM7UUFDakIsZUFBVSxHQUFHLEtBQUssQ0FBQztLQUNwQjs7Z0JBTEEsVUFBVSxTQUFDLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBQzs7OzBCQVJoQztDQWFDLEFBTEQsSUFLQztTQUpZLGVBQWU7OztJQUMxQiw4QkFBUzs7SUFDVCxtQ0FBaUI7O0lBQ2pCLHFDQUFtQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7SW5qZWN0YWJsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKlxuICogQSBjb25maWd1cmF0aW9uIHNlcnZpY2UgZm9yIHRoZSBbYE5nYlJhdGluZ2BdKCMvY29tcG9uZW50cy9yYXRpbmcvYXBpI05nYlJhdGluZykgY29tcG9uZW50LlxuICpcbiAqIFlvdSBjYW4gaW5qZWN0IHRoaXMgc2VydmljZSwgdHlwaWNhbGx5IGluIHlvdXIgcm9vdCBjb21wb25lbnQsIGFuZCBjdXN0b21pemUgdGhlIHZhbHVlcyBvZiBpdHMgcHJvcGVydGllcyBpblxuICogb3JkZXIgdG8gcHJvdmlkZSBkZWZhdWx0IHZhbHVlcyBmb3IgYWxsIHRoZSByYXRpbmdzIHVzZWQgaW4gdGhlIGFwcGxpY2F0aW9uLlxuICovXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBOZ2JSYXRpbmdDb25maWcge1xuICBtYXggPSAxMDtcbiAgcmVhZG9ubHkgPSBmYWxzZTtcbiAgcmVzZXR0YWJsZSA9IGZhbHNlO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/rating/rating.js b/dist/ng-bootstrap/esm5/rating/rating.js deleted file mode 100644 index 3dceedf..0000000 --- a/dist/ng-bootstrap/esm5/rating/rating.js +++ /dev/null @@ -1,391 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, ChangeDetectionStrategy, Input, Output, EventEmitter, TemplateRef, ContentChild, forwardRef, ChangeDetectorRef } from '@angular/core'; -import { NgbRatingConfig } from './rating-config'; -import { getValueInRange } from '../util/util'; -import { Key } from '../util/key'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -/** - * The context for the custom star display template defined in the `starTemplate`. - * @record - */ -export function StarTemplateContext() { } -if (false) { - /** - * The star fill percentage, an integer in the `[0, 100]` range. - * @type {?} - */ - StarTemplateContext.prototype.fill; - /** - * Index of the star, starts with `0`. - * @type {?} - */ - StarTemplateContext.prototype.index; -} -/** @type {?} */ -var NGB_RATING_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbRating; })), - multi: true -}; -/** - * A directive that helps visualising and interacting with a star rating bar. - */ -var NgbRating = /** @class */ (function () { - function NgbRating(config, _changeDetectorRef) { - this._changeDetectorRef = _changeDetectorRef; - this.contexts = []; - this.disabled = false; - /** - * An event emitted when the user is hovering over a given rating. - * - * Event payload equals to the rating being hovered over. - */ - this.hover = new EventEmitter(); - /** - * An event emitted when the user stops hovering over a given rating. - * - * Event payload equals to the rating of the last item being hovered over. - */ - this.leave = new EventEmitter(); - /** - * An event emitted when the user selects a new rating. - * - * Event payload equals to the newly selected rating. - */ - this.rateChange = new EventEmitter(true); - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - this.max = config.max; - this.readonly = config.readonly; - } - /** - * @return {?} - */ - NgbRating.prototype.ariaValueText = /** - * @return {?} - */ - function () { return this.nextRate + " out of " + this.max; }; - /** - * @param {?} value - * @return {?} - */ - NgbRating.prototype.enter = /** - * @param {?} value - * @return {?} - */ - function (value) { - if (!this.readonly && !this.disabled) { - this._updateState(value); - } - this.hover.emit(value); - }; - /** - * @return {?} - */ - NgbRating.prototype.handleBlur = /** - * @return {?} - */ - function () { this.onTouched(); }; - /** - * @param {?} value - * @return {?} - */ - NgbRating.prototype.handleClick = /** - * @param {?} value - * @return {?} - */ - function (value) { this.update(this.resettable && this.rate === value ? 0 : value); }; - /** - * @param {?} event - * @return {?} - */ - NgbRating.prototype.handleKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.ArrowDown: - case Key.ArrowLeft: - this.update(this.rate - 1); - break; - case Key.ArrowUp: - case Key.ArrowRight: - this.update(this.rate + 1); - break; - case Key.Home: - this.update(0); - break; - case Key.End: - this.update(this.max); - break; - default: - return; - } - // note 'return' in default case - event.preventDefault(); - }; - /** - * @param {?} changes - * @return {?} - */ - NgbRating.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes['rate']) { - this.update(this.rate); - } - }; - /** - * @return {?} - */ - NgbRating.prototype.ngOnInit = /** - * @return {?} - */ - function () { - this.contexts = Array.from({ length: this.max }, (/** - * @param {?} v - * @param {?} k - * @return {?} - */ - function (v, k) { return ({ fill: 0, index: k }); })); - this._updateState(this.rate); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbRating.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbRating.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @return {?} - */ - NgbRating.prototype.reset = /** - * @return {?} - */ - function () { - this.leave.emit(this.nextRate); - this._updateState(this.rate); - }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbRating.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.disabled = isDisabled; }; - /** - * @param {?} value - * @param {?=} internalChange - * @return {?} - */ - NgbRating.prototype.update = /** - * @param {?} value - * @param {?=} internalChange - * @return {?} - */ - function (value, internalChange) { - if (internalChange === void 0) { internalChange = true; } - /** @type {?} */ - var newRate = getValueInRange(value, this.max, 0); - if (!this.readonly && !this.disabled && this.rate !== newRate) { - this.rate = newRate; - this.rateChange.emit(this.rate); - } - if (internalChange) { - this.onChange(this.rate); - this.onTouched(); - } - this._updateState(this.rate); - }; - /** - * @param {?} value - * @return {?} - */ - NgbRating.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this.update(value, false); - this._changeDetectorRef.markForCheck(); - }; - /** - * @private - * @param {?} index - * @return {?} - */ - NgbRating.prototype._getFillValue = /** - * @private - * @param {?} index - * @return {?} - */ - function (index) { - /** @type {?} */ - var diff = this.nextRate - index; - if (diff >= 1) { - return 100; - } - if (diff < 1 && diff > 0) { - return parseInt((diff * 100).toFixed(2), 10); - } - return 0; - }; - /** - * @private - * @param {?} nextValue - * @return {?} - */ - NgbRating.prototype._updateState = /** - * @private - * @param {?} nextValue - * @return {?} - */ - function (nextValue) { - var _this = this; - this.nextRate = nextValue; - this.contexts.forEach((/** - * @param {?} context - * @param {?} index - * @return {?} - */ - function (context, index) { return context.fill = _this._getFillValue(index); })); - }; - NgbRating.decorators = [ - { type: Component, args: [{ - selector: 'ngb-rating', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { - 'class': 'd-inline-flex', - 'tabindex': '0', - 'role': 'slider', - 'aria-valuemin': '0', - '[attr.aria-valuemax]': 'max', - '[attr.aria-valuenow]': 'nextRate', - '[attr.aria-valuetext]': 'ariaValueText()', - '[attr.aria-disabled]': 'readonly ? true : null', - '(blur)': 'handleBlur()', - '(keydown)': 'handleKeyDown($event)', - '(mouseleave)': 'reset()' - }, - template: "\n {{ fill === 100 ? '★' : '☆' }}\n \n ({{ index < nextRate ? '*' : ' ' }})\n \n \n \n \n \n ", - providers: [NGB_RATING_VALUE_ACCESSOR] - }] } - ]; - /** @nocollapse */ - NgbRating.ctorParameters = function () { return [ - { type: NgbRatingConfig }, - { type: ChangeDetectorRef } - ]; }; - NgbRating.propDecorators = { - max: [{ type: Input }], - rate: [{ type: Input }], - readonly: [{ type: Input }], - resettable: [{ type: Input }], - starTemplate: [{ type: Input }], - starTemplateFromContent: [{ type: ContentChild, args: [TemplateRef, { static: false },] }], - hover: [{ type: Output }], - leave: [{ type: Output }], - rateChange: [{ type: Output }] - }; - return NgbRating; -}()); -export { NgbRating }; -if (false) { - /** @type {?} */ - NgbRating.prototype.contexts; - /** @type {?} */ - NgbRating.prototype.disabled; - /** @type {?} */ - NgbRating.prototype.nextRate; - /** - * The maximal rating that can be given. - * @type {?} - */ - NgbRating.prototype.max; - /** - * The current rating. Could be a decimal value like `3.75`. - * @type {?} - */ - NgbRating.prototype.rate; - /** - * If `true`, the rating can't be changed. - * @type {?} - */ - NgbRating.prototype.readonly; - /** - * If `true`, the rating can be reset to `0` by mouse clicking currently set rating. - * @type {?} - */ - NgbRating.prototype.resettable; - /** - * The template to override the way each star is displayed. - * - * Alternatively put an `` as the only child of your `` element - * @type {?} - */ - NgbRating.prototype.starTemplate; - /** @type {?} */ - NgbRating.prototype.starTemplateFromContent; - /** - * An event emitted when the user is hovering over a given rating. - * - * Event payload equals to the rating being hovered over. - * @type {?} - */ - NgbRating.prototype.hover; - /** - * An event emitted when the user stops hovering over a given rating. - * - * Event payload equals to the rating of the last item being hovered over. - * @type {?} - */ - NgbRating.prototype.leave; - /** - * An event emitted when the user selects a new rating. - * - * Event payload equals to the newly selected rating. - * @type {?} - */ - NgbRating.prototype.rateChange; - /** @type {?} */ - NgbRating.prototype.onChange; - /** @type {?} */ - NgbRating.prototype.onTouched; - /** - * @type {?} - * @private - */ - NgbRating.prototype._changeDetectorRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0aW5nLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsicmF0aW5nL3JhdGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFDdkIsS0FBSyxFQUNMLE1BQU0sRUFDTixZQUFZLEVBRVosV0FBVyxFQUdYLFlBQVksRUFDWixVQUFVLEVBQ1YsaUJBQWlCLEVBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUNoRCxPQUFPLEVBQUMsZUFBZSxFQUFDLE1BQU0sY0FBYyxDQUFDO0FBQzdDLE9BQU8sRUFBQyxHQUFHLEVBQUMsTUFBTSxhQUFhLENBQUM7QUFDaEMsT0FBTyxFQUF1QixpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDOzs7OztBQUt2RSx5Q0FVQzs7Ozs7O0lBTkMsbUNBQWE7Ozs7O0lBS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cbiAgd3JpdGVWYWx1ZSh2YWx1ZSkge1xuICAgIHRoaXMudXBkYXRlKHZhbHVlLCBmYWxzZSk7XG4gICAgdGhpcy5fY2hhbmdlRGV0ZWN0b3JSZWYubWFya0ZvckNoZWNrKCk7XG4gIH1cblxuICBwcml2YXRlIF9nZXRGaWxsVmFsdWUoaW5kZXg6IG51bWJlcik6IG51bWJlciB7XG4gICAgY29uc3QgZGlmZiA9IHRoaXMubmV4dFJhdGUgLSBpbmRleDtcblxuICAgIGlmIChkaWZmID49IDEpIHtcbiAgICAgIHJldHVybiAxMDA7XG4gICAgfVxuICAgIGlmIChkaWZmIDwgMSAmJiBkaWZmID4gMCkge1xuICAgICAgcmV0dXJuIHBhcnNlSW50KChkaWZmICogMTAwKS50b0ZpeGVkKDIpLCAxMCk7XG4gICAgfVxuXG4gICAgcmV0dXJuIDA7XG4gIH1cblxuICBwcml2YXRlIF91cGRhdGVTdGF0ZShuZXh0VmFsdWU6IG51bWJlcikge1xuICAgIHRoaXMubmV4dFJhdGUgPSBuZXh0VmFsdWU7XG4gICAgdGhpcy5jb250ZXh0cy5mb3JFYWNoKChjb250ZXh0LCBpbmRleCkgPT4gY29udGV4dC5maWxsID0gdGhpcy5fZ2V0RmlsbFZhbHVlKGluZGV4KSk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/rating/rating.module.js b/dist/ng-bootstrap/esm5/rating/rating.module.js deleted file mode 100644 index cd1d932..0000000 --- a/dist/ng-bootstrap/esm5/rating/rating.module.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbRating } from './rating'; -export { NgbRating } from './rating'; -export { NgbRatingConfig } from './rating-config'; -var NgbRatingModule = /** @class */ (function () { - function NgbRatingModule() { - } - NgbRatingModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbRating], exports: [NgbRating], imports: [CommonModule] },] } - ]; - return NgbRatingModule; -}()); -export { NgbRatingModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0aW5nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInJhdGluZy9yYXRpbmcubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sVUFBVSxDQUFDO0FBRW5DLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxVQUFVLENBQUM7QUFDbkMsT0FBTyxFQUFDLGVBQWUsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBRWhEO0lBQUE7SUFFQSxDQUFDOztnQkFGQSxRQUFRLFNBQUMsRUFBQyxZQUFZLEVBQUUsQ0FBQyxTQUFTLENBQUMsRUFBRSxPQUFPLEVBQUUsQ0FBQyxTQUFTLENBQUMsRUFBRSxPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUMsRUFBQzs7SUFFcEYsc0JBQUM7Q0FBQSxBQUZELElBRUM7U0FEWSxlQUFlIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge0NvbW1vbk1vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcblxuaW1wb3J0IHtOZ2JSYXRpbmd9IGZyb20gJy4vcmF0aW5nJztcblxuZXhwb3J0IHtOZ2JSYXRpbmd9IGZyb20gJy4vcmF0aW5nJztcbmV4cG9ydCB7TmdiUmF0aW5nQ29uZmlnfSBmcm9tICcuL3JhdGluZy1jb25maWcnO1xuXG5ATmdNb2R1bGUoe2RlY2xhcmF0aW9uczogW05nYlJhdGluZ10sIGV4cG9ydHM6IFtOZ2JSYXRpbmddLCBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXX0pXG5leHBvcnQgY2xhc3MgTmdiUmF0aW5nTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/tabset/tabset-config.js b/dist/ng-bootstrap/esm5/tabset/tabset-config.js deleted file mode 100644 index ca79626..0000000 --- a/dist/ng-bootstrap/esm5/tabset/tabset-config.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbTabset`](#/components/tabset/api#NgbTabset) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tabsets used in the application. - */ -var NgbTabsetConfig = /** @class */ (function () { - function NgbTabsetConfig() { - this.justify = 'start'; - this.orientation = 'horizontal'; - this.type = 'tabs'; - } - NgbTabsetConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTabsetConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbTabsetConfig_Factory() { return new NgbTabsetConfig(); }, token: NgbTabsetConfig, providedIn: "root" }); - return NgbTabsetConfig; -}()); -export { NgbTabsetConfig }; -if (false) { - /** @type {?} */ - NgbTabsetConfig.prototype.justify; - /** @type {?} */ - NgbTabsetConfig.prototype.orientation; - /** @type {?} */ - NgbTabsetConfig.prototype.type; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFic2V0LWNvbmZ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BvcnQgY2xhc3MgTmdiVGFic2V0Q29uZmlnIHtcbiAganVzdGlmeTogJ3N0YXJ0JyB8ICdjZW50ZXInIHwgJ2VuZCcgfCAnZmlsbCcgfCAnanVzdGlmaWVkJyA9ICdzdGFydCc7XG4gIG9yaWVudGF0aW9uOiAnaG9yaXpvbnRhbCcgfCAndmVydGljYWwnID0gJ2hvcml6b250YWwnO1xuICB0eXBlOiAndGFicycgfCAncGlsbHMnID0gJ3RhYnMnO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/tabset/tabset.js b/dist/ng-bootstrap/esm5/tabset/tabset.js deleted file mode 100644 index 5740042..0000000 --- a/dist/ng-bootstrap/esm5/tabset/tabset.js +++ /dev/null @@ -1,316 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, ContentChildren, QueryList, Directive, TemplateRef, Output, EventEmitter } from '@angular/core'; -import { NgbTabsetConfig } from './tabset-config'; -/** @type {?} */ -var nextId = 0; -/** - * A directive to wrap tab titles that need to contain HTML markup or other directives. - * - * Alternatively you could use the `NgbTab.title` input for string titles. - */ -var NgbTabTitle = /** @class */ (function () { - function NgbTabTitle(templateRef) { - this.templateRef = templateRef; - } - NgbTabTitle.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbTabTitle]' },] } - ]; - /** @nocollapse */ - NgbTabTitle.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbTabTitle; -}()); -export { NgbTabTitle }; -if (false) { - /** @type {?} */ - NgbTabTitle.prototype.templateRef; -} -/** - * A directive to wrap content to be displayed in a tab. - */ -var NgbTabContent = /** @class */ (function () { - function NgbTabContent(templateRef) { - this.templateRef = templateRef; - } - NgbTabContent.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbTabContent]' },] } - ]; - /** @nocollapse */ - NgbTabContent.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbTabContent; -}()); -export { NgbTabContent }; -if (false) { - /** @type {?} */ - NgbTabContent.prototype.templateRef; -} -/** - * A directive representing an individual tab. - */ -var NgbTab = /** @class */ (function () { - function NgbTab() { - /** - * The tab identifier. - * - * Must be unique for the entire document for proper accessibility support. - */ - this.id = "ngb-tab-" + nextId++; - /** - * If `true`, the current tab is disabled and can't be toggled. - */ - this.disabled = false; - } - /** - * @return {?} - */ - NgbTab.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - // We are using @ContentChildren instead of @ContentChild as in the Angular version being used - // only @ContentChildren allows us to specify the {descendants: false} option. - // Without {descendants: false} we are hitting bugs described in: - // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240 - this.titleTpl = this.titleTpls.first; - this.contentTpl = this.contentTpls.first; - }; - NgbTab.decorators = [ - { type: Directive, args: [{ selector: 'ngb-tab' },] } - ]; - NgbTab.propDecorators = { - id: [{ type: Input }], - title: [{ type: Input }], - disabled: [{ type: Input }], - titleTpls: [{ type: ContentChildren, args: [NgbTabTitle, { descendants: false },] }], - contentTpls: [{ type: ContentChildren, args: [NgbTabContent, { descendants: false },] }] - }; - return NgbTab; -}()); -export { NgbTab }; -if (false) { - /** - * The tab identifier. - * - * Must be unique for the entire document for proper accessibility support. - * @type {?} - */ - NgbTab.prototype.id; - /** - * The tab title. - * - * Use the [`NgbTabTitle`](#/components/tabset/api#NgbTabTitle) directive for non-string titles. - * @type {?} - */ - NgbTab.prototype.title; - /** - * If `true`, the current tab is disabled and can't be toggled. - * @type {?} - */ - NgbTab.prototype.disabled; - /** @type {?} */ - NgbTab.prototype.titleTpl; - /** @type {?} */ - NgbTab.prototype.contentTpl; - /** @type {?} */ - NgbTab.prototype.titleTpls; - /** @type {?} */ - NgbTab.prototype.contentTpls; -} -/** - * The payload of the change event fired right before the tab change. - * @record - */ -export function NgbTabChangeEvent() { } -if (false) { - /** - * The id of the currently active tab. - * @type {?} - */ - NgbTabChangeEvent.prototype.activeId; - /** - * The id of the newly selected tab. - * @type {?} - */ - NgbTabChangeEvent.prototype.nextId; - /** - * Calling this function will prevent tab switching. - * @type {?} - */ - NgbTabChangeEvent.prototype.preventDefault; -} -/** - * A component that makes it easy to create tabbed interface. - */ -var NgbTabset = /** @class */ (function () { - function NgbTabset(config) { - /** - * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden. - */ - this.destroyOnHide = true; - /** - * A tab change event emitted right before the tab change happens. - * - * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details. - */ - this.tabChange = new EventEmitter(); - this.type = config.type; - this.justify = config.justify; - this.orientation = config.orientation; - } - Object.defineProperty(NgbTabset.prototype, "justify", { - /** - * The horizontal alignment of the tabs with flexbox utilities. - */ - set: /** - * The horizontal alignment of the tabs with flexbox utilities. - * @param {?} className - * @return {?} - */ - function (className) { - if (className === 'fill' || className === 'justified') { - this.justifyClass = "nav-" + className; - } - else { - this.justifyClass = "justify-content-" + className; - } - }, - enumerable: true, - configurable: true - }); - /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - */ - /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - * @param {?} tabId - * @return {?} - */ - NgbTabset.prototype.select = /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - * @param {?} tabId - * @return {?} - */ - function (tabId) { - /** @type {?} */ - var selectedTab = this._getTabById(tabId); - if (selectedTab && !selectedTab.disabled && this.activeId !== selectedTab.id) { - /** @type {?} */ - var defaultPrevented_1 = false; - this.tabChange.emit({ activeId: this.activeId, nextId: selectedTab.id, preventDefault: (/** - * @return {?} - */ - function () { defaultPrevented_1 = true; }) }); - if (!defaultPrevented_1) { - this.activeId = selectedTab.id; - } - } - }; - /** - * @return {?} - */ - NgbTabset.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - // auto-correct activeId that might have been set incorrectly as input - /** @type {?} */ - var activeTab = this._getTabById(this.activeId); - this.activeId = activeTab ? activeTab.id : (this.tabs.length ? this.tabs.first.id : null); - }; - /** - * @private - * @param {?} id - * @return {?} - */ - NgbTabset.prototype._getTabById = /** - * @private - * @param {?} id - * @return {?} - */ - function (id) { - /** @type {?} */ - var tabsWithId = this.tabs.filter((/** - * @param {?} tab - * @return {?} - */ - function (tab) { return tab.id === id; })); - return tabsWithId.length ? tabsWithId[0] : null; - }; - NgbTabset.decorators = [ - { type: Component, args: [{ - selector: 'ngb-tabset', - exportAs: 'ngbTabset', - template: "\n \n
\n \n \n \n
\n
\n \n " - }] } - ]; - /** @nocollapse */ - NgbTabset.ctorParameters = function () { return [ - { type: NgbTabsetConfig } - ]; }; - NgbTabset.propDecorators = { - tabs: [{ type: ContentChildren, args: [NgbTab,] }], - activeId: [{ type: Input }], - destroyOnHide: [{ type: Input }], - justify: [{ type: Input }], - orientation: [{ type: Input }], - type: [{ type: Input }], - tabChange: [{ type: Output }] - }; - return NgbTabset; -}()); -export { NgbTabset }; -if (false) { - /** @type {?} */ - NgbTabset.prototype.justifyClass; - /** @type {?} */ - NgbTabset.prototype.tabs; - /** - * The identifier of the tab that should be opened **initially**. - * - * For subsequent tab switches use the `.select()` method and the `(tabChange)` event. - * @type {?} - */ - NgbTabset.prototype.activeId; - /** - * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden. - * @type {?} - */ - NgbTabset.prototype.destroyOnHide; - /** - * The orientation of the tabset. - * @type {?} - */ - NgbTabset.prototype.orientation; - /** - * Type of navigation to be used for tabs. - * - * Currently Bootstrap supports only `"tabs"` and `"pills"`. - * - * Since `3.0.0` can also be an arbitrary string (ex. for custom themes). - * @type {?} - */ - NgbTabset.prototype.type; - /** - * A tab change event emitted right before the tab change happens. - * - * See [`NgbTabChangeEvent`](#/components/tabset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cnJlY3QgYWN0aXZlSWQgdGhhdCBtaWdodCBoYXZlIGJlZW4gc2V0IGluY29ycmVjdGx5IGFzIGlucHV0XG4gICAgbGV0IGFjdGl2ZVRhYiA9IHRoaXMuX2dldFRhYkJ5SWQodGhpcy5hY3RpdmVJZCk7XG4gICAgdGhpcy5hY3RpdmVJZCA9IGFjdGl2ZVRhYiA/IGFjdGl2ZVRhYi5pZCA6ICh0aGlzLnRhYnMubGVuZ3RoID8gdGhpcy50YWJzLmZpcnN0LmlkIDogbnVsbCk7XG4gIH1cblxuICBwcml2YXRlIF9nZXRUYWJCeUlkKGlkOiBzdHJpbmcpOiBOZ2JUYWIge1xuICAgIGxldCB0YWJzV2l0aElkOiBOZ2JUYWJbXSA9IHRoaXMudGFicy5maWx0ZXIodGFiID0+IHRhYi5pZCA9PT0gaWQpO1xuICAgIHJldHVybiB0YWJzV2l0aElkLmxlbmd0aCA/IHRhYnNXaXRoSWRbMF0gOiBudWxsO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/tabset/tabset.module.js b/dist/ng-bootstrap/esm5/tabset/tabset.module.js deleted file mode 100644 index 733848d..0000000 --- a/dist/ng-bootstrap/esm5/tabset/tabset.module.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbTabset, NgbTab, NgbTabContent, NgbTabTitle } from './tabset'; -export { NgbTabset, NgbTab, NgbTabContent, NgbTabTitle } from './tabset'; -export { NgbTabsetConfig } from './tabset-config'; -/** @type {?} */ -var NGB_TABSET_DIRECTIVES = [NgbTabset, NgbTab, NgbTabContent, NgbTabTitle]; -var NgbTabsetModule = /** @class */ (function () { - function NgbTabsetModule() { - } - NgbTabsetModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_TABSET_DIRECTIVES, exports: NGB_TABSET_DIRECTIVES, imports: [CommonModule] },] } - ]; - return NgbTabsetModule; -}()); -export { NgbTabsetModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFic2V0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInRhYnNldC90YWJzZXQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsU0FBUyxFQUFFLE1BQU0sRUFBRSxhQUFhLEVBQUUsV0FBVyxFQUFDLE1BQU0sVUFBVSxDQUFDO0FBRXZFLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLGFBQWEsRUFBRSxXQUFXLEVBQW9CLE1BQU0sVUFBVSxDQUFDO0FBQzFGLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQzs7SUFFMUMscUJBQXFCLEdBQUcsQ0FBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLGFBQWEsRUFBRSxXQUFXLENBQUM7QUFFN0U7SUFBQTtJQUVBLENBQUM7O2dCQUZBLFFBQVEsU0FBQyxFQUFDLFlBQVksRUFBRSxxQkFBcUIsRUFBRSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDLEVBQUM7O0lBRXhHLHNCQUFDO0NBQUEsQUFGRCxJQUVDO1NBRFksZUFBZSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtDb21tb25Nb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cbmltcG9ydCB7TmdiVGFic2V0LCBOZ2JUYWIsIE5nYlRhYkNvbnRlbnQsIE5nYlRhYlRpdGxlfSBmcm9tICcuL3RhYnNldCc7XG5cbmV4cG9ydCB7TmdiVGFic2V0LCBOZ2JUYWIsIE5nYlRhYkNvbnRlbnQsIE5nYlRhYlRpdGxlLCBOZ2JUYWJDaGFuZ2VFdmVudH0gZnJvbSAnLi90YWJzZXQnO1xuZXhwb3J0IHtOZ2JUYWJzZXRDb25maWd9IGZyb20gJy4vdGFic2V0LWNvbmZpZyc7XG5cbmNvbnN0IE5HQl9UQUJTRVRfRElSRUNUSVZFUyA9IFtOZ2JUYWJzZXQsIE5nYlRhYiwgTmdiVGFiQ29udGVudCwgTmdiVGFiVGl0bGVdO1xuXG5ATmdNb2R1bGUoe2RlY2xhcmF0aW9uczogTkdCX1RBQlNFVF9ESVJFQ1RJVkVTLCBleHBvcnRzOiBOR0JfVEFCU0VUX0RJUkVDVElWRVMsIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdfSlcbmV4cG9ydCBjbGFzcyBOZ2JUYWJzZXRNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/timepicker/ngb-time-adapter.js b/dist/ng-bootstrap/esm5/timepicker/ngb-time-adapter.js deleted file mode 100644 index eaf3db8..0000000 --- a/dist/ng-bootstrap/esm5/timepicker/ngb-time-adapter.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { Injectable } from '@angular/core'; -import { isInteger } from '../util/util'; -import * as i0 from "@angular/core"; -/** - * @return {?} - */ -export function NGB_DATEPICKER_TIME_ADAPTER_FACTORY() { - return new NgbTimeStructAdapter(); -} -/** - * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and - * any provided user time model `T`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding timepicker to a form control, - * ex. `[(ngModel)]="userTimeModel"`. Here `userTimeModel` can be of any type. - * - * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model. - * - * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example. - * - * \@since 2.2.0 - * @abstract - * @template T - */ -var NgbTimeAdapter = /** @class */ (function () { - function NgbTimeAdapter() { - } - NgbTimeAdapter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY },] } - ]; - /** @nocollapse */ NgbTimeAdapter.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY, token: NgbTimeAdapter, providedIn: "root" }); - return NgbTimeAdapter; -}()); -export { NgbTimeAdapter }; -if (false) { - /** - * Converts a user-model time of type `T` to an `NgbTimeStruct` for internal use. - * @abstract - * @param {?} value - * @return {?} - */ - NgbTimeAdapter.prototype.fromModel = function (value) { }; - /** - * Converts an internal `NgbTimeStruct` time to a user-model time of type `T`. - * @abstract - * @param {?} time - * @return {?} - */ - NgbTimeAdapter.prototype.toModel = function (time) { }; -} -var NgbTimeStructAdapter = /** @class */ (function (_super) { - tslib_1.__extends(NgbTimeStructAdapter, _super); - function NgbTimeStructAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - */ - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - NgbTimeStructAdapter.prototype.fromModel = /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - function (time) { - return (time && isInteger(time.hour) && isInteger(time.minute)) ? - { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } : - null; - }; - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - */ - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - NgbTimeStructAdapter.prototype.toModel = /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - function (time) { - return (time && isInteger(time.hour) && isInteger(time.minute)) ? - { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } : - null; - }; - NgbTimeStructAdapter.decorators = [ - { type: Injectable } - ]; - return NgbTimeStructAdapter; -}(NgbTimeAdapter)); -export { NgbTimeStructAdapter }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLXRpbWUtYWRhcHRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInRpbWVwaWNrZXIvbmdiLXRpbWUtYWRhcHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGNBQWMsQ0FBQzs7Ozs7QUFFdkMsTUFBTSxVQUFVLG1DQUFtQztJQUNqRCxPQUFPLElBQUksb0JBQW9CLEVBQUUsQ0FBQztBQUNwQyxDQUFDOzs7Ozs7Ozs7Ozs7Ozs7O0FBZUQ7SUFBQTtLQVdDOztnQkFYQSxVQUFVLFNBQUMsRUFBQyxVQUFVLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxtQ0FBbUMsRUFBQzs7O3lCQXJCakY7Q0FnQ0MsQUFYRCxJQVdDO1NBVnFCLGNBQWM7Ozs7Ozs7O0lBSWxDLDBEQUE0Qzs7Ozs7OztJQUs1Qyx1REFBeUM7O0FBRzNDO0lBQzBDLGdEQUE2QjtJQUR2RTs7SUFtQkEsQ0FBQztJQWpCQzs7T0FFRzs7Ozs7O0lBQ0gsd0NBQVM7Ozs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OiBudWxsfSA6XG4gICAgICAgIG51bGw7XG4gIH1cblxuICAvKipcbiAgICogQ29udmVydHMgYSBOZ2JUaW1lU3RydWN0IHZhbHVlIGludG8gTmdiVGltZVN0cnVjdCB2YWx1ZVxuICAgKi9cbiAgdG9Nb2RlbCh0aW1lOiBOZ2JUaW1lU3RydWN0KTogTmdiVGltZVN0cnVjdCB7XG4gICAgcmV0dXJuICh0aW1lICYmIGlzSW50ZWdlcih0aW1lLmhvdXIpICYmIGlzSW50ZWdlcih0aW1lLm1pbnV0ZSkpID9cbiAgICAgICAge2hvdXI6IHRpbWUuaG91ciwgbWludXRlOiB0aW1lLm1pbnV0ZSwgc2Vjb25kOiBpc0ludGVnZXIodGltZS5zZWNvbmQpID8gdGltZS5zZWNvbmQgOiBudWxsfSA6XG4gICAgICAgIG51bGw7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/timepicker/ngb-time-struct.js b/dist/ng-bootstrap/esm5/timepicker/ngb-time-struct.js deleted file mode 100644 index 3bdb2c7..0000000 --- a/dist/ng-bootstrap/esm5/timepicker/ngb-time-struct.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * An interface for the time model used by the timepicker. - * @record - */ -export function NgbTimeStruct() { } -if (false) { - /** - * The hour in the `[0, 23]` range. - * @type {?} - */ - NgbTimeStruct.prototype.hour; - /** - * The minute in the `[0, 59]` range. - * @type {?} - */ - NgbTimeStruct.prototype.minute; - /** - * The second in the `[0, 59]` range. - * @type {?} - */ - NgbTimeStruct.prototype.second; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdiLXRpbWUtc3RydWN0LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidGltZXBpY2tlci9uZ2ItdGltZS1zdHJ1Y3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFHQSxtQ0FlQzs7Ozs7O0lBWEMsNkJBQWE7Ozs7O0lBS2IsK0JBQWU7Ozs7O0lBS2YsK0JBQWUiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEFuIGludGVyZmFjZSBmb3IgdGhlIHRpbWUgbW9kZWwgdXNlZCBieSB0aGUgdGltZXBpY2tlci5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBOZ2JUaW1lU3RydWN0IHtcbiAgLyoqXG4gICAqIFRoZSBob3VyIGluIHRoZSBgWzAsIDIzXWAgcmFuZ2UuXG4gICAqL1xuICBob3VyOiBudW1iZXI7XG5cbiAgLyoqXG4gICAqIFRoZSBtaW51dGUgaW4gdGhlIGBbMCwgNTldYCByYW5nZS5cbiAgICovXG4gIG1pbnV0ZTogbnVtYmVyO1xuXG4gIC8qKlxuICAgKiBUaGUgc2Vjb25kIGluIHRoZSBgWzAsIDU5XWAgcmFuZ2UuXG4gICAqL1xuICBzZWNvbmQ6IG51bWJlcjtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/timepicker/ngb-time.js b/dist/ng-bootstrap/esm5/timepicker/ngb-time.js deleted file mode 100644 index edf36c8..0000000 --- a/dist/ng-bootstrap/esm5/timepicker/ngb-time.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { isNumber, toInteger } from '../util/util'; -var NgbTime = /** @class */ (function () { - function NgbTime(hour, minute, second) { - this.hour = toInteger(hour); - this.minute = toInteger(minute); - this.second = toInteger(second); - } - /** - * @param {?=} step - * @return {?} - */ - NgbTime.prototype.changeHour = /** - * @param {?=} step - * @return {?} - */ - function (step) { - if (step === void 0) { step = 1; } - this.updateHour((isNaN(this.hour) ? 0 : this.hour) + step); - }; - /** - * @param {?} hour - * @return {?} - */ - NgbTime.prototype.updateHour = /** - * @param {?} hour - * @return {?} - */ - function (hour) { - if (isNumber(hour)) { - this.hour = (hour < 0 ? 24 + hour : hour) % 24; - } - else { - this.hour = NaN; - } - }; - /** - * @param {?=} step - * @return {?} - */ - NgbTime.prototype.changeMinute = /** - * @param {?=} step - * @return {?} - */ - function (step) { - if (step === void 0) { step = 1; } - this.updateMinute((isNaN(this.minute) ? 0 : this.minute) + step); - }; - /** - * @param {?} minute - * @return {?} - */ - NgbTime.prototype.updateMinute = /** - * @param {?} minute - * @return {?} - */ - function (minute) { - if (isNumber(minute)) { - this.minute = minute % 60 < 0 ? 60 + minute % 60 : minute % 60; - this.changeHour(Math.floor(minute / 60)); - } - else { - this.minute = NaN; - } - }; - /** - * @param {?=} step - * @return {?} - */ - NgbTime.prototype.changeSecond = /** - * @param {?=} step - * @return {?} - */ - function (step) { - if (step === void 0) { step = 1; } - this.updateSecond((isNaN(this.second) ? 0 : this.second) + step); - }; - /** - * @param {?} second - * @return {?} - */ - NgbTime.prototype.updateSecond = /** - * @param {?} second - * @return {?} - */ - function (second) { - if (isNumber(second)) { - this.second = second < 0 ? 60 + second % 60 : second % 60; - this.changeMinute(Math.floor(second / 60)); - } - else { - this.second = NaN; - } - }; - /** - * @param {?=} checkSecs - * @return {?} - */ - NgbTime.prototype.isValid = /** - * @param {?=} checkSecs - * @return {?} - */ - function (checkSecs) { - if (checkSecs === void 0) { checkSecs = true; } - return isNumber(this.hour) && isNumber(this.minute) && (checkSecs ? isNumber(this.second) : true); - }; - /** - * @return {?} - */ - NgbTime.prototype.toString = /** - * @return {?} - */ - function () { return (this.hour || 0) + ":" + (this.minute || 0) + ":" + (this.second || 0); }; - return NgbTime; -}()); -export { NgbTime }; -if (false) { - /** @type {?} */ - NgbTime.prototype.hour; - /** @type {?} */ - NgbTime.prototype.minute; - /** @type {?} */ - NgbTime.prototype.second; -} -//# s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wO1xuICAgICAgdGhpcy5jaGFuZ2VIb3VyKE1hdGguZmxvb3IobWludXRlIC8gNjApKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5taW51dGUgPSBOYU47XG4gICAgfVxuICB9XG5cbiAgY2hhbmdlU2Vjb25kKHN0ZXAgPSAxKSB7IHRoaXMudXBkYXRlU2Vjb25kKChpc05hTih0aGlzLnNlY29uZCkgPyAwIDogdGhpcy5zZWNvbmQpICsgc3RlcCk7IH1cblxuICB1cGRhdGVTZWNvbmQoc2Vjb25kOiBudW1iZXIpIHtcbiAgICBpZiAoaXNOdW1iZXIoc2Vjb25kKSkge1xuICAgICAgdGhpcy5zZWNvbmQgPSBzZWNvbmQgPCAwID8gNjAgKyBzZWNvbmQgJSA2MCA6IHNlY29uZCAlIDYwO1xuICAgICAgdGhpcy5jaGFuZ2VNaW51dGUoTWF0aC5mbG9vcihzZWNvbmQgLyA2MCkpO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aGlzLnNlY29uZCA9IE5hTjtcbiAgICB9XG4gIH1cblxuICBpc1ZhbGlkKGNoZWNrU2VjcyA9IHRydWUpIHtcbiAgICByZXR1cm4gaXNOdW1iZXIodGhpcy5ob3VyKSAmJiBpc051bWJlcih0aGlzLm1pbnV0ZSkgJiYgKGNoZWNrU2VjcyA/IGlzTnVtYmVyKHRoaXMuc2Vjb25kKSA6IHRydWUpO1xuICB9XG5cbiAgdG9TdHJpbmcoKSB7IHJldHVybiBgJHt0aGlzLmhvdXIgfHwgMH06JHt0aGlzLm1pbnV0ZSB8fCAwfToke3RoaXMuc2Vjb25kIHx8IDB9YDsgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/timepicker/timepicker-config.js b/dist/ng-bootstrap/esm5/timepicker/timepicker-config.js deleted file mode 100644 index 08268a6..0000000 --- a/dist/ng-bootstrap/esm5/timepicker/timepicker-config.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the timepickers used in the application. - */ -var NgbTimepickerConfig = /** @class */ (function () { - function NgbTimepickerConfig() { - this.meridian = false; - this.spinners = true; - this.seconds = false; - this.hourStep = 1; - this.minuteStep = 1; - this.secondStep = 1; - this.disabled = false; - this.readonlyInputs = false; - this.size = 'medium'; - } - NgbTimepickerConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTimepickerConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbTimepickerConfig_Factory() { return new NgbTimepickerConfig(); }, token: NgbTimepickerConfig, providedIn: "root" }); - return NgbTimepickerConfig; -}()); -export { NgbTimepickerConfig }; -if (false) { - /** @type {?} */ - NgbTimepickerConfig.prototype.meridian; - /** @type {?} */ - NgbTimepickerConfig.prototype.spinners; - /** @type {?} */ - NgbTimepickerConfig.prototype.seconds; - /** @type {?} */ - NgbTimepickerConfig.prototype.hourStep; - /** @type {?} */ - NgbTimepickerConfig.prototype.minuteStep; - /** @type {?} */ - NgbTimepickerConfig.prototype.secondStep; - /** @type {?} */ - NgbTimepickerConfig.prototype.disabled; - /** @type {?} */ - NgbTimepickerConfig.prototype.readonlyInputs; - /** @type {?} */ - NgbTimepickerConfig.prototype.size; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ0aW1lcGlja2VyL3RpbWVwaWNrZXItY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcG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0aWVzIGluXG4gKiBvcmRlciB0byBwcm92aWRlIGRlZmF1bHQgdmFsdWVzIGZvciBhbGwgdGhlIHRpbWVwaWNrZXJzIHVzZWQgaW4gdGhlIGFwcGxpY2F0aW9uLlxuICovXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBOZ2JUaW1lcGlja2VyQ29uZmlnIHtcbiAgbWVyaWRpYW4gPSBmYWxzZTtcbiAgc3Bpbm5lcnMgPSB0cnVlO1xuICBzZWNvbmRzID0gZmFsc2U7XG4gIGhvdXJTdGVwID0gMTtcbiAgbWludXRlU3RlcCA9IDE7XG4gIHNlY29uZFN0ZXAgPSAxO1xuICBkaXNhYmxlZCA9IGZhbHNlO1xuICByZWFkb25seUlucHV0cyA9IGZhbHNlO1xuICBzaXplOiAnc21hbGwnIHwgJ21lZGl1bScgfCAnbGFyZ2UnID0gJ21lZGl1bSc7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/timepicker/timepicker-i18n.js b/dist/ng-bootstrap/esm5/timepicker/timepicker-i18n.js deleted file mode 100644 index 0ee6933..0000000 --- a/dist/ng-bootstrap/esm5/timepicker/timepicker-i18n.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { Inject, Injectable, LOCALE_ID } from '@angular/core'; -import { FormStyle, getLocaleDayPeriods, TranslationWidth } from '@angular/common'; -import * as i0 from "@angular/core"; -/** - * @param {?} locale - * @return {?} - */ -export function NGB_TIMEPICKER_I18N_FACTORY(locale) { - return new NgbTimepickerI18nDefault(locale); -} -/** - * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component. - * The default implementation of this service honors the Angular locale, and uses the registered locale data, - * as explained in the Angular i18n guide. - * @abstract - */ -var NgbTimepickerI18n = /** @class */ (function () { - function NgbTimepickerI18n() { - } - NgbTimepickerI18n.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_TIMEPICKER_I18N_FACTORY, deps: [LOCALE_ID] },] } - ]; - /** @nocollapse */ NgbTimepickerI18n.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbTimepickerI18n_Factory() { return NGB_TIMEPICKER_I18N_FACTORY(i0.ɵɵinject(i0.LOCALE_ID)); }, token: NgbTimepickerI18n, providedIn: "root" }); - return NgbTimepickerI18n; -}()); -export { NgbTimepickerI18n }; -if (false) { - /** - * Returns the name for the period before midday. - * @abstract - * @return {?} - */ - NgbTimepickerI18n.prototype.getMorningPeriod = function () { }; - /** - * Returns the name for the period after midday. - * @abstract - * @return {?} - */ - NgbTimepickerI18n.prototype.getAfternoonPeriod = function () { }; -} -var NgbTimepickerI18nDefault = /** @class */ (function (_super) { - tslib_1.__extends(NgbTimepickerI18nDefault, _super); - function NgbTimepickerI18nDefault(locale) { - var _this = _super.call(this) || this; - _this._periods = getLocaleDayPeriods(locale, FormStyle.Standalone, TranslationWidth.Narrow); - return _this; - } - /** - * @return {?} - */ - NgbTimepickerI18nDefault.prototype.getMorningPeriod = /** - * @return {?} - */ - function () { return this._periods[0]; }; - /** - * @return {?} - */ - NgbTimepickerI18nDefault.prototype.getAfternoonPeriod = /** - * @return {?} - */ - function () { return this._periods[1]; }; - NgbTimepickerI18nDefault.decorators = [ - { type: Injectable } - ]; - /** @nocollapse */ - NgbTimepickerI18nDefault.ctorParameters = function () { return [ - { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } - ]; }; - return NgbTimepickerI18nDefault; -}(NgbTimepickerI18n)); -export { NgbTimepickerI18nDefault }; -if (false) { - /** - * @type {?} - * @private - */ - NgbTimepickerI18nDefault.prototype._periods; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci1pMThuLmpzIiwic291cmNlUm9vdCI6Im5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ZXBzOiBbTE9DQUxFX0lEXX0pXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgTmdiVGltZXBpY2tlckkxOG4ge1xuICAvKipcbiAgICogUmV0dXJucyB0aGUgbmFtZSBmb3IgdGhlIHBlcmlvZCBiZWZvcmUgbWlkZGF5LlxuICAgKi9cbiAgYWJzdHJhY3QgZ2V0TW9ybmluZ1BlcmlvZCgpOiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFJldHVybnMgdGhlIG5hbWUgZm9yIHRoZSBwZXJpb2QgYWZ0ZXIgbWlkZGF5LlxuICAgKi9cbiAgYWJzdHJhY3QgZ2V0QWZ0ZXJub29uUGVyaW9kKCk6IHN0cmluZztcbn1cblxuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIE5nYlRpbWVwaWNrZXJJMThuRGVmYXVsdCBleHRlbmRzIE5nYlRpbWVwaWNrZXJJMThuIHtcbiAgcHJpdmF0ZSBfcGVyaW9kczogW3N0cmluZywgc3RyaW5nXTtcblxuICBjb25zdHJ1Y3RvcihASW5qZWN0KExPQ0FMRV9JRCkgbG9jYWxlOiBzdHJpbmcpIHtcbiAgICBzdXBlcigpO1xuXG4gICAgdGhpcy5fcGVyaW9kcyA9IGdldExvY2FsZURheVBlcmlvZHMobG9jYWxlLCBGb3JtU3R5bGUuU3RhbmRhbG9uZSwgVHJhbnNsYXRpb25XaWR0aC5OYXJyb3cpO1xuICB9XG5cbiAgZ2V0TW9ybmluZ1BlcmlvZCgpOiBzdHJpbmcgeyByZXR1cm4gdGhpcy5fcGVyaW9kc1swXTsgfVxuXG4gIGdldEFmdGVybm9vblBlcmlvZCgpOiBzdHJpbmcgeyByZXR1cm4gdGhpcy5fcGVyaW9kc1sxXTsgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/timepicker/timepicker.js b/dist/ng-bootstrap/esm5/timepicker/timepicker.js deleted file mode 100644 index 2177d8d..0000000 --- a/dist/ng-bootstrap/esm5/timepicker/timepicker.js +++ /dev/null @@ -1,420 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, Component, forwardRef, Input, ViewEncapsulation } from '@angular/core'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -import { isInteger, isNumber, padNumber, toInteger } from '../util/util'; -import { NgbTime } from './ngb-time'; -import { NgbTimepickerConfig } from './timepicker-config'; -import { NgbTimeAdapter } from './ngb-time-adapter'; -import { NgbTimepickerI18n } from './timepicker-i18n'; -/** @type {?} */ -var NGB_TIMEPICKER_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbTimepicker; })), - multi: true -}; -/** - * A directive that helps with wth picking hours, minutes and seconds. - */ -var NgbTimepicker = /** @class */ (function () { - function NgbTimepicker(_config, _ngbTimeAdapter, _cd, i18n) { - this._config = _config; - this._ngbTimeAdapter = _ngbTimeAdapter; - this._cd = _cd; - this.i18n = i18n; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - this.meridian = _config.meridian; - this.spinners = _config.spinners; - this.seconds = _config.seconds; - this.hourStep = _config.hourStep; - this.minuteStep = _config.minuteStep; - this.secondStep = _config.secondStep; - this.disabled = _config.disabled; - this.readonlyInputs = _config.readonlyInputs; - this.size = _config.size; - } - Object.defineProperty(NgbTimepicker.prototype, "hourStep", { - get: /** - * @return {?} - */ - function () { return this._hourStep; }, - /** - * The number of hours to add/subtract when clicking hour spinners. - */ - set: /** - * The number of hours to add/subtract when clicking hour spinners. - * @param {?} step - * @return {?} - */ - function (step) { - this._hourStep = isInteger(step) ? step : this._config.hourStep; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbTimepicker.prototype, "minuteStep", { - get: /** - * @return {?} - */ - function () { return this._minuteStep; }, - /** - * The number of minutes to add/subtract when clicking minute spinners. - */ - set: /** - * The number of minutes to add/subtract when clicking minute spinners. - * @param {?} step - * @return {?} - */ - function (step) { - this._minuteStep = isInteger(step) ? step : this._config.minuteStep; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbTimepicker.prototype, "secondStep", { - get: /** - * @return {?} - */ - function () { return this._secondStep; }, - /** - * The number of seconds to add/subtract when clicking second spinners. - */ - set: /** - * The number of seconds to add/subtract when clicking second spinners. - * @param {?} step - * @return {?} - */ - function (step) { - this._secondStep = isInteger(step) ? step : this._config.secondStep; - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} value - * @return {?} - */ - NgbTimepicker.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - /** @type {?} */ - var structValue = this._ngbTimeAdapter.fromModel(value); - this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime(); - if (!this.seconds && (!structValue || !isNumber(structValue.second))) { - this.model.second = 0; - } - this._cd.markForCheck(); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbTimepicker.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbTimepicker.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbTimepicker.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.disabled = isDisabled; }; - /** - * @param {?} step - * @return {?} - */ - NgbTimepicker.prototype.changeHour = /** - * @param {?} step - * @return {?} - */ - function (step) { - this.model.changeHour(step); - this.propagateModelChange(); - }; - /** - * @param {?} step - * @return {?} - */ - NgbTimepicker.prototype.changeMinute = /** - * @param {?} step - * @return {?} - */ - function (step) { - this.model.changeMinute(step); - this.propagateModelChange(); - }; - /** - * @param {?} step - * @return {?} - */ - NgbTimepicker.prototype.changeSecond = /** - * @param {?} step - * @return {?} - */ - function (step) { - this.model.changeSecond(step); - this.propagateModelChange(); - }; - /** - * @param {?} newVal - * @return {?} - */ - NgbTimepicker.prototype.updateHour = /** - * @param {?} newVal - * @return {?} - */ - function (newVal) { - /** @type {?} */ - var isPM = this.model.hour >= 12; - /** @type {?} */ - var enteredHour = toInteger(newVal); - if (this.meridian && (isPM && enteredHour < 12 || !isPM && enteredHour === 12)) { - this.model.updateHour(enteredHour + 12); - } - else { - this.model.updateHour(enteredHour); - } - this.propagateModelChange(); - }; - /** - * @param {?} newVal - * @return {?} - */ - NgbTimepicker.prototype.updateMinute = /** - * @param {?} newVal - * @return {?} - */ - function (newVal) { - this.model.updateMinute(toInteger(newVal)); - this.propagateModelChange(); - }; - /** - * @param {?} newVal - * @return {?} - */ - NgbTimepicker.prototype.updateSecond = /** - * @param {?} newVal - * @return {?} - */ - function (newVal) { - this.model.updateSecond(toInteger(newVal)); - this.propagateModelChange(); - }; - /** - * @return {?} - */ - NgbTimepicker.prototype.toggleMeridian = /** - * @return {?} - */ - function () { - if (this.meridian) { - this.changeHour(12); - } - }; - /** - * @param {?} value - * @return {?} - */ - NgbTimepicker.prototype.formatHour = /** - * @param {?} value - * @return {?} - */ - function (value) { - if (isNumber(value)) { - if (this.meridian) { - return padNumber(value % 12 === 0 ? 12 : value % 12); - } - else { - return padNumber(value % 24); - } - } - else { - return padNumber(NaN); - } - }; - /** - * @param {?} value - * @return {?} - */ - NgbTimepicker.prototype.formatMinSec = /** - * @param {?} value - * @return {?} - */ - function (value) { return padNumber(value); }; - Object.defineProperty(NgbTimepicker.prototype, "isSmallSize", { - get: /** - * @return {?} - */ - function () { return this.size === 'small'; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbTimepicker.prototype, "isLargeSize", { - get: /** - * @return {?} - */ - function () { return this.size === 'large'; }, - enumerable: true, - configurable: true - }); - /** - * @param {?} changes - * @return {?} - */ - NgbTimepicker.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) { - this.model.second = 0; - this.propagateModelChange(false); - } - }; - /** - * @private - * @param {?=} touched - * @return {?} - */ - NgbTimepicker.prototype.propagateModelChange = /** - * @private - * @param {?=} touched - * @return {?} - */ - function (touched) { - if (touched === void 0) { touched = true; } - if (touched) { - this.onTouched(); - } - if (this.model.isValid(this.seconds)) { - this.onChange(this._ngbTimeAdapter.toModel({ hour: this.model.hour, minute: this.model.minute, second: this.model.second })); - } - else { - this.onChange(this._ngbTimeAdapter.toModel(null)); - } - }; - NgbTimepicker.decorators = [ - { type: Component, args: [{ - selector: 'ngb-timepicker', - encapsulation: ViewEncapsulation.None, - template: "\n
\n
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
\n
\n \n
\n
\n
\n ", - providers: [NGB_TIMEPICKER_VALUE_ACCESSOR], - styles: ["ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:\"\";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}"] - }] } - ]; - /** @nocollapse */ - NgbTimepicker.ctorParameters = function () { return [ - { type: NgbTimepickerConfig }, - { type: NgbTimeAdapter }, - { type: ChangeDetectorRef }, - { type: NgbTimepickerI18n } - ]; }; - NgbTimepicker.propDecorators = { - meridian: [{ type: Input }], - spinners: [{ type: Input }], - seconds: [{ type: Input }], - hourStep: [{ type: Input }], - minuteStep: [{ type: Input }], - secondStep: [{ type: Input }], - readonlyInputs: [{ type: Input }], - size: [{ type: Input }] - }; - return NgbTimepicker; -}()); -export { NgbTimepicker }; -if (false) { - /** @type {?} */ - NgbTimepicker.prototype.disabled; - /** @type {?} */ - NgbTimepicker.prototype.model; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._hourStep; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._minuteStep; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._secondStep; - /** - * Whether to display 12H or 24H mode. - * @type {?} - */ - NgbTimepicker.prototype.meridian; - /** - * If `true`, the spinners above and below inputs are visible. - * @type {?} - */ - NgbTimepicker.prototype.spinners; - /** - * If `true`, it is possible to select seconds. - * @type {?} - */ - NgbTimepicker.prototype.seconds; - /** - * If `true`, the timepicker is readonly and can't be changed. - * @type {?} - */ - NgbTimepicker.prototype.readonlyInputs; - /** - * The size of inputs and buttons. - * @type {?} - */ - NgbTimepicker.prototype.size; - /** @type {?} */ - NgbTimepicker.prototype.onChange; - /** @type {?} */ - NgbTimepicker.prototype.onTouched; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._config; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._ngbTimeAdapter; - /** - * @type {?} - * @private - */ - NgbTimepicker.prototype._cd; - /** @type {?} */ - NgbTimepicker.prototype.i18n; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInRpbWVwaWNrZXIvdGltZXBpY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsVUFBVSxFQUNWLEtBQUssRUFHTCxpQkF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lzLm9uVG91Y2hlZCgpO1xuICAgIH1cbiAgICBpZiAodGhpcy5tb2RlbC5pc1ZhbGlkKHRoaXMuc2Vjb25kcykpIHtcbiAgICAgIHRoaXMub25DaGFuZ2UoXG4gICAgICAgICAgdGhpcy5fbmdiVGltZUFkYXB0ZXIudG9Nb2RlbCh7aG91cjogdGhpcy5tb2RlbC5ob3VyLCBtaW51dGU6IHRoaXMubW9kZWwubWludXRlLCBzZWNvbmQ6IHRoaXMubW9kZWwuc2Vjb25kfSkpO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aGlzLm9uQ2hhbmdlKHRoaXMuX25nYlRpbWVBZGFwdGVyLnRvTW9kZWwobnVsbCkpO1xuICAgIH1cbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/timepicker/timepicker.module.js b/dist/ng-bootstrap/esm5/timepicker/timepicker.module.js deleted file mode 100644 index 3b87bf9..0000000 --- a/dist/ng-bootstrap/esm5/timepicker/timepicker.module.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbTimepicker } from './timepicker'; -export { NgbTimepicker } from './timepicker'; -export { NgbTimepickerConfig } from './timepicker-config'; -export { NgbTimeAdapter } from './ngb-time-adapter'; -export { NgbTimepickerI18n } from './timepicker-i18n'; -var NgbTimepickerModule = /** @class */ (function () { - function NgbTimepickerModule() { - } - NgbTimepickerModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbTimepicker], exports: [NgbTimepicker], imports: [CommonModule] },] } - ]; - return NgbTimepickerModule; -}()); -export { NgbTimepickerModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXBpY2tlci5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1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lckNvbmZpZ30gZnJvbSAnLi90aW1lcGlja2VyLWNvbmZpZyc7XG5leHBvcnQge05nYlRpbWVTdHJ1Y3R9IGZyb20gJy4vbmdiLXRpbWUtc3RydWN0JztcbmV4cG9ydCB7TmdiVGltZUFkYXB0ZXJ9IGZyb20gJy4vbmdiLXRpbWUtYWRhcHRlcic7XG5leHBvcnQge05nYlRpbWVwaWNrZXJJMThufSBmcm9tICcuL3RpbWVwaWNrZXItaTE4bic7XG5cbkBOZ01vZHVsZSh7ZGVjbGFyYXRpb25zOiBbTmdiVGltZXBpY2tlcl0sIGV4cG9ydHM6IFtOZ2JUaW1lcGlja2VyXSwgaW1wb3J0czogW0NvbW1vbk1vZHVsZV19KVxuZXhwb3J0IGNsYXNzIE5nYlRpbWVwaWNrZXJNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/toast/toast-config.js b/dist/ng-bootstrap/esm5/toast/toast-config.js deleted file mode 100644 index 4bab564..0000000 --- a/dist/ng-bootstrap/esm5/toast/toast-config.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * Interface used to type all toast config options. See `NgbToastConfig`. - * - * \@since 5.0.0 - * @record - */ -export function NgbToastOptions() { } -if (false) { - /** - * Specify if the toast component should emit the `hide()` output - * after a certain `delay` in ms. - * @type {?|undefined} - */ - NgbToastOptions.prototype.autohide; - /** - * Delay in ms after which the `hide()` output should be emitted. - * @type {?|undefined} - */ - NgbToastOptions.prototype.delay; - /** - * Type of aria-live attribute to be used. - * - * Could be one of these 2 values (as string): - * - `polite` (default) - * - `alert` - * @type {?|undefined} - */ - NgbToastOptions.prototype.ariaLive; -} -/** - * Configuration service for the NgbToast component. You can inject this service, typically in your root component, - * and customize the values of its properties in order to provide default values for all the toasts used in the - * application. - * - * \@since 5.0.0 - */ -var NgbToastConfig = /** @class */ (function () { - function NgbToastConfig() { - this.autohide = true; - this.delay = 500; - this.ariaLive = 'polite'; - } - NgbToastConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbToastConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbToastConfig_Factory() { return new NgbToastConfig(); }, token: NgbToastConfig, providedIn: "root" }); - return NgbToastConfig; -}()); -export { NgbToastConfig }; -if (false) { - /** @type {?} */ - NgbToastConfig.prototype.autohide; - /** @type {?} */ - NgbToastConfig.prototype.delay; - /** @type {?} */ - NgbToastConfig.prototype.ariaLive; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidG9hc3QvdG9hc3QtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQU96QyxxQ0FvQkM7Ozs7Ozs7SUFmQyxtQ0FBbUI7Ozs7O0lBS25CLGdDQUFlOzs7Ozs7Ozs7SUFTZixtQ0FBOEI7Ozs7Ozs7OztBQVVoQztJQUFBO1FBRUUsYUFBUSxHQUFHLElBQUksQ0FBQztRQUNoQixVQUFLLEdBQUcsR0FBRyxDQUFDO1FBQ1osYUFBUSxHQUF1QixRQUFRLENBQUM7S0FDekM7O2dCQUxBLFVBQVUsU0FBQyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUM7Ozt5QkFwQ2hDO0NBeUNDLEFBTEQsSUFLQztTQUpZLGNBQWM7OztJQUN6QixrQ0FBZ0I7O0lBQ2hCLCtCQUFZOztJQUNaLGtDQUF3QyIsInNvdXJjZX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yBpbiBvcmRlciB0byBwcm92aWRlIGRlZmF1bHQgdmFsdWVzIGZvciBhbGwgdGhlIHRvYXN0cyB1c2VkIGluIHRoZVxuICogYXBwbGljYXRpb24uXG4gKlxuICogQHNpbmNlIDUuMC4wXG4gKi9cbkBJbmplY3RhYmxlKHtwcm92aWRlZEluOiAncm9vdCd9KVxuZXhwb3J0IGNsYXNzIE5nYlRvYXN0Q29uZmlnIGltcGxlbWVudHMgTmdiVG9hc3RPcHRpb25zIHtcbiAgYXV0b2hpZGUgPSB0cnVlO1xuICBkZWxheSA9IDUwMDtcbiAgYXJpYUxpdmU6ICdwb2xpdGUnIHwgJ2FsZXJ0JyA9ICdwb2xpdGUnO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/toast/toast.js b/dist/ng-bootstrap/esm5/toast/toast.js deleted file mode 100644 index 5e202ad..0000000 --- a/dist/ng-bootstrap/esm5/toast/toast.js +++ /dev/null @@ -1,190 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Attribute, Component, ContentChild, Directive, EventEmitter, Input, Output, TemplateRef, ViewEncapsulation, } from '@angular/core'; -import { NgbToastConfig } from './toast-config'; -/** - * This directive allows the usage of HTML markup or other directives - * inside of the toast's header. - * - * \@since 5.0.0 - */ -var NgbToastHeader = /** @class */ (function () { - function NgbToastHeader() { - } - NgbToastHeader.decorators = [ - { type: Directive, args: [{ selector: '[ngbToastHeader]' },] } - ]; - return NgbToastHeader; -}()); -export { NgbToastHeader }; -/** - * Toasts provide feedback messages as notifications to the user. - * Goal is to mimic the push notifications available both on mobile and desktop operating systems. - * - * \@since 5.0.0 - */ -var NgbToast = /** @class */ (function () { - function NgbToast(ariaLive, config) { - this.ariaLive = ariaLive; - /** - * A template like `` can be - * used in the projected content to allow markup usage. - */ - this.contentHeaderTpl = null; - /** - * An event fired immediately when toast's `hide()` method has been called. - * It can only occur in 2 different scenarios: - * - `autohide` timeout fires - * - user clicks on a closing cross (×) - * - * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of - * that. - */ - this.hideOutput = new EventEmitter(); - if (this.ariaLive == null) { - this.ariaLive = config.ariaLive; - } - this.delay = config.delay; - this.autohide = config.autohide; - } - /** - * @return {?} - */ - NgbToast.prototype.ngAfterContentInit = /** - * @return {?} - */ - function () { this._init(); }; - /** - * @param {?} changes - * @return {?} - */ - NgbToast.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if ('autohide' in changes) { - this._clearTimeout(); - this._init(); - } - }; - /** - * @return {?} - */ - NgbToast.prototype.hide = /** - * @return {?} - */ - function () { - this._clearTimeout(); - this.hideOutput.emit(); - }; - /** - * @private - * @return {?} - */ - NgbToast.prototype._init = /** - * @private - * @return {?} - */ - function () { - var _this = this; - if (this.autohide && !this._timeoutID) { - this._timeoutID = setTimeout((/** - * @return {?} - */ - function () { return _this.hide(); }), this.delay); - } - }; - /** - * @private - * @return {?} - */ - NgbToast.prototype._clearTimeout = /** - * @private - * @return {?} - */ - function () { - if (this._timeoutID) { - clearTimeout(this._timeoutID); - this._timeoutID = null; - } - }; - NgbToast.decorators = [ - { type: Component, args: [{ - selector: 'ngb-toast', - exportAs: 'ngbToast', - encapsulation: ViewEncapsulation.None, - host: { - 'role': 'alert', - '[attr.aria-live]': 'ariaLive', - 'aria-atomic': 'true', - '[class.toast]': 'true', - '[class.show]': 'true', - '[class.autohide]': 'autohide', - }, - template: "\n \n {{header}}\n \n \n
\n \n \n
\n
\n
\n \n
\n ", - styles: [".ngb-toasts{position:fixed;top:0;right:0;margin:.5em;z-index:1200}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}"] - }] } - ]; - /** @nocollapse */ - NgbToast.ctorParameters = function () { return [ - { type: String, decorators: [{ type: Attribute, args: ['aria-live',] }] }, - { type: NgbToastConfig } - ]; }; - NgbToast.propDecorators = { - delay: [{ type: Input }], - autohide: [{ type: Input }], - header: [{ type: Input }], - contentHeaderTpl: [{ type: ContentChild, args: [NgbToastHeader, { read: TemplateRef, static: true },] }], - hideOutput: [{ type: Output, args: ['hide',] }] - }; - return NgbToast; -}()); -export { NgbToast }; -if (false) { - /** - * @type {?} - * @private - */ - NgbToast.prototype._timeoutID; - /** - * Delay after which the toast will hide (ms). - * default: `500` (ms) (inherited from NgbToastConfig) - * @type {?} - */ - NgbToast.prototype.delay; - /** - * Auto hide the toast after a delay in ms. - * default: `true` (inherited from NgbToastConfig) - * @type {?} - */ - NgbToast.prototype.autohide; - /** - * Text to be used as toast's header. - * Ignored if a ContentChild template is specified at the same time. - * @type {?} - */ - NgbToast.prototype.header; - /** - * A template like `` can be - * used in the projected content to allow markup usage. - * @type {?} - */ - NgbToast.prototype.contentHeaderTpl; - /** - * An event fired immediately when toast's `hide()` method has been called. - * It can only occur in 2 different scenarios: - * - `autohide` timeout fires - * - user clicks on a closing cross (×) - * - * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of - * that. - * @type {?} - */ - NgbToast.prototype.hideOutput; - /** @type {?} */ - NgbToast.prototype.ariaLive; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ0b2FzdC90b2FzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUVMLFNBQVMsRUFDVCxTQUFTLEVBQ1QsWUFBWSxFQUNaLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUVMLE1BQU0sRUFFTixXQUFXLEVBQ1gsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQzs7Ozs7OztBQVE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xuICAgICAgdGhpcy5hcmlhTGl2ZSA9IGNvbmZpZy5hcmlhTGl2ZTtcbiAgICB9XG4gICAgdGhpcy5kZWxheSA9IGNvbmZpZy5kZWxheTtcbiAgICB0aGlzLmF1dG9oaWRlID0gY29uZmlnLmF1dG9oaWRlO1xuICB9XG5cbiAgbmdBZnRlckNvbnRlbnRJbml0KCkgeyB0aGlzLl9pbml0KCk7IH1cblxuICBuZ09uQ2hhbmdlcyhjaGFuZ2VzOiBTaW1wbGVDaGFuZ2VzKSB7XG4gICAgaWYgKCdhdXRvaGlkZScgaW4gY2hhbmdlcykge1xuICAgICAgdGhpcy5fY2xlYXJUaW1lb3V0KCk7XG4gICAgICB0aGlzLl9pbml0KCk7XG4gICAgfVxuICB9XG5cbiAgaGlkZSgpIHtcbiAgICB0aGlzLl9jbGVhclRpbWVvdXQoKTtcbiAgICB0aGlzLmhpZGVPdXRwdXQuZW1pdCgpO1xuICB9XG5cbiAgcHJpdmF0ZSBfaW5pdCgpIHtcbiAgICBpZiAodGhpcy5hdXRvaGlkZSAmJiAhdGhpcy5fdGltZW91dElEKSB7XG4gICAgICB0aGlzLl90aW1lb3V0SUQgPSBzZXRUaW1lb3V0KCgpID0+IHRoaXMuaGlkZSgpLCB0aGlzLmRlbGF5KTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIF9jbGVhclRpbWVvdXQoKSB7XG4gICAgaWYgKHRoaXMuX3RpbWVvdXRJRCkge1xuICAgICAgY2xlYXJUaW1lb3V0KHRoaXMuX3RpbWVvdXRJRCk7XG4gICAgICB0aGlzLl90aW1lb3V0SUQgPSBudWxsO1xuICAgIH1cbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/toast/toast.module.js b/dist/ng-bootstrap/esm5/toast/toast.module.js deleted file mode 100644 index a2b224b..0000000 --- a/dist/ng-bootstrap/esm5/toast/toast.module.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { CommonModule } from '@angular/common'; -import { NgModule } from '@angular/core'; -import { NgbToast, NgbToastHeader } from './toast'; -export { NgbToast, NgbToastHeader } from './toast'; -export { NgbToastConfig } from './toast-config'; -var NgbToastModule = /** @class */ (function () { - function NgbToastModule() { - } - NgbToastModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbToast, NgbToastHeader], imports: [CommonModule], exports: [NgbToast, NgbToastHeader] },] } - ]; - return NgbToastModule; -}()); -export { NgbToastModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidG9hc3QvdG9hc3QubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV2QyxPQUFPLEVBQUMsUUFBUSxFQUFFLGNBQWMsRUFBQyxNQUFNLFNBQVMsQ0FBQztBQUVqRCxPQUFPLEVBQUMsUUFBUSxFQUFFLGNBQWMsRUFBQyxNQUFNLFNBQVMsQ0FBQztBQUNqRCxPQUFPLEVBQUMsY0FBYyxFQUFrQixNQUFNLGdCQUFnQixDQUFDO0FBRS9EO0lBQUE7SUFFQSxDQUFDOztnQkFGQSxRQUFRLFNBQUMsRUFBQyxZQUFZLEVBQUUsQ0FBQyxRQUFRLEVBQUUsY0FBYyxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsWUFBWSxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsUUFBUSxFQUFFLGNBQWMsQ0FBQyxFQUFDOztJQUVsSCxxQkFBQztDQUFBLEFBRkQsSUFFQztTQURZLGNBQWMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0NvbW1vbk1vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQge05nYlRvYXN0LCBOZ2JUb2FzdEhlYWRlcn0gZnJvbSAnLi90b2FzdCc7XG5cbmV4cG9ydCB7TmdiVG9hc3QsIE5nYlRvYXN0SGVhZGVyfSBmcm9tICcuL3RvYXN0JztcbmV4cG9ydCB7TmdiVG9hc3RDb25maWcsIE5nYlRvYXN0T3B0aW9uc30gZnJvbSAnLi90b2FzdC1jb25maWcnO1xuXG5ATmdNb2R1bGUoe2RlY2xhcmF0aW9uczogW05nYlRvYXN0LCBOZ2JUb2FzdEhlYWRlcl0sIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLCBleHBvcnRzOiBbTmdiVG9hc3QsIE5nYlRvYXN0SGVhZGVyXX0pXG5leHBvcnQgY2xhc3MgTmdiVG9hc3RNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/tooltip/tooltip-config.js b/dist/ng-bootstrap/esm5/tooltip/tooltip-config.js deleted file mode 100644 index f4b0aa7..0000000 --- a/dist/ng-bootstrap/esm5/tooltip/tooltip-config.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tooltips used in the application. - */ -var NgbTooltipConfig = /** @class */ (function () { - function NgbTooltipConfig() { - this.autoClose = true; - this.placement = 'auto'; - this.triggers = 'hover focus'; - this.disableTooltip = false; - this.openDelay = 0; - this.closeDelay = 0; - } - NgbTooltipConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTooltipConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbTooltipConfig_Factory() { return new NgbTooltipConfig(); }, token: NgbTooltipConfig, providedIn: "root" }); - return NgbTooltipConfig; -}()); -export { NgbTooltipConfig }; -if (false) { - /** @type {?} */ - NgbTooltipConfig.prototype.autoClose; - /** @type {?} */ - NgbTooltipConfig.prototype.placement; - /** @type {?} */ - NgbTooltipConfig.prototype.triggers; - /** @type {?} */ - NgbTooltipConfig.prototype.container; - /** @type {?} */ - NgbTooltipConfig.prototype.disableTooltip; - /** @type {?} */ - NgbTooltipConfig.prototype.tooltipClass; - /** @type {?} */ - NgbTooltipConfig.prototype.openDelay; - /** @type {?} */ - NgbTooltipConfig.prototype.closeDelay; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC1jb25maWcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ0b29sdGlwL3Rvb2x0aXAtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QztJQUFBO1FBRUUsY0FBUyxHQUFtQyxJQUFJLENBQUM7UUFDakQsY0FBUyxHQUFtQixNQUFNLENBQUM7UUFDbkMsYUFBUSxHQUFHLGFBQWEsQ0FBQztRQUV6QixtQkFBYyxHQUFHLEtBQUssQ0FBQztRQUV2QixjQUFTLEdBQUcsQ0FBQyxDQUFDO1FBQ2QsZUFBVSxHQUFHLENBQUMsQ0FBQztLQUNoQjs7Z0JBVkEsVUFBVSxTQUFDLE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jogc3RyaW5nO1xuICBkaXNhYmxlVG9vbHRpcCA9IGZhbHNlO1xuICB0b29sdGlwQ2xhc3M6IHN0cmluZztcbiAgb3BlbkRlbGF5ID0gMDtcbiAgY2xvc2VEZWxheSA9IDA7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/tooltip/tooltip.js b/dist/ng-bootstrap/esm5/tooltip/tooltip.js deleted file mode 100644 index 479d86c..0000000 --- a/dist/ng-bootstrap/esm5/tooltip/tooltip.js +++ /dev/null @@ -1,416 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Directive, Input, Output, EventEmitter, ChangeDetectionStrategy, Inject, Injector, Renderer2, ElementRef, ViewContainerRef, ComponentFactoryResolver, NgZone, ViewEncapsulation, ChangeDetectorRef, ApplicationRef } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import { listenToTriggers } from '../util/triggers'; -import { ngbAutoClose } from '../util/autoclose'; -import { positionElements } from '../util/positioning'; -import { PopupService } from '../util/popup'; -import { NgbTooltipConfig } from './tooltip-config'; -/** @type {?} */ -var nextId = 0; -var NgbTooltipWindow = /** @class */ (function () { - function NgbTooltipWindow() { - } - NgbTooltipWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-tooltip-window', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { '[class]': '"tooltip show" + (tooltipClass ? " " + tooltipClass : "")', 'role': 'tooltip', '[id]': 'id' }, - template: "
", - styles: ["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"] - }] } - ]; - NgbTooltipWindow.propDecorators = { - id: [{ type: Input }], - tooltipClass: [{ type: Input }] - }; - return NgbTooltipWindow; -}()); -export { NgbTooltipWindow }; -if (false) { - /** @type {?} */ - NgbTooltipWindow.prototype.id; - /** @type {?} */ - NgbTooltipWindow.prototype.tooltipClass; -} -/** - * A lightweight and extensible directive for fancy tooltip creation. - */ -var NgbTooltip = /** @class */ (function () { - function NgbTooltip(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, _applicationRef) { - var _this = this; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._ngZone = _ngZone; - this._document = _document; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - /** - * An event emitted when the tooltip is shown. Contains no payload. - */ - this.shown = new EventEmitter(); - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - this.hidden = new EventEmitter(); - this._ngbTooltipWindowId = "ngb-tooltip-" + nextId++; - this.autoClose = config.autoClose; - this.placement = config.placement; - this.triggers = config.triggers; - this.container = config.container; - this.disableTooltip = config.disableTooltip; - this.tooltipClass = config.tooltipClass; - this.openDelay = config.openDelay; - this.closeDelay = config.closeDelay; - this._popupService = new PopupService(NgbTooltipWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { - if (_this._windowRef) { - positionElements(_this._elementRef.nativeElement, _this._windowRef.location.nativeElement, _this.placement, _this.container === 'body', 'bs-tooltip'); - } - })); - } - Object.defineProperty(NgbTooltip.prototype, "ngbTooltip", { - get: /** - * @return {?} - */ - function () { return this._ngbTooltip; }, - /** - * The string content or a `TemplateRef` for the content to be displayed in the tooltip. - * - * If the content if falsy, the tooltip won't open. - */ - set: /** - * The string content or a `TemplateRef` for the content to be displayed in the tooltip. - * - * If the content if falsy, the tooltip won't open. - * @param {?} value - * @return {?} - */ - function (value) { - this._ngbTooltip = value; - if (!value && this._windowRef) { - this.close(); - } - }, - enumerable: true, - configurable: true - }); - /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - */ - /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - * @param {?=} context - * @return {?} - */ - NgbTooltip.prototype.open = /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - * @param {?=} context - * @return {?} - */ - function (context) { - var _this = this; - if (!this._windowRef && this._ngbTooltip && !this.disableTooltip) { - this._windowRef = this._popupService.open(this._ngbTooltip, context); - this._windowRef.instance.tooltipClass = this.tooltipClass; - this._windowRef.instance.id = this._ngbTooltipWindowId; - this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbTooltipWindowId); - if (this.container === 'body') { - this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - // We need to detect changes, because we don't know where .open() might be called from. - // Ex. opening tooltip from one of lifecycle hooks that run after the CD - // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception - this._windowRef.changeDetectorRef.detectChanges(); - // We need to mark for check, because tooltip won't work inside the OnPush component. - // Ex. when we use expression like `{{ tooltip.isOpen() : 'opened' : 'closed' }}` - // inside the template of an OnPush component and we change the tooltip from - // open -> closed, the expression in question won't be updated unless we explicitly - // mark the parent component to be checked. - this._windowRef.changeDetectorRef.markForCheck(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this.hidden, [this._windowRef.location.nativeElement]); - this.shown.emit(); - } - }; - /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - */ - /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - NgbTooltip.prototype.close = /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - function () { - if (this._windowRef != null) { - this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby'); - this._popupService.close(); - this._windowRef = null; - this.hidden.emit(); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - */ - /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - NgbTooltip.prototype.toggle = /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - function () { - if (this._windowRef) { - this.close(); - } - else { - this.open(); - } - }; - /** - * Returns `true`, if the popover is currently shown. - */ - /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - NgbTooltip.prototype.isOpen = /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - function () { return this._windowRef != null; }; - /** - * @return {?} - */ - NgbTooltip.prototype.ngOnInit = /** - * @return {?} - */ - function () { - this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay); - }; - /** - * @return {?} - */ - NgbTooltip.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this.close(); - // This check is needed as it might happen that ngOnDestroy is called before ngOnInit - // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199 - if (this._unregisterListenersFn) { - this._unregisterListenersFn(); - } - this._zoneSubscription.unsubscribe(); - }; - NgbTooltip.decorators = [ - { type: Directive, args: [{ selector: '[ngbTooltip]', exportAs: 'ngbTooltip' },] } - ]; - /** @nocollapse */ - NgbTooltip.ctorParameters = function () { return [ - { type: ElementRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: ViewContainerRef }, - { type: NgbTooltipConfig }, - { type: NgZone }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } - ]; }; - NgbTooltip.propDecorators = { - autoClose: [{ type: Input }], - placement: [{ type: Input }], - triggers: [{ type: Input }], - container: [{ type: Input }], - disableTooltip: [{ type: Input }], - tooltipClass: [{ type: Input }], - openDelay: [{ type: Input }], - closeDelay: [{ type: Input }], - shown: [{ type: Output }], - hidden: [{ type: Output }], - ngbTooltip: [{ type: Input }] - }; - return NgbTooltip; -}()); -export { NgbTooltip }; -if (false) { - /** - * Indicates whether the tooltip should be closed on `Escape` key and inside/outside clicks: - * - * * `true` - closes on both outside and inside clicks as well as `Escape` presses - * * `false` - disables the autoClose feature (NB: triggers still apply) - * * `"inside"` - closes on inside clicks as well as Escape presses - * * `"outside"` - closes on outside clicks (sometimes also achievable through triggers) - * as well as `Escape` presses - * - * \@since 3.0.0 - * @type {?} - */ - NgbTooltip.prototype.autoClose; - /** - * The preferred placement of the tooltip. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"auto"` (same as the sequence above). - * - * Please see the [positioning overview](#/positioning) for more details. - * @type {?} - */ - NgbTooltip.prototype.placement; - /** - * Specifies events that should trigger the tooltip. - * - * Supports a space separated list of event names. - * For more details see the [triggers demo](#/components/tooltip/examples#triggers). - * @type {?} - */ - NgbTooltip.prototype.triggers; - /** - * A selector specifying the element the tooltip should be appended to. - * - * Currently only supports `"body"`. - * @type {?} - */ - NgbTooltip.prototype.container; - /** - * If `true`, tooltip is disabled and won't be displayed. - * - * \@since 1.1.0 - * @type {?} - */ - NgbTooltip.prototype.disableTooltip; - /** - * An optional class applied to the tooltip window element. - * - * \@since 3.2.0 - * @type {?} - */ - NgbTooltip.prototype.tooltipClass; - /** - * The opening delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * \@since 4.1.0 - * @type {?} - */ - NgbTooltip.prototype.openDelay; - /** - * The closing delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * \@since 4.1.0 - * @type {?} - */ - NgbTooltip.prototype.closeDelay; - /** - * An event emitted when the tooltip is shown. Contains no payload. - * @type {?} - */ - NgbTooltip.prototype.shown; - /** - * An event emitted when the popover is hidden. Contains no payload. - * @type {?} - */ - NgbTooltip.prototype.hidden; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._ngbTooltip; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._ngbTooltipWindowId; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._popupService; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._windowRef; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._unregisterListenersFn; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._zoneSubscription; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._elementRef; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._document; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._changeDetector; - /** - * @type {?} - * @private - */ - NgbTooltip.prototype._applicationRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInRvb2x0aXAvdG9vbHRpcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxTQUFTLEVBQ1QsS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pcy5fdW5yZWdpc3Rlckxpc3RlbmVyc0ZuID0gbGlzdGVuVG9UcmlnZ2VycyhcbiAgICAgICAgdGhpcy5fcmVuZGVyZXIsIHRoaXMuX2VsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgdGhpcy50cmlnZ2VycywgdGhpcy5pc09wZW4uYmluZCh0aGlzKSwgdGhpcy5vcGVuLmJpbmQodGhpcyksXG4gICAgICAgIHRoaXMuY2xvc2UuYmluZCh0aGlzKSwgK3RoaXMub3BlbkRlbGF5LCArdGhpcy5jbG9zZURlbGF5KTtcbiAgfVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIHRoaXMuY2xvc2UoKTtcbiAgICAvLyBUaGlzIGNoZWNrIGlzIG5lZWRlZCBhcyBpdCBtaWdodCBoYXBwZW4gdGhhdCBuZ09uRGVzdHJveSBpcyBjYWxsZWQgYmVmb3JlIG5nT25Jbml0XG4gICAgLy8gdW5kZXIgY2VydGFpbiBjb25kaXRpb25zLCBzZWU6IGh0dHBzOi8vZ2l0aHViLmNvbS9uZy1ib290c3RyYXAvbmctYm9vdHN0cmFwL2lzc3Vlcy8yMTk5XG4gICAgaWYgKHRoaXMuX3VucmVnaXN0ZXJMaXN0ZW5lcnNGbikge1xuICAgICAgdGhpcy5fdW5yZWdpc3Rlckxpc3RlbmVyc0ZuKCk7XG4gICAgfVxuICAgIHRoaXMuX3pvbmVTdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/tooltip/tooltip.module.js b/dist/ng-bootstrap/esm5/tooltip/tooltip.module.js deleted file mode 100644 index fa8c22a..0000000 --- a/dist/ng-bootstrap/esm5/tooltip/tooltip.module.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { NgbTooltip, NgbTooltipWindow } from './tooltip'; -export { NgbTooltipConfig } from './tooltip-config'; -export { NgbTooltip } from './tooltip'; -var NgbTooltipModule = /** @class */ (function () { - function NgbTooltipModule() { - } - NgbTooltipModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow] },] } - ]; - return NgbTooltipModule; -}()); -export { NgbTooltipModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ0b29sdGlwL3Rvb2x0aXAubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXZDLE9BQU8sRUFBQyxVQUFVLEVBQUUsZ0JBQWdCLEVBQUMsTUFBTSxXQUFXLENBQUM7QUFFdkQsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLFdBQVcsQ0FBQztBQUdyQztJQUFBO0lBRUEsQ0FBQzs7Z0JBRkEsUUFBUSxTQUFDLEVBQUMsWUFBWSxFQUFFLENBQUMsVUFBVSxFQUFFLGdCQUFnQixDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsVUFBVSxDQUFDLEVBQUUsZUFBZSxFQUFFLENBQUMsZ0JBQWdCLENBQUMsRUFBQzs7SUFFcEgsdUJBQUM7Q0FBQSxBQUZELElBRUM7U0FEWSxnQkFBZ0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHtOZ2JUb29sdGlwLCBOZ2JUb29sdGlwV2luZG93fSBmcm9tICcuL3Rvb2x0aXAnO1xuXG5leHBvcnQge05nYlRvb2x0aXBDb25maWd9IGZyb20gJy4vdG9vbHRpcC1jb25maWcnO1xuZXhwb3J0IHtOZ2JUb29sdGlwfSBmcm9tICcuL3Rvb2x0aXAnO1xuZXhwb3J0IHtQbGFjZW1lbnR9IGZyb20gJy4uL3V0aWwvcG9zaXRpb25pbmcnO1xuXG5ATmdNb2R1bGUoe2RlY2xhcmF0aW9uczogW05nYlRvb2x0aXAsIE5nYlRvb2x0aXBXaW5kb3ddLCBleHBvcnRzOiBbTmdiVG9vbHRpcF0sIGVudHJ5Q29tcG9uZW50czogW05nYlRvb2x0aXBXaW5kb3ddfSlcbmV4cG9ydCBjbGFzcyBOZ2JUb29sdGlwTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/typeahead/highlight.js b/dist/ng-bootstrap/esm5/typeahead/highlight.js deleted file mode 100644 index bf6e4f7..0000000 --- a/dist/ng-bootstrap/esm5/typeahead/highlight.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core'; -import { regExpEscape, toString } from '../util/util'; -/** - * A component that helps with text highlighting. - * - * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify - * highlighting: - * - * Ex. `result="Alaska"` and `term="as"` will produce `Alaska`. - */ -var NgbHighlight = /** @class */ (function () { - function NgbHighlight() { - /** - * The CSS class for `` elements wrapping the `term` inside the `result`. - */ - this.highlightClass = 'ngb-highlight'; - } - /** - * @param {?} changes - * @return {?} - */ - NgbHighlight.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - /** @type {?} */ - var result = toString(this.result); - /** @type {?} */ - var terms = Array.isArray(this.term) ? this.term : [this.term]; - /** @type {?} */ - var escapedTerms = terms.map((/** - * @param {?} term - * @return {?} - */ - function (term) { return regExpEscape(toString(term)); })).filter((/** - * @param {?} term - * @return {?} - */ - function (term) { return term; })); - this.parts = escapedTerms.length ? result.split(new RegExp("(" + escapedTerms.join('|') + ")", 'gmi')) : [result]; - }; - NgbHighlight.decorators = [ - { type: Component, args: [{ - selector: 'ngb-highlight', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: "" + - "{{part}}{{part}}" + - "", - styles: [".ngb-highlight{font-weight:700}"] - }] } - ]; - NgbHighlight.propDecorators = { - highlightClass: [{ type: Input }], - result: [{ type: Input }], - term: [{ type: Input }] - }; - return NgbHighlight; -}()); -export { NgbHighlight }; -if (false) { - /** @type {?} */ - NgbHighlight.prototype.parts; - /** - * The CSS class for `` elements wrapping the `term` inside the `result`. - * @type {?} - */ - NgbHighlight.prototype.highlightClass; - /** - * The text highlighting is added to. - * - * If the `term` is found inside this text, it will be highlighted. - * If the `term` contains array then all the items from it will be highlighted inside the text. - * @type {?} - */ - NgbHighlight.prototype.result; - /** - * The term or array of terms to be highlighted. - * Since version `v4.2.0` term could be a `string[]` - * @type {?} - */ - NgbHighlight.prototype.term; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGxpZ2h0LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidHlwZWFoZWFkL2hpZ2hsaWdodC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQWEsdUJBQXVCLEVBQWlCLGlCQUFpQixFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3JILE9BQU8sRUFBQyxZQUFZLEVBQUUsUUFBUSxFQUFDLE1BQU0s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dGVtcyBmcm9tIGl0IHdpbGwgYmUgaGlnaGxpZ2h0ZWQgaW5zaWRlIHRoZSB0ZXh0LlxuICAgKi9cbiAgQElucHV0KCkgcmVzdWx0OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFRoZSB0ZXJtIG9yIGFycmF5IG9mIHRlcm1zIHRvIGJlIGhpZ2hsaWdodGVkLlxuICAgKiBTaW5jZSB2ZXJzaW9uIGB2NC4yLjBgIHRlcm0gY291bGQgYmUgYSBgc3RyaW5nW11gXG4gICAqL1xuICBASW5wdXQoKSB0ZXJtOiBzdHJpbmcgfCBzdHJpbmdbXTtcblxuICBuZ09uQ2hhbmdlcyhjaGFuZ2VzOiBTaW1wbGVDaGFuZ2VzKSB7XG4gICAgY29uc3QgcmVzdWx0ID0gdG9TdHJpbmcodGhpcy5yZXN1bHQpO1xuXG4gICAgY29uc3QgdGVybXMgPSBBcnJheS5pc0FycmF5KHRoaXMudGVybSkgPyB0aGlzLnRlcm0gOiBbdGhpcy50ZXJtXTtcbiAgICBjb25zdCBlc2NhcGVkVGVybXMgPSB0ZXJtcy5tYXAodGVybSA9PiByZWdFeHBFc2NhcGUodG9TdHJpbmcodGVybSkpKS5maWx0ZXIodGVybSA9PiB0ZXJtKTtcblxuICAgIHRoaXMucGFydHMgPSBlc2NhcGVkVGVybXMubGVuZ3RoID8gcmVzdWx0LnNwbGl0KG5ldyBSZWdFeHAoYCgke2VzY2FwZWRUZXJtcy5qb2luKCd8Jyl9KWAsICdnbWknKSkgOiBbcmVzdWx0XTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/typeahead/typeahead-config.js b/dist/ng-bootstrap/esm5/typeahead/typeahead-config.js deleted file mode 100644 index b9d8805..0000000 --- a/dist/ng-bootstrap/esm5/typeahead/typeahead-config.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable } from '@angular/core'; -import * as i0 from "@angular/core"; -/** - * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the typeaheads used in the application. - */ -var NgbTypeaheadConfig = /** @class */ (function () { - function NgbTypeaheadConfig() { - this.editable = true; - this.focusFirst = true; - this.showHint = false; - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - } - NgbTypeaheadConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTypeaheadConfig.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function NgbTypeaheadConfig_Factory() { return new NgbTypeaheadConfig(); }, token: NgbTypeaheadConfig, providedIn: "root" }); - return NgbTypeaheadConfig; -}()); -export { NgbTypeaheadConfig }; -if (false) { - /** @type {?} */ - NgbTypeaheadConfig.prototype.container; - /** @type {?} */ - NgbTypeaheadConfig.prototype.editable; - /** @type {?} */ - NgbTypeaheadConfig.prototype.focusFirst; - /** @type {?} */ - NgbTypeaheadConfig.prototype.showHint; - /** @type {?} */ - NgbTypeaheadConfig.prototype.placement; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInR5cGVhaGVhZC90eXBlYWhlYWQtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQVN6QztJQUFBO1FBR0UsYUFBUSxHQUFHLElBQUksQ0FBQztRQUNoQixlQUFVLEdBQUcsSUFBSSxDQUFDO1FBQ2xCLGFBQVEsR0FBRyxLQUFLLENBQU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BmYWxzZTtcbiAgcGxhY2VtZW50OiBQbGFjZW1lbnRBcnJheSA9IFsnYm90dG9tLWxlZnQnLCAnYm90dG9tLXJpZ2h0JywgJ3RvcC1sZWZ0JywgJ3RvcC1yaWdodCddO1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/typeahead/typeahead-window.js b/dist/ng-bootstrap/esm5/typeahead/typeahead-window.js deleted file mode 100644 index 903ff06..0000000 --- a/dist/ng-bootstrap/esm5/typeahead/typeahead-window.js +++ /dev/null @@ -1,202 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Component, Input, Output, EventEmitter, TemplateRef } from '@angular/core'; -import { toString } from '../util/util'; -/** - * The context for the typeahead result template in case you want to override the default one. - * @record - */ -export function ResultTemplateContext() { } -if (false) { - /** - * Your typeahead result item. - * @type {?} - */ - ResultTemplateContext.prototype.result; - /** - * Search term from the `` used to get current result. - * @type {?} - */ - ResultTemplateContext.prototype.term; -} -var NgbTypeaheadWindow = /** @class */ (function () { - function NgbTypeaheadWindow() { - this.activeIdx = 0; - /** - * Flag indicating if the first row should be active initially - */ - this.focusFirst = true; - /** - * A function used to format a given result before display. This function should return a formatted string without any - * HTML markup - */ - this.formatter = toString; - /** - * Event raised when user selects a particular result row - */ - this.selectEvent = new EventEmitter(); - this.activeChangeEvent = new EventEmitter(); - } - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.hasActive = /** - * @return {?} - */ - function () { return this.activeIdx > -1 && this.activeIdx < this.results.length; }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.getActive = /** - * @return {?} - */ - function () { return this.results[this.activeIdx]; }; - /** - * @param {?} activeIdx - * @return {?} - */ - NgbTypeaheadWindow.prototype.markActive = /** - * @param {?} activeIdx - * @return {?} - */ - function (activeIdx) { - this.activeIdx = activeIdx; - this._activeChanged(); - }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.next = /** - * @return {?} - */ - function () { - if (this.activeIdx === this.results.length - 1) { - this.activeIdx = this.focusFirst ? (this.activeIdx + 1) % this.results.length : -1; - } - else { - this.activeIdx++; - } - this._activeChanged(); - }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.prev = /** - * @return {?} - */ - function () { - if (this.activeIdx < 0) { - this.activeIdx = this.results.length - 1; - } - else if (this.activeIdx === 0) { - this.activeIdx = this.focusFirst ? this.results.length - 1 : -1; - } - else { - this.activeIdx--; - } - this._activeChanged(); - }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.resetActive = /** - * @return {?} - */ - function () { - this.activeIdx = this.focusFirst ? 0 : -1; - this._activeChanged(); - }; - /** - * @param {?} item - * @return {?} - */ - NgbTypeaheadWindow.prototype.select = /** - * @param {?} item - * @return {?} - */ - function (item) { this.selectEvent.emit(item); }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.ngOnInit = /** - * @return {?} - */ - function () { this.resetActive(); }; - /** - * @private - * @return {?} - */ - NgbTypeaheadWindow.prototype._activeChanged = /** - * @private - * @return {?} - */ - function () { - this.activeChangeEvent.emit(this.activeIdx >= 0 ? this.id + '-' + this.activeIdx : undefined); - }; - NgbTypeaheadWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-typeahead-window', - exportAs: 'ngbTypeaheadWindow', - host: { '(mousedown)': '$event.preventDefault()', 'class': 'dropdown-menu show', 'role': 'listbox', '[id]': 'id' }, - template: "\n \n \n \n \n \n \n " - }] } - ]; - NgbTypeaheadWindow.propDecorators = { - id: [{ type: Input }], - focusFirst: [{ type: Input }], - results: [{ type: Input }], - term: [{ type: Input }], - formatter: [{ type: Input }], - resultTemplate: [{ type: Input }], - selectEvent: [{ type: Output, args: ['select',] }], - activeChangeEvent: [{ type: Output, args: ['activeChange',] }] - }; - return NgbTypeaheadWindow; -}()); -export { NgbTypeaheadWindow }; -if (false) { - /** @type {?} */ - NgbTypeaheadWindow.prototype.activeIdx; - /** - * The id for the typeahead window. The id should be unique and the same - * as the associated typeahead's id. - * @type {?} - */ - NgbTypeaheadWindow.prototype.id; - /** - * Flag indicating if the first row should be active initially - * @type {?} - */ - NgbTypeaheadWindow.prototype.focusFirst; - /** - * Typeahead match results to be displayed - * @type {?} - */ - NgbTypeaheadWindow.prototype.results; - /** - * Search term used to get current results - * @type {?} - */ - NgbTypeaheadWindow.prototype.term; - /** - * A function used to format a given result before display. This function should return a formatted string without any - * HTML markup - * @type {?} - */ - NgbTypeaheadWindow.prototype.formatter; - /** - * A template to override a matching result default display - * @type {?} - */ - NgbTypeaheadWindow.prototype.resultTemplate; - /** - * Event raised when user selects a particular result row - * @type {?} - */ - NgbTypeaheadWindow.prototype.selectEvent; - /** @type {?} */ - NgbTypeaheadWindow.prototype.activeChangeEvent; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLXdpbmRvdy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInR5cGVhaGVhZC90eXBlYWhlYWQtd2luZG93LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLFdBQVcsRUFBUyxNQUFNLGVBQWUsQ0FBQztBQUUxRixPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sY0FBYyxDQUFDOzs7OztBQUt0QywyQ0FVQzs7Ozs7O0lBTkMsdUNBQVk7Ozs7O0lBS1oscUNBQWE7O0FBR2Y7SUFBQTtRQXFCRSxjQUFTLEdBQUcsQ0FBQyxDQUFDOzs7O1FBV0wsZUFBVSxHQUFHLElBQUksQ0FBQzs7Ozs7UUFnQmxCLGNBQVMsR0FBRyxRQUFRLENBQUM7Ozs7UUFVWixnQkFBVyxH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G4gICAgdGhpcy5hY3RpdmVDaGFuZ2VFdmVudC5lbWl0KHRoaXMuYWN0aXZlSWR4ID49IDAgPyB0aGlzLmlkICsgJy0nICsgdGhpcy5hY3RpdmVJZHggOiB1bmRlZmluZWQpO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/typeahead/typeahead.js b/dist/ng-bootstrap/esm5/typeahead/typeahead.js deleted file mode 100644 index ef8594e..0000000 --- a/dist/ng-bootstrap/esm5/typeahead/typeahead.js +++ /dev/null @@ -1,730 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { ChangeDetectorRef, ComponentFactoryResolver, Directive, ElementRef, EventEmitter, forwardRef, Inject, Injector, Input, NgZone, Output, Renderer2, TemplateRef, ViewContainerRef, ApplicationRef } from '@angular/core'; -import { NG_VALUE_ACCESSOR } from '@angular/forms'; -import { DOCUMENT } from '@angular/common'; -import { BehaviorSubject, fromEvent, Subject } from 'rxjs'; -import { map, switchMap, tap } from 'rxjs/operators'; -import { Live } from '../util/accessibility/live'; -import { ngbAutoClose } from '../util/autoclose'; -import { Key } from '../util/key'; -import { PopupService } from '../util/popup'; -import { positionElements } from '../util/positioning'; -import { isDefined, toString } from '../util/util'; -import { NgbTypeaheadConfig } from './typeahead-config'; -import { NgbTypeaheadWindow } from './typeahead-window'; -/** @type {?} */ -var NGB_TYPEAHEAD_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbTypeahead; })), - multi: true -}; -/** - * An event emitted right before an item is selected from the result list. - * @record - */ -export function NgbTypeaheadSelectItemEvent() { } -if (false) { - /** - * The item from the result list about to be selected. - * @type {?} - */ - NgbTypeaheadSelectItemEvent.prototype.item; - /** - * Calling this function will prevent item selection from happening. - * @type {?} - */ - NgbTypeaheadSelectItemEvent.prototype.preventDefault; -} -/** @type {?} */ -var nextWindowId = 0; -/** - * A directive providing a simple way of creating powerful typeaheads from any text input. - */ -var NgbTypeahead = /** @class */ (function () { - function NgbTypeahead(_elementRef, _viewContainerRef, _renderer, _injector, componentFactoryResolver, config, ngZone, _live, _document, _ngZone, _changeDetector, _applicationRef) { - var _this = this; - this._elementRef = _elementRef; - this._viewContainerRef = _viewContainerRef; - this._renderer = _renderer; - this._injector = _injector; - this._live = _live; - this._document = _document; - this._ngZone = _ngZone; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - this._closed$ = new Subject(); - /** - * The value for the `autocomplete` attribute for the `` element. - * - * Defaults to `"off"` to disable the native browser autocomplete, but you can override it if necessary. - * - * \@since 2.1.0 - */ - this.autocomplete = 'off'; - /** - * The preferred placement of the typeahead. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - this.placement = 'bottom-left'; - /** - * An event emitted right before an item is selected from the result list. - * - * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent). - */ - this.selectItem = new EventEmitter(); - this.popupId = "ngb-typeahead-" + nextWindowId++; - this._onTouched = (/** - * @return {?} - */ - function () { }); - this._onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.container = config.container; - this.editable = config.editable; - this.focusFirst = config.focusFirst; - this.showHint = config.showHint; - this.placement = config.placement; - this._valueChanges = fromEvent(_elementRef.nativeElement, 'input') - .pipe(map((/** - * @param {?} $event - * @return {?} - */ - function ($event) { return ((/** @type {?} */ ($event.target))).value; }))); - this._resubscribeTypeahead = new BehaviorSubject(null); - this._popupService = new PopupService(NgbTypeaheadWindow, _injector, _viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { - if (_this.isPopupOpen()) { - positionElements(_this._elementRef.nativeElement, _this._windowRef.location.nativeElement, _this.placement, _this.container === 'body'); - } - })); - } - /** - * @return {?} - */ - NgbTypeahead.prototype.ngOnInit = /** - * @return {?} - */ - function () { - var _this = this; - /** @type {?} */ - var inputValues$ = this._valueChanges.pipe(tap((/** - * @param {?} value - * @return {?} - */ - function (value) { - _this._inputValueBackup = _this.showHint ? value : null; - if (_this.editable) { - _this._onChange(value); - } - }))); - /** @type {?} */ - var results$ = inputValues$.pipe(this.ngbTypeahead); - /** @type {?} */ - var processedResults$ = results$.pipe(tap((/** - * @return {?} - */ - function () { - if (!_this.editable) { - _this._onChange(undefined); - } - }))); - /** @type {?} */ - var userInput$ = this._resubscribeTypeahead.pipe(switchMap((/** - * @return {?} - */ - function () { return processedResults$; }))); - this._subscription = this._subscribeToUserInput(userInput$); - }; - /** - * @return {?} - */ - NgbTypeahead.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this._closePopup(); - this._unsubscribeFromUserInput(); - this._zoneSubscription.unsubscribe(); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbTypeahead.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbTypeahead.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onTouched = fn; }; - /** - * @param {?} value - * @return {?} - */ - NgbTypeahead.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._writeInputValue(this._formatItemForInput(value)); - if (this.showHint) { - this._inputValueBackup = value; - } - }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbTypeahead.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled); - }; - /** - * Dismisses typeahead popup window - */ - /** - * Dismisses typeahead popup window - * @return {?} - */ - NgbTypeahead.prototype.dismissPopup = /** - * Dismisses typeahead popup window - * @return {?} - */ - function () { - if (this.isPopupOpen()) { - this._resubscribeTypeahead.next(null); - this._closePopup(); - if (this.showHint && this._inputValueBackup !== null) { - this._writeInputValue(this._inputValueBackup); - } - this._changeDetector.markForCheck(); - } - }; - /** - * Returns true if the typeahead popup window is displayed - */ - /** - * Returns true if the typeahead popup window is displayed - * @return {?} - */ - NgbTypeahead.prototype.isPopupOpen = /** - * Returns true if the typeahead popup window is displayed - * @return {?} - */ - function () { return this._windowRef != null; }; - /** - * @return {?} - */ - NgbTypeahead.prototype.handleBlur = /** - * @return {?} - */ - function () { - this._resubscribeTypeahead.next(null); - this._onTouched(); - }; - /** - * @param {?} event - * @return {?} - */ - NgbTypeahead.prototype.handleKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { - if (!this.isPopupOpen()) { - return; - } - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.ArrowDown: - event.preventDefault(); - this._windowRef.instance.next(); - this._showHint(); - break; - case Key.ArrowUp: - event.preventDefault(); - this._windowRef.instance.prev(); - this._showHint(); - break; - case Key.Enter: - case Key.Tab: - /** @type {?} */ - var result = this._windowRef.instance.getActive(); - if (isDefined(result)) { - event.preventDefault(); - event.stopPropagation(); - this._selectResult(result); - } - this._closePopup(); - break; - } - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._openPopup = /** - * @private - * @return {?} - */ - function () { - var _this = this; - if (!this.isPopupOpen()) { - this._inputValueBackup = this._elementRef.nativeElement.value; - this._windowRef = this._popupService.open(); - this._windowRef.instance.id = this.popupId; - this._windowRef.instance.selectEvent.subscribe((/** - * @param {?} result - * @return {?} - */ - function (result) { return _this._selectResultClosePopup(result); })); - this._windowRef.instance.activeChangeEvent.subscribe((/** - * @param {?} activeId - * @return {?} - */ - function (activeId) { return _this.activeDescendant = activeId; })); - if (this.container === 'body') { - window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - this._changeDetector.markForCheck(); - ngbAutoClose(this._ngZone, this._document, 'outside', (/** - * @return {?} - */ - function () { return _this.dismissPopup(); }), this._closed$, [this._elementRef.nativeElement, this._windowRef.location.nativeElement]); - } - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._closePopup = /** - * @private - * @return {?} - */ - function () { - this._closed$.next(); - this._popupService.close(); - this._windowRef = null; - this.activeDescendant = undefined; - }; - /** - * @private - * @param {?} result - * @return {?} - */ - NgbTypeahead.prototype._selectResult = /** - * @private - * @param {?} result - * @return {?} - */ - function (result) { - /** @type {?} */ - var defaultPrevented = false; - this.selectItem.emit({ item: result, preventDefault: (/** - * @return {?} - */ - function () { defaultPrevented = true; }) }); - this._resubscribeTypeahead.next(null); - if (!defaultPrevented) { - this.writeValue(result); - this._onChange(result); - } - }; - /** - * @private - * @param {?} result - * @return {?} - */ - NgbTypeahead.prototype._selectResultClosePopup = /** - * @private - * @param {?} result - * @return {?} - */ - function (result) { - this._selectResult(result); - this._closePopup(); - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._showHint = /** - * @private - * @return {?} - */ - function () { - if (this.showHint && this._windowRef.instance.hasActive() && this._inputValueBackup != null) { - /** @type {?} */ - var userInputLowerCase = this._inputValueBackup.toLowerCase(); - /** @type {?} */ - var formattedVal = this._formatItemForInput(this._windowRef.instance.getActive()); - if (userInputLowerCase === formattedVal.substr(0, this._inputValueBackup.length).toLowerCase()) { - this._writeInputValue(this._inputValueBackup + formattedVal.substr(this._inputValueBackup.length)); - this._elementRef.nativeElement['setSelectionRange'].apply(this._elementRef.nativeElement, [this._inputValueBackup.length, formattedVal.length]); - } - else { - this._writeInputValue(formattedVal); - } - } - }; - /** - * @private - * @param {?} item - * @return {?} - */ - NgbTypeahead.prototype._formatItemForInput = /** - * @private - * @param {?} item - * @return {?} - */ - function (item) { - return item != null && this.inputFormatter ? this.inputFormatter(item) : toString(item); - }; - /** - * @private - * @param {?} value - * @return {?} - */ - NgbTypeahead.prototype._writeInputValue = /** - * @private - * @param {?} value - * @return {?} - */ - function (value) { - this._renderer.setProperty(this._elementRef.nativeElement, 'value', toString(value)); - }; - /** - * @private - * @param {?} userInput$ - * @return {?} - */ - NgbTypeahead.prototype._subscribeToUserInput = /** - * @private - * @param {?} userInput$ - * @return {?} - */ - function (userInput$) { - var _this = this; - return userInput$.subscribe((/** - * @param {?} results - * @return {?} - */ - function (results) { - if (!results || results.length === 0) { - _this._closePopup(); - } - else { - _this._openPopup(); - _this._windowRef.instance.focusFirst = _this.focusFirst; - _this._windowRef.instance.results = results; - _this._windowRef.instance.term = _this._elementRef.nativeElement.value; - if (_this.resultFormatter) { - _this._windowRef.instance.formatter = _this.resultFormatter; - } - if (_this.resultTemplate) { - _this._windowRef.instance.resultTemplate = _this.resultTemplate; - } - _this._windowRef.instance.resetActive(); - // The observable stream we are subscribing to might have async steps - // and if a component containing typeahead is using the OnPush strategy - // the change detection turn wouldn't be invoked automatically. - _this._windowRef.changeDetectorRef.detectChanges(); - _this._showHint(); - } - // live announcer - /** @type {?} */ - var count = results ? results.length : 0; - _this._live.say(count === 0 ? 'No results available' : count + " result" + (count === 1 ? '' : 's') + " available"); - })); - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._unsubscribeFromUserInput = /** - * @private - * @return {?} - */ - function () { - if (this._subscription) { - this._subscription.unsubscribe(); - } - this._subscription = null; - }; - NgbTypeahead.decorators = [ - { type: Directive, args: [{ - selector: 'input[ngbTypeahead]', - exportAs: 'ngbTypeahead', - host: { - '(blur)': 'handleBlur()', - '[class.open]': 'isPopupOpen()', - '(keydown)': 'handleKeyDown($event)', - '[autocomplete]': 'autocomplete', - 'autocapitalize': 'off', - 'autocorrect': 'off', - 'role': 'combobox', - 'aria-multiline': 'false', - '[attr.aria-autocomplete]': 'showHint ? "both" : "list"', - '[attr.aria-activedescendant]': 'activeDescendant', - '[attr.aria-owns]': 'isPopupOpen() ? popupId : null', - '[attr.aria-expanded]': 'isPopupOpen()' - }, - providers: [NGB_TYPEAHEAD_VALUE_ACCESSOR] - },] } - ]; - /** @nocollapse */ - NgbTypeahead.ctorParameters = function () { return [ - { type: ElementRef }, - { type: ViewContainerRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: NgbTypeaheadConfig }, - { type: NgZone }, - { type: Live }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: NgZone }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } - ]; }; - NgbTypeahead.propDecorators = { - autocomplete: [{ type: Input }], - container: [{ type: Input }], - editable: [{ type: Input }], - focusFirst: [{ type: Input }], - inputFormatter: [{ type: Input }], - ngbTypeahead: [{ type: Input }], - resultFormatter: [{ type: Input }], - resultTemplate: [{ type: Input }], - showHint: [{ type: Input }], - placement: [{ type: Input }], - selectItem: [{ type: Output }] - }; - return NgbTypeahead; -}()); -export { NgbTypeahead }; -if (false) { - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._popupService; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._subscription; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._closed$; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._inputValueBackup; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._valueChanges; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._resubscribeTypeahead; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._windowRef; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._zoneSubscription; - /** - * The value for the `autocomplete` attribute for the `` element. - * - * Defaults to `"off"` to disable the native browser autocomplete, but you can override it if necessary. - * - * \@since 2.1.0 - * @type {?} - */ - NgbTypeahead.prototype.autocomplete; - /** - * A selector specifying the element the typeahead popup will be appended to. - * - * Currently only supports `"body"`. - * @type {?} - */ - NgbTypeahead.prototype.container; - /** - * If `true`, model values will not be restricted only to items selected from the popup. - * @type {?} - */ - NgbTypeahead.prototype.editable; - /** - * If `true`, the first item in the result list will always stay focused while typing. - * @type {?} - */ - NgbTypeahead.prototype.focusFirst; - /** - * The function that converts an item from the result list to a `string` to display in the `` field. - * - * It is called when the user selects something in the popup or the model value changes, so the input needs to - * be updated. - * @type {?} - */ - NgbTypeahead.prototype.inputFormatter; - /** - * The function that converts a stream of text values from the `` element to the stream of the array of items - * to display in the typeahead popup. - * - * If the resulting observable emits a non-empty array - the popup will be shown. If it emits an empty array - the - * popup will be closed. - * - * See the [basic example](#/components/typeahead/examples#basic) for more details. - * - * Note that the `this` argument is `undefined` so you need to explicitly bind it to a desired "this" target. - * @type {?} - */ - NgbTypeahead.prototype.ngbTypeahead; - /** - * The function that converts an item from the result list to a `string` to display in the popup. - * - * Must be provided, if your `ngbTypeahead` returns something other than `Observable`. - * - * Alternatively for more complex markup in the popup you should use `resultTemplate`. - * @type {?} - */ - NgbTypeahead.prototype.resultFormatter; - /** - * The template to override the way resulting items are displayed in the popup. - * - * See the [ResultTemplateContext](#/components/typeahead/api#ResultTemplateContext) for the template context. - * - * Also see the [template for results demo](#/components/typeahead/examples#template) for more details. - * @type {?} - */ - NgbTypeahead.prototype.resultTemplate; - /** - * If `true`, will show the hint in the `` when an item in the result list matches. - * @type {?} - */ - NgbTypeahead.prototype.showHint; - /** - * The preferred placement of the typeahead. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - * @type {?} - */ - NgbTypeahead.prototype.placement; - /** - * An event emitted right before an item is selected from the result list. - * - * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent). - * @type {?} - */ - NgbTypeahead.prototype.selectItem; - /** @type {?} */ - NgbTypeahead.prototype.activeDescendant; - /** @type {?} */ - NgbTypeahead.prototype.popupId; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._onTouched; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._onChange; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._elementRef; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._viewContainerRef; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._renderer; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._injector; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._live; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._document; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._ngZone; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._changeDetector; - /** - * @type {?} - * @private - */ - NgbTypeahead.prototype._applicationRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidHlwZWFoZWFkL3R5cGVhaGVhZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLGlCQUFpQixFQUNqQix3QkFBd0IsRUFFeEIsU0FBUyxFQUNULFVBQVUsRUFDVixZQUFZLEVBQ1osVUFBVSxFQUNWLE1BQU0sRUFDTixRQUFRLEVBQ1IsS0FBSyxFQUNMLE1BQU0sRUFHTixNQUFNLEVBQ04sU0FBUyxFQUNULFdBQVcsRUFDWCxnQkFBZ0IsRUFDaEIsY0FBYyxFQUNmLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBdUIsaUJBQWlCLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUN2RSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUF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lIGludm9rZWQgYXV0b21hdGljYWxseS5cbiAgICAgICAgdGhpcy5fd2luZG93UmVmLmNoYW5nZURldGVjdG9yUmVmLmRldGVjdENoYW5nZXMoKTtcblxuICAgICAgICB0aGlzLl9zaG93SGludCgpO1xuICAgICAgfVxuXG4gICAgICAvLyBsaXZlIGFubm91bmNlclxuICAgICAgY29uc3QgY291bnQgPSByZXN1bHRzID8gcmVzdWx0cy5sZW5ndGggOiAwO1xuICAgICAgdGhpcy5fbGl2ZS5zYXkoY291bnQgPT09IDAgPyAnTm8gcmVzdWx0cyBhdmFpbGFibGUnIDogYCR7Y291bnR9IHJlc3VsdCR7Y291bnQgPT09IDEgPyAnJyA6ICdzJ30gYXZhaWxhYmxlYCk7XG4gICAgfSk7XG4gIH1cblxuICBwcml2YXRlIF91bnN1YnNjcmliZUZyb21Vc2VySW5wdXQoKSB7XG4gICAgaWYgKHRoaXMuX3N1YnNjcmlwdGlvbikge1xuICAgICAgdGhpcy5fc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgfVxuICAgIHRoaXMuX3N1YnNjcmlwdGlvbiA9IG51bGw7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/typeahead/typeahead.module.js b/dist/ng-bootstrap/esm5/typeahead/typeahead.module.js deleted file mode 100644 index 14030c4..0000000 --- a/dist/ng-bootstrap/esm5/typeahead/typeahead.module.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NgbHighlight } from './highlight'; -import { NgbTypeaheadWindow } from './typeahead-window'; -import { NgbTypeahead } from './typeahead'; -export { NgbHighlight } from './highlight'; -export { NgbTypeaheadWindow } from './typeahead-window'; -export { NgbTypeaheadConfig } from './typeahead-config'; -export { NgbTypeahead } from './typeahead'; -var NgbTypeaheadModule = /** @class */ (function () { - function NgbTypeaheadModule() { - } - NgbTypeaheadModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow], - exports: [NgbTypeahead, NgbHighlight], - imports: [CommonModule], - entryComponents: [NgbTypeaheadWindow] - },] } - ]; - return NgbTypeaheadModule; -}()); -export { NgbTypeaheadModule }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInR5cGVhaGVhZC90eXBlYWhlYWQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUU3QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sYUFBYSxDQUFDO0FBQ3pDLE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLG9CQUFvQixDQUFDO0FBQ3RELE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxhQUFhLENBQUM7QUFFekMsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGFBQWEsQ0FBQztBQUN6QyxPQUFPLEVBQUMsa0JBQWtCLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQUMsa0JBQWtCLEVBQUMsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQUMsWUFBWSxFQUE4QixNQUFNLGFBQWEsQ0FBQztBQUV0RTtJQUFBO0lBT0EsQ0FBQzs7Z0JBUEEsUUFBUSxTQUFDO29CQUNSLFlBQVksRUFBRSxDQ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pbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbiAgZW50cnlDb21wb25lbnRzOiBbTmdiVHlwZWFoZWFkV2luZG93XVxufSlcbmV4cG9ydCBjbGFzcyBOZ2JUeXBlYWhlYWRNb2R1bGUge1xufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/util/accessibility/live.js b/dist/ng-bootstrap/esm5/util/accessibility/live.js deleted file mode 100644 index 061b009..0000000 --- a/dist/ng-bootstrap/esm5/util/accessibility/live.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable, Inject, InjectionToken } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import * as i0 from "@angular/core"; -import * as i1 from "@angular/common"; -/** @type {?} */ -export var ARIA_LIVE_DELAY = new InjectionToken('live announcer delay', { providedIn: 'root', factory: ARIA_LIVE_DELAY_FACTORY }); -/** - * @return {?} - */ -export function ARIA_LIVE_DELAY_FACTORY() { - return 100; -} -/** - * @param {?} document - * @param {?=} lazyCreate - * @return {?} - */ -function getLiveElement(document, lazyCreate) { - if (lazyCreate === void 0) { lazyCreate = false; } - /** @type {?} */ - var element = (/** @type {?} */ (document.body.querySelector('#ngb-live'))); - if (element == null && lazyCreate) { - element = document.createElement('div'); - element.setAttribute('id', 'ngb-live'); - element.setAttribute('aria-live', 'polite'); - element.setAttribute('aria-atomic', 'true'); - element.classList.add('sr-only'); - document.body.appendChild(element); - } - return element; -} -var Live = /** @class */ (function () { - function Live(_document, _delay) { - this._document = _document; - this._delay = _delay; - } - /** - * @return {?} - */ - Live.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - /** @type {?} */ - var element = getLiveElement(this._document); - if (element) { - element.parentElement.removeChild(element); - } - }; - /** - * @param {?} message - * @return {?} - */ - Live.prototype.say = /** - * @param {?} message - * @return {?} - */ - function (message) { - /** @type {?} */ - var element = getLiveElement(this._document, true); - /** @type {?} */ - var delay = this._delay; - element.textContent = ''; - /** @type {?} */ - var setText = (/** - * @return {?} - */ - function () { return element.textContent = message; }); - if (delay === null) { - setText(); - } - else { - setTimeout(setText, delay); - } - }; - Live.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - Live.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: undefined, decorators: [{ type: Inject, args: [ARIA_LIVE_DELAY,] }] } - ]; }; - /** @nocollapse */ Live.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function Live_Factory() { return new Live(i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(ARIA_LIVE_DELAY)); }, token: Live, providedIn: "root" }); - return Live; -}()); -export { Live }; -if (false) { - /** - * @type {?} - * @private - */ - Live.prototype._document; - /** - * @type {?} - * @private - */ - Live.prototype._delay; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInV0aWwvYWNjZXNzaWJpbGl0eS9saXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBRSxjQUFjLEVBQVksTUFBTSxlQUFlLENBQUM7QUFDNUUsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDOzs7O0FBT3pDLE1BQU0sS0FBTyxlQUFlLEdBQUcsSUFBSSxjQUFjLENBQzdDLHNCQUFzQixFQUFFLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBRSxPQUFPLEVBQUUsdUJBQXVCLEVBQUMsQ0FBQzs7OztBQUNuRixNQUFNLFVBQVUsdUJBQXVCO0lBQ3JDLE9BQU8sR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3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoZWxlbWVudCk7XG4gIH1cblxuICByZXR1cm4gZWxlbWVudDtcbn1cblxuXG5cbkBJbmplY3RhYmxlKHtwcm92aWRlZEluOiAncm9vdCd9KVxuZXhwb3J0IGNsYXNzIExpdmUgaW1wbGVtZW50cyBPbkRlc3Ryb3kge1xuICBjb25zdHJ1Y3RvcihASW5qZWN0KERPQ1VNRU5UKSBwcml2YXRlIF9kb2N1bWVudDogYW55LCBASW5qZWN0KEFSSUFfTElWRV9ERUxBWSkgcHJpdmF0ZSBfZGVsYXk6IGFueSkge31cblxuICBuZ09uRGVzdHJveSgpIHtcbiAgICBjb25zdCBlbGVtZW50ID0gZ2V0TGl2ZUVsZW1lbnQodGhpcy5fZG9jdW1lbnQpO1xuICAgIGlmIChlbGVtZW50KSB7XG4gICAgICBlbGVtZW50LnBhcmVudEVsZW1lbnQucmVtb3ZlQ2hpbGQoZWxlbWVudCk7XG4gICAgfVxuICB9XG5cbiAgc2F5KG1lc3NhZ2U6IHN0cmluZykge1xuICAgIGNvbnN0IGVsZW1lbnQgPSBnZXRMaXZlRWxlbWVudCh0aGlzLl9kb2N1bWVudCwgdHJ1ZSk7XG4gICAgY29uc3QgZGVsYXkgPSB0aGlzLl9kZWxheTtcblxuICAgIGVsZW1lbnQudGV4dENvbnRlbnQgPSAnJztcbiAgICBjb25zdCBzZXRUZXh0ID0gKCkgPT4gZWxlbWVudC50ZXh0Q29udGVudCA9IG1lc3NhZ2U7XG4gICAgaWYgKGRlbGF5ID09PSBudWxsKSB7XG4gICAgICBzZXRUZXh0KCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHNldFRpbWVvdXQoc2V0VGV4dCwgZGVsYXkpO1xuICAgIH1cbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/util/autoclose.js b/dist/ng-bootstrap/esm5/util/autoclose.js deleted file mode 100644 index 0ecf3ba..0000000 --- a/dist/ng-bootstrap/esm5/util/autoclose.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { fromEvent, race } from 'rxjs'; -import { delay, filter, map, takeUntil, withLatestFrom } from 'rxjs/operators'; -import { Key } from './key'; -import { closest } from './util'; -/** @type {?} */ -var isContainedIn = (/** - * @param {?} element - * @param {?=} array - * @return {?} - */ -function (element, array) { - return array ? array.some((/** - * @param {?} item - * @return {?} - */ - function (item) { return item.contains(element); })) : false; -}); -var ɵ0 = isContainedIn; -/** @type {?} */ -var matchesSelectorIfAny = (/** - * @param {?} element - * @param {?=} selector - * @return {?} - */ -function (element, selector) { - return !selector || closest(element, selector) != null; -}); -var ɵ1 = matchesSelectorIfAny; -// we'll have to use 'touch' events instead of 'mouse' events on iOS and add a more significant delay -// to avoid re-opening when handling (click) on a toggling element -// TODO: use proper Angular platform detection when NgbAutoClose becomes a service and we can inject PLATFORM_ID -/** @type {?} */ -var iOS = false; -if (typeof navigator !== 'undefined') { - iOS = !!navigator.userAgent && /iPad|iPhone|iPod/.test(navigator.userAgent); -} -/** - * @param {?} zone - * @param {?} document - * @param {?} type - * @param {?} close - * @param {?} closed$ - * @param {?} insideElements - * @param {?=} ignoreElements - * @param {?=} insideSelector - * @return {?} - */ -export function ngbAutoClose(zone, document, type, close, closed$, insideElements, ignoreElements, insideSelector) { - // closing on ESC and outside clicks - if (type) { - zone.runOutsideAngular((/** - * @return {?} - */ - function () { - /** @type {?} */ - var shouldCloseOnClick = (/** - * @param {?} event - * @return {?} - */ - function (event) { - /** @type {?} */ - var element = (/** @type {?} */ (event.target)); - if ((event instanceof MouseEvent && event.button === 2) || isContainedIn(element, ignoreElements)) { - return false; - } - if (type === 'inside') { - return isContainedIn(element, insideElements) && matchesSelectorIfAny(element, insideSelector); - } - else if (type === 'outside') { - return !isContainedIn(element, insideElements); - } - else /* if (type === true) */ { - return matchesSelectorIfAny(element, insideSelector) || !isContainedIn(element, insideElements); - } - }); - /** @type {?} */ - var escapes$ = fromEvent(document, 'keydown') - .pipe(takeUntil(closed$), - // tslint:disable-next-line:deprecation - filter((/** - * @param {?} e - * @return {?} - */ - function (e) { return e.which === Key.Escape; }))); - // we have to pre-calculate 'shouldCloseOnClick' on 'mousedown/touchstart', - // because on 'mouseup/touchend' DOM nodes might be detached - /** @type {?} */ - var mouseDowns$ = fromEvent(document, iOS ? 'touchstart' : 'mousedown') - .pipe(map(shouldCloseOnClick), takeUntil(closed$)); - /** @type {?} */ - var closeableClicks$ = (/** @type {?} */ (fromEvent(document, iOS ? 'touchend' : 'mouseup') - .pipe(withLatestFrom(mouseDowns$), filter((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = tslib_1.__read(_a, 2), _ = _b[0], shouldClose = _b[1]; - return shouldClose; - })), delay(iOS ? 16 : 0), takeUntil(closed$)))); - race([escapes$, closeableClicks$]).subscribe((/** - * @return {?} - */ - function () { return zone.run(close); })); - })); - } -} -export { ɵ0, ɵ1 }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2Nsb3NlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidXRpbC9hdXRvY2xvc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFDQSxPQUFPLEVBQUMsU0FBUyxFQUFjLElBQUksRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUNqRCxPQUFPLEVBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRSxHQUFHLEVBQUUsU0FBUyxFQUFFLGNBQWMsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQzdFLE9BQU8sRUFBQyxHQUFHLEVBQUMsTUFBTSxPQUFPLENBQUM7QUFDMUIsT0FBTyxFQUFDLE9BQU8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tZW50LCBpbnNpZGVTZWxlY3RvcikgfHwgIWlzQ29udGFpbmVkSW4oZWxlbWVudCwgaW5zaWRlRWxlbWVudHMpO1xuICAgICAgICB9XG4gICAgICB9O1xuXG4gICAgICBjb25zdCBlc2NhcGVzJCA9IGZyb21FdmVudDxLZXlib2FyZEV2ZW50Pihkb2N1bWVudCwgJ2tleWRvd24nKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFrZVVudGlsKGNsb3NlZCQpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTpkZXByZWNhdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbHRlcihlID0+IGUud2hpY2ggPT09IEtleS5Fc2NhcGUpKTtcblxuXG4gICAgICAvLyB3ZSBoYXZlIHRvIHByZS1jYWxjdWxhdGUgJ3Nob3VsZENsb3NlT25DbGljaycgb24gJ21vdXNlZG93bi90b3VjaHN0YXJ0JyxcbiAgICAgIC8vIGJlY2F1c2Ugb24gJ21vdXNldXAvdG91Y2hlbmQnIERPTSBub2RlcyBtaWdodCBiZSBkZXRhY2hlZFxuICAgICAgY29uc3QgbW91c2VEb3ducyQgPSBmcm9tRXZlbnQ8TW91c2VFdmVudD4oZG9jdW1lbnQsIGlPUyA/ICd0b3VjaHN0YXJ0JyA6ICdtb3VzZWRvd24nKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnBpcGUobWFwKHNob3VsZENsb3NlT25DbGljayksIHRha2VVbnRpbChjbG9zZWQkKSk7XG5cbiAgICAgIGNvbnN0IGNsb3NlYWJsZUNsaWNrcyQgPSBmcm9tRXZlbnQ8TW91c2VFdmVudD4oZG9jdW1lbnQsIGlPUyA/ICd0b3VjaGVuZCcgOiAnbW91c2V1cCcpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2l0aExhdGVzdEZyb20obW91c2VEb3ducyQpLCBmaWx0ZXIoKFtfLCBzaG91bGRDbG9zZV0pID0+IHNob3VsZENsb3NlKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlbGF5KGlPUyA/IDE2IDogMCksIHRha2VVbnRpbChjbG9zZWQkKSkgYXMgT2JzZXJ2YWJsZTxNb3VzZUV2ZW50PjtcblxuXG4gICAgICByYWNlPEV2ZW50PihbZXNjYXBlcyQsIGNsb3NlYWJsZUNsaWNrcyRdKS5zdWJzY3JpYmUoKCkgPT4gem9uZS5ydW4oY2xvc2UpKTtcbiAgICB9KTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/util/focus-trap.js b/dist/ng-bootstrap/esm5/util/focus-trap.js deleted file mode 100644 index e9a64ea..0000000 --- a/dist/ng-bootstrap/esm5/util/focus-trap.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -import { fromEvent } from 'rxjs'; -import { filter, map, takeUntil, withLatestFrom } from 'rxjs/operators'; -import { Key } from '../util/key'; -/** @type {?} */ -var FOCUSABLE_ELEMENTS_SELECTOR = [ - 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type="hidden"])', 'select:not([disabled])', - 'textarea:not([disabled])', '[contenteditable]', '[tabindex]:not([tabindex="-1"])' -].join(', '); -/** - * Returns first and last focusable elements inside of a given element based on specific CSS selector - * @param {?} element - * @return {?} - */ -export function getFocusableBoundaryElements(element) { - /** @type {?} */ - var list = Array.from((/** @type {?} */ (element.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)))) - .filter((/** - * @param {?} el - * @return {?} - */ - function (el) { return el.tabIndex !== -1; })); - return [list[0], list[list.length - 1]]; -} -/** - * Function that enforces browser focus to be trapped inside a DOM element. - * - * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element - * - * \@param element The element around which focus will be trapped inside - * \@param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners - * and free internal resources - * \@param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to - * false) - * @type {?} - */ -export var ngbFocusTrap = (/** - * @param {?} element - * @param {?} stopFocusTrap$ - * @param {?=} refocusOnClick - * @return {?} - */ -function (element, stopFocusTrap$, refocusOnClick) { - if (refocusOnClick === void 0) { refocusOnClick = false; } - // last focused element - /** @type {?} */ - var lastFocusedElement$ = fromEvent(element, 'focusin').pipe(takeUntil(stopFocusTrap$), map((/** - * @param {?} e - * @return {?} - */ - function (e) { return e.target; }))); - // 'tab' / 'shift+tab' stream - fromEvent(element, 'keydown') - .pipe(takeUntil(stopFocusTrap$), - // tslint:disable:deprecation - filter((/** - * @param {?} e - * @return {?} - */ - function (e) { return e.which === Key.Tab; })), - // tslint:enable:deprecation - withLatestFrom(lastFocusedElement$)) - .subscribe((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = tslib_1.__read(_a, 2), tabEvent = _b[0], focusedElement = _b[1]; - var _c = tslib_1.__read(getFocusableBoundaryElements(element), 2), first = _c[0], last = _c[1]; - if ((focusedElement === first || focusedElement === element) && tabEvent.shiftKey) { - last.focus(); - tabEvent.preventDefault(); - } - if (focusedElement === last && !tabEvent.shiftKey) { - first.focus(); - tabEvent.preventDefault(); - } - })); - // inside click - if (refocusOnClick) { - fromEvent(element, 'click') - .pipe(takeUntil(stopFocusTrap$), withLatestFrom(lastFocusedElement$), map((/** - * @param {?} arr - * @return {?} - */ - function (arr) { return (/** @type {?} */ (arr[1])); }))) - .subscribe((/** - * @param {?} lastFocusedElement - * @return {?} - */ - function (lastFocusedElement) { return lastFocusedElement.focus(); })); - } -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9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iAgICAgICAgY29uc3RbZmlyc3QsIGxhc3RdID0gZ2V0Rm9jdXNhYmxlQm91bmRhcnlFbGVtZW50cyhlbGVtZW50KTtcblxuICAgICAgICBpZiAoKGZvY3VzZWRFbGVtZW50ID09PSBmaXJzdCB8fCBmb2N1c2VkRWxlbWVudCA9PT0gZWxlbWVudCkgJiYgdGFiRXZlbnQuc2hpZnRLZXkpIHtcbiAgICAgICAgICBsYXN0LmZvY3VzKCk7XG4gICAgICAgICAgdGFiRXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChmb2N1c2VkRWxlbWVudCA9PT0gbGFzdCAmJiAhdGFiRXZlbnQuc2hpZnRLZXkpIHtcbiAgICAgICAgICBmaXJzdC5mb2N1cygpO1xuICAgICAgICAgIHRhYkV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuXG4gIC8vIGluc2lkZSBjbGlja1xuICBpZiAocmVmb2N1c09uQ2xpY2spIHtcbiAgICBmcm9tRXZlbnQoZWxlbWVudCwgJ2NsaWNrJylcbiAgICAgICAgLnBpcGUodGFrZVVudGlsKHN0b3BGb2N1c1RyYXAkKSwgd2l0aExhdGVzdEZyb20obGFzdEZvY3VzZWRFbGVtZW50JCksIG1hcChhcnIgPT4gYXJyWzFdIGFzIEhUTUxFbGVtZW50KSlcbiAgICAgICAgLnN1YnNjcmliZShsYXN0Rm9jdXNlZEVsZW1lbnQgPT4gbGFzdEZvY3VzZWRFbGVtZW50LmZvY3VzKCkpO1xuICB9XG59O1xuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/util/key.js b/dist/ng-bootstrap/esm5/util/key.js deleted file mode 100644 index 3fbaab8..0000000 --- a/dist/ng-bootstrap/esm5/util/key.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -var Key = { - Tab: 9, - Enter: 13, - Escape: 27, - Space: 32, - PageUp: 33, - PageDown: 34, - End: 35, - Home: 36, - ArrowLeft: 37, - ArrowUp: 38, - ArrowRight: 39, - ArrowDown: 40, -}; -export { Key }; -Key[Key.Tab] = 'Tab'; -Key[Key.Enter] = 'Enter'; -Key[Key.Escape] = 'Escape'; -Key[Key.Space] = 'Space'; -Key[Key.PageUp] = 'PageUp'; -Key[Key.PageDown] = 'PageDown'; -Key[Key.End] = 'End'; -Key[Key.Home] = 'Home'; -Key[Key.ArrowLeft] = 'ArrowLeft'; -Key[Key.ArrowUp] = 'ArrowUp'; -Key[Key.ArrowRight] = 'ArrowRight'; -Key[Key.ArrowDown] = 'ArrowDown'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidXRpbC9rZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0lBQ0UsTUFBTztJQUNQLFNBQVU7SUFDVixVQUFXO0lBQ1gsU0FBVTtJQUNWLFVBQVc7SUFDWCxZQUFhO0lBQ2IsT0FBUTtJQUNSLFFBQVM7SUFDVCxhQUFjO0lBQ2QsV0FBWTtJQUNaLGNBQWU7SUFDZixhQUFjIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gS2V5IHtcbiAgVGFiID0gOSxcbiAgRW50ZXIgPSAxMyxcbiAgRXNjYXBlID0gMjcsXG4gIFNwYWNlID0gMzIsXG4gIFBhZ2VVcCA9IDMzLFxuICBQYWdlRG93biA9IDM0LFxuICBFbmQgPSAzNSxcbiAgSG9tZSA9IDM2LFxuICBBcnJvd0xlZnQgPSAzNyxcbiAgQXJyb3dVcCA9IDM4LFxuICBBcnJvd1JpZ2h0ID0gMzksXG4gIEFycm93RG93biA9IDQwXG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/util/popup.js b/dist/ng-bootstrap/esm5/util/popup.js deleted file mode 100644 index e9f7c63..0000000 --- a/dist/ng-bootstrap/esm5/util/popup.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { TemplateRef } from '@angular/core'; -var ContentRef = /** @class */ (function () { - function ContentRef(nodes, viewRef, componentRef) { - this.nodes = nodes; - this.viewRef = viewRef; - this.componentRef = componentRef; - } - return ContentRef; -}()); -export { ContentRef }; -if (false) { - /** @type {?} */ - ContentRef.prototype.nodes; - /** @type {?} */ - ContentRef.prototype.viewRef; - /** @type {?} */ - ContentRef.prototype.componentRef; -} -/** - * @template T - */ -var /** - * @template T - */ -PopupService = /** @class */ (function () { - function PopupService(_type, _injector, _viewContainerRef, _renderer, _componentFactoryResolver, _applicationRef) { - this._type = _type; - this._injector = _injector; - this._viewContainerRef = _viewContainerRef; - this._renderer = _renderer; - this._componentFactoryResolver = _componentFactoryResolver; - this._applicationRef = _applicationRef; - } - /** - * @param {?=} content - * @param {?=} context - * @return {?} - */ - PopupService.prototype.open = /** - * @param {?=} content - * @param {?=} context - * @return {?} - */ - function (content, context) { - if (!this._windowRef) { - this._contentRef = this._getContentRef(content, context); - this._windowRef = this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type), 0, this._injector, this._contentRef.nodes); - } - return this._windowRef; - }; - /** - * @return {?} - */ - PopupService.prototype.close = /** - * @return {?} - */ - function () { - if (this._windowRef) { - this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)); - this._windowRef = null; - if (this._contentRef.viewRef) { - this._applicationRef.detachView(this._contentRef.viewRef); - this._contentRef.viewRef.destroy(); - this._contentRef = null; - } - } - }; - /** - * @private - * @param {?} content - * @param {?=} context - * @return {?} - */ - PopupService.prototype._getContentRef = /** - * @private - * @param {?} content - * @param {?=} context - * @return {?} - */ - function (content, context) { - if (!content) { - return new ContentRef([]); - } - else if (content instanceof TemplateRef) { - /** @type {?} */ - var viewRef = content.createEmbeddedView(context); - this._applicationRef.attachView(viewRef); - return new ContentRef([viewRef.rootNodes], viewRef); - } - else { - return new ContentRef([[this._renderer.createText("" + content)]]); - } - }; - return PopupService; -}()); -/** - * @template T - */ -export { PopupService }; -if (false) { - /** - * @type {?} - * @private - */ - PopupService.prototype._windowRef; - /** - * @type {?} - * @private - */ - PopupService.prototype._contentRef; - /** - * @type {?} - * @private - */ - PopupService.prototype._type; - /** - * @type {?} - * @private - */ - PopupService.prototype._injector; - /** - * @type {?} - * @private - */ - PopupService.prototype._viewContainerRef; - /** - * @type {?} - * @private - */ - PopupService.prototype._renderer; - /** - * @type {?} - * @private - */ - PopupService.prototype._componentFactoryResolver; - /** - * @type {?} - * @private - */ - PopupService.prototype._applicationRef; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wdXAuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ1dGlsL3BvcHVwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBRUwsV0FBVyxFQU9aLE1BQU0sZUFBZSxDQUFDO0FBRXZCO0lBQ0Usb0JBQW1CLEtBQVksRUFBUyxPQUFpQixFQUFTLFlBQWdDO1FBQS9FLFVBQUssR0FBTCxLQUFLLENBQU87UUFBUyxZQUFPLEdBQVAsT0FBTyxDQUFVO1FBQVMsaUJBQVksR0FBWixZQUFZLENBQW9CO0lBQUcsQ0FBQztJQUN4RyxpQkFBQztBQUFELENBQUMsQUFGRCxJQUVDOzs7O0lBRGEsMkJBQW1COztJQUFFLDZCQUF3Qjs7SUFBRSxrQ0FBdUM7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blxuICBwcml2YXRlIF9nZXRDb250ZW50UmVmKGNvbnRlbnQ6IHN0cmluZyB8IFRlbXBsYXRlUmVmPGFueT4sIGNvbnRleHQ/OiBhbnkpOiBDb250ZW50UmVmIHtcbiAgICBpZiAoIWNvbnRlbnQpIHtcbiAgICAgIHJldHVybiBuZXcgQ29udGVudFJlZihbXSk7XG4gICAgfSBlbHNlIGlmIChjb250ZW50IGluc3RhbmNlb2YgVGVtcGxhdGVSZWYpIHtcbiAgICAgIGNvbnN0IHZpZXdSZWYgPSBjb250ZW50LmNyZWF0ZUVtYmVkZGVkVmlldyhjb250ZXh0KTtcbiAgICAgIHRoaXMuX2FwcGxpY2F0aW9uUmVmLmF0dGFjaFZpZXcodmlld1JlZik7XG4gICAgICByZXR1cm4gbmV3IENvbnRlbnRSZWYoW3ZpZXdSZWYucm9vdE5vZGVzXSwgdmlld1JlZik7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBuZXcgQ29udGVudFJlZihbW3RoaXMuX3JlbmRlcmVyLmNyZWF0ZVRleHQoYCR7Y29udGVudH1gKV1dKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/util/positioning.js b/dist/ng-bootstrap/esm5/util/positioning.js deleted file mode 100644 index 7e0f73a..0000000 --- a/dist/ng-bootstrap/esm5/util/positioning.js +++ /dev/null @@ -1,384 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import * as tslib_1 from "tslib"; -// previous version: -// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js -var -// previous version: -// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js -Positioning = /** @class */ (function () { - function Positioning() { - } - /** - * @private - * @param {?} element - * @return {?} - */ - Positioning.prototype.getAllStyles = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { return window.getComputedStyle(element); }; - /** - * @private - * @param {?} element - * @param {?} prop - * @return {?} - */ - Positioning.prototype.getStyle = /** - * @private - * @param {?} element - * @param {?} prop - * @return {?} - */ - function (element, prop) { return this.getAllStyles(element)[prop]; }; - /** - * @private - * @param {?} element - * @return {?} - */ - Positioning.prototype.isStaticPositioned = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { - return (this.getStyle(element, 'position') || 'static') === 'static'; - }; - /** - * @private - * @param {?} element - * @return {?} - */ - Positioning.prototype.offsetParent = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { - /** @type {?} */ - var offsetParentEl = (/** @type {?} */ (element.offsetParent)) || document.documentElement; - while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) { - offsetParentEl = (/** @type {?} */ (offsetParentEl.offsetParent)); - } - return offsetParentEl || document.documentElement; - }; - /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - Positioning.prototype.position = /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - function (element, round) { - if (round === void 0) { round = true; } - /** @type {?} */ - var elPosition; - /** @type {?} */ - var parentOffset = { width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0 }; - if (this.getStyle(element, 'position') === 'fixed') { - elPosition = element.getBoundingClientRect(); - elPosition = { - top: elPosition.top, - bottom: elPosition.bottom, - left: elPosition.left, - right: elPosition.right, - height: elPosition.height, - width: elPosition.width - }; - } - else { - /** @type {?} */ - var offsetParentEl = this.offsetParent(element); - elPosition = this.offset(element, false); - if (offsetParentEl !== document.documentElement) { - parentOffset = this.offset(offsetParentEl, false); - } - parentOffset.top += offsetParentEl.clientTop; - parentOffset.left += offsetParentEl.clientLeft; - } - elPosition.top -= parentOffset.top; - elPosition.bottom -= parentOffset.top; - elPosition.left -= parentOffset.left; - elPosition.right -= parentOffset.left; - if (round) { - elPosition.top = Math.round(elPosition.top); - elPosition.bottom = Math.round(elPosition.bottom); - elPosition.left = Math.round(elPosition.left); - elPosition.right = Math.round(elPosition.right); - } - return elPosition; - }; - /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - Positioning.prototype.offset = /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - function (element, round) { - if (round === void 0) { round = true; } - /** @type {?} */ - var elBcr = element.getBoundingClientRect(); - /** @type {?} */ - var viewportOffset = { - top: window.pageYOffset - document.documentElement.clientTop, - left: window.pageXOffset - document.documentElement.clientLeft - }; - /** @type {?} */ - var elOffset = { - height: elBcr.height || element.offsetHeight, - width: elBcr.width || element.offsetWidth, - top: elBcr.top + viewportOffset.top, - bottom: elBcr.bottom + viewportOffset.top, - left: elBcr.left + viewportOffset.left, - right: elBcr.right + viewportOffset.left - }; - if (round) { - elOffset.height = Math.round(elOffset.height); - elOffset.width = Math.round(elOffset.width); - elOffset.top = Math.round(elOffset.top); - elOffset.bottom = Math.round(elOffset.bottom); - elOffset.left = Math.round(elOffset.left); - elOffset.right = Math.round(elOffset.right); - } - return elOffset; - }; - /* - Return false if the element to position is outside the viewport - */ - /* - Return false if the element to position is outside the viewport - */ - /** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @return {?} - */ - Positioning.prototype.positionElements = /* - Return false if the element to position is outside the viewport - */ - /** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @return {?} - */ - function (hostElement, targetElement, placement, appendToBody) { - var _a = tslib_1.__read(placement.split('-'), 2), _b = _a[0], placementPrimary = _b === void 0 ? 'top' : _b, _c = _a[1], placementSecondary = _c === void 0 ? 'center' : _c; - /** @type {?} */ - var hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false); - /** @type {?} */ - var targetElStyles = this.getAllStyles(targetElement); - /** @type {?} */ - var marginTop = parseFloat(targetElStyles.marginTop); - /** @type {?} */ - var marginBottom = parseFloat(targetElStyles.marginBottom); - /** @type {?} */ - var marginLeft = parseFloat(targetElStyles.marginLeft); - /** @type {?} */ - var marginRight = parseFloat(targetElStyles.marginRight); - /** @type {?} */ - var topPosition = 0; - /** @type {?} */ - var leftPosition = 0; - switch (placementPrimary) { - case 'top': - topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom)); - break; - case 'bottom': - topPosition = (hostElPosition.top + hostElPosition.height); - break; - case 'left': - leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight)); - break; - case 'right': - leftPosition = (hostElPosition.left + hostElPosition.width); - break; - } - switch (placementSecondary) { - case 'top': - topPosition = hostElPosition.top; - break; - case 'bottom': - topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight; - break; - case 'left': - leftPosition = hostElPosition.left; - break; - case 'right': - leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth; - break; - case 'center': - if (placementPrimary === 'top' || placementPrimary === 'bottom') { - leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2); - } - else { - topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2); - } - break; - } - /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix - // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`; - targetElement.style.transform = "translate(" + Math.round(leftPosition) + "px, " + Math.round(topPosition) + "px)"; - // Check if the targetElement is inside the viewport - /** @type {?} */ - var targetElBCR = targetElement.getBoundingClientRect(); - /** @type {?} */ - var html = document.documentElement; - /** @type {?} */ - var windowHeight = window.innerHeight || html.clientHeight; - /** @type {?} */ - var windowWidth = window.innerWidth || html.clientWidth; - return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth && - targetElBCR.bottom <= windowHeight; - }; - return Positioning; -}()); -// previous version: -// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js -export { Positioning }; -/** @type {?} */ -var placementSeparator = /\s+/; -/** @type {?} */ -var positionService = new Positioning(); -/* - * Accept the placement array and applies the appropriate placement dependent on the viewport. - * Returns the applied placement. - * In case of auto placement, placements are selected in order - * 'top', 'bottom', 'left', 'right', - * 'top-left', 'top-right', - * 'bottom-left', 'bottom-right', - * 'left-top', 'left-bottom', - * 'right-top', 'right-bottom'. - * */ -/** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @param {?=} baseClass - * @return {?} - */ -export function positionElements(hostElement, targetElement, placement, appendToBody, baseClass) { - var e_1, _a; - /** @type {?} */ - var placementVals = Array.isArray(placement) ? placement : (/** @type {?} */ (placement.split(placementSeparator))); - /** @type {?} */ - var allowedPlacements = [ - 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom', - 'right-top', 'right-bottom' - ]; - /** @type {?} */ - var classList = targetElement.classList; - /** @type {?} */ - var addClassesToTarget = (/** - * @param {?} targetPlacement - * @return {?} - */ - function (targetPlacement) { - var _a = tslib_1.__read(targetPlacement.split('-'), 2), primary = _a[0], secondary = _a[1]; - /** @type {?} */ - var classes = []; - if (baseClass) { - classes.push(baseClass + "-" + primary); - if (secondary) { - classes.push(baseClass + "-" + primary + "-" + secondary); - } - classes.forEach((/** - * @param {?} classname - * @return {?} - */ - function (classname) { classList.add(classname); })); - } - return classes; - }); - // Remove old placement classes to avoid issues - if (baseClass) { - allowedPlacements.forEach((/** - * @param {?} placementToRemove - * @return {?} - */ - function (placementToRemove) { classList.remove(baseClass + "-" + placementToRemove); })); - } - // replace auto placement with other placements - /** @type {?} */ - var hasAuto = placementVals.findIndex((/** - * @param {?} val - * @return {?} - */ - function (val) { return val === 'auto'; })); - if (hasAuto >= 0) { - allowedPlacements.forEach((/** - * @param {?} obj - * @return {?} - */ - function (obj) { - if (placementVals.find((/** - * @param {?} val - * @return {?} - */ - function (val) { return val.search('^' + obj) !== -1; })) == null) { - placementVals.splice(hasAuto++, 1, (/** @type {?} */ (obj))); - } - })); - } - // coordinates where to position - // Required for transform: - /** @type {?} */ - var style = targetElement.style; - style.position = 'absolute'; - style.top = '0'; - style.left = '0'; - style['will-change'] = 'transform'; - /** @type {?} */ - var testPlacement; - /** @type {?} */ - var isInViewport = false; - try { - for (var placementVals_1 = tslib_1.__values(placementVals), placementVals_1_1 = placementVals_1.next(); !placementVals_1_1.done; placementVals_1_1 = placementVals_1.next()) { - testPlacement = placementVals_1_1.value; - /** @type {?} */ - var addedClasses = addClassesToTarget(testPlacement); - if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) { - isInViewport = true; - break; - } - // Remove the baseClasses for further calculation - if (baseClass) { - addedClasses.forEach((/** - * @param {?} classname - * @return {?} - */ - function (classname) { classList.remove(classname); })); - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (placementVals_1_1 && !placementVals_1_1.done && (_a = placementVals_1.return)) _a.call(placementVals_1); - } - finally { if (e_1) throw e_1.error; } - } - if (!isInViewport) { - // If nothing match, the first placement is the default one - testPlacement = placementVals[0]; - addClassesToTarget(testPlacement); - positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody); - } - return testPlacement; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9zaXRpb25pbmcuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJ1dGlsL3Bvc2l0aW9uaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFFQTs7OztJQUFBO0lBNkpBLENBQUM7Ozs7OztJQTVKUyxrQ0FBWTs7Ozs7SUFBcEIsVUFBcUIsT0FBb0IsSUFBSSxPQUFPLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUM7Ozs7Ozs7SUFFL0UsOEJBQVE7Ozs7OztJQUFoQixVQU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Z0JyB8ICdyaWdodCcgfCAndG9wLWxlZnQnIHwgJ3RvcC1yaWdodCcgfCAnYm90dG9tLWxlZnQnIHxcbiAgICAnYm90dG9tLXJpZ2h0JyB8ICdsZWZ0LXRvcCcgfCAnbGVmdC1ib3R0b20nIHwgJ3JpZ2h0LXRvcCcgfCAncmlnaHQtYm90dG9tJztcblxuZXhwb3J0IHR5cGUgUGxhY2VtZW50QXJyYXkgPSBQbGFjZW1lbnQgfCBBcnJheTxQbGFjZW1lbnQ+fCBzdHJpbmc7XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/util/scrollbar.js b/dist/ng-bootstrap/esm5/util/scrollbar.js deleted file mode 100644 index 8ecf003..0000000 --- a/dist/ng-bootstrap/esm5/util/scrollbar.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Injectable, Inject } from '@angular/core'; -import { DOCUMENT } from '@angular/common'; -import * as i0 from "@angular/core"; -import * as i1 from "@angular/common"; -/** @type {?} */ -var noop = (/** - * @return {?} - */ -function () { }); -var ɵ0 = noop; -/** - * Utility to handle the scrollbar. - * - * It allows to compensate the lack of a vertical scrollbar by adding an - * equivalent padding on the right of the body, and to remove this compensation. - */ -var ScrollBar = /** @class */ (function () { - function ScrollBar(_document) { - this._document = _document; - } - /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return {?} a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - ScrollBar.prototype.compensate = /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return {?} a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - function () { return !this._isPresent() ? noop : this._adjustBody(this._getWidth()); }; - /** - * Adds a padding of the given width on the right of the body. - * - * @return a callback used to revert the padding to its previous value - */ - /** - * Adds a padding of the given width on the right of the body. - * - * @private - * @param {?} width - * @return {?} a callback used to revert the padding to its previous value - */ - ScrollBar.prototype._adjustBody = /** - * Adds a padding of the given width on the right of the body. - * - * @private - * @param {?} width - * @return {?} a callback used to revert the padding to its previous value - */ - function (width) { - /** @type {?} */ - var body = this._document.body; - /** @type {?} */ - var userSetPadding = body.style.paddingRight; - /** @type {?} */ - var paddingAmount = parseFloat(window.getComputedStyle(body)['padding-right']); - body.style['padding-right'] = paddingAmount + width + "px"; - return (/** - * @return {?} - */ - function () { return body.style['padding-right'] = userSetPadding; }); - }; - /** - * Tells whether a scrollbar is currently present on the body. - * - * @return true if scrollbar is present, false otherwise - */ - /** - * Tells whether a scrollbar is currently present on the body. - * - * @private - * @return {?} true if scrollbar is present, false otherwise - */ - ScrollBar.prototype._isPresent = /** - * Tells whether a scrollbar is currently present on the body. - * - * @private - * @return {?} true if scrollbar is present, false otherwise - */ - function () { - /** @type {?} */ - var rect = this._document.body.getBoundingClientRect(); - return rect.left + rect.right < window.innerWidth; - }; - /** - * Calculates and returns the width of a scrollbar. - * - * @return the width of a scrollbar on this page - */ - /** - * Calculates and returns the width of a scrollbar. - * - * @private - * @return {?} the width of a scrollbar on this page - */ - ScrollBar.prototype._getWidth = /** - * Calculates and returns the width of a scrollbar. - * - * @private - * @return {?} the width of a scrollbar on this page - */ - function () { - /** @type {?} */ - var measurer = this._document.createElement('div'); - measurer.className = 'modal-scrollbar-measure'; - /** @type {?} */ - var body = this._document.body; - body.appendChild(measurer); - /** @type {?} */ - var width = measurer.getBoundingClientRect().width - measurer.clientWidth; - body.removeChild(measurer); - return width; - }; - ScrollBar.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - ScrollBar.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] } - ]; }; - /** @nocollapse */ ScrollBar.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ScrollBar_Factory() { return new ScrollBar(i0.ɵɵinject(i1.DOCUMENT)); }, token: ScrollBar, providedIn: "root" }); - return ScrollBar; -}()); -export { ScrollBar }; -if (false) { - /** - * @type {?} - * @private - */ - ScrollBar.prototype._document; -} -export { ɵ0 }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsYmFyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtZWQvc3VuYmlyZC11aS1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsidXRpbC9zY3JvbGxiYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQzs7OztJQUduQyxJQUFJOzs7QUFBRyxjQUFPLENBQUMsQ0FBQTs7Ozs7Ozs7QUFlckI7SUFFRSxtQkFBc0MsU0FBYztRQUFkLGNBQVMsR0FBVCxTQUFTLENBQUs7SUFBRyxDQUFDO0lBRXhEOzs7Ozs7T0FNRzs7Ozs7Ozs7SUFDSCw4QkFBVTs7Ozs7OztJQUFWLGNBQXFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFFN0c7Ozs7T0FJRzs7Ozs7Ozs7SUFDSywrQkFBVzs7Ozs7OztJQUFuQixVQUFvQixLQUFhOztZQUN6QixJQUFJLEdBQUcsSUFBSSxDQUFDLFNBQVMsQ0F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qm91bmRpbmdDbGllbnRSZWN0KCkud2lkdGggLSBtZWFzdXJlci5jbGllbnRXaWR0aDtcbiAgICBib2R5LnJlbW92ZUNoaWxkKG1lYXN1cmVyKTtcblxuICAgIHJldHVybiB3aWR0aDtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/util/triggers.js b/dist/ng-bootstrap/esm5/util/triggers.js deleted file mode 100644 index f0d5205..0000000 --- a/dist/ng-bootstrap/esm5/util/triggers.js +++ /dev/null @@ -1,241 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -import { Observable, merge } from 'rxjs'; -import { share, filter, delay, map } from 'rxjs/operators'; -var Trigger = /** @class */ (function () { - function Trigger(open, close) { - this.open = open; - this.close = close; - if (!close) { - this.close = open; - } - } - /** - * @return {?} - */ - Trigger.prototype.isManual = /** - * @return {?} - */ - function () { return this.open === 'manual' || this.close === 'manual'; }; - return Trigger; -}()); -export { Trigger }; -if (false) { - /** @type {?} */ - Trigger.prototype.open; - /** @type {?} */ - Trigger.prototype.close; -} -/** @type {?} */ -var DEFAULT_ALIASES = { - 'hover': ['mouseenter', 'mouseleave'], - 'focus': ['focusin', 'focusout'], -}; -/** - * @param {?} triggers - * @param {?=} aliases - * @return {?} - */ -export function parseTriggers(triggers, aliases) { - if (aliases === void 0) { aliases = DEFAULT_ALIASES; } - /** @type {?} */ - var trimmedTriggers = (triggers || '').trim(); - if (trimmedTriggers.length === 0) { - return []; - } - /** @type {?} */ - var parsedTriggers = trimmedTriggers.split(/\s+/).map((/** - * @param {?} trigger - * @return {?} - */ - function (trigger) { return trigger.split(':'); })).map((/** - * @param {?} triggerPair - * @return {?} - */ - function (triggerPair) { - /** @type {?} */ - var alias = aliases[triggerPair[0]] || triggerPair; - return new Trigger(alias[0], alias[1]); - })); - /** @type {?} */ - var manualTriggers = parsedTriggers.filter((/** - * @param {?} triggerPair - * @return {?} - */ - function (triggerPair) { return triggerPair.isManual(); })); - if (manualTriggers.length > 1) { - throw 'Triggers parse error: only one manual trigger is allowed'; - } - if (manualTriggers.length === 1 && parsedTriggers.length > 1) { - throw 'Triggers parse error: manual trigger can\'t be mixed with other triggers'; - } - return parsedTriggers; -} -/** - * @param {?} renderer - * @param {?} nativeElement - * @param {?} triggers - * @param {?} isOpenedFn - * @return {?} - */ -export function observeTriggers(renderer, nativeElement, triggers, isOpenedFn) { - return new Observable((/** - * @param {?} subscriber - * @return {?} - */ - function (subscriber) { - /** @type {?} */ - var listeners = []; - /** @type {?} */ - var openFn = (/** - * @return {?} - */ - function () { return subscriber.next(true); }); - /** @type {?} */ - var closeFn = (/** - * @return {?} - */ - function () { return subscriber.next(false); }); - /** @type {?} */ - var toggleFn = (/** - * @return {?} - */ - function () { return subscriber.next(!isOpenedFn()); }); - triggers.forEach((/** - * @param {?} trigger - * @return {?} - */ - function (trigger) { - if (trigger.open === trigger.close) { - listeners.push(renderer.listen(nativeElement, trigger.open, toggleFn)); - } - else { - listeners.push(renderer.listen(nativeElement, trigger.open, openFn), renderer.listen(nativeElement, trigger.close, closeFn)); - } - })); - return (/** - * @return {?} - */ - function () { listeners.forEach((/** - * @param {?} unsubscribeFn - * @return {?} - */ - function (unsubscribeFn) { return unsubscribeFn(); })); }); - })); -} -/** @type {?} */ -var delayOrNoop = (/** - * @template T - * @param {?} time - * @return {?} - */ -function (time) { return time > 0 ? delay(time) : (/** - * @param {?} a - * @return {?} - */ -function (a) { return a; }); }); -var ɵ0 = delayOrNoop; -/** - * @param {?} openDelay - * @param {?} closeDelay - * @param {?} isOpenedFn - * @return {?} - */ -export function triggerDelay(openDelay, closeDelay, isOpenedFn) { - return (/** - * @param {?} input$ - * @return {?} - */ - function (input$) { - /** @type {?} */ - var pending = null; - /** @type {?} */ - var filteredInput$ = input$.pipe(map((/** - * @param {?} open - * @return {?} - */ - function (open) { return ({ open: open }); })), filter((/** - * @param {?} event - * @return {?} - */ - function (event) { - /** @type {?} */ - var currentlyOpen = isOpenedFn(); - if (currentlyOpen !== event.open && (!pending || pending.open === currentlyOpen)) { - pending = event; - return true; - } - if (pending && pending.open !== event.open) { - pending = null; - } - return false; - })), share()); - /** @type {?} */ - var delayedOpen$ = filteredInput$.pipe(filter((/** - * @param {?} event - * @return {?} - */ - function (event) { return event.open; })), delayOrNoop(openDelay)); - /** @type {?} */ - var delayedClose$ = filteredInput$.pipe(filter((/** - * @param {?} event - * @return {?} - */ - function (event) { return !event.open; })), delayOrNoop(closeDelay)); - return merge(delayedOpen$, delayedClose$) - .pipe(filter((/** - * @param {?} event - * @return {?} - */ - function (event) { - if (event === pending) { - pending = null; - return event.open !== isOpenedFn(); - } - return false; - })), map((/** - * @param {?} event - * @return {?} - */ - function (event) { return event.open; }))); - }); -} -/** - * @param {?} renderer - * @param {?} nativeElement - * @param {?} triggers - * @param {?} isOpenedFn - * @param {?} openFn - * @param {?} closeFn - * @param {?=} openDelay - * @param {?=} closeDelay - * @return {?} - */ -export function listenToTriggers(renderer, nativeElement, triggers, isOpenedFn, openFn, closeFn, openDelay, closeDelay) { - if (openDelay === void 0) { openDelay = 0; } - if (closeDelay === void 0) { closeDelay = 0; } - /** @type {?} */ - var parsedTriggers = parseTriggers(triggers); - if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) { - return (/** - * @return {?} - */ - function () { }); - } - /** @type {?} */ - var subscription = observeTriggers(renderer, nativeElement, parsedTriggers, isOpenedFn) - .pipe(triggerDelay(openDelay, closeDelay, isOpenedFn)) - .subscribe((/** - * @param {?} open - * @return {?} - */ - function (open) { return (open ? openFn() : closeFn()); })); - return (/** - * @return {?} - */ - function () { return subscription.unsubscribe(); }); -} -export { ɵ0 }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJpZ2dlcnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1lZC9zdW5iaXJkLXVpLWNvbXBvbmVud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xuICB9XG5cbiAgY29uc3Qgc3Vic2NyaXB0aW9uID0gb2JzZXJ2ZVRyaWdnZXJzKHJlbmRlcmVyLCBuYXRpdmVFbGVtZW50LCBwYXJzZWRUcmlnZ2VycywgaXNPcGVuZWRGbilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIC5waXBlKHRyaWdnZXJEZWxheShvcGVuRGVsYXksIGNsb3NlRGVsYXksIGlzT3BlbmVkRm4pKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgLnN1YnNjcmliZShvcGVuID0+IChvcGVuID8gb3BlbkZuKCkgOiBjbG9zZUZuKCkpKTtcblxuICByZXR1cm4gKCkgPT4gc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG59XG4iXX0= \ No newline at end of file diff --git a/dist/ng-bootstrap/esm5/util/util.js b/dist/ng-bootstrap/esm5/util/util.js deleted file mode 100644 index eb2e583..0000000 --- a/dist/ng-bootstrap/esm5/util/util.js +++ /dev/null @@ -1,121 +0,0 @@ -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} value - * @return {?} - */ -export function toInteger(value) { - return parseInt("" + value, 10); -} -/** - * @param {?} value - * @return {?} - */ -export function toString(value) { - return (value !== undefined && value !== null) ? "" + value : ''; -} -/** - * @param {?} value - * @param {?} max - * @param {?=} min - * @return {?} - */ -export function getValueInRange(value, max, min) { - if (min === void 0) { min = 0; } - return Math.max(Math.min(value, max), min); -} -/** - * @param {?} value - * @return {?} - */ -export function isString(value) { - return typeof value === 'string'; -} -/** - * @param {?} value - * @return {?} - */ -export function isNumber(value) { - return !isNaN(toInteger(value)); -} -/** - * @param {?} value - * @return {?} - */ -export function isInteger(value) { - return typeof value === 'number' && isFinite(value) && Math.floor(value) === value; -} -/** - * @param {?} value - * @return {?} - */ -export function isDefined(value) { - return value !== undefined && value !== null; -} -/** - * @param {?} value - * @return {?} - */ -export function padNumber(value) { - if (isNumber(value)) { - return ("0" + value).slice(-2); - } - else { - return ''; - } -} -/** - * @param {?} text - * @return {?} - */ -export function regExpEscape(text) { - return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); -} -/** - * @param {?} element - * @param {?} className - * @return {?} - */ -export function hasClassName(element, className) { - return element && element.className && element.className.split && - element.className.split(/\s+/).indexOf(className) >= 0; -} -if (typeof Element !== 'undefined' && !Element.prototype.closest) { - // Polyfill for ie10+ - if (!Element.prototype.matches) { - // IE uses the non-standard name: msMatchesSelector - Element.prototype.matches = ((/** @type {?} */ (Element.prototype))).msMatchesSelector || Element.prototype.webkitMatchesSelector; - } - Element.prototype.closest = (/** - * @param {?} s - * @return {?} - */ - function (s) { - /** @type {?} */ - var el = this; - if (!document.documentElement.contains(el)) { - return null; - } - do { - if (el.matches(s)) { - return el; - } - el = el.parentElement || el.parentNode; - } while (el !== null && el.nodeType === 1); - return null; - }); -} -/** - * @param {?} element - * @param {?} selector - * @return {?} - */ -export function closest(element, selector) { - if (!selector) { - return null; - } - return element.closest(selector); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWVkL3N1bmJpcmQtdWktY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbInV0aWwvdXRpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBLE1BQU0sVUFBVSxTQUFTLENBQUMsS0FBVTtJQUNsQyxPQUFPLFFBQVEsQ0FBQyxLQUFHLEtBQU8sRUFBRSxFQUFFLENBQUMsQ0FBQztBQUNsQyxDQUFDOzs7OztBQUVELE1BQU0sVUFBVSxRQUFRLENBQUMsS0FBVTtJQUNqQyxPQUFPLENBQUMsS0FBSyxLQUFLLFNBQVMsSUFBSSxLQUFLLEtBQUssSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUcsS0FB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SB7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICByZXR1cm4gZWxlbWVudC5jbG9zZXN0KHNlbGVjdG9yKTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ng-bootstrap/fesm2015/ng-bootstrap.js b/dist/ng-bootstrap/fesm2015/ng-bootstrap.js deleted file mode 100644 index af4a0a5..0000000 --- a/dist/ng-bootstrap/fesm2015/ng-bootstrap.js +++ /dev/null @@ -1,10860 +0,0 @@ -import { Injectable, ɵɵdefineInjectable, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Renderer2, ElementRef, Input, Output, NgModule, Directive, TemplateRef, ContentChildren, Optional, Host, forwardRef, ChangeDetectorRef, Inject, PLATFORM_ID, NgZone, HostListener, LOCALE_ID, ɵɵinject, ViewChild, ViewContainerRef, ComponentFactoryResolver, ContentChild, Injector, ApplicationRef, RendererFactory2, INJECTOR, Attribute, InjectionToken } from '@angular/core'; -import { CommonModule, isPlatformBrowser, getLocaleDayNames, FormStyle, TranslationWidth, getLocaleMonthNames, formatDate, DOCUMENT, getLocaleDayPeriods } from '@angular/common'; -import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule } from '@angular/forms'; -import { Subject, BehaviorSubject, combineLatest, timer, NEVER, fromEvent, merge, race, Observable } from 'rxjs'; -import { map, startWith, distinctUntilChanged, switchMap, takeUntil, filter, take, withLatestFrom, delay, share, tap } from 'rxjs/operators'; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [SbCard](#/components/alert/api#SbCard) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ -class SbCardConfig { - constructor() { - this.dismissible = true; - this.type = 'warning'; - } -} -SbCardConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ SbCardConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function SbCardConfig_Factory() { return new SbCardConfig(); }, token: SbCardConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ -class SbCard { - /** - * @param {?} config - * @param {?} _renderer - * @param {?} _element - */ - constructor(config, _renderer, _element) { - this._renderer = _renderer; - this._element = _element; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - this.close = new EventEmitter(); - this.dismissible = config.dismissible; - this.type = config.type; - } - /** - * @return {?} - */ - closeHandler() { this.close.emit(null); } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - /** @type {?} */ - const typeChange = changes['type']; - if (typeChange && !typeChange.firstChange) { - this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`); - this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`); - } - } - /** - * @return {?} - */ - ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); } -} -SbCard.decorators = [ - { type: Component, args: [{ - selector: 'sb-card', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { 'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible' }, - template: ` - - - `, - styles: ["ngb-alert{display:block}"] - }] } -]; -/** @nocollapse */ -SbCard.ctorParameters = () => [ - { type: SbCardConfig }, - { type: Renderer2 }, - { type: ElementRef } -]; -SbCard.propDecorators = { - dismissible: [{ type: Input }], - type: [{ type: Input }], - close: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class SbCardModule { -} -SbCardModule.decorators = [ - { type: NgModule, args: [{ declarations: [SbCard], exports: [SbCard], imports: [CommonModule], entryComponents: [SbCard] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} value - * @return {?} - */ -function toInteger(value) { - return parseInt(`${value}`, 10); -} -/** - * @param {?} value - * @return {?} - */ -function toString(value) { - return (value !== undefined && value !== null) ? `${value}` : ''; -} -/** - * @param {?} value - * @param {?} max - * @param {?=} min - * @return {?} - */ -function getValueInRange(value, max, min = 0) { - return Math.max(Math.min(value, max), min); -} -/** - * @param {?} value - * @return {?} - */ -function isString(value) { - return typeof value === 'string'; -} -/** - * @param {?} value - * @return {?} - */ -function isNumber(value) { - return !isNaN(toInteger(value)); -} -/** - * @param {?} value - * @return {?} - */ -function isInteger(value) { - return typeof value === 'number' && isFinite(value) && Math.floor(value) === value; -} -/** - * @param {?} value - * @return {?} - */ -function isDefined(value) { - return value !== undefined && value !== null; -} -/** - * @param {?} value - * @return {?} - */ -function padNumber(value) { - if (isNumber(value)) { - return `0${value}`.slice(-2); - } - else { - return ''; - } -} -/** - * @param {?} text - * @return {?} - */ -function regExpEscape(text) { - return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); -} -/** - * @param {?} element - * @param {?} className - * @return {?} - */ -function hasClassName(element, className) { - return element && element.className && element.className.split && - element.className.split(/\s+/).indexOf(className) >= 0; -} -if (typeof Element !== 'undefined' && !Element.prototype.closest) { - // Polyfill for ie10+ - if (!Element.prototype.matches) { - // IE uses the non-standard name: msMatchesSelector - Element.prototype.matches = ((/** @type {?} */ (Element.prototype))).msMatchesSelector || Element.prototype.webkitMatchesSelector; - } - Element.prototype.closest = (/** - * @param {?} s - * @return {?} - */ - function (s) { - /** @type {?} */ - let el = this; - if (!document.documentElement.contains(el)) { - return null; - } - do { - if (el.matches(s)) { - return el; - } - el = el.parentElement || el.parentNode; - } while (el !== null && el.nodeType === 1); - return null; - }); -} -/** - * @param {?} element - * @param {?} selector - * @return {?} - */ -function closest(element, selector) { - if (!selector) { - return null; - } - return element.closest(selector); -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all accordions used in the application. - */ -class NgbAccordionConfig { - constructor() { - this.closeOthers = false; - } -} -NgbAccordionConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbAccordionConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbAccordionConfig_Factory() { return new NgbAccordionConfig(); }, token: NgbAccordionConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -let nextId = 0; -/** - * A directive that wraps an accordion panel header with any HTML markup and a toggling button - * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle). - * See the [header customization demo](#/components/accordion/examples#header) for more details. - * - * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title. - * - * \@since 4.1.0 - */ -class NgbPanelHeader { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPanelHeader.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelHeader]' },] } -]; -/** @nocollapse */ -NgbPanelHeader.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A directive that wraps only the panel title with HTML markup inside. - * - * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header. - */ -class NgbPanelTitle { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPanelTitle.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelTitle]' },] } -]; -/** @nocollapse */ -NgbPanelTitle.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A directive that wraps the accordion panel content. - */ -class NgbPanelContent { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPanelContent.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelContent]' },] } -]; -/** @nocollapse */ -NgbPanelContent.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A directive that wraps an individual accordion panel with title and collapsible content. - */ -class NgbPanel { - constructor() { - /** - * If `true`, the panel is disabled an can't be toggled. - */ - this.disabled = false; - /** - * An optional id for the panel that must be unique on the page. - * - * If not provided, it will be auto-generated in the `ngb-panel-xxx` format. - */ - this.id = `ngb-panel-${nextId++}`; - this.isOpen = false; - } - /** - * @return {?} - */ - ngAfterContentChecked() { - // We are using @ContentChildren instead of @ContentChild as in the Angular version being used - // only @ContentChildren allows us to specify the {descendants: false} option. - // Without {descendants: false} we are hitting bugs described in: - // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240 - this.titleTpl = this.titleTpls.first; - this.headerTpl = this.headerTpls.first; - this.contentTpl = this.contentTpls.first; - } -} -NgbPanel.decorators = [ - { type: Directive, args: [{ selector: 'ngb-panel' },] } -]; -NgbPanel.propDecorators = { - disabled: [{ type: Input }], - id: [{ type: Input }], - title: [{ type: Input }], - type: [{ type: Input }], - titleTpls: [{ type: ContentChildren, args: [NgbPanelTitle, { descendants: false },] }], - headerTpls: [{ type: ContentChildren, args: [NgbPanelHeader, { descendants: false },] }], - contentTpls: [{ type: ContentChildren, args: [NgbPanelContent, { descendants: false },] }] -}; -/** - * Accordion is a collection of collapsible panels (bootstrap cards). - * - * It can ensure only one panel is opened at a time and allows to customize panel - * headers. - */ -class NgbAccordion { - /** - * @param {?} config - */ - constructor(config) { - /** - * An array or comma separated strings of panel ids that should be opened **initially**. - * - * For subsequent changes use methods like `expand()`, `collapse()`, etc. and - * the `(panelChange)` event. - */ - this.activeIds = []; - /** - * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed. - */ - this.destroyOnHide = true; - /** - * Event emitted right before the panel toggle happens. - * - * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details. - */ - this.panelChange = new EventEmitter(); - this.type = config.type; - this.closeOtherPanels = config.closeOthers; - } - /** - * Checks if a panel with a given id is expanded. - * @param {?} panelId - * @return {?} - */ - isExpanded(panelId) { return this.activeIds.indexOf(panelId) > -1; } - /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - * @param {?} panelId - * @return {?} - */ - expand(panelId) { this._changeOpenState(this._findPanelById(panelId), true); } - /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - * @return {?} - */ - expandAll() { - if (this.closeOtherPanels) { - if (this.activeIds.length === 0 && this.panels.length) { - this._changeOpenState(this.panels.first, true); - } - } - else { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - panel => this._changeOpenState(panel, true))); - } - } - /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - * @param {?} panelId - * @return {?} - */ - collapse(panelId) { this._changeOpenState(this._findPanelById(panelId), false); } - /** - * Collapses all opened panels. - * @return {?} - */ - collapseAll() { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - (panel) => { this._changeOpenState(panel, false); })); - } - /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - * @param {?} panelId - * @return {?} - */ - toggle(panelId) { - /** @type {?} */ - const panel = this._findPanelById(panelId); - if (panel) { - this._changeOpenState(panel, !panel.isOpen); - } - } - /** - * @return {?} - */ - ngAfterContentChecked() { - // active id updates - if (isString(this.activeIds)) { - this.activeIds = this.activeIds.split(/\s*,\s*/); - } - // update panels open states - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - panel => panel.isOpen = !panel.disabled && this.activeIds.indexOf(panel.id) > -1)); - // closeOthers updates - if (this.activeIds.length > 1 && this.closeOtherPanels) { - this._closeOthers(this.activeIds[0]); - this._updateActiveIds(); - } - } - /** - * @private - * @param {?} panel - * @param {?} nextState - * @return {?} - */ - _changeOpenState(panel, nextState) { - if (panel && !panel.disabled && panel.isOpen !== nextState) { - /** @type {?} */ - let defaultPrevented = false; - this.panelChange.emit({ panelId: panel.id, nextState: nextState, preventDefault: (/** - * @return {?} - */ - () => { defaultPrevented = true; }) }); - if (!defaultPrevented) { - panel.isOpen = nextState; - if (nextState && this.closeOtherPanels) { - this._closeOthers(panel.id); - } - this._updateActiveIds(); - } - } - } - /** - * @private - * @param {?} panelId - * @return {?} - */ - _closeOthers(panelId) { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - panel => { - if (panel.id !== panelId) { - panel.isOpen = false; - } - })); - } - /** - * @private - * @param {?} panelId - * @return {?} - */ - _findPanelById(panelId) { return this.panels.find((/** - * @param {?} p - * @return {?} - */ - p => p.id === panelId)); } - /** - * @private - * @return {?} - */ - _updateActiveIds() { - this.activeIds = this.panels.filter((/** - * @param {?} panel - * @return {?} - */ - panel => panel.isOpen && !panel.disabled)).map((/** - * @param {?} panel - * @return {?} - */ - panel => panel.id)); - } -} -NgbAccordion.decorators = [ - { type: Component, args: [{ - selector: 'ngb-accordion', - exportAs: 'ngbAccordion', - host: { 'class': 'accordion', 'role': 'tablist', '[attr.aria-multiselectable]': '!closeOtherPanels' }, - template: ` - - - - -
- -
-
- -
-
-
-
- ` - }] } -]; -/** @nocollapse */ -NgbAccordion.ctorParameters = () => [ - { type: NgbAccordionConfig } -]; -NgbAccordion.propDecorators = { - panels: [{ type: ContentChildren, args: [NgbPanel,] }], - activeIds: [{ type: Input }], - closeOtherPanels: [{ type: Input, args: ['closeOthers',] }], - destroyOnHide: [{ type: Input }], - type: [{ type: Input }], - panelChange: [{ type: Output }] -}; -/** - * A directive to put on a button that toggles panel opening and closing. - * - * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) - * - * \@since 4.1.0 - */ -class NgbPanelToggle { - /** - * @param {?} accordion - * @param {?} panel - */ - constructor(accordion, panel) { - this.accordion = accordion; - this.panel = panel; - } - /** - * @param {?} panel - * @return {?} - */ - set ngbPanelToggle(panel) { - if (panel) { - this.panel = panel; - } - } -} -NgbPanelToggle.decorators = [ - { type: Directive, args: [{ - selector: 'button[ngbPanelToggle]', - host: { - 'type': 'button', - '[disabled]': 'panel.disabled', - '[class.collapsed]': '!panel.isOpen', - '[attr.aria-expanded]': 'panel.isOpen', - '[attr.aria-controls]': 'panel.id', - '(click)': 'accordion.toggle(panel.id)' - } - },] } -]; -/** @nocollapse */ -NgbPanelToggle.ctorParameters = () => [ - { type: NgbAccordion }, - { type: NgbPanel, decorators: [{ type: Optional }, { type: Host }] } -]; -NgbPanelToggle.propDecorators = { - ngbPanelToggle: [{ type: Input }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_ACCORDION_DIRECTIVES = [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle]; -class NgbAccordionModule { -} -NgbAccordionModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_ACCORDION_DIRECTIVES, exports: NGB_ACCORDION_DIRECTIVES, imports: [CommonModule] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ -class NgbAlertConfig { - constructor() { - this.dismissible = true; - this.type = 'warning'; - } -} -NgbAlertConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbAlertConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbAlertConfig_Factory() { return new NgbAlertConfig(); }, token: NgbAlertConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ -class NgbAlert { - /** - * @param {?} config - * @param {?} _renderer - * @param {?} _element - */ - constructor(config, _renderer, _element) { - this._renderer = _renderer; - this._element = _element; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - this.close = new EventEmitter(); - this.dismissible = config.dismissible; - this.type = config.type; - } - /** - * @return {?} - */ - closeHandler() { this.close.emit(null); } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - /** @type {?} */ - const typeChange = changes['type']; - if (typeChange && !typeChange.firstChange) { - this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`); - this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`); - } - } - /** - * @return {?} - */ - ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); } -} -NgbAlert.decorators = [ - { type: Component, args: [{ - selector: 'ngb-alert', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { 'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible' }, - template: ` - - - `, - styles: ["ngb-alert{display:block}"] - }] } -]; -/** @nocollapse */ -NgbAlert.ctorParameters = () => [ - { type: NgbAlertConfig }, - { type: Renderer2 }, - { type: ElementRef } -]; -NgbAlert.propDecorators = { - dismissible: [{ type: Input }], - type: [{ type: Input }], - close: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbAlertModule { -} -NgbAlertModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbAlert], exports: [NgbAlert], imports: [CommonModule], entryComponents: [NgbAlert] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbButtonLabel { -} -NgbButtonLabel.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButtonLabel]', - host: { '[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused' } - },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_CHECKBOX_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbCheckBox)), - multi: true -}; -/** - * Allows to easily create Bootstrap-style checkbox buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ -class NgbCheckBox { - /** - * @param {?} _label - * @param {?} _cd - */ - constructor(_label, _cd) { - this._label = _label; - this._cd = _cd; - /** - * If `true`, the checkbox button will be disabled - */ - this.disabled = false; - /** - * The form control value when the checkbox is checked. - */ - this.valueChecked = true; - /** - * The form control value when the checkbox is unchecked. - */ - this.valueUnChecked = false; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.onTouched = (/** - * @return {?} - */ - () => { }); - } - /** - * @param {?} isFocused - * @return {?} - */ - set focused(isFocused) { - this._label.focused = isFocused; - if (!isFocused) { - this.onTouched(); - } - } - /** - * @param {?} $event - * @return {?} - */ - onInputChange($event) { - /** @type {?} */ - const modelToPropagate = $event.target.checked ? this.valueChecked : this.valueUnChecked; - this.onChange(modelToPropagate); - this.onTouched(); - this.writeValue(modelToPropagate); - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this.onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this.onTouched = fn; } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { - this.disabled = isDisabled; - this._label.disabled = isDisabled; - } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this.checked = value === this.valueChecked; - this._label.active = this.checked; - // label won't be updated, if it is inside the OnPush component when [ngModel] changes - this._cd.markForCheck(); - } -} -NgbCheckBox.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButton][type=checkbox]', - host: { - 'autocomplete': 'off', - '[checked]': 'checked', - '[disabled]': 'disabled', - '(change)': 'onInputChange($event)', - '(focus)': 'focused = true', - '(blur)': 'focused = false' - }, - providers: [NGB_CHECKBOX_VALUE_ACCESSOR] - },] } -]; -/** @nocollapse */ -NgbCheckBox.ctorParameters = () => [ - { type: NgbButtonLabel }, - { type: ChangeDetectorRef } -]; -NgbCheckBox.propDecorators = { - disabled: [{ type: Input }], - valueChecked: [{ type: Input }], - valueUnChecked: [{ type: Input }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_RADIO_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbRadioGroup)), - multi: true -}; -/** @type {?} */ -let nextId$1 = 0; -/** - * Allows to easily create Bootstrap-style radio buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ -class NgbRadioGroup { - constructor() { - this._radios = new Set(); - this._value = null; - /** - * Name of the radio group applied to radio input elements. - * - * Will be applied to all radio input elements inside the group, - * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves. - * - * If not provided, will be generated in the `ngb-radio-xx` format. - */ - this.name = `ngb-radio-${nextId$1++}`; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.onTouched = (/** - * @return {?} - */ - () => { }); - } - /** - * @return {?} - */ - get disabled() { return this._disabled; } - /** - * @param {?} isDisabled - * @return {?} - */ - set disabled(isDisabled) { this.setDisabledState(isDisabled); } - /** - * @param {?} radio - * @return {?} - */ - onRadioChange(radio) { - this.writeValue(radio.value); - this.onChange(radio.value); - } - /** - * @return {?} - */ - onRadioValueUpdate() { this._updateRadiosValue(); } - /** - * @param {?} radio - * @return {?} - */ - register(radio) { this._radios.add(radio); } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this.onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this.onTouched = fn; } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { - this._disabled = isDisabled; - this._updateRadiosDisabled(); - } - /** - * @param {?} radio - * @return {?} - */ - unregister(radio) { this._radios.delete(radio); } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this._value = value; - this._updateRadiosValue(); - } - /** - * @private - * @return {?} - */ - _updateRadiosValue() { this._radios.forEach((/** - * @param {?} radio - * @return {?} - */ - (radio) => radio.updateValue(this._value))); } - /** - * @private - * @return {?} - */ - _updateRadiosDisabled() { this._radios.forEach((/** - * @param {?} radio - * @return {?} - */ - (radio) => radio.updateDisabled())); } -} -NgbRadioGroup.decorators = [ - { type: Directive, args: [{ selector: '[ngbRadioGroup]', host: { 'role': 'radiogroup' }, providers: [NGB_RADIO_VALUE_ACCESSOR] },] } -]; -NgbRadioGroup.propDecorators = { - name: [{ type: Input }] -}; -/** - * A directive that marks an input of type "radio" as a part of the - * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup). - */ -class NgbRadio { - /** - * @param {?} _group - * @param {?} _label - * @param {?} _renderer - * @param {?} _element - * @param {?} _cd - */ - constructor(_group, _label, _renderer, _element, _cd) { - this._group = _group; - this._label = _label; - this._renderer = _renderer; - this._element = _element; - this._cd = _cd; - this._value = null; - this._group.register(this); - this.updateDisabled(); - } - /** - * The form control value when current radio button is checked. - * @param {?} value - * @return {?} - */ - set value(value) { - this._value = value; - /** @type {?} */ - const stringValue = value ? value.toString() : ''; - this._renderer.setProperty(this._element.nativeElement, 'value', stringValue); - this._group.onRadioValueUpdate(); - } - /** - * If `true`, current radio button will be disabled. - * @param {?} isDisabled - * @return {?} - */ - set disabled(isDisabled) { - this._disabled = isDisabled !== false; - this.updateDisabled(); - } - /** - * @param {?} isFocused - * @return {?} - */ - set focused(isFocused) { - if (this._label) { - this._label.focused = isFocused; - } - if (!isFocused) { - this._group.onTouched(); - } - } - /** - * @return {?} - */ - get checked() { return this._checked; } - /** - * @return {?} - */ - get disabled() { return this._group.disabled || this._disabled; } - /** - * @return {?} - */ - get value() { return this._value; } - /** - * @return {?} - */ - get nameAttr() { return this.name || this._group.name; } - /** - * @return {?} - */ - ngOnDestroy() { this._group.unregister(this); } - /** - * @return {?} - */ - onChange() { this._group.onRadioChange(this); } - /** - * @param {?} value - * @return {?} - */ - updateValue(value) { - // label won't be updated, if it is inside the OnPush component when [ngModel] changes - if (this.value !== value) { - this._cd.markForCheck(); - } - this._checked = this.value === value; - this._label.active = this._checked; - } - /** - * @return {?} - */ - updateDisabled() { this._label.disabled = this.disabled; } -} -NgbRadio.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButton][type=radio]', - host: { - '[checked]': 'checked', - '[disabled]': 'disabled', - '[name]': 'nameAttr', - '(change)': 'onChange()', - '(focus)': 'focused = true', - '(blur)': 'focused = false' - } - },] } -]; -/** @nocollapse */ -NgbRadio.ctorParameters = () => [ - { type: NgbRadioGroup }, - { type: NgbButtonLabel }, - { type: Renderer2 }, - { type: ElementRef }, - { type: ChangeDetectorRef } -]; -NgbRadio.propDecorators = { - name: [{ type: Input }], - value: [{ type: Input, args: ['value',] }], - disabled: [{ type: Input, args: ['disabled',] }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_BUTTON_DIRECTIVES = [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio]; -class NgbButtonsModule { -} -NgbButtonsModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_BUTTON_DIRECTIVES, exports: NGB_BUTTON_DIRECTIVES },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all carousels used in the application. - */ -class NgbCarouselConfig { - constructor() { - this.interval = 5000; - this.wrap = true; - this.keyboard = true; - this.pauseOnHover = true; - this.showNavigationArrows = true; - this.showNavigationIndicators = true; - } -} -NgbCarouselConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbCarouselConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbCarouselConfig_Factory() { return new NgbCarouselConfig(); }, token: NgbCarouselConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -let nextId$2 = 0; -/** - * A directive that wraps the individual carousel slide. - */ -class NgbSlide { - /** - * @param {?} tplRef - */ - constructor(tplRef) { - this.tplRef = tplRef; - /** - * Slide id that must be unique for the entire document. - * - * If not provided, will be generated in the `ngb-slide-xx` format. - */ - this.id = `ngb-slide-${nextId$2++}`; - } -} -NgbSlide.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbSlide]' },] } -]; -/** @nocollapse */ -NgbSlide.ctorParameters = () => [ - { type: TemplateRef } -]; -NgbSlide.propDecorators = { - id: [{ type: Input }] -}; -/** - * Carousel is a component to easily create and control slideshows. - * - * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API. - */ -class NgbCarousel { - /** - * @param {?} config - * @param {?} _platformId - * @param {?} _ngZone - * @param {?} _cd - */ - constructor(config, _platformId, _ngZone, _cd) { - this._platformId = _platformId; - this._ngZone = _ngZone; - this._cd = _cd; - this.NgbSlideEventSource = NgbSlideEventSource; - this._destroy$ = new Subject(); - this._interval$ = new BehaviorSubject(0); - this._mouseHover$ = new BehaviorSubject(false); - this._pauseOnHover$ = new BehaviorSubject(false); - this._pause$ = new BehaviorSubject(false); - this._wrap$ = new BehaviorSubject(false); - /** - * An event emitted right after the slide transition is completed. - * - * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details. - */ - this.slide = new EventEmitter(); - this.interval = config.interval; - this.wrap = config.wrap; - this.keyboard = config.keyboard; - this.pauseOnHover = config.pauseOnHover; - this.showNavigationArrows = config.showNavigationArrows; - this.showNavigationIndicators = config.showNavigationIndicators; - } - /** - * Time in milliseconds before the next slide is shown. - * @param {?} value - * @return {?} - */ - set interval(value) { - this._interval$.next(value); - } - /** - * @return {?} - */ - get interval() { return this._interval$.value; } - /** - * If `true`, will 'wrap' the carousel by switching from the last slide back to the first. - * @param {?} value - * @return {?} - */ - set wrap(value) { - this._wrap$.next(value); - } - /** - * @return {?} - */ - get wrap() { return this._wrap$.value; } - /** - * If `true`, will pause slide switching when mouse cursor hovers the slide. - * - * \@since 2.2.0 - * @param {?} value - * @return {?} - */ - set pauseOnHover(value) { - this._pauseOnHover$.next(value); - } - /** - * @return {?} - */ - get pauseOnHover() { return this._pauseOnHover$.value; } - /** - * @return {?} - */ - mouseEnter() { - this._mouseHover$.next(true); - } - /** - * @return {?} - */ - mouseLeave() { - this._mouseHover$.next(false); - } - /** - * @return {?} - */ - ngAfterContentInit() { - // setInterval() doesn't play well with SSR and protractor, - // so we should run it in the browser and outside Angular - if (isPlatformBrowser(this._platformId)) { - this._ngZone.runOutsideAngular((/** - * @return {?} - */ - () => { - /** @type {?} */ - const hasNextSlide$ = combineLatest(this.slide.pipe(map((/** - * @param {?} slideEvent - * @return {?} - */ - slideEvent => slideEvent.current)), startWith(this.activeId)), this._wrap$, this.slides.changes.pipe(startWith(null))) - .pipe(map((/** - * @param {?} __0 - * @return {?} - */ - ([currentSlideId, wrap]) => { - /** @type {?} */ - const slideArr = this.slides.toArray(); - /** @type {?} */ - const currentSlideIdx = this._getSlideIdxById(currentSlideId); - return wrap ? slideArr.length > 1 : currentSlideIdx < slideArr.length - 1; - })), distinctUntilChanged()); - combineLatest(this._pause$, this._pauseOnHover$, this._mouseHover$, this._interval$, hasNextSlide$) - .pipe(map((/** - * @param {?} __0 - * @return {?} - */ - ([pause, pauseOnHover, mouseHover, interval, hasNextSlide]) => ((pause || (pauseOnHover && mouseHover) || !hasNextSlide) ? 0 : interval))), distinctUntilChanged(), switchMap((/** - * @param {?} interval - * @return {?} - */ - interval => interval > 0 ? timer(interval, interval) : NEVER)), takeUntil(this._destroy$)) - .subscribe((/** - * @return {?} - */ - () => this._ngZone.run((/** - * @return {?} - */ - () => this.next(NgbSlideEventSource.TIMER))))); - })); - } - this.slides.changes.pipe(takeUntil(this._destroy$)).subscribe((/** - * @return {?} - */ - () => this._cd.markForCheck())); - } - /** - * @return {?} - */ - ngAfterContentChecked() { - /** @type {?} */ - let activeSlide = this._getSlideById(this.activeId); - this.activeId = activeSlide ? activeSlide.id : (this.slides.length ? this.slides.first.id : null); - } - /** - * @return {?} - */ - ngOnDestroy() { this._destroy$.next(); } - /** - * Navigates to a slide with the specified identifier. - * @param {?} slideId - * @param {?=} source - * @return {?} - */ - select(slideId, source) { - this._cycleToSelected(slideId, this._getSlideEventDirection(this.activeId, slideId), source); - } - /** - * Navigates to the previous slide. - * @param {?=} source - * @return {?} - */ - prev(source) { - this._cycleToSelected(this._getPrevSlide(this.activeId), NgbSlideEventDirection.RIGHT, source); - } - /** - * Navigates to the next slide. - * @param {?=} source - * @return {?} - */ - next(source) { - this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source); - } - /** - * Pauses cycling through the slides. - * @return {?} - */ - pause() { this._pause$.next(true); } - /** - * Restarts cycling through the slides from left to right. - * @return {?} - */ - cycle() { this._pause$.next(false); } - /** - * @private - * @param {?} slideIdx - * @param {?} direction - * @param {?=} source - * @return {?} - */ - _cycleToSelected(slideIdx, direction, source) { - /** @type {?} */ - let selectedSlide = this._getSlideById(slideIdx); - if (selectedSlide && selectedSlide.id !== this.activeId) { - this.slide.emit({ prev: this.activeId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source }); - this.activeId = selectedSlide.id; - } - // we get here after the interval fires or any external API call like next(), prev() or select() - this._cd.markForCheck(); - } - /** - * @private - * @param {?} currentActiveSlideId - * @param {?} nextActiveSlideId - * @return {?} - */ - _getSlideEventDirection(currentActiveSlideId, nextActiveSlideId) { - /** @type {?} */ - const currentActiveSlideIdx = this._getSlideIdxById(currentActiveSlideId); - /** @type {?} */ - const nextActiveSlideIdx = this._getSlideIdxById(nextActiveSlideId); - return currentActiveSlideIdx > nextActiveSlideIdx ? NgbSlideEventDirection.RIGHT : NgbSlideEventDirection.LEFT; - } - /** - * @private - * @param {?} slideId - * @return {?} - */ - _getSlideById(slideId) { return this.slides.find((/** - * @param {?} slide - * @return {?} - */ - slide => slide.id === slideId)); } - /** - * @private - * @param {?} slideId - * @return {?} - */ - _getSlideIdxById(slideId) { - return this.slides.toArray().indexOf(this._getSlideById(slideId)); - } - /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - _getNextSlide(currentSlideId) { - /** @type {?} */ - const slideArr = this.slides.toArray(); - /** @type {?} */ - const currentSlideIdx = this._getSlideIdxById(currentSlideId); - /** @type {?} */ - const isLastSlide = currentSlideIdx === slideArr.length - 1; - return isLastSlide ? (this.wrap ? slideArr[0].id : slideArr[slideArr.length - 1].id) : - slideArr[currentSlideIdx + 1].id; - } - /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - _getPrevSlide(currentSlideId) { - /** @type {?} */ - const slideArr = this.slides.toArray(); - /** @type {?} */ - const currentSlideIdx = this._getSlideIdxById(currentSlideId); - /** @type {?} */ - const isFirstSlide = currentSlideIdx === 0; - return isFirstSlide ? (this.wrap ? slideArr[slideArr.length - 1].id : slideArr[0].id) : - slideArr[currentSlideIdx - 1].id; - } -} -NgbCarousel.decorators = [ - { type: Component, args: [{ - selector: 'ngb-carousel', - exportAs: 'ngbCarousel', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { - 'class': 'carousel slide', - '[style.display]': '"block"', - 'tabIndex': '0', - '(keydown.arrowLeft)': 'keyboard && prev(NgbSlideEventSource.ARROW_LEFT)', - '(keydown.arrowRight)': 'keyboard && next(NgbSlideEventSource.ARROW_RIGHT)' - }, - template: ` - - - - - Previous - - - - Next - - ` - }] } -]; -/** @nocollapse */ -NgbCarousel.ctorParameters = () => [ - { type: NgbCarouselConfig }, - { type: undefined, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, - { type: NgZone }, - { type: ChangeDetectorRef } -]; -NgbCarousel.propDecorators = { - slides: [{ type: ContentChildren, args: [NgbSlide,] }], - activeId: [{ type: Input }], - interval: [{ type: Input }], - wrap: [{ type: Input }], - keyboard: [{ type: Input }], - pauseOnHover: [{ type: Input }], - showNavigationArrows: [{ type: Input }], - showNavigationIndicators: [{ type: Input }], - slide: [{ type: Output }], - mouseEnter: [{ type: HostListener, args: ['mouseenter',] }], - mouseLeave: [{ type: HostListener, args: ['mouseleave',] }] -}; -/** @enum {string} */ -const NgbSlideEventDirection = { - LEFT: (/** @type {?} */ ('left')), - RIGHT: (/** @type {?} */ ('right')), -}; -/** @enum {string} */ -const NgbSlideEventSource = { - TIMER: 'timer', - ARROW_LEFT: 'arrowLeft', - ARROW_RIGHT: 'arrowRight', - INDICATOR: 'indicator', -}; -/** @type {?} */ -const NGB_CAROUSEL_DIRECTIVES = [NgbCarousel, NgbSlide]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbCarouselModule { -} -NgbCarouselModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_CAROUSEL_DIRECTIVES, exports: NGB_CAROUSEL_DIRECTIVES, imports: [CommonModule] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A directive to provide a simple way of hiding and showing elements on the page. - */ -class NgbCollapse { - constructor() { - /** - * If `true`, will collapse the element or show it otherwise. - */ - this.collapsed = false; - } -} -NgbCollapse.decorators = [ - { type: Directive, args: [{ - selector: '[ngbCollapse]', - exportAs: 'ngbCollapse', - host: { '[class.collapse]': 'true', '[class.show]': '!collapsed' } - },] } -]; -NgbCollapse.propDecorators = { - collapsed: [{ type: Input, args: ['ngbCollapse',] }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbCollapseModule { -} -NgbCollapseModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbCollapse], exports: [NgbCollapse] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A simple class that represents a date that datepicker also uses internally. - * - * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods, - * like `.equals()`, `.before()`, etc. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * In many cases it is simpler to manipulate these objects together with - * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * - * \@since 3.0.0 - */ -class NgbDate { - /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - * @param {?} date - * @return {?} - */ - static from(date) { - if (date instanceof NgbDate) { - return date; - } - return date ? new NgbDate(date.year, date.month, date.day) : null; - } - /** - * @param {?} year - * @param {?} month - * @param {?} day - */ - constructor(year, month, day) { - this.year = isInteger(year) ? year : null; - this.month = isInteger(month) ? month : null; - this.day = isInteger(day) ? day : null; - } - /** - * Checks if the current date is equal to another date. - * @param {?} other - * @return {?} - */ - equals(other) { - return other && this.year === other.year && this.month === other.month && this.day === other.day; - } - /** - * Checks if the current date is before another date. - * @param {?} other - * @return {?} - */ - before(other) { - if (!other) { - return false; - } - if (this.year === other.year) { - if (this.month === other.month) { - return this.day === other.day ? false : this.day < other.day; - } - else { - return this.month < other.month; - } - } - else { - return this.year < other.year; - } - } - /** - * Checks if the current date is after another date. - * @param {?} other - * @return {?} - */ - after(other) { - if (!other) { - return false; - } - if (this.year === other.year) { - if (this.month === other.month) { - return this.day === other.day ? false : this.day > other.day; - } - else { - return this.month > other.month; - } - } - else { - return this.year > other.year; - } - } -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} jsDate - * @return {?} - */ -function fromJSDate(jsDate) { - return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate()); -} -/** - * @param {?} date - * @return {?} - */ -function toJSDate(date) { - /** @type {?} */ - const jsDate = new Date(date.year, date.month - 1, date.day, 12); - // this is done avoid 30 -> 1930 conversion - if (!isNaN(jsDate.getTime())) { - jsDate.setFullYear(date.year); - } - return jsDate; -} -/** - * @return {?} - */ -function NGB_DATEPICKER_CALENDAR_FACTORY() { - return new NgbCalendarGregorian(); -} -/** - * A service that represents the calendar used by the datepicker. - * - * The default implementation uses the Gregorian calendar. You can inject it in your own - * implementations if necessary to simplify `NgbDate` calculations. - * @abstract - */ -class NgbCalendar { -} -NgbCalendar.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_CALENDAR_FACTORY },] } -]; -/** @nocollapse */ NgbCalendar.ngInjectableDef = ɵɵdefineInjectable({ factory: NGB_DATEPICKER_CALENDAR_FACTORY, token: NgbCalendar, providedIn: "root" }); -class NgbCalendarGregorian extends NgbCalendar { - /** - * @return {?} - */ - getDaysPerWeek() { return 7; } - /** - * @return {?} - */ - getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; } - /** - * @return {?} - */ - getWeeksPerMonth() { return 6; } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getNext(date, period = 'd', number = 1) { - /** @type {?} */ - let jsDate = toJSDate(date); - switch (period) { - case 'y': - return new NgbDate(date.year + number, 1, 1); - case 'm': - jsDate = new Date(date.year, date.month + number - 1, 1, 12); - break; - case 'd': - jsDate.setDate(jsDate.getDate() + number); - break; - default: - return date; - } - return fromJSDate(jsDate); - } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); } - /** - * @param {?} date - * @return {?} - */ - getWeekday(date) { - /** @type {?} */ - let jsDate = toJSDate(date); - /** @type {?} */ - let day = jsDate.getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - } - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - getWeekNumber(week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - let date = week[thursdayIndex]; - /** @type {?} */ - const jsDate = toJSDate(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - const time = jsDate.getTime(); - jsDate.setMonth(0); // Compare with Jan 1 - jsDate.setDate(1); - return Math.floor(Math.round((time - jsDate.getTime()) / 86400000) / 7) + 1; - } - /** - * @return {?} - */ - getToday() { return fromJSDate(new Date()); } - /** - * @param {?} date - * @return {?} - */ - isValid(date) { - if (!date || !isInteger(date.year) || !isInteger(date.month) || !isInteger(date.day)) { - return false; - } - // year 0 doesn't exist in Gregorian calendar - if (date.year === 0) { - return false; - } - /** @type {?} */ - const jsDate = toJSDate(date); - return !isNaN(jsDate.getTime()) && jsDate.getFullYear() === date.year && jsDate.getMonth() + 1 === date.month && - jsDate.getDate() === date.day; - } -} -NgbCalendarGregorian.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -function isChangedDate(prev, next) { - return !dateComparator(prev, next); -} -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -function isChangedMonth(prev, next) { - return !prev && !next ? false : !prev || !next ? true : prev.year !== next.year || prev.month !== next.month; -} -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -function dateComparator(prev, next) { - return (!prev && !next) || (!!prev && !!next && prev.equals(next)); -} -/** - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -function checkMinBeforeMax(minDate, maxDate) { - if (maxDate && minDate && maxDate.before(minDate)) { - throw new Error(`'maxDate' ${maxDate} should be greater than 'minDate' ${minDate}`); - } -} -/** - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -function checkDateInRange(date, minDate, maxDate) { - if (date && minDate && date.before(minDate)) { - return minDate; - } - if (date && maxDate && date.after(maxDate)) { - return maxDate; - } - return date; -} -/** - * @param {?} date - * @param {?} state - * @return {?} - */ -function isDateSelectable(date, state) { - const { minDate, maxDate, disabled, markDisabled } = state; - // clang-format off - return !(!isDefined(date) || - disabled || - (markDisabled && markDisabled(date, { year: date.year, month: date.month })) || - (minDate && date.before(minDate)) || - (maxDate && date.after(maxDate))); - // clang-format on -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -function generateSelectBoxMonths(calendar, date, minDate, maxDate) { - if (!date) { - return []; - } - /** @type {?} */ - let months = calendar.getMonths(date.year); - if (minDate && date.year === minDate.year) { - /** @type {?} */ - const index = months.findIndex((/** - * @param {?} month - * @return {?} - */ - month => month === minDate.month)); - months = months.slice(index); - } - if (maxDate && date.year === maxDate.year) { - /** @type {?} */ - const index = months.findIndex((/** - * @param {?} month - * @return {?} - */ - month => month === maxDate.month)); - months = months.slice(0, index + 1); - } - return months; -} -/** - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -function generateSelectBoxYears(date, minDate, maxDate) { - if (!date) { - return []; - } - /** @type {?} */ - const start = minDate && minDate.year || date.year - 10; - /** @type {?} */ - const end = maxDate && maxDate.year || date.year + 10; - return Array.from({ length: end - start + 1 }, (/** - * @param {?} e - * @param {?} i - * @return {?} - */ - (e, i) => start + i)); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} maxDate - * @return {?} - */ -function nextMonthDisabled(calendar, date, maxDate) { - return maxDate && calendar.getNext(date, 'm').after(maxDate); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} minDate - * @return {?} - */ -function prevMonthDisabled(calendar, date, minDate) { - /** @type {?} */ - const prevDate = calendar.getPrev(date, 'm'); - return minDate && (prevDate.year === minDate.year && prevDate.month < minDate.month || - prevDate.year < minDate.year && minDate.month === 1); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} state - * @param {?} i18n - * @param {?} force - * @return {?} - */ -function buildMonths(calendar, date, state, i18n, force) { - const { displayMonths, months } = state; - // move old months to a temporary array - /** @type {?} */ - const monthsToReuse = months.splice(0, months.length); - // generate new first dates, nullify or reuse months - /** @type {?} */ - const firstDates = Array.from({ length: displayMonths }, (/** - * @param {?} _ - * @param {?} i - * @return {?} - */ - (_, i) => { - /** @type {?} */ - const firstDate = calendar.getNext(date, 'm', i); - months[i] = null; - if (!force) { - /** @type {?} */ - const reusedIndex = monthsToReuse.findIndex((/** - * @param {?} month - * @return {?} - */ - month => month.firstDate.equals(firstDate))); - // move reused month back to months - if (reusedIndex !== -1) { - months[i] = monthsToReuse.splice(reusedIndex, 1)[0]; - } - } - return firstDate; - })); - // rebuild nullified months - firstDates.forEach((/** - * @param {?} firstDate - * @param {?} i - * @return {?} - */ - (firstDate, i) => { - if (months[i] === null) { - months[i] = buildMonth(calendar, firstDate, state, i18n, monthsToReuse.shift() || (/** @type {?} */ ({}))); - } - })); - return months; -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} state - * @param {?} i18n - * @param {?=} month - * @return {?} - */ -function buildMonth(calendar, date, state, i18n, month = (/** @type {?} */ ({}))) { - const { dayTemplateData, minDate, maxDate, firstDayOfWeek, markDisabled, outsideDays } = state; - /** @type {?} */ - const calendarToday = calendar.getToday(); - month.firstDate = null; - month.lastDate = null; - month.number = date.month; - month.year = date.year; - month.weeks = month.weeks || []; - month.weekdays = month.weekdays || []; - date = getFirstViewDate(calendar, date, firstDayOfWeek); - // month has weeks - for (let week = 0; week < calendar.getWeeksPerMonth(); week++) { - /** @type {?} */ - let weekObject = month.weeks[week]; - if (!weekObject) { - weekObject = month.weeks[week] = { number: 0, days: [], collapsed: true }; - } - /** @type {?} */ - const days = weekObject.days; - // week has days - for (let day = 0; day < calendar.getDaysPerWeek(); day++) { - if (week === 0) { - month.weekdays[day] = calendar.getWeekday(date); - } - /** @type {?} */ - const newDate = new NgbDate(date.year, date.month, date.day); - /** @type {?} */ - const nextDate = calendar.getNext(newDate); - /** @type {?} */ - const ariaLabel = i18n.getDayAriaLabel(newDate); - // marking date as disabled - /** @type {?} */ - let disabled = !!((minDate && newDate.before(minDate)) || (maxDate && newDate.after(maxDate))); - if (!disabled && markDisabled) { - disabled = markDisabled(newDate, { month: month.number, year: month.year }); - } - // today - /** @type {?} */ - let today = newDate.equals(calendarToday); - // adding user-provided data to the context - /** @type {?} */ - let contextUserData = dayTemplateData ? dayTemplateData(newDate, { month: month.number, year: month.year }) : undefined; - // saving first date of the month - if (month.firstDate === null && newDate.month === month.number) { - month.firstDate = newDate; - } - // saving last date of the month - if (newDate.month === month.number && nextDate.month !== month.number) { - month.lastDate = newDate; - } - /** @type {?} */ - let dayObject = days[day]; - if (!dayObject) { - dayObject = days[day] = (/** @type {?} */ ({})); - } - dayObject.date = newDate; - dayObject.context = Object.assign(dayObject.context || {}, { - $implicit: newDate, - date: newDate, - data: contextUserData, - currentMonth: month.number, disabled, - focused: false, - selected: false, today - }); - dayObject.tabindex = -1; - dayObject.ariaLabel = ariaLabel; - dayObject.hidden = false; - date = nextDate; - } - weekObject.number = calendar.getWeekNumber(days.map((/** - * @param {?} day - * @return {?} - */ - day => day.date)), firstDayOfWeek); - // marking week as collapsed - weekObject.collapsed = outsideDays === 'collapsed' && days[0].date.month !== month.number && - days[days.length - 1].date.month !== month.number; - } - return month; -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} firstDayOfWeek - * @return {?} - */ -function getFirstViewDate(calendar, date, firstDayOfWeek) { - /** @type {?} */ - const daysPerWeek = calendar.getDaysPerWeek(); - /** @type {?} */ - const firstMonthDate = new NgbDate(date.year, date.month, 1); - /** @type {?} */ - const dayOfWeek = calendar.getWeekday(firstMonthDate) % daysPerWeek; - return calendar.getPrev(firstMonthDate, 'd', (daysPerWeek + dayOfWeek - firstDayOfWeek) % daysPerWeek); -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} locale - * @return {?} - */ -function NGB_DATEPICKER_18N_FACTORY(locale) { - return new NgbDatepickerI18nDefault(locale); -} -/** - * A service supplying i18n data to the datepicker component. - * - * The default implementation of this service uses the Angular locale and registered locale data for - * weekdays and month names (as explained in the Angular i18n guide). - * - * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year - * numerals. For other static labels the datepicker uses the default Angular i18n. - * - * See the [i18n demo](#/components/datepicker/examples#i18n) and - * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define - * a custom provider for i18n. - * @abstract - */ -class NgbDatepickerI18n { - /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * \@since 3.0.0 - * @param {?} date - * @return {?} - */ - getDayNumerals(date) { return `${date.day}`; } - /** - * Returns the textual representation of a week number rendered by datepicker. - * - * \@since 3.0.0 - * @param {?} weekNumber - * @return {?} - */ - getWeekNumerals(weekNumber) { return `${weekNumber}`; } - /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * \@since 3.0.0 - * @param {?} year - * @return {?} - */ - getYearNumerals(year) { return `${year}`; } -} -NgbDatepickerI18n.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_18N_FACTORY, deps: [LOCALE_ID] },] } -]; -/** @nocollapse */ NgbDatepickerI18n.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbDatepickerI18n_Factory() { return NGB_DATEPICKER_18N_FACTORY(ɵɵinject(LOCALE_ID)); }, token: NgbDatepickerI18n, providedIn: "root" }); -class NgbDatepickerI18nDefault extends NgbDatepickerI18n { - /** - * @param {?} _locale - */ - constructor(_locale) { - super(); - this._locale = _locale; - /** @type {?} */ - const weekdaysStartingOnSunday = getLocaleDayNames(_locale, FormStyle.Standalone, TranslationWidth.Short); - this._weekdaysShort = weekdaysStartingOnSunday.map((/** - * @param {?} day - * @param {?} index - * @return {?} - */ - (day, index) => weekdaysStartingOnSunday[(index + 1) % 7])); - this._monthsShort = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Abbreviated); - this._monthsFull = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Wide); - } - /** - * @param {?} weekday - * @return {?} - */ - getWeekdayShortName(weekday) { return this._weekdaysShort[weekday - 1]; } - /** - * @param {?} month - * @return {?} - */ - getMonthShortName(month) { return this._monthsShort[month - 1]; } - /** - * @param {?} month - * @return {?} - */ - getMonthFullName(month) { return this._monthsFull[month - 1]; } - /** - * @param {?} date - * @return {?} - */ - getDayAriaLabel(date) { - /** @type {?} */ - const jsDate = new Date(date.year, date.month - 1, date.day); - return formatDate(jsDate, 'fullDate', this._locale); - } -} -NgbDatepickerI18nDefault.decorators = [ - { type: Injectable } -]; -/** @nocollapse */ -NgbDatepickerI18nDefault.ctorParameters = () => [ - { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbDatepickerService { - /** - * @param {?} _calendar - * @param {?} _i18n - */ - constructor(_calendar, _i18n) { - this._calendar = _calendar; - this._i18n = _i18n; - this._model$ = new Subject(); - this._select$ = new Subject(); - this._state = { - disabled: false, - displayMonths: 1, - firstDayOfWeek: 1, - focusVisible: false, - months: [], - navigation: 'select', - outsideDays: 'visible', - prevDisabled: false, - nextDisabled: false, - selectBoxes: { years: [], months: [] }, - selectedDate: null - }; - } - /** - * @return {?} - */ - get model$() { return this._model$.pipe(filter((/** - * @param {?} model - * @return {?} - */ - model => model.months.length > 0))); } - /** - * @return {?} - */ - get select$() { return this._select$.pipe(filter((/** - * @param {?} date - * @return {?} - */ - date => date !== null))); } - /** - * @param {?} dayTemplateData - * @return {?} - */ - set dayTemplateData(dayTemplateData) { - if (this._state.dayTemplateData !== dayTemplateData) { - this._nextState({ dayTemplateData }); - } - } - /** - * @param {?} disabled - * @return {?} - */ - set disabled(disabled) { - if (this._state.disabled !== disabled) { - this._nextState({ disabled }); - } - } - /** - * @param {?} displayMonths - * @return {?} - */ - set displayMonths(displayMonths) { - displayMonths = toInteger(displayMonths); - if (isInteger(displayMonths) && displayMonths > 0 && this._state.displayMonths !== displayMonths) { - this._nextState({ displayMonths }); - } - } - /** - * @param {?} firstDayOfWeek - * @return {?} - */ - set firstDayOfWeek(firstDayOfWeek) { - firstDayOfWeek = toInteger(firstDayOfWeek); - if (isInteger(firstDayOfWeek) && firstDayOfWeek >= 0 && this._state.firstDayOfWeek !== firstDayOfWeek) { - this._nextState({ firstDayOfWeek }); - } - } - /** - * @param {?} focusVisible - * @return {?} - */ - set focusVisible(focusVisible) { - if (this._state.focusVisible !== focusVisible && !this._state.disabled) { - this._nextState({ focusVisible }); - } - } - /** - * @param {?} date - * @return {?} - */ - set maxDate(date) { - /** @type {?} */ - const maxDate = this.toValidDate(date, null); - if (isChangedDate(this._state.maxDate, maxDate)) { - this._nextState({ maxDate }); - } - } - /** - * @param {?} markDisabled - * @return {?} - */ - set markDisabled(markDisabled) { - if (this._state.markDisabled !== markDisabled) { - this._nextState({ markDisabled }); - } - } - /** - * @param {?} date - * @return {?} - */ - set minDate(date) { - /** @type {?} */ - const minDate = this.toValidDate(date, null); - if (isChangedDate(this._state.minDate, minDate)) { - this._nextState({ minDate }); - } - } - /** - * @param {?} navigation - * @return {?} - */ - set navigation(navigation) { - if (this._state.navigation !== navigation) { - this._nextState({ navigation }); - } - } - /** - * @param {?} outsideDays - * @return {?} - */ - set outsideDays(outsideDays) { - if (this._state.outsideDays !== outsideDays) { - this._nextState({ outsideDays }); - } - } - /** - * @param {?} date - * @return {?} - */ - focus(date) { - if (!this._state.disabled && this._calendar.isValid(date) && isChangedDate(this._state.focusDate, date)) { - this._nextState({ focusDate: date }); - } - } - /** - * @param {?=} period - * @param {?=} number - * @return {?} - */ - focusMove(period, number) { - this.focus(this._calendar.getNext(this._state.focusDate, period, number)); - } - /** - * @return {?} - */ - focusSelect() { - if (isDateSelectable(this._state.focusDate, this._state)) { - this.select(this._state.focusDate, { emitEvent: true }); - } - } - /** - * @param {?} date - * @return {?} - */ - open(date) { - /** @type {?} */ - const firstDate = this.toValidDate(date, this._calendar.getToday()); - if (!this._state.disabled && (!this._state.firstDate || isChangedMonth(this._state.firstDate, date))) { - this._nextState({ firstDate }); - } - } - /** - * @param {?} date - * @param {?=} options - * @return {?} - */ - select(date, options = {}) { - /** @type {?} */ - const selectedDate = this.toValidDate(date, null); - if (!this._state.disabled) { - if (isChangedDate(this._state.selectedDate, selectedDate)) { - this._nextState({ selectedDate }); - } - if (options.emitEvent && isDateSelectable(selectedDate, this._state)) { - this._select$.next(selectedDate); - } - } - } - /** - * @param {?} date - * @param {?=} defaultValue - * @return {?} - */ - toValidDate(date, defaultValue) { - /** @type {?} */ - const ngbDate = NgbDate.from(date); - if (defaultValue === undefined) { - defaultValue = this._calendar.getToday(); - } - return this._calendar.isValid(ngbDate) ? ngbDate : defaultValue; - } - /** - * @private - * @param {?} patch - * @return {?} - */ - _nextState(patch) { - /** @type {?} */ - const newState = this._updateState(patch); - this._patchContexts(newState); - this._state = newState; - this._model$.next(this._state); - } - /** - * @private - * @param {?} state - * @return {?} - */ - _patchContexts(state) { - const { months, displayMonths, selectedDate, focusDate, focusVisible, disabled, outsideDays } = state; - state.months.forEach((/** - * @param {?} month - * @return {?} - */ - month => { - month.weeks.forEach((/** - * @param {?} week - * @return {?} - */ - week => { - week.days.forEach((/** - * @param {?} day - * @return {?} - */ - day => { - // patch focus flag - if (focusDate) { - day.context.focused = focusDate.equals(day.date) && focusVisible; - } - // calculating tabindex - day.tabindex = !disabled && day.date.equals(focusDate) && focusDate.month === month.number ? 0 : -1; - // override context disabled - if (disabled === true) { - day.context.disabled = true; - } - // patch selection flag - if (selectedDate !== undefined) { - day.context.selected = selectedDate !== null && selectedDate.equals(day.date); - } - // visibility - if (month.number !== day.date.month) { - day.hidden = outsideDays === 'hidden' || outsideDays === 'collapsed' || - (displayMonths > 1 && day.date.after(months[0].firstDate) && - day.date.before(months[displayMonths - 1].lastDate)); - } - })); - })); - })); - } - /** - * @private - * @param {?} patch - * @return {?} - */ - _updateState(patch) { - // patching fields - /** @type {?} */ - const state = Object.assign({}, this._state, patch); - /** @type {?} */ - let startDate = state.firstDate; - // min/max dates changed - if ('minDate' in patch || 'maxDate' in patch) { - checkMinBeforeMax(state.minDate, state.maxDate); - state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate); - state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate); - startDate = state.focusDate; - } - // disabled - if ('disabled' in patch) { - state.focusVisible = false; - } - // initial rebuild via 'select()' - if ('selectedDate' in patch && this._state.months.length === 0) { - startDate = state.selectedDate; - } - // terminate early if only focus visibility was changed - if ('focusVisible' in patch) { - return state; - } - // focus date changed - if ('focusDate' in patch) { - state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate); - startDate = state.focusDate; - // nothing to rebuild if only focus changed and it is still visible - if (state.months.length !== 0 && !state.focusDate.before(state.firstDate) && - !state.focusDate.after(state.lastDate)) { - return state; - } - } - // first date changed - if ('firstDate' in patch) { - state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate); - startDate = state.firstDate; - } - // rebuilding months - if (startDate) { - /** @type {?} */ - const forceRebuild = 'dayTemplateData' in patch || 'firstDayOfWeek' in patch || 'markDisabled' in patch || - 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch || 'outsideDays' in patch; - /** @type {?} */ - const months = buildMonths(this._calendar, startDate, state, this._i18n, forceRebuild); - // updating months and boundary dates - state.months = months; - state.firstDate = months.length > 0 ? months[0].firstDate : undefined; - state.lastDate = months.length > 0 ? months[months.length - 1].lastDate : undefined; - // reset selected date if 'markDisabled' returns true - if ('selectedDate' in patch && !isDateSelectable(state.selectedDate, state)) { - state.selectedDate = null; - } - // adjusting focus after months were built - if ('firstDate' in patch) { - if (state.focusDate === undefined || state.focusDate.before(state.firstDate) || - state.focusDate.after(state.lastDate)) { - state.focusDate = startDate; - } - } - // adjusting months/years for the select box navigation - /** @type {?} */ - const yearChanged = !this._state.firstDate || this._state.firstDate.year !== state.firstDate.year; - /** @type {?} */ - const monthChanged = !this._state.firstDate || this._state.firstDate.month !== state.firstDate.month; - if (state.navigation === 'select') { - // years -> boundaries (min/max were changed) - if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.years.length === 0 || yearChanged) { - state.selectBoxes.years = generateSelectBoxYears(state.firstDate, state.minDate, state.maxDate); - } - // months -> when current year or boundaries change - if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.months.length === 0 || yearChanged) { - state.selectBoxes.months = - generateSelectBoxMonths(this._calendar, state.firstDate, state.minDate, state.maxDate); - } - } - else { - state.selectBoxes = { years: [], months: [] }; - } - // updating navigation arrows -> boundaries change (min/max) or month/year changes - if ((state.navigation === 'arrows' || state.navigation === 'select') && - (monthChanged || yearChanged || 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch)) { - state.prevDisabled = state.disabled || prevMonthDisabled(this._calendar, state.firstDate, state.minDate); - state.nextDisabled = state.disabled || nextMonthDisabled(this._calendar, state.lastDate, state.maxDate); - } - } - return state; - } -} -NgbDatepickerService.decorators = [ - { type: Injectable } -]; -/** @nocollapse */ -NgbDatepickerService.ctorParameters = () => [ - { type: NgbCalendar }, - { type: NgbDatepickerI18n } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -const Key = { - Tab: 9, - Enter: 13, - Escape: 27, - Space: 32, - PageUp: 33, - PageDown: 34, - End: 35, - Home: 36, - ArrowLeft: 37, - ArrowUp: 38, - ArrowRight: 39, - ArrowDown: 40, -}; -Key[Key.Tab] = 'Tab'; -Key[Key.Enter] = 'Enter'; -Key[Key.Escape] = 'Escape'; -Key[Key.Space] = 'Space'; -Key[Key.PageUp] = 'PageUp'; -Key[Key.PageDown] = 'PageDown'; -Key[Key.End] = 'End'; -Key[Key.Home] = 'Home'; -Key[Key.ArrowLeft] = 'ArrowLeft'; -Key[Key.ArrowUp] = 'ArrowUp'; -Key[Key.ArrowRight] = 'ArrowRight'; -Key[Key.ArrowDown] = 'ArrowDown'; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbDatepickerKeyMapService { - /** - * @param {?} _service - * @param {?} _calendar - */ - constructor(_service, _calendar) { - this._service = _service; - this._calendar = _calendar; - _service.model$.subscribe((/** - * @param {?} model - * @return {?} - */ - model => { - this._minDate = model.minDate; - this._maxDate = model.maxDate; - this._firstViewDate = model.firstDate; - this._lastViewDate = model.lastDate; - })); - } - /** - * @param {?} event - * @return {?} - */ - processKey(event) { - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.PageUp: - this._service.focusMove(event.shiftKey ? 'y' : 'm', -1); - break; - case Key.PageDown: - this._service.focusMove(event.shiftKey ? 'y' : 'm', 1); - break; - case Key.End: - this._service.focus(event.shiftKey ? this._maxDate : this._lastViewDate); - break; - case Key.Home: - this._service.focus(event.shiftKey ? this._minDate : this._firstViewDate); - break; - case Key.ArrowLeft: - this._service.focusMove('d', -1); - break; - case Key.ArrowUp: - this._service.focusMove('d', -this._calendar.getDaysPerWeek()); - break; - case Key.ArrowRight: - this._service.focusMove('d', 1); - break; - case Key.ArrowDown: - this._service.focusMove('d', this._calendar.getDaysPerWeek()); - break; - case Key.Enter: - case Key.Space: - this._service.focusSelect(); - break; - default: - return; - } - // note 'return' in default case - event.preventDefault(); - event.stopPropagation(); - } -} -NgbDatepickerKeyMapService.decorators = [ - { type: Injectable } -]; -/** @nocollapse */ -NgbDatepickerKeyMapService.ctorParameters = () => [ - { type: NgbDatepickerService }, - { type: NgbCalendar } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -const NavigationEvent = { - PREV: 0, - NEXT: 1, -}; -NavigationEvent[NavigationEvent.PREV] = 'PREV'; -NavigationEvent[NavigationEvent.NEXT] = 'NEXT'; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the datepickers used in the application. - */ -class NgbDatepickerConfig { - constructor() { - this.displayMonths = 1; - this.firstDayOfWeek = 1; - this.navigation = 'select'; - this.outsideDays = 'visible'; - this.showWeekdays = true; - this.showWeekNumbers = false; - } -} -NgbDatepickerConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbDatepickerConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbDatepickerConfig_Factory() { return new NgbDatepickerConfig(); }, token: NgbDatepickerConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @return {?} - */ -function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() { - return new NgbDateStructAdapter(); -} -/** - * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and - * any provided user date model `D`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding datepicker to a form control, - * ex. `[(ngModel)]="userDateModel"`. Here `userDateModel` can be of any type. - * - * The default datepicker implementation assumes we use `NgbDateStruct` as a user model. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details - * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example. - * @abstract - * @template D - */ -class NgbDateAdapter { -} -NgbDateAdapter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY },] } -]; -/** @nocollapse */ NgbDateAdapter.ngInjectableDef = ɵɵdefineInjectable({ factory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY, token: NgbDateAdapter, providedIn: "root" }); -class NgbDateStructAdapter extends NgbDateAdapter { - /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - fromModel(date) { - return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ? - { year: date.year, month: date.month, day: date.day } : - null; - } - /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - toModel(date) { - return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ? - { year: date.year, month: date.month, day: date.day } : - null; - } -} -NgbDateStructAdapter.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_DATEPICKER_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbDatepicker)), - multi: true -}; -/** - * A highly configurable component that helps you with selecting calendar dates. - * - * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup. - */ -class NgbDatepicker { - /** - * @param {?} _keyMapService - * @param {?} _service - * @param {?} _calendar - * @param {?} i18n - * @param {?} config - * @param {?} _cd - * @param {?} _elementRef - * @param {?} _ngbDateAdapter - * @param {?} _ngZone - */ - constructor(_keyMapService, _service, _calendar, i18n, config, _cd, _elementRef, _ngbDateAdapter, _ngZone) { - this._keyMapService = _keyMapService; - this._service = _service; - this._calendar = _calendar; - this.i18n = i18n; - this._cd = _cd; - this._elementRef = _elementRef; - this._ngbDateAdapter = _ngbDateAdapter; - this._ngZone = _ngZone; - this._destroyed$ = new Subject(); - /** - * An event emitted right before the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - this.navigate = new EventEmitter(); - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - */ - this.select = new EventEmitter(); - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.onTouched = (/** - * @return {?} - */ - () => { }); - ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate', - 'maxDate', 'navigation', 'outsideDays', 'showWeekdays', 'showWeekNumbers', 'startDate'] - .forEach((/** - * @param {?} input - * @return {?} - */ - input => this[input] = config[input])); - _service.select$.pipe(takeUntil(this._destroyed$)).subscribe((/** - * @param {?} date - * @return {?} - */ - date => { this.select.emit(date); })); - _service.model$.pipe(takeUntil(this._destroyed$)).subscribe((/** - * @param {?} model - * @return {?} - */ - model => { - /** @type {?} */ - const newDate = model.firstDate; - /** @type {?} */ - const oldDate = this.model ? this.model.firstDate : null; - /** @type {?} */ - let navigationPrevented = false; - // emitting navigation event if the first month changes - if (!newDate.equals(oldDate)) { - this.navigate.emit({ - current: oldDate ? { year: oldDate.year, month: oldDate.month } : null, - next: { year: newDate.year, month: newDate.month }, - preventDefault: (/** - * @return {?} - */ - () => navigationPrevented = true) - }); - // can't prevent the very first navigation - if (navigationPrevented && oldDate !== null) { - this._service.open(oldDate); - return; - } - } - /** @type {?} */ - const newSelectedDate = model.selectedDate; - /** @type {?} */ - const newFocusedDate = model.focusDate; - /** @type {?} */ - const oldFocusedDate = this.model ? this.model.focusDate : null; - this.model = model; - // handling selection change - if (isChangedDate(newSelectedDate, this._controlValue)) { - this._controlValue = newSelectedDate; - this.onTouched(); - this.onChange(this._ngbDateAdapter.toModel(newSelectedDate)); - } - // handling focus change - if (isChangedDate(newFocusedDate, oldFocusedDate) && oldFocusedDate && model.focusVisible) { - this.focus(); - } - _cd.markForCheck(); - })); - } - /** - * @return {?} - */ - focus() { - this._ngZone.onStable.asObservable().pipe(take(1)).subscribe((/** - * @return {?} - */ - () => { - /** @type {?} */ - const elementToFocus = this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]'); - if (elementToFocus) { - elementToFocus.focus(); - } - })); - } - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - navigateTo(date) { - this._service.open(NgbDate.from(date ? date.day ? (/** @type {?} */ (date)) : Object.assign({}, date, { day: 1 }) : null)); - } - /** - * @return {?} - */ - ngAfterViewInit() { - this._ngZone.runOutsideAngular((/** - * @return {?} - */ - () => { - /** @type {?} */ - const focusIns$ = fromEvent(this._monthsEl.nativeElement, 'focusin'); - /** @type {?} */ - const focusOuts$ = fromEvent(this._monthsEl.nativeElement, 'focusout'); - // we're changing 'focusVisible' only when entering or leaving months view - // and ignoring all focus events where both 'target' and 'related' target are day cells - merge(focusIns$, focusOuts$) - .pipe(filter((/** - * @param {?} __0 - * @return {?} - */ - ({ target, relatedTarget }) => !(hasClassName(target, 'ngb-dp-day') && hasClassName(relatedTarget, 'ngb-dp-day')))), takeUntil(this._destroyed$)) - .subscribe((/** - * @param {?} __0 - * @return {?} - */ - ({ type }) => this._ngZone.run((/** - * @return {?} - */ - () => this._service.focusVisible = type === 'focusin')))); - })); - } - /** - * @return {?} - */ - ngOnDestroy() { this._destroyed$.next(); } - /** - * @return {?} - */ - ngOnInit() { - if (this.model === undefined) { - ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate', - 'outsideDays'] - .forEach((/** - * @param {?} input - * @return {?} - */ - input => this._service[input] = this[input])); - this.navigateTo(this.startDate); - } - } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate', - 'outsideDays'] - .filter((/** - * @param {?} input - * @return {?} - */ - input => input in changes)) - .forEach((/** - * @param {?} input - * @return {?} - */ - input => this._service[input] = this[input])); - if ('startDate' in changes) { - const { currentValue, previousValue } = changes.startDate; - if (isChangedMonth(previousValue, currentValue)) { - this.navigateTo(this.startDate); - } - } - } - /** - * @param {?} date - * @return {?} - */ - onDateSelect(date) { - this._service.focus(date); - this._service.select(date, { emitEvent: true }); - } - /** - * @param {?} event - * @return {?} - */ - onKeyDown(event) { this._keyMapService.processKey(event); } - /** - * @param {?} date - * @return {?} - */ - onNavigateDateSelect(date) { this._service.open(date); } - /** - * @param {?} event - * @return {?} - */ - onNavigateEvent(event) { - switch (event) { - case NavigationEvent.PREV: - this._service.open(this._calendar.getPrev(this.model.firstDate, 'm', 1)); - break; - case NavigationEvent.NEXT: - this._service.open(this._calendar.getNext(this.model.firstDate, 'm', 1)); - break; - } - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this.onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this.onTouched = fn; } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { this._service.disabled = isDisabled; } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this._controlValue = NgbDate.from(this._ngbDateAdapter.fromModel(value)); - this._service.select(this._controlValue); - } -} -NgbDatepicker.decorators = [ - { type: Component, args: [{ - exportAs: 'ngbDatepicker', - selector: 'ngb-datepicker', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: ` - -
-
-
- -
- - -
- -
- -
-
- {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }} -
- - -
-
-
- - - `, - providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService, NgbDatepickerKeyMapService], - styles: ["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"] - }] } -]; -/** @nocollapse */ -NgbDatepicker.ctorParameters = () => [ - { type: NgbDatepickerKeyMapService }, - { type: NgbDatepickerService }, - { type: NgbCalendar }, - { type: NgbDatepickerI18n }, - { type: NgbDatepickerConfig }, - { type: ChangeDetectorRef }, - { type: ElementRef }, - { type: NgbDateAdapter }, - { type: NgZone } -]; -NgbDatepicker.propDecorators = { - _monthsEl: [{ type: ViewChild, args: ['months', { static: true },] }], - dayTemplate: [{ type: Input }], - dayTemplateData: [{ type: Input }], - displayMonths: [{ type: Input }], - firstDayOfWeek: [{ type: Input }], - footerTemplate: [{ type: Input }], - markDisabled: [{ type: Input }], - maxDate: [{ type: Input }], - minDate: [{ type: Input }], - navigation: [{ type: Input }], - outsideDays: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - startDate: [{ type: Input }], - navigate: [{ type: Output }], - select: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbDatepickerMonthView { - /** - * @param {?} i18n - */ - constructor(i18n) { - this.i18n = i18n; - this.select = new EventEmitter(); - } - /** - * @param {?} day - * @return {?} - */ - doSelect(day) { - if (!day.context.disabled && !day.hidden) { - this.select.emit(day.date); - } - } -} -NgbDatepickerMonthView.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-month-view', - host: { 'role': 'grid' }, - encapsulation: ViewEncapsulation.None, - template: ` -
-
-
- {{ i18n.getWeekdayShortName(w) }} -
-
- -
-
{{ i18n.getWeekNumerals(week.number) }}
-
- - - -
-
-
- `, - styles: ["ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}"] - }] } -]; -/** @nocollapse */ -NgbDatepickerMonthView.ctorParameters = () => [ - { type: NgbDatepickerI18n } -]; -NgbDatepickerMonthView.propDecorators = { - dayTemplate: [{ type: Input }], - month: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - select: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbDatepickerNavigation { - /** - * @param {?} i18n - */ - constructor(i18n) { - this.i18n = i18n; - this.navigation = NavigationEvent; - this.months = []; - this.navigate = new EventEmitter(); - this.select = new EventEmitter(); - } -} -NgbDatepickerNavigation.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-navigation', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: ` -
- -
- - - - -
-
- {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }} -
-
-
-
- -
- `, - styles: ["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"] - }] } -]; -/** @nocollapse */ -NgbDatepickerNavigation.ctorParameters = () => [ - { type: NgbDatepickerI18n } -]; -NgbDatepickerNavigation.propDecorators = { - date: [{ type: Input }], - disabled: [{ type: Input }], - months: [{ type: Input }], - showSelect: [{ type: Input }], - prevDisabled: [{ type: Input }], - nextDisabled: [{ type: Input }], - selectBoxes: [{ type: Input }], - navigate: [{ type: Output }], - select: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const isContainedIn = (/** - * @param {?} element - * @param {?=} array - * @return {?} - */ -(element, array) => array ? array.some((/** - * @param {?} item - * @return {?} - */ -item => item.contains(element))) : false); -/** @type {?} */ -const matchesSelectorIfAny = (/** - * @param {?} element - * @param {?=} selector - * @return {?} - */ -(element, selector) => !selector || closest(element, selector) != null); -// we'll have to use 'touch' events instead of 'mouse' events on iOS and add a more significant delay -// to avoid re-opening when handling (click) on a toggling element -// TODO: use proper Angular platform detection when NgbAutoClose becomes a service and we can inject PLATFORM_ID -/** @type {?} */ -let iOS = false; -if (typeof navigator !== 'undefined') { - iOS = !!navigator.userAgent && /iPad|iPhone|iPod/.test(navigator.userAgent); -} -/** - * @param {?} zone - * @param {?} document - * @param {?} type - * @param {?} close - * @param {?} closed$ - * @param {?} insideElements - * @param {?=} ignoreElements - * @param {?=} insideSelector - * @return {?} - */ -function ngbAutoClose(zone, document, type, close, closed$, insideElements, ignoreElements, insideSelector) { - // closing on ESC and outside clicks - if (type) { - zone.runOutsideAngular((/** - * @return {?} - */ - () => { - /** @type {?} */ - const shouldCloseOnClick = (/** - * @param {?} event - * @return {?} - */ - (event) => { - /** @type {?} */ - const element = (/** @type {?} */ (event.target)); - if ((event instanceof MouseEvent && event.button === 2) || isContainedIn(element, ignoreElements)) { - return false; - } - if (type === 'inside') { - return isContainedIn(element, insideElements) && matchesSelectorIfAny(element, insideSelector); - } - else if (type === 'outside') { - return !isContainedIn(element, insideElements); - } - else /* if (type === true) */ { - return matchesSelectorIfAny(element, insideSelector) || !isContainedIn(element, insideElements); - } - }); - /** @type {?} */ - const escapes$ = fromEvent(document, 'keydown') - .pipe(takeUntil(closed$), - // tslint:disable-next-line:deprecation - filter((/** - * @param {?} e - * @return {?} - */ - e => e.which === Key.Escape))); - // we have to pre-calculate 'shouldCloseOnClick' on 'mousedown/touchstart', - // because on 'mouseup/touchend' DOM nodes might be detached - /** @type {?} */ - const mouseDowns$ = fromEvent(document, iOS ? 'touchstart' : 'mousedown') - .pipe(map(shouldCloseOnClick), takeUntil(closed$)); - /** @type {?} */ - const closeableClicks$ = (/** @type {?} */ (fromEvent(document, iOS ? 'touchend' : 'mouseup') - .pipe(withLatestFrom(mouseDowns$), filter((/** - * @param {?} __0 - * @return {?} - */ - ([_, shouldClose]) => shouldClose)), delay(iOS ? 16 : 0), takeUntil(closed$)))); - race([escapes$, closeableClicks$]).subscribe((/** - * @return {?} - */ - () => zone.run(close))); - })); - } -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const FOCUSABLE_ELEMENTS_SELECTOR = [ - 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type="hidden"])', 'select:not([disabled])', - 'textarea:not([disabled])', '[contenteditable]', '[tabindex]:not([tabindex="-1"])' -].join(', '); -/** - * Returns first and last focusable elements inside of a given element based on specific CSS selector - * @param {?} element - * @return {?} - */ -function getFocusableBoundaryElements(element) { - /** @type {?} */ - const list = Array.from((/** @type {?} */ (element.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)))) - .filter((/** - * @param {?} el - * @return {?} - */ - el => el.tabIndex !== -1)); - return [list[0], list[list.length - 1]]; -} -/** - * Function that enforces browser focus to be trapped inside a DOM element. - * - * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element - * - * \@param element The element around which focus will be trapped inside - * \@param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners - * and free internal resources - * \@param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to - * false) - * @type {?} - */ -const ngbFocusTrap = (/** - * @param {?} element - * @param {?} stopFocusTrap$ - * @param {?=} refocusOnClick - * @return {?} - */ -(element, stopFocusTrap$, refocusOnClick = false) => { - // last focused element - /** @type {?} */ - const lastFocusedElement$ = fromEvent(element, 'focusin').pipe(takeUntil(stopFocusTrap$), map((/** - * @param {?} e - * @return {?} - */ - e => e.target))); - // 'tab' / 'shift+tab' stream - fromEvent(element, 'keydown') - .pipe(takeUntil(stopFocusTrap$), - // tslint:disable:deprecation - filter((/** - * @param {?} e - * @return {?} - */ - e => e.which === Key.Tab)), - // tslint:enable:deprecation - withLatestFrom(lastFocusedElement$)) - .subscribe((/** - * @param {?} __0 - * @return {?} - */ - ([tabEvent, focusedElement]) => { - const [first, last] = getFocusableBoundaryElements(element); - if ((focusedElement === first || focusedElement === element) && tabEvent.shiftKey) { - last.focus(); - tabEvent.preventDefault(); - } - if (focusedElement === last && !tabEvent.shiftKey) { - first.focus(); - tabEvent.preventDefault(); - } - })); - // inside click - if (refocusOnClick) { - fromEvent(element, 'click') - .pipe(takeUntil(stopFocusTrap$), withLatestFrom(lastFocusedElement$), map((/** - * @param {?} arr - * @return {?} - */ - arr => (/** @type {?} */ (arr[1]))))) - .subscribe((/** - * @param {?} lastFocusedElement - * @return {?} - */ - lastFocusedElement => lastFocusedElement.focus())); - } -}); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -// previous version: -// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js -class Positioning { - /** - * @private - * @param {?} element - * @return {?} - */ - getAllStyles(element) { return window.getComputedStyle(element); } - /** - * @private - * @param {?} element - * @param {?} prop - * @return {?} - */ - getStyle(element, prop) { return this.getAllStyles(element)[prop]; } - /** - * @private - * @param {?} element - * @return {?} - */ - isStaticPositioned(element) { - return (this.getStyle(element, 'position') || 'static') === 'static'; - } - /** - * @private - * @param {?} element - * @return {?} - */ - offsetParent(element) { - /** @type {?} */ - let offsetParentEl = (/** @type {?} */ (element.offsetParent)) || document.documentElement; - while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) { - offsetParentEl = (/** @type {?} */ (offsetParentEl.offsetParent)); - } - return offsetParentEl || document.documentElement; - } - /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - position(element, round = true) { - /** @type {?} */ - let elPosition; - /** @type {?} */ - let parentOffset = { width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0 }; - if (this.getStyle(element, 'position') === 'fixed') { - elPosition = element.getBoundingClientRect(); - elPosition = { - top: elPosition.top, - bottom: elPosition.bottom, - left: elPosition.left, - right: elPosition.right, - height: elPosition.height, - width: elPosition.width - }; - } - else { - /** @type {?} */ - const offsetParentEl = this.offsetParent(element); - elPosition = this.offset(element, false); - if (offsetParentEl !== document.documentElement) { - parentOffset = this.offset(offsetParentEl, false); - } - parentOffset.top += offsetParentEl.clientTop; - parentOffset.left += offsetParentEl.clientLeft; - } - elPosition.top -= parentOffset.top; - elPosition.bottom -= parentOffset.top; - elPosition.left -= parentOffset.left; - elPosition.right -= parentOffset.left; - if (round) { - elPosition.top = Math.round(elPosition.top); - elPosition.bottom = Math.round(elPosition.bottom); - elPosition.left = Math.round(elPosition.left); - elPosition.right = Math.round(elPosition.right); - } - return elPosition; - } - /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - offset(element, round = true) { - /** @type {?} */ - const elBcr = element.getBoundingClientRect(); - /** @type {?} */ - const viewportOffset = { - top: window.pageYOffset - document.documentElement.clientTop, - left: window.pageXOffset - document.documentElement.clientLeft - }; - /** @type {?} */ - let elOffset = { - height: elBcr.height || element.offsetHeight, - width: elBcr.width || element.offsetWidth, - top: elBcr.top + viewportOffset.top, - bottom: elBcr.bottom + viewportOffset.top, - left: elBcr.left + viewportOffset.left, - right: elBcr.right + viewportOffset.left - }; - if (round) { - elOffset.height = Math.round(elOffset.height); - elOffset.width = Math.round(elOffset.width); - elOffset.top = Math.round(elOffset.top); - elOffset.bottom = Math.round(elOffset.bottom); - elOffset.left = Math.round(elOffset.left); - elOffset.right = Math.round(elOffset.right); - } - return elOffset; - } - /* - Return false if the element to position is outside the viewport - */ - /** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @return {?} - */ - positionElements(hostElement, targetElement, placement, appendToBody) { - const [placementPrimary = 'top', placementSecondary = 'center'] = placement.split('-'); - /** @type {?} */ - const hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false); - /** @type {?} */ - const targetElStyles = this.getAllStyles(targetElement); - /** @type {?} */ - const marginTop = parseFloat(targetElStyles.marginTop); - /** @type {?} */ - const marginBottom = parseFloat(targetElStyles.marginBottom); - /** @type {?} */ - const marginLeft = parseFloat(targetElStyles.marginLeft); - /** @type {?} */ - const marginRight = parseFloat(targetElStyles.marginRight); - /** @type {?} */ - let topPosition = 0; - /** @type {?} */ - let leftPosition = 0; - switch (placementPrimary) { - case 'top': - topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom)); - break; - case 'bottom': - topPosition = (hostElPosition.top + hostElPosition.height); - break; - case 'left': - leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight)); - break; - case 'right': - leftPosition = (hostElPosition.left + hostElPosition.width); - break; - } - switch (placementSecondary) { - case 'top': - topPosition = hostElPosition.top; - break; - case 'bottom': - topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight; - break; - case 'left': - leftPosition = hostElPosition.left; - break; - case 'right': - leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth; - break; - case 'center': - if (placementPrimary === 'top' || placementPrimary === 'bottom') { - leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2); - } - else { - topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2); - } - break; - } - /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix - // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`; - targetElement.style.transform = `translate(${Math.round(leftPosition)}px, ${Math.round(topPosition)}px)`; - // Check if the targetElement is inside the viewport - /** @type {?} */ - const targetElBCR = targetElement.getBoundingClientRect(); - /** @type {?} */ - const html = document.documentElement; - /** @type {?} */ - const windowHeight = window.innerHeight || html.clientHeight; - /** @type {?} */ - const windowWidth = window.innerWidth || html.clientWidth; - return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth && - targetElBCR.bottom <= windowHeight; - } -} -/** @type {?} */ -const placementSeparator = /\s+/; -/** @type {?} */ -const positionService = new Positioning(); -/* - * Accept the placement array and applies the appropriate placement dependent on the viewport. - * Returns the applied placement. - * In case of auto placement, placements are selected in order - * 'top', 'bottom', 'left', 'right', - * 'top-left', 'top-right', - * 'bottom-left', 'bottom-right', - * 'left-top', 'left-bottom', - * 'right-top', 'right-bottom'. - * */ -/** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @param {?=} baseClass - * @return {?} - */ -function positionElements(hostElement, targetElement, placement, appendToBody, baseClass) { - /** @type {?} */ - let placementVals = Array.isArray(placement) ? placement : (/** @type {?} */ (placement.split(placementSeparator))); - /** @type {?} */ - const allowedPlacements = [ - 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom', - 'right-top', 'right-bottom' - ]; - /** @type {?} */ - const classList = targetElement.classList; - /** @type {?} */ - const addClassesToTarget = (/** - * @param {?} targetPlacement - * @return {?} - */ - (targetPlacement) => { - const [primary, secondary] = targetPlacement.split('-'); - /** @type {?} */ - const classes = []; - if (baseClass) { - classes.push(`${baseClass}-${primary}`); - if (secondary) { - classes.push(`${baseClass}-${primary}-${secondary}`); - } - classes.forEach((/** - * @param {?} classname - * @return {?} - */ - (classname) => { classList.add(classname); })); - } - return classes; - }); - // Remove old placement classes to avoid issues - if (baseClass) { - allowedPlacements.forEach((/** - * @param {?} placementToRemove - * @return {?} - */ - (placementToRemove) => { classList.remove(`${baseClass}-${placementToRemove}`); })); - } - // replace auto placement with other placements - /** @type {?} */ - let hasAuto = placementVals.findIndex((/** - * @param {?} val - * @return {?} - */ - val => val === 'auto')); - if (hasAuto >= 0) { - allowedPlacements.forEach((/** - * @param {?} obj - * @return {?} - */ - function (obj) { - if (placementVals.find((/** - * @param {?} val - * @return {?} - */ - val => val.search('^' + obj) !== -1)) == null) { - placementVals.splice(hasAuto++, 1, (/** @type {?} */ (obj))); - } - })); - } - // coordinates where to position - // Required for transform: - /** @type {?} */ - const style = targetElement.style; - style.position = 'absolute'; - style.top = '0'; - style.left = '0'; - style['will-change'] = 'transform'; - /** @type {?} */ - let testPlacement; - /** @type {?} */ - let isInViewport = false; - for (testPlacement of placementVals) { - /** @type {?} */ - let addedClasses = addClassesToTarget(testPlacement); - if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) { - isInViewport = true; - break; - } - // Remove the baseClasses for further calculation - if (baseClass) { - addedClasses.forEach((/** - * @param {?} classname - * @return {?} - */ - (classname) => { classList.remove(classname); })); - } - } - if (!isInViewport) { - // If nothing match, the first placement is the default one - testPlacement = placementVals[0]; - addClassesToTarget(testPlacement); - positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody); - } - return testPlacement; -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @return {?} - */ -function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY() { - return new NgbDateISOParserFormatter(); -} -/** - * An abstract service for parsing and formatting dates for the - * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive. - * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the - * input element. - * - * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object. - * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string` - * in the input. - * - * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI - * to use an alternative string format or a custom parsing logic. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * @abstract - */ -class NgbDateParserFormatter { -} -NgbDateParserFormatter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY },] } -]; -/** @nocollapse */ NgbDateParserFormatter.ngInjectableDef = ɵɵdefineInjectable({ factory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY, token: NgbDateParserFormatter, providedIn: "root" }); -class NgbDateISOParserFormatter extends NgbDateParserFormatter { - /** - * @param {?} value - * @return {?} - */ - parse(value) { - if (value) { - /** @type {?} */ - const dateParts = value.trim().split('-'); - if (dateParts.length === 1 && isNumber(dateParts[0])) { - return { year: toInteger(dateParts[0]), month: null, day: null }; - } - else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) { - return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null }; - } - else if (dateParts.length === 3 && isNumber(dateParts[0]) && isNumber(dateParts[1]) && isNumber(dateParts[2])) { - return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: toInteger(dateParts[2]) }; - } - } - return null; - } - /** - * @param {?} date - * @return {?} - */ - format(date) { - return date ? - `${date.year}-${isNumber(date.month) ? padNumber(date.month) : ''}-${isNumber(date.day) ? padNumber(date.day) : ''}` : - ''; - } -} -NgbDateISOParserFormatter.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_DATEPICKER_VALUE_ACCESSOR$1 = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbInputDatepicker)), - multi: true -}; -/** @type {?} */ -const NGB_DATEPICKER_VALIDATOR = { - provide: NG_VALIDATORS, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbInputDatepicker)), - multi: true -}; -/** - * A directive that allows to stick a datepicker popup to an input field. - * - * Manages interaction with the input field itself, does value formatting and provides forms integration. - */ -class NgbInputDatepicker { - /** - * @param {?} _parserFormatter - * @param {?} _elRef - * @param {?} _vcRef - * @param {?} _renderer - * @param {?} _cfr - * @param {?} _ngZone - * @param {?} _service - * @param {?} _calendar - * @param {?} _dateAdapter - * @param {?} _document - * @param {?} _changeDetector - */ - constructor(_parserFormatter, _elRef, _vcRef, _renderer, _cfr, _ngZone, _service, _calendar, _dateAdapter, _document, _changeDetector) { - this._parserFormatter = _parserFormatter; - this._elRef = _elRef; - this._vcRef = _vcRef; - this._renderer = _renderer; - this._cfr = _cfr; - this._ngZone = _ngZone; - this._service = _service; - this._calendar = _calendar; - this._dateAdapter = _dateAdapter; - this._document = _document; - this._changeDetector = _changeDetector; - this._cRef = null; - this._disabled = false; - /** - * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not. - * - * * `true` - the popup will close on both date selection and outside click. - * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the popup will close on date selection, but not outside clicks. - * * `"outside"` - the popup will close only on the outside click and not on date selection/inside clicks. - * - * \@since 3.0.0 - */ - this.autoClose = true; - /** - * The preferred placement of the datepicker popup. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - * - * \@since 1.1.1 - */ - this.dateSelect = new EventEmitter(); - /** - * Event emitted right after the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - this.navigate = new EventEmitter(); - /** - * An event fired after closing datepicker window. - * - * \@since 4.2.0 - */ - this.closed = new EventEmitter(); - this._onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this._onTouched = (/** - * @return {?} - */ - () => { }); - this._validatorChange = (/** - * @return {?} - */ - () => { }); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - () => this._updatePopupPosition())); - } - /** - * @return {?} - */ - get disabled() { - return this._disabled; - } - /** - * @param {?} value - * @return {?} - */ - set disabled(value) { - this._disabled = value === '' || (value && value !== 'false'); - if (this.isOpen()) { - this._cRef.instance.setDisabledState(this._disabled); - } - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this._onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this._onTouched = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnValidatorChange(fn) { this._validatorChange = fn; } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { this.disabled = isDisabled; } - /** - * @param {?} c - * @return {?} - */ - validate(c) { - /** @type {?} */ - const value = c.value; - if (value === null || value === undefined) { - return null; - } - /** @type {?} */ - const ngbDate = this._fromDateStruct(this._dateAdapter.fromModel(value)); - if (!this._calendar.isValid(ngbDate)) { - return { 'ngbDate': { invalid: c.value } }; - } - if (this.minDate && ngbDate.before(NgbDate.from(this.minDate))) { - return { 'ngbDate': { requiredBefore: this.minDate } }; - } - if (this.maxDate && ngbDate.after(NgbDate.from(this.maxDate))) { - return { 'ngbDate': { requiredAfter: this.maxDate } }; - } - } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this._model = this._fromDateStruct(this._dateAdapter.fromModel(value)); - this._writeModelValue(this._model); - } - /** - * @param {?} value - * @param {?=} updateView - * @return {?} - */ - manualDateChange(value, updateView = false) { - /** @type {?} */ - const inputValueChanged = value !== this._inputValue; - if (inputValueChanged) { - this._inputValue = value; - this._model = this._fromDateStruct(this._parserFormatter.parse(value)); - } - if (inputValueChanged || !updateView) { - this._onChange(this._model ? this._dateAdapter.toModel(this._model) : (value === '' ? null : value)); - } - if (updateView && this._model) { - this._writeModelValue(this._model); - } - } - /** - * @return {?} - */ - isOpen() { return !!this._cRef; } - /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - * @return {?} - */ - open() { - if (!this.isOpen()) { - /** @type {?} */ - const cf = this._cfr.resolveComponentFactory(NgbDatepicker); - this._cRef = this._vcRef.createComponent(cf); - this._applyPopupStyling(this._cRef.location.nativeElement); - this._applyDatepickerInputs(this._cRef.instance); - this._subscribeForDatepickerOutputs(this._cRef.instance); - this._cRef.instance.ngOnInit(); - this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)); - // date selection event handling - this._cRef.instance.registerOnChange((/** - * @param {?} selectedDate - * @return {?} - */ - (selectedDate) => { - this.writeValue(selectedDate); - this._onChange(selectedDate); - this._onTouched(); - })); - this._cRef.changeDetectorRef.detectChanges(); - this._cRef.instance.setDisabledState(this.disabled); - if (this.container === 'body') { - window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement); - } - // focus handling - ngbFocusTrap(this._cRef.location.nativeElement, this.closed, true); - this._cRef.instance.focus(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - () => this.close()), this.closed, [], [this._elRef.nativeElement, this._cRef.location.nativeElement]); - } - } - /** - * Closes the datepicker popup. - * @return {?} - */ - close() { - if (this.isOpen()) { - this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)); - this._cRef = null; - this.closed.emit(); - this._changeDetector.markForCheck(); - } - } - /** - * Toggles the datepicker popup. - * @return {?} - */ - toggle() { - if (this.isOpen()) { - this.close(); - } - else { - this.open(); - } - } - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - navigateTo(date) { - if (this.isOpen()) { - this._cRef.instance.navigateTo(date); - } - } - /** - * @return {?} - */ - onBlur() { this._onTouched(); } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - if (changes['minDate'] || changes['maxDate']) { - this._validatorChange(); - } - } - /** - * @return {?} - */ - ngOnDestroy() { - this.close(); - this._zoneSubscription.unsubscribe(); - } - /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - _applyDatepickerInputs(datepickerInstance) { - ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate', - 'maxDate', 'navigation', 'outsideDays', 'showNavigation', 'showWeekdays', 'showWeekNumbers'] - .forEach((/** - * @param {?} optionName - * @return {?} - */ - (optionName) => { - if (this[optionName] !== undefined) { - datepickerInstance[optionName] = this[optionName]; - } - })); - datepickerInstance.startDate = this.startDate || this._model; - } - /** - * @private - * @param {?} nativeElement - * @return {?} - */ - _applyPopupStyling(nativeElement) { - this._renderer.addClass(nativeElement, 'dropdown-menu'); - this._renderer.addClass(nativeElement, 'show'); - if (this.container === 'body') { - this._renderer.addClass(nativeElement, 'ngb-dp-body'); - } - } - /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - _subscribeForDatepickerOutputs(datepickerInstance) { - datepickerInstance.navigate.subscribe((/** - * @param {?} navigateEvent - * @return {?} - */ - navigateEvent => this.navigate.emit(navigateEvent))); - datepickerInstance.select.subscribe((/** - * @param {?} date - * @return {?} - */ - date => { - this.dateSelect.emit(date); - if (this.autoClose === true || this.autoClose === 'inside') { - this.close(); - } - })); - } - /** - * @private - * @param {?} model - * @return {?} - */ - _writeModelValue(model) { - /** @type {?} */ - const value = this._parserFormatter.format(model); - this._inputValue = value; - this._renderer.setProperty(this._elRef.nativeElement, 'value', value); - if (this.isOpen()) { - this._cRef.instance.writeValue(this._dateAdapter.toModel(model)); - this._onTouched(); - } - } - /** - * @private - * @param {?} date - * @return {?} - */ - _fromDateStruct(date) { - /** @type {?} */ - const ngbDate = date ? new NgbDate(date.year, date.month, date.day) : null; - return this._calendar.isValid(ngbDate) ? ngbDate : null; - } - /** - * @private - * @return {?} - */ - _updatePopupPosition() { - if (!this._cRef) { - return; - } - /** @type {?} */ - let hostElement; - if (typeof this.positionTarget === 'string') { - hostElement = window.document.querySelector(this.positionTarget); - } - else if (this.positionTarget instanceof HTMLElement) { - hostElement = this.positionTarget; - } - else { - hostElement = this._elRef.nativeElement; - } - if (this.positionTarget && !hostElement) { - throw new Error('ngbDatepicker could not find element declared in [positionTarget] to position against.'); - } - positionElements(hostElement, this._cRef.location.nativeElement, this.placement, this.container === 'body'); - } -} -NgbInputDatepicker.decorators = [ - { type: Directive, args: [{ - selector: 'input[ngbDatepicker]', - exportAs: 'ngbDatepicker', - host: { - '(input)': 'manualDateChange($event.target.value)', - '(change)': 'manualDateChange($event.target.value, true)', - '(blur)': 'onBlur()', - '[disabled]': 'disabled' - }, - providers: [NGB_DATEPICKER_VALUE_ACCESSOR$1, NGB_DATEPICKER_VALIDATOR, NgbDatepickerService] - },] } -]; -/** @nocollapse */ -NgbInputDatepicker.ctorParameters = () => [ - { type: NgbDateParserFormatter }, - { type: ElementRef }, - { type: ViewContainerRef }, - { type: Renderer2 }, - { type: ComponentFactoryResolver }, - { type: NgZone }, - { type: NgbDatepickerService }, - { type: NgbCalendar }, - { type: NgbDateAdapter }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef } -]; -NgbInputDatepicker.propDecorators = { - autoClose: [{ type: Input }], - dayTemplate: [{ type: Input }], - dayTemplateData: [{ type: Input }], - displayMonths: [{ type: Input }], - firstDayOfWeek: [{ type: Input }], - footerTemplate: [{ type: Input }], - markDisabled: [{ type: Input }], - minDate: [{ type: Input }], - maxDate: [{ type: Input }], - navigation: [{ type: Input }], - outsideDays: [{ type: Input }], - placement: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - startDate: [{ type: Input }], - container: [{ type: Input }], - positionTarget: [{ type: Input }], - dateSelect: [{ type: Output }], - navigate: [{ type: Output }], - closed: [{ type: Output }], - disabled: [{ type: Input }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbDatepickerDayView { - /** - * @param {?} i18n - */ - constructor(i18n) { - this.i18n = i18n; - } - /** - * @return {?} - */ - isMuted() { return !this.selected && (this.date.month !== this.currentMonth || this.disabled); } -} -NgbDatepickerDayView.decorators = [ - { type: Component, args: [{ - selector: '[ngbDatepickerDayView]', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { - 'class': 'btn-light', - '[class.bg-primary]': 'selected', - '[class.text-white]': 'selected', - '[class.text-muted]': 'isMuted()', - '[class.outside]': 'isMuted()', - '[class.active]': 'focused' - }, - template: `{{ i18n.getDayNumerals(date) }}`, - styles: ["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"] - }] } -]; -/** @nocollapse */ -NgbDatepickerDayView.ctorParameters = () => [ - { type: NgbDatepickerI18n } -]; -NgbDatepickerDayView.propDecorators = { - currentMonth: [{ type: Input }], - date: [{ type: Input }], - disabled: [{ type: Input }], - focused: [{ type: Input }], - selected: [{ type: Input }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbDatepickerNavigationSelect { - /** - * @param {?} i18n - */ - constructor(i18n) { - this.i18n = i18n; - this.select = new EventEmitter(); - } - /** - * @param {?} month - * @return {?} - */ - changeMonth(month) { this.select.emit(new NgbDate(this.date.year, toInteger(month), 1)); } - /** - * @param {?} year - * @return {?} - */ - changeYear(year) { this.select.emit(new NgbDate(toInteger(year), this.date.month, 1)); } -} -NgbDatepickerNavigationSelect.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-navigation-select', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: ` - - `, - styles: ["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}"] - }] } -]; -/** @nocollapse */ -NgbDatepickerNavigationSelect.ctorParameters = () => [ - { type: NgbDatepickerI18n } -]; -NgbDatepickerNavigationSelect.propDecorators = { - date: [{ type: Input }], - disabled: [{ type: Input }], - months: [{ type: Input }], - years: [{ type: Input }], - select: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @abstract - */ -class NgbCalendarHijri extends NgbCalendar { - /** - * @return {?} - */ - getDaysPerWeek() { return 7; } - /** - * @return {?} - */ - getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; } - /** - * @return {?} - */ - getWeeksPerMonth() { return 6; } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getNext(date, period = 'd', number = 1) { - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date = this._setYear(date, date.year + number); - date.month = 1; - date.day = 1; - return date; - case 'm': - date = this._setMonth(date, date.month + number); - date.day = 1; - return date; - case 'd': - return this._setDay(date, date.day + number); - default: - return date; - } - } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); } - /** - * @param {?} date - * @return {?} - */ - getWeekday(date) { - /** @type {?} */ - const day = this.toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - } - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - getWeekNumber(week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - const date = week[thursdayIndex]; - /** @type {?} */ - const jsDate = this.toGregorian(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - const time = jsDate.getTime(); - /** @type {?} */ - const MuhDate = this.toGregorian(new NgbDate(date.year, 1, 1)); - return Math.floor(Math.round((time - MuhDate.getTime()) / 86400000) / 7) + 1; - } - /** - * @return {?} - */ - getToday() { return this.fromGregorian(new Date()); } - /** - * @param {?} date - * @return {?} - */ - isValid(date) { - return date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day) && - !isNaN(this.toGregorian(date).getTime()); - } - /** - * @private - * @param {?} date - * @param {?} day - * @return {?} - */ - _setDay(date, day) { - day = +day; - /** @type {?} */ - let mDays = this.getDaysPerMonth(date.month, date.year); - if (day <= 0) { - while (day <= 0) { - date = this._setMonth(date, date.month - 1); - mDays = this.getDaysPerMonth(date.month, date.year); - day += mDays; - } - } - else if (day > mDays) { - while (day > mDays) { - day -= mDays; - date = this._setMonth(date, date.month + 1); - mDays = this.getDaysPerMonth(date.month, date.year); - } - } - date.day = day; - return date; - } - /** - * @private - * @param {?} date - * @param {?} month - * @return {?} - */ - _setMonth(date, month) { - month = +month; - date.year = date.year + Math.floor((month - 1) / 12); - date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1; - return date; - } - /** - * @private - * @param {?} date - * @param {?} year - * @return {?} - */ - _setYear(date, year) { - date.year = +year; - return date; - } -} -NgbCalendarHijri.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Checks if islamic year is a leap year - * @param {?} hYear - * @return {?} - */ -function isIslamicLeapYear(hYear) { - return (14 + 11 * hYear) % 30 < 11; -} -/** - * Checks if gregorian years is a leap year - * @param {?} gDate - * @return {?} - */ -function isGregorianLeapYear(gDate) { - /** @type {?} */ - const year = gDate.getFullYear(); - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; -} -/** - * Returns the start of Hijri Month. - * `hMonth` is 0 for Muharram, 1 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hYear - * @param {?} hMonth - * @return {?} - */ -function getIslamicMonthStart(hYear, hMonth) { - return Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30.0); -} -/** - * Returns the start of Hijri year. - * `year` is any Hijri year. - * @param {?} year - * @return {?} - */ -function getIslamicYearStart(year) { - return (year - 1) * 354 + Math.floor((3 + 11 * year) / 30.0); -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function mod(a, b) { - return a - b * Math.floor(a / b); -} -/** - * The civil calendar is one type of Hijri calendars used in islamic countries. - * Uses a fixed cycle of alternating 29- and 30-day months, - * with a leap day added to the last month of 11 out of every 30 years. - * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types - * All the calculations here are based on the equations from "Calendrical Calculations" By Edward M. Reingold, Nachum - * Dershowitz. - * @type {?} - */ -const GREGORIAN_EPOCH = 1721425.5; -/** @type {?} */ -const ISLAMIC_EPOCH = 1948439.5; -class NgbCalendarIslamicCivil extends NgbCalendarHijri { - /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - fromGregorian(gDate) { - /** @type {?} */ - const gYear = gDate.getFullYear(); - /** @type {?} */ - const gMonth = gDate.getMonth(); - /** @type {?} */ - const gDay = gDate.getDate(); - /** @type {?} */ - let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) + - -Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) + - Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gDate) ? -1 : -2) + gDay); - julianDay = Math.floor(julianDay) + 0.5; - /** @type {?} */ - const days = julianDay - ISLAMIC_EPOCH; - /** @type {?} */ - const hYear = Math.floor((30 * days + 10646) / 10631.0); - /** @type {?} */ - let hMonth = Math.ceil((days - 29 - getIslamicYearStart(hYear)) / 29.5); - hMonth = Math.min(hMonth, 11); - /** @type {?} */ - const hDay = Math.ceil(days - getIslamicMonthStart(hYear, hMonth)) + 1; - return new NgbDate(hYear, hMonth + 1, hDay); - } - /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - * @param {?} hDate - * @return {?} - */ - toGregorian(hDate) { - /** @type {?} */ - const hYear = hDate.year; - /** @type {?} */ - const hMonth = hDate.month - 1; - /** @type {?} */ - const hDay = hDate.day; - /** @type {?} */ - const julianDay = hDay + Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30) + ISLAMIC_EPOCH - 1; - /** @type {?} */ - const wjd = Math.floor(julianDay - 0.5) + 0.5; - /** @type {?} */ - const depoch = wjd - GREGORIAN_EPOCH; - /** @type {?} */ - const quadricent = Math.floor(depoch / 146097); - /** @type {?} */ - const dqc = mod(depoch, 146097); - /** @type {?} */ - const cent = Math.floor(dqc / 36524); - /** @type {?} */ - const dcent = mod(dqc, 36524); - /** @type {?} */ - const quad = Math.floor(dcent / 1461); - /** @type {?} */ - const dquad = mod(dcent, 1461); - /** @type {?} */ - const yindex = Math.floor(dquad / 365); - /** @type {?} */ - let year = quadricent * 400 + cent * 100 + quad * 4 + yindex; - if (!(cent === 4 || yindex === 4)) { - year++; - } - /** @type {?} */ - const gYearStart = GREGORIAN_EPOCH + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400); - /** @type {?} */ - const yearday = wjd - gYearStart; - /** @type {?} */ - const tjd = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400) + Math.floor(739 / 12 + (isGregorianLeapYear(new Date(year, 3, 1)) ? -1 : -2) + 1); - /** @type {?} */ - const leapadj = wjd < tjd ? 0 : isGregorianLeapYear(new Date(year, 3, 1)) ? 1 : 2; - /** @type {?} */ - const month = Math.floor(((yearday + leapadj) * 12 + 373) / 367); - /** @type {?} */ - const tjd2 = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400) + - Math.floor((367 * month - 362) / 12 + (month <= 2 ? 0 : isGregorianLeapYear(new Date(year, month - 1, 1)) ? -1 : -2) + - 1); - /** @type {?} */ - const day = wjd - tjd2 + 1; - return new Date(year, month - 1, day); - } - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - * @param {?} month - * @param {?} year - * @return {?} - */ - getDaysPerMonth(month, year) { - year = year + Math.floor(month / 13); - month = ((month - 1) % 12) + 1; - /** @type {?} */ - let length = 29 + month % 2; - if (month === 12 && isIslamicLeapYear(year)) { - length++; - } - return length; - } -} -NgbCalendarIslamicCivil.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Umalqura calendar is one type of Hijri calendars used in islamic countries. - * This Calendar is used by Saudi Arabia for administrative purpose. - * Unlike tabular calendars, the algorithm involves astronomical calculation, but it's still deterministic. - * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types - * @type {?} - */ -const GREGORIAN_FIRST_DATE = new Date(1882, 10, 12); -/** @type {?} */ -const GREGORIAN_LAST_DATE = new Date(2174, 10, 25); -/** @type {?} */ -const HIJRI_BEGIN = 1300; -/** @type {?} */ -const HIJRI_END = 1600; -/** @type {?} */ -const ONE_DAY = 1000 * 60 * 60 * 24; -/** @type {?} */ -const MONTH_LENGTH = [ - // 1300-1304 - '101010101010', '110101010100', '111011001001', '011011010100', '011011101010', - // 1305-1309 - '001101101100', '101010101101', '010101010101', '011010101001', '011110010010', - // 1310-1314 - '101110101001', '010111010100', '101011011010', '010101011100', '110100101101', - // 1315-1319 - '011010010101', '011101001010', '101101010100', '101101101010', '010110101101', - // 1320-1324 - '010010101110', '101001001111', '010100010111', '011010001011', '011010100101', - // 1325-1329 - '101011010101', '001011010110', '100101011011', '010010011101', '101001001101', - // 1330-1334 - '110100100110', '110110010101', '010110101100', '100110110110', '001010111010', - // 1335-1339 - '101001011011', '010100101011', '101010010101', '011011001010', '101011101001', - // 1340-1344 - '001011110100', '100101110110', '001010110110', '100101010110', '101011001010', - // 1345-1349 - '101110100100', '101111010010', '010111011001', '001011011100', '100101101101', - // 1350-1354 - '010101001101', '101010100101', '101101010010', '101110100101', '010110110100', - // 1355-1359 - '100110110110', '010101010111', '001010010111', '010101001011', '011010100011', - // 1360-1364 - '011101010010', '101101100101', '010101101010', '101010101011', '010100101011', - // 1365-1369 - '110010010101', '110101001010', '110110100101', '010111001010', '101011010110', - // 1370-1374 - '100101010111', '010010101011', '100101001011', '101010100101', '101101010010', - // 1375-1379 - '101101101010', '010101110101', '001001110110', '100010110111', '010001011011', - // 1380-1384 - '010101010101', '010110101001', '010110110100', '100111011010', '010011011101', - // 1385-1389 - '001001101110', '100100110110', '101010101010', '110101010100', '110110110010', - // 1390-1394 - '010111010101', '001011011010', '100101011011', '010010101011', '101001010101', - // 1395-1399 - '101101001001', '101101100100', '101101110001', '010110110100', '101010110101', - // 1400-1404 - '101001010101', '110100100101', '111010010010', '111011001001', '011011010100', - // 1405-1409 - '101011101001', '100101101011', '010010101011', '101010010011', '110101001001', - // 1410-1414 - '110110100100', '110110110010', '101010111001', '010010111010', '101001011011', - // 1415-1419 - '010100101011', '101010010101', '101100101010', '101101010101', '010101011100', - // 1420-1424 - '010010111101', '001000111101', '100100011101', '101010010101', '101101001010', - // 1425-1429 - '101101011010', '010101101101', '001010110110', '100100111011', '010010011011', - // 1430-1434 - '011001010101', '011010101001', '011101010100', '101101101010', '010101101100', - // 1435-1439 - '101010101101', '010101010101', '101100101001', '101110010010', '101110101001', - // 1440-1444 - '010111010100', '101011011010', '010101011010', '101010101011', '010110010101', - // 1445-1449 - '011101001001', '011101100100', '101110101010', '010110110101', '001010110110', - // 1450-1454 - '101001010110', '111001001101', '101100100101', '101101010010', '101101101010', - // 1455-1459 - '010110101101', '001010101110', '100100101111', '010010010111', '011001001011', - // 1460-1464 - '011010100101', '011010101100', '101011010110', '010101011101', '010010011101', - // 1465-1469 - '101001001101', '110100010110', '110110010101', '010110101010', '010110110101', - // 1470-1474 - '001011011010', '100101011011', '010010101101', '010110010101', '011011001010', - // 1475-1479 - '011011100100', '101011101010', '010011110101', '001010110110', '100101010110', - // 1480-1484 - '101010101010', '101101010100', '101111010010', '010111011001', '001011101010', - // 1485-1489 - '100101101101', '010010101101', '101010010101', '101101001010', '101110100101', - // 1490-1494 - '010110110010', '100110110101', '010011010110', '101010010111', '010101000111', - // 1495-1499 - '011010010011', '011101001001', '101101010101', '010101101010', '101001101011', - // 1500-1504 - '010100101011', '101010001011', '110101000110', '110110100011', '010111001010', - // 1505-1509 - '101011010110', '010011011011', '001001101011', '100101001011', '101010100101', - // 1510-1514 - '101101010010', '101101101001', '010101110101', '000101110110', '100010110111', - // 1515-1519 - '001001011011', '010100101011', '010101100101', '010110110100', '100111011010', - // 1520-1524 - '010011101101', '000101101101', '100010110110', '101010100110', '110101010010', - // 1525-1529 - '110110101001', '010111010100', '101011011010', '100101011011', '010010101011', - // 1530-1534 - '011001010011', '011100101001', '011101100010', '101110101001', '010110110010', - // 1535-1539 - '101010110101', '010101010101', '101100100101', '110110010010', '111011001001', - // 1540-1544 - '011011010010', '101011101001', '010101101011', '010010101011', '101001010101', - // 1545-1549 - '110100101001', '110101010100', '110110101010', '100110110101', '010010111010', - // 1550-1554 - '101000111011', '010010011011', '101001001101', '101010101010', '101011010101', - // 1555-1559 - '001011011010', '100101011101', '010001011110', '101000101110', '110010011010', - // 1560-1564 - '110101010101', '011010110010', '011010111001', '010010111010', '101001011101', - // 1565-1569 - '010100101101', '101010010101', '101101010010', '101110101000', '101110110100', - // 1570-1574 - '010110111001', '001011011010', '100101011010', '101101001010', '110110100100', - // 1575-1579 - '111011010001', '011011101000', '101101101010', '010101101101', '010100110101', - // 1580-1584 - '011010010101', '110101001010', '110110101000', '110111010100', '011011011010', - // 1585-1589 - '010101011011', '001010011101', '011000101011', '101100010101', '101101001010', - // 1590-1594 - '101110010101', '010110101010', '101010101110', '100100101110', '110010001111', - // 1595-1599 - '010100100111', '011010010101', '011010101010', '101011010110', '010101011101', - // 1600 - '001010011101' -]; -/** - * @param {?} date1 - * @param {?} date2 - * @return {?} - */ -function getDaysDiff(date1, date2) { - // Ignores the time part in date1 and date2: - /** @type {?} */ - const time1 = Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate()); - /** @type {?} */ - const time2 = Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate()); - /** @type {?} */ - const diff = Math.abs(time1 - time2); - return Math.round(diff / ONE_DAY); -} -class NgbCalendarIslamicUmalqura extends NgbCalendarIslamicCivil { - /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - fromGregorian(gDate) { - /** @type {?} */ - let hDay = 1; - /** @type {?} */ - let hMonth = 0; - /** @type {?} */ - let hYear = 1300; - /** @type {?} */ - let daysDiff = getDaysDiff(gDate, GREGORIAN_FIRST_DATE); - if (gDate.getTime() - GREGORIAN_FIRST_DATE.getTime() >= 0 && gDate.getTime() - GREGORIAN_LAST_DATE.getTime() <= 0) { - /** @type {?} */ - let year = 1300; - for (let i = 0; i < MONTH_LENGTH.length; i++, year++) { - for (let j = 0; j < 12; j++) { - /** @type {?} */ - let numOfDays = +MONTH_LENGTH[i][j] + 29; - if (daysDiff <= numOfDays) { - hDay = daysDiff + 1; - if (hDay > numOfDays) { - hDay = 1; - j++; - } - if (j > 11) { - j = 0; - year++; - } - hMonth = j; - hYear = year; - return new NgbDate(hYear, hMonth + 1, hDay); - } - daysDiff = daysDiff - numOfDays; - } - } - } - else { - return super.fromGregorian(gDate); - } - } - /** - * Converts the current Hijri date to Gregorian. - * @param {?} hDate - * @return {?} - */ - toGregorian(hDate) { - /** @type {?} */ - const hYear = hDate.year; - /** @type {?} */ - const hMonth = hDate.month - 1; - /** @type {?} */ - const hDay = hDate.day; - /** @type {?} */ - let gDate = new Date(GREGORIAN_FIRST_DATE); - /** @type {?} */ - let dayDiff = hDay - 1; - if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) { - for (let y = 0; y < hYear - HIJRI_BEGIN; y++) { - for (let m = 0; m < 12; m++) { - dayDiff += +MONTH_LENGTH[y][m] + 29; - } - } - for (let m = 0; m < hMonth; m++) { - dayDiff += +MONTH_LENGTH[hYear - HIJRI_BEGIN][m] + 29; - } - gDate.setDate(GREGORIAN_FIRST_DATE.getDate() + dayDiff); - } - else { - gDate = super.toGregorian(hDate); - } - return gDate; - } - /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hMonth - * @param {?} hYear - * @return {?} - */ - getDaysPerMonth(hMonth, hYear) { - if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) { - /** @type {?} */ - const pos = hYear - HIJRI_BEGIN; - return +MONTH_LENGTH[pos][hMonth - 1] + 29; - } - return super.getDaysPerMonth(hMonth, hYear); - } -} -NgbCalendarIslamicUmalqura.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Returns the equivalent JS date value for a give input Jalali date. - * `jalaliDate` is an Jalali date to be converted to Gregorian. - * @param {?} jalaliDate - * @return {?} - */ -function toGregorian(jalaliDate) { - /** @type {?} */ - let jdn = jalaliToJulian(jalaliDate.year, jalaliDate.month, jalaliDate.day); - /** @type {?} */ - let date = julianToGregorian(jdn); - date.setHours(6, 30, 3, 200); - return date; -} -/** - * Returns the equivalent jalali date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to jalali. - * utc to local - * @param {?} gdate - * @return {?} - */ -function fromGregorian(gdate) { - /** @type {?} */ - let g2d = gregorianToJulian(gdate.getFullYear(), gdate.getMonth() + 1, gdate.getDate()); - return julianToJalali(g2d); -} -/** - * @param {?} date - * @param {?} yearValue - * @return {?} - */ -function setJalaliYear(date, yearValue) { - date.year = +yearValue; - return date; -} -/** - * @param {?} date - * @param {?} month - * @return {?} - */ -function setJalaliMonth(date, month) { - month = +month; - date.year = date.year + Math.floor((month - 1) / 12); - date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1; - return date; -} -/** - * @param {?} date - * @param {?} day - * @return {?} - */ -function setJalaliDay(date, day) { - /** @type {?} */ - let mDays = getDaysPerMonth(date.month, date.year); - if (day <= 0) { - while (day <= 0) { - date = setJalaliMonth(date, date.month - 1); - mDays = getDaysPerMonth(date.month, date.year); - day += mDays; - } - } - else if (day > mDays) { - while (day > mDays) { - day -= mDays; - date = setJalaliMonth(date, date.month + 1); - mDays = getDaysPerMonth(date.month, date.year); - } - } - date.day = day; - return date; -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function mod$1(a, b) { - return a - b * Math.floor(a / b); -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function div(a, b) { - return Math.trunc(a / b); -} -/* - This function determines if the Jalali (Persian) year is - leap (366-day long) or is the common year (365 days), and - finds the day in March (Gregorian calendar) of the first - day of the Jalali year (jalaliYear). - @param jalaliYear Jalali calendar year (-61 to 3177) - @return - leap: number of years since the last leap year (0 to 4) - gYear: Gregorian year of the beginning of Jalali year - march: the March day of Farvardin the 1st (1st day of jalaliYear) - @see: http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm - @see: http://www.fourmilab.ch/documents/calendar/ - */ -/** - * @param {?} jalaliYear - * @return {?} - */ -function jalCal(jalaliYear) { - // Jalali years starting the 33-year rule. - /** @type {?} */ - let breaks = [-61, 9, 38, 199, 426, 686, 756, 818, 1111, 1181, 1210, 1635, 2060, 2097, 2192, 2262, 2324, 2394, 2456, 3178]; - /** @type {?} */ - const breaksLength = breaks.length; - /** @type {?} */ - const gYear = jalaliYear + 621; - /** @type {?} */ - let leapJ = -14; - /** @type {?} */ - let jp = breaks[0]; - if (jalaliYear < jp || jalaliYear >= breaks[breaksLength - 1]) { - throw new Error('Invalid Jalali year ' + jalaliYear); - } - // Find the limiting years for the Jalali year jalaliYear. - /** @type {?} */ - let jump; - for (let i = 1; i < breaksLength; i += 1) { - /** @type {?} */ - const jm = breaks[i]; - jump = jm - jp; - if (jalaliYear < jm) { - break; - } - leapJ = leapJ + div(jump, 33) * 8 + div(mod$1(jump, 33), 4); - jp = jm; - } - /** @type {?} */ - let n = jalaliYear - jp; - // Find the number of leap years from AD 621 to the beginning - // of the current Jalali year in the Persian calendar. - leapJ = leapJ + div(n, 33) * 8 + div(mod$1(n, 33) + 3, 4); - if (mod$1(jump, 33) === 4 && jump - n === 4) { - leapJ += 1; - } - // And the same in the Gregorian calendar (until the year gYear). - /** @type {?} */ - const leapG = div(gYear, 4) - div((div(gYear, 100) + 1) * 3, 4) - 150; - // Determine the Gregorian date of Farvardin the 1st. - /** @type {?} */ - const march = 20 + leapJ - leapG; - // Find how many years have passed since the last leap year. - if (jump - n < 6) { - n = n - jump + div(jump + 4, 33) * 33; - } - /** @type {?} */ - let leap = mod$1(mod$1(n + 1, 33) - 1, 4); - if (leap === -1) { - leap = 4; - } - return { leap: leap, gy: gYear, march: march }; -} -/* - Calculates Gregorian and Julian calendar dates from the Julian Day number - (jdn) for the period since jdn=-34839655 (i.e. the year -100100 of both - calendars) to some millions years ahead of the present. - @param jdn Julian Day number - @return - gYear: Calendar year (years BC numbered 0, -1, -2, ...) - gMonth: Calendar month (1 to 12) - gDay: Calendar day of the month M (1 to 28/29/30/31) - */ -/** - * @param {?} julianDayNumber - * @return {?} - */ -function julianToGregorian(julianDayNumber) { - /** @type {?} */ - let j = 4 * julianDayNumber + 139361631; - j = j + div(div(4 * julianDayNumber + 183187720, 146097) * 3, 4) * 4 - 3908; - /** @type {?} */ - const i = div(mod$1(j, 1461), 4) * 5 + 308; - /** @type {?} */ - const gDay = div(mod$1(i, 153), 5) + 1; - /** @type {?} */ - const gMonth = mod$1(div(i, 153), 12) + 1; - /** @type {?} */ - const gYear = div(j, 1461) - 100100 + div(8 - gMonth, 6); - return new Date(gYear, gMonth - 1, gDay); -} -/* - Converts a date of the Jalali calendar to the Julian Day number. - @param jy Jalali year (1 to 3100) - @param jm Jalali month (1 to 12) - @param jd Jalali day (1 to 29/31) - @return Julian Day number - */ -/** - * @param {?} gy - * @param {?} gm - * @param {?} gd - * @return {?} - */ -function gregorianToJulian(gy, gm, gd) { - /** @type {?} */ - let d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod$1(gm + 9, 12) + 2, 5) + gd - 34840408; - d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752; - return d; -} -/* - Converts the Julian Day number to a date in the Jalali calendar. - @param julianDayNumber Julian Day number - @return - jalaliYear: Jalali year (1 to 3100) - jalaliMonth: Jalali month (1 to 12) - jalaliDay: Jalali day (1 to 29/31) - */ -/** - * @param {?} julianDayNumber - * @return {?} - */ -function julianToJalali(julianDayNumber) { - /** @type {?} */ - let gy = julianToGregorian(julianDayNumber).getFullYear() // Calculate Gregorian year (gy). - ; - /** @type {?} */ - let jalaliYear = gy - 621; - /** @type {?} */ - let r = jalCal(jalaliYear); - /** @type {?} */ - let gregorianDay = gregorianToJulian(gy, 3, r.march); - /** @type {?} */ - let jalaliDay; - /** @type {?} */ - let jalaliMonth; - /** @type {?} */ - let numberOfDays; - // Find number of days that passed since 1 Farvardin. - numberOfDays = julianDayNumber - gregorianDay; - if (numberOfDays >= 0) { - if (numberOfDays <= 185) { - // The first 6 months. - jalaliMonth = 1 + div(numberOfDays, 31); - jalaliDay = mod$1(numberOfDays, 31) + 1; - return new NgbDate(jalaliYear, jalaliMonth, jalaliDay); - } - else { - // The remaining months. - numberOfDays -= 186; - } - } - else { - // Previous Jalali year. - jalaliYear -= 1; - numberOfDays += 179; - if (r.leap === 1) { - numberOfDays += 1; - } - } - jalaliMonth = 7 + div(numberOfDays, 30); - jalaliDay = mod$1(numberOfDays, 30) + 1; - return new NgbDate(jalaliYear, jalaliMonth, jalaliDay); -} -/* - Converts a date of the Jalali calendar to the Julian Day number. - @param jYear Jalali year (1 to 3100) - @param jMonth Jalali month (1 to 12) - @param jDay Jalali day (1 to 29/31) - @return Julian Day number - */ -/** - * @param {?} jYear - * @param {?} jMonth - * @param {?} jDay - * @return {?} - */ -function jalaliToJulian(jYear, jMonth, jDay) { - /** @type {?} */ - let r = jalCal(jYear); - return gregorianToJulian(r.gy, 3, r.march) + (jMonth - 1) * 31 - div(jMonth, 7) * (jMonth - 7) + jDay - 1; -} -/** - * Returns the number of days in a specific jalali month. - * @param {?} month - * @param {?} year - * @return {?} - */ -function getDaysPerMonth(month, year) { - if (month <= 6) { - return 31; - } - if (month <= 11) { - return 30; - } - if (jalCal(year).leap === 0) { - return 30; - } - return 29; -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbCalendarPersian extends NgbCalendar { - /** - * @return {?} - */ - getDaysPerWeek() { return 7; } - /** - * @return {?} - */ - getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; } - /** - * @return {?} - */ - getWeeksPerMonth() { return 6; } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getNext(date, period = 'd', number = 1) { - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date = setJalaliYear(date, date.year + number); - date.month = 1; - date.day = 1; - return date; - case 'm': - date = setJalaliMonth(date, date.month + number); - date.day = 1; - return date; - case 'd': - return setJalaliDay(date, date.day + number); - default: - return date; - } - } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); } - /** - * @param {?} date - * @return {?} - */ - getWeekday(date) { - /** @type {?} */ - const day = toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - } - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - getWeekNumber(week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - const date = week[thursdayIndex]; - /** @type {?} */ - const jsDate = toGregorian(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - const time = jsDate.getTime(); - /** @type {?} */ - const startDate = toGregorian(new NgbDate(date.year, 1, 1)); - return Math.floor(Math.round((time - startDate.getTime()) / 86400000) / 7) + 1; - } - /** - * @return {?} - */ - getToday() { return fromGregorian(new Date()); } - /** - * @param {?} date - * @return {?} - */ - isValid(date) { - return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) && - !isNaN(toGregorian(date).getTime()); - } -} -NgbCalendarPersian.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const PARTS_PER_HOUR = 1080; -/** @type {?} */ -const PARTS_PER_DAY = 24 * PARTS_PER_HOUR; -/** @type {?} */ -const PARTS_FRACTIONAL_MONTH = 12 * PARTS_PER_HOUR + 793; -/** @type {?} */ -const PARTS_PER_MONTH = 29 * PARTS_PER_DAY + PARTS_FRACTIONAL_MONTH; -/** @type {?} */ -const BAHARAD = 11 * PARTS_PER_HOUR + 204; -/** @type {?} */ -const HEBREW_DAY_ON_JAN_1_1970 = 2092591; -/** @type {?} */ -const GREGORIAN_EPOCH$1 = 1721425.5; -/** - * @param {?} year - * @return {?} - */ -function isGregorianLeapYear$1(year) { - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; -} -/** - * @param {?} year - * @return {?} - */ -function numberOfFirstDayInYear(year) { - /** @type {?} */ - let monthsBeforeYear = Math.floor((235 * year - 234) / 19); - /** @type {?} */ - let fractionalMonthsBeforeYear = monthsBeforeYear * PARTS_FRACTIONAL_MONTH + BAHARAD; - /** @type {?} */ - let dayNumber = monthsBeforeYear * 29 + Math.floor(fractionalMonthsBeforeYear / PARTS_PER_DAY); - /** @type {?} */ - let timeOfDay = fractionalMonthsBeforeYear % PARTS_PER_DAY; - /** @type {?} */ - let dayOfWeek = dayNumber % 7; - if (dayOfWeek === 2 || dayOfWeek === 4 || dayOfWeek === 6) { - dayNumber++; - dayOfWeek = dayNumber % 7; - } - if (dayOfWeek === 1 && timeOfDay > 15 * PARTS_PER_HOUR + 204 && !isHebrewLeapYear(year)) { - dayNumber += 2; - } - else if (dayOfWeek === 0 && timeOfDay > 21 * PARTS_PER_HOUR + 589 && isHebrewLeapYear(year - 1)) { - dayNumber++; - } - return dayNumber; -} -/** - * @param {?} month - * @param {?} year - * @return {?} - */ -function getDaysInGregorianMonth(month, year) { - /** @type {?} */ - let days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - if (isGregorianLeapYear$1(year)) { - days[1]++; - } - return days[month - 1]; -} -/** - * @param {?} year - * @return {?} - */ -function getHebrewMonths(year) { - return isHebrewLeapYear(year) ? 13 : 12; -} -/** - * Returns the number of days in a specific Hebrew year. - * `year` is any Hebrew year. - * @param {?} year - * @return {?} - */ -function getDaysInHebrewYear(year) { - return numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year); -} -/** - * @param {?} year - * @return {?} - */ -function isHebrewLeapYear(year) { - /** @type {?} */ - let b = (year * 12 + 17) % 19; - return b >= ((b < 0) ? -7 : 12); -} -/** - * Returns the number of days in a specific Hebrew month. - * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months. - * `year` is any Hebrew year. - * @param {?} month - * @param {?} year - * @return {?} - */ -function getDaysInHebrewMonth(month, year) { - /** @type {?} */ - let yearLength = numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year); - /** @type {?} */ - let yearType = (yearLength <= 380 ? yearLength : (yearLength - 30)) - 353; - /** @type {?} */ - let leapYear = isHebrewLeapYear(year); - /** @type {?} */ - let daysInMonth = leapYear ? [30, 29, 29, 29, 30, 30, 29, 30, 29, 30, 29, 30, 29] : - [30, 29, 29, 29, 30, 29, 30, 29, 30, 29, 30, 29]; - if (yearType > 0) { - daysInMonth[2]++; // Kislev gets an extra day in normal or complete years. - } - if (yearType > 1) { - daysInMonth[1]++; // Heshvan gets an extra day in complete years only. - } - return daysInMonth[month - 1]; -} -/** - * @param {?} date - * @return {?} - */ -function getDayNumberInHebrewYear(date) { - /** @type {?} */ - let numberOfDay = 0; - for (let i = 1; i < date.month; i++) { - numberOfDay += getDaysInHebrewMonth(i, date.year); - } - return numberOfDay + date.day; -} -/** - * @param {?} date - * @param {?} val - * @return {?} - */ -function setHebrewMonth(date, val) { - /** @type {?} */ - let after = val >= 0; - if (!after) { - val = -val; - } - while (val > 0) { - if (after) { - if (val > getHebrewMonths(date.year) - date.month) { - val -= getHebrewMonths(date.year) - date.month + 1; - date.year++; - date.month = 1; - } - else { - date.month += val; - val = 0; - } - } - else { - if (val >= date.month) { - date.year--; - val -= date.month; - date.month = getHebrewMonths(date.year); - } - else { - date.month -= val; - val = 0; - } - } - } - return date; -} -/** - * @param {?} date - * @param {?} val - * @return {?} - */ -function setHebrewDay(date, val) { - /** @type {?} */ - let after = val >= 0; - if (!after) { - val = -val; - } - while (val > 0) { - if (after) { - if (val > getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date)) { - val -= getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date) + 1; - date.year++; - date.month = 1; - date.day = 1; - } - else if (val > getDaysInHebrewMonth(date.month, date.year) - date.day) { - val -= getDaysInHebrewMonth(date.month, date.year) - date.day + 1; - date.month++; - date.day = 1; - } - else { - date.day += val; - val = 0; - } - } - else { - if (val >= date.day) { - val -= date.day; - date.month--; - if (date.month === 0) { - date.year--; - date.month = getHebrewMonths(date.year); - } - date.day = getDaysInHebrewMonth(date.month, date.year); - } - else { - date.day -= val; - val = 0; - } - } - } - return date; -} -/** - * Returns the equivalent Hebrew date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to Hebrew date. - * @param {?} gdate - * @return {?} - */ -function fromGregorian$1(gdate) { - /** @type {?} */ - const date = new Date(gdate); - /** @type {?} */ - const gYear = date.getFullYear(); - /** @type {?} */ - const gMonth = date.getMonth(); - /** @type {?} */ - const gDay = date.getDate(); - /** @type {?} */ - let julianDay = GREGORIAN_EPOCH$1 - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) - - Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) + - Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear$1(gYear) ? -1 : -2) + gDay); - julianDay = Math.floor(julianDay + 0.5); - /** @type {?} */ - let daysSinceHebEpoch = julianDay - 347997; - /** @type {?} */ - let monthsSinceHebEpoch = Math.floor(daysSinceHebEpoch * PARTS_PER_DAY / PARTS_PER_MONTH); - /** @type {?} */ - let hYear = Math.floor((monthsSinceHebEpoch * 19 + 234) / 235) + 1; - /** @type {?} */ - let firstDayOfThisYear = numberOfFirstDayInYear(hYear); - /** @type {?} */ - let dayOfYear = daysSinceHebEpoch - firstDayOfThisYear; - while (dayOfYear < 1) { - hYear--; - firstDayOfThisYear = numberOfFirstDayInYear(hYear); - dayOfYear = daysSinceHebEpoch - firstDayOfThisYear; - } - /** @type {?} */ - let hMonth = 1; - /** @type {?} */ - let hDay = dayOfYear; - while (hDay > getDaysInHebrewMonth(hMonth, hYear)) { - hDay -= getDaysInHebrewMonth(hMonth, hYear); - hMonth++; - } - return new NgbDate(hYear, hMonth, hDay); -} -/** - * Returns the equivalent JS date value for a given Hebrew date. - * `hebrewDate` is an Hebrew date to be converted to Gregorian. - * @param {?} hebrewDate - * @return {?} - */ -function toGregorian$1(hebrewDate) { - /** @type {?} */ - const hYear = hebrewDate.year; - /** @type {?} */ - const hMonth = hebrewDate.month; - /** @type {?} */ - const hDay = hebrewDate.day; - /** @type {?} */ - let days = numberOfFirstDayInYear(hYear); - for (let i = 1; i < hMonth; i++) { - days += getDaysInHebrewMonth(i, hYear); - } - days += hDay; - /** @type {?} */ - let diffDays = days - HEBREW_DAY_ON_JAN_1_1970; - /** @type {?} */ - let after = diffDays >= 0; - if (!after) { - diffDays = -diffDays; - } - /** @type {?} */ - let gYear = 1970; - /** @type {?} */ - let gMonth = 1; - /** @type {?} */ - let gDay = 1; - while (diffDays > 0) { - if (after) { - if (diffDays >= (isGregorianLeapYear$1(gYear) ? 366 : 365)) { - diffDays -= isGregorianLeapYear$1(gYear) ? 366 : 365; - gYear++; - } - else if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) { - diffDays -= getDaysInGregorianMonth(gMonth, gYear); - gMonth++; - } - else { - gDay += diffDays; - diffDays = 0; - } - } - else { - if (diffDays >= (isGregorianLeapYear$1(gYear - 1) ? 366 : 365)) { - diffDays -= isGregorianLeapYear$1(gYear - 1) ? 366 : 365; - gYear--; - } - else { - if (gMonth > 1) { - gMonth--; - } - else { - gMonth = 12; - gYear--; - } - if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) { - diffDays -= getDaysInGregorianMonth(gMonth, gYear); - } - else { - gDay = getDaysInGregorianMonth(gMonth, gYear) - diffDays + 1; - diffDays = 0; - } - } - } - } - return new Date(gYear, gMonth - 1, gDay); -} -/** - * @param {?} numerals - * @return {?} - */ -function hebrewNumerals(numerals) { - if (!numerals) { - return ''; - } - /** @type {?} */ - const hArray0_9 = ['', '\u05d0', '\u05d1', '\u05d2', '\u05d3', '\u05d4', '\u05d5', '\u05d6', '\u05d7', '\u05d8']; - /** @type {?} */ - const hArray10_19 = [ - '\u05d9', '\u05d9\u05d0', '\u05d9\u05d1', '\u05d9\u05d2', '\u05d9\u05d3', '\u05d8\u05d5', '\u05d8\u05d6', - '\u05d9\u05d6', '\u05d9\u05d7', '\u05d9\u05d8' - ]; - /** @type {?} */ - const hArray20_90 = ['', '', '\u05db', '\u05dc', '\u05de', '\u05e0', '\u05e1', '\u05e2', '\u05e4', '\u05e6']; - /** @type {?} */ - const hArray100_900 = [ - '', '\u05e7', '\u05e8', '\u05e9', '\u05ea', '\u05ea\u05e7', '\u05ea\u05e8', '\u05ea\u05e9', '\u05ea\u05ea', - '\u05ea\u05ea\u05e7' - ]; - /** @type {?} */ - const hArray1000_9000 = [ - '', '\u05d0', '\u05d1', '\u05d1\u05d0', '\u05d1\u05d1', '\u05d4', '\u05d4\u05d0', '\u05d4\u05d1', - '\u05d4\u05d1\u05d0', '\u05d4\u05d1\u05d1' - ]; - /** @type {?} */ - const geresh = '\u05f3'; - /** @type {?} */ - const gershaim = '\u05f4'; - /** @type {?} */ - let mem = 0; - /** @type {?} */ - let result = []; - /** @type {?} */ - let step = 0; - while (numerals > 0) { - /** @type {?} */ - let m = numerals % 10; - if (step === 0) { - mem = m; - } - else if (step === 1) { - if (m !== 1) { - result.unshift(hArray20_90[m], hArray0_9[mem]); - } - else { - result.unshift(hArray10_19[mem]); - } - } - else if (step === 2) { - result.unshift(hArray100_900[m]); - } - else { - if (m !== 5) { - result.unshift(hArray1000_9000[m], geresh, ' '); - } - break; - } - numerals = Math.floor(numerals / 10); - if (step === 0 && numerals === 0) { - result.unshift(hArray0_9[m]); - } - step++; - } - result = result.join('').split(''); - if (result.length === 1) { - result.push(geresh); - } - else if (result.length > 1) { - result.splice(result.length - 1, 0, gershaim); - } - return result.join(''); -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * \@since 3.2.0 - */ -class NgbCalendarHebrew extends NgbCalendar { - /** - * @return {?} - */ - getDaysPerWeek() { return 7; } - /** - * @param {?=} year - * @return {?} - */ - getMonths(year) { - if (year && isHebrewLeapYear(year)) { - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; - } - else { - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; - } - } - /** - * @return {?} - */ - getWeeksPerMonth() { return 6; } - /** - * @param {?} date - * @return {?} - */ - isValid(date) { - /** @type {?} */ - let b = date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day); - b = b && date.month > 0 && date.month <= (isHebrewLeapYear(date.year) ? 13 : 12); - b = b && date.day > 0 && date.day <= getDaysInHebrewMonth(date.month, date.year); - return b && !isNaN(toGregorian$1(date).getTime()); - } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getNext(date, period = 'd', number = 1) { - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date.year += number; - date.month = 1; - date.day = 1; - return date; - case 'm': - date = setHebrewMonth(date, number); - date.day = 1; - return date; - case 'd': - return setHebrewDay(date, number); - default: - return date; - } - } - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); } - /** - * @param {?} date - * @return {?} - */ - getWeekday(date) { - /** @type {?} */ - const day = toGregorian$1(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - } - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - getWeekNumber(week, firstDayOfWeek) { - /** @type {?} */ - const date = week[week.length - 1]; - return Math.ceil(getDayNumberInHebrewYear(date) / 7); - } - /** - * @return {?} - */ - getToday() { return fromGregorian$1(new Date()); } - /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - toGregorian(date) { return fromJSDate(toGregorian$1(date)); } - /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - fromGregorian(date) { return fromGregorian$1(toJSDate(date)); } -} -NgbCalendarHebrew.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const WEEKDAYS = ['שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת', 'ראשון']; -/** @type {?} */ -const MONTHS = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול']; -/** @type {?} */ -const MONTHS_LEAP = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר א׳', 'אדר ב׳', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול']; -/** - * \@since 3.2.0 - */ -class NgbDatepickerI18nHebrew extends NgbDatepickerI18n { - /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - getMonthShortName(month, year) { return this.getMonthFullName(month, year); } - /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - getMonthFullName(month, year) { - return isHebrewLeapYear(year) ? MONTHS_LEAP[month - 1] : MONTHS[month - 1]; - } - /** - * @param {?} weekday - * @return {?} - */ - getWeekdayShortName(weekday) { return WEEKDAYS[weekday - 1]; } - /** - * @param {?} date - * @return {?} - */ - getDayAriaLabel(date) { - return `${hebrewNumerals(date.day)} ${this.getMonthFullName(date.month, date.year)} ${hebrewNumerals(date.year)}`; - } - /** - * @param {?} date - * @return {?} - */ - getDayNumerals(date) { return hebrewNumerals(date.day); } - /** - * @param {?} weekNumber - * @return {?} - */ - getWeekNumerals(weekNumber) { return hebrewNumerals(weekNumber); } - /** - * @param {?} year - * @return {?} - */ - getYearNumerals(year) { return hebrewNumerals(year); } -} -NgbDatepickerI18nHebrew.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses - * native javascript dates as a user date model. - */ -class NgbDateNativeAdapter extends NgbDateAdapter { - /** - * Converts a native `Date` to a `NgbDateStruct`. - * @param {?} date - * @return {?} - */ - fromModel(date) { - return (date instanceof Date && !isNaN(date.getTime())) ? this._fromNativeDate(date) : null; - } - /** - * Converts a `NgbDateStruct` to a native `Date`. - * @param {?} date - * @return {?} - */ - toModel(date) { - return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) ? this._toNativeDate(date) : - null; - } - /** - * @protected - * @param {?} date - * @return {?} - */ - _fromNativeDate(date) { - return { year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate() }; - } - /** - * @protected - * @param {?} date - * @return {?} - */ - _toNativeDate(date) { - /** @type {?} */ - const jsDate = new Date(date.year, date.month - 1, date.day, 12); - // avoid 30 -> 1930 conversion - jsDate.setFullYear(date.year); - return jsDate; - } -} -NgbDateNativeAdapter.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates. - * - * \@since 3.2.0 - */ -class NgbDateNativeUTCAdapter extends NgbDateNativeAdapter { - /** - * @protected - * @param {?} date - * @return {?} - */ - _fromNativeDate(date) { - return { year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate() }; - } - /** - * @protected - * @param {?} date - * @return {?} - */ - _toNativeDate(date) { - /** @type {?} */ - const jsDate = new Date(Date.UTC(date.year, date.month - 1, date.day)); - // avoid 30 -> 1930 conversion - jsDate.setUTCFullYear(date.year); - return jsDate; - } -} -NgbDateNativeUTCAdapter.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbDatepickerModule { -} -NgbDatepickerModule.decorators = [ - { type: NgModule, args: [{ - declarations: [ - NgbDatepicker, NgbDatepickerMonthView, NgbDatepickerNavigation, NgbDatepickerNavigationSelect, NgbDatepickerDayView, - NgbInputDatepicker - ], - exports: [NgbDatepicker, NgbInputDatepicker], - imports: [CommonModule, FormsModule], - entryComponents: [NgbDatepicker] - },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the dropdowns used in the application. - */ -class NgbDropdownConfig { - constructor() { - this.autoClose = true; - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - } -} -NgbDropdownConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbDropdownConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbDropdownConfig_Factory() { return new NgbDropdownConfig(); }, token: NgbDropdownConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbNavbar { -} -NgbNavbar.decorators = [ - { type: Directive, args: [{ selector: '.navbar' },] } -]; -/** - * A directive you should put put on a dropdown item to enable keyboard navigation. - * Arrow keys will move focus between items marked with this directive. - * - * \@since 4.1.0 - */ -class NgbDropdownItem { - /** - * @param {?} elementRef - */ - constructor(elementRef) { - this.elementRef = elementRef; - this._disabled = false; - } - /** - * @param {?} value - * @return {?} - */ - set disabled(value) { - this._disabled = (/** @type {?} */ (value)) === '' || value === true; // accept an empty attribute as true - } - /** - * @return {?} - */ - get disabled() { return this._disabled; } -} -NgbDropdownItem.decorators = [ - { type: Directive, args: [{ selector: '[ngbDropdownItem]', host: { 'class': 'dropdown-item', '[class.disabled]': 'disabled' } },] } -]; -/** @nocollapse */ -NgbDropdownItem.ctorParameters = () => [ - { type: ElementRef } -]; -NgbDropdownItem.propDecorators = { - disabled: [{ type: Input }] -}; -/** - * A directive that wraps dropdown menu content and dropdown items. - */ -class NgbDropdownMenu { - /** - * @param {?} dropdown - */ - constructor(dropdown) { - this.dropdown = dropdown; - this.placement = 'bottom'; - this.isOpen = false; - } -} -NgbDropdownMenu.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownMenu]', - host: { - '[class.dropdown-menu]': 'true', - '[class.show]': 'dropdown.isOpen()', - '[attr.x-placement]': 'placement', - '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)', - '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)', - '(keydown.Home)': 'dropdown.onKeyDown($event)', - '(keydown.End)': 'dropdown.onKeyDown($event)', - '(keydown.Enter)': 'dropdown.onKeyDown($event)', - '(keydown.Space)': 'dropdown.onKeyDown($event)' - } - },] } -]; -/** @nocollapse */ -NgbDropdownMenu.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - () => NgbDropdown)),] }] } -]; -NgbDropdownMenu.propDecorators = { - menuItems: [{ type: ContentChildren, args: [NgbDropdownItem,] }] -}; -/** - * A directive to mark an element to which dropdown menu will be anchored. - * - * This is a simple version of the `NgbDropdownToggle` directive. - * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support - * for events other than click. - * - * \@since 1.1.0 - */ -class NgbDropdownAnchor { - /** - * @param {?} dropdown - * @param {?} _elementRef - */ - constructor(dropdown, _elementRef) { - this.dropdown = dropdown; - this._elementRef = _elementRef; - this.anchorEl = _elementRef.nativeElement; - } - /** - * @return {?} - */ - getNativeElement() { return this._elementRef.nativeElement; } -} -NgbDropdownAnchor.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownAnchor]', - host: { 'class': 'dropdown-toggle', 'aria-haspopup': 'true', '[attr.aria-expanded]': 'dropdown.isOpen()' } - },] } -]; -/** @nocollapse */ -NgbDropdownAnchor.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - () => NgbDropdown)),] }] }, - { type: ElementRef } -]; -/** - * A directive to mark an element that will toggle dropdown via the `click` event. - * - * You can also use `NgbDropdownAnchor` as an alternative. - */ -class NgbDropdownToggle extends NgbDropdownAnchor { - /** - * @param {?} dropdown - * @param {?} elementRef - */ - constructor(dropdown, elementRef) { - super(dropdown, elementRef); - } -} -NgbDropdownToggle.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownToggle]', - host: { - 'class': 'dropdown-toggle', - 'aria-haspopup': 'true', - '[attr.aria-expanded]': 'dropdown.isOpen()', - '(click)': 'dropdown.toggle()', - '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)', - '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)', - '(keydown.Home)': 'dropdown.onKeyDown($event)', - '(keydown.End)': 'dropdown.onKeyDown($event)' - }, - providers: [{ provide: NgbDropdownAnchor, useExisting: forwardRef((/** - * @return {?} - */ - () => NgbDropdownToggle)) }] - },] } -]; -/** @nocollapse */ -NgbDropdownToggle.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - () => NgbDropdown)),] }] }, - { type: ElementRef } -]; -/** - * A directive that provides contextual overlays for displaying lists of links and more. - */ -class NgbDropdown { - /** - * @param {?} _changeDetector - * @param {?} config - * @param {?} _document - * @param {?} _ngZone - * @param {?} _elementRef - * @param {?} _renderer - * @param {?} ngbNavbar - */ - constructor(_changeDetector, config, _document, _ngZone, _elementRef, _renderer, ngbNavbar) { - this._changeDetector = _changeDetector; - this._document = _document; - this._ngZone = _ngZone; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._closed$ = new Subject(); - /** - * Defines whether or not the dropdown menu is opened initially. - */ - this._open = false; - /** - * An event fired when the dropdown is opened or closed. - * - * The event payload is a `boolean`: - * * `true` - the dropdown was opened - * * `false` - the dropdown was closed - */ - this.openChange = new EventEmitter(); - this.placement = config.placement; - this.container = config.container; - this.autoClose = config.autoClose; - this.display = ngbNavbar ? 'static' : 'dynamic'; - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - () => { this._positionMenu(); })); - } - /** - * @return {?} - */ - ngAfterContentInit() { - this._ngZone.onStable.pipe(take(1)).subscribe((/** - * @return {?} - */ - () => { - this._applyPlacementClasses(); - if (this._open) { - this._setCloseHandlers(); - } - })); - } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - if (changes.container && this._open) { - this._applyContainer(this.container); - } - if (changes.placement && !changes.placement.isFirstChange) { - this._applyPlacementClasses(); - } - } - /** - * Checks if the dropdown menu is open. - * @return {?} - */ - isOpen() { return this._open; } - /** - * Opens the dropdown menu. - * @return {?} - */ - open() { - if (!this._open) { - this._open = true; - this._applyContainer(this.container); - this.openChange.emit(true); - this._setCloseHandlers(); - } - } - /** - * @private - * @return {?} - */ - _setCloseHandlers() { - /** @type {?} */ - const anchor = this._anchor; - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - () => this.close()), this._closed$, this._menu ? [this._menuElement.nativeElement] : [], anchor ? [anchor.getNativeElement()] : [], '.dropdown-item,.dropdown-divider'); - } - /** - * Closes the dropdown menu. - * @return {?} - */ - close() { - if (this._open) { - this._open = false; - this._resetContainer(); - this._closed$.next(); - this.openChange.emit(false); - this._changeDetector.markForCheck(); - } - } - /** - * Toggles the dropdown menu. - * @return {?} - */ - toggle() { - if (this.isOpen()) { - this.close(); - } - else { - this.open(); - } - } - /** - * @return {?} - */ - ngOnDestroy() { - this._resetContainer(); - this._closed$.next(); - this._zoneSubscription.unsubscribe(); - } - /** - * @param {?} event - * @return {?} - */ - onKeyDown(event) { - // tslint:disable-next-line:deprecation - /** @type {?} */ - const key = event.which; - /** @type {?} */ - const itemElements = this._getMenuElements(); - /** @type {?} */ - let position = -1; - /** @type {?} */ - let isEventFromItems = false; - /** @type {?} */ - const isEventFromToggle = this._isEventFromToggle(event); - if (!isEventFromToggle && itemElements.length) { - itemElements.forEach((/** - * @param {?} itemElement - * @param {?} index - * @return {?} - */ - (itemElement, index) => { - if (itemElement.contains((/** @type {?} */ (event.target)))) { - isEventFromItems = true; - } - if (itemElement === this._document.activeElement) { - position = index; - } - })); - } - // closing on Enter / Space - if (key === Key.Space || key === Key.Enter) { - if (isEventFromItems && (this.autoClose === true || this.autoClose === 'inside')) { - this.close(); - } - return; - } - // opening / navigating - if (isEventFromToggle || isEventFromItems) { - this.open(); - if (itemElements.length) { - switch (key) { - case Key.ArrowDown: - position = Math.min(position + 1, itemElements.length - 1); - break; - case Key.ArrowUp: - if (this._isDropup() && position === -1) { - position = itemElements.length - 1; - break; - } - position = Math.max(position - 1, 0); - break; - case Key.Home: - position = 0; - break; - case Key.End: - position = itemElements.length - 1; - break; - } - itemElements[position].focus(); - } - event.preventDefault(); - } - } - /** - * @private - * @return {?} - */ - _isDropup() { return this._elementRef.nativeElement.classList.contains('dropup'); } - /** - * @private - * @param {?} event - * @return {?} - */ - _isEventFromToggle(event) { - return this._anchor.getNativeElement().contains((/** @type {?} */ (event.target))); - } - /** - * @private - * @return {?} - */ - _getMenuElements() { - /** @type {?} */ - const menu = this._menu; - if (menu == null) { - return []; - } - return menu.menuItems.filter((/** - * @param {?} item - * @return {?} - */ - item => !item.disabled)).map((/** - * @param {?} item - * @return {?} - */ - item => item.elementRef.nativeElement)); - } - /** - * @private - * @return {?} - */ - _positionMenu() { - /** @type {?} */ - const menu = this._menu; - if (this.isOpen() && menu) { - this._applyPlacementClasses(this.display === 'dynamic' ? - positionElements(this._anchor.anchorEl, this._bodyContainer || this._menuElement.nativeElement, this.placement, this.container === 'body') : - this._getFirstPlacement(this.placement)); - } - } - /** - * @private - * @param {?} placement - * @return {?} - */ - _getFirstPlacement(placement) { - return Array.isArray(placement) ? placement[0] : (/** @type {?} */ (placement.split(' ')[0])); - } - /** - * @private - * @return {?} - */ - _resetContainer() { - /** @type {?} */ - const renderer = this._renderer; - /** @type {?} */ - const menuElement = this._menuElement; - if (menuElement) { - /** @type {?} */ - const dropdownElement = this._elementRef.nativeElement; - /** @type {?} */ - const dropdownMenuElement = menuElement.nativeElement; - renderer.appendChild(dropdownElement, dropdownMenuElement); - renderer.removeStyle(dropdownMenuElement, 'position'); - renderer.removeStyle(dropdownMenuElement, 'transform'); - } - if (this._bodyContainer) { - renderer.removeChild(this._document.body, this._bodyContainer); - this._bodyContainer = null; - } - } - /** - * @private - * @param {?=} container - * @return {?} - */ - _applyContainer(container = null) { - this._resetContainer(); - if (container === 'body') { - /** @type {?} */ - const renderer = this._renderer; - /** @type {?} */ - const dropdownMenuElement = this._menuElement.nativeElement; - /** @type {?} */ - const bodyContainer = this._bodyContainer = this._bodyContainer || renderer.createElement('div'); - // Override some styles to have the positionning working - renderer.setStyle(bodyContainer, 'position', 'absolute'); - renderer.setStyle(dropdownMenuElement, 'position', 'static'); - renderer.setStyle(bodyContainer, 'z-index', '1050'); - renderer.appendChild(bodyContainer, dropdownMenuElement); - renderer.appendChild(this._document.body, bodyContainer); - } - } - /** - * @private - * @param {?=} placement - * @return {?} - */ - _applyPlacementClasses(placement) { - /** @type {?} */ - const menu = this._menu; - if (menu) { - if (!placement) { - placement = this._getFirstPlacement(this.placement); - } - /** @type {?} */ - const renderer = this._renderer; - /** @type {?} */ - const dropdownElement = this._elementRef.nativeElement; - // remove the current placement classes - renderer.removeClass(dropdownElement, 'dropup'); - renderer.removeClass(dropdownElement, 'dropdown'); - menu.placement = this.display === 'static' ? null : placement; - /* - * apply the new placement - * in case of top use up-arrow or down-arrow otherwise - */ - /** @type {?} */ - const dropdownClass = placement.search('^top') !== -1 ? 'dropup' : 'dropdown'; - renderer.addClass(dropdownElement, dropdownClass); - /** @type {?} */ - const bodyContainer = this._bodyContainer; - if (bodyContainer) { - renderer.removeClass(bodyContainer, 'dropup'); - renderer.removeClass(bodyContainer, 'dropdown'); - renderer.addClass(bodyContainer, dropdownClass); - } - } - } -} -NgbDropdown.decorators = [ - { type: Directive, args: [{ selector: '[ngbDropdown]', exportAs: 'ngbDropdown', host: { '[class.show]': 'isOpen()' } },] } -]; -/** @nocollapse */ -NgbDropdown.ctorParameters = () => [ - { type: ChangeDetectorRef }, - { type: NgbDropdownConfig }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: NgZone }, - { type: ElementRef }, - { type: Renderer2 }, - { type: NgbNavbar, decorators: [{ type: Optional }] } -]; -NgbDropdown.propDecorators = { - _menu: [{ type: ContentChild, args: [NgbDropdownMenu, { static: false },] }], - _menuElement: [{ type: ContentChild, args: [NgbDropdownMenu, { read: ElementRef, static: false },] }], - _anchor: [{ type: ContentChild, args: [NgbDropdownAnchor, { static: false },] }], - autoClose: [{ type: Input }], - _open: [{ type: Input, args: ['open',] }], - placement: [{ type: Input }], - container: [{ type: Input }], - display: [{ type: Input }], - openChange: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_DROPDOWN_DIRECTIVES = [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar]; -class NgbDropdownModule { -} -NgbDropdownModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_DROPDOWN_DIRECTIVES, exports: NGB_DROPDOWN_DIRECTIVES },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all modals used in the application. - * - * \@since 3.1.0 - */ -class NgbModalConfig { - constructor() { - this.backdrop = true; - this.keyboard = true; - } -} -NgbModalConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbModalConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbModalConfig_Factory() { return new NgbModalConfig(); }, token: NgbModalConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class ContentRef { - /** - * @param {?} nodes - * @param {?=} viewRef - * @param {?=} componentRef - */ - constructor(nodes, viewRef, componentRef) { - this.nodes = nodes; - this.viewRef = viewRef; - this.componentRef = componentRef; - } -} -/** - * @template T - */ -class PopupService { - /** - * @param {?} _type - * @param {?} _injector - * @param {?} _viewContainerRef - * @param {?} _renderer - * @param {?} _componentFactoryResolver - * @param {?} _applicationRef - */ - constructor(_type, _injector, _viewContainerRef, _renderer, _componentFactoryResolver, _applicationRef) { - this._type = _type; - this._injector = _injector; - this._viewContainerRef = _viewContainerRef; - this._renderer = _renderer; - this._componentFactoryResolver = _componentFactoryResolver; - this._applicationRef = _applicationRef; - } - /** - * @param {?=} content - * @param {?=} context - * @return {?} - */ - open(content, context) { - if (!this._windowRef) { - this._contentRef = this._getContentRef(content, context); - this._windowRef = this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type), 0, this._injector, this._contentRef.nodes); - } - return this._windowRef; - } - /** - * @return {?} - */ - close() { - if (this._windowRef) { - this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)); - this._windowRef = null; - if (this._contentRef.viewRef) { - this._applicationRef.detachView(this._contentRef.viewRef); - this._contentRef.viewRef.destroy(); - this._contentRef = null; - } - } - } - /** - * @private - * @param {?} content - * @param {?=} context - * @return {?} - */ - _getContentRef(content, context) { - if (!content) { - return new ContentRef([]); - } - else if (content instanceof TemplateRef) { - /** @type {?} */ - const viewRef = content.createEmbeddedView(context); - this._applicationRef.attachView(viewRef); - return new ContentRef([viewRef.rootNodes], viewRef); - } - else { - return new ContentRef([[this._renderer.createText(`${content}`)]]); - } - } -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const noop = (/** - * @return {?} - */ -() => { }); -/** - * Utility to handle the scrollbar. - * - * It allows to compensate the lack of a vertical scrollbar by adding an - * equivalent padding on the right of the body, and to remove this compensation. - */ -class ScrollBar { - /** - * @param {?} _document - */ - constructor(_document) { - this._document = _document; - } - /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return {?} a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - compensate() { return !this._isPresent() ? noop : this._adjustBody(this._getWidth()); } - /** - * Adds a padding of the given width on the right of the body. - * - * @private - * @param {?} width - * @return {?} a callback used to revert the padding to its previous value - */ - _adjustBody(width) { - /** @type {?} */ - const body = this._document.body; - /** @type {?} */ - const userSetPadding = body.style.paddingRight; - /** @type {?} */ - const paddingAmount = parseFloat(window.getComputedStyle(body)['padding-right']); - body.style['padding-right'] = `${paddingAmount + width}px`; - return (/** - * @return {?} - */ - () => body.style['padding-right'] = userSetPadding); - } - /** - * Tells whether a scrollbar is currently present on the body. - * - * @private - * @return {?} true if scrollbar is present, false otherwise - */ - _isPresent() { - /** @type {?} */ - const rect = this._document.body.getBoundingClientRect(); - return rect.left + rect.right < window.innerWidth; - } - /** - * Calculates and returns the width of a scrollbar. - * - * @private - * @return {?} the width of a scrollbar on this page - */ - _getWidth() { - /** @type {?} */ - const measurer = this._document.createElement('div'); - measurer.className = 'modal-scrollbar-measure'; - /** @type {?} */ - const body = this._document.body; - body.appendChild(measurer); - /** @type {?} */ - const width = measurer.getBoundingClientRect().width - measurer.clientWidth; - body.removeChild(measurer); - return width; - } -} -ScrollBar.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ -ScrollBar.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] } -]; -/** @nocollapse */ ScrollBar.ngInjectableDef = ɵɵdefineInjectable({ factory: function ScrollBar_Factory() { return new ScrollBar(ɵɵinject(DOCUMENT)); }, token: ScrollBar, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbModalBackdrop { -} -NgbModalBackdrop.decorators = [ - { type: Component, args: [{ - selector: 'ngb-modal-backdrop', - template: '', - host: { '[class]': '"modal-backdrop fade show" + (backdropClass ? " " + backdropClass : "")', 'style': 'z-index: 1050' } - }] } -]; -NgbModalBackdrop.propDecorators = { - backdropClass: [{ type: Input }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A reference to the currently opened (active) modal. - * - * Instances of this class can be injected into your component passed as modal content. - * So you can `.close()` or `.dismiss()` the modal window from your component. - */ -class NgbActiveModal { - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - close(result) { } - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - dismiss(reason) { } -} -/** - * A reference to the newly opened modal returned by the `NgbModal.open()` method. - */ -class NgbModalRef { - /** - * @param {?} _windowCmptRef - * @param {?} _contentRef - * @param {?=} _backdropCmptRef - * @param {?=} _beforeDismiss - */ - constructor(_windowCmptRef, _contentRef, _backdropCmptRef, _beforeDismiss) { - this._windowCmptRef = _windowCmptRef; - this._contentRef = _contentRef; - this._backdropCmptRef = _backdropCmptRef; - this._beforeDismiss = _beforeDismiss; - _windowCmptRef.instance.dismissEvent.subscribe((/** - * @param {?} reason - * @return {?} - */ - (reason) => { this.dismiss(reason); })); - this.result = new Promise((/** - * @param {?} resolve - * @param {?} reject - * @return {?} - */ - (resolve, reject) => { - this._resolve = resolve; - this._reject = reject; - })); - this.result.then(null, (/** - * @return {?} - */ - () => { })); - } - /** - * The instance of a component used for the modal content. - * - * When a `TemplateRef` is used as the content, will return `undefined`. - * @return {?} - */ - get componentInstance() { - if (this._contentRef.componentRef) { - return this._contentRef.componentRef.instance; - } - } - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - close(result) { - if (this._windowCmptRef) { - this._resolve(result); - this._removeModalElements(); - } - } - /** - * @private - * @param {?=} reason - * @return {?} - */ - _dismiss(reason) { - this._reject(reason); - this._removeModalElements(); - } - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - dismiss(reason) { - if (this._windowCmptRef) { - if (!this._beforeDismiss) { - this._dismiss(reason); - } - else { - /** @type {?} */ - const dismiss = this._beforeDismiss(); - if (dismiss && dismiss.then) { - dismiss.then((/** - * @param {?} result - * @return {?} - */ - result => { - if (result !== false) { - this._dismiss(reason); - } - }), (/** - * @return {?} - */ - () => { })); - } - else if (dismiss !== false) { - this._dismiss(reason); - } - } - } - } - /** - * @private - * @return {?} - */ - _removeModalElements() { - /** @type {?} */ - const windowNativeEl = this._windowCmptRef.location.nativeElement; - windowNativeEl.parentNode.removeChild(windowNativeEl); - this._windowCmptRef.destroy(); - if (this._backdropCmptRef) { - /** @type {?} */ - const backdropNativeEl = this._backdropCmptRef.location.nativeElement; - backdropNativeEl.parentNode.removeChild(backdropNativeEl); - this._backdropCmptRef.destroy(); - } - if (this._contentRef && this._contentRef.viewRef) { - this._contentRef.viewRef.destroy(); - } - this._windowCmptRef = null; - this._backdropCmptRef = null; - this._contentRef = null; - } -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -const ModalDismissReasons = { - BACKDROP_CLICK: 0, - ESC: 1, -}; -ModalDismissReasons[ModalDismissReasons.BACKDROP_CLICK] = 'BACKDROP_CLICK'; -ModalDismissReasons[ModalDismissReasons.ESC] = 'ESC'; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbModalWindow { - /** - * @param {?} _document - * @param {?} _elRef - */ - constructor(_document, _elRef) { - this._document = _document; - this._elRef = _elRef; - this.backdrop = true; - this.keyboard = true; - this.dismissEvent = new EventEmitter(); - } - /** - * @param {?} $event - * @return {?} - */ - backdropClick($event) { - if (this.backdrop === true && this._elRef.nativeElement === $event.target) { - this.dismiss(ModalDismissReasons.BACKDROP_CLICK); - } - } - /** - * @param {?} $event - * @return {?} - */ - escKey($event) { - if (this.keyboard && !$event.defaultPrevented) { - this.dismiss(ModalDismissReasons.ESC); - } - } - /** - * @param {?} reason - * @return {?} - */ - dismiss(reason) { this.dismissEvent.emit(reason); } - /** - * @return {?} - */ - ngOnInit() { this._elWithFocus = this._document.activeElement; } - /** - * @return {?} - */ - ngAfterViewInit() { - if (!this._elRef.nativeElement.contains(document.activeElement)) { - /** @type {?} */ - const autoFocusable = (/** @type {?} */ (this._elRef.nativeElement.querySelector(`[ngbAutofocus]`))); - /** @type {?} */ - const firstFocusable = getFocusableBoundaryElements(this._elRef.nativeElement)[0]; - /** @type {?} */ - const elementToFocus = autoFocusable || firstFocusable || this._elRef.nativeElement; - elementToFocus.focus(); - } - } - /** - * @return {?} - */ - ngOnDestroy() { - /** @type {?} */ - const body = this._document.body; - /** @type {?} */ - const elWithFocus = this._elWithFocus; - /** @type {?} */ - let elementToFocus; - if (elWithFocus && elWithFocus['focus'] && body.contains(elWithFocus)) { - elementToFocus = elWithFocus; - } - else { - elementToFocus = body; - } - elementToFocus.focus(); - this._elWithFocus = null; - } -} -NgbModalWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-modal-window', - host: { - '[class]': '"modal fade show d-block" + (windowClass ? " " + windowClass : "")', - 'role': 'dialog', - 'tabindex': '-1', - '(keyup.esc)': 'escKey($event)', - '(click)': 'backdropClick($event)', - '[attr.aria-modal]': 'true', - '[attr.aria-labelledby]': 'ariaLabelledBy', - }, - template: ` -
- -
- `, - encapsulation: ViewEncapsulation.None, - styles: ["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"] - }] } -]; -/** @nocollapse */ -NgbModalWindow.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ElementRef } -]; -NgbModalWindow.propDecorators = { - ariaLabelledBy: [{ type: Input }], - backdrop: [{ type: Input }], - centered: [{ type: Input }], - keyboard: [{ type: Input }], - scrollable: [{ type: Input }], - size: [{ type: Input }], - windowClass: [{ type: Input }], - dismissEvent: [{ type: Output, args: ['dismiss',] }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbModalStack { - /** - * @param {?} _applicationRef - * @param {?} _injector - * @param {?} _document - * @param {?} _scrollBar - * @param {?} _rendererFactory - */ - constructor(_applicationRef, _injector, _document, _scrollBar, _rendererFactory) { - this._applicationRef = _applicationRef; - this._injector = _injector; - this._document = _document; - this._scrollBar = _scrollBar; - this._rendererFactory = _rendererFactory; - this._activeWindowCmptHasChanged = new Subject(); - this._ariaHiddenValues = new Map(); - this._backdropAttributes = ['backdropClass']; - this._modalRefs = []; - this._windowAttributes = ['ariaLabelledBy', 'backdrop', 'centered', 'keyboard', 'scrollable', 'size', 'windowClass']; - this._windowCmpts = []; - // Trap focus on active WindowCmpt - this._activeWindowCmptHasChanged.subscribe((/** - * @return {?} - */ - () => { - if (this._windowCmpts.length) { - /** @type {?} */ - const activeWindowCmpt = this._windowCmpts[this._windowCmpts.length - 1]; - ngbFocusTrap(activeWindowCmpt.location.nativeElement, this._activeWindowCmptHasChanged); - this._revertAriaHidden(); - this._setAriaHidden(activeWindowCmpt.location.nativeElement); - } - })); - } - /** - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} options - * @return {?} - */ - open(moduleCFR, contentInjector, content, options) { - /** @type {?} */ - const containerEl = isDefined(options.container) ? this._document.querySelector(options.container) : this._document.body; - /** @type {?} */ - const renderer = this._rendererFactory.createRenderer(null, null); - /** @type {?} */ - const revertPaddingForScrollBar = this._scrollBar.compensate(); - /** @type {?} */ - const removeBodyClass = (/** - * @return {?} - */ - () => { - if (!this._modalRefs.length) { - renderer.removeClass(this._document.body, 'modal-open'); - this._revertAriaHidden(); - } - }); - if (!containerEl) { - throw new Error(`The specified modal container "${options.container || 'body'}" was not found in the DOM.`); - } - /** @type {?} */ - const activeModal = new NgbActiveModal(); - /** @type {?} */ - const contentRef = this._getContentRef(moduleCFR, options.injector || contentInjector, content, activeModal, options); - /** @type {?} */ - let backdropCmptRef = options.backdrop !== false ? this._attachBackdrop(moduleCFR, containerEl) : null; - /** @type {?} */ - let windowCmptRef = this._attachWindowComponent(moduleCFR, containerEl, contentRef); - /** @type {?} */ - let ngbModalRef = new NgbModalRef(windowCmptRef, contentRef, backdropCmptRef, options.beforeDismiss); - this._registerModalRef(ngbModalRef); - this._registerWindowCmpt(windowCmptRef); - ngbModalRef.result.then(revertPaddingForScrollBar, revertPaddingForScrollBar); - ngbModalRef.result.then(removeBodyClass, removeBodyClass); - activeModal.close = (/** - * @param {?} result - * @return {?} - */ - (result) => { ngbModalRef.close(result); }); - activeModal.dismiss = (/** - * @param {?} reason - * @return {?} - */ - (reason) => { ngbModalRef.dismiss(reason); }); - this._applyWindowOptions(windowCmptRef.instance, options); - if (this._modalRefs.length === 1) { - renderer.addClass(this._document.body, 'modal-open'); - } - if (backdropCmptRef && backdropCmptRef.instance) { - this._applyBackdropOptions(backdropCmptRef.instance, options); - } - return ngbModalRef; - } - /** - * @param {?=} reason - * @return {?} - */ - dismissAll(reason) { this._modalRefs.forEach((/** - * @param {?} ngbModalRef - * @return {?} - */ - ngbModalRef => ngbModalRef.dismiss(reason))); } - /** - * @return {?} - */ - hasOpenModals() { return this._modalRefs.length > 0; } - /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @return {?} - */ - _attachBackdrop(moduleCFR, containerEl) { - /** @type {?} */ - let backdropFactory = moduleCFR.resolveComponentFactory(NgbModalBackdrop); - /** @type {?} */ - let backdropCmptRef = backdropFactory.create(this._injector); - this._applicationRef.attachView(backdropCmptRef.hostView); - containerEl.appendChild(backdropCmptRef.location.nativeElement); - return backdropCmptRef; - } - /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @param {?} contentRef - * @return {?} - */ - _attachWindowComponent(moduleCFR, containerEl, contentRef) { - /** @type {?} */ - let windowFactory = moduleCFR.resolveComponentFactory(NgbModalWindow); - /** @type {?} */ - let windowCmptRef = windowFactory.create(this._injector, contentRef.nodes); - this._applicationRef.attachView(windowCmptRef.hostView); - containerEl.appendChild(windowCmptRef.location.nativeElement); - return windowCmptRef; - } - /** - * @private - * @param {?} windowInstance - * @param {?} options - * @return {?} - */ - _applyWindowOptions(windowInstance, options) { - this._windowAttributes.forEach((/** - * @param {?} optionName - * @return {?} - */ - (optionName) => { - if (isDefined(options[optionName])) { - windowInstance[optionName] = options[optionName]; - } - })); - } - /** - * @private - * @param {?} backdropInstance - * @param {?} options - * @return {?} - */ - _applyBackdropOptions(backdropInstance, options) { - this._backdropAttributes.forEach((/** - * @param {?} optionName - * @return {?} - */ - (optionName) => { - if (isDefined(options[optionName])) { - backdropInstance[optionName] = options[optionName]; - } - })); - } - /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} activeModal - * @param {?} options - * @return {?} - */ - _getContentRef(moduleCFR, contentInjector, content, activeModal, options) { - if (!content) { - return new ContentRef([]); - } - else if (content instanceof TemplateRef) { - return this._createFromTemplateRef(content, activeModal); - } - else if (isString(content)) { - return this._createFromString(content); - } - else { - return this._createFromComponent(moduleCFR, contentInjector, content, activeModal, options); - } - } - /** - * @private - * @param {?} content - * @param {?} activeModal - * @return {?} - */ - _createFromTemplateRef(content, activeModal) { - /** @type {?} */ - const context = { - $implicit: activeModal, - /** - * @param {?} result - * @return {?} - */ - close(result) { activeModal.close(result); }, - /** - * @param {?} reason - * @return {?} - */ - dismiss(reason) { activeModal.dismiss(reason); } - }; - /** @type {?} */ - const viewRef = content.createEmbeddedView(context); - this._applicationRef.attachView(viewRef); - return new ContentRef([viewRef.rootNodes], viewRef); - } - /** - * @private - * @param {?} content - * @return {?} - */ - _createFromString(content) { - /** @type {?} */ - const component = this._document.createTextNode(`${content}`); - return new ContentRef([[component]]); - } - /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} context - * @param {?} options - * @return {?} - */ - _createFromComponent(moduleCFR, contentInjector, content, context, options) { - /** @type {?} */ - const contentCmptFactory = moduleCFR.resolveComponentFactory(content); - /** @type {?} */ - const modalContentInjector = Injector.create({ providers: [{ provide: NgbActiveModal, useValue: context }], parent: contentInjector }); - /** @type {?} */ - const componentRef = contentCmptFactory.create(modalContentInjector); - /** @type {?} */ - const componentNativeEl = componentRef.location.nativeElement; - if (options.scrollable) { - ((/** @type {?} */ (componentNativeEl))).classList.add('component-host-scrollable'); - } - this._applicationRef.attachView(componentRef.hostView); - // FIXME: we should here get rid of the component nativeElement - // and use `[Array.from(componentNativeEl.childNodes)]` instead and remove the above CSS class. - return new ContentRef([[componentNativeEl]], componentRef.hostView, componentRef); - } - /** - * @private - * @param {?} element - * @return {?} - */ - _setAriaHidden(element) { - /** @type {?} */ - const parent = element.parentElement; - if (parent && element !== this._document.body) { - Array.from(parent.children).forEach((/** - * @param {?} sibling - * @return {?} - */ - sibling => { - if (sibling !== element && sibling.nodeName !== 'SCRIPT') { - this._ariaHiddenValues.set(sibling, sibling.getAttribute('aria-hidden')); - sibling.setAttribute('aria-hidden', 'true'); - } - })); - this._setAriaHidden(parent); - } - } - /** - * @private - * @return {?} - */ - _revertAriaHidden() { - this._ariaHiddenValues.forEach((/** - * @param {?} value - * @param {?} element - * @return {?} - */ - (value, element) => { - if (value) { - element.setAttribute('aria-hidden', value); - } - else { - element.removeAttribute('aria-hidden'); - } - })); - this._ariaHiddenValues.clear(); - } - /** - * @private - * @param {?} ngbModalRef - * @return {?} - */ - _registerModalRef(ngbModalRef) { - /** @type {?} */ - const unregisterModalRef = (/** - * @return {?} - */ - () => { - /** @type {?} */ - const index = this._modalRefs.indexOf(ngbModalRef); - if (index > -1) { - this._modalRefs.splice(index, 1); - } - }); - this._modalRefs.push(ngbModalRef); - ngbModalRef.result.then(unregisterModalRef, unregisterModalRef); - } - /** - * @private - * @param {?} ngbWindowCmpt - * @return {?} - */ - _registerWindowCmpt(ngbWindowCmpt) { - this._windowCmpts.push(ngbWindowCmpt); - this._activeWindowCmptHasChanged.next(); - ngbWindowCmpt.onDestroy((/** - * @return {?} - */ - () => { - /** @type {?} */ - const index = this._windowCmpts.indexOf(ngbWindowCmpt); - if (index > -1) { - this._windowCmpts.splice(index, 1); - this._activeWindowCmptHasChanged.next(); - } - })); - } -} -NgbModalStack.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ -NgbModalStack.ctorParameters = () => [ - { type: ApplicationRef }, - { type: Injector }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ScrollBar }, - { type: RendererFactory2 } -]; -/** @nocollapse */ NgbModalStack.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbModalStack_Factory() { return new NgbModalStack(ɵɵinject(ApplicationRef), ɵɵinject(INJECTOR), ɵɵinject(DOCUMENT), ɵɵinject(ScrollBar), ɵɵinject(RendererFactory2)); }, token: NgbModalStack, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A service for opening modal windows. - * - * Creating a modal is straightforward: create a component or a template and pass it as an argument to - * the `.open()` method. - */ -class NgbModal { - /** - * @param {?} _moduleCFR - * @param {?} _injector - * @param {?} _modalStack - * @param {?} _config - */ - constructor(_moduleCFR, _injector, _modalStack, _config) { - this._moduleCFR = _moduleCFR; - this._injector = _injector; - this._modalStack = _modalStack; - this._config = _config; - } - /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - * @param {?} content - * @param {?=} options - * @return {?} - */ - open(content, options = {}) { - /** @type {?} */ - const combinedOptions = Object.assign({}, this._config, options); - return this._modalStack.open(this._moduleCFR, this._injector, content, combinedOptions); - } - /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * \@since 3.1.0 - * @param {?=} reason - * @return {?} - */ - dismissAll(reason) { this._modalStack.dismissAll(reason); } - /** - * Indicates if there are currently any open modal windows in the application. - * - * \@since 3.3.0 - * @return {?} - */ - hasOpenModals() { return this._modalStack.hasOpenModals(); } -} -NgbModal.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ -NgbModal.ctorParameters = () => [ - { type: ComponentFactoryResolver }, - { type: Injector }, - { type: NgbModalStack }, - { type: NgbModalConfig } -]; -/** @nocollapse */ NgbModal.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbModal_Factory() { return new NgbModal(ɵɵinject(ComponentFactoryResolver), ɵɵinject(INJECTOR), ɵɵinject(NgbModalStack), ɵɵinject(NgbModalConfig)); }, token: NgbModal, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbModalModule { -} -NgbModalModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbModalBackdrop, NgbModalWindow], - entryComponents: [NgbModalBackdrop, NgbModalWindow], - providers: [NgbModal] - },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the paginations used in the application. - */ -class NgbPaginationConfig { - constructor() { - this.disabled = false; - this.boundaryLinks = false; - this.directionLinks = true; - this.ellipses = true; - this.maxSize = 0; - this.pageSize = 10; - this.rotate = false; - } -} -NgbPaginationConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbPaginationConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbPaginationConfig_Factory() { return new NgbPaginationConfig(); }, token: NgbPaginationConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A directive to match the 'ellipsis' link template - * - * \@since 4.1.0 - */ -class NgbPaginationEllipsis { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationEllipsis.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationEllipsis]' },] } -]; -/** @nocollapse */ -NgbPaginationEllipsis.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A directive to match the 'first' link template - * - * \@since 4.1.0 - */ -class NgbPaginationFirst { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationFirst.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationFirst]' },] } -]; -/** @nocollapse */ -NgbPaginationFirst.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A directive to match the 'last' link template - * - * \@since 4.1.0 - */ -class NgbPaginationLast { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationLast.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationLast]' },] } -]; -/** @nocollapse */ -NgbPaginationLast.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A directive to match the 'next' link template - * - * \@since 4.1.0 - */ -class NgbPaginationNext { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationNext.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationNext]' },] } -]; -/** @nocollapse */ -NgbPaginationNext.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A directive to match the page 'number' link template - * - * \@since 4.1.0 - */ -class NgbPaginationNumber { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationNumber.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationNumber]' },] } -]; -/** @nocollapse */ -NgbPaginationNumber.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A directive to match the 'previous' link template - * - * \@since 4.1.0 - */ -class NgbPaginationPrevious { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbPaginationPrevious.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationPrevious]' },] } -]; -/** @nocollapse */ -NgbPaginationPrevious.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A component that displays page numbers and allows to customize them in several ways. - */ -class NgbPagination { - /** - * @param {?} config - */ - constructor(config) { - this.pageCount = 0; - this.pages = []; - /** - * The current page. - * - * Page numbers start with `1`. - */ - this.page = 1; - /** - * An event fired when the page is changed. Will fire only if collection size is set and all values are valid. - * - * Event payload is the number of the newly selected page. - * - * Page numbers start with `1`. - */ - this.pageChange = new EventEmitter(true); - this.disabled = config.disabled; - this.boundaryLinks = config.boundaryLinks; - this.directionLinks = config.directionLinks; - this.ellipses = config.ellipses; - this.maxSize = config.maxSize; - this.pageSize = config.pageSize; - this.rotate = config.rotate; - this.size = config.size; - } - /** - * @return {?} - */ - hasPrevious() { return this.page > 1; } - /** - * @return {?} - */ - hasNext() { return this.page < this.pageCount; } - /** - * @return {?} - */ - nextDisabled() { return !this.hasNext() || this.disabled; } - /** - * @return {?} - */ - previousDisabled() { return !this.hasPrevious() || this.disabled; } - /** - * @param {?} pageNumber - * @return {?} - */ - selectPage(pageNumber) { this._updatePages(pageNumber); } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { this._updatePages(this.page); } - /** - * @param {?} pageNumber - * @return {?} - */ - isEllipsis(pageNumber) { return pageNumber === -1; } - /** - * Appends ellipses and first/last page number to the displayed pages - * @private - * @param {?} start - * @param {?} end - * @return {?} - */ - _applyEllipses(start, end) { - if (this.ellipses) { - if (start > 0) { - if (start > 1) { - this.pages.unshift(-1); - } - this.pages.unshift(1); - } - if (end < this.pageCount) { - if (end < (this.pageCount - 1)) { - this.pages.push(-1); - } - this.pages.push(this.pageCount); - } - } - } - /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - * @private - * @return {?} - */ - _applyRotation() { - /** @type {?} */ - let start = 0; - /** @type {?} */ - let end = this.pageCount; - /** @type {?} */ - let leftOffset = Math.floor(this.maxSize / 2); - /** @type {?} */ - let rightOffset = this.maxSize % 2 === 0 ? leftOffset - 1 : leftOffset; - if (this.page <= leftOffset) { - // very beginning, no rotation -> [0..maxSize] - end = this.maxSize; - } - else if (this.pageCount - this.page < leftOffset) { - // very end, no rotation -> [len-maxSize..len] - start = this.pageCount - this.maxSize; - } - else { - // rotate - start = this.page - leftOffset - 1; - end = this.page + rightOffset; - } - return [start, end]; - } - /** - * Paginates page numbers based on maxSize items per page. - * @private - * @return {?} - */ - _applyPagination() { - /** @type {?} */ - let page = Math.ceil(this.page / this.maxSize) - 1; - /** @type {?} */ - let start = page * this.maxSize; - /** @type {?} */ - let end = start + this.maxSize; - return [start, end]; - } - /** - * @private - * @param {?} newPageNo - * @return {?} - */ - _setPageInRange(newPageNo) { - /** @type {?} */ - const prevPageNo = this.page; - this.page = getValueInRange(newPageNo, this.pageCount, 1); - if (this.page !== prevPageNo && isNumber(this.collectionSize)) { - this.pageChange.emit(this.page); - } - } - /** - * @private - * @param {?} newPage - * @return {?} - */ - _updatePages(newPage) { - this.pageCount = Math.ceil(this.collectionSize / this.pageSize); - if (!isNumber(this.pageCount)) { - this.pageCount = 0; - } - // fill-in model needed to render pages - this.pages.length = 0; - for (let i = 1; i <= this.pageCount; i++) { - this.pages.push(i); - } - // set page within 1..max range - this._setPageInRange(newPage); - // apply maxSize if necessary - if (this.maxSize > 0 && this.pageCount > this.maxSize) { - /** @type {?} */ - let start = 0; - /** @type {?} */ - let end = this.pageCount; - // either paginating or rotating page numbers - if (this.rotate) { - [start, end] = this._applyRotation(); - } - else { - [start, end] = this._applyPagination(); - } - this.pages = this.pages.slice(start, end); - // adding ellipses - this._applyEllipses(start, end); - } - } -} -NgbPagination.decorators = [ - { type: Component, args: [{ - selector: 'ngb-pagination', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { 'role': 'navigation' }, - template: ` - - - - - ... - - {{ page }} - (current) - - - ` - }] } -]; -/** @nocollapse */ -NgbPagination.ctorParameters = () => [ - { type: NgbPaginationConfig } -]; -NgbPagination.propDecorators = { - tplEllipsis: [{ type: ContentChild, args: [NgbPaginationEllipsis, { static: false },] }], - tplFirst: [{ type: ContentChild, args: [NgbPaginationFirst, { static: false },] }], - tplLast: [{ type: ContentChild, args: [NgbPaginationLast, { static: false },] }], - tplNext: [{ type: ContentChild, args: [NgbPaginationNext, { static: false },] }], - tplNumber: [{ type: ContentChild, args: [NgbPaginationNumber, { static: false },] }], - tplPrevious: [{ type: ContentChild, args: [NgbPaginationPrevious, { static: false },] }], - disabled: [{ type: Input }], - boundaryLinks: [{ type: Input }], - directionLinks: [{ type: Input }], - ellipses: [{ type: Input }], - rotate: [{ type: Input }], - collectionSize: [{ type: Input }], - maxSize: [{ type: Input }], - page: [{ type: Input }], - pageSize: [{ type: Input }], - pageChange: [{ type: Output }], - size: [{ type: Input }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const DIRECTIVES = [ - NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, - NgbPaginationPrevious -]; -class NgbPaginationModule { -} -NgbPaginationModule.decorators = [ - { type: NgModule, args: [{ declarations: DIRECTIVES, exports: DIRECTIVES, imports: [CommonModule] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class Trigger { - /** - * @param {?} open - * @param {?=} close - */ - constructor(open, close) { - this.open = open; - this.close = close; - if (!close) { - this.close = open; - } - } - /** - * @return {?} - */ - isManual() { return this.open === 'manual' || this.close === 'manual'; } -} -/** @type {?} */ -const DEFAULT_ALIASES = { - 'hover': ['mouseenter', 'mouseleave'], - 'focus': ['focusin', 'focusout'], -}; -/** - * @param {?} triggers - * @param {?=} aliases - * @return {?} - */ -function parseTriggers(triggers, aliases = DEFAULT_ALIASES) { - /** @type {?} */ - const trimmedTriggers = (triggers || '').trim(); - if (trimmedTriggers.length === 0) { - return []; - } - /** @type {?} */ - const parsedTriggers = trimmedTriggers.split(/\s+/).map((/** - * @param {?} trigger - * @return {?} - */ - trigger => trigger.split(':'))).map((/** - * @param {?} triggerPair - * @return {?} - */ - (triggerPair) => { - /** @type {?} */ - let alias = aliases[triggerPair[0]] || triggerPair; - return new Trigger(alias[0], alias[1]); - })); - /** @type {?} */ - const manualTriggers = parsedTriggers.filter((/** - * @param {?} triggerPair - * @return {?} - */ - triggerPair => triggerPair.isManual())); - if (manualTriggers.length > 1) { - throw 'Triggers parse error: only one manual trigger is allowed'; - } - if (manualTriggers.length === 1 && parsedTriggers.length > 1) { - throw 'Triggers parse error: manual trigger can\'t be mixed with other triggers'; - } - return parsedTriggers; -} -/** - * @param {?} renderer - * @param {?} nativeElement - * @param {?} triggers - * @param {?} isOpenedFn - * @return {?} - */ -function observeTriggers(renderer, nativeElement, triggers, isOpenedFn) { - return new Observable((/** - * @param {?} subscriber - * @return {?} - */ - subscriber => { - /** @type {?} */ - const listeners = []; - /** @type {?} */ - const openFn = (/** - * @return {?} - */ - () => subscriber.next(true)); - /** @type {?} */ - const closeFn = (/** - * @return {?} - */ - () => subscriber.next(false)); - /** @type {?} */ - const toggleFn = (/** - * @return {?} - */ - () => subscriber.next(!isOpenedFn())); - triggers.forEach((/** - * @param {?} trigger - * @return {?} - */ - (trigger) => { - if (trigger.open === trigger.close) { - listeners.push(renderer.listen(nativeElement, trigger.open, toggleFn)); - } - else { - listeners.push(renderer.listen(nativeElement, trigger.open, openFn), renderer.listen(nativeElement, trigger.close, closeFn)); - } - })); - return (/** - * @return {?} - */ - () => { listeners.forEach((/** - * @param {?} unsubscribeFn - * @return {?} - */ - unsubscribeFn => unsubscribeFn())); }); - })); -} -/** @type {?} */ -const delayOrNoop = (/** - * @template T - * @param {?} time - * @return {?} - */ -(time) => time > 0 ? delay(time) : (/** - * @param {?} a - * @return {?} - */ -(a) => a)); -/** - * @param {?} openDelay - * @param {?} closeDelay - * @param {?} isOpenedFn - * @return {?} - */ -function triggerDelay(openDelay, closeDelay, isOpenedFn) { - return (/** - * @param {?} input$ - * @return {?} - */ - (input$) => { - /** @type {?} */ - let pending = null; - /** @type {?} */ - const filteredInput$ = input$.pipe(map((/** - * @param {?} open - * @return {?} - */ - open => ({ open }))), filter((/** - * @param {?} event - * @return {?} - */ - event => { - /** @type {?} */ - const currentlyOpen = isOpenedFn(); - if (currentlyOpen !== event.open && (!pending || pending.open === currentlyOpen)) { - pending = event; - return true; - } - if (pending && pending.open !== event.open) { - pending = null; - } - return false; - })), share()); - /** @type {?} */ - const delayedOpen$ = filteredInput$.pipe(filter((/** - * @param {?} event - * @return {?} - */ - event => event.open)), delayOrNoop(openDelay)); - /** @type {?} */ - const delayedClose$ = filteredInput$.pipe(filter((/** - * @param {?} event - * @return {?} - */ - event => !event.open)), delayOrNoop(closeDelay)); - return merge(delayedOpen$, delayedClose$) - .pipe(filter((/** - * @param {?} event - * @return {?} - */ - event => { - if (event === pending) { - pending = null; - return event.open !== isOpenedFn(); - } - return false; - })), map((/** - * @param {?} event - * @return {?} - */ - event => event.open))); - }); -} -/** - * @param {?} renderer - * @param {?} nativeElement - * @param {?} triggers - * @param {?} isOpenedFn - * @param {?} openFn - * @param {?} closeFn - * @param {?=} openDelay - * @param {?=} closeDelay - * @return {?} - */ -function listenToTriggers(renderer, nativeElement, triggers, isOpenedFn, openFn, closeFn, openDelay = 0, closeDelay = 0) { - /** @type {?} */ - const parsedTriggers = parseTriggers(triggers); - if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) { - return (/** - * @return {?} - */ - () => { }); - } - /** @type {?} */ - const subscription = observeTriggers(renderer, nativeElement, parsedTriggers, isOpenedFn) - .pipe(triggerDelay(openDelay, closeDelay, isOpenedFn)) - .subscribe((/** - * @param {?} open - * @return {?} - */ - open => (open ? openFn() : closeFn()))); - return (/** - * @return {?} - */ - () => subscription.unsubscribe()); -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the popovers used in the application. - */ -class NgbPopoverConfig { - constructor() { - this.autoClose = true; - this.placement = 'auto'; - this.triggers = 'click'; - this.disablePopover = false; - this.openDelay = 0; - this.closeDelay = 0; - } -} -NgbPopoverConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbPopoverConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbPopoverConfig_Factory() { return new NgbPopoverConfig(); }, token: NgbPopoverConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -let nextId$3 = 0; -class NgbPopoverWindow { - /** - * @return {?} - */ - isTitleTemplate() { return this.title instanceof TemplateRef; } -} -NgbPopoverWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-popover-window', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { '[class]': '"popover" + (popoverClass ? " " + popoverClass : "")', 'role': 'tooltip', '[id]': 'id' }, - template: ` -
-

- {{title}} - -

-
`, - styles: ["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"] - }] } -]; -NgbPopoverWindow.propDecorators = { - title: [{ type: Input }], - id: [{ type: Input }], - popoverClass: [{ type: Input }], - context: [{ type: Input }] -}; -/** - * A lightweight and extensible directive for fancy popover creation. - */ -class NgbPopover { - /** - * @param {?} _elementRef - * @param {?} _renderer - * @param {?} injector - * @param {?} componentFactoryResolver - * @param {?} viewContainerRef - * @param {?} config - * @param {?} _ngZone - * @param {?} _document - * @param {?} _changeDetector - * @param {?} _applicationRef - */ - constructor(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, _applicationRef) { - this._elementRef = _elementRef; - this._renderer = _renderer; - this._ngZone = _ngZone; - this._document = _document; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - /** - * An event emitted when the popover is shown. Contains no payload. - */ - this.shown = new EventEmitter(); - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - this.hidden = new EventEmitter(); - this._ngbPopoverWindowId = `ngb-popover-${nextId$3++}`; - this.autoClose = config.autoClose; - this.placement = config.placement; - this.triggers = config.triggers; - this.container = config.container; - this.disablePopover = config.disablePopover; - this.popoverClass = config.popoverClass; - this.openDelay = config.openDelay; - this.closeDelay = config.closeDelay; - this._popupService = new PopupService(NgbPopoverWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - () => { - if (this._windowRef) { - positionElements(this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement, this.container === 'body', 'bs-popover'); - } - })); - } - /** - * @private - * @return {?} - */ - _isDisabled() { - if (this.disablePopover) { - return true; - } - if (!this.ngbPopover && !this.popoverTitle) { - return true; - } - return false; - } - /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - * @param {?=} context - * @return {?} - */ - open(context) { - if (!this._windowRef && !this._isDisabled()) { - this._windowRef = this._popupService.open(this.ngbPopover, context); - this._windowRef.instance.title = this.popoverTitle; - this._windowRef.instance.context = context; - this._windowRef.instance.popoverClass = this.popoverClass; - this._windowRef.instance.id = this._ngbPopoverWindowId; - this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbPopoverWindowId); - if (this.container === 'body') { - this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - // We need to detect changes, because we don't know where .open() might be called from. - // Ex. opening popover from one of lifecycle hooks that run after the CD - // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception - this._windowRef.changeDetectorRef.detectChanges(); - // We need to mark for check, because popover won't work inside the OnPush component. - // Ex. when we use expression like `{{ popover.isOpen() : 'opened' : 'closed' }}` - // inside the template of an OnPush component and we change the popover from - // open -> closed, the expression in question won't be updated unless we explicitly - // mark the parent component to be checked. - this._windowRef.changeDetectorRef.markForCheck(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - () => this.close()), this.hidden, [this._windowRef.location.nativeElement]); - this.shown.emit(); - } - } - /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - close() { - if (this._windowRef) { - this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby'); - this._popupService.close(); - this._windowRef = null; - this.hidden.emit(); - this._changeDetector.markForCheck(); - } - } - /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - toggle() { - if (this._windowRef) { - this.close(); - } - else { - this.open(); - } - } - /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - isOpen() { return this._windowRef != null; } - /** - * @return {?} - */ - ngOnInit() { - this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay); - } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - // close popover if title and content become empty, or disablePopover set to true - if ((changes['ngbPopover'] || changes['popoverTitle'] || changes['disablePopover']) && this._isDisabled()) { - this.close(); - } - } - /** - * @return {?} - */ - ngOnDestroy() { - this.close(); - // This check is needed as it might happen that ngOnDestroy is called before ngOnInit - // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199 - if (this._unregisterListenersFn) { - this._unregisterListenersFn(); - } - this._zoneSubscription.unsubscribe(); - } -} -NgbPopover.decorators = [ - { type: Directive, args: [{ selector: '[ngbPopover]', exportAs: 'ngbPopover' },] } -]; -/** @nocollapse */ -NgbPopover.ctorParameters = () => [ - { type: ElementRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: ViewContainerRef }, - { type: NgbPopoverConfig }, - { type: NgZone }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } -]; -NgbPopover.propDecorators = { - autoClose: [{ type: Input }], - ngbPopover: [{ type: Input }], - popoverTitle: [{ type: Input }], - placement: [{ type: Input }], - triggers: [{ type: Input }], - container: [{ type: Input }], - disablePopover: [{ type: Input }], - popoverClass: [{ type: Input }], - openDelay: [{ type: Input }], - closeDelay: [{ type: Input }], - shown: [{ type: Output }], - hidden: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbPopoverModule { -} -NgbPopoverModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbPopover, NgbPopoverWindow], - exports: [NgbPopover], - imports: [CommonModule], - entryComponents: [NgbPopoverWindow] - },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the progress bars used in the application. - */ -class NgbProgressbarConfig { - constructor() { - this.max = 100; - this.animated = false; - this.striped = false; - this.showValue = false; - } -} -NgbProgressbarConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbProgressbarConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbProgressbarConfig_Factory() { return new NgbProgressbarConfig(); }, token: NgbProgressbarConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A directive that provides feedback on the progress of a workflow or an action. - */ -class NgbProgressbar { - /** - * @param {?} config - */ - constructor(config) { - /** - * The current value for the progress bar. - * - * Should be in the `[0, max]` range. - */ - this.value = 0; - this.max = config.max; - this.animated = config.animated; - this.striped = config.striped; - this.type = config.type; - this.showValue = config.showValue; - this.height = config.height; - } - /** - * @return {?} - */ - getValue() { return getValueInRange(this.value, this.max); } - /** - * @return {?} - */ - getPercentValue() { return 100 * this.getValue() / this.max; } -} -NgbProgressbar.decorators = [ - { type: Component, args: [{ - selector: 'ngb-progressbar', - changeDetection: ChangeDetectionStrategy.OnPush, - template: ` -
-
- {{getPercentValue()}}% -
-
- ` - }] } -]; -/** @nocollapse */ -NgbProgressbar.ctorParameters = () => [ - { type: NgbProgressbarConfig } -]; -NgbProgressbar.propDecorators = { - max: [{ type: Input }], - animated: [{ type: Input }], - striped: [{ type: Input }], - showValue: [{ type: Input }], - type: [{ type: Input }], - value: [{ type: Input }], - height: [{ type: Input }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbProgressbarModule { -} -NgbProgressbarModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbProgressbar], exports: [NgbProgressbar], imports: [CommonModule] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the ratings used in the application. - */ -class NgbRatingConfig { - constructor() { - this.max = 10; - this.readonly = false; - this.resettable = false; - } -} -NgbRatingConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbRatingConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbRatingConfig_Factory() { return new NgbRatingConfig(); }, token: NgbRatingConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_RATING_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbRating)), - multi: true -}; -/** - * A directive that helps visualising and interacting with a star rating bar. - */ -class NgbRating { - /** - * @param {?} config - * @param {?} _changeDetectorRef - */ - constructor(config, _changeDetectorRef) { - this._changeDetectorRef = _changeDetectorRef; - this.contexts = []; - this.disabled = false; - /** - * An event emitted when the user is hovering over a given rating. - * - * Event payload equals to the rating being hovered over. - */ - this.hover = new EventEmitter(); - /** - * An event emitted when the user stops hovering over a given rating. - * - * Event payload equals to the rating of the last item being hovered over. - */ - this.leave = new EventEmitter(); - /** - * An event emitted when the user selects a new rating. - * - * Event payload equals to the newly selected rating. - */ - this.rateChange = new EventEmitter(true); - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.onTouched = (/** - * @return {?} - */ - () => { }); - this.max = config.max; - this.readonly = config.readonly; - } - /** - * @return {?} - */ - ariaValueText() { return `${this.nextRate} out of ${this.max}`; } - /** - * @param {?} value - * @return {?} - */ - enter(value) { - if (!this.readonly && !this.disabled) { - this._updateState(value); - } - this.hover.emit(value); - } - /** - * @return {?} - */ - handleBlur() { this.onTouched(); } - /** - * @param {?} value - * @return {?} - */ - handleClick(value) { this.update(this.resettable && this.rate === value ? 0 : value); } - /** - * @param {?} event - * @return {?} - */ - handleKeyDown(event) { - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.ArrowDown: - case Key.ArrowLeft: - this.update(this.rate - 1); - break; - case Key.ArrowUp: - case Key.ArrowRight: - this.update(this.rate + 1); - break; - case Key.Home: - this.update(0); - break; - case Key.End: - this.update(this.max); - break; - default: - return; - } - // note 'return' in default case - event.preventDefault(); - } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - if (changes['rate']) { - this.update(this.rate); - } - } - /** - * @return {?} - */ - ngOnInit() { - this.contexts = Array.from({ length: this.max }, (/** - * @param {?} v - * @param {?} k - * @return {?} - */ - (v, k) => ({ fill: 0, index: k }))); - this._updateState(this.rate); - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this.onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this.onTouched = fn; } - /** - * @return {?} - */ - reset() { - this.leave.emit(this.nextRate); - this._updateState(this.rate); - } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { this.disabled = isDisabled; } - /** - * @param {?} value - * @param {?=} internalChange - * @return {?} - */ - update(value, internalChange = true) { - /** @type {?} */ - const newRate = getValueInRange(value, this.max, 0); - if (!this.readonly && !this.disabled && this.rate !== newRate) { - this.rate = newRate; - this.rateChange.emit(this.rate); - } - if (internalChange) { - this.onChange(this.rate); - this.onTouched(); - } - this._updateState(this.rate); - } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this.update(value, false); - this._changeDetectorRef.markForCheck(); - } - /** - * @private - * @param {?} index - * @return {?} - */ - _getFillValue(index) { - /** @type {?} */ - const diff = this.nextRate - index; - if (diff >= 1) { - return 100; - } - if (diff < 1 && diff > 0) { - return parseInt((diff * 100).toFixed(2), 10); - } - return 0; - } - /** - * @private - * @param {?} nextValue - * @return {?} - */ - _updateState(nextValue) { - this.nextRate = nextValue; - this.contexts.forEach((/** - * @param {?} context - * @param {?} index - * @return {?} - */ - (context, index) => context.fill = this._getFillValue(index))); - } -} -NgbRating.decorators = [ - { type: Component, args: [{ - selector: 'ngb-rating', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { - 'class': 'd-inline-flex', - 'tabindex': '0', - 'role': 'slider', - 'aria-valuemin': '0', - '[attr.aria-valuemax]': 'max', - '[attr.aria-valuenow]': 'nextRate', - '[attr.aria-valuetext]': 'ariaValueText()', - '[attr.aria-disabled]': 'readonly ? true : null', - '(blur)': 'handleBlur()', - '(keydown)': 'handleKeyDown($event)', - '(mouseleave)': 'reset()' - }, - template: ` - {{ fill === 100 ? '★' : '☆' }} - - ({{ index < nextRate ? '*' : ' ' }}) - - - - - - `, - providers: [NGB_RATING_VALUE_ACCESSOR] - }] } -]; -/** @nocollapse */ -NgbRating.ctorParameters = () => [ - { type: NgbRatingConfig }, - { type: ChangeDetectorRef } -]; -NgbRating.propDecorators = { - max: [{ type: Input }], - rate: [{ type: Input }], - readonly: [{ type: Input }], - resettable: [{ type: Input }], - starTemplate: [{ type: Input }], - starTemplateFromContent: [{ type: ContentChild, args: [TemplateRef, { static: false },] }], - hover: [{ type: Output }], - leave: [{ type: Output }], - rateChange: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbRatingModule { -} -NgbRatingModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbRating], exports: [NgbRating], imports: [CommonModule] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbTabset`](#/components/tabset/api#NgbTabset) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tabsets used in the application. - */ -class NgbTabsetConfig { - constructor() { - this.justify = 'start'; - this.orientation = 'horizontal'; - this.type = 'tabs'; - } -} -NgbTabsetConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbTabsetConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbTabsetConfig_Factory() { return new NgbTabsetConfig(); }, token: NgbTabsetConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -let nextId$4 = 0; -/** - * A directive to wrap tab titles that need to contain HTML markup or other directives. - * - * Alternatively you could use the `NgbTab.title` input for string titles. - */ -class NgbTabTitle { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbTabTitle.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbTabTitle]' },] } -]; -/** @nocollapse */ -NgbTabTitle.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A directive to wrap content to be displayed in a tab. - */ -class NgbTabContent { - /** - * @param {?} templateRef - */ - constructor(templateRef) { - this.templateRef = templateRef; - } -} -NgbTabContent.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbTabContent]' },] } -]; -/** @nocollapse */ -NgbTabContent.ctorParameters = () => [ - { type: TemplateRef } -]; -/** - * A directive representing an individual tab. - */ -class NgbTab { - constructor() { - /** - * The tab identifier. - * - * Must be unique for the entire document for proper accessibility support. - */ - this.id = `ngb-tab-${nextId$4++}`; - /** - * If `true`, the current tab is disabled and can't be toggled. - */ - this.disabled = false; - } - /** - * @return {?} - */ - ngAfterContentChecked() { - // We are using @ContentChildren instead of @ContentChild as in the Angular version being used - // only @ContentChildren allows us to specify the {descendants: false} option. - // Without {descendants: false} we are hitting bugs described in: - // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240 - this.titleTpl = this.titleTpls.first; - this.contentTpl = this.contentTpls.first; - } -} -NgbTab.decorators = [ - { type: Directive, args: [{ selector: 'ngb-tab' },] } -]; -NgbTab.propDecorators = { - id: [{ type: Input }], - title: [{ type: Input }], - disabled: [{ type: Input }], - titleTpls: [{ type: ContentChildren, args: [NgbTabTitle, { descendants: false },] }], - contentTpls: [{ type: ContentChildren, args: [NgbTabContent, { descendants: false },] }] -}; -/** - * A component that makes it easy to create tabbed interface. - */ -class NgbTabset { - /** - * @param {?} config - */ - constructor(config) { - /** - * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden. - */ - this.destroyOnHide = true; - /** - * A tab change event emitted right before the tab change happens. - * - * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details. - */ - this.tabChange = new EventEmitter(); - this.type = config.type; - this.justify = config.justify; - this.orientation = config.orientation; - } - /** - * The horizontal alignment of the tabs with flexbox utilities. - * @param {?} className - * @return {?} - */ - set justify(className) { - if (className === 'fill' || className === 'justified') { - this.justifyClass = `nav-${className}`; - } - else { - this.justifyClass = `justify-content-${className}`; - } - } - /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - * @param {?} tabId - * @return {?} - */ - select(tabId) { - /** @type {?} */ - let selectedTab = this._getTabById(tabId); - if (selectedTab && !selectedTab.disabled && this.activeId !== selectedTab.id) { - /** @type {?} */ - let defaultPrevented = false; - this.tabChange.emit({ activeId: this.activeId, nextId: selectedTab.id, preventDefault: (/** - * @return {?} - */ - () => { defaultPrevented = true; }) }); - if (!defaultPrevented) { - this.activeId = selectedTab.id; - } - } - } - /** - * @return {?} - */ - ngAfterContentChecked() { - // auto-correct activeId that might have been set incorrectly as input - /** @type {?} */ - let activeTab = this._getTabById(this.activeId); - this.activeId = activeTab ? activeTab.id : (this.tabs.length ? this.tabs.first.id : null); - } - /** - * @private - * @param {?} id - * @return {?} - */ - _getTabById(id) { - /** @type {?} */ - let tabsWithId = this.tabs.filter((/** - * @param {?} tab - * @return {?} - */ - tab => tab.id === id)); - return tabsWithId.length ? tabsWithId[0] : null; - } -} -NgbTabset.decorators = [ - { type: Component, args: [{ - selector: 'ngb-tabset', - exportAs: 'ngbTabset', - template: ` - -
- -
- -
-
-
- ` - }] } -]; -/** @nocollapse */ -NgbTabset.ctorParameters = () => [ - { type: NgbTabsetConfig } -]; -NgbTabset.propDecorators = { - tabs: [{ type: ContentChildren, args: [NgbTab,] }], - activeId: [{ type: Input }], - destroyOnHide: [{ type: Input }], - justify: [{ type: Input }], - orientation: [{ type: Input }], - type: [{ type: Input }], - tabChange: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_TABSET_DIRECTIVES = [NgbTabset, NgbTab, NgbTabContent, NgbTabTitle]; -class NgbTabsetModule { -} -NgbTabsetModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_TABSET_DIRECTIVES, exports: NGB_TABSET_DIRECTIVES, imports: [CommonModule] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbTime { - /** - * @param {?=} hour - * @param {?=} minute - * @param {?=} second - */ - constructor(hour, minute, second) { - this.hour = toInteger(hour); - this.minute = toInteger(minute); - this.second = toInteger(second); - } - /** - * @param {?=} step - * @return {?} - */ - changeHour(step = 1) { this.updateHour((isNaN(this.hour) ? 0 : this.hour) + step); } - /** - * @param {?} hour - * @return {?} - */ - updateHour(hour) { - if (isNumber(hour)) { - this.hour = (hour < 0 ? 24 + hour : hour) % 24; - } - else { - this.hour = NaN; - } - } - /** - * @param {?=} step - * @return {?} - */ - changeMinute(step = 1) { this.updateMinute((isNaN(this.minute) ? 0 : this.minute) + step); } - /** - * @param {?} minute - * @return {?} - */ - updateMinute(minute) { - if (isNumber(minute)) { - this.minute = minute % 60 < 0 ? 60 + minute % 60 : minute % 60; - this.changeHour(Math.floor(minute / 60)); - } - else { - this.minute = NaN; - } - } - /** - * @param {?=} step - * @return {?} - */ - changeSecond(step = 1) { this.updateSecond((isNaN(this.second) ? 0 : this.second) + step); } - /** - * @param {?} second - * @return {?} - */ - updateSecond(second) { - if (isNumber(second)) { - this.second = second < 0 ? 60 + second % 60 : second % 60; - this.changeMinute(Math.floor(second / 60)); - } - else { - this.second = NaN; - } - } - /** - * @param {?=} checkSecs - * @return {?} - */ - isValid(checkSecs = true) { - return isNumber(this.hour) && isNumber(this.minute) && (checkSecs ? isNumber(this.second) : true); - } - /** - * @return {?} - */ - toString() { return `${this.hour || 0}:${this.minute || 0}:${this.second || 0}`; } -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the timepickers used in the application. - */ -class NgbTimepickerConfig { - constructor() { - this.meridian = false; - this.spinners = true; - this.seconds = false; - this.hourStep = 1; - this.minuteStep = 1; - this.secondStep = 1; - this.disabled = false; - this.readonlyInputs = false; - this.size = 'medium'; - } -} -NgbTimepickerConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbTimepickerConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbTimepickerConfig_Factory() { return new NgbTimepickerConfig(); }, token: NgbTimepickerConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @return {?} - */ -function NGB_DATEPICKER_TIME_ADAPTER_FACTORY() { - return new NgbTimeStructAdapter(); -} -/** - * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and - * any provided user time model `T`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding timepicker to a form control, - * ex. `[(ngModel)]="userTimeModel"`. Here `userTimeModel` can be of any type. - * - * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model. - * - * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example. - * - * \@since 2.2.0 - * @abstract - * @template T - */ -class NgbTimeAdapter { -} -NgbTimeAdapter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY },] } -]; -/** @nocollapse */ NgbTimeAdapter.ngInjectableDef = ɵɵdefineInjectable({ factory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY, token: NgbTimeAdapter, providedIn: "root" }); -class NgbTimeStructAdapter extends NgbTimeAdapter { - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - fromModel(time) { - return (time && isInteger(time.hour) && isInteger(time.minute)) ? - { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } : - null; - } - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - toModel(time) { - return (time && isInteger(time.hour) && isInteger(time.minute)) ? - { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } : - null; - } -} -NgbTimeStructAdapter.decorators = [ - { type: Injectable } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} locale - * @return {?} - */ -function NGB_TIMEPICKER_I18N_FACTORY(locale) { - return new NgbTimepickerI18nDefault(locale); -} -/** - * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component. - * The default implementation of this service honors the Angular locale, and uses the registered locale data, - * as explained in the Angular i18n guide. - * @abstract - */ -class NgbTimepickerI18n { -} -NgbTimepickerI18n.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_TIMEPICKER_I18N_FACTORY, deps: [LOCALE_ID] },] } -]; -/** @nocollapse */ NgbTimepickerI18n.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbTimepickerI18n_Factory() { return NGB_TIMEPICKER_I18N_FACTORY(ɵɵinject(LOCALE_ID)); }, token: NgbTimepickerI18n, providedIn: "root" }); -class NgbTimepickerI18nDefault extends NgbTimepickerI18n { - /** - * @param {?} locale - */ - constructor(locale) { - super(); - this._periods = getLocaleDayPeriods(locale, FormStyle.Standalone, TranslationWidth.Narrow); - } - /** - * @return {?} - */ - getMorningPeriod() { return this._periods[0]; } - /** - * @return {?} - */ - getAfternoonPeriod() { return this._periods[1]; } -} -NgbTimepickerI18nDefault.decorators = [ - { type: Injectable } -]; -/** @nocollapse */ -NgbTimepickerI18nDefault.ctorParameters = () => [ - { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_TIMEPICKER_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbTimepicker)), - multi: true -}; -/** - * A directive that helps with wth picking hours, minutes and seconds. - */ -class NgbTimepicker { - /** - * @param {?} _config - * @param {?} _ngbTimeAdapter - * @param {?} _cd - * @param {?} i18n - */ - constructor(_config, _ngbTimeAdapter, _cd, i18n) { - this._config = _config; - this._ngbTimeAdapter = _ngbTimeAdapter; - this._cd = _cd; - this.i18n = i18n; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.onTouched = (/** - * @return {?} - */ - () => { }); - this.meridian = _config.meridian; - this.spinners = _config.spinners; - this.seconds = _config.seconds; - this.hourStep = _config.hourStep; - this.minuteStep = _config.minuteStep; - this.secondStep = _config.secondStep; - this.disabled = _config.disabled; - this.readonlyInputs = _config.readonlyInputs; - this.size = _config.size; - } - /** - * The number of hours to add/subtract when clicking hour spinners. - * @param {?} step - * @return {?} - */ - set hourStep(step) { - this._hourStep = isInteger(step) ? step : this._config.hourStep; - } - /** - * @return {?} - */ - get hourStep() { return this._hourStep; } - /** - * The number of minutes to add/subtract when clicking minute spinners. - * @param {?} step - * @return {?} - */ - set minuteStep(step) { - this._minuteStep = isInteger(step) ? step : this._config.minuteStep; - } - /** - * @return {?} - */ - get minuteStep() { return this._minuteStep; } - /** - * The number of seconds to add/subtract when clicking second spinners. - * @param {?} step - * @return {?} - */ - set secondStep(step) { - this._secondStep = isInteger(step) ? step : this._config.secondStep; - } - /** - * @return {?} - */ - get secondStep() { return this._secondStep; } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - /** @type {?} */ - const structValue = this._ngbTimeAdapter.fromModel(value); - this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime(); - if (!this.seconds && (!structValue || !isNumber(structValue.second))) { - this.model.second = 0; - } - this._cd.markForCheck(); - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this.onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this.onTouched = fn; } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { this.disabled = isDisabled; } - /** - * @param {?} step - * @return {?} - */ - changeHour(step) { - this.model.changeHour(step); - this.propagateModelChange(); - } - /** - * @param {?} step - * @return {?} - */ - changeMinute(step) { - this.model.changeMinute(step); - this.propagateModelChange(); - } - /** - * @param {?} step - * @return {?} - */ - changeSecond(step) { - this.model.changeSecond(step); - this.propagateModelChange(); - } - /** - * @param {?} newVal - * @return {?} - */ - updateHour(newVal) { - /** @type {?} */ - const isPM = this.model.hour >= 12; - /** @type {?} */ - const enteredHour = toInteger(newVal); - if (this.meridian && (isPM && enteredHour < 12 || !isPM && enteredHour === 12)) { - this.model.updateHour(enteredHour + 12); - } - else { - this.model.updateHour(enteredHour); - } - this.propagateModelChange(); - } - /** - * @param {?} newVal - * @return {?} - */ - updateMinute(newVal) { - this.model.updateMinute(toInteger(newVal)); - this.propagateModelChange(); - } - /** - * @param {?} newVal - * @return {?} - */ - updateSecond(newVal) { - this.model.updateSecond(toInteger(newVal)); - this.propagateModelChange(); - } - /** - * @return {?} - */ - toggleMeridian() { - if (this.meridian) { - this.changeHour(12); - } - } - /** - * @param {?} value - * @return {?} - */ - formatHour(value) { - if (isNumber(value)) { - if (this.meridian) { - return padNumber(value % 12 === 0 ? 12 : value % 12); - } - else { - return padNumber(value % 24); - } - } - else { - return padNumber(NaN); - } - } - /** - * @param {?} value - * @return {?} - */ - formatMinSec(value) { return padNumber(value); } - /** - * @return {?} - */ - get isSmallSize() { return this.size === 'small'; } - /** - * @return {?} - */ - get isLargeSize() { return this.size === 'large'; } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) { - this.model.second = 0; - this.propagateModelChange(false); - } - } - /** - * @private - * @param {?=} touched - * @return {?} - */ - propagateModelChange(touched = true) { - if (touched) { - this.onTouched(); - } - if (this.model.isValid(this.seconds)) { - this.onChange(this._ngbTimeAdapter.toModel({ hour: this.model.hour, minute: this.model.minute, second: this.model.second })); - } - else { - this.onChange(this._ngbTimeAdapter.toModel(null)); - } - } -} -NgbTimepicker.decorators = [ - { type: Component, args: [{ - selector: 'ngb-timepicker', - encapsulation: ViewEncapsulation.None, - template: ` -
-
-
- - - -
-
:
-
- - - -
-
:
-
- - - -
-
-
- -
-
-
- `, - providers: [NGB_TIMEPICKER_VALUE_ACCESSOR], - styles: ["ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:\"\";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}"] - }] } -]; -/** @nocollapse */ -NgbTimepicker.ctorParameters = () => [ - { type: NgbTimepickerConfig }, - { type: NgbTimeAdapter }, - { type: ChangeDetectorRef }, - { type: NgbTimepickerI18n } -]; -NgbTimepicker.propDecorators = { - meridian: [{ type: Input }], - spinners: [{ type: Input }], - seconds: [{ type: Input }], - hourStep: [{ type: Input }], - minuteStep: [{ type: Input }], - secondStep: [{ type: Input }], - readonlyInputs: [{ type: Input }], - size: [{ type: Input }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbTimepickerModule { -} -NgbTimepickerModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbTimepicker], exports: [NgbTimepicker], imports: [CommonModule] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Configuration service for the NgbToast component. You can inject this service, typically in your root component, - * and customize the values of its properties in order to provide default values for all the toasts used in the - * application. - * - * \@since 5.0.0 - */ -class NgbToastConfig { - constructor() { - this.autohide = true; - this.delay = 500; - this.ariaLive = 'polite'; - } -} -NgbToastConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbToastConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbToastConfig_Factory() { return new NgbToastConfig(); }, token: NgbToastConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * This directive allows the usage of HTML markup or other directives - * inside of the toast's header. - * - * \@since 5.0.0 - */ -class NgbToastHeader { -} -NgbToastHeader.decorators = [ - { type: Directive, args: [{ selector: '[ngbToastHeader]' },] } -]; -/** - * Toasts provide feedback messages as notifications to the user. - * Goal is to mimic the push notifications available both on mobile and desktop operating systems. - * - * \@since 5.0.0 - */ -class NgbToast { - /** - * @param {?} ariaLive - * @param {?} config - */ - constructor(ariaLive, config) { - this.ariaLive = ariaLive; - /** - * A template like `` can be - * used in the projected content to allow markup usage. - */ - this.contentHeaderTpl = null; - /** - * An event fired immediately when toast's `hide()` method has been called. - * It can only occur in 2 different scenarios: - * - `autohide` timeout fires - * - user clicks on a closing cross (×) - * - * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of - * that. - */ - this.hideOutput = new EventEmitter(); - if (this.ariaLive == null) { - this.ariaLive = config.ariaLive; - } - this.delay = config.delay; - this.autohide = config.autohide; - } - /** - * @return {?} - */ - ngAfterContentInit() { this._init(); } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - if ('autohide' in changes) { - this._clearTimeout(); - this._init(); - } - } - /** - * @return {?} - */ - hide() { - this._clearTimeout(); - this.hideOutput.emit(); - } - /** - * @private - * @return {?} - */ - _init() { - if (this.autohide && !this._timeoutID) { - this._timeoutID = setTimeout((/** - * @return {?} - */ - () => this.hide()), this.delay); - } - } - /** - * @private - * @return {?} - */ - _clearTimeout() { - if (this._timeoutID) { - clearTimeout(this._timeoutID); - this._timeoutID = null; - } - } -} -NgbToast.decorators = [ - { type: Component, args: [{ - selector: 'ngb-toast', - exportAs: 'ngbToast', - encapsulation: ViewEncapsulation.None, - host: { - 'role': 'alert', - '[attr.aria-live]': 'ariaLive', - 'aria-atomic': 'true', - '[class.toast]': 'true', - '[class.show]': 'true', - '[class.autohide]': 'autohide', - }, - template: ` - - {{header}} - - -
- - -
-
-
- -
- `, - styles: [".ngb-toasts{position:fixed;top:0;right:0;margin:.5em;z-index:1200}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}"] - }] } -]; -/** @nocollapse */ -NgbToast.ctorParameters = () => [ - { type: String, decorators: [{ type: Attribute, args: ['aria-live',] }] }, - { type: NgbToastConfig } -]; -NgbToast.propDecorators = { - delay: [{ type: Input }], - autohide: [{ type: Input }], - header: [{ type: Input }], - contentHeaderTpl: [{ type: ContentChild, args: [NgbToastHeader, { read: TemplateRef, static: true },] }], - hideOutput: [{ type: Output, args: ['hide',] }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbToastModule { -} -NgbToastModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbToast, NgbToastHeader], imports: [CommonModule], exports: [NgbToast, NgbToastHeader] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tooltips used in the application. - */ -class NgbTooltipConfig { - constructor() { - this.autoClose = true; - this.placement = 'auto'; - this.triggers = 'hover focus'; - this.disableTooltip = false; - this.openDelay = 0; - this.closeDelay = 0; - } -} -NgbTooltipConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbTooltipConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbTooltipConfig_Factory() { return new NgbTooltipConfig(); }, token: NgbTooltipConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -let nextId$5 = 0; -class NgbTooltipWindow { -} -NgbTooltipWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-tooltip-window', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { '[class]': '"tooltip show" + (tooltipClass ? " " + tooltipClass : "")', 'role': 'tooltip', '[id]': 'id' }, - template: `
`, - styles: ["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"] - }] } -]; -NgbTooltipWindow.propDecorators = { - id: [{ type: Input }], - tooltipClass: [{ type: Input }] -}; -/** - * A lightweight and extensible directive for fancy tooltip creation. - */ -class NgbTooltip { - /** - * @param {?} _elementRef - * @param {?} _renderer - * @param {?} injector - * @param {?} componentFactoryResolver - * @param {?} viewContainerRef - * @param {?} config - * @param {?} _ngZone - * @param {?} _document - * @param {?} _changeDetector - * @param {?} _applicationRef - */ - constructor(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, _applicationRef) { - this._elementRef = _elementRef; - this._renderer = _renderer; - this._ngZone = _ngZone; - this._document = _document; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - /** - * An event emitted when the tooltip is shown. Contains no payload. - */ - this.shown = new EventEmitter(); - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - this.hidden = new EventEmitter(); - this._ngbTooltipWindowId = `ngb-tooltip-${nextId$5++}`; - this.autoClose = config.autoClose; - this.placement = config.placement; - this.triggers = config.triggers; - this.container = config.container; - this.disableTooltip = config.disableTooltip; - this.tooltipClass = config.tooltipClass; - this.openDelay = config.openDelay; - this.closeDelay = config.closeDelay; - this._popupService = new PopupService(NgbTooltipWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - () => { - if (this._windowRef) { - positionElements(this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement, this.container === 'body', 'bs-tooltip'); - } - })); - } - /** - * The string content or a `TemplateRef` for the content to be displayed in the tooltip. - * - * If the content if falsy, the tooltip won't open. - * @param {?} value - * @return {?} - */ - set ngbTooltip(value) { - this._ngbTooltip = value; - if (!value && this._windowRef) { - this.close(); - } - } - /** - * @return {?} - */ - get ngbTooltip() { return this._ngbTooltip; } - /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - * @param {?=} context - * @return {?} - */ - open(context) { - if (!this._windowRef && this._ngbTooltip && !this.disableTooltip) { - this._windowRef = this._popupService.open(this._ngbTooltip, context); - this._windowRef.instance.tooltipClass = this.tooltipClass; - this._windowRef.instance.id = this._ngbTooltipWindowId; - this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbTooltipWindowId); - if (this.container === 'body') { - this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - // We need to detect changes, because we don't know where .open() might be called from. - // Ex. opening tooltip from one of lifecycle hooks that run after the CD - // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception - this._windowRef.changeDetectorRef.detectChanges(); - // We need to mark for check, because tooltip won't work inside the OnPush component. - // Ex. when we use expression like `{{ tooltip.isOpen() : 'opened' : 'closed' }}` - // inside the template of an OnPush component and we change the tooltip from - // open -> closed, the expression in question won't be updated unless we explicitly - // mark the parent component to be checked. - this._windowRef.changeDetectorRef.markForCheck(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - () => this.close()), this.hidden, [this._windowRef.location.nativeElement]); - this.shown.emit(); - } - } - /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - close() { - if (this._windowRef != null) { - this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby'); - this._popupService.close(); - this._windowRef = null; - this.hidden.emit(); - this._changeDetector.markForCheck(); - } - } - /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - toggle() { - if (this._windowRef) { - this.close(); - } - else { - this.open(); - } - } - /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - isOpen() { return this._windowRef != null; } - /** - * @return {?} - */ - ngOnInit() { - this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay); - } - /** - * @return {?} - */ - ngOnDestroy() { - this.close(); - // This check is needed as it might happen that ngOnDestroy is called before ngOnInit - // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199 - if (this._unregisterListenersFn) { - this._unregisterListenersFn(); - } - this._zoneSubscription.unsubscribe(); - } -} -NgbTooltip.decorators = [ - { type: Directive, args: [{ selector: '[ngbTooltip]', exportAs: 'ngbTooltip' },] } -]; -/** @nocollapse */ -NgbTooltip.ctorParameters = () => [ - { type: ElementRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: ViewContainerRef }, - { type: NgbTooltipConfig }, - { type: NgZone }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } -]; -NgbTooltip.propDecorators = { - autoClose: [{ type: Input }], - placement: [{ type: Input }], - triggers: [{ type: Input }], - container: [{ type: Input }], - disableTooltip: [{ type: Input }], - tooltipClass: [{ type: Input }], - openDelay: [{ type: Input }], - closeDelay: [{ type: Input }], - shown: [{ type: Output }], - hidden: [{ type: Output }], - ngbTooltip: [{ type: Input }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbTooltipModule { -} -NgbTooltipModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow] },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A component that helps with text highlighting. - * - * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify - * highlighting: - * - * Ex. `result="Alaska"` and `term="as"` will produce `Alaska`. - */ -class NgbHighlight { - constructor() { - /** - * The CSS class for `` elements wrapping the `term` inside the `result`. - */ - this.highlightClass = 'ngb-highlight'; - } - /** - * @param {?} changes - * @return {?} - */ - ngOnChanges(changes) { - /** @type {?} */ - const result = toString(this.result); - /** @type {?} */ - const terms = Array.isArray(this.term) ? this.term : [this.term]; - /** @type {?} */ - const escapedTerms = terms.map((/** - * @param {?} term - * @return {?} - */ - term => regExpEscape(toString(term)))).filter((/** - * @param {?} term - * @return {?} - */ - term => term)); - this.parts = escapedTerms.length ? result.split(new RegExp(`(${escapedTerms.join('|')})`, 'gmi')) : [result]; - } -} -NgbHighlight.decorators = [ - { type: Component, args: [{ - selector: 'ngb-highlight', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: `` + - `{{part}}{{part}}` + - ``, - styles: [".ngb-highlight{font-weight:700}"] - }] } -]; -NgbHighlight.propDecorators = { - highlightClass: [{ type: Input }], - result: [{ type: Input }], - term: [{ type: Input }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbTypeaheadWindow { - constructor() { - this.activeIdx = 0; - /** - * Flag indicating if the first row should be active initially - */ - this.focusFirst = true; - /** - * A function used to format a given result before display. This function should return a formatted string without any - * HTML markup - */ - this.formatter = toString; - /** - * Event raised when user selects a particular result row - */ - this.selectEvent = new EventEmitter(); - this.activeChangeEvent = new EventEmitter(); - } - /** - * @return {?} - */ - hasActive() { return this.activeIdx > -1 && this.activeIdx < this.results.length; } - /** - * @return {?} - */ - getActive() { return this.results[this.activeIdx]; } - /** - * @param {?} activeIdx - * @return {?} - */ - markActive(activeIdx) { - this.activeIdx = activeIdx; - this._activeChanged(); - } - /** - * @return {?} - */ - next() { - if (this.activeIdx === this.results.length - 1) { - this.activeIdx = this.focusFirst ? (this.activeIdx + 1) % this.results.length : -1; - } - else { - this.activeIdx++; - } - this._activeChanged(); - } - /** - * @return {?} - */ - prev() { - if (this.activeIdx < 0) { - this.activeIdx = this.results.length - 1; - } - else if (this.activeIdx === 0) { - this.activeIdx = this.focusFirst ? this.results.length - 1 : -1; - } - else { - this.activeIdx--; - } - this._activeChanged(); - } - /** - * @return {?} - */ - resetActive() { - this.activeIdx = this.focusFirst ? 0 : -1; - this._activeChanged(); - } - /** - * @param {?} item - * @return {?} - */ - select(item) { this.selectEvent.emit(item); } - /** - * @return {?} - */ - ngOnInit() { this.resetActive(); } - /** - * @private - * @return {?} - */ - _activeChanged() { - this.activeChangeEvent.emit(this.activeIdx >= 0 ? this.id + '-' + this.activeIdx : undefined); - } -} -NgbTypeaheadWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-typeahead-window', - exportAs: 'ngbTypeaheadWindow', - host: { '(mousedown)': '$event.preventDefault()', 'class': 'dropdown-menu show', 'role': 'listbox', '[id]': 'id' }, - template: ` - - - - - - - ` - }] } -]; -NgbTypeaheadWindow.propDecorators = { - id: [{ type: Input }], - focusFirst: [{ type: Input }], - results: [{ type: Input }], - term: [{ type: Input }], - formatter: [{ type: Input }], - resultTemplate: [{ type: Input }], - selectEvent: [{ type: Output, args: ['select',] }], - activeChangeEvent: [{ type: Output, args: ['activeChange',] }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const ARIA_LIVE_DELAY = new InjectionToken('live announcer delay', { providedIn: 'root', factory: ARIA_LIVE_DELAY_FACTORY }); -/** - * @return {?} - */ -function ARIA_LIVE_DELAY_FACTORY() { - return 100; -} -/** - * @param {?} document - * @param {?=} lazyCreate - * @return {?} - */ -function getLiveElement(document, lazyCreate = false) { - /** @type {?} */ - let element = (/** @type {?} */ (document.body.querySelector('#ngb-live'))); - if (element == null && lazyCreate) { - element = document.createElement('div'); - element.setAttribute('id', 'ngb-live'); - element.setAttribute('aria-live', 'polite'); - element.setAttribute('aria-atomic', 'true'); - element.classList.add('sr-only'); - document.body.appendChild(element); - } - return element; -} -class Live { - /** - * @param {?} _document - * @param {?} _delay - */ - constructor(_document, _delay) { - this._document = _document; - this._delay = _delay; - } - /** - * @return {?} - */ - ngOnDestroy() { - /** @type {?} */ - const element = getLiveElement(this._document); - if (element) { - element.parentElement.removeChild(element); - } - } - /** - * @param {?} message - * @return {?} - */ - say(message) { - /** @type {?} */ - const element = getLiveElement(this._document, true); - /** @type {?} */ - const delay = this._delay; - element.textContent = ''; - /** @type {?} */ - const setText = (/** - * @return {?} - */ - () => element.textContent = message); - if (delay === null) { - setText(); - } - else { - setTimeout(setText, delay); - } - } -} -Live.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ -Live.ctorParameters = () => [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: undefined, decorators: [{ type: Inject, args: [ARIA_LIVE_DELAY,] }] } -]; -/** @nocollapse */ Live.ngInjectableDef = ɵɵdefineInjectable({ factory: function Live_Factory() { return new Live(ɵɵinject(DOCUMENT), ɵɵinject(ARIA_LIVE_DELAY)); }, token: Live, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the typeaheads used in the application. - */ -class NgbTypeaheadConfig { - constructor() { - this.editable = true; - this.focusFirst = true; - this.showHint = false; - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - } -} -NgbTypeaheadConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } -]; -/** @nocollapse */ NgbTypeaheadConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbTypeaheadConfig_Factory() { return new NgbTypeaheadConfig(); }, token: NgbTypeaheadConfig, providedIn: "root" }); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_TYPEAHEAD_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - () => NgbTypeahead)), - multi: true -}; -/** @type {?} */ -let nextWindowId = 0; -/** - * A directive providing a simple way of creating powerful typeaheads from any text input. - */ -class NgbTypeahead { - /** - * @param {?} _elementRef - * @param {?} _viewContainerRef - * @param {?} _renderer - * @param {?} _injector - * @param {?} componentFactoryResolver - * @param {?} config - * @param {?} ngZone - * @param {?} _live - * @param {?} _document - * @param {?} _ngZone - * @param {?} _changeDetector - * @param {?} _applicationRef - */ - constructor(_elementRef, _viewContainerRef, _renderer, _injector, componentFactoryResolver, config, ngZone, _live, _document, _ngZone, _changeDetector, _applicationRef) { - this._elementRef = _elementRef; - this._viewContainerRef = _viewContainerRef; - this._renderer = _renderer; - this._injector = _injector; - this._live = _live; - this._document = _document; - this._ngZone = _ngZone; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - this._closed$ = new Subject(); - /** - * The value for the `autocomplete` attribute for the `` element. - * - * Defaults to `"off"` to disable the native browser autocomplete, but you can override it if necessary. - * - * \@since 2.1.0 - */ - this.autocomplete = 'off'; - /** - * The preferred placement of the typeahead. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - this.placement = 'bottom-left'; - /** - * An event emitted right before an item is selected from the result list. - * - * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent). - */ - this.selectItem = new EventEmitter(); - this.popupId = `ngb-typeahead-${nextWindowId++}`; - this._onTouched = (/** - * @return {?} - */ - () => { }); - this._onChange = (/** - * @param {?} _ - * @return {?} - */ - (_) => { }); - this.container = config.container; - this.editable = config.editable; - this.focusFirst = config.focusFirst; - this.showHint = config.showHint; - this.placement = config.placement; - this._valueChanges = fromEvent(_elementRef.nativeElement, 'input') - .pipe(map((/** - * @param {?} $event - * @return {?} - */ - $event => ((/** @type {?} */ ($event.target))).value))); - this._resubscribeTypeahead = new BehaviorSubject(null); - this._popupService = new PopupService(NgbTypeaheadWindow, _injector, _viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = ngZone.onStable.subscribe((/** - * @return {?} - */ - () => { - if (this.isPopupOpen()) { - positionElements(this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement, this.container === 'body'); - } - })); - } - /** - * @return {?} - */ - ngOnInit() { - /** @type {?} */ - const inputValues$ = this._valueChanges.pipe(tap((/** - * @param {?} value - * @return {?} - */ - value => { - this._inputValueBackup = this.showHint ? value : null; - if (this.editable) { - this._onChange(value); - } - }))); - /** @type {?} */ - const results$ = inputValues$.pipe(this.ngbTypeahead); - /** @type {?} */ - const processedResults$ = results$.pipe(tap((/** - * @return {?} - */ - () => { - if (!this.editable) { - this._onChange(undefined); - } - }))); - /** @type {?} */ - const userInput$ = this._resubscribeTypeahead.pipe(switchMap((/** - * @return {?} - */ - () => processedResults$))); - this._subscription = this._subscribeToUserInput(userInput$); - } - /** - * @return {?} - */ - ngOnDestroy() { - this._closePopup(); - this._unsubscribeFromUserInput(); - this._zoneSubscription.unsubscribe(); - } - /** - * @param {?} fn - * @return {?} - */ - registerOnChange(fn) { this._onChange = fn; } - /** - * @param {?} fn - * @return {?} - */ - registerOnTouched(fn) { this._onTouched = fn; } - /** - * @param {?} value - * @return {?} - */ - writeValue(value) { - this._writeInputValue(this._formatItemForInput(value)); - if (this.showHint) { - this._inputValueBackup = value; - } - } - /** - * @param {?} isDisabled - * @return {?} - */ - setDisabledState(isDisabled) { - this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled); - } - /** - * Dismisses typeahead popup window - * @return {?} - */ - dismissPopup() { - if (this.isPopupOpen()) { - this._resubscribeTypeahead.next(null); - this._closePopup(); - if (this.showHint && this._inputValueBackup !== null) { - this._writeInputValue(this._inputValueBackup); - } - this._changeDetector.markForCheck(); - } - } - /** - * Returns true if the typeahead popup window is displayed - * @return {?} - */ - isPopupOpen() { return this._windowRef != null; } - /** - * @return {?} - */ - handleBlur() { - this._resubscribeTypeahead.next(null); - this._onTouched(); - } - /** - * @param {?} event - * @return {?} - */ - handleKeyDown(event) { - if (!this.isPopupOpen()) { - return; - } - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.ArrowDown: - event.preventDefault(); - this._windowRef.instance.next(); - this._showHint(); - break; - case Key.ArrowUp: - event.preventDefault(); - this._windowRef.instance.prev(); - this._showHint(); - break; - case Key.Enter: - case Key.Tab: - /** @type {?} */ - const result = this._windowRef.instance.getActive(); - if (isDefined(result)) { - event.preventDefault(); - event.stopPropagation(); - this._selectResult(result); - } - this._closePopup(); - break; - } - } - /** - * @private - * @return {?} - */ - _openPopup() { - if (!this.isPopupOpen()) { - this._inputValueBackup = this._elementRef.nativeElement.value; - this._windowRef = this._popupService.open(); - this._windowRef.instance.id = this.popupId; - this._windowRef.instance.selectEvent.subscribe((/** - * @param {?} result - * @return {?} - */ - (result) => this._selectResultClosePopup(result))); - this._windowRef.instance.activeChangeEvent.subscribe((/** - * @param {?} activeId - * @return {?} - */ - (activeId) => this.activeDescendant = activeId)); - if (this.container === 'body') { - window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - this._changeDetector.markForCheck(); - ngbAutoClose(this._ngZone, this._document, 'outside', (/** - * @return {?} - */ - () => this.dismissPopup()), this._closed$, [this._elementRef.nativeElement, this._windowRef.location.nativeElement]); - } - } - /** - * @private - * @return {?} - */ - _closePopup() { - this._closed$.next(); - this._popupService.close(); - this._windowRef = null; - this.activeDescendant = undefined; - } - /** - * @private - * @param {?} result - * @return {?} - */ - _selectResult(result) { - /** @type {?} */ - let defaultPrevented = false; - this.selectItem.emit({ item: result, preventDefault: (/** - * @return {?} - */ - () => { defaultPrevented = true; }) }); - this._resubscribeTypeahead.next(null); - if (!defaultPrevented) { - this.writeValue(result); - this._onChange(result); - } - } - /** - * @private - * @param {?} result - * @return {?} - */ - _selectResultClosePopup(result) { - this._selectResult(result); - this._closePopup(); - } - /** - * @private - * @return {?} - */ - _showHint() { - if (this.showHint && this._windowRef.instance.hasActive() && this._inputValueBackup != null) { - /** @type {?} */ - const userInputLowerCase = this._inputValueBackup.toLowerCase(); - /** @type {?} */ - const formattedVal = this._formatItemForInput(this._windowRef.instance.getActive()); - if (userInputLowerCase === formattedVal.substr(0, this._inputValueBackup.length).toLowerCase()) { - this._writeInputValue(this._inputValueBackup + formattedVal.substr(this._inputValueBackup.length)); - this._elementRef.nativeElement['setSelectionRange'].apply(this._elementRef.nativeElement, [this._inputValueBackup.length, formattedVal.length]); - } - else { - this._writeInputValue(formattedVal); - } - } - } - /** - * @private - * @param {?} item - * @return {?} - */ - _formatItemForInput(item) { - return item != null && this.inputFormatter ? this.inputFormatter(item) : toString(item); - } - /** - * @private - * @param {?} value - * @return {?} - */ - _writeInputValue(value) { - this._renderer.setProperty(this._elementRef.nativeElement, 'value', toString(value)); - } - /** - * @private - * @param {?} userInput$ - * @return {?} - */ - _subscribeToUserInput(userInput$) { - return userInput$.subscribe((/** - * @param {?} results - * @return {?} - */ - (results) => { - if (!results || results.length === 0) { - this._closePopup(); - } - else { - this._openPopup(); - this._windowRef.instance.focusFirst = this.focusFirst; - this._windowRef.instance.results = results; - this._windowRef.instance.term = this._elementRef.nativeElement.value; - if (this.resultFormatter) { - this._windowRef.instance.formatter = this.resultFormatter; - } - if (this.resultTemplate) { - this._windowRef.instance.resultTemplate = this.resultTemplate; - } - this._windowRef.instance.resetActive(); - // The observable stream we are subscribing to might have async steps - // and if a component containing typeahead is using the OnPush strategy - // the change detection turn wouldn't be invoked automatically. - this._windowRef.changeDetectorRef.detectChanges(); - this._showHint(); - } - // live announcer - /** @type {?} */ - const count = results ? results.length : 0; - this._live.say(count === 0 ? 'No results available' : `${count} result${count === 1 ? '' : 's'} available`); - })); - } - /** - * @private - * @return {?} - */ - _unsubscribeFromUserInput() { - if (this._subscription) { - this._subscription.unsubscribe(); - } - this._subscription = null; - } -} -NgbTypeahead.decorators = [ - { type: Directive, args: [{ - selector: 'input[ngbTypeahead]', - exportAs: 'ngbTypeahead', - host: { - '(blur)': 'handleBlur()', - '[class.open]': 'isPopupOpen()', - '(keydown)': 'handleKeyDown($event)', - '[autocomplete]': 'autocomplete', - 'autocapitalize': 'off', - 'autocorrect': 'off', - 'role': 'combobox', - 'aria-multiline': 'false', - '[attr.aria-autocomplete]': 'showHint ? "both" : "list"', - '[attr.aria-activedescendant]': 'activeDescendant', - '[attr.aria-owns]': 'isPopupOpen() ? popupId : null', - '[attr.aria-expanded]': 'isPopupOpen()' - }, - providers: [NGB_TYPEAHEAD_VALUE_ACCESSOR] - },] } -]; -/** @nocollapse */ -NgbTypeahead.ctorParameters = () => [ - { type: ElementRef }, - { type: ViewContainerRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: NgbTypeaheadConfig }, - { type: NgZone }, - { type: Live }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: NgZone }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } -]; -NgbTypeahead.propDecorators = { - autocomplete: [{ type: Input }], - container: [{ type: Input }], - editable: [{ type: Input }], - focusFirst: [{ type: Input }], - inputFormatter: [{ type: Input }], - ngbTypeahead: [{ type: Input }], - resultFormatter: [{ type: Input }], - resultTemplate: [{ type: Input }], - showHint: [{ type: Input }], - placement: [{ type: Input }], - selectItem: [{ type: Output }] -}; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -class NgbTypeaheadModule { -} -NgbTypeaheadModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow], - exports: [NgbTypeahead, NgbHighlight], - imports: [CommonModule], - entryComponents: [NgbTypeaheadWindow] - },] } -]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -const NGB_MODULES = [ - SbCardModule, NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule, - NgbDropdownModule, NgbModalModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule, - NgbTabsetModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule -]; -class NgbModule { -} -NgbModule.decorators = [ - { type: NgModule, args: [{ imports: NGB_MODULES, exports: NGB_MODULES },] } -]; - -export { ModalDismissReasons, NgbAccordion, NgbAccordionConfig, NgbAccordionModule, NgbActiveModal, NgbAlert, NgbAlertConfig, NgbAlertModule, NgbButtonLabel, NgbButtonsModule, NgbCalendar, NgbCalendarGregorian, NgbCalendarHebrew, NgbCalendarIslamicCivil, NgbCalendarIslamicUmalqura, NgbCalendarPersian, NgbCarousel, NgbCarouselConfig, NgbCarouselModule, NgbCheckBox, NgbCollapse, NgbCollapseModule, NgbDate, NgbDateAdapter, NgbDateNativeAdapter, NgbDateNativeUTCAdapter, NgbDateParserFormatter, NgbDatepicker, NgbDatepickerConfig, NgbDatepickerI18n, NgbDatepickerI18nHebrew, NgbDatepickerModule, NgbDropdown, NgbDropdownAnchor, NgbDropdownConfig, NgbDropdownItem, NgbDropdownMenu, NgbDropdownModule, NgbDropdownToggle, NgbHighlight, NgbInputDatepicker, NgbModal, NgbModalConfig, NgbModalModule, NgbModalRef, NgbModule, NgbPagination, NgbPaginationConfig, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationModule, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious, NgbPanel, NgbPanelContent, NgbPanelHeader, NgbPanelTitle, NgbPanelToggle, NgbPopover, NgbPopoverConfig, NgbPopoverModule, NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule, NgbRadio, NgbRadioGroup, NgbRating, NgbRatingConfig, NgbRatingModule, NgbSlide, NgbSlideEventDirection, NgbSlideEventSource, NgbTab, NgbTabContent, NgbTabTitle, NgbTabset, NgbTabsetConfig, NgbTabsetModule, NgbTimeAdapter, NgbTimepicker, NgbTimepickerConfig, NgbTimepickerI18n, NgbTimepickerModule, NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule, NgbTooltip, NgbTooltipConfig, NgbTooltipModule, NgbTypeahead, NgbTypeaheadConfig, NgbTypeaheadModule, SbCard, SbCardConfig, SbCardModule, NGB_CAROUSEL_DIRECTIVES as ɵa, NGB_DATEPICKER_CALENDAR_FACTORY as ɵb, ARIA_LIVE_DELAY as ɵba, ARIA_LIVE_DELAY_FACTORY as ɵbb, Live as ɵbc, NgbCalendarHijri as ɵbd, ContentRef as ɵbe, NgbDatepickerMonthView as ɵc, NgbDatepickerDayView as ɵd, NgbDatepickerNavigation as ɵe, NgbDatepickerNavigationSelect as ɵf, NGB_DATEPICKER_18N_FACTORY as ɵg, NgbDatepickerI18nDefault as ɵh, NGB_DATEPICKER_DATE_ADAPTER_FACTORY as ɵi, NgbDateStructAdapter as ɵj, NGB_DATEPICKER_PARSER_FORMATTER_FACTORY as ɵk, NgbDateISOParserFormatter as ɵl, NgbNavbar as ɵm, NgbPopoverWindow as ɵn, NGB_DATEPICKER_TIME_ADAPTER_FACTORY as ɵo, NgbTimeStructAdapter as ɵp, NGB_TIMEPICKER_I18N_FACTORY as ɵq, NgbTimepickerI18nDefault as ɵr, NgbTooltipWindow as ɵs, NgbTypeaheadWindow as ɵt, NgbDatepickerService as ɵu, NgbDatepickerKeyMapService as ɵv, NgbModalBackdrop as ɵw, NgbModalWindow as ɵx, NgbModalStack as ɵy, ScrollBar as ɵz }; -//# sourceMappingURL=ng-bootstrap.js.map diff --git a/dist/ng-bootstrap/fesm2015/ng-bootstrap.js.map b/dist/ng-bootstrap/fesm2015/ng-bootstrap.js.map deleted file mode 100644 index d624dac..0000000 --- a/dist/ng-bootstrap/fesm2015/ng-bootstrap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ng-bootstrap.js","sources":["ng://@sunbird-ed/sunbird-ui-components/card/card-config.ts","ng://@sunbird-ed/sunbird-ui-components/card/card.ts","ng://@sunbird-ed/sunbird-ui-components/card/card.module.ts","ng://@sunbird-ed/sunbird-ui-components/util/util.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion-config.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion.module.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert-config.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert.module.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/label.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/checkbox.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/radio.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/buttons.module.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel-config.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel.module.ts","ng://@sunbird-ed/sunbird-ui-components/collapse/collapse.ts","ng://@sunbird-ed/sunbird-ui-components/collapse/collapse.module.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-date.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-calendar.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-tools.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-i18n.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-service.ts","ng://@sunbird-ed/sunbird-ui-components/util/key.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-keymap-service.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-view-model.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-config.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-month-view.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-navigation.ts","ng://@sunbird-ed/sunbird-ui-components/util/autoclose.ts","ng://@sunbird-ed/sunbird-ui-components/util/focus-trap.ts","ng://@sunbird-ed/sunbird-ui-components/util/positioning.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-date-parser-formatter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-input.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-day-view.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-navigation-select.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-hijri.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-islamic-civil.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-islamic-umalqura.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/jalali/jalali.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/jalali/ngb-calendar-persian.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/ngb-calendar-hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/datepicker-i18n-hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-native-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-native-utc-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker.module.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown-config.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown.module.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-config.ts","ng://@sunbird-ed/sunbird-ui-components/util/popup.ts","ng://@sunbird-ed/sunbird-ui-components/util/scrollbar.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-backdrop.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-ref.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-dismiss-reasons.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-window.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-stack.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal.module.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination-config.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination.module.ts","ng://@sunbird-ed/sunbird-ui-components/util/triggers.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover-config.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover.module.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar-config.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar.module.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating-config.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating.module.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset-config.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset.module.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/ngb-time.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker-config.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/ngb-time-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker-i18n.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker.module.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast-config.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast.module.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip-config.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip.module.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/highlight.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead-window.ts","ng://@sunbird-ed/sunbird-ui-components/util/accessibility/live.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead-config.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead.module.ts","ng://@sunbird-ed/sunbird-ui-components/index.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [SbCard](#/components/alert/api#SbCard) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all alerts used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class SbCardConfig {\n dismissible = true;\n type = 'warning';\n}\n","import {\n Component,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n Renderer2,\n ElementRef,\n OnChanges,\n OnInit,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {SbCardConfig} from './card-config';\n\n/**\n * Alert is a component to provide contextual feedback messages for user.\n *\n * It supports several alert types and can be dismissed.\n */\n@Component({\n selector: 'sb-card',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible'},\n template: `\n \n \n `,\n styleUrls: ['./card.scss']\n})\nexport class SbCard implements OnInit,\n OnChanges {\n /**\n * If `true`, alert can be dismissed by the user.\n *\n * The close button (×) will be displayed and you can be notified\n * of the event with the `(close)` output.\n */\n @Input() dismissible: boolean;\n /**\n * Type of the alert.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n /**\n * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts.\n */\n @Output() close = new EventEmitter();\n\n constructor(config: SbCardConfig, private _renderer: Renderer2, private _element: ElementRef) {\n this.dismissible = config.dismissible;\n this.type = config.type;\n }\n\n closeHandler() { this.close.emit(null); }\n\n ngOnChanges(changes: SimpleChanges) {\n const typeChange = changes['type'];\n if (typeChange && !typeChange.firstChange) {\n this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`);\n this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`);\n }\n }\n\n ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {SbCard} from './card';\n\nexport {SbCard} from './card';\nexport {SbCardConfig} from './card-config';\n\n@NgModule({declarations: [SbCard], exports: [SbCard], imports: [CommonModule], entryComponents: [SbCard]})\nexport class SbCardModule {\n}\n","export function toInteger(value: any): number {\n return parseInt(`${value}`, 10);\n}\n\nexport function toString(value: any): string {\n return (value !== undefined && value !== null) ? `${value}` : '';\n}\n\nexport function getValueInRange(value: number, max: number, min = 0): number {\n return Math.max(Math.min(value, max), min);\n}\n\nexport function isString(value: any): value is string {\n return typeof value === 'string';\n}\n\nexport function isNumber(value: any): value is number {\n return !isNaN(toInteger(value));\n}\n\nexport function isInteger(value: any): value is number {\n return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;\n}\n\nexport function isDefined(value: any): boolean {\n return value !== undefined && value !== null;\n}\n\nexport function padNumber(value: number) {\n if (isNumber(value)) {\n return `0${value}`.slice(-2);\n } else {\n return '';\n }\n}\n\nexport function regExpEscape(text) {\n return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n}\n\nexport function hasClassName(element: any, className: string): boolean {\n return element && element.className && element.className.split &&\n element.className.split(/\\s+/).indexOf(className) >= 0;\n}\n\nif (typeof Element !== 'undefined' && !Element.prototype.closest) {\n // Polyfill for ie10+\n\n if (!Element.prototype.matches) {\n // IE uses the non-standard name: msMatchesSelector\n Element.prototype.matches = (Element.prototype as any).msMatchesSelector || Element.prototype.webkitMatchesSelector;\n }\n\n Element.prototype.closest = function(s: string) {\n let el = this;\n if (!document.documentElement.contains(el)) {\n return null;\n }\n do {\n if (el.matches(s)) {\n return el;\n }\n el = el.parentElement || el.parentNode;\n } while (el !== null && el.nodeType === 1);\n return null;\n };\n}\n\nexport function closest(element: HTMLElement, selector): HTMLElement {\n if (!selector) {\n return null;\n }\n\n return element.closest(selector);\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all accordions used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbAccordionConfig {\n closeOthers = false;\n type: string;\n}\n","import {\n AfterContentChecked,\n Component,\n ContentChildren,\n Directive,\n EventEmitter,\n Host,\n Input,\n Optional,\n Output,\n QueryList,\n TemplateRef\n} from '@angular/core';\n\nimport {isString} from '../util/util';\n\nimport {NgbAccordionConfig} from './accordion-config';\n\nlet nextId = 0;\n\n/**\n * The context for the [NgbPanelHeader](#/components/accordion/api#NgbPanelHeader) template\n *\n * @since 4.1.0\n */\nexport interface NgbPanelHeaderContext {\n /**\n * `True` if current panel is opened\n */\n opened: boolean;\n}\n\n/**\n * A directive that wraps an accordion panel header with any HTML markup and a toggling button\n * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle).\n * See the [header customization demo](#/components/accordion/examples#header) for more details.\n *\n * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title.\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPanelHeader]'})\nexport class NgbPanelHeader {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps only the panel title with HTML markup inside.\n *\n * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header.\n */\n@Directive({selector: 'ng-template[ngbPanelTitle]'})\nexport class NgbPanelTitle {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps the accordion panel content.\n */\n@Directive({selector: 'ng-template[ngbPanelContent]'})\nexport class NgbPanelContent {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps an individual accordion panel with title and collapsible content.\n */\n@Directive({selector: 'ngb-panel'})\nexport class NgbPanel implements AfterContentChecked {\n /**\n * If `true`, the panel is disabled an can't be toggled.\n */\n @Input() disabled = false;\n\n /**\n * An optional id for the panel that must be unique on the page.\n *\n * If not provided, it will be auto-generated in the `ngb-panel-xxx` format.\n */\n @Input() id = `ngb-panel-${nextId++}`;\n\n isOpen = false;\n\n /**\n * The panel title.\n *\n * You can alternatively use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to set panel title.\n */\n @Input() title: string;\n\n /**\n * Type of the current panel.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n\n titleTpl: NgbPanelTitle | null;\n headerTpl: NgbPanelHeader | null;\n contentTpl: NgbPanelContent | null;\n\n @ContentChildren(NgbPanelTitle, {descendants: false}) titleTpls: QueryList;\n @ContentChildren(NgbPanelHeader, {descendants: false}) headerTpls: QueryList;\n @ContentChildren(NgbPanelContent, {descendants: false}) contentTpls: QueryList;\n\n ngAfterContentChecked() {\n // We are using @ContentChildren instead of @ContentChild as in the Angular version being used\n // only @ContentChildren allows us to specify the {descendants: false} option.\n // Without {descendants: false} we are hitting bugs described in:\n // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240\n this.titleTpl = this.titleTpls.first;\n this.headerTpl = this.headerTpls.first;\n this.contentTpl = this.contentTpls.first;\n }\n}\n\n/**\n * An event emitted right before toggling an accordion panel.\n */\nexport interface NgbPanelChangeEvent {\n /**\n * The id of the accordion panel that is being toggled.\n */\n panelId: string;\n\n /**\n * The next state of the panel.\n *\n * `true` if it will be opened, `false` if closed.\n */\n nextState: boolean;\n\n /**\n * Calling this function will prevent panel toggling.\n */\n preventDefault: () => void;\n}\n\n/**\n * Accordion is a collection of collapsible panels (bootstrap cards).\n *\n * It can ensure only one panel is opened at a time and allows to customize panel\n * headers.\n */\n@Component({\n selector: 'ngb-accordion',\n exportAs: 'ngbAccordion',\n host: {'class': 'accordion', 'role': 'tablist', '[attr.aria-multiselectable]': '!closeOtherPanels'},\n template: `\n \n \n \n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n `\n})\nexport class NgbAccordion implements AfterContentChecked {\n @ContentChildren(NgbPanel) panels: QueryList;\n\n /**\n * An array or comma separated strings of panel ids that should be opened **initially**.\n *\n * For subsequent changes use methods like `expand()`, `collapse()`, etc. and\n * the `(panelChange)` event.\n */\n @Input() activeIds: string | string[] = [];\n\n /**\n * If `true`, only one panel could be opened at a time.\n *\n * Opening a new panel will close others.\n */\n @Input('closeOthers') closeOtherPanels: boolean;\n\n /**\n * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed.\n */\n @Input() destroyOnHide = true;\n\n /**\n * Type of panels.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n\n /**\n * Event emitted right before the panel toggle happens.\n *\n * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details.\n */\n @Output() panelChange = new EventEmitter();\n\n constructor(config: NgbAccordionConfig) {\n this.type = config.type;\n this.closeOtherPanels = config.closeOthers;\n }\n\n /**\n * Checks if a panel with a given id is expanded.\n */\n isExpanded(panelId: string): boolean { return this.activeIds.indexOf(panelId) > -1; }\n\n /**\n * Expands a panel with a given id.\n *\n * Has no effect if the panel is already expanded or disabled.\n */\n expand(panelId: string): void { this._changeOpenState(this._findPanelById(panelId), true); }\n\n /**\n * Expands all panels, if `[closeOthers]` is `false`.\n *\n * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened.\n */\n expandAll(): void {\n if (this.closeOtherPanels) {\n if (this.activeIds.length === 0 && this.panels.length) {\n this._changeOpenState(this.panels.first, true);\n }\n } else {\n this.panels.forEach(panel => this._changeOpenState(panel, true));\n }\n }\n\n /**\n * Collapses a panel with the given id.\n *\n * Has no effect if the panel is already collapsed or disabled.\n */\n collapse(panelId: string) { this._changeOpenState(this._findPanelById(panelId), false); }\n\n /**\n * Collapses all opened panels.\n */\n collapseAll() {\n this.panels.forEach((panel) => { this._changeOpenState(panel, false); });\n }\n\n /**\n * Toggles a panel with the given id.\n *\n * Has no effect if the panel is disabled.\n */\n toggle(panelId: string) {\n const panel = this._findPanelById(panelId);\n if (panel) {\n this._changeOpenState(panel, !panel.isOpen);\n }\n }\n\n ngAfterContentChecked() {\n // active id updates\n if (isString(this.activeIds)) {\n this.activeIds = this.activeIds.split(/\\s*,\\s*/);\n }\n\n // update panels open states\n this.panels.forEach(panel => panel.isOpen = !panel.disabled && this.activeIds.indexOf(panel.id) > -1);\n\n // closeOthers updates\n if (this.activeIds.length > 1 && this.closeOtherPanels) {\n this._closeOthers(this.activeIds[0]);\n this._updateActiveIds();\n }\n }\n\n private _changeOpenState(panel: NgbPanel, nextState: boolean) {\n if (panel && !panel.disabled && panel.isOpen !== nextState) {\n let defaultPrevented = false;\n\n this.panelChange.emit(\n {panelId: panel.id, nextState: nextState, preventDefault: () => { defaultPrevented = true; }});\n\n if (!defaultPrevented) {\n panel.isOpen = nextState;\n\n if (nextState && this.closeOtherPanels) {\n this._closeOthers(panel.id);\n }\n this._updateActiveIds();\n }\n }\n }\n\n private _closeOthers(panelId: string) {\n this.panels.forEach(panel => {\n if (panel.id !== panelId) {\n panel.isOpen = false;\n }\n });\n }\n\n private _findPanelById(panelId: string): NgbPanel | null { return this.panels.find(p => p.id === panelId); }\n\n private _updateActiveIds() {\n this.activeIds = this.panels.filter(panel => panel.isOpen && !panel.disabled).map(panel => panel.id);\n }\n}\n\n/**\n * A directive to put on a button that toggles panel opening and closing.\n *\n * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader)\n *\n * @since 4.1.0\n */\n@Directive({\n selector: 'button[ngbPanelToggle]',\n host: {\n 'type': 'button',\n '[disabled]': 'panel.disabled',\n '[class.collapsed]': '!panel.isOpen',\n '[attr.aria-expanded]': 'panel.isOpen',\n '[attr.aria-controls]': 'panel.id',\n '(click)': 'accordion.toggle(panel.id)'\n }\n})\nexport class NgbPanelToggle {\n @Input()\n set ngbPanelToggle(panel: NgbPanel) {\n if (panel) {\n this.panel = panel;\n }\n }\n\n constructor(public accordion: NgbAccordion, @Optional() @Host() public panel: NgbPanel) {}\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle} from './accordion';\n\nexport {\n NgbAccordion,\n NgbPanel,\n NgbPanelTitle,\n NgbPanelContent,\n NgbPanelChangeEvent,\n NgbPanelHeader,\n NgbPanelHeaderContext,\n NgbPanelToggle\n} from './accordion';\nexport {NgbAccordionConfig} from './accordion-config';\n\nconst NGB_ACCORDION_DIRECTIVES =\n [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle];\n\n@NgModule({declarations: NGB_ACCORDION_DIRECTIVES, exports: NGB_ACCORDION_DIRECTIVES, imports: [CommonModule]})\nexport class NgbAccordionModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all alerts used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbAlertConfig {\n dismissible = true;\n type = 'warning';\n}\n","import {\n Component,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n Renderer2,\n ElementRef,\n OnChanges,\n OnInit,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {NgbAlertConfig} from './alert-config';\n\n/**\n * Alert is a component to provide contextual feedback messages for user.\n *\n * It supports several alert types and can be dismissed.\n */\n@Component({\n selector: 'ngb-alert',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible'},\n template: `\n \n \n `,\n styleUrls: ['./alert.scss']\n})\nexport class NgbAlert implements OnInit,\n OnChanges {\n /**\n * If `true`, alert can be dismissed by the user.\n *\n * The close button (×) will be displayed and you can be notified\n * of the event with the `(close)` output.\n */\n @Input() dismissible: boolean;\n /**\n * Type of the alert.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n /**\n * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts.\n */\n @Output() close = new EventEmitter();\n\n constructor(config: NgbAlertConfig, private _renderer: Renderer2, private _element: ElementRef) {\n this.dismissible = config.dismissible;\n this.type = config.type;\n }\n\n closeHandler() { this.close.emit(null); }\n\n ngOnChanges(changes: SimpleChanges) {\n const typeChange = changes['type'];\n if (typeChange && !typeChange.firstChange) {\n this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`);\n this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`);\n }\n }\n\n ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbAlert} from './alert';\n\nexport {NgbAlert} from './alert';\nexport {NgbAlertConfig} from './alert-config';\n\n@NgModule({declarations: [NgbAlert], exports: [NgbAlert], imports: [CommonModule], entryComponents: [NgbAlert]})\nexport class NgbAlertModule {\n}\n","import {Directive} from '@angular/core';\n\n@Directive({\n selector: '[ngbButtonLabel]',\n host:\n {'[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused'}\n})\nexport class NgbButtonLabel {\n active: boolean;\n disabled: boolean;\n focused: boolean;\n}\n","import {ChangeDetectorRef, Directive, forwardRef, Input} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {NgbButtonLabel} from './label';\n\nconst NGB_CHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbCheckBox),\n multi: true\n};\n\n\n/**\n * Allows to easily create Bootstrap-style checkbox buttons.\n *\n * Integrates with forms, so the value of a checked button is bound to the underlying form control\n * either in a reactive or template-driven way.\n */\n@Directive({\n selector: '[ngbButton][type=checkbox]',\n host: {\n 'autocomplete': 'off',\n '[checked]': 'checked',\n '[disabled]': 'disabled',\n '(change)': 'onInputChange($event)',\n '(focus)': 'focused = true',\n '(blur)': 'focused = false'\n },\n providers: [NGB_CHECKBOX_VALUE_ACCESSOR]\n})\nexport class NgbCheckBox implements ControlValueAccessor {\n checked;\n\n /**\n * If `true`, the checkbox button will be disabled\n */\n @Input() disabled = false;\n\n /**\n * The form control value when the checkbox is checked.\n */\n @Input() valueChecked = true;\n\n /**\n * The form control value when the checkbox is unchecked.\n */\n @Input() valueUnChecked = false;\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n set focused(isFocused: boolean) {\n this._label.focused = isFocused;\n if (!isFocused) {\n this.onTouched();\n }\n }\n\n constructor(private _label: NgbButtonLabel, private _cd: ChangeDetectorRef) {}\n\n onInputChange($event) {\n const modelToPropagate = $event.target.checked ? this.valueChecked : this.valueUnChecked;\n this.onChange(modelToPropagate);\n this.onTouched();\n this.writeValue(modelToPropagate);\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n this._label.disabled = isDisabled;\n }\n\n writeValue(value) {\n this.checked = value === this.valueChecked;\n this._label.active = this.checked;\n\n // label won't be updated, if it is inside the OnPush component when [ngModel] changes\n this._cd.markForCheck();\n }\n}\n","import {ChangeDetectorRef, Directive, ElementRef, forwardRef, Input, OnDestroy, Renderer2} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {NgbButtonLabel} from './label';\n\nconst NGB_RADIO_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbRadioGroup),\n multi: true\n};\n\nlet nextId = 0;\n\n/**\n * Allows to easily create Bootstrap-style radio buttons.\n *\n * Integrates with forms, so the value of a checked button is bound to the underlying form control\n * either in a reactive or template-driven way.\n */\n@Directive({selector: '[ngbRadioGroup]', host: {'role': 'radiogroup'}, providers: [NGB_RADIO_VALUE_ACCESSOR]})\nexport class NgbRadioGroup implements ControlValueAccessor {\n private _radios: Set = new Set();\n private _value = null;\n private _disabled: boolean;\n\n get disabled() { return this._disabled; }\n set disabled(isDisabled: boolean) { this.setDisabledState(isDisabled); }\n\n /**\n * Name of the radio group applied to radio input elements.\n *\n * Will be applied to all radio input elements inside the group,\n * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves.\n *\n * If not provided, will be generated in the `ngb-radio-xx` format.\n */\n @Input() name = `ngb-radio-${nextId++}`;\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n onRadioChange(radio: NgbRadio) {\n this.writeValue(radio.value);\n this.onChange(radio.value);\n }\n\n onRadioValueUpdate() { this._updateRadiosValue(); }\n\n register(radio: NgbRadio) { this._radios.add(radio); }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean): void {\n this._disabled = isDisabled;\n this._updateRadiosDisabled();\n }\n\n unregister(radio: NgbRadio) { this._radios.delete(radio); }\n\n writeValue(value) {\n this._value = value;\n this._updateRadiosValue();\n }\n\n private _updateRadiosValue() { this._radios.forEach((radio) => radio.updateValue(this._value)); }\n private _updateRadiosDisabled() { this._radios.forEach((radio) => radio.updateDisabled()); }\n}\n\n\n/**\n * A directive that marks an input of type \"radio\" as a part of the\n * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup).\n */\n@Directive({\n selector: '[ngbButton][type=radio]',\n host: {\n '[checked]': 'checked',\n '[disabled]': 'disabled',\n '[name]': 'nameAttr',\n '(change)': 'onChange()',\n '(focus)': 'focused = true',\n '(blur)': 'focused = false'\n }\n})\nexport class NgbRadio implements OnDestroy {\n private _checked: boolean;\n private _disabled: boolean;\n private _value: any = null;\n\n /**\n * The value for the 'name' property of the input element.\n *\n * All inputs of the radio group should have the same name. If not specified,\n * the name of the enclosing group is used.\n */\n @Input() name: string;\n\n /**\n * The form control value when current radio button is checked.\n */\n @Input('value')\n set value(value: any) {\n this._value = value;\n const stringValue = value ? value.toString() : '';\n this._renderer.setProperty(this._element.nativeElement, 'value', stringValue);\n this._group.onRadioValueUpdate();\n }\n\n /**\n * If `true`, current radio button will be disabled.\n */\n @Input('disabled')\n set disabled(isDisabled: boolean) {\n this._disabled = isDisabled !== false;\n this.updateDisabled();\n }\n\n set focused(isFocused: boolean) {\n if (this._label) {\n this._label.focused = isFocused;\n }\n if (!isFocused) {\n this._group.onTouched();\n }\n }\n\n get checked() { return this._checked; }\n\n get disabled() { return this._group.disabled || this._disabled; }\n\n get value() { return this._value; }\n\n get nameAttr() { return this.name || this._group.name; }\n\n constructor(\n private _group: NgbRadioGroup, private _label: NgbButtonLabel, private _renderer: Renderer2,\n private _element: ElementRef, private _cd: ChangeDetectorRef) {\n this._group.register(this);\n this.updateDisabled();\n }\n\n ngOnDestroy() { this._group.unregister(this); }\n\n onChange() { this._group.onRadioChange(this); }\n\n updateValue(value) {\n // label won't be updated, if it is inside the OnPush component when [ngModel] changes\n if (this.value !== value) {\n this._cd.markForCheck();\n }\n\n this._checked = this.value === value;\n this._label.active = this._checked;\n }\n\n updateDisabled() { this._label.disabled = this.disabled; }\n}\n","import {NgModule} from '@angular/core';\nimport {NgbButtonLabel} from './label';\nimport {NgbCheckBox} from './checkbox';\nimport {NgbRadio, NgbRadioGroup} from './radio';\n\nexport {NgbButtonLabel} from './label';\nexport {NgbCheckBox} from './checkbox';\nexport {NgbRadio, NgbRadioGroup} from './radio';\n\n\nconst NGB_BUTTON_DIRECTIVES = [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio];\n\n@NgModule({declarations: NGB_BUTTON_DIRECTIVES, exports: NGB_BUTTON_DIRECTIVES})\nexport class NgbButtonsModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all carousels used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbCarouselConfig {\n interval = 5000;\n wrap = true;\n keyboard = true;\n pauseOnHover = true;\n showNavigationArrows = true;\n showNavigationIndicators = true;\n}\n","import {\n AfterContentChecked,\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n Directive,\n EventEmitter,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n PLATFORM_ID,\n QueryList,\n TemplateRef,\n HostListener\n} from '@angular/core';\nimport {isPlatformBrowser} from '@angular/common';\n\nimport {NgbCarouselConfig} from './carousel-config';\n\nimport {Subject, timer, BehaviorSubject, combineLatest, NEVER} from 'rxjs';\nimport {startWith, map, switchMap, takeUntil, distinctUntilChanged} from 'rxjs/operators';\n\nlet nextId = 0;\n\n/**\n * A directive that wraps the individual carousel slide.\n */\n@Directive({selector: 'ng-template[ngbSlide]'})\nexport class NgbSlide {\n /**\n * Slide id that must be unique for the entire document.\n *\n * If not provided, will be generated in the `ngb-slide-xx` format.\n */\n @Input() id = `ngb-slide-${nextId++}`;\n constructor(public tplRef: TemplateRef) {}\n}\n\n/**\n * Carousel is a component to easily create and control slideshows.\n *\n * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API.\n */\n@Component({\n selector: 'ngb-carousel',\n exportAs: 'ngbCarousel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'carousel slide',\n '[style.display]': '\"block\"',\n 'tabIndex': '0',\n '(keydown.arrowLeft)': 'keyboard && prev(NgbSlideEventSource.ARROW_LEFT)',\n '(keydown.arrowRight)': 'keyboard && next(NgbSlideEventSource.ARROW_RIGHT)'\n },\n template: `\n
    \n
  1. \n
\n
\n
\n \n
\n
\n \n \n Previous\n \n \n \n Next\n \n `\n})\nexport class NgbCarousel implements AfterContentChecked,\n AfterContentInit, OnDestroy {\n @ContentChildren(NgbSlide) slides: QueryList;\n\n public NgbSlideEventSource = NgbSlideEventSource;\n\n private _destroy$ = new Subject();\n private _interval$ = new BehaviorSubject(0);\n private _mouseHover$ = new BehaviorSubject(false);\n private _pauseOnHover$ = new BehaviorSubject(false);\n private _pause$ = new BehaviorSubject(false);\n private _wrap$ = new BehaviorSubject(false);\n\n /**\n * The slide id that should be displayed **initially**.\n *\n * For subsequent interactions use methods `select()`, `next()`, etc. and the `(slide)` output.\n */\n @Input() activeId: string;\n\n /**\n * Time in milliseconds before the next slide is shown.\n */\n @Input()\n set interval(value: number) {\n this._interval$.next(value);\n }\n\n get interval() { return this._interval$.value; }\n\n /**\n * If `true`, will 'wrap' the carousel by switching from the last slide back to the first.\n */\n @Input()\n set wrap(value: boolean) {\n this._wrap$.next(value);\n }\n\n get wrap() { return this._wrap$.value; }\n\n /**\n * If `true`, allows to interact with carousel using keyboard 'arrow left' and 'arrow right'.\n */\n @Input() keyboard: boolean;\n\n /**\n * If `true`, will pause slide switching when mouse cursor hovers the slide.\n *\n * @since 2.2.0\n */\n @Input()\n set pauseOnHover(value: boolean) {\n this._pauseOnHover$.next(value);\n }\n\n get pauseOnHover() { return this._pauseOnHover$.value; }\n\n /**\n * If `true`, 'previous' and 'next' navigation arrows will be visible on the slide.\n *\n * @since 2.2.0\n */\n @Input() showNavigationArrows: boolean;\n\n /**\n * If `true`, navigation indicators at the bottom of the slide will be visible.\n *\n * @since 2.2.0\n */\n @Input() showNavigationIndicators: boolean;\n\n /**\n * An event emitted right after the slide transition is completed.\n *\n * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details.\n */\n @Output() slide = new EventEmitter();\n\n constructor(\n config: NgbCarouselConfig, @Inject(PLATFORM_ID) private _platformId, private _ngZone: NgZone,\n private _cd: ChangeDetectorRef) {\n this.interval = config.interval;\n this.wrap = config.wrap;\n this.keyboard = config.keyboard;\n this.pauseOnHover = config.pauseOnHover;\n this.showNavigationArrows = config.showNavigationArrows;\n this.showNavigationIndicators = config.showNavigationIndicators;\n }\n\n @HostListener('mouseenter')\n mouseEnter() {\n this._mouseHover$.next(true);\n }\n\n @HostListener('mouseleave')\n mouseLeave() {\n this._mouseHover$.next(false);\n }\n\n ngAfterContentInit() {\n // setInterval() doesn't play well with SSR and protractor,\n // so we should run it in the browser and outside Angular\n if (isPlatformBrowser(this._platformId)) {\n this._ngZone.runOutsideAngular(() => {\n const hasNextSlide$ = combineLatest(\n this.slide.pipe(map(slideEvent => slideEvent.current), startWith(this.activeId)),\n this._wrap$, this.slides.changes.pipe(startWith(null)))\n .pipe(\n map(([currentSlideId, wrap]) => {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n return wrap ? slideArr.length > 1 : currentSlideIdx < slideArr.length - 1;\n }),\n distinctUntilChanged());\n combineLatest(this._pause$, this._pauseOnHover$, this._mouseHover$, this._interval$, hasNextSlide$)\n .pipe(\n map(([pause, pauseOnHover, mouseHover, interval, hasNextSlide]) =>\n ((pause || (pauseOnHover && mouseHover) || !hasNextSlide) ? 0 : interval)),\n\n distinctUntilChanged(), switchMap(interval => interval > 0 ? timer(interval, interval) : NEVER),\n takeUntil(this._destroy$))\n .subscribe(() => this._ngZone.run(() => this.next(NgbSlideEventSource.TIMER)));\n });\n }\n\n this.slides.changes.pipe(takeUntil(this._destroy$)).subscribe(() => this._cd.markForCheck());\n }\n\n ngAfterContentChecked() {\n let activeSlide = this._getSlideById(this.activeId);\n this.activeId = activeSlide ? activeSlide.id : (this.slides.length ? this.slides.first.id : null);\n }\n\n ngOnDestroy() { this._destroy$.next(); }\n\n /**\n * Navigates to a slide with the specified identifier.\n */\n select(slideId: string, source?: NgbSlideEventSource) {\n this._cycleToSelected(slideId, this._getSlideEventDirection(this.activeId, slideId), source);\n }\n\n /**\n * Navigates to the previous slide.\n */\n prev(source?: NgbSlideEventSource) {\n this._cycleToSelected(this._getPrevSlide(this.activeId), NgbSlideEventDirection.RIGHT, source);\n }\n\n /**\n * Navigates to the next slide.\n */\n next(source?: NgbSlideEventSource) {\n this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source);\n }\n\n /**\n * Pauses cycling through the slides.\n */\n pause() { this._pause$.next(true); }\n\n /**\n * Restarts cycling through the slides from left to right.\n */\n cycle() { this._pause$.next(false); }\n\n private _cycleToSelected(slideIdx: string, direction: NgbSlideEventDirection, source?: NgbSlideEventSource) {\n let selectedSlide = this._getSlideById(slideIdx);\n if (selectedSlide && selectedSlide.id !== this.activeId) {\n this.slide.emit(\n {prev: this.activeId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source});\n this.activeId = selectedSlide.id;\n }\n\n // we get here after the interval fires or any external API call like next(), prev() or select()\n this._cd.markForCheck();\n }\n\n private _getSlideEventDirection(currentActiveSlideId: string, nextActiveSlideId: string): NgbSlideEventDirection {\n const currentActiveSlideIdx = this._getSlideIdxById(currentActiveSlideId);\n const nextActiveSlideIdx = this._getSlideIdxById(nextActiveSlideId);\n\n return currentActiveSlideIdx > nextActiveSlideIdx ? NgbSlideEventDirection.RIGHT : NgbSlideEventDirection.LEFT;\n }\n\n private _getSlideById(slideId: string): NgbSlide { return this.slides.find(slide => slide.id === slideId); }\n\n private _getSlideIdxById(slideId: string): number {\n return this.slides.toArray().indexOf(this._getSlideById(slideId));\n }\n\n private _getNextSlide(currentSlideId: string): string {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n const isLastSlide = currentSlideIdx === slideArr.length - 1;\n\n return isLastSlide ? (this.wrap ? slideArr[0].id : slideArr[slideArr.length - 1].id) :\n slideArr[currentSlideIdx + 1].id;\n }\n\n private _getPrevSlide(currentSlideId: string): string {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n const isFirstSlide = currentSlideIdx === 0;\n\n return isFirstSlide ? (this.wrap ? slideArr[slideArr.length - 1].id : slideArr[0].id) :\n slideArr[currentSlideIdx - 1].id;\n }\n}\n\n/**\n * A slide change event emitted right after the slide transition is completed.\n */\nexport interface NgbSlideEvent {\n /**\n * The previous slide id.\n */\n prev: string;\n\n /**\n * The current slide id.\n */\n current: string;\n\n /**\n * The slide event direction.\n *\n * Possible values are `'left' | 'right'`.\n */\n direction: NgbSlideEventDirection;\n\n /**\n * Whether the pause() method was called (and no cycle() call was done afterwards).\n *\n * @since 5.1.0\n */\n paused: boolean;\n\n /**\n * Source triggering the slide change event.\n *\n * Possible values are `'timer' | 'arrowLeft' | 'arrowRight' | 'indicator'`\n *\n * @since 5.1.0\n */\n source?: NgbSlideEventSource;\n}\n\n/**\n * Defines the carousel slide transition direction.\n */\nexport enum NgbSlideEventDirection {\n LEFT = 'left',\n RIGHT = 'right'\n}\n\nexport enum NgbSlideEventSource {\n TIMER = 'timer',\n ARROW_LEFT = 'arrowLeft',\n ARROW_RIGHT = 'arrowRight',\n INDICATOR = 'indicator'\n}\n\nexport const NGB_CAROUSEL_DIRECTIVES = [NgbCarousel, NgbSlide];\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NGB_CAROUSEL_DIRECTIVES} from './carousel';\n\nexport {NgbCarousel, NgbSlide, NgbSlideEvent, NgbSlideEventDirection, NgbSlideEventSource} from './carousel';\nexport {NgbCarouselConfig} from './carousel-config';\n\n@NgModule({declarations: NGB_CAROUSEL_DIRECTIVES, exports: NGB_CAROUSEL_DIRECTIVES, imports: [CommonModule]})\nexport class NgbCarouselModule {\n}\n","import {Directive, Input} from '@angular/core';\n\n/**\n * A directive to provide a simple way of hiding and showing elements on the page.\n */\n@Directive({\n selector: '[ngbCollapse]',\n exportAs: 'ngbCollapse',\n host: {'[class.collapse]': 'true', '[class.show]': '!collapsed'}\n})\nexport class NgbCollapse {\n /**\n * If `true`, will collapse the element or show it otherwise.\n */\n @Input('ngbCollapse') collapsed = false;\n}\n","import {NgModule} from '@angular/core';\nimport {NgbCollapse} from './collapse';\n\nexport {NgbCollapse} from './collapse';\n\n@NgModule({declarations: [NgbCollapse], exports: [NgbCollapse]})\nexport class NgbCollapseModule {\n}\n","import {NgbDateStruct} from './ngb-date-struct';\nimport {isInteger} from '../util/util';\n\n/**\n * A simple class that represents a date that datepicker also uses internally.\n *\n * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods,\n * like `.equals()`, `.before()`, etc.\n *\n * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`.\n *\n * In many cases it is simpler to manipulate these objects together with\n * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details.\n *\n * @since 3.0.0\n */\nexport class NgbDate implements NgbDateStruct {\n /**\n * The year, for example 2016\n */\n year: number;\n\n /**\n * The month, for example 1=Jan ... 12=Dec as in ISO 8601\n */\n month: number;\n\n /**\n * The day of month, starting with 1\n */\n day: number;\n\n /**\n * A **static method** that creates a new date object from the `NgbDateStruct`,\n *\n * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`.\n *\n * If the `date` is already of `NgbDate` type, the method will return the same object.\n */\n static from(date: NgbDateStruct): NgbDate {\n if (date instanceof NgbDate) {\n return date;\n }\n return date ? new NgbDate(date.year, date.month, date.day) : null;\n }\n\n constructor(year: number, month: number, day: number) {\n this.year = isInteger(year) ? year : null;\n this.month = isInteger(month) ? month : null;\n this.day = isInteger(day) ? day : null;\n }\n\n /**\n * Checks if the current date is equal to another date.\n */\n equals(other: NgbDateStruct): boolean {\n return other && this.year === other.year && this.month === other.month && this.day === other.day;\n }\n\n /**\n * Checks if the current date is before another date.\n */\n before(other: NgbDateStruct): boolean {\n if (!other) {\n return false;\n }\n\n if (this.year === other.year) {\n if (this.month === other.month) {\n return this.day === other.day ? false : this.day < other.day;\n } else {\n return this.month < other.month;\n }\n } else {\n return this.year < other.year;\n }\n }\n\n /**\n * Checks if the current date is after another date.\n */\n after(other: NgbDateStruct): boolean {\n if (!other) {\n return false;\n }\n if (this.year === other.year) {\n if (this.month === other.month) {\n return this.day === other.day ? false : this.day > other.day;\n } else {\n return this.month > other.month;\n }\n } else {\n return this.year > other.year;\n }\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {Injectable} from '@angular/core';\nimport {isInteger} from '../util/util';\n\nexport function fromJSDate(jsDate: Date) {\n return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate());\n}\nexport function toJSDate(date: NgbDate) {\n const jsDate = new Date(date.year, date.month - 1, date.day, 12);\n // this is done avoid 30 -> 1930 conversion\n if (!isNaN(jsDate.getTime())) {\n jsDate.setFullYear(date.year);\n }\n return jsDate;\n}\n\nexport type NgbPeriod = 'y' | 'm' | 'd';\n\nexport function NGB_DATEPICKER_CALENDAR_FACTORY() {\n return new NgbCalendarGregorian();\n}\n\n/**\n * A service that represents the calendar used by the datepicker.\n *\n * The default implementation uses the Gregorian calendar. You can inject it in your own\n * implementations if necessary to simplify `NgbDate` calculations.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_CALENDAR_FACTORY})\nexport abstract class NgbCalendar {\n /**\n * Returns the number of days per week.\n */\n abstract getDaysPerWeek(): number;\n\n /**\n * Returns an array of months per year.\n *\n * With default calendar we use ISO 8601 and return [1, 2, ..., 12];\n */\n abstract getMonths(year?: number): number[];\n\n /**\n * Returns the number of weeks per month.\n */\n abstract getWeeksPerMonth(): number;\n\n /**\n * Returns the weekday number for a given day.\n *\n * With the default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun\n */\n abstract getWeekday(date: NgbDate): number;\n\n /**\n * Adds a number of years, months or days to a given date.\n *\n * * `period` can be `y`, `m` or `d` and defaults to day.\n * * `number` defaults to 1.\n *\n * Always returns a new date.\n */\n abstract getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;\n\n /**\n * Subtracts a number of years, months or days from a given date.\n *\n * * `period` can be `y`, `m` or `d` and defaults to day.\n * * `number` defaults to 1.\n *\n * Always returns a new date.\n */\n abstract getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;\n\n /**\n * Returns the week number for a given week.\n */\n abstract getWeekNumber(week: NgbDate[], firstDayOfWeek: number): number;\n\n /**\n * Returns the today's date.\n */\n abstract getToday(): NgbDate;\n\n /**\n * Checks if a date is valid in the current calendar.\n */\n abstract isValid(date: NgbDate): boolean;\n}\n\n@Injectable()\nexport class NgbCalendarGregorian extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n let jsDate = toJSDate(date);\n\n switch (period) {\n case 'y':\n return new NgbDate(date.year + number, 1, 1);\n case 'm':\n jsDate = new Date(date.year, date.month + number - 1, 1, 12);\n break;\n case 'd':\n jsDate.setDate(jsDate.getDate() + number);\n break;\n default:\n return date;\n }\n\n return fromJSDate(jsDate);\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n let jsDate = toJSDate(date);\n let day = jsDate.getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n let date = week[thursdayIndex];\n\n const jsDate = toJSDate(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n jsDate.setMonth(0); // Compare with Jan 1\n jsDate.setDate(1);\n return Math.floor(Math.round((time - jsDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return fromJSDate(new Date()); }\n\n isValid(date: NgbDate): boolean {\n if (!date || !isInteger(date.year) || !isInteger(date.month) || !isInteger(date.day)) {\n return false;\n }\n\n // year 0 doesn't exist in Gregorian calendar\n if (date.year === 0) {\n return false;\n }\n\n const jsDate = toJSDate(date);\n\n return !isNaN(jsDate.getTime()) && jsDate.getFullYear() === date.year && jsDate.getMonth() + 1 === date.month &&\n jsDate.getDate() === date.day;\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {DatepickerViewModel, DayViewModel, MonthViewModel} from './datepicker-view-model';\nimport {NgbCalendar} from './ngb-calendar';\nimport {isDefined} from '../util/util';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\nexport function isChangedDate(prev: NgbDate, next: NgbDate) {\n return !dateComparator(prev, next);\n}\n\nexport function isChangedMonth(prev: NgbDate, next: NgbDate) {\n return !prev && !next ? false : !prev || !next ? true : prev.year !== next.year || prev.month !== next.month;\n}\n\nexport function dateComparator(prev: NgbDate, next: NgbDate) {\n return (!prev && !next) || (!!prev && !!next && prev.equals(next));\n}\n\nexport function checkMinBeforeMax(minDate: NgbDate, maxDate: NgbDate) {\n if (maxDate && minDate && maxDate.before(minDate)) {\n throw new Error(`'maxDate' ${maxDate} should be greater than 'minDate' ${minDate}`);\n }\n}\n\nexport function checkDateInRange(date: NgbDate, minDate: NgbDate, maxDate: NgbDate): NgbDate {\n if (date && minDate && date.before(minDate)) {\n return minDate;\n }\n if (date && maxDate && date.after(maxDate)) {\n return maxDate;\n }\n\n return date;\n}\n\nexport function isDateSelectable(date: NgbDate, state: DatepickerViewModel) {\n const {minDate, maxDate, disabled, markDisabled} = state;\n // clang-format off\n return !(\n !isDefined(date) ||\n disabled ||\n (markDisabled && markDisabled(date, {year: date.year, month: date.month})) ||\n (minDate && date.before(minDate)) ||\n (maxDate && date.after(maxDate))\n );\n // clang-format on\n}\n\nexport function generateSelectBoxMonths(calendar: NgbCalendar, date: NgbDate, minDate: NgbDate, maxDate: NgbDate) {\n if (!date) {\n return [];\n }\n\n let months = calendar.getMonths(date.year);\n\n if (minDate && date.year === minDate.year) {\n const index = months.findIndex(month => month === minDate.month);\n months = months.slice(index);\n }\n\n if (maxDate && date.year === maxDate.year) {\n const index = months.findIndex(month => month === maxDate.month);\n months = months.slice(0, index + 1);\n }\n\n return months;\n}\n\nexport function generateSelectBoxYears(date: NgbDate, minDate: NgbDate, maxDate: NgbDate) {\n if (!date) {\n return [];\n }\n\n const start = minDate && minDate.year || date.year - 10;\n const end = maxDate && maxDate.year || date.year + 10;\n\n return Array.from({length: end - start + 1}, (e, i) => start + i);\n}\n\nexport function nextMonthDisabled(calendar: NgbCalendar, date: NgbDate, maxDate: NgbDate) {\n return maxDate && calendar.getNext(date, 'm').after(maxDate);\n}\n\nexport function prevMonthDisabled(calendar: NgbCalendar, date: NgbDate, minDate: NgbDate) {\n const prevDate = calendar.getPrev(date, 'm');\n return minDate && (prevDate.year === minDate.year && prevDate.month < minDate.month ||\n prevDate.year < minDate.year && minDate.month === 1);\n}\n\nexport function buildMonths(\n calendar: NgbCalendar, date: NgbDate, state: DatepickerViewModel, i18n: NgbDatepickerI18n,\n force: boolean): MonthViewModel[] {\n const {displayMonths, months} = state;\n // move old months to a temporary array\n const monthsToReuse = months.splice(0, months.length);\n\n // generate new first dates, nullify or reuse months\n const firstDates = Array.from({length: displayMonths}, (_, i) => {\n const firstDate = calendar.getNext(date, 'm', i);\n months[i] = null;\n\n if (!force) {\n const reusedIndex = monthsToReuse.findIndex(month => month.firstDate.equals(firstDate));\n // move reused month back to months\n if (reusedIndex !== -1) {\n months[i] = monthsToReuse.splice(reusedIndex, 1)[0];\n }\n }\n\n return firstDate;\n });\n\n // rebuild nullified months\n firstDates.forEach((firstDate, i) => {\n if (months[i] === null) {\n months[i] = buildMonth(calendar, firstDate, state, i18n, monthsToReuse.shift() || {} as MonthViewModel);\n }\n });\n\n return months;\n}\n\nexport function buildMonth(\n calendar: NgbCalendar, date: NgbDate, state: DatepickerViewModel, i18n: NgbDatepickerI18n,\n month: MonthViewModel = {} as MonthViewModel): MonthViewModel {\n const {dayTemplateData, minDate, maxDate, firstDayOfWeek, markDisabled, outsideDays} = state;\n const calendarToday = calendar.getToday();\n\n month.firstDate = null;\n month.lastDate = null;\n month.number = date.month;\n month.year = date.year;\n month.weeks = month.weeks || [];\n month.weekdays = month.weekdays || [];\n\n date = getFirstViewDate(calendar, date, firstDayOfWeek);\n\n // month has weeks\n for (let week = 0; week < calendar.getWeeksPerMonth(); week++) {\n let weekObject = month.weeks[week];\n if (!weekObject) {\n weekObject = month.weeks[week] = {number: 0, days: [], collapsed: true};\n }\n const days = weekObject.days;\n\n // week has days\n for (let day = 0; day < calendar.getDaysPerWeek(); day++) {\n if (week === 0) {\n month.weekdays[day] = calendar.getWeekday(date);\n }\n\n const newDate = new NgbDate(date.year, date.month, date.day);\n const nextDate = calendar.getNext(newDate);\n\n const ariaLabel = i18n.getDayAriaLabel(newDate);\n\n // marking date as disabled\n let disabled = !!((minDate && newDate.before(minDate)) || (maxDate && newDate.after(maxDate)));\n if (!disabled && markDisabled) {\n disabled = markDisabled(newDate, {month: month.number, year: month.year});\n }\n\n // today\n let today = newDate.equals(calendarToday);\n\n // adding user-provided data to the context\n let contextUserData =\n dayTemplateData ? dayTemplateData(newDate, {month: month.number, year: month.year}) : undefined;\n\n // saving first date of the month\n if (month.firstDate === null && newDate.month === month.number) {\n month.firstDate = newDate;\n }\n\n // saving last date of the month\n if (newDate.month === month.number && nextDate.month !== month.number) {\n month.lastDate = newDate;\n }\n\n let dayObject = days[day];\n if (!dayObject) {\n dayObject = days[day] = {} as DayViewModel;\n }\n dayObject.date = newDate;\n dayObject.context = Object.assign(dayObject.context || {}, {\n $implicit: newDate,\n date: newDate,\n data: contextUserData,\n currentMonth: month.number, disabled,\n focused: false,\n selected: false, today\n });\n dayObject.tabindex = -1;\n dayObject.ariaLabel = ariaLabel;\n dayObject.hidden = false;\n\n date = nextDate;\n }\n\n weekObject.number = calendar.getWeekNumber(days.map(day => day.date), firstDayOfWeek);\n\n // marking week as collapsed\n weekObject.collapsed = outsideDays === 'collapsed' && days[0].date.month !== month.number &&\n days[days.length - 1].date.month !== month.number;\n }\n\n return month;\n}\n\nexport function getFirstViewDate(calendar: NgbCalendar, date: NgbDate, firstDayOfWeek: number): NgbDate {\n const daysPerWeek = calendar.getDaysPerWeek();\n const firstMonthDate = new NgbDate(date.year, date.month, 1);\n const dayOfWeek = calendar.getWeekday(firstMonthDate) % daysPerWeek;\n return calendar.getPrev(firstMonthDate, 'd', (daysPerWeek + dayOfWeek - firstDayOfWeek) % daysPerWeek);\n}\n","import {Inject, Injectable, LOCALE_ID} from '@angular/core';\nimport {FormStyle, getLocaleDayNames, getLocaleMonthNames, TranslationWidth, formatDate} from '@angular/common';\nimport {NgbDateStruct} from './ngb-date-struct';\n\nexport function NGB_DATEPICKER_18N_FACTORY(locale) {\n return new NgbDatepickerI18nDefault(locale);\n}\n\n/**\n * A service supplying i18n data to the datepicker component.\n *\n * The default implementation of this service uses the Angular locale and registered locale data for\n * weekdays and month names (as explained in the Angular i18n guide).\n *\n * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year\n * numerals. For other static labels the datepicker uses the default Angular i18n.\n *\n * See the [i18n demo](#/components/datepicker/examples#i18n) and\n * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define\n * a custom provider for i18n.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_18N_FACTORY, deps: [LOCALE_ID]})\nexport abstract class NgbDatepickerI18n {\n /**\n * Returns the short weekday name to display in the heading of the month view.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n abstract getWeekdayShortName(weekday: number): string;\n\n /**\n * Returns the short month name to display in the date picker navigation.\n *\n * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n */\n abstract getMonthShortName(month: number, year?: number): string;\n\n /**\n * Returns the full month name to display in the date picker navigation.\n *\n * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n */\n abstract getMonthFullName(month: number, year?: number): string;\n\n /**\n * Returns the value of the `aria-label` attribute for a specific date.\n *\n * @since 2.0.0\n */\n abstract getDayAriaLabel(date: NgbDateStruct): string;\n\n /**\n * Returns the textual representation of a day that is rendered in a day cell.\n *\n * @since 3.0.0\n */\n getDayNumerals(date: NgbDateStruct): string { return `${date.day}`; }\n\n /**\n * Returns the textual representation of a week number rendered by datepicker.\n *\n * @since 3.0.0\n */\n getWeekNumerals(weekNumber: number): string { return `${weekNumber}`; }\n\n /**\n * Returns the textual representation of a year that is rendered in the datepicker year select box.\n *\n * @since 3.0.0\n */\n getYearNumerals(year: number): string { return `${year}`; }\n}\n\n@Injectable()\nexport class NgbDatepickerI18nDefault extends NgbDatepickerI18n {\n private _weekdaysShort: Array;\n private _monthsShort: Array;\n private _monthsFull: Array;\n\n constructor(@Inject(LOCALE_ID) private _locale: string) {\n super();\n\n const weekdaysStartingOnSunday = getLocaleDayNames(_locale, FormStyle.Standalone, TranslationWidth.Short);\n this._weekdaysShort = weekdaysStartingOnSunday.map((day, index) => weekdaysStartingOnSunday[(index + 1) % 7]);\n\n this._monthsShort = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Abbreviated);\n this._monthsFull = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Wide);\n }\n\n getWeekdayShortName(weekday: number): string { return this._weekdaysShort[weekday - 1]; }\n\n getMonthShortName(month: number): string { return this._monthsShort[month - 1]; }\n\n getMonthFullName(month: number): string { return this._monthsFull[month - 1]; }\n\n getDayAriaLabel(date: NgbDateStruct): string {\n const jsDate = new Date(date.year, date.month - 1, date.day);\n return formatDate(jsDate, 'fullDate', this._locale);\n }\n}\n","import {NgbCalendar, NgbPeriod} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {DatepickerViewModel, NgbDayTemplateData, NgbMarkDisabled} from './datepicker-view-model';\nimport {Injectable} from '@angular/core';\nimport {isInteger, toInteger} from '../util/util';\nimport {Observable, Subject} from 'rxjs';\nimport {\n buildMonths,\n checkDateInRange,\n checkMinBeforeMax,\n isChangedDate,\n isChangedMonth,\n isDateSelectable,\n generateSelectBoxYears,\n generateSelectBoxMonths,\n prevMonthDisabled,\n nextMonthDisabled\n} from './datepicker-tools';\n\nimport {filter} from 'rxjs/operators';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Injectable()\nexport class NgbDatepickerService {\n private _model$ = new Subject();\n\n private _select$ = new Subject();\n\n private _state: DatepickerViewModel = {\n disabled: false,\n displayMonths: 1,\n firstDayOfWeek: 1,\n focusVisible: false,\n months: [],\n navigation: 'select',\n outsideDays: 'visible',\n prevDisabled: false,\n nextDisabled: false,\n selectBoxes: {years: [], months: []},\n selectedDate: null\n };\n\n get model$(): Observable { return this._model$.pipe(filter(model => model.months.length > 0)); }\n\n get select$(): Observable { return this._select$.pipe(filter(date => date !== null)); }\n\n set dayTemplateData(dayTemplateData: NgbDayTemplateData) {\n if (this._state.dayTemplateData !== dayTemplateData) {\n this._nextState({dayTemplateData});\n }\n }\n\n set disabled(disabled: boolean) {\n if (this._state.disabled !== disabled) {\n this._nextState({disabled});\n }\n }\n\n set displayMonths(displayMonths: number) {\n displayMonths = toInteger(displayMonths);\n if (isInteger(displayMonths) && displayMonths > 0 && this._state.displayMonths !== displayMonths) {\n this._nextState({displayMonths});\n }\n }\n\n set firstDayOfWeek(firstDayOfWeek: number) {\n firstDayOfWeek = toInteger(firstDayOfWeek);\n if (isInteger(firstDayOfWeek) && firstDayOfWeek >= 0 && this._state.firstDayOfWeek !== firstDayOfWeek) {\n this._nextState({firstDayOfWeek});\n }\n }\n\n set focusVisible(focusVisible: boolean) {\n if (this._state.focusVisible !== focusVisible && !this._state.disabled) {\n this._nextState({focusVisible});\n }\n }\n\n set maxDate(date: NgbDate) {\n const maxDate = this.toValidDate(date, null);\n if (isChangedDate(this._state.maxDate, maxDate)) {\n this._nextState({maxDate});\n }\n }\n\n set markDisabled(markDisabled: NgbMarkDisabled) {\n if (this._state.markDisabled !== markDisabled) {\n this._nextState({markDisabled});\n }\n }\n\n set minDate(date: NgbDate) {\n const minDate = this.toValidDate(date, null);\n if (isChangedDate(this._state.minDate, minDate)) {\n this._nextState({minDate});\n }\n }\n\n set navigation(navigation: 'select' | 'arrows' | 'none') {\n if (this._state.navigation !== navigation) {\n this._nextState({navigation});\n }\n }\n\n set outsideDays(outsideDays: 'visible' | 'collapsed' | 'hidden') {\n if (this._state.outsideDays !== outsideDays) {\n this._nextState({outsideDays});\n }\n }\n\n constructor(private _calendar: NgbCalendar, private _i18n: NgbDatepickerI18n) {}\n\n focus(date: NgbDate) {\n if (!this._state.disabled && this._calendar.isValid(date) && isChangedDate(this._state.focusDate, date)) {\n this._nextState({focusDate: date});\n }\n }\n\n focusMove(period?: NgbPeriod, number?: number) {\n this.focus(this._calendar.getNext(this._state.focusDate, period, number));\n }\n\n focusSelect() {\n if (isDateSelectable(this._state.focusDate, this._state)) {\n this.select(this._state.focusDate, {emitEvent: true});\n }\n }\n\n open(date: NgbDate) {\n const firstDate = this.toValidDate(date, this._calendar.getToday());\n if (!this._state.disabled && (!this._state.firstDate || isChangedMonth(this._state.firstDate, date))) {\n this._nextState({firstDate});\n }\n }\n\n select(date: NgbDate, options: {emitEvent?: boolean} = {}) {\n const selectedDate = this.toValidDate(date, null);\n if (!this._state.disabled) {\n if (isChangedDate(this._state.selectedDate, selectedDate)) {\n this._nextState({selectedDate});\n }\n\n if (options.emitEvent && isDateSelectable(selectedDate, this._state)) {\n this._select$.next(selectedDate);\n }\n }\n }\n\n toValidDate(date: NgbDateStruct, defaultValue?: NgbDate): NgbDate {\n const ngbDate = NgbDate.from(date);\n if (defaultValue === undefined) {\n defaultValue = this._calendar.getToday();\n }\n return this._calendar.isValid(ngbDate) ? ngbDate : defaultValue;\n }\n\n private _nextState(patch: Partial) {\n const newState = this._updateState(patch);\n this._patchContexts(newState);\n this._state = newState;\n this._model$.next(this._state);\n }\n\n private _patchContexts(state: DatepickerViewModel) {\n const {months, displayMonths, selectedDate, focusDate, focusVisible, disabled, outsideDays} = state;\n state.months.forEach(month => {\n month.weeks.forEach(week => {\n week.days.forEach(day => {\n\n // patch focus flag\n if (focusDate) {\n day.context.focused = focusDate.equals(day.date) && focusVisible;\n }\n\n // calculating tabindex\n day.tabindex = !disabled && day.date.equals(focusDate) && focusDate.month === month.number ? 0 : -1;\n\n // override context disabled\n if (disabled === true) {\n day.context.disabled = true;\n }\n\n // patch selection flag\n if (selectedDate !== undefined) {\n day.context.selected = selectedDate !== null && selectedDate.equals(day.date);\n }\n\n // visibility\n if (month.number !== day.date.month) {\n day.hidden = outsideDays === 'hidden' || outsideDays === 'collapsed' ||\n (displayMonths > 1 && day.date.after(months[0].firstDate) &&\n day.date.before(months[displayMonths - 1].lastDate));\n }\n });\n });\n });\n }\n\n private _updateState(patch: Partial): DatepickerViewModel {\n // patching fields\n const state = Object.assign({}, this._state, patch);\n\n let startDate = state.firstDate;\n\n // min/max dates changed\n if ('minDate' in patch || 'maxDate' in patch) {\n checkMinBeforeMax(state.minDate, state.maxDate);\n state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate);\n state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate);\n startDate = state.focusDate;\n }\n\n // disabled\n if ('disabled' in patch) {\n state.focusVisible = false;\n }\n\n // initial rebuild via 'select()'\n if ('selectedDate' in patch && this._state.months.length === 0) {\n startDate = state.selectedDate;\n }\n\n // terminate early if only focus visibility was changed\n if ('focusVisible' in patch) {\n return state;\n }\n\n // focus date changed\n if ('focusDate' in patch) {\n state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate);\n startDate = state.focusDate;\n\n // nothing to rebuild if only focus changed and it is still visible\n if (state.months.length !== 0 && !state.focusDate.before(state.firstDate) &&\n !state.focusDate.after(state.lastDate)) {\n return state;\n }\n }\n\n // first date changed\n if ('firstDate' in patch) {\n state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate);\n startDate = state.firstDate;\n }\n\n // rebuilding months\n if (startDate) {\n const forceRebuild = 'dayTemplateData' in patch || 'firstDayOfWeek' in patch || 'markDisabled' in patch ||\n 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch || 'outsideDays' in patch;\n\n const months = buildMonths(this._calendar, startDate, state, this._i18n, forceRebuild);\n\n // updating months and boundary dates\n state.months = months;\n state.firstDate = months.length > 0 ? months[0].firstDate : undefined;\n state.lastDate = months.length > 0 ? months[months.length - 1].lastDate : undefined;\n\n // reset selected date if 'markDisabled' returns true\n if ('selectedDate' in patch && !isDateSelectable(state.selectedDate, state)) {\n state.selectedDate = null;\n }\n\n // adjusting focus after months were built\n if ('firstDate' in patch) {\n if (state.focusDate === undefined || state.focusDate.before(state.firstDate) ||\n state.focusDate.after(state.lastDate)) {\n state.focusDate = startDate;\n }\n }\n\n // adjusting months/years for the select box navigation\n const yearChanged = !this._state.firstDate || this._state.firstDate.year !== state.firstDate.year;\n const monthChanged = !this._state.firstDate || this._state.firstDate.month !== state.firstDate.month;\n if (state.navigation === 'select') {\n // years -> boundaries (min/max were changed)\n if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.years.length === 0 || yearChanged) {\n state.selectBoxes.years = generateSelectBoxYears(state.firstDate, state.minDate, state.maxDate);\n }\n\n // months -> when current year or boundaries change\n if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.months.length === 0 || yearChanged) {\n state.selectBoxes.months =\n generateSelectBoxMonths(this._calendar, state.firstDate, state.minDate, state.maxDate);\n }\n } else {\n state.selectBoxes = {years: [], months: []};\n }\n\n // updating navigation arrows -> boundaries change (min/max) or month/year changes\n if ((state.navigation === 'arrows' || state.navigation === 'select') &&\n (monthChanged || yearChanged || 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch)) {\n state.prevDisabled = state.disabled || prevMonthDisabled(this._calendar, state.firstDate, state.minDate);\n state.nextDisabled = state.disabled || nextMonthDisabled(this._calendar, state.lastDate, state.maxDate);\n }\n }\n\n return state;\n }\n}\n","export enum Key {\n Tab = 9,\n Enter = 13,\n Escape = 27,\n Space = 32,\n PageUp = 33,\n PageDown = 34,\n End = 35,\n Home = 36,\n ArrowLeft = 37,\n ArrowUp = 38,\n ArrowRight = 39,\n ArrowDown = 40\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbCalendar} from './ngb-calendar';\nimport {Key} from '../util/key';\nimport {NgbDate} from './ngb-date';\n\n@Injectable()\nexport class NgbDatepickerKeyMapService {\n private _minDate: NgbDate;\n private _maxDate: NgbDate;\n private _firstViewDate: NgbDate;\n private _lastViewDate: NgbDate;\n\n constructor(private _service: NgbDatepickerService, private _calendar: NgbCalendar) {\n _service.model$.subscribe(model => {\n this._minDate = model.minDate;\n this._maxDate = model.maxDate;\n this._firstViewDate = model.firstDate;\n this._lastViewDate = model.lastDate;\n });\n }\n\n processKey(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.PageUp:\n this._service.focusMove(event.shiftKey ? 'y' : 'm', -1);\n break;\n case Key.PageDown:\n this._service.focusMove(event.shiftKey ? 'y' : 'm', 1);\n break;\n case Key.End:\n this._service.focus(event.shiftKey ? this._maxDate : this._lastViewDate);\n break;\n case Key.Home:\n this._service.focus(event.shiftKey ? this._minDate : this._firstViewDate);\n break;\n case Key.ArrowLeft:\n this._service.focusMove('d', -1);\n break;\n case Key.ArrowUp:\n this._service.focusMove('d', -this._calendar.getDaysPerWeek());\n break;\n case Key.ArrowRight:\n this._service.focusMove('d', 1);\n break;\n case Key.ArrowDown:\n this._service.focusMove('d', this._calendar.getDaysPerWeek());\n break;\n case Key.Enter:\n case Key.Space:\n this._service.focusSelect();\n break;\n default:\n return;\n }\n\n // note 'return' in default case\n event.preventDefault();\n event.stopPropagation();\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {DayTemplateContext} from './datepicker-day-template-context';\n\nexport type NgbMarkDisabled = (date: NgbDateStruct, current: {year: number, month: number}) => boolean;\nexport type NgbDayTemplateData = (date: NgbDateStruct, current: {year: number, month: number}) => any;\n\nexport type DayViewModel = {\n date: NgbDate,\n context: DayTemplateContext,\n tabindex: number,\n ariaLabel: string,\n hidden: boolean\n};\n\nexport type WeekViewModel = {\n number: number,\n days: DayViewModel[],\n collapsed: boolean\n};\n\nexport type MonthViewModel = {\n firstDate: NgbDate,\n lastDate: NgbDate,\n number: number,\n year: number,\n weeks: WeekViewModel[],\n weekdays: number[]\n};\n\n// clang-format off\nexport type DatepickerViewModel = {\n dayTemplateData?: NgbDayTemplateData,\n disabled: boolean,\n displayMonths: number,\n firstDate?: NgbDate,\n firstDayOfWeek: number,\n focusDate?: NgbDate,\n focusVisible: boolean,\n lastDate?: NgbDate,\n markDisabled?: NgbMarkDisabled,\n maxDate?: NgbDate,\n minDate?: NgbDate,\n months: MonthViewModel[],\n navigation: 'select' | 'arrows' | 'none',\n outsideDays: 'visible' | 'collapsed' | 'hidden',\n prevDisabled: boolean,\n nextDisabled: boolean,\n selectBoxes: {\n years: number[],\n months: number[]\n },\n selectedDate: NgbDate\n};\n// clang-format on\n\nexport enum NavigationEvent {\n PREV,\n NEXT\n}\n","import {Injectable, TemplateRef} from '@angular/core';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDateStruct} from './ngb-date-struct';\n\n/**\n * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the datepickers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbDatepickerConfig {\n dayTemplate: TemplateRef;\n dayTemplateData: (date: NgbDateStruct, current: {year: number, month: number}) => any;\n footerTemplate: TemplateRef;\n displayMonths = 1;\n firstDayOfWeek = 1;\n markDisabled: (date: NgbDateStruct, current: {year: number, month: number}) => boolean;\n minDate: NgbDateStruct;\n maxDate: NgbDateStruct;\n navigation: 'select' | 'arrows' | 'none' = 'select';\n outsideDays: 'visible' | 'collapsed' | 'hidden' = 'visible';\n showWeekdays = true;\n showWeekNumbers = false;\n startDate: {year: number, month: number};\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {isInteger} from '../../util/util';\n\nexport function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() {\n return new NgbDateStructAdapter();\n}\n\n/**\n * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and\n * any provided user date model `D`, ex. a string, a native date, etc.\n *\n * The adapter is used **only** for conversion when binding datepicker to a form control,\n * ex. `[(ngModel)]=\"userDateModel\"`. Here `userDateModel` can be of any type.\n *\n * The default datepicker implementation assumes we use `NgbDateStruct` as a user model.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details\n * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY})\nexport abstract class NgbDateAdapter {\n /**\n * Converts a user-model date of type `D` to an `NgbDateStruct` for internal use.\n */\n abstract fromModel(value: D): NgbDateStruct;\n\n /**\n * Converts an internal `NgbDateStruct` date to a user-model date of type `D`.\n */\n abstract toModel(date: NgbDateStruct): D;\n}\n\n@Injectable()\nexport class NgbDateStructAdapter extends NgbDateAdapter {\n /**\n * Converts a NgbDateStruct value into NgbDateStruct value\n */\n fromModel(date: NgbDateStruct): NgbDateStruct {\n return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ?\n {year: date.year, month: date.month, day: date.day} :\n null;\n }\n\n /**\n * Converts a NgbDateStruct value into NgbDateStruct value\n */\n toModel(date: NgbDateStruct): NgbDateStruct {\n return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ?\n {year: date.year, month: date.month, day: date.day} :\n null;\n }\n}\n","import {fromEvent, merge, Subject} from 'rxjs';\nimport {filter, take, takeUntil} from 'rxjs/operators';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {NgbCalendar} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbDatepickerKeyMapService} from './datepicker-keymap-service';\nimport {DatepickerViewModel, NavigationEvent} from './datepicker-view-model';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDatepickerConfig} from './datepicker-config';\nimport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\nimport {isChangedDate, isChangedMonth} from './datepicker-tools';\nimport {hasClassName} from '../util/util';\n\nconst NGB_DATEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbDatepicker),\n multi: true\n};\n\n/**\n * An event emitted right before the navigation happens and the month displayed by the datepicker changes.\n */\nexport interface NgbDatepickerNavigateEvent {\n /**\n * The currently displayed month.\n */\n current: {year: number, month: number};\n\n /**\n * The month we're navigating to.\n */\n next: {year: number, month: number};\n\n /**\n * Calling this function will prevent navigation from happening.\n *\n * @since 4.1.0\n */\n preventDefault: () => void;\n}\n\n/**\n * A highly configurable component that helps you with selecting calendar dates.\n *\n * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup.\n */\n@Component({\n exportAs: 'ngbDatepicker',\n selector: 'ngb-datepicker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker.scss'],\n template: `\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n \n
\n
1 && navigation === 'select')\"\n class=\"ngb-dp-month-name\">\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n \n \n
\n
\n
\n\n \n `,\n providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService, NgbDatepickerKeyMapService]\n})\nexport class NgbDatepicker implements OnDestroy,\n OnChanges, OnInit, AfterViewInit, ControlValueAccessor {\n model: DatepickerViewModel;\n\n @ViewChild('months', {static: true}) private _monthsEl: ElementRef;\n private _controlValue: NgbDate;\n private _destroyed$ = new Subject();\n\n /**\n * The reference to a custom template for the day.\n *\n * Allows to completely override the way a day 'cell' in the calendar is displayed.\n *\n * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside.\n */\n @Input() dayTemplate: TemplateRef;\n\n /**\n * The callback to pass any arbitrary data to the template cell via the\n * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter.\n *\n * `current` is the month that is currently displayed by the datepicker.\n *\n * @since 3.3.0\n */\n @Input() dayTemplateData: (date: NgbDate, current: {year: number, month: number}) => any;\n\n /**\n * The number of months to display.\n */\n @Input() displayMonths: number;\n\n /**\n * The first day of the week.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n @Input() firstDayOfWeek: number;\n\n /**\n * The reference to the custom template for the datepicker footer.\n *\n * @since 3.3.0\n */\n @Input() footerTemplate: TemplateRef;\n\n /**\n * The callback to mark some dates as disabled.\n *\n * It is called for each new date when navigating to a different month.\n *\n * `current` is the month that is currently displayed by the datepicker.\n */\n @Input() markDisabled: (date: NgbDate, current: {year: number, month: number}) => boolean;\n\n /**\n * The latest date that can be displayed or selected.\n *\n * If not provided, 'year' select box will display 10 years after the current month.\n */\n @Input() maxDate: NgbDateStruct;\n\n /**\n * The earliest date that can be displayed or selected.\n *\n * If not provided, 'year' select box will display 10 years before the current month.\n */\n @Input() minDate: NgbDateStruct;\n\n /**\n * Navigation type.\n *\n * * `\"select\"` - select boxes for month and navigation arrows\n * * `\"arrows\"` - only navigation arrows\n * * `\"none\"` - no navigation visible at all\n */\n @Input() navigation: 'select' | 'arrows' | 'none';\n\n /**\n * The way of displaying days that don't belong to the current month.\n *\n * * `\"visible\"` - days are visible\n * * `\"hidden\"` - days are hidden, white space preserved\n * * `\"collapsed\"` - days are collapsed, so the datepicker height might change between months\n *\n * For the 2+ months view, days in between months are never shown.\n */\n @Input() outsideDays: 'visible' | 'collapsed' | 'hidden';\n\n /**\n * If `true`, weekdays will be displayed.\n */\n @Input() showWeekdays: boolean;\n\n /**\n * If `true`, week numbers will be displayed.\n */\n @Input() showWeekNumbers: boolean;\n\n /**\n * The date to open calendar with.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date is provided, calendar will open with current month.\n *\n * You could use `navigateTo(date)` method as an alternative.\n */\n @Input() startDate: {year: number, month: number, day?: number};\n\n /**\n * An event emitted right before the navigation happens and displayed month changes.\n *\n * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info.\n */\n @Output() navigate = new EventEmitter();\n\n /**\n * An event emitted when user selects a date using keyboard or mouse.\n *\n * The payload of the event is currently selected `NgbDate`.\n */\n @Output() select = new EventEmitter();\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n constructor(\n private _keyMapService: NgbDatepickerKeyMapService, public _service: NgbDatepickerService,\n private _calendar: NgbCalendar, public i18n: NgbDatepickerI18n, config: NgbDatepickerConfig,\n private _cd: ChangeDetectorRef, private _elementRef: ElementRef,\n private _ngbDateAdapter: NgbDateAdapter, private _ngZone: NgZone) {\n ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate',\n 'maxDate', 'navigation', 'outsideDays', 'showWeekdays', 'showWeekNumbers', 'startDate']\n .forEach(input => this[input] = config[input]);\n\n _service.select$.pipe(takeUntil(this._destroyed$)).subscribe(date => { this.select.emit(date); });\n\n _service.model$.pipe(takeUntil(this._destroyed$)).subscribe(model => {\n const newDate = model.firstDate;\n const oldDate = this.model ? this.model.firstDate : null;\n\n let navigationPrevented = false;\n // emitting navigation event if the first month changes\n if (!newDate.equals(oldDate)) {\n this.navigate.emit({\n current: oldDate ? {year: oldDate.year, month: oldDate.month} : null,\n next: {year: newDate.year, month: newDate.month},\n preventDefault: () => navigationPrevented = true\n });\n\n // can't prevent the very first navigation\n if (navigationPrevented && oldDate !== null) {\n this._service.open(oldDate);\n return;\n }\n }\n\n const newSelectedDate = model.selectedDate;\n const newFocusedDate = model.focusDate;\n const oldFocusedDate = this.model ? this.model.focusDate : null;\n\n this.model = model;\n\n // handling selection change\n if (isChangedDate(newSelectedDate, this._controlValue)) {\n this._controlValue = newSelectedDate;\n this.onTouched();\n this.onChange(this._ngbDateAdapter.toModel(newSelectedDate));\n }\n\n // handling focus change\n if (isChangedDate(newFocusedDate, oldFocusedDate) && oldFocusedDate && model.focusVisible) {\n this.focus();\n }\n\n _cd.markForCheck();\n });\n }\n\n focus() {\n this._ngZone.onStable.asObservable().pipe(take(1)).subscribe(() => {\n const elementToFocus =\n this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex=\"0\"]');\n if (elementToFocus) {\n elementToFocus.focus();\n }\n });\n }\n\n /**\n * Navigates to the provided date.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date provided calendar will open current month.\n *\n * Use the `[startDate]` input as an alternative.\n */\n navigateTo(date?: {year: number, month: number, day?: number}) {\n this._service.open(NgbDate.from(date ? date.day ? date as NgbDateStruct : {...date, day: 1} : null));\n }\n\n ngAfterViewInit() {\n this._ngZone.runOutsideAngular(() => {\n const focusIns$ = fromEvent(this._monthsEl.nativeElement, 'focusin');\n const focusOuts$ = fromEvent(this._monthsEl.nativeElement, 'focusout');\n\n // we're changing 'focusVisible' only when entering or leaving months view\n // and ignoring all focus events where both 'target' and 'related' target are day cells\n merge(focusIns$, focusOuts$)\n .pipe(\n filter(\n ({target, relatedTarget}) =>\n !(hasClassName(target, 'ngb-dp-day') && hasClassName(relatedTarget, 'ngb-dp-day'))),\n takeUntil(this._destroyed$))\n .subscribe(({type}) => this._ngZone.run(() => this._service.focusVisible = type === 'focusin'));\n });\n }\n\n ngOnDestroy() { this._destroyed$.next(); }\n\n ngOnInit() {\n if (this.model === undefined) {\n ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate',\n 'outsideDays']\n .forEach(input => this._service[input] = this[input]);\n this.navigateTo(this.startDate);\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate',\n 'outsideDays']\n .filter(input => input in changes)\n .forEach(input => this._service[input] = this[input]);\n\n if ('startDate' in changes) {\n const {currentValue, previousValue} = changes.startDate;\n if (isChangedMonth(previousValue, currentValue)) {\n this.navigateTo(this.startDate);\n }\n }\n }\n\n onDateSelect(date: NgbDate) {\n this._service.focus(date);\n this._service.select(date, {emitEvent: true});\n }\n\n onKeyDown(event: KeyboardEvent) { this._keyMapService.processKey(event); }\n\n onNavigateDateSelect(date: NgbDate) { this._service.open(date); }\n\n onNavigateEvent(event: NavigationEvent) {\n switch (event) {\n case NavigationEvent.PREV:\n this._service.open(this._calendar.getPrev(this.model.firstDate, 'm', 1));\n break;\n case NavigationEvent.NEXT:\n this._service.open(this._calendar.getNext(this.model.firstDate, 'm', 1));\n break;\n }\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean) { this._service.disabled = isDisabled; }\n\n writeValue(value) {\n this._controlValue = NgbDate.from(this._ngbDateAdapter.fromModel(value));\n this._service.select(this._controlValue);\n }\n}\n","import {Component, Input, TemplateRef, Output, EventEmitter, ViewEncapsulation} from '@angular/core';\nimport {MonthViewModel, DayViewModel} from './datepicker-view-model';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\nimport {DayTemplateContext} from './datepicker-day-template-context';\n\n@Component({\n selector: 'ngb-datepicker-month-view',\n host: {'role': 'grid'},\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-month-view.scss'],\n template: `\n
\n
\n
\n {{ i18n.getWeekdayShortName(w) }}\n
\n
\n \n
\n
{{ i18n.getWeekNumerals(week.number) }}
\n
\n \n \n \n
\n
\n
\n `\n})\nexport class NgbDatepickerMonthView {\n @Input() dayTemplate: TemplateRef;\n @Input() month: MonthViewModel;\n @Input() showWeekdays;\n @Input() showWeekNumbers;\n\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n doSelect(day: DayViewModel) {\n if (!day.context.disabled && !day.hidden) {\n this.select.emit(day.date);\n }\n }\n}\n","import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {NavigationEvent, MonthViewModel} from './datepicker-view-model';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: 'ngb-datepicker-navigation',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-navigation.scss'],\n template: `\n
\n \n
\n \n \n\n \n
0\">
\n
\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n
\n
\n
\n \n
\n `\n})\nexport class NgbDatepickerNavigation {\n navigation = NavigationEvent;\n\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() months: MonthViewModel[] = [];\n @Input() showSelect: boolean;\n @Input() prevDisabled: boolean;\n @Input() nextDisabled: boolean;\n @Input() selectBoxes: {years: number[], months: number[]};\n\n @Output() navigate = new EventEmitter();\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n}\n","import {NgZone} from '@angular/core';\nimport {fromEvent, Observable, race} from 'rxjs';\nimport {delay, filter, map, takeUntil, withLatestFrom} from 'rxjs/operators';\nimport {Key} from './key';\nimport {closest} from './util';\n\nconst isContainedIn = (element: HTMLElement, array?: HTMLElement[]) =>\n array ? array.some(item => item.contains(element)) : false;\n\nconst matchesSelectorIfAny = (element: HTMLElement, selector?: string) =>\n !selector || closest(element, selector) != null;\n\n// we'll have to use 'touch' events instead of 'mouse' events on iOS and add a more significant delay\n// to avoid re-opening when handling (click) on a toggling element\n// TODO: use proper Angular platform detection when NgbAutoClose becomes a service and we can inject PLATFORM_ID\nlet iOS = false;\nif (typeof navigator !== 'undefined') {\n iOS = !!navigator.userAgent && /iPad|iPhone|iPod/.test(navigator.userAgent);\n}\n\nexport function ngbAutoClose(\n zone: NgZone, document: any, type: boolean | 'inside' | 'outside', close: () => void, closed$: Observable,\n insideElements: HTMLElement[], ignoreElements?: HTMLElement[], insideSelector?: string) {\n // closing on ESC and outside clicks\n if (type) {\n zone.runOutsideAngular(() => {\n\n const shouldCloseOnClick = (event: MouseEvent | TouchEvent) => {\n const element = event.target as HTMLElement;\n if ((event instanceof MouseEvent && event.button === 2) || isContainedIn(element, ignoreElements)) {\n return false;\n }\n if (type === 'inside') {\n return isContainedIn(element, insideElements) && matchesSelectorIfAny(element, insideSelector);\n } else if (type === 'outside') {\n return !isContainedIn(element, insideElements);\n } else /* if (type === true) */ {\n return matchesSelectorIfAny(element, insideSelector) || !isContainedIn(element, insideElements);\n }\n };\n\n const escapes$ = fromEvent(document, 'keydown')\n .pipe(\n takeUntil(closed$),\n // tslint:disable-next-line:deprecation\n filter(e => e.which === Key.Escape));\n\n\n // we have to pre-calculate 'shouldCloseOnClick' on 'mousedown/touchstart',\n // because on 'mouseup/touchend' DOM nodes might be detached\n const mouseDowns$ = fromEvent(document, iOS ? 'touchstart' : 'mousedown')\n .pipe(map(shouldCloseOnClick), takeUntil(closed$));\n\n const closeableClicks$ = fromEvent(document, iOS ? 'touchend' : 'mouseup')\n .pipe(\n withLatestFrom(mouseDowns$), filter(([_, shouldClose]) => shouldClose),\n delay(iOS ? 16 : 0), takeUntil(closed$)) as Observable;\n\n\n race([escapes$, closeableClicks$]).subscribe(() => zone.run(close));\n });\n }\n}\n","import {fromEvent, Observable} from 'rxjs';\nimport {filter, map, takeUntil, withLatestFrom} from 'rxjs/operators';\n\nimport {Key} from '../util/key';\n\n\nconst FOCUSABLE_ELEMENTS_SELECTOR = [\n 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type=\"hidden\"])', 'select:not([disabled])',\n 'textarea:not([disabled])', '[contenteditable]', '[tabindex]:not([tabindex=\"-1\"])'\n].join(', ');\n\n/**\n * Returns first and last focusable elements inside of a given element based on specific CSS selector\n */\nexport function getFocusableBoundaryElements(element: HTMLElement): HTMLElement[] {\n const list: HTMLElement[] =\n Array.from(element.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR) as NodeListOf)\n .filter(el => el.tabIndex !== -1);\n return [list[0], list[list.length - 1]];\n}\n\n/**\n * Function that enforces browser focus to be trapped inside a DOM element.\n *\n * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element\n *\n * @param element The element around which focus will be trapped inside\n * @param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners\n * and free internal resources\n * @param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to\n * false)\n */\nexport const ngbFocusTrap = (element: HTMLElement, stopFocusTrap$: Observable, refocusOnClick = false) => {\n // last focused element\n const lastFocusedElement$ =\n fromEvent(element, 'focusin').pipe(takeUntil(stopFocusTrap$), map(e => e.target));\n\n // 'tab' / 'shift+tab' stream\n fromEvent(element, 'keydown')\n .pipe(\n takeUntil(stopFocusTrap$),\n // tslint:disable:deprecation\n filter(e => e.which === Key.Tab),\n // tslint:enable:deprecation\n withLatestFrom(lastFocusedElement$))\n .subscribe(([tabEvent, focusedElement]) => {\n const[first, last] = getFocusableBoundaryElements(element);\n\n if ((focusedElement === first || focusedElement === element) && tabEvent.shiftKey) {\n last.focus();\n tabEvent.preventDefault();\n }\n\n if (focusedElement === last && !tabEvent.shiftKey) {\n first.focus();\n tabEvent.preventDefault();\n }\n });\n\n // inside click\n if (refocusOnClick) {\n fromEvent(element, 'click')\n .pipe(takeUntil(stopFocusTrap$), withLatestFrom(lastFocusedElement$), map(arr => arr[1] as HTMLElement))\n .subscribe(lastFocusedElement => lastFocusedElement.focus());\n }\n};\n","// previous version:\n// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js\nexport class Positioning {\n private getAllStyles(element: HTMLElement) { return window.getComputedStyle(element); }\n\n private getStyle(element: HTMLElement, prop: string): string { return this.getAllStyles(element)[prop]; }\n\n private isStaticPositioned(element: HTMLElement): boolean {\n return (this.getStyle(element, 'position') || 'static') === 'static';\n }\n\n private offsetParent(element: HTMLElement): HTMLElement {\n let offsetParentEl = element.offsetParent || document.documentElement;\n\n while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) {\n offsetParentEl = offsetParentEl.offsetParent;\n }\n\n return offsetParentEl || document.documentElement;\n }\n\n position(element: HTMLElement, round = true): ClientRect {\n let elPosition: ClientRect;\n let parentOffset: ClientRect = {width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0};\n\n if (this.getStyle(element, 'position') === 'fixed') {\n elPosition = element.getBoundingClientRect();\n elPosition = {\n top: elPosition.top,\n bottom: elPosition.bottom,\n left: elPosition.left,\n right: elPosition.right,\n height: elPosition.height,\n width: elPosition.width\n };\n } else {\n const offsetParentEl = this.offsetParent(element);\n\n elPosition = this.offset(element, false);\n\n if (offsetParentEl !== document.documentElement) {\n parentOffset = this.offset(offsetParentEl, false);\n }\n\n parentOffset.top += offsetParentEl.clientTop;\n parentOffset.left += offsetParentEl.clientLeft;\n }\n\n elPosition.top -= parentOffset.top;\n elPosition.bottom -= parentOffset.top;\n elPosition.left -= parentOffset.left;\n elPosition.right -= parentOffset.left;\n\n if (round) {\n elPosition.top = Math.round(elPosition.top);\n elPosition.bottom = Math.round(elPosition.bottom);\n elPosition.left = Math.round(elPosition.left);\n elPosition.right = Math.round(elPosition.right);\n }\n\n return elPosition;\n }\n\n offset(element: HTMLElement, round = true): ClientRect {\n const elBcr = element.getBoundingClientRect();\n const viewportOffset = {\n top: window.pageYOffset - document.documentElement.clientTop,\n left: window.pageXOffset - document.documentElement.clientLeft\n };\n\n let elOffset = {\n height: elBcr.height || element.offsetHeight,\n width: elBcr.width || element.offsetWidth,\n top: elBcr.top + viewportOffset.top,\n bottom: elBcr.bottom + viewportOffset.top,\n left: elBcr.left + viewportOffset.left,\n right: elBcr.right + viewportOffset.left\n };\n\n if (round) {\n elOffset.height = Math.round(elOffset.height);\n elOffset.width = Math.round(elOffset.width);\n elOffset.top = Math.round(elOffset.top);\n elOffset.bottom = Math.round(elOffset.bottom);\n elOffset.left = Math.round(elOffset.left);\n elOffset.right = Math.round(elOffset.right);\n }\n\n return elOffset;\n }\n\n /*\n Return false if the element to position is outside the viewport\n */\n positionElements(hostElement: HTMLElement, targetElement: HTMLElement, placement: string, appendToBody?: boolean):\n boolean {\n const[placementPrimary = 'top', placementSecondary = 'center'] = placement.split('-');\n\n const hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false);\n const targetElStyles = this.getAllStyles(targetElement);\n\n const marginTop = parseFloat(targetElStyles.marginTop);\n const marginBottom = parseFloat(targetElStyles.marginBottom);\n const marginLeft = parseFloat(targetElStyles.marginLeft);\n const marginRight = parseFloat(targetElStyles.marginRight);\n\n let topPosition = 0;\n let leftPosition = 0;\n\n switch (placementPrimary) {\n case 'top':\n topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom));\n break;\n case 'bottom':\n topPosition = (hostElPosition.top + hostElPosition.height);\n break;\n case 'left':\n leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight));\n break;\n case 'right':\n leftPosition = (hostElPosition.left + hostElPosition.width);\n break;\n }\n\n switch (placementSecondary) {\n case 'top':\n topPosition = hostElPosition.top;\n break;\n case 'bottom':\n topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight;\n break;\n case 'left':\n leftPosition = hostElPosition.left;\n break;\n case 'right':\n leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth;\n break;\n case 'center':\n if (placementPrimary === 'top' || placementPrimary === 'bottom') {\n leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2);\n } else {\n topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2);\n }\n break;\n }\n\n /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix\n // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`;\n targetElement.style.transform = `translate(${Math.round(leftPosition)}px, ${Math.round(topPosition)}px)`;\n\n // Check if the targetElement is inside the viewport\n const targetElBCR = targetElement.getBoundingClientRect();\n const html = document.documentElement;\n const windowHeight = window.innerHeight || html.clientHeight;\n const windowWidth = window.innerWidth || html.clientWidth;\n\n return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth &&\n targetElBCR.bottom <= windowHeight;\n }\n}\n\nconst placementSeparator = /\\s+/;\nconst positionService = new Positioning();\n\n/*\n * Accept the placement array and applies the appropriate placement dependent on the viewport.\n * Returns the applied placement.\n * In case of auto placement, placements are selected in order\n * 'top', 'bottom', 'left', 'right',\n * 'top-left', 'top-right',\n * 'bottom-left', 'bottom-right',\n * 'left-top', 'left-bottom',\n * 'right-top', 'right-bottom'.\n * */\nexport function positionElements(\n hostElement: HTMLElement, targetElement: HTMLElement, placement: string | Placement | PlacementArray,\n appendToBody?: boolean, baseClass?: string): Placement {\n let placementVals: Array =\n Array.isArray(placement) ? placement : placement.split(placementSeparator) as Array;\n\n const allowedPlacements = [\n 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom',\n 'right-top', 'right-bottom'\n ];\n\n const classList = targetElement.classList;\n const addClassesToTarget = (targetPlacement: Placement): Array => {\n const[primary, secondary] = targetPlacement.split('-');\n const classes = [];\n if (baseClass) {\n classes.push(`${baseClass}-${primary}`);\n if (secondary) {\n classes.push(`${baseClass}-${primary}-${secondary}`);\n }\n\n classes.forEach((classname) => { classList.add(classname); });\n }\n return classes;\n };\n\n // Remove old placement classes to avoid issues\n if (baseClass) {\n allowedPlacements.forEach((placementToRemove) => { classList.remove(`${baseClass}-${placementToRemove}`); });\n }\n\n // replace auto placement with other placements\n let hasAuto = placementVals.findIndex(val => val === 'auto');\n if (hasAuto >= 0) {\n allowedPlacements.forEach(function(obj) {\n if (placementVals.find(val => val.search('^' + obj) !== -1) == null) {\n placementVals.splice(hasAuto++, 1, obj as Placement);\n }\n });\n }\n\n // coordinates where to position\n\n // Required for transform:\n const style = targetElement.style;\n style.position = 'absolute';\n style.top = '0';\n style.left = '0';\n style['will-change'] = 'transform';\n\n let testPlacement: Placement;\n let isInViewport = false;\n for (testPlacement of placementVals) {\n let addedClasses = addClassesToTarget(testPlacement);\n\n if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) {\n isInViewport = true;\n break;\n }\n\n // Remove the baseClasses for further calculation\n if (baseClass) {\n addedClasses.forEach((classname) => { classList.remove(classname); });\n }\n }\n\n if (!isInViewport) {\n // If nothing match, the first placement is the default one\n testPlacement = placementVals[0];\n addClassesToTarget(testPlacement);\n positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody);\n }\n\n return testPlacement;\n}\n\nexport type Placement = 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' |\n 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';\n\nexport type PlacementArray = Placement | Array| string;\n","import {padNumber, toInteger, isNumber} from '../util/util';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {Injectable} from '@angular/core';\n\nexport function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY() {\n return new NgbDateISOParserFormatter();\n}\n\n/**\n * An abstract service for parsing and formatting dates for the\n * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive.\n * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the\n * input element.\n *\n * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object.\n * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string`\n * in the input.\n *\n * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI\n * to use an alternative string format or a custom parsing logic.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY})\nexport abstract class NgbDateParserFormatter {\n /**\n * Parses the given `string` to an `NgbDateStruct`.\n *\n * Implementations should try their best to provide a result, even\n * partial. They must return `null` if the value can't be parsed.\n */\n abstract parse(value: string): NgbDateStruct;\n\n /**\n * Formats the given `NgbDateStruct` to a `string`.\n *\n * Implementations should return an empty string if the given date is `null`,\n * and try their best to provide a partial result if the given date is incomplete or invalid.\n */\n abstract format(date: NgbDateStruct): string;\n}\n\n@Injectable()\nexport class NgbDateISOParserFormatter extends NgbDateParserFormatter {\n parse(value: string): NgbDateStruct {\n if (value) {\n const dateParts = value.trim().split('-');\n if (dateParts.length === 1 && isNumber(dateParts[0])) {\n return {year: toInteger(dateParts[0]), month: null, day: null};\n } else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) {\n return {year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null};\n } else if (dateParts.length === 3 && isNumber(dateParts[0]) && isNumber(dateParts[1]) && isNumber(dateParts[2])) {\n return {year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: toInteger(dateParts[2])};\n }\n }\n return null;\n }\n\n format(date: NgbDateStruct): string {\n return date ?\n `${date.year}-${isNumber(date.month) ? padNumber(date.month) : ''}-${isNumber(date.day) ? padNumber(date.day) : ''}` :\n '';\n }\n}\n","import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n Output,\n Renderer2,\n SimpleChanges,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, Validator} from '@angular/forms';\n\nimport {ngbAutoClose} from '../util/autoclose';\nimport {ngbFocusTrap} from '../util/focus-trap';\nimport {PlacementArray, positionElements} from '../util/positioning';\n\nimport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nimport {NgbDatepicker, NgbDatepickerNavigateEvent} from './datepicker';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbCalendar} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDateParserFormatter} from './ngb-date-parser-formatter';\nimport {NgbDateStruct} from './ngb-date-struct';\n\nconst NGB_DATEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbInputDatepicker),\n multi: true\n};\n\nconst NGB_DATEPICKER_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => NgbInputDatepicker),\n multi: true\n};\n\n/**\n * A directive that allows to stick a datepicker popup to an input field.\n *\n * Manages interaction with the input field itself, does value formatting and provides forms integration.\n */\n@Directive({\n selector: 'input[ngbDatepicker]',\n exportAs: 'ngbDatepicker',\n host: {\n '(input)': 'manualDateChange($event.target.value)',\n '(change)': 'manualDateChange($event.target.value, true)',\n '(blur)': 'onBlur()',\n '[disabled]': 'disabled'\n },\n providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NGB_DATEPICKER_VALIDATOR, NgbDatepickerService]\n})\nexport class NgbInputDatepicker implements OnChanges,\n OnDestroy, ControlValueAccessor, Validator {\n private _cRef: ComponentRef = null;\n private _disabled = false;\n private _model: NgbDate;\n private _inputValue: string;\n private _zoneSubscription: any;\n\n /**\n * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not.\n *\n * * `true` - the popup will close on both date selection and outside click.\n * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods.\n * * `\"inside\"` - the popup will close on date selection, but not outside clicks.\n * * `\"outside\"` - the popup will close only on the outside click and not on date selection/inside clicks.\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside' = true;\n\n /**\n * The reference to a custom template for the day.\n *\n * Allows to completely override the way a day 'cell' in the calendar is displayed.\n *\n * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside.\n */\n @Input() dayTemplate: TemplateRef;\n\n /**\n * The callback to pass any arbitrary data to the template cell via the\n * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter.\n *\n * `current` is the month that is currently displayed by the datepicker.\n *\n * @since 3.3.0\n */\n @Input() dayTemplateData: (date: NgbDate, current: {year: number, month: number}) => any;\n\n /**\n * The number of months to display.\n */\n @Input() displayMonths: number;\n\n /**\n * The first day of the week.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n @Input() firstDayOfWeek: number;\n\n /**\n * The reference to the custom template for the datepicker footer.\n *\n * @since 3.3.0\n */\n @Input() footerTemplate: TemplateRef;\n\n /**\n * The callback to mark some dates as disabled.\n *\n * It is called for each new date when navigating to a different month.\n *\n * `current` is the month that is currently displayed by the datepicker.\n */\n @Input() markDisabled: (date: NgbDate, current: {year: number, month: number}) => boolean;\n\n /**\n * The earliest date that can be displayed or selected. Also used for form validation.\n *\n * If not provided, 'year' select box will display 10 years before the current month.\n */\n @Input() minDate: NgbDateStruct;\n\n /**\n * The latest date that can be displayed or selected. Also used for form validation.\n *\n * If not provided, 'year' select box will display 10 years after the current month.\n */\n @Input() maxDate: NgbDateStruct;\n\n /**\n * Navigation type.\n *\n * * `\"select\"` - select boxes for month and navigation arrows\n * * `\"arrows\"` - only navigation arrows\n * * `\"none\"` - no navigation visible at all\n */\n @Input() navigation: 'select' | 'arrows' | 'none';\n\n /**\n * The way of displaying days that don't belong to the current month.\n *\n * * `\"visible\"` - days are visible\n * * `\"hidden\"` - days are hidden, white space preserved\n * * `\"collapsed\"` - days are collapsed, so the datepicker height might change between months\n *\n * For the 2+ months view, days in between months are never shown.\n */\n @Input() outsideDays: 'visible' | 'collapsed' | 'hidden';\n\n /**\n * The preferred placement of the datepicker popup.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n\n /**\n * If `true`, weekdays will be displayed.\n */\n @Input() showWeekdays: boolean;\n\n /**\n * If `true`, week numbers will be displayed.\n */\n @Input() showWeekNumbers: boolean;\n\n /**\n * The date to open calendar with.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date is provided, calendar will open with current month.\n *\n * You could use `navigateTo(date)` method as an alternative.\n */\n @Input() startDate: {year: number, month: number, day?: number};\n\n /**\n * A selector specifying the element the datepicker popup should be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * A css selector or html element specifying the element the datepicker popup should be positioned against.\n *\n * By default the input is used as a target.\n *\n * @since 4.2.0\n */\n @Input() positionTarget: string | HTMLElement;\n\n /**\n * An event emitted when user selects a date using keyboard or mouse.\n *\n * The payload of the event is currently selected `NgbDate`.\n *\n * @since 1.1.1\n */\n @Output() dateSelect = new EventEmitter();\n\n /**\n * Event emitted right after the navigation happens and displayed month changes.\n *\n * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info.\n */\n @Output() navigate = new EventEmitter();\n\n /**\n * An event fired after closing datepicker window.\n *\n * @since 4.2.0\n */\n @Output() closed = new EventEmitter();\n\n @Input()\n get disabled() {\n return this._disabled;\n }\n set disabled(value: any) {\n this._disabled = value === '' || (value && value !== 'false');\n\n if (this.isOpen()) {\n this._cRef.instance.setDisabledState(this._disabled);\n }\n }\n\n private _onChange = (_: any) => {};\n private _onTouched = () => {};\n private _validatorChange = () => {};\n\n\n constructor(\n private _parserFormatter: NgbDateParserFormatter, private _elRef: ElementRef,\n private _vcRef: ViewContainerRef, private _renderer: Renderer2, private _cfr: ComponentFactoryResolver,\n private _ngZone: NgZone, private _service: NgbDatepickerService, private _calendar: NgbCalendar,\n private _dateAdapter: NgbDateAdapter, @Inject(DOCUMENT) private _document: any,\n private _changeDetector: ChangeDetectorRef) {\n this._zoneSubscription = _ngZone.onStable.subscribe(() => this._updatePopupPosition());\n }\n\n registerOnChange(fn: (value: any) => any): void { this._onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this._onTouched = fn; }\n\n registerOnValidatorChange(fn: () => void): void { this._validatorChange = fn; }\n\n setDisabledState(isDisabled: boolean): void { this.disabled = isDisabled; }\n\n validate(c: AbstractControl): {[key: string]: any} {\n const value = c.value;\n\n if (value === null || value === undefined) {\n return null;\n }\n\n const ngbDate = this._fromDateStruct(this._dateAdapter.fromModel(value));\n\n if (!this._calendar.isValid(ngbDate)) {\n return {'ngbDate': {invalid: c.value}};\n }\n\n if (this.minDate && ngbDate.before(NgbDate.from(this.minDate))) {\n return {'ngbDate': {requiredBefore: this.minDate}};\n }\n\n if (this.maxDate && ngbDate.after(NgbDate.from(this.maxDate))) {\n return {'ngbDate': {requiredAfter: this.maxDate}};\n }\n }\n\n writeValue(value) {\n this._model = this._fromDateStruct(this._dateAdapter.fromModel(value));\n this._writeModelValue(this._model);\n }\n\n manualDateChange(value: string, updateView = false) {\n const inputValueChanged = value !== this._inputValue;\n if (inputValueChanged) {\n this._inputValue = value;\n this._model = this._fromDateStruct(this._parserFormatter.parse(value));\n }\n if (inputValueChanged || !updateView) {\n this._onChange(this._model ? this._dateAdapter.toModel(this._model) : (value === '' ? null : value));\n }\n if (updateView && this._model) {\n this._writeModelValue(this._model);\n }\n }\n\n isOpen() { return !!this._cRef; }\n\n /**\n * Opens the datepicker popup.\n *\n * If the related form control contains a valid date, the corresponding month will be opened.\n */\n open() {\n if (!this.isOpen()) {\n const cf = this._cfr.resolveComponentFactory(NgbDatepicker);\n this._cRef = this._vcRef.createComponent(cf);\n\n this._applyPopupStyling(this._cRef.location.nativeElement);\n this._applyDatepickerInputs(this._cRef.instance);\n this._subscribeForDatepickerOutputs(this._cRef.instance);\n this._cRef.instance.ngOnInit();\n this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model));\n\n // date selection event handling\n this._cRef.instance.registerOnChange((selectedDate) => {\n this.writeValue(selectedDate);\n this._onChange(selectedDate);\n this._onTouched();\n });\n\n this._cRef.changeDetectorRef.detectChanges();\n\n this._cRef.instance.setDisabledState(this.disabled);\n\n if (this.container === 'body') {\n window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement);\n }\n\n // focus handling\n ngbFocusTrap(this._cRef.location.nativeElement, this.closed, true);\n this._cRef.instance.focus();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.closed, [],\n [this._elRef.nativeElement, this._cRef.location.nativeElement]);\n }\n }\n\n /**\n * Closes the datepicker popup.\n */\n close() {\n if (this.isOpen()) {\n this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView));\n this._cRef = null;\n this.closed.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the datepicker popup.\n */\n toggle() {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Navigates to the provided date.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date provided calendar will open current month.\n *\n * Use the `[startDate]` input as an alternative.\n */\n navigateTo(date?: {year: number, month: number, day?: number}) {\n if (this.isOpen()) {\n this._cRef.instance.navigateTo(date);\n }\n }\n\n onBlur() { this._onTouched(); }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['minDate'] || changes['maxDate']) {\n this._validatorChange();\n }\n }\n\n ngOnDestroy() {\n this.close();\n this._zoneSubscription.unsubscribe();\n }\n\n private _applyDatepickerInputs(datepickerInstance: NgbDatepicker): void {\n ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate',\n 'maxDate', 'navigation', 'outsideDays', 'showNavigation', 'showWeekdays', 'showWeekNumbers']\n .forEach((optionName: string) => {\n if (this[optionName] !== undefined) {\n datepickerInstance[optionName] = this[optionName];\n }\n });\n datepickerInstance.startDate = this.startDate || this._model;\n }\n\n private _applyPopupStyling(nativeElement: any) {\n this._renderer.addClass(nativeElement, 'dropdown-menu');\n this._renderer.addClass(nativeElement, 'show');\n\n if (this.container === 'body') {\n this._renderer.addClass(nativeElement, 'ngb-dp-body');\n }\n }\n\n private _subscribeForDatepickerOutputs(datepickerInstance: NgbDatepicker) {\n datepickerInstance.navigate.subscribe(navigateEvent => this.navigate.emit(navigateEvent));\n datepickerInstance.select.subscribe(date => {\n this.dateSelect.emit(date);\n if (this.autoClose === true || this.autoClose === 'inside') {\n this.close();\n }\n });\n }\n\n private _writeModelValue(model: NgbDate) {\n const value = this._parserFormatter.format(model);\n this._inputValue = value;\n this._renderer.setProperty(this._elRef.nativeElement, 'value', value);\n if (this.isOpen()) {\n this._cRef.instance.writeValue(this._dateAdapter.toModel(model));\n this._onTouched();\n }\n }\n\n private _fromDateStruct(date: NgbDateStruct): NgbDate {\n const ngbDate = date ? new NgbDate(date.year, date.month, date.day) : null;\n return this._calendar.isValid(ngbDate) ? ngbDate : null;\n }\n\n private _updatePopupPosition() {\n if (!this._cRef) {\n return;\n }\n\n let hostElement: HTMLElement;\n if (typeof this.positionTarget === 'string') {\n hostElement = window.document.querySelector(this.positionTarget);\n } else if (this.positionTarget instanceof HTMLElement) {\n hostElement = this.positionTarget;\n } else {\n hostElement = this._elRef.nativeElement;\n }\n\n if (this.positionTarget && !hostElement) {\n throw new Error('ngbDatepicker could not find element declared in [positionTarget] to position against.');\n }\n\n positionElements(hostElement, this._cRef.location.nativeElement, this.placement, this.container === 'body');\n }\n}\n","import {ChangeDetectionStrategy, Component, Input, ViewEncapsulation} from '@angular/core';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: '[ngbDatepickerDayView]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-day-view.scss'],\n host: {\n 'class': 'btn-light',\n '[class.bg-primary]': 'selected',\n '[class.text-white]': 'selected',\n '[class.text-muted]': 'isMuted()',\n '[class.outside]': 'isMuted()',\n '[class.active]': 'focused'\n },\n template: `{{ i18n.getDayNumerals(date) }}`\n})\nexport class NgbDatepickerDayView {\n @Input() currentMonth: number;\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() focused: boolean;\n @Input() selected: boolean;\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n isMuted() { return !this.selected && (this.date.month !== this.currentMonth || this.disabled); }\n}\n","import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {NgbDate} from './ngb-date';\nimport {toInteger} from '../util/util';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: 'ngb-datepicker-navigation-select',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-navigation-select.scss'],\n template: `\n \n \n \n \n \n `\n})\nexport class NgbDatepickerNavigationSelect {\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() months: number[];\n @Input() years: number[];\n\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n changeMonth(month: string) { this.select.emit(new NgbDate(this.date.year, toInteger(month), 1)); }\n\n changeYear(year: string) { this.select.emit(new NgbDate(toInteger(year), this.date.month, 1)); }\n}\n","import {NgbDate} from '../ngb-date';\nimport {NgbPeriod, NgbCalendar} from '../ngb-calendar';\nimport {Injectable} from '@angular/core';\nimport {isNumber} from '../../util/util';\n\n@Injectable()\nexport abstract class NgbCalendarHijri extends NgbCalendar {\n /**\n * Returns the number of days in a specific Hijri month.\n * `month` is 1 for Muharram, 2 for Safar, etc.\n * `year` is any Hijri year.\n */\n abstract getDaysPerMonth(month: number, year: number): number;\n\n /**\n * Returns the equivalent Hijri date value for a give input Gregorian date.\n * `gDate` is s JS Date to be converted to Hijri.\n */\n abstract fromGregorian(gDate: Date): NgbDate;\n\n /**\n * Converts the current Hijri date to Gregorian.\n */\n abstract toGregorian(hDate: NgbDate): Date;\n\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date = this._setYear(date, date.year + number);\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = this._setMonth(date, date.month + number);\n date.day = 1;\n return date;\n case 'd':\n return this._setDay(date, date.day + number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = this.toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n const date = week[thursdayIndex];\n\n const jsDate = this.toGregorian(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n const MuhDate = this.toGregorian(new NgbDate(date.year, 1, 1)); // Compare with Muharram 1\n return Math.floor(Math.round((time - MuhDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return this.fromGregorian(new Date()); }\n\n\n isValid(date: NgbDate): boolean {\n return date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day) &&\n !isNaN(this.toGregorian(date).getTime());\n }\n\n private _setDay(date: NgbDate, day: number): NgbDate {\n day = +day;\n let mDays = this.getDaysPerMonth(date.month, date.year);\n if (day <= 0) {\n while (day <= 0) {\n date = this._setMonth(date, date.month - 1);\n mDays = this.getDaysPerMonth(date.month, date.year);\n day += mDays;\n }\n } else if (day > mDays) {\n while (day > mDays) {\n day -= mDays;\n date = this._setMonth(date, date.month + 1);\n mDays = this.getDaysPerMonth(date.month, date.year);\n }\n }\n date.day = day;\n return date;\n }\n\n private _setMonth(date: NgbDate, month: number): NgbDate {\n month = +month;\n date.year = date.year + Math.floor((month - 1) / 12);\n date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1;\n return date;\n }\n\n private _setYear(date: NgbDate, year: number): NgbDate {\n date.year = +year;\n return date;\n }\n}\n","import {NgbCalendarHijri} from './ngb-calendar-hijri';\nimport {NgbDate} from '../ngb-date';\nimport {Injectable} from '@angular/core';\n\n/**\n * Checks if islamic year is a leap year\n */\nfunction isIslamicLeapYear(hYear: number): boolean {\n return (14 + 11 * hYear) % 30 < 11;\n}\n\n/**\n * Checks if gregorian years is a leap year\n */\nfunction isGregorianLeapYear(gDate: Date): boolean {\n const year = gDate.getFullYear();\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n}\n\n/**\n * Returns the start of Hijri Month.\n * `hMonth` is 0 for Muharram, 1 for Safar, etc.\n * `hYear` is any Hijri hYear.\n */\nfunction getIslamicMonthStart(hYear: number, hMonth: number): number {\n return Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30.0);\n}\n\n/**\n * Returns the start of Hijri year.\n * `year` is any Hijri year.\n */\nfunction getIslamicYearStart(year: number): number {\n return (year - 1) * 354 + Math.floor((3 + 11 * year) / 30.0);\n}\n\nfunction mod(a: number, b: number): number {\n return a - b * Math.floor(a / b);\n}\n\n/**\n * The civil calendar is one type of Hijri calendars used in islamic countries.\n * Uses a fixed cycle of alternating 29- and 30-day months,\n * with a leap day added to the last month of 11 out of every 30 years.\n * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types\n * All the calculations here are based on the equations from \"Calendrical Calculations\" By Edward M. Reingold, Nachum\n * Dershowitz.\n */\n\nconst GREGORIAN_EPOCH = 1721425.5;\nconst ISLAMIC_EPOCH = 1948439.5;\n\n@Injectable()\nexport class NgbCalendarIslamicCivil extends NgbCalendarHijri {\n /**\n * Returns the equivalent islamic(civil) date value for a give input Gregorian date.\n * `gDate` is a JS Date to be converted to Hijri.\n */\n fromGregorian(gDate: Date): NgbDate {\n const gYear = gDate.getFullYear(), gMonth = gDate.getMonth(), gDay = gDate.getDate();\n\n let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) +\n -Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) +\n Math.floor(\n (367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gDate) ? -1 : -2) + gDay);\n julianDay = Math.floor(julianDay) + 0.5;\n\n const days = julianDay - ISLAMIC_EPOCH;\n const hYear = Math.floor((30 * days + 10646) / 10631.0);\n let hMonth = Math.ceil((days - 29 - getIslamicYearStart(hYear)) / 29.5);\n hMonth = Math.min(hMonth, 11);\n const hDay = Math.ceil(days - getIslamicMonthStart(hYear, hMonth)) + 1;\n return new NgbDate(hYear, hMonth + 1, hDay);\n }\n\n /**\n * Returns the equivalent JS date value for a give input islamic(civil) date.\n * `hDate` is an islamic(civil) date to be converted to Gregorian.\n */\n toGregorian(hDate: NgbDate): Date {\n const hYear = hDate.year;\n const hMonth = hDate.month - 1;\n const hDay = hDate.day;\n const julianDay =\n hDay + Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30) + ISLAMIC_EPOCH - 1;\n\n const wjd = Math.floor(julianDay - 0.5) + 0.5, depoch = wjd - GREGORIAN_EPOCH,\n quadricent = Math.floor(depoch / 146097), dqc = mod(depoch, 146097), cent = Math.floor(dqc / 36524),\n dcent = mod(dqc, 36524), quad = Math.floor(dcent / 1461), dquad = mod(dcent, 1461),\n yindex = Math.floor(dquad / 365);\n let year = quadricent * 400 + cent * 100 + quad * 4 + yindex;\n if (!(cent === 4 || yindex === 4)) {\n year++;\n }\n\n const gYearStart = GREGORIAN_EPOCH + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400);\n\n const yearday = wjd - gYearStart;\n\n const tjd = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400) + Math.floor(739 / 12 + (isGregorianLeapYear(new Date(year, 3, 1)) ? -1 : -2) + 1);\n\n const leapadj = wjd < tjd ? 0 : isGregorianLeapYear(new Date(year, 3, 1)) ? 1 : 2;\n\n const month = Math.floor(((yearday + leapadj) * 12 + 373) / 367);\n const tjd2 = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400) +\n Math.floor(\n (367 * month - 362) / 12 + (month <= 2 ? 0 : isGregorianLeapYear(new Date(year, month - 1, 1)) ? -1 : -2) +\n 1);\n\n const day = wjd - tjd2 + 1;\n\n return new Date(year, month - 1, day);\n }\n\n /**\n * Returns the number of days in a specific Hijri month.\n * `month` is 1 for Muharram, 2 for Safar, etc.\n * `year` is any Hijri year.\n */\n getDaysPerMonth(month: number, year: number): number {\n year = year + Math.floor(month / 13);\n month = ((month - 1) % 12) + 1;\n let length = 29 + month % 2;\n if (month === 12 && isIslamicLeapYear(year)) {\n length++;\n }\n return length;\n }\n}\n","import {NgbCalendarIslamicCivil} from './ngb-calendar-islamic-civil';\nimport {NgbDate} from '../ngb-date';\nimport {Injectable} from '@angular/core';\n\n/**\n * Umalqura calendar is one type of Hijri calendars used in islamic countries.\n * This Calendar is used by Saudi Arabia for administrative purpose.\n * Unlike tabular calendars, the algorithm involves astronomical calculation, but it's still deterministic.\n * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types\n */\n\nconst GREGORIAN_FIRST_DATE = new Date(1882, 10, 12);\nconst GREGORIAN_LAST_DATE = new Date(2174, 10, 25);\nconst HIJRI_BEGIN = 1300;\nconst HIJRI_END = 1600;\nconst ONE_DAY = 1000 * 60 * 60 * 24;\n\nconst MONTH_LENGTH = [\n // 1300-1304\n '101010101010', '110101010100', '111011001001', '011011010100', '011011101010',\n // 1305-1309\n '001101101100', '101010101101', '010101010101', '011010101001', '011110010010',\n // 1310-1314\n '101110101001', '010111010100', '101011011010', '010101011100', '110100101101',\n // 1315-1319\n '011010010101', '011101001010', '101101010100', '101101101010', '010110101101',\n // 1320-1324\n '010010101110', '101001001111', '010100010111', '011010001011', '011010100101',\n // 1325-1329\n '101011010101', '001011010110', '100101011011', '010010011101', '101001001101',\n // 1330-1334\n '110100100110', '110110010101', '010110101100', '100110110110', '001010111010',\n // 1335-1339\n '101001011011', '010100101011', '101010010101', '011011001010', '101011101001',\n // 1340-1344\n '001011110100', '100101110110', '001010110110', '100101010110', '101011001010',\n // 1345-1349\n '101110100100', '101111010010', '010111011001', '001011011100', '100101101101',\n // 1350-1354\n '010101001101', '101010100101', '101101010010', '101110100101', '010110110100',\n // 1355-1359\n '100110110110', '010101010111', '001010010111', '010101001011', '011010100011',\n // 1360-1364\n '011101010010', '101101100101', '010101101010', '101010101011', '010100101011',\n // 1365-1369\n '110010010101', '110101001010', '110110100101', '010111001010', '101011010110',\n // 1370-1374\n '100101010111', '010010101011', '100101001011', '101010100101', '101101010010',\n // 1375-1379\n '101101101010', '010101110101', '001001110110', '100010110111', '010001011011',\n // 1380-1384\n '010101010101', '010110101001', '010110110100', '100111011010', '010011011101',\n // 1385-1389\n '001001101110', '100100110110', '101010101010', '110101010100', '110110110010',\n // 1390-1394\n '010111010101', '001011011010', '100101011011', '010010101011', '101001010101',\n // 1395-1399\n '101101001001', '101101100100', '101101110001', '010110110100', '101010110101',\n // 1400-1404\n '101001010101', '110100100101', '111010010010', '111011001001', '011011010100',\n // 1405-1409\n '101011101001', '100101101011', '010010101011', '101010010011', '110101001001',\n // 1410-1414\n '110110100100', '110110110010', '101010111001', '010010111010', '101001011011',\n // 1415-1419\n '010100101011', '101010010101', '101100101010', '101101010101', '010101011100',\n // 1420-1424\n '010010111101', '001000111101', '100100011101', '101010010101', '101101001010',\n // 1425-1429\n '101101011010', '010101101101', '001010110110', '100100111011', '010010011011',\n // 1430-1434\n '011001010101', '011010101001', '011101010100', '101101101010', '010101101100',\n // 1435-1439\n '101010101101', '010101010101', '101100101001', '101110010010', '101110101001',\n // 1440-1444\n '010111010100', '101011011010', '010101011010', '101010101011', '010110010101',\n // 1445-1449\n '011101001001', '011101100100', '101110101010', '010110110101', '001010110110',\n // 1450-1454\n '101001010110', '111001001101', '101100100101', '101101010010', '101101101010',\n // 1455-1459\n '010110101101', '001010101110', '100100101111', '010010010111', '011001001011',\n // 1460-1464\n '011010100101', '011010101100', '101011010110', '010101011101', '010010011101',\n // 1465-1469\n '101001001101', '110100010110', '110110010101', '010110101010', '010110110101',\n // 1470-1474\n '001011011010', '100101011011', '010010101101', '010110010101', '011011001010',\n // 1475-1479\n '011011100100', '101011101010', '010011110101', '001010110110', '100101010110',\n // 1480-1484\n '101010101010', '101101010100', '101111010010', '010111011001', '001011101010',\n // 1485-1489\n '100101101101', '010010101101', '101010010101', '101101001010', '101110100101',\n // 1490-1494\n '010110110010', '100110110101', '010011010110', '101010010111', '010101000111',\n // 1495-1499\n '011010010011', '011101001001', '101101010101', '010101101010', '101001101011',\n // 1500-1504\n '010100101011', '101010001011', '110101000110', '110110100011', '010111001010',\n // 1505-1509\n '101011010110', '010011011011', '001001101011', '100101001011', '101010100101',\n // 1510-1514\n '101101010010', '101101101001', '010101110101', '000101110110', '100010110111',\n // 1515-1519\n '001001011011', '010100101011', '010101100101', '010110110100', '100111011010',\n // 1520-1524\n '010011101101', '000101101101', '100010110110', '101010100110', '110101010010',\n // 1525-1529\n '110110101001', '010111010100', '101011011010', '100101011011', '010010101011',\n // 1530-1534\n '011001010011', '011100101001', '011101100010', '101110101001', '010110110010',\n // 1535-1539\n '101010110101', '010101010101', '101100100101', '110110010010', '111011001001',\n // 1540-1544\n '011011010010', '101011101001', '010101101011', '010010101011', '101001010101',\n // 1545-1549\n '110100101001', '110101010100', '110110101010', '100110110101', '010010111010',\n // 1550-1554\n '101000111011', '010010011011', '101001001101', '101010101010', '101011010101',\n // 1555-1559\n '001011011010', '100101011101', '010001011110', '101000101110', '110010011010',\n // 1560-1564\n '110101010101', '011010110010', '011010111001', '010010111010', '101001011101',\n // 1565-1569\n '010100101101', '101010010101', '101101010010', '101110101000', '101110110100',\n // 1570-1574\n '010110111001', '001011011010', '100101011010', '101101001010', '110110100100',\n // 1575-1579\n '111011010001', '011011101000', '101101101010', '010101101101', '010100110101',\n // 1580-1584\n '011010010101', '110101001010', '110110101000', '110111010100', '011011011010',\n // 1585-1589\n '010101011011', '001010011101', '011000101011', '101100010101', '101101001010',\n // 1590-1594\n '101110010101', '010110101010', '101010101110', '100100101110', '110010001111',\n // 1595-1599\n '010100100111', '011010010101', '011010101010', '101011010110', '010101011101',\n // 1600\n '001010011101'\n];\n\nfunction getDaysDiff(date1: Date, date2: Date): number {\n // Ignores the time part in date1 and date2:\n const time1 = Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate());\n const time2 = Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate());\n const diff = Math.abs(time1 - time2);\n return Math.round(diff / ONE_DAY);\n}\n\n@Injectable()\nexport class NgbCalendarIslamicUmalqura extends NgbCalendarIslamicCivil {\n /**\n * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date.\n * `gdate` is s JS Date to be converted to Hijri.\n */\n fromGregorian(gDate: Date): NgbDate {\n let hDay = 1, hMonth = 0, hYear = 1300;\n let daysDiff = getDaysDiff(gDate, GREGORIAN_FIRST_DATE);\n if (gDate.getTime() - GREGORIAN_FIRST_DATE.getTime() >= 0 && gDate.getTime() - GREGORIAN_LAST_DATE.getTime() <= 0) {\n let year = 1300;\n for (let i = 0; i < MONTH_LENGTH.length; i++, year++) {\n for (let j = 0; j < 12; j++) {\n let numOfDays = +MONTH_LENGTH[i][j] + 29;\n if (daysDiff <= numOfDays) {\n hDay = daysDiff + 1;\n if (hDay > numOfDays) {\n hDay = 1;\n j++;\n }\n if (j > 11) {\n j = 0;\n year++;\n }\n hMonth = j;\n hYear = year;\n return new NgbDate(hYear, hMonth + 1, hDay);\n }\n daysDiff = daysDiff - numOfDays;\n }\n }\n } else {\n return super.fromGregorian(gDate);\n }\n }\n /**\n * Converts the current Hijri date to Gregorian.\n */\n toGregorian(hDate: NgbDate): Date {\n const hYear = hDate.year;\n const hMonth = hDate.month - 1;\n const hDay = hDate.day;\n let gDate = new Date(GREGORIAN_FIRST_DATE);\n let dayDiff = hDay - 1;\n if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) {\n for (let y = 0; y < hYear - HIJRI_BEGIN; y++) {\n for (let m = 0; m < 12; m++) {\n dayDiff += +MONTH_LENGTH[y][m] + 29;\n }\n }\n for (let m = 0; m < hMonth; m++) {\n dayDiff += +MONTH_LENGTH[hYear - HIJRI_BEGIN][m] + 29;\n }\n gDate.setDate(GREGORIAN_FIRST_DATE.getDate() + dayDiff);\n } else {\n gDate = super.toGregorian(hDate);\n }\n return gDate;\n }\n /**\n * Returns the number of days in a specific Hijri hMonth.\n * `hMonth` is 1 for Muharram, 2 for Safar, etc.\n * `hYear` is any Hijri hYear.\n */\n getDaysPerMonth(hMonth: number, hYear: number): number {\n if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) {\n const pos = hYear - HIJRI_BEGIN;\n return +MONTH_LENGTH[pos][hMonth - 1] + 29;\n }\n return super.getDaysPerMonth(hMonth, hYear);\n }\n}\n","import {NgbDate} from '../ngb-date';\n\n/**\n * Returns the equivalent JS date value for a give input Jalali date.\n * `jalaliDate` is an Jalali date to be converted to Gregorian.\n */\nexport function toGregorian(jalaliDate: NgbDate): Date {\n let jdn = jalaliToJulian(jalaliDate.year, jalaliDate.month, jalaliDate.day);\n let date = julianToGregorian(jdn);\n date.setHours(6, 30, 3, 200);\n return date;\n}\n\n/**\n * Returns the equivalent jalali date value for a give input Gregorian date.\n * `gdate` is a JS Date to be converted to jalali.\n * utc to local\n */\nexport function fromGregorian(gdate: Date): NgbDate {\n let g2d = gregorianToJulian(gdate.getFullYear(), gdate.getMonth() + 1, gdate.getDate());\n return julianToJalali(g2d);\n}\n\nexport function setJalaliYear(date: NgbDate, yearValue: number): NgbDate {\n date.year = +yearValue;\n return date;\n}\n\nexport function setJalaliMonth(date: NgbDate, month: number): NgbDate {\n month = +month;\n date.year = date.year + Math.floor((month - 1) / 12);\n date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1;\n return date;\n}\n\nexport function setJalaliDay(date: NgbDate, day: number): NgbDate {\n let mDays = getDaysPerMonth(date.month, date.year);\n if (day <= 0) {\n while (day <= 0) {\n date = setJalaliMonth(date, date.month - 1);\n mDays = getDaysPerMonth(date.month, date.year);\n day += mDays;\n }\n } else if (day > mDays) {\n while (day > mDays) {\n day -= mDays;\n date = setJalaliMonth(date, date.month + 1);\n mDays = getDaysPerMonth(date.month, date.year);\n }\n }\n date.day = day;\n return date;\n}\n\nfunction mod(a: number, b: number): number {\n return a - b * Math.floor(a / b);\n}\n\nfunction div(a: number, b: number) {\n return Math.trunc(a / b);\n}\n\n/*\n This function determines if the Jalali (Persian) year is\n leap (366-day long) or is the common year (365 days), and\n finds the day in March (Gregorian calendar) of the first\n day of the Jalali year (jalaliYear).\n @param jalaliYear Jalali calendar year (-61 to 3177)\n @return\n leap: number of years since the last leap year (0 to 4)\n gYear: Gregorian year of the beginning of Jalali year\n march: the March day of Farvardin the 1st (1st day of jalaliYear)\n @see: http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm\n @see: http://www.fourmilab.ch/documents/calendar/\n */\nfunction jalCal(jalaliYear: number) {\n // Jalali years starting the 33-year rule.\n let breaks =\n [-61, 9, 38, 199, 426, 686, 756, 818, 1111, 1181, 1210, 1635, 2060, 2097, 2192, 2262, 2324, 2394, 2456, 3178];\n const breaksLength = breaks.length;\n const gYear = jalaliYear + 621;\n let leapJ = -14;\n let jp = breaks[0];\n\n if (jalaliYear < jp || jalaliYear >= breaks[breaksLength - 1]) {\n throw new Error('Invalid Jalali year ' + jalaliYear);\n }\n\n // Find the limiting years for the Jalali year jalaliYear.\n let jump;\n for (let i = 1; i < breaksLength; i += 1) {\n const jm = breaks[i];\n jump = jm - jp;\n if (jalaliYear < jm) {\n break;\n }\n leapJ = leapJ + div(jump, 33) * 8 + div(mod(jump, 33), 4);\n jp = jm;\n }\n let n = jalaliYear - jp;\n\n // Find the number of leap years from AD 621 to the beginning\n // of the current Jalali year in the Persian calendar.\n leapJ = leapJ + div(n, 33) * 8 + div(mod(n, 33) + 3, 4);\n if (mod(jump, 33) === 4 && jump - n === 4) {\n leapJ += 1;\n }\n\n // And the same in the Gregorian calendar (until the year gYear).\n const leapG = div(gYear, 4) - div((div(gYear, 100) + 1) * 3, 4) - 150;\n\n // Determine the Gregorian date of Farvardin the 1st.\n const march = 20 + leapJ - leapG;\n\n // Find how many years have passed since the last leap year.\n if (jump - n < 6) {\n n = n - jump + div(jump + 4, 33) * 33;\n }\n let leap = mod(mod(n + 1, 33) - 1, 4);\n if (leap === -1) {\n leap = 4;\n }\n\n return {leap: leap, gy: gYear, march: march};\n}\n\n/*\n Calculates Gregorian and Julian calendar dates from the Julian Day number\n (jdn) for the period since jdn=-34839655 (i.e. the year -100100 of both\n calendars) to some millions years ahead of the present.\n @param jdn Julian Day number\n @return\n gYear: Calendar year (years BC numbered 0, -1, -2, ...)\n gMonth: Calendar month (1 to 12)\n gDay: Calendar day of the month M (1 to 28/29/30/31)\n */\nfunction julianToGregorian(julianDayNumber: number) {\n let j = 4 * julianDayNumber + 139361631;\n j = j + div(div(4 * julianDayNumber + 183187720, 146097) * 3, 4) * 4 - 3908;\n const i = div(mod(j, 1461), 4) * 5 + 308;\n const gDay = div(mod(i, 153), 5) + 1;\n const gMonth = mod(div(i, 153), 12) + 1;\n const gYear = div(j, 1461) - 100100 + div(8 - gMonth, 6);\n\n return new Date(gYear, gMonth - 1, gDay);\n}\n\n/*\n Converts a date of the Jalali calendar to the Julian Day number.\n @param jy Jalali year (1 to 3100)\n @param jm Jalali month (1 to 12)\n @param jd Jalali day (1 to 29/31)\n @return Julian Day number\n */\nfunction gregorianToJulian(gy: number, gm: number, gd: number) {\n let d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod(gm + 9, 12) + 2, 5) + gd - 34840408;\n d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752;\n return d;\n}\n\n/*\n Converts the Julian Day number to a date in the Jalali calendar.\n @param julianDayNumber Julian Day number\n @return\n jalaliYear: Jalali year (1 to 3100)\n jalaliMonth: Jalali month (1 to 12)\n jalaliDay: Jalali day (1 to 29/31)\n */\nfunction julianToJalali(julianDayNumber: number) {\n let gy = julianToGregorian(julianDayNumber).getFullYear() // Calculate Gregorian year (gy).\n ,\n jalaliYear = gy - 621, r = jalCal(jalaliYear), gregorianDay = gregorianToJulian(gy, 3, r.march), jalaliDay,\n jalaliMonth, numberOfDays;\n\n // Find number of days that passed since 1 Farvardin.\n numberOfDays = julianDayNumber - gregorianDay;\n if (numberOfDays >= 0) {\n if (numberOfDays <= 185) {\n // The first 6 months.\n jalaliMonth = 1 + div(numberOfDays, 31);\n jalaliDay = mod(numberOfDays, 31) + 1;\n return new NgbDate(jalaliYear, jalaliMonth, jalaliDay);\n } else {\n // The remaining months.\n numberOfDays -= 186;\n }\n } else {\n // Previous Jalali year.\n jalaliYear -= 1;\n numberOfDays += 179;\n if (r.leap === 1) {\n numberOfDays += 1;\n }\n }\n jalaliMonth = 7 + div(numberOfDays, 30);\n jalaliDay = mod(numberOfDays, 30) + 1;\n\n return new NgbDate(jalaliYear, jalaliMonth, jalaliDay);\n}\n\n/*\n Converts a date of the Jalali calendar to the Julian Day number.\n @param jYear Jalali year (1 to 3100)\n @param jMonth Jalali month (1 to 12)\n @param jDay Jalali day (1 to 29/31)\n @return Julian Day number\n */\nfunction jalaliToJulian(jYear: number, jMonth: number, jDay: number) {\n let r = jalCal(jYear);\n return gregorianToJulian(r.gy, 3, r.march) + (jMonth - 1) * 31 - div(jMonth, 7) * (jMonth - 7) + jDay - 1;\n}\n\n/**\n * Returns the number of days in a specific jalali month.\n */\nfunction getDaysPerMonth(month: number, year: number): number {\n if (month <= 6) {\n return 31;\n }\n if (month <= 11) {\n return 30;\n }\n if (jalCal(year).leap === 0) {\n return 30;\n }\n return 29;\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDate} from '../ngb-date';\nimport {NgbCalendar, NgbPeriod} from '../ngb-calendar';\nimport {isInteger} from '../../util/util';\n\nimport {fromGregorian, setJalaliDay, setJalaliMonth, setJalaliYear, toGregorian} from './jalali';\n\n@Injectable()\nexport class NgbCalendarPersian extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date = setJalaliYear(date, date.year + number);\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = setJalaliMonth(date, date.month + number);\n date.day = 1;\n return date;\n case 'd':\n return setJalaliDay(date, date.day + number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n const date = week[thursdayIndex];\n\n const jsDate = toGregorian(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n const startDate = toGregorian(new NgbDate(date.year, 1, 1));\n return Math.floor(Math.round((time - startDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return fromGregorian(new Date()); }\n\n isValid(date: NgbDate): boolean {\n return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) &&\n !isNaN(toGregorian(date).getTime());\n }\n}\n","import {NgbDate} from '../ngb-date';\nimport {NgbDateStruct} from '../ngb-date-struct';\n\nconst PARTS_PER_HOUR = 1080;\nconst PARTS_PER_DAY = 24 * PARTS_PER_HOUR;\nconst PARTS_FRACTIONAL_MONTH = 12 * PARTS_PER_HOUR + 793;\nconst PARTS_PER_MONTH = 29 * PARTS_PER_DAY + PARTS_FRACTIONAL_MONTH;\nconst BAHARAD = 11 * PARTS_PER_HOUR + 204;\nconst HEBREW_DAY_ON_JAN_1_1970 = 2092591;\nconst GREGORIAN_EPOCH = 1721425.5;\n\nfunction isGregorianLeapYear(year: number): boolean {\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n}\n\nfunction numberOfFirstDayInYear(year: number): number {\n let monthsBeforeYear = Math.floor((235 * year - 234) / 19);\n let fractionalMonthsBeforeYear = monthsBeforeYear * PARTS_FRACTIONAL_MONTH + BAHARAD;\n let dayNumber = monthsBeforeYear * 29 + Math.floor(fractionalMonthsBeforeYear / PARTS_PER_DAY);\n let timeOfDay = fractionalMonthsBeforeYear % PARTS_PER_DAY;\n\n let dayOfWeek = dayNumber % 7; // 0 == Monday\n\n if (dayOfWeek === 2 || dayOfWeek === 4 || dayOfWeek === 6) {\n dayNumber++;\n dayOfWeek = dayNumber % 7;\n }\n if (dayOfWeek === 1 && timeOfDay > 15 * PARTS_PER_HOUR + 204 && !isHebrewLeapYear(year)) {\n dayNumber += 2;\n } else if (dayOfWeek === 0 && timeOfDay > 21 * PARTS_PER_HOUR + 589 && isHebrewLeapYear(year - 1)) {\n dayNumber++;\n }\n return dayNumber;\n}\n\nfunction getDaysInGregorianMonth(month: number, year: number): number {\n let days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n if (isGregorianLeapYear(year)) {\n days[1]++;\n }\n return days[month - 1];\n}\n\nfunction getHebrewMonths(year: number): number {\n return isHebrewLeapYear(year) ? 13 : 12;\n}\n\n/**\n * Returns the number of days in a specific Hebrew year.\n * `year` is any Hebrew year.\n */\nfunction getDaysInHebrewYear(year: number): number {\n return numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year);\n}\n\nexport function isHebrewLeapYear(year: number): boolean {\n let b = (year * 12 + 17) % 19;\n return b >= ((b < 0) ? -7 : 12);\n}\n\n/**\n * Returns the number of days in a specific Hebrew month.\n * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months.\n * `year` is any Hebrew year.\n */\nexport function getDaysInHebrewMonth(month: number, year: number): number {\n let yearLength = numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year);\n let yearType = (yearLength <= 380 ? yearLength : (yearLength - 30)) - 353;\n let leapYear = isHebrewLeapYear(year);\n let daysInMonth = leapYear ? [30, 29, 29, 29, 30, 30, 29, 30, 29, 30, 29, 30, 29] :\n [30, 29, 29, 29, 30, 29, 30, 29, 30, 29, 30, 29];\n if (yearType > 0) {\n daysInMonth[2]++; // Kislev gets an extra day in normal or complete years.\n }\n if (yearType > 1) {\n daysInMonth[1]++; // Heshvan gets an extra day in complete years only.\n }\n return daysInMonth[month - 1];\n}\n\nexport function getDayNumberInHebrewYear(date: NgbDate): number {\n let numberOfDay = 0;\n for (let i = 1; i < date.month; i++) {\n numberOfDay += getDaysInHebrewMonth(i, date.year);\n }\n return numberOfDay + date.day;\n}\n\nexport function setHebrewMonth(date: NgbDate, val: number): NgbDate {\n let after = val >= 0;\n if (!after) {\n val = -val;\n }\n while (val > 0) {\n if (after) {\n if (val > getHebrewMonths(date.year) - date.month) {\n val -= getHebrewMonths(date.year) - date.month + 1;\n date.year++;\n date.month = 1;\n } else {\n date.month += val;\n val = 0;\n }\n } else {\n if (val >= date.month) {\n date.year--;\n val -= date.month;\n date.month = getHebrewMonths(date.year);\n } else {\n date.month -= val;\n val = 0;\n }\n }\n }\n return date;\n}\n\nexport function setHebrewDay(date: NgbDate, val: number): NgbDate {\n let after = val >= 0;\n if (!after) {\n val = -val;\n }\n while (val > 0) {\n if (after) {\n if (val > getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date)) {\n val -= getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date) + 1;\n date.year++;\n date.month = 1;\n date.day = 1;\n } else if (val > getDaysInHebrewMonth(date.month, date.year) - date.day) {\n val -= getDaysInHebrewMonth(date.month, date.year) - date.day + 1;\n date.month++;\n date.day = 1;\n } else {\n date.day += val;\n val = 0;\n }\n } else {\n if (val >= date.day) {\n val -= date.day;\n date.month--;\n if (date.month === 0) {\n date.year--;\n date.month = getHebrewMonths(date.year);\n }\n date.day = getDaysInHebrewMonth(date.month, date.year);\n } else {\n date.day -= val;\n val = 0;\n }\n }\n }\n return date;\n}\n\n/**\n * Returns the equivalent Hebrew date value for a give input Gregorian date.\n * `gdate` is a JS Date to be converted to Hebrew date.\n */\nexport function fromGregorian(gdate: Date): NgbDate {\n const date = new Date(gdate);\n const gYear = date.getFullYear(), gMonth = date.getMonth(), gDay = date.getDate();\n let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) -\n Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) +\n Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gYear) ? -1 : -2) + gDay);\n julianDay = Math.floor(julianDay + 0.5);\n let daysSinceHebEpoch = julianDay - 347997;\n let monthsSinceHebEpoch = Math.floor(daysSinceHebEpoch * PARTS_PER_DAY / PARTS_PER_MONTH);\n let hYear = Math.floor((monthsSinceHebEpoch * 19 + 234) / 235) + 1;\n let firstDayOfThisYear = numberOfFirstDayInYear(hYear);\n let dayOfYear = daysSinceHebEpoch - firstDayOfThisYear;\n while (dayOfYear < 1) {\n hYear--;\n firstDayOfThisYear = numberOfFirstDayInYear(hYear);\n dayOfYear = daysSinceHebEpoch - firstDayOfThisYear;\n }\n let hMonth = 1;\n let hDay = dayOfYear;\n while (hDay > getDaysInHebrewMonth(hMonth, hYear)) {\n hDay -= getDaysInHebrewMonth(hMonth, hYear);\n hMonth++;\n }\n return new NgbDate(hYear, hMonth, hDay);\n}\n\n/**\n * Returns the equivalent JS date value for a given Hebrew date.\n * `hebrewDate` is an Hebrew date to be converted to Gregorian.\n */\nexport function toGregorian(hebrewDate: NgbDateStruct | NgbDate): Date {\n const hYear = hebrewDate.year;\n const hMonth = hebrewDate.month;\n const hDay = hebrewDate.day;\n let days = numberOfFirstDayInYear(hYear);\n for (let i = 1; i < hMonth; i++) {\n days += getDaysInHebrewMonth(i, hYear);\n }\n days += hDay;\n let diffDays = days - HEBREW_DAY_ON_JAN_1_1970;\n let after = diffDays >= 0;\n if (!after) {\n diffDays = -diffDays;\n }\n let gYear = 1970;\n let gMonth = 1;\n let gDay = 1;\n while (diffDays > 0) {\n if (after) {\n if (diffDays >= (isGregorianLeapYear(gYear) ? 366 : 365)) {\n diffDays -= isGregorianLeapYear(gYear) ? 366 : 365;\n gYear++;\n } else if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) {\n diffDays -= getDaysInGregorianMonth(gMonth, gYear);\n gMonth++;\n } else {\n gDay += diffDays;\n diffDays = 0;\n }\n } else {\n if (diffDays >= (isGregorianLeapYear(gYear - 1) ? 366 : 365)) {\n diffDays -= isGregorianLeapYear(gYear - 1) ? 366 : 365;\n gYear--;\n } else {\n if (gMonth > 1) {\n gMonth--;\n } else {\n gMonth = 12;\n gYear--;\n }\n if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) {\n diffDays -= getDaysInGregorianMonth(gMonth, gYear);\n } else {\n gDay = getDaysInGregorianMonth(gMonth, gYear) - diffDays + 1;\n diffDays = 0;\n }\n }\n }\n }\n return new Date(gYear, gMonth - 1, gDay);\n}\n\nexport function hebrewNumerals(numerals: number): string {\n if (!numerals) {\n return '';\n }\n const hArray0_9 = ['', '\\u05d0', '\\u05d1', '\\u05d2', '\\u05d3', '\\u05d4', '\\u05d5', '\\u05d6', '\\u05d7', '\\u05d8'];\n const hArray10_19 = [\n '\\u05d9', '\\u05d9\\u05d0', '\\u05d9\\u05d1', '\\u05d9\\u05d2', '\\u05d9\\u05d3', '\\u05d8\\u05d5', '\\u05d8\\u05d6',\n '\\u05d9\\u05d6', '\\u05d9\\u05d7', '\\u05d9\\u05d8'\n ];\n const hArray20_90 = ['', '', '\\u05db', '\\u05dc', '\\u05de', '\\u05e0', '\\u05e1', '\\u05e2', '\\u05e4', '\\u05e6'];\n const hArray100_900 = [\n '', '\\u05e7', '\\u05e8', '\\u05e9', '\\u05ea', '\\u05ea\\u05e7', '\\u05ea\\u05e8', '\\u05ea\\u05e9', '\\u05ea\\u05ea',\n '\\u05ea\\u05ea\\u05e7'\n ];\n const hArray1000_9000 = [\n '', '\\u05d0', '\\u05d1', '\\u05d1\\u05d0', '\\u05d1\\u05d1', '\\u05d4', '\\u05d4\\u05d0', '\\u05d4\\u05d1',\n '\\u05d4\\u05d1\\u05d0', '\\u05d4\\u05d1\\u05d1'\n ];\n const geresh = '\\u05f3', gershaim = '\\u05f4';\n let mem = 0;\n let result = [];\n let step = 0;\n while (numerals > 0) {\n let m = numerals % 10;\n if (step === 0) {\n mem = m;\n } else if (step === 1) {\n if (m !== 1) {\n result.unshift(hArray20_90[m], hArray0_9[mem]);\n } else {\n result.unshift(hArray10_19[mem]);\n }\n } else if (step === 2) {\n result.unshift(hArray100_900[m]);\n } else {\n if (m !== 5) {\n result.unshift(hArray1000_9000[m], geresh, ' ');\n }\n break;\n }\n numerals = Math.floor(numerals / 10);\n if (step === 0 && numerals === 0) {\n result.unshift(hArray0_9[m]);\n }\n step++;\n }\n result = result.join('').split('');\n if (result.length === 1) {\n result.push(geresh);\n } else if (result.length > 1) {\n result.splice(result.length - 1, 0, gershaim);\n }\n return result.join('');\n}\n","import {NgbDate} from '../ngb-date';\nimport {fromJSDate, NgbCalendar, NgbPeriod, toJSDate} from '../ngb-calendar';\nimport {Injectable} from '@angular/core';\nimport {isNumber} from '../../util/util';\nimport {\n fromGregorian,\n getDayNumberInHebrewYear,\n getDaysInHebrewMonth,\n isHebrewLeapYear,\n toGregorian,\n setHebrewDay,\n setHebrewMonth\n} from './hebrew';\n\n/**\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbCalendarHebrew extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths(year?: number) {\n if (year && isHebrewLeapYear(year)) {\n return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];\n } else {\n return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];\n }\n }\n\n getWeeksPerMonth() { return 6; }\n\n isValid(date: NgbDate): boolean {\n let b = date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day);\n b = b && date.month > 0 && date.month <= (isHebrewLeapYear(date.year) ? 13 : 12);\n b = b && date.day > 0 && date.day <= getDaysInHebrewMonth(date.month, date.year);\n return b && !isNaN(toGregorian(date).getTime());\n }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date.year += number;\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = setHebrewMonth(date, number);\n date.day = 1;\n return date;\n case 'd':\n return setHebrewDay(date, number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n const date = week[week.length - 1];\n return Math.ceil(getDayNumberInHebrewYear(date) / 7);\n }\n\n getToday(): NgbDate { return fromGregorian(new Date()); }\n\n /**\n * @since 3.4.0\n */\n toGregorian(date: NgbDate): NgbDate { return fromJSDate(toGregorian(date)); }\n\n /**\n * @since 3.4.0\n */\n fromGregorian(date: NgbDate): NgbDate { return fromGregorian(toJSDate(date)); }\n}\n","import {NgbDatepickerI18n} from '../datepicker-i18n';\nimport {NgbDateStruct} from '../../index';\nimport {hebrewNumerals, isHebrewLeapYear} from './hebrew';\nimport {Injectable} from '@angular/core';\n\n\nconst WEEKDAYS = ['שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת', 'ראשון'];\nconst MONTHS = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול'];\nconst MONTHS_LEAP =\n ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר א׳', 'אדר ב׳', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול'];\n\n/**\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbDatepickerI18nHebrew extends NgbDatepickerI18n {\n getMonthShortName(month: number, year?: number): string { return this.getMonthFullName(month, year); }\n\n getMonthFullName(month: number, year?: number): string {\n return isHebrewLeapYear(year) ? MONTHS_LEAP[month - 1] : MONTHS[month - 1];\n }\n\n getWeekdayShortName(weekday: number): string { return WEEKDAYS[weekday - 1]; }\n\n getDayAriaLabel(date: NgbDateStruct): string {\n return `${hebrewNumerals(date.day)} ${this.getMonthFullName(date.month, date.year)} ${hebrewNumerals(date.year)}`;\n }\n\n getDayNumerals(date: NgbDateStruct): string { return hebrewNumerals(date.day); }\n\n getWeekNumerals(weekNumber: number): string { return hebrewNumerals(weekNumber); }\n\n getYearNumerals(year: number): string { return hebrewNumerals(year); }\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateAdapter} from './ngb-date-adapter';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {isInteger} from '../../util/util';\n\n/**\n * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses\n * native javascript dates as a user date model.\n */\n@Injectable()\nexport class NgbDateNativeAdapter extends NgbDateAdapter {\n /**\n * Converts a native `Date` to a `NgbDateStruct`.\n */\n fromModel(date: Date): NgbDateStruct {\n return (date instanceof Date && !isNaN(date.getTime())) ? this._fromNativeDate(date) : null;\n }\n\n /**\n * Converts a `NgbDateStruct` to a native `Date`.\n */\n toModel(date: NgbDateStruct): Date {\n return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) ? this._toNativeDate(date) :\n null;\n }\n\n protected _fromNativeDate(date: Date): NgbDateStruct {\n return {year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate()};\n }\n\n protected _toNativeDate(date: NgbDateStruct): Date {\n const jsDate = new Date(date.year, date.month - 1, date.day, 12);\n // avoid 30 -> 1930 conversion\n jsDate.setFullYear(date.year);\n return jsDate;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {NgbDateNativeAdapter} from './ngb-date-native-adapter';\n\n/**\n * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates.\n *\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbDateNativeUTCAdapter extends NgbDateNativeAdapter {\n protected _fromNativeDate(date: Date): NgbDateStruct {\n return {year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate()};\n }\n\n protected _toNativeDate(date: NgbDateStruct): Date {\n const jsDate = new Date(Date.UTC(date.year, date.month - 1, date.day));\n // avoid 30 -> 1930 conversion\n jsDate.setUTCFullYear(date.year);\n return jsDate;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {NgbDatepicker} from './datepicker';\nimport {NgbDatepickerMonthView} from './datepicker-month-view';\nimport {NgbDatepickerNavigation} from './datepicker-navigation';\nimport {NgbInputDatepicker} from './datepicker-input';\nimport {NgbDatepickerDayView} from './datepicker-day-view';\nimport {NgbDatepickerNavigationSelect} from './datepicker-navigation-select';\n\nexport {NgbDatepicker, NgbDatepickerNavigateEvent} from './datepicker';\nexport {NgbInputDatepicker} from './datepicker-input';\nexport {NgbCalendar, NgbPeriod, NgbCalendarGregorian} from './ngb-calendar';\nexport {NgbCalendarIslamicCivil} from './hijri/ngb-calendar-islamic-civil';\nexport {NgbCalendarIslamicUmalqura} from './hijri/ngb-calendar-islamic-umalqura';\nexport {NgbCalendarPersian} from './jalali/ngb-calendar-persian';\nexport {NgbCalendarHebrew} from './hebrew/ngb-calendar-hebrew';\nexport {NgbDatepickerI18nHebrew} from './hebrew/datepicker-i18n-hebrew';\nexport {NgbDatepickerMonthView} from './datepicker-month-view';\nexport {NgbDatepickerDayView} from './datepicker-day-view';\nexport {NgbDatepickerNavigation} from './datepicker-navigation';\nexport {NgbDatepickerNavigationSelect} from './datepicker-navigation-select';\nexport {NgbDatepickerConfig} from './datepicker-config';\nexport {NgbDatepickerI18n} from './datepicker-i18n';\nexport {NgbDateStruct} from './ngb-date-struct';\nexport {NgbDate} from './ngb-date';\nexport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nexport {NgbDateNativeAdapter} from './adapters/ngb-date-native-adapter';\nexport {NgbDateNativeUTCAdapter} from './adapters/ngb-date-native-utc-adapter';\nexport {NgbDateParserFormatter} from './ngb-date-parser-formatter';\n\n@NgModule({\n declarations: [\n NgbDatepicker, NgbDatepickerMonthView, NgbDatepickerNavigation, NgbDatepickerNavigationSelect, NgbDatepickerDayView,\n NgbInputDatepicker\n ],\n exports: [NgbDatepicker, NgbInputDatepicker],\n imports: [CommonModule, FormsModule],\n entryComponents: [NgbDatepicker]\n})\nexport class NgbDatepickerModule {\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the dropdowns used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbDropdownConfig {\n autoClose: boolean | 'outside' | 'inside' = true;\n placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n container: null | 'body';\n}\n","import {\n ChangeDetectorRef,\n ContentChild,\n ContentChildren,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n AfterContentInit,\n OnDestroy,\n Output,\n QueryList,\n Renderer2,\n SimpleChanges,\n Optional\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {Subject, Subscription} from 'rxjs';\nimport {take} from 'rxjs/operators';\n\nimport {Placement, PlacementArray, positionElements} from '../util/positioning';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {Key} from '../util/key';\n\nimport {NgbDropdownConfig} from './dropdown-config';\n\n@Directive({selector: '.navbar'})\nexport class NgbNavbar {\n}\n\n/**\n * A directive you should put put on a dropdown item to enable keyboard navigation.\n * Arrow keys will move focus between items marked with this directive.\n *\n * @since 4.1.0\n */\n@Directive({selector: '[ngbDropdownItem]', host: {'class': 'dropdown-item', '[class.disabled]': 'disabled'}})\nexport class NgbDropdownItem {\n private _disabled = false;\n\n @Input()\n set disabled(value: boolean) {\n this._disabled = value === '' || value === true; // accept an empty attribute as true\n }\n\n get disabled(): boolean { return this._disabled; }\n\n constructor(public elementRef: ElementRef) {}\n}\n\n/**\n * A directive that wraps dropdown menu content and dropdown items.\n */\n@Directive({\n selector: '[ngbDropdownMenu]',\n host: {\n '[class.dropdown-menu]': 'true',\n '[class.show]': 'dropdown.isOpen()',\n '[attr.x-placement]': 'placement',\n '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)',\n '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)',\n '(keydown.Home)': 'dropdown.onKeyDown($event)',\n '(keydown.End)': 'dropdown.onKeyDown($event)',\n '(keydown.Enter)': 'dropdown.onKeyDown($event)',\n '(keydown.Space)': 'dropdown.onKeyDown($event)'\n }\n})\nexport class NgbDropdownMenu {\n placement: Placement = 'bottom';\n isOpen = false;\n\n @ContentChildren(NgbDropdownItem) menuItems: QueryList;\n\n constructor(@Inject(forwardRef(() => NgbDropdown)) public dropdown) {}\n}\n\n/**\n * A directive to mark an element to which dropdown menu will be anchored.\n *\n * This is a simple version of the `NgbDropdownToggle` directive.\n * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support\n * for events other than click.\n *\n * @since 1.1.0\n */\n@Directive({\n selector: '[ngbDropdownAnchor]',\n host: {'class': 'dropdown-toggle', 'aria-haspopup': 'true', '[attr.aria-expanded]': 'dropdown.isOpen()'}\n})\nexport class NgbDropdownAnchor {\n anchorEl;\n\n constructor(@Inject(forwardRef(() => NgbDropdown)) public dropdown, private _elementRef: ElementRef) {\n this.anchorEl = _elementRef.nativeElement;\n }\n\n getNativeElement() { return this._elementRef.nativeElement; }\n}\n\n/**\n * A directive to mark an element that will toggle dropdown via the `click` event.\n *\n * You can also use `NgbDropdownAnchor` as an alternative.\n */\n@Directive({\n selector: '[ngbDropdownToggle]',\n host: {\n 'class': 'dropdown-toggle',\n 'aria-haspopup': 'true',\n '[attr.aria-expanded]': 'dropdown.isOpen()',\n '(click)': 'dropdown.toggle()',\n '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)',\n '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)',\n '(keydown.Home)': 'dropdown.onKeyDown($event)',\n '(keydown.End)': 'dropdown.onKeyDown($event)'\n },\n providers: [{provide: NgbDropdownAnchor, useExisting: forwardRef(() => NgbDropdownToggle)}]\n})\nexport class NgbDropdownToggle extends NgbDropdownAnchor {\n constructor(@Inject(forwardRef(() => NgbDropdown)) dropdown, elementRef: ElementRef) {\n super(dropdown, elementRef);\n }\n}\n\n/**\n * A directive that provides contextual overlays for displaying lists of links and more.\n */\n@Directive({selector: '[ngbDropdown]', exportAs: 'ngbDropdown', host: {'[class.show]': 'isOpen()'}})\nexport class NgbDropdown implements AfterContentInit, OnDestroy {\n private _closed$ = new Subject();\n private _zoneSubscription: Subscription;\n private _bodyContainer: HTMLElement;\n\n @ContentChild(NgbDropdownMenu, {static: false}) private _menu: NgbDropdownMenu;\n @ContentChild(NgbDropdownMenu, {read: ElementRef, static: false}) private _menuElement: ElementRef;\n @ContentChild(NgbDropdownAnchor, {static: false}) private _anchor: NgbDropdownAnchor;\n\n /**\n * Indicates whether the dropdown should be closed when clicking one of dropdown items or pressing ESC.\n *\n * * `true` - the dropdown will close on both outside and inside (menu) clicks.\n * * `false` - the dropdown can only be closed manually via `close()` or `toggle()` methods.\n * * `\"inside\"` - the dropdown will close on inside menu clicks, but not outside clicks.\n * * `\"outside\"` - the dropdown will close only on the outside clicks and not on menu clicks.\n */\n @Input() autoClose: boolean | 'outside' | 'inside';\n\n /**\n * Defines whether or not the dropdown menu is opened initially.\n */\n @Input('open') _open = false;\n\n /**\n * The preferred placement of the dropdown.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * A selector specifying the element the dropdown should be appended to.\n * Currently only supports \"body\".\n *\n * @since 4.1.0\n */\n @Input() container: null | 'body';\n\n /**\n * Enable or disable the dynamic positioning. The default value is dynamic unless the dropdown is used\n * inside a Bootstrap navbar. If you need custom placement for a dropdown in a navbar, set it to\n * dynamic explicitly. See the [positioning of dropdown](#/positioning#dropdown)\n * and the [navbar demo](/#/components/dropdown/examples#navbar) for more details.\n *\n * @since 4.2.0\n */\n @Input() display: 'dynamic' | 'static';\n\n /**\n * An event fired when the dropdown is opened or closed.\n *\n * The event payload is a `boolean`:\n * * `true` - the dropdown was opened\n * * `false` - the dropdown was closed\n */\n @Output() openChange = new EventEmitter();\n\n constructor(\n private _changeDetector: ChangeDetectorRef, config: NgbDropdownConfig, @Inject(DOCUMENT) private _document: any,\n private _ngZone: NgZone, private _elementRef: ElementRef, private _renderer: Renderer2,\n @Optional() ngbNavbar: NgbNavbar) {\n this.placement = config.placement;\n this.container = config.container;\n this.autoClose = config.autoClose;\n\n this.display = ngbNavbar ? 'static' : 'dynamic';\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => { this._positionMenu(); });\n }\n\n ngAfterContentInit() {\n this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n this._applyPlacementClasses();\n if (this._open) {\n this._setCloseHandlers();\n }\n });\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.container && this._open) {\n this._applyContainer(this.container);\n }\n\n if (changes.placement && !changes.placement.isFirstChange) {\n this._applyPlacementClasses();\n }\n }\n\n /**\n * Checks if the dropdown menu is open.\n */\n isOpen(): boolean { return this._open; }\n\n /**\n * Opens the dropdown menu.\n */\n open(): void {\n if (!this._open) {\n this._open = true;\n this._applyContainer(this.container);\n this.openChange.emit(true);\n this._setCloseHandlers();\n }\n }\n\n private _setCloseHandlers() {\n const anchor = this._anchor;\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this._closed$,\n this._menu ? [this._menuElement.nativeElement] : [], anchor ? [anchor.getNativeElement()] : [],\n '.dropdown-item,.dropdown-divider');\n }\n\n /**\n * Closes the dropdown menu.\n */\n close(): void {\n if (this._open) {\n this._open = false;\n this._resetContainer();\n this._closed$.next();\n this.openChange.emit(false);\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the dropdown menu.\n */\n toggle(): void {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n ngOnDestroy() {\n this._resetContainer();\n\n this._closed$.next();\n this._zoneSubscription.unsubscribe();\n }\n\n onKeyDown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n const key = event.which;\n const itemElements = this._getMenuElements();\n\n let position = -1;\n let isEventFromItems = false;\n const isEventFromToggle = this._isEventFromToggle(event);\n\n if (!isEventFromToggle && itemElements.length) {\n itemElements.forEach((itemElement, index) => {\n if (itemElement.contains(event.target as HTMLElement)) {\n isEventFromItems = true;\n }\n if (itemElement === this._document.activeElement) {\n position = index;\n }\n });\n }\n\n // closing on Enter / Space\n if (key === Key.Space || key === Key.Enter) {\n if (isEventFromItems && (this.autoClose === true || this.autoClose === 'inside')) {\n this.close();\n }\n return;\n }\n\n // opening / navigating\n if (isEventFromToggle || isEventFromItems) {\n this.open();\n\n if (itemElements.length) {\n switch (key) {\n case Key.ArrowDown:\n position = Math.min(position + 1, itemElements.length - 1);\n break;\n case Key.ArrowUp:\n if (this._isDropup() && position === -1) {\n position = itemElements.length - 1;\n break;\n }\n position = Math.max(position - 1, 0);\n break;\n case Key.Home:\n position = 0;\n break;\n case Key.End:\n position = itemElements.length - 1;\n break;\n }\n itemElements[position].focus();\n }\n event.preventDefault();\n }\n }\n\n private _isDropup(): boolean { return this._elementRef.nativeElement.classList.contains('dropup'); }\n\n private _isEventFromToggle(event: KeyboardEvent) {\n return this._anchor.getNativeElement().contains(event.target as HTMLElement);\n }\n\n private _getMenuElements(): HTMLElement[] {\n const menu = this._menu;\n if (menu == null) {\n return [];\n }\n return menu.menuItems.filter(item => !item.disabled).map(item => item.elementRef.nativeElement);\n }\n\n private _positionMenu() {\n const menu = this._menu;\n if (this.isOpen() && menu) {\n this._applyPlacementClasses(\n this.display === 'dynamic' ?\n positionElements(\n this._anchor.anchorEl, this._bodyContainer || this._menuElement.nativeElement, this.placement,\n this.container === 'body') :\n this._getFirstPlacement(this.placement));\n }\n }\n\n private _getFirstPlacement(placement: PlacementArray): Placement {\n return Array.isArray(placement) ? placement[0] : placement.split(' ')[0] as Placement;\n }\n\n private _resetContainer() {\n const renderer = this._renderer;\n const menuElement = this._menuElement;\n if (menuElement) {\n const dropdownElement = this._elementRef.nativeElement;\n const dropdownMenuElement = menuElement.nativeElement;\n\n renderer.appendChild(dropdownElement, dropdownMenuElement);\n renderer.removeStyle(dropdownMenuElement, 'position');\n renderer.removeStyle(dropdownMenuElement, 'transform');\n }\n if (this._bodyContainer) {\n renderer.removeChild(this._document.body, this._bodyContainer);\n this._bodyContainer = null;\n }\n }\n\n private _applyContainer(container: null | 'body' = null) {\n this._resetContainer();\n if (container === 'body') {\n const renderer = this._renderer;\n const dropdownMenuElement = this._menuElement.nativeElement;\n const bodyContainer = this._bodyContainer = this._bodyContainer || renderer.createElement('div');\n\n // Override some styles to have the positionning working\n renderer.setStyle(bodyContainer, 'position', 'absolute');\n renderer.setStyle(dropdownMenuElement, 'position', 'static');\n renderer.setStyle(bodyContainer, 'z-index', '1050');\n\n renderer.appendChild(bodyContainer, dropdownMenuElement);\n renderer.appendChild(this._document.body, bodyContainer);\n }\n }\n\n private _applyPlacementClasses(placement?: Placement) {\n const menu = this._menu;\n if (menu) {\n if (!placement) {\n placement = this._getFirstPlacement(this.placement);\n }\n\n const renderer = this._renderer;\n const dropdownElement = this._elementRef.nativeElement;\n\n // remove the current placement classes\n renderer.removeClass(dropdownElement, 'dropup');\n renderer.removeClass(dropdownElement, 'dropdown');\n menu.placement = this.display === 'static' ? null : placement;\n\n /*\n * apply the new placement\n * in case of top use up-arrow or down-arrow otherwise\n */\n const dropdownClass = placement.search('^top') !== -1 ? 'dropup' : 'dropdown';\n renderer.addClass(dropdownElement, dropdownClass);\n\n const bodyContainer = this._bodyContainer;\n if (bodyContainer) {\n renderer.removeClass(bodyContainer, 'dropup');\n renderer.removeClass(bodyContainer, 'dropdown');\n renderer.addClass(bodyContainer, dropdownClass);\n }\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {\n NgbDropdown,\n NgbDropdownAnchor,\n NgbDropdownToggle,\n NgbDropdownMenu,\n NgbDropdownItem,\n NgbNavbar\n} from './dropdown';\n\nexport {NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem} from './dropdown';\nexport {NgbDropdownConfig} from './dropdown-config';\n\nconst NGB_DROPDOWN_DIRECTIVES =\n [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar];\n\n@NgModule({declarations: NGB_DROPDOWN_DIRECTIVES, exports: NGB_DROPDOWN_DIRECTIVES})\nexport class NgbDropdownModule {\n}\n","import {Injectable, Injector} from '@angular/core';\n\n/**\n * Options available when opening new modal windows with `NgbModal.open()` method.\n */\nexport interface NgbModalOptions {\n /**\n * `aria-labelledby` attribute value to set on the modal window.\n *\n * @since 2.2.0\n */\n ariaLabelledBy?: string;\n\n /**\n * If `true`, the backdrop element will be created for a given modal.\n *\n * Alternatively, specify `'static'` for a backdrop which doesn't close the modal on click.\n *\n * Default value is `true`.\n */\n backdrop?: boolean | 'static';\n\n /**\n * Callback right before the modal will be dismissed.\n *\n * If this function returns:\n * * `false`\n * * a promise resolved with `false`\n * * a promise that is rejected\n *\n * then the modal won't be dismissed.\n */\n beforeDismiss?: () => boolean | Promise;\n\n /**\n * If `true`, the modal will be centered vertically.\n *\n * Default value is `false`.\n *\n * @since 1.1.0\n */\n centered?: boolean;\n\n /**\n * A selector specifying the element all new modal windows should be appended to.\n *\n * If not specified, will be `body`.\n */\n container?: string;\n\n /**\n * The `Injector` to use for modal content.\n */\n injector?: Injector;\n\n /**\n * If `true`, the modal will be closed when `Escape` key is pressed\n *\n * Default value is `true`.\n */\n keyboard?: boolean;\n\n /**\n * Scrollable modal content (false by default).\n *\n * @since 5.0.0\n */\n scrollable?: boolean;\n\n /**\n * Size of a new modal window.\n */\n size?: 'sm' | 'lg' | 'xl';\n\n /**\n * A custom class to append to the modal window.\n */\n windowClass?: string;\n\n /**\n * A custom class to append to the modal backdrop.\n *\n * @since 1.1.0\n */\n backdropClass?: string;\n}\n\n/**\n * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all modals used in the application.\n*\n* @since 3.1.0\n*/\n@Injectable({providedIn: 'root'})\nexport class NgbModalConfig implements NgbModalOptions {\n backdrop: boolean | 'static' = true;\n keyboard = true;\n}\n","import {\n Injector,\n TemplateRef,\n ViewRef,\n ViewContainerRef,\n Renderer2,\n ComponentRef,\n ComponentFactoryResolver,\n ApplicationRef\n} from '@angular/core';\n\nexport class ContentRef {\n constructor(public nodes: any[], public viewRef?: ViewRef, public componentRef?: ComponentRef) {}\n}\n\nexport class PopupService {\n private _windowRef: ComponentRef;\n private _contentRef: ContentRef;\n\n constructor(\n private _type: any, private _injector: Injector, private _viewContainerRef: ViewContainerRef,\n private _renderer: Renderer2, private _componentFactoryResolver: ComponentFactoryResolver,\n private _applicationRef: ApplicationRef) {}\n\n open(content?: string | TemplateRef, context?: any): ComponentRef {\n if (!this._windowRef) {\n this._contentRef = this._getContentRef(content, context);\n this._windowRef = this._viewContainerRef.createComponent(\n this._componentFactoryResolver.resolveComponentFactory(this._type), 0, this._injector,\n this._contentRef.nodes);\n }\n\n return this._windowRef;\n }\n\n close() {\n if (this._windowRef) {\n this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView));\n this._windowRef = null;\n\n if (this._contentRef.viewRef) {\n this._applicationRef.detachView(this._contentRef.viewRef);\n this._contentRef.viewRef.destroy();\n this._contentRef = null;\n }\n }\n }\n\n private _getContentRef(content: string | TemplateRef, context?: any): ContentRef {\n if (!content) {\n return new ContentRef([]);\n } else if (content instanceof TemplateRef) {\n const viewRef = content.createEmbeddedView(context);\n this._applicationRef.attachView(viewRef);\n return new ContentRef([viewRef.rootNodes], viewRef);\n } else {\n return new ContentRef([[this._renderer.createText(`${content}`)]]);\n }\n }\n}\n","import {Injectable, Inject} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\n\nconst noop = () => {};\n\n\n\n/** Type for the callback used to revert the scrollbar compensation. */\nexport type CompensationReverter = () => void;\n\n\n\n/**\n * Utility to handle the scrollbar.\n *\n * It allows to compensate the lack of a vertical scrollbar by adding an\n * equivalent padding on the right of the body, and to remove this compensation.\n */\n@Injectable({providedIn: 'root'})\nexport class ScrollBar {\n constructor(@Inject(DOCUMENT) private _document: any) {}\n\n /**\n * Detects if a scrollbar is present and if yes, already compensates for its\n * removal by adding an equivalent padding on the right of the body.\n *\n * @return a callback used to revert the compensation (noop if there was none,\n * otherwise a function removing the padding)\n */\n compensate(): CompensationReverter { return !this._isPresent() ? noop : this._adjustBody(this._getWidth()); }\n\n /**\n * Adds a padding of the given width on the right of the body.\n *\n * @return a callback used to revert the padding to its previous value\n */\n private _adjustBody(width: number): CompensationReverter {\n const body = this._document.body;\n const userSetPadding = body.style.paddingRight;\n const paddingAmount = parseFloat(window.getComputedStyle(body)['padding-right']);\n body.style['padding-right'] = `${paddingAmount + width}px`;\n return () => body.style['padding-right'] = userSetPadding;\n }\n\n /**\n * Tells whether a scrollbar is currently present on the body.\n *\n * @return true if scrollbar is present, false otherwise\n */\n private _isPresent(): boolean {\n const rect = this._document.body.getBoundingClientRect();\n return rect.left + rect.right < window.innerWidth;\n }\n\n /**\n * Calculates and returns the width of a scrollbar.\n *\n * @return the width of a scrollbar on this page\n */\n private _getWidth(): number {\n const measurer = this._document.createElement('div');\n measurer.className = 'modal-scrollbar-measure';\n\n const body = this._document.body;\n body.appendChild(measurer);\n const width = measurer.getBoundingClientRect().width - measurer.clientWidth;\n body.removeChild(measurer);\n\n return width;\n }\n}\n","import {Component, Input} from '@angular/core';\n\n@Component({\n selector: 'ngb-modal-backdrop',\n template: '',\n host:\n {'[class]': '\"modal-backdrop fade show\" + (backdropClass ? \" \" + backdropClass : \"\")', 'style': 'z-index: 1050'}\n})\nexport class NgbModalBackdrop {\n @Input() backdropClass: string;\n}\n","import {ComponentRef} from '@angular/core';\n\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalWindow} from './modal-window';\n\nimport {ContentRef} from '../util/popup';\n\n/**\n * A reference to the currently opened (active) modal.\n *\n * Instances of this class can be injected into your component passed as modal content.\n * So you can `.close()` or `.dismiss()` the modal window from your component.\n */\nexport class NgbActiveModal {\n /**\n * Closes the modal with an optional `result` value.\n *\n * The `NgbMobalRef.result` promise will be resolved with the provided value.\n */\n close(result?: any): void {}\n\n /**\n * Dismisses the modal with an optional `reason` value.\n *\n * The `NgbModalRef.result` promise will be rejected with the provided value.\n */\n dismiss(reason?: any): void {}\n}\n\n/**\n * A reference to the newly opened modal returned by the `NgbModal.open()` method.\n */\nexport class NgbModalRef {\n private _resolve: (result?: any) => void;\n private _reject: (reason?: any) => void;\n\n /**\n * The instance of a component used for the modal content.\n *\n * When a `TemplateRef` is used as the content, will return `undefined`.\n */\n get componentInstance(): any {\n if (this._contentRef.componentRef) {\n return this._contentRef.componentRef.instance;\n }\n }\n\n /**\n * The promise that is resolved when the modal is closed and rejected when the modal is dismissed.\n */\n result: Promise;\n\n constructor(\n private _windowCmptRef: ComponentRef, private _contentRef: ContentRef,\n private _backdropCmptRef?: ComponentRef, private _beforeDismiss?: Function) {\n _windowCmptRef.instance.dismissEvent.subscribe((reason: any) => { this.dismiss(reason); });\n\n this.result = new Promise((resolve, reject) => {\n this._resolve = resolve;\n this._reject = reject;\n });\n this.result.then(null, () => {});\n }\n\n /**\n * Closes the modal with an optional `result` value.\n *\n * The `NgbMobalRef.result` promise will be resolved with the provided value.\n */\n close(result?: any): void {\n if (this._windowCmptRef) {\n this._resolve(result);\n this._removeModalElements();\n }\n }\n\n private _dismiss(reason?: any) {\n this._reject(reason);\n this._removeModalElements();\n }\n\n /**\n * Dismisses the modal with an optional `reason` value.\n *\n * The `NgbModalRef.result` promise will be rejected with the provided value.\n */\n dismiss(reason?: any): void {\n if (this._windowCmptRef) {\n if (!this._beforeDismiss) {\n this._dismiss(reason);\n } else {\n const dismiss = this._beforeDismiss();\n if (dismiss && dismiss.then) {\n dismiss.then(\n result => {\n if (result !== false) {\n this._dismiss(reason);\n }\n },\n () => {});\n } else if (dismiss !== false) {\n this._dismiss(reason);\n }\n }\n }\n }\n\n private _removeModalElements() {\n const windowNativeEl = this._windowCmptRef.location.nativeElement;\n windowNativeEl.parentNode.removeChild(windowNativeEl);\n this._windowCmptRef.destroy();\n\n if (this._backdropCmptRef) {\n const backdropNativeEl = this._backdropCmptRef.location.nativeElement;\n backdropNativeEl.parentNode.removeChild(backdropNativeEl);\n this._backdropCmptRef.destroy();\n }\n\n if (this._contentRef && this._contentRef.viewRef) {\n this._contentRef.viewRef.destroy();\n }\n\n this._windowCmptRef = null;\n this._backdropCmptRef = null;\n this._contentRef = null;\n }\n}\n","export enum ModalDismissReasons {\n BACKDROP_CLICK,\n ESC\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {getFocusableBoundaryElements} from '../util/focus-trap';\nimport {ModalDismissReasons} from './modal-dismiss-reasons';\n\n@Component({\n selector: 'ngb-modal-window',\n host: {\n '[class]': '\"modal fade show d-block\" + (windowClass ? \" \" + windowClass : \"\")',\n 'role': 'dialog',\n 'tabindex': '-1',\n '(keyup.esc)': 'escKey($event)',\n '(click)': 'backdropClick($event)',\n '[attr.aria-modal]': 'true',\n '[attr.aria-labelledby]': 'ariaLabelledBy',\n },\n template: `\n
\n
\n
\n `,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./modal.scss']\n})\nexport class NgbModalWindow implements OnInit,\n AfterViewInit, OnDestroy {\n private _elWithFocus: Element; // element that is focused prior to modal opening\n\n @Input() ariaLabelledBy: string;\n @Input() backdrop: boolean | string = true;\n @Input() centered: string;\n @Input() keyboard = true;\n @Input() scrollable: string;\n @Input() size: string;\n @Input() windowClass: string;\n\n @Output('dismiss') dismissEvent = new EventEmitter();\n\n constructor(@Inject(DOCUMENT) private _document: any, private _elRef: ElementRef) {}\n\n backdropClick($event): void {\n if (this.backdrop === true && this._elRef.nativeElement === $event.target) {\n this.dismiss(ModalDismissReasons.BACKDROP_CLICK);\n }\n }\n\n escKey($event): void {\n if (this.keyboard && !$event.defaultPrevented) {\n this.dismiss(ModalDismissReasons.ESC);\n }\n }\n\n dismiss(reason): void { this.dismissEvent.emit(reason); }\n\n ngOnInit() { this._elWithFocus = this._document.activeElement; }\n\n ngAfterViewInit() {\n if (!this._elRef.nativeElement.contains(document.activeElement)) {\n const autoFocusable = this._elRef.nativeElement.querySelector(`[ngbAutofocus]`) as HTMLElement;\n const firstFocusable = getFocusableBoundaryElements(this._elRef.nativeElement)[0];\n\n const elementToFocus = autoFocusable || firstFocusable || this._elRef.nativeElement;\n elementToFocus.focus();\n }\n }\n\n ngOnDestroy() {\n const body = this._document.body;\n const elWithFocus = this._elWithFocus;\n\n let elementToFocus;\n if (elWithFocus && elWithFocus['focus'] && body.contains(elWithFocus)) {\n elementToFocus = elWithFocus;\n } else {\n elementToFocus = body;\n }\n elementToFocus.focus();\n this._elWithFocus = null;\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ApplicationRef,\n ComponentFactoryResolver,\n ComponentRef,\n Inject,\n Injectable,\n Injector,\n RendererFactory2,\n TemplateRef,\n} from '@angular/core';\nimport {Subject} from 'rxjs';\n\nimport {ngbFocusTrap} from '../util/focus-trap';\nimport {ContentRef} from '../util/popup';\nimport {ScrollBar} from '../util/scrollbar';\nimport {isDefined, isString} from '../util/util';\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalOptions} from './modal-config';\nimport {NgbActiveModal, NgbModalRef} from './modal-ref';\nimport {NgbModalWindow} from './modal-window';\n\n@Injectable({providedIn: 'root'})\nexport class NgbModalStack {\n private _activeWindowCmptHasChanged = new Subject();\n private _ariaHiddenValues: Map = new Map();\n private _backdropAttributes = ['backdropClass'];\n private _modalRefs: NgbModalRef[] = [];\n private _windowAttributes =\n ['ariaLabelledBy', 'backdrop', 'centered', 'keyboard', 'scrollable', 'size', 'windowClass'];\n private _windowCmpts: ComponentRef[] = [];\n\n constructor(\n private _applicationRef: ApplicationRef, private _injector: Injector, @Inject(DOCUMENT) private _document: any,\n private _scrollBar: ScrollBar, private _rendererFactory: RendererFactory2) {\n // Trap focus on active WindowCmpt\n this._activeWindowCmptHasChanged.subscribe(() => {\n if (this._windowCmpts.length) {\n const activeWindowCmpt = this._windowCmpts[this._windowCmpts.length - 1];\n ngbFocusTrap(activeWindowCmpt.location.nativeElement, this._activeWindowCmptHasChanged);\n this._revertAriaHidden();\n this._setAriaHidden(activeWindowCmpt.location.nativeElement);\n }\n });\n }\n\n open(moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, options): NgbModalRef {\n const containerEl =\n isDefined(options.container) ? this._document.querySelector(options.container) : this._document.body;\n const renderer = this._rendererFactory.createRenderer(null, null);\n\n const revertPaddingForScrollBar = this._scrollBar.compensate();\n const removeBodyClass = () => {\n if (!this._modalRefs.length) {\n renderer.removeClass(this._document.body, 'modal-open');\n this._revertAriaHidden();\n }\n };\n\n if (!containerEl) {\n throw new Error(`The specified modal container \"${options.container || 'body'}\" was not found in the DOM.`);\n }\n\n const activeModal = new NgbActiveModal();\n const contentRef =\n this._getContentRef(moduleCFR, options.injector || contentInjector, content, activeModal, options);\n\n let backdropCmptRef: ComponentRef =\n options.backdrop !== false ? this._attachBackdrop(moduleCFR, containerEl) : null;\n let windowCmptRef: ComponentRef = this._attachWindowComponent(moduleCFR, containerEl, contentRef);\n let ngbModalRef: NgbModalRef = new NgbModalRef(windowCmptRef, contentRef, backdropCmptRef, options.beforeDismiss);\n\n this._registerModalRef(ngbModalRef);\n this._registerWindowCmpt(windowCmptRef);\n ngbModalRef.result.then(revertPaddingForScrollBar, revertPaddingForScrollBar);\n ngbModalRef.result.then(removeBodyClass, removeBodyClass);\n activeModal.close = (result: any) => { ngbModalRef.close(result); };\n activeModal.dismiss = (reason: any) => { ngbModalRef.dismiss(reason); };\n\n this._applyWindowOptions(windowCmptRef.instance, options);\n if (this._modalRefs.length === 1) {\n renderer.addClass(this._document.body, 'modal-open');\n }\n\n if (backdropCmptRef && backdropCmptRef.instance) {\n this._applyBackdropOptions(backdropCmptRef.instance, options);\n }\n return ngbModalRef;\n }\n\n dismissAll(reason?: any) { this._modalRefs.forEach(ngbModalRef => ngbModalRef.dismiss(reason)); }\n\n hasOpenModals(): boolean { return this._modalRefs.length > 0; }\n\n private _attachBackdrop(moduleCFR: ComponentFactoryResolver, containerEl: any): ComponentRef {\n let backdropFactory = moduleCFR.resolveComponentFactory(NgbModalBackdrop);\n let backdropCmptRef = backdropFactory.create(this._injector);\n this._applicationRef.attachView(backdropCmptRef.hostView);\n containerEl.appendChild(backdropCmptRef.location.nativeElement);\n return backdropCmptRef;\n }\n\n private _attachWindowComponent(moduleCFR: ComponentFactoryResolver, containerEl: any, contentRef: any):\n ComponentRef {\n let windowFactory = moduleCFR.resolveComponentFactory(NgbModalWindow);\n let windowCmptRef = windowFactory.create(this._injector, contentRef.nodes);\n this._applicationRef.attachView(windowCmptRef.hostView);\n containerEl.appendChild(windowCmptRef.location.nativeElement);\n return windowCmptRef;\n }\n\n private _applyWindowOptions(windowInstance: NgbModalWindow, options: Object): void {\n this._windowAttributes.forEach((optionName: string) => {\n if (isDefined(options[optionName])) {\n windowInstance[optionName] = options[optionName];\n }\n });\n }\n\n private _applyBackdropOptions(backdropInstance: NgbModalBackdrop, options: Object): void {\n this._backdropAttributes.forEach((optionName: string) => {\n if (isDefined(options[optionName])) {\n backdropInstance[optionName] = options[optionName];\n }\n });\n }\n\n private _getContentRef(\n moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, activeModal: NgbActiveModal,\n options: NgbModalOptions): ContentRef {\n if (!content) {\n return new ContentRef([]);\n } else if (content instanceof TemplateRef) {\n return this._createFromTemplateRef(content, activeModal);\n } else if (isString(content)) {\n return this._createFromString(content);\n } else {\n return this._createFromComponent(moduleCFR, contentInjector, content, activeModal, options);\n }\n }\n\n private _createFromTemplateRef(content: TemplateRef, activeModal: NgbActiveModal): ContentRef {\n const context = {\n $implicit: activeModal,\n close(result) { activeModal.close(result); },\n dismiss(reason) { activeModal.dismiss(reason); }\n };\n const viewRef = content.createEmbeddedView(context);\n this._applicationRef.attachView(viewRef);\n return new ContentRef([viewRef.rootNodes], viewRef);\n }\n\n private _createFromString(content: string): ContentRef {\n const component = this._document.createTextNode(`${content}`);\n return new ContentRef([[component]]);\n }\n\n private _createFromComponent(\n moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, context: NgbActiveModal,\n options: NgbModalOptions): ContentRef {\n const contentCmptFactory = moduleCFR.resolveComponentFactory(content);\n const modalContentInjector =\n Injector.create({providers: [{provide: NgbActiveModal, useValue: context}], parent: contentInjector});\n const componentRef = contentCmptFactory.create(modalContentInjector);\n const componentNativeEl = componentRef.location.nativeElement;\n if (options.scrollable) {\n (componentNativeEl as HTMLElement).classList.add('component-host-scrollable');\n }\n this._applicationRef.attachView(componentRef.hostView);\n // FIXME: we should here get rid of the component nativeElement\n // and use `[Array.from(componentNativeEl.childNodes)]` instead and remove the above CSS class.\n return new ContentRef([[componentNativeEl]], componentRef.hostView, componentRef);\n }\n\n private _setAriaHidden(element: Element) {\n const parent = element.parentElement;\n if (parent && element !== this._document.body) {\n Array.from(parent.children).forEach(sibling => {\n if (sibling !== element && sibling.nodeName !== 'SCRIPT') {\n this._ariaHiddenValues.set(sibling, sibling.getAttribute('aria-hidden'));\n sibling.setAttribute('aria-hidden', 'true');\n }\n });\n\n this._setAriaHidden(parent);\n }\n }\n\n private _revertAriaHidden() {\n this._ariaHiddenValues.forEach((value, element) => {\n if (value) {\n element.setAttribute('aria-hidden', value);\n } else {\n element.removeAttribute('aria-hidden');\n }\n });\n this._ariaHiddenValues.clear();\n }\n\n private _registerModalRef(ngbModalRef: NgbModalRef) {\n const unregisterModalRef = () => {\n const index = this._modalRefs.indexOf(ngbModalRef);\n if (index > -1) {\n this._modalRefs.splice(index, 1);\n }\n };\n this._modalRefs.push(ngbModalRef);\n ngbModalRef.result.then(unregisterModalRef, unregisterModalRef);\n }\n\n private _registerWindowCmpt(ngbWindowCmpt: ComponentRef) {\n this._windowCmpts.push(ngbWindowCmpt);\n this._activeWindowCmptHasChanged.next();\n\n ngbWindowCmpt.onDestroy(() => {\n const index = this._windowCmpts.indexOf(ngbWindowCmpt);\n if (index > -1) {\n this._windowCmpts.splice(index, 1);\n this._activeWindowCmptHasChanged.next();\n }\n });\n }\n}\n","import {Injectable, Injector, ComponentFactoryResolver} from '@angular/core';\n\nimport {NgbModalOptions, NgbModalConfig} from './modal-config';\nimport {NgbModalRef} from './modal-ref';\nimport {NgbModalStack} from './modal-stack';\n\n/**\n * A service for opening modal windows.\n *\n * Creating a modal is straightforward: create a component or a template and pass it as an argument to\n * the `.open()` method.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbModal {\n constructor(\n private _moduleCFR: ComponentFactoryResolver, private _injector: Injector, private _modalStack: NgbModalStack,\n private _config: NgbModalConfig) {}\n\n /**\n * Opens a new modal window with the specified content and supplied options.\n *\n * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content,\n * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then\n * use `NgbActiveModal` methods to close / dismiss modals from \"inside\" of your component.\n *\n * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options.\n */\n open(content: any, options: NgbModalOptions = {}): NgbModalRef {\n const combinedOptions = Object.assign({}, this._config, options);\n return this._modalStack.open(this._moduleCFR, this._injector, content, combinedOptions);\n }\n\n /**\n * Dismisses all currently displayed modal windows with the supplied reason.\n *\n * @since 3.1.0\n */\n dismissAll(reason?: any) { this._modalStack.dismissAll(reason); }\n\n /**\n * Indicates if there are currently any open modal windows in the application.\n *\n * @since 3.3.0\n */\n hasOpenModals(): boolean { return this._modalStack.hasOpenModals(); }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbModal} from './modal';\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalWindow} from './modal-window';\n\nexport {NgbModal} from './modal';\nexport {NgbModalConfig, NgbModalOptions} from './modal-config';\nexport {NgbModalRef, NgbActiveModal} from './modal-ref';\nexport {ModalDismissReasons} from './modal-dismiss-reasons';\n\n@NgModule({\n declarations: [NgbModalBackdrop, NgbModalWindow],\n entryComponents: [NgbModalBackdrop, NgbModalWindow],\n providers: [NgbModal]\n})\nexport class NgbModalModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the paginations used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbPaginationConfig {\n disabled = false;\n boundaryLinks = false;\n directionLinks = true;\n ellipses = true;\n maxSize = 0;\n pageSize = 10;\n rotate = false;\n size: 'sm' | 'lg';\n}\n","import {\n Component,\n ContentChild,\n Directive,\n EventEmitter,\n Input,\n Output,\n OnChanges,\n ChangeDetectionStrategy,\n SimpleChanges,\n TemplateRef\n} from '@angular/core';\nimport {getValueInRange, isNumber} from '../util/util';\nimport {NgbPaginationConfig} from './pagination-config';\n\n/**\n * A context for the\n * * `NgbPaginationFirst`\n * * `NgbPaginationPrevious`\n * * `NgbPaginationNext`\n * * `NgbPaginationLast`\n * * `NgbPaginationEllipsis`\n *\n * link templates in case you want to override one.\n *\n * @since 4.1.0\n */\nexport interface NgbPaginationLinkContext {\n /**\n * The currently selected page number\n */\n currentPage: number;\n\n /**\n * If `true`, the current link is disabled\n */\n disabled: boolean;\n}\n\n/**\n * A context for the `NgbPaginationNumber` link template in case you want to override one.\n *\n * Extends `NgbPaginationLinkContext`.\n *\n * @since 4.1.0\n */\nexport interface NgbPaginationNumberContext extends NgbPaginationLinkContext {\n /**\n * The page number, displayed by the current page link.\n */\n $implicit: number;\n}\n\n/**\n * A directive to match the 'ellipsis' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationEllipsis]'})\nexport class NgbPaginationEllipsis {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'first' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationFirst]'})\nexport class NgbPaginationFirst {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'last' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationLast]'})\nexport class NgbPaginationLast {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'next' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationNext]'})\nexport class NgbPaginationNext {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the page 'number' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationNumber]'})\nexport class NgbPaginationNumber {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'previous' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationPrevious]'})\nexport class NgbPaginationPrevious {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A component that displays page numbers and allows to customize them in several ways.\n */\n@Component({\n selector: 'ngb-pagination',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {'role': 'navigation'},\n template: `\n ««\n «\n »\n »»\n ...\n \n {{ page }}\n (current)\n \n \n `\n})\nexport class NgbPagination implements OnChanges {\n pageCount = 0;\n pages: number[] = [];\n\n @ContentChild(NgbPaginationEllipsis, {static: false}) tplEllipsis: NgbPaginationEllipsis;\n @ContentChild(NgbPaginationFirst, {static: false}) tplFirst: NgbPaginationFirst;\n @ContentChild(NgbPaginationLast, {static: false}) tplLast: NgbPaginationLast;\n @ContentChild(NgbPaginationNext, {static: false}) tplNext: NgbPaginationNext;\n @ContentChild(NgbPaginationNumber, {static: false}) tplNumber: NgbPaginationNumber;\n @ContentChild(NgbPaginationPrevious, {static: false}) tplPrevious: NgbPaginationPrevious;\n\n /**\n * If `true`, pagination links will be disabled.\n */\n @Input() disabled: boolean;\n\n /**\n * If `true`, the \"First\" and \"Last\" page links are shown.\n */\n @Input() boundaryLinks: boolean;\n\n /**\n * If `true`, the \"Next\" and \"Previous\" page links are shown.\n */\n @Input() directionLinks: boolean;\n\n /**\n * If `true`, the ellipsis symbols and first/last page numbers will be shown when `maxSize` > number of pages.\n */\n @Input() ellipses: boolean;\n\n /**\n * Whether to rotate pages when `maxSize` > number of pages.\n *\n * The current page always stays in the middle if `true`.\n */\n @Input() rotate: boolean;\n\n /**\n * The number of items in your paginated collection.\n *\n * Note, that this is not the number of pages. Page numbers are calculated dynamically based on\n * `collectionSize` and `pageSize`. Ex. if you have 100 items in your collection and displaying 20 items per page,\n * you'll end up with 5 pages.\n */\n @Input() collectionSize: number;\n\n /**\n * The maximum number of pages to display.\n */\n @Input() maxSize: number;\n\n /**\n * The current page.\n *\n * Page numbers start with `1`.\n */\n @Input() page = 1;\n\n /**\n * The number of items per page.\n */\n @Input() pageSize: number;\n\n /**\n * An event fired when the page is changed. Will fire only if collection size is set and all values are valid.\n *\n * Event payload is the number of the newly selected page.\n *\n * Page numbers start with `1`.\n */\n @Output() pageChange = new EventEmitter(true);\n\n /**\n * The pagination display size.\n *\n * Bootstrap currently supports small and large sizes.\n */\n @Input() size: 'sm' | 'lg';\n\n constructor(config: NgbPaginationConfig) {\n this.disabled = config.disabled;\n this.boundaryLinks = config.boundaryLinks;\n this.directionLinks = config.directionLinks;\n this.ellipses = config.ellipses;\n this.maxSize = config.maxSize;\n this.pageSize = config.pageSize;\n this.rotate = config.rotate;\n this.size = config.size;\n }\n\n hasPrevious(): boolean { return this.page > 1; }\n\n hasNext(): boolean { return this.page < this.pageCount; }\n\n nextDisabled(): boolean { return !this.hasNext() || this.disabled; }\n\n previousDisabled(): boolean { return !this.hasPrevious() || this.disabled; }\n\n selectPage(pageNumber: number): void { this._updatePages(pageNumber); }\n\n ngOnChanges(changes: SimpleChanges): void { this._updatePages(this.page); }\n\n isEllipsis(pageNumber): boolean { return pageNumber === -1; }\n\n /**\n * Appends ellipses and first/last page number to the displayed pages\n */\n private _applyEllipses(start: number, end: number) {\n if (this.ellipses) {\n if (start > 0) {\n if (start > 1) {\n this.pages.unshift(-1);\n }\n this.pages.unshift(1);\n }\n if (end < this.pageCount) {\n if (end < (this.pageCount - 1)) {\n this.pages.push(-1);\n }\n this.pages.push(this.pageCount);\n }\n }\n }\n\n /**\n * Rotates page numbers based on maxSize items visible.\n * Currently selected page stays in the middle:\n *\n * Ex. for selected page = 6:\n * [5,*6*,7] for maxSize = 3\n * [4,5,*6*,7] for maxSize = 4\n */\n private _applyRotation(): [number, number] {\n let start = 0;\n let end = this.pageCount;\n let leftOffset = Math.floor(this.maxSize / 2);\n let rightOffset = this.maxSize % 2 === 0 ? leftOffset - 1 : leftOffset;\n\n if (this.page <= leftOffset) {\n // very beginning, no rotation -> [0..maxSize]\n end = this.maxSize;\n } else if (this.pageCount - this.page < leftOffset) {\n // very end, no rotation -> [len-maxSize..len]\n start = this.pageCount - this.maxSize;\n } else {\n // rotate\n start = this.page - leftOffset - 1;\n end = this.page + rightOffset;\n }\n\n return [start, end];\n }\n\n /**\n * Paginates page numbers based on maxSize items per page.\n */\n private _applyPagination(): [number, number] {\n let page = Math.ceil(this.page / this.maxSize) - 1;\n let start = page * this.maxSize;\n let end = start + this.maxSize;\n\n return [start, end];\n }\n\n private _setPageInRange(newPageNo) {\n const prevPageNo = this.page;\n this.page = getValueInRange(newPageNo, this.pageCount, 1);\n\n if (this.page !== prevPageNo && isNumber(this.collectionSize)) {\n this.pageChange.emit(this.page);\n }\n }\n\n private _updatePages(newPage: number) {\n this.pageCount = Math.ceil(this.collectionSize / this.pageSize);\n\n if (!isNumber(this.pageCount)) {\n this.pageCount = 0;\n }\n\n // fill-in model needed to render pages\n this.pages.length = 0;\n for (let i = 1; i <= this.pageCount; i++) {\n this.pages.push(i);\n }\n\n // set page within 1..max range\n this._setPageInRange(newPage);\n\n // apply maxSize if necessary\n if (this.maxSize > 0 && this.pageCount > this.maxSize) {\n let start = 0;\n let end = this.pageCount;\n\n // either paginating or rotating page numbers\n if (this.rotate) {\n [start, end] = this._applyRotation();\n } else {\n [start, end] = this._applyPagination();\n }\n\n this.pages = this.pages.slice(start, end);\n\n // adding ellipses\n this._applyEllipses(start, end);\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {\n NgbPagination,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination';\n\nexport {\n NgbPagination,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination';\nexport {NgbPaginationConfig} from './pagination-config';\n\nconst DIRECTIVES = [\n NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber,\n NgbPaginationPrevious\n];\n\n@NgModule({declarations: DIRECTIVES, exports: DIRECTIVES, imports: [CommonModule]})\nexport class NgbPaginationModule {\n}\n","import {Observable, merge} from 'rxjs';\nimport {share, filter, delay, map} from 'rxjs/operators';\n\nexport class Trigger {\n constructor(public open: string, public close?: string) {\n if (!close) {\n this.close = open;\n }\n }\n\n isManual() { return this.open === 'manual' || this.close === 'manual'; }\n}\n\nconst DEFAULT_ALIASES = {\n 'hover': ['mouseenter', 'mouseleave'],\n 'focus': ['focusin', 'focusout'],\n};\n\nexport function parseTriggers(triggers: string, aliases = DEFAULT_ALIASES): Trigger[] {\n const trimmedTriggers = (triggers || '').trim();\n\n if (trimmedTriggers.length === 0) {\n return [];\n }\n\n const parsedTriggers = trimmedTriggers.split(/\\s+/).map(trigger => trigger.split(':')).map((triggerPair) => {\n let alias = aliases[triggerPair[0]] || triggerPair;\n return new Trigger(alias[0], alias[1]);\n });\n\n const manualTriggers = parsedTriggers.filter(triggerPair => triggerPair.isManual());\n\n if (manualTriggers.length > 1) {\n throw 'Triggers parse error: only one manual trigger is allowed';\n }\n\n if (manualTriggers.length === 1 && parsedTriggers.length > 1) {\n throw 'Triggers parse error: manual trigger can\\'t be mixed with other triggers';\n }\n\n return parsedTriggers;\n}\n\nexport function observeTriggers(renderer: any, nativeElement: any, triggers: Trigger[], isOpenedFn: () => boolean) {\n return new Observable(subscriber => {\n const listeners = [];\n const openFn = () => subscriber.next(true);\n const closeFn = () => subscriber.next(false);\n const toggleFn = () => subscriber.next(!isOpenedFn());\n\n triggers.forEach((trigger: Trigger) => {\n if (trigger.open === trigger.close) {\n listeners.push(renderer.listen(nativeElement, trigger.open, toggleFn));\n } else {\n listeners.push(\n renderer.listen(nativeElement, trigger.open, openFn),\n renderer.listen(nativeElement, trigger.close, closeFn));\n }\n });\n\n return () => { listeners.forEach(unsubscribeFn => unsubscribeFn()); };\n });\n}\n\nconst delayOrNoop = (time: number) => time > 0 ? delay(time) : (a: Observable) => a;\n\nexport function triggerDelay(openDelay: number, closeDelay: number, isOpenedFn: () => boolean) {\n return (input$: Observable) => {\n let pending = null;\n const filteredInput$ = input$.pipe(\n map(open => ({open})), filter(event => {\n const currentlyOpen = isOpenedFn();\n if (currentlyOpen !== event.open && (!pending || pending.open === currentlyOpen)) {\n pending = event;\n return true;\n }\n if (pending && pending.open !== event.open) {\n pending = null;\n }\n return false;\n }),\n share());\n const delayedOpen$ = filteredInput$.pipe(filter(event => event.open), delayOrNoop(openDelay));\n const delayedClose$ = filteredInput$.pipe(filter(event => !event.open), delayOrNoop(closeDelay));\n return merge(delayedOpen$, delayedClose$)\n .pipe(\n filter(event => {\n if (event === pending) {\n pending = null;\n return event.open !== isOpenedFn();\n }\n return false;\n }),\n map(event => event.open));\n };\n}\n\nexport function listenToTriggers(\n renderer: any, nativeElement: any, triggers: string, isOpenedFn: () => boolean, openFn, closeFn, openDelay = 0,\n closeDelay = 0) {\n const parsedTriggers = parseTriggers(triggers);\n\n if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) {\n return () => {};\n }\n\n const subscription = observeTriggers(renderer, nativeElement, parsedTriggers, isOpenedFn)\n .pipe(triggerDelay(openDelay, closeDelay, isOpenedFn))\n .subscribe(open => (open ? openFn() : closeFn()));\n\n return () => subscription.unsubscribe();\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the popovers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbPopoverConfig {\n autoClose: boolean | 'inside' | 'outside' = true;\n placement: PlacementArray = 'auto';\n triggers = 'click';\n container: string;\n disablePopover = false;\n popoverClass: string;\n openDelay = 0;\n closeDelay = 0;\n}\n","import {\n Component,\n Directive,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n OnChanges,\n Inject,\n Injector,\n Renderer2,\n ComponentRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n ComponentFactoryResolver,\n NgZone,\n SimpleChanges,\n ViewEncapsulation,\n ChangeDetectorRef,\n ApplicationRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {listenToTriggers} from '../util/triggers';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {positionElements, PlacementArray} from '../util/positioning';\nimport {PopupService} from '../util/popup';\n\nimport {NgbPopoverConfig} from './popover-config';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngb-popover-window',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'[class]': '\"popover\" + (popoverClass ? \" \" + popoverClass : \"\")', 'role': 'tooltip', '[id]': 'id'},\n template: `\n
\n

\n {{title}}\n \n

\n
`,\n styleUrls: ['./popover.scss']\n})\nexport class NgbPopoverWindow {\n @Input() title: undefined | string | TemplateRef;\n @Input() id: string;\n @Input() popoverClass: string;\n @Input() context: any;\n\n isTitleTemplate() { return this.title instanceof TemplateRef; }\n}\n\n/**\n * A lightweight and extensible directive for fancy popover creation.\n */\n@Directive({selector: '[ngbPopover]', exportAs: 'ngbPopover'})\nexport class NgbPopover implements OnInit, OnDestroy, OnChanges {\n /**\n * Indicates whether the popover should be closed on `Escape` key and inside/outside clicks:\n *\n * * `true` - closes on both outside and inside clicks as well as `Escape` presses\n * * `false` - disables the autoClose feature (NB: triggers still apply)\n * * `\"inside\"` - closes on inside clicks as well as Escape presses\n * * `\"outside\"` - closes on outside clicks (sometimes also achievable through triggers)\n * as well as `Escape` presses\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside';\n\n /**\n * The string content or a `TemplateRef` for the content to be displayed in the popover.\n *\n * If the title and the content are empty, the popover won't open.\n */\n @Input() ngbPopover: string | TemplateRef;\n\n /**\n * The title of the popover.\n *\n * If the title and the content are empty, the popover won't open.\n */\n @Input() popoverTitle: string | TemplateRef;\n\n /**\n * The preferred placement of the popover.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"auto\"` (same as the sequence above).\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * Specifies events that should trigger the tooltip.\n *\n * Supports a space separated list of event names.\n * For more details see the [triggers demo](#/components/popover/examples#triggers).\n */\n @Input() triggers: string;\n\n /**\n * A selector specifying the element the popover should be appended to.\n *\n * Currently only supports `body`.\n */\n @Input() container: string;\n\n /**\n * If `true`, popover is disabled and won't be displayed.\n *\n * @since 1.1.0\n */\n @Input() disablePopover: boolean;\n\n /**\n * An optional class applied to the popover window element.\n *\n * @since 2.2.0\n */\n @Input() popoverClass: string;\n\n /**\n * The opening delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() openDelay: number;\n\n /**\n * The closing delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() closeDelay: number;\n\n /**\n * An event emitted when the popover is shown. Contains no payload.\n */\n @Output() shown = new EventEmitter();\n\n /**\n * An event emitted when the popover is hidden. Contains no payload.\n */\n @Output() hidden = new EventEmitter();\n\n private _ngbPopoverWindowId = `ngb-popover-${nextId++}`;\n private _popupService: PopupService;\n private _windowRef: ComponentRef;\n private _unregisterListenersFn;\n private _zoneSubscription: any;\n private _isDisabled(): boolean {\n if (this.disablePopover) {\n return true;\n }\n if (!this.ngbPopover && !this.popoverTitle) {\n return true;\n }\n return false;\n }\n\n constructor(\n private _elementRef: ElementRef, private _renderer: Renderer2, injector: Injector,\n componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: NgbPopoverConfig,\n private _ngZone: NgZone, @Inject(DOCUMENT) private _document: any, private _changeDetector: ChangeDetectorRef,\n private _applicationRef: ApplicationRef) {\n this.autoClose = config.autoClose;\n this.placement = config.placement;\n this.triggers = config.triggers;\n this.container = config.container;\n this.disablePopover = config.disablePopover;\n this.popoverClass = config.popoverClass;\n this.openDelay = config.openDelay;\n this.closeDelay = config.closeDelay;\n this._popupService = new PopupService(\n NgbPopoverWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => {\n if (this._windowRef) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body', 'bs-popover');\n }\n });\n }\n\n /**\n * Opens the popover.\n *\n * This is considered to be a \"manual\" triggering.\n * The `context` is an optional value to be injected into the popover template when it is created.\n */\n open(context?: any) {\n if (!this._windowRef && !this._isDisabled()) {\n this._windowRef = this._popupService.open(this.ngbPopover, context);\n this._windowRef.instance.title = this.popoverTitle;\n this._windowRef.instance.context = context;\n this._windowRef.instance.popoverClass = this.popoverClass;\n this._windowRef.instance.id = this._ngbPopoverWindowId;\n\n this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbPopoverWindowId);\n\n if (this.container === 'body') {\n this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n // We need to detect changes, because we don't know where .open() might be called from.\n // Ex. opening popover from one of lifecycle hooks that run after the CD\n // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception\n this._windowRef.changeDetectorRef.detectChanges();\n\n // We need to mark for check, because popover won't work inside the OnPush component.\n // Ex. when we use expression like `{{ popover.isOpen() : 'opened' : 'closed' }}`\n // inside the template of an OnPush component and we change the popover from\n // open -> closed, the expression in question won't be updated unless we explicitly\n // mark the parent component to be checked.\n this._windowRef.changeDetectorRef.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.hidden,\n [this._windowRef.location.nativeElement]);\n this.shown.emit();\n }\n }\n\n /**\n * Closes the popover.\n *\n * This is considered to be a \"manual\" triggering of the popover.\n */\n close(): void {\n if (this._windowRef) {\n this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');\n this._popupService.close();\n this._windowRef = null;\n this.hidden.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the popover.\n *\n * This is considered to be a \"manual\" triggering of the popover.\n */\n toggle(): void {\n if (this._windowRef) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Returns `true`, if the popover is currently shown.\n */\n isOpen(): boolean { return this._windowRef != null; }\n\n ngOnInit() {\n this._unregisterListenersFn = listenToTriggers(\n this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this),\n this.close.bind(this), +this.openDelay, +this.closeDelay);\n }\n\n ngOnChanges(changes: SimpleChanges) {\n // close popover if title and content become empty, or disablePopover set to true\n if ((changes['ngbPopover'] || changes['popoverTitle'] || changes['disablePopover']) && this._isDisabled()) {\n this.close();\n }\n }\n\n ngOnDestroy() {\n this.close();\n // This check is needed as it might happen that ngOnDestroy is called before ngOnInit\n // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199\n if (this._unregisterListenersFn) {\n this._unregisterListenersFn();\n }\n this._zoneSubscription.unsubscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbPopover, NgbPopoverWindow} from './popover';\nimport {CommonModule} from '@angular/common';\n\nexport {NgbPopover} from './popover';\nexport {NgbPopoverConfig} from './popover-config';\nexport {Placement} from '../util/positioning';\n\n@NgModule({\n declarations: [NgbPopover, NgbPopoverWindow],\n exports: [NgbPopover],\n imports: [CommonModule],\n entryComponents: [NgbPopoverWindow]\n})\nexport class NgbPopoverModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the progress bars used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbProgressbarConfig {\n max = 100;\n animated = false;\n striped = false;\n type: string;\n showValue = false;\n height: string;\n}\n","import {Component, Input, ChangeDetectionStrategy} from '@angular/core';\nimport {getValueInRange} from '../util/util';\nimport {NgbProgressbarConfig} from './progressbar-config';\n\n/**\n * A directive that provides feedback on the progress of a workflow or an action.\n */\n@Component({\n selector: 'ngb-progressbar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n
\n
\n {{getPercentValue()}}%\n
\n
\n `\n})\nexport class NgbProgressbar {\n /**\n * The maximal value to be displayed in the progressbar.\n */\n @Input() max: number;\n\n /**\n * If `true`, the stripes on the progressbar are animated.\n *\n * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.\n */\n @Input() animated: boolean;\n\n /**\n * If `true`, the progress bars will be displayed as striped.\n */\n @Input() striped: boolean;\n\n /**\n * If `true`, the current percentage will be shown in the `xx%` format.\n */\n @Input() showValue: boolean;\n\n /**\n * The type of the progress bar.\n *\n * Currently Bootstrap supports `\"success\"`, `\"info\"`, `\"warning\"` or `\"danger\"`.\n */\n @Input() type: string;\n\n /**\n * The current value for the progress bar.\n *\n * Should be in the `[0, max]` range.\n */\n @Input() value = 0;\n\n /**\n * THe height of the progress bar.\n *\n * Accepts any valid CSS height values, ex. `\"2rem\"`\n */\n @Input() height: string;\n\n constructor(config: NgbProgressbarConfig) {\n this.max = config.max;\n this.animated = config.animated;\n this.striped = config.striped;\n this.type = config.type;\n this.showValue = config.showValue;\n this.height = config.height;\n }\n\n getValue() { return getValueInRange(this.value, this.max); }\n\n getPercentValue() { return 100 * this.getValue() / this.max; }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbProgressbar} from './progressbar';\n\nexport {NgbProgressbar} from './progressbar';\nexport {NgbProgressbarConfig} from './progressbar-config';\n\n@NgModule({declarations: [NgbProgressbar], exports: [NgbProgressbar], imports: [CommonModule]})\nexport class NgbProgressbarModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the ratings used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbRatingConfig {\n max = 10;\n readonly = false;\n resettable = false;\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Output,\n EventEmitter,\n OnInit,\n TemplateRef,\n OnChanges,\n SimpleChanges,\n ContentChild,\n forwardRef,\n ChangeDetectorRef\n} from '@angular/core';\nimport {NgbRatingConfig} from './rating-config';\nimport {getValueInRange} from '../util/util';\nimport {Key} from '../util/key';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\n/**\n * The context for the custom star display template defined in the `starTemplate`.\n */\nexport interface StarTemplateContext {\n /**\n * The star fill percentage, an integer in the `[0, 100]` range.\n */\n fill: number;\n\n /**\n * Index of the star, starts with `0`.\n */\n index: number;\n}\n\nconst NGB_RATING_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbRating),\n multi: true\n};\n\n/**\n * A directive that helps visualising and interacting with a star rating bar.\n */\n@Component({\n selector: 'ngb-rating',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'd-inline-flex',\n 'tabindex': '0',\n 'role': 'slider',\n 'aria-valuemin': '0',\n '[attr.aria-valuemax]': 'max',\n '[attr.aria-valuenow]': 'nextRate',\n '[attr.aria-valuetext]': 'ariaValueText()',\n '[attr.aria-disabled]': 'readonly ? true : null',\n '(blur)': 'handleBlur()',\n '(keydown)': 'handleKeyDown($event)',\n '(mouseleave)': 'reset()'\n },\n template: `\n {{ fill === 100 ? '★' : '☆' }}\n \n ({{ index < nextRate ? '*' : ' ' }})\n \n \n \n \n \n `,\n providers: [NGB_RATING_VALUE_ACCESSOR]\n})\nexport class NgbRating implements ControlValueAccessor,\n OnInit, OnChanges {\n contexts: StarTemplateContext[] = [];\n disabled = false;\n nextRate: number;\n\n\n /**\n * The maximal rating that can be given.\n */\n @Input() max: number;\n\n /**\n * The current rating. Could be a decimal value like `3.75`.\n */\n @Input() rate: number;\n\n /**\n * If `true`, the rating can't be changed.\n */\n @Input() readonly: boolean;\n\n /**\n * If `true`, the rating can be reset to `0` by mouse clicking currently set rating.\n */\n @Input() resettable: boolean;\n\n /**\n * The template to override the way each star is displayed.\n *\n * Alternatively put an `` as the only child of your `` element\n */\n @Input() starTemplate: TemplateRef;\n @ContentChild(TemplateRef, {static: false}) starTemplateFromContent: TemplateRef;\n\n /**\n * An event emitted when the user is hovering over a given rating.\n *\n * Event payload equals to the rating being hovered over.\n */\n @Output() hover = new EventEmitter();\n\n /**\n * An event emitted when the user stops hovering over a given rating.\n *\n * Event payload equals to the rating of the last item being hovered over.\n */\n @Output() leave = new EventEmitter();\n\n /**\n * An event emitted when the user selects a new rating.\n *\n * Event payload equals to the newly selected rating.\n */\n @Output() rateChange = new EventEmitter(true);\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n constructor(config: NgbRatingConfig, private _changeDetectorRef: ChangeDetectorRef) {\n this.max = config.max;\n this.readonly = config.readonly;\n }\n\n ariaValueText() { return `${this.nextRate} out of ${this.max}`; }\n\n enter(value: number): void {\n if (!this.readonly && !this.disabled) {\n this._updateState(value);\n }\n this.hover.emit(value);\n }\n\n handleBlur() { this.onTouched(); }\n\n handleClick(value: number) { this.update(this.resettable && this.rate === value ? 0 : value); }\n\n handleKeyDown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.ArrowDown:\n case Key.ArrowLeft:\n this.update(this.rate - 1);\n break;\n case Key.ArrowUp:\n case Key.ArrowRight:\n this.update(this.rate + 1);\n break;\n case Key.Home:\n this.update(0);\n break;\n case Key.End:\n this.update(this.max);\n break;\n default:\n return;\n }\n\n // note 'return' in default case\n event.preventDefault();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['rate']) {\n this.update(this.rate);\n }\n }\n\n ngOnInit(): void {\n this.contexts = Array.from({length: this.max}, (v, k) => ({fill: 0, index: k}));\n this._updateState(this.rate);\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n reset(): void {\n this.leave.emit(this.nextRate);\n this._updateState(this.rate);\n }\n\n setDisabledState(isDisabled: boolean) { this.disabled = isDisabled; }\n\n update(value: number, internalChange = true): void {\n const newRate = getValueInRange(value, this.max, 0);\n if (!this.readonly && !this.disabled && this.rate !== newRate) {\n this.rate = newRate;\n this.rateChange.emit(this.rate);\n }\n if (internalChange) {\n this.onChange(this.rate);\n this.onTouched();\n }\n this._updateState(this.rate);\n }\n\n writeValue(value) {\n this.update(value, false);\n this._changeDetectorRef.markForCheck();\n }\n\n private _getFillValue(index: number): number {\n const diff = this.nextRate - index;\n\n if (diff >= 1) {\n return 100;\n }\n if (diff < 1 && diff > 0) {\n return parseInt((diff * 100).toFixed(2), 10);\n }\n\n return 0;\n }\n\n private _updateState(nextValue: number) {\n this.nextRate = nextValue;\n this.contexts.forEach((context, index) => context.fill = this._getFillValue(index));\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbRating} from './rating';\n\nexport {NgbRating} from './rating';\nexport {NgbRatingConfig} from './rating-config';\n\n@NgModule({declarations: [NgbRating], exports: [NgbRating], imports: [CommonModule]})\nexport class NgbRatingModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbTabset`](#/components/tabset/api#NgbTabset) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the tabsets used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTabsetConfig {\n justify: 'start' | 'center' | 'end' | 'fill' | 'justified' = 'start';\n orientation: 'horizontal' | 'vertical' = 'horizontal';\n type: 'tabs' | 'pills' = 'tabs';\n}\n","import {\n Component,\n Input,\n ContentChildren,\n QueryList,\n Directive,\n TemplateRef,\n AfterContentChecked,\n Output,\n EventEmitter\n} from '@angular/core';\nimport {NgbTabsetConfig} from './tabset-config';\n\nlet nextId = 0;\n\n/**\n * A directive to wrap tab titles that need to contain HTML markup or other directives.\n *\n * Alternatively you could use the `NgbTab.title` input for string titles.\n */\n@Directive({selector: 'ng-template[ngbTabTitle]'})\nexport class NgbTabTitle {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to wrap content to be displayed in a tab.\n */\n@Directive({selector: 'ng-template[ngbTabContent]'})\nexport class NgbTabContent {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive representing an individual tab.\n */\n@Directive({selector: 'ngb-tab'})\nexport class NgbTab implements AfterContentChecked {\n /**\n * The tab identifier.\n *\n * Must be unique for the entire document for proper accessibility support.\n */\n @Input() id = `ngb-tab-${nextId++}`;\n\n /**\n * The tab title.\n *\n * Use the [`NgbTabTitle`](#/components/tabset/api#NgbTabTitle) directive for non-string titles.\n */\n @Input() title: string;\n\n /**\n * If `true`, the current tab is disabled and can't be toggled.\n */\n @Input() disabled = false;\n\n titleTpl: NgbTabTitle | null;\n contentTpl: NgbTabContent | null;\n\n @ContentChildren(NgbTabTitle, {descendants: false}) titleTpls: QueryList;\n @ContentChildren(NgbTabContent, {descendants: false}) contentTpls: QueryList;\n\n ngAfterContentChecked() {\n // We are using @ContentChildren instead of @ContentChild as in the Angular version being used\n // only @ContentChildren allows us to specify the {descendants: false} option.\n // Without {descendants: false} we are hitting bugs described in:\n // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240\n this.titleTpl = this.titleTpls.first;\n this.contentTpl = this.contentTpls.first;\n }\n}\n\n/**\n * The payload of the change event fired right before the tab change.\n */\nexport interface NgbTabChangeEvent {\n /**\n * The id of the currently active tab.\n */\n activeId: string;\n\n /**\n * The id of the newly selected tab.\n */\n nextId: string;\n\n /**\n * Calling this function will prevent tab switching.\n */\n preventDefault: () => void;\n}\n\n/**\n * A component that makes it easy to create tabbed interface.\n */\n@Component({\n selector: 'ngb-tabset',\n exportAs: 'ngbTabset',\n template: `\n \n
\n \n \n \n
\n
\n \n `\n})\nexport class NgbTabset implements AfterContentChecked {\n justifyClass: string;\n\n @ContentChildren(NgbTab) tabs: QueryList;\n\n /**\n * The identifier of the tab that should be opened **initially**.\n *\n * For subsequent tab switches use the `.select()` method and the `(tabChange)` event.\n */\n @Input() activeId: string;\n\n /**\n * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden.\n */\n @Input() destroyOnHide = true;\n\n /**\n * The horizontal alignment of the tabs with flexbox utilities.\n */\n @Input()\n set justify(className: 'start' | 'center' | 'end' | 'fill' | 'justified') {\n if (className === 'fill' || className === 'justified') {\n this.justifyClass = `nav-${className}`;\n } else {\n this.justifyClass = `justify-content-${className}`;\n }\n }\n\n /**\n * The orientation of the tabset.\n */\n @Input() orientation: 'horizontal' | 'vertical';\n\n /**\n * Type of navigation to be used for tabs.\n *\n * Currently Bootstrap supports only `\"tabs\"` and `\"pills\"`.\n *\n * Since `3.0.0` can also be an arbitrary string (ex. for custom themes).\n */\n @Input() type: 'tabs' | 'pills' | string;\n\n /**\n * A tab change event emitted right before the tab change happens.\n *\n * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details.\n */\n @Output() tabChange = new EventEmitter();\n\n constructor(config: NgbTabsetConfig) {\n this.type = config.type;\n this.justify = config.justify;\n this.orientation = config.orientation;\n }\n\n /**\n * Selects the tab with the given id and shows its associated content panel.\n *\n * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or\n * hidden depending on the `destroyOnHide` value.\n */\n select(tabId: string) {\n let selectedTab = this._getTabById(tabId);\n if (selectedTab && !selectedTab.disabled && this.activeId !== selectedTab.id) {\n let defaultPrevented = false;\n\n this.tabChange.emit(\n {activeId: this.activeId, nextId: selectedTab.id, preventDefault: () => { defaultPrevented = true; }});\n\n if (!defaultPrevented) {\n this.activeId = selectedTab.id;\n }\n }\n }\n\n ngAfterContentChecked() {\n // auto-correct activeId that might have been set incorrectly as input\n let activeTab = this._getTabById(this.activeId);\n this.activeId = activeTab ? activeTab.id : (this.tabs.length ? this.tabs.first.id : null);\n }\n\n private _getTabById(id: string): NgbTab {\n let tabsWithId: NgbTab[] = this.tabs.filter(tab => tab.id === id);\n return tabsWithId.length ? tabsWithId[0] : null;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbTabset, NgbTab, NgbTabContent, NgbTabTitle} from './tabset';\n\nexport {NgbTabset, NgbTab, NgbTabContent, NgbTabTitle, NgbTabChangeEvent} from './tabset';\nexport {NgbTabsetConfig} from './tabset-config';\n\nconst NGB_TABSET_DIRECTIVES = [NgbTabset, NgbTab, NgbTabContent, NgbTabTitle];\n\n@NgModule({declarations: NGB_TABSET_DIRECTIVES, exports: NGB_TABSET_DIRECTIVES, imports: [CommonModule]})\nexport class NgbTabsetModule {\n}\n","import {isNumber, toInteger} from '../util/util';\n\nexport class NgbTime {\n hour: number;\n minute: number;\n second: number;\n\n constructor(hour?: number, minute?: number, second?: number) {\n this.hour = toInteger(hour);\n this.minute = toInteger(minute);\n this.second = toInteger(second);\n }\n\n changeHour(step = 1) { this.updateHour((isNaN(this.hour) ? 0 : this.hour) + step); }\n\n updateHour(hour: number) {\n if (isNumber(hour)) {\n this.hour = (hour < 0 ? 24 + hour : hour) % 24;\n } else {\n this.hour = NaN;\n }\n }\n\n changeMinute(step = 1) { this.updateMinute((isNaN(this.minute) ? 0 : this.minute) + step); }\n\n updateMinute(minute: number) {\n if (isNumber(minute)) {\n this.minute = minute % 60 < 0 ? 60 + minute % 60 : minute % 60;\n this.changeHour(Math.floor(minute / 60));\n } else {\n this.minute = NaN;\n }\n }\n\n changeSecond(step = 1) { this.updateSecond((isNaN(this.second) ? 0 : this.second) + step); }\n\n updateSecond(second: number) {\n if (isNumber(second)) {\n this.second = second < 0 ? 60 + second % 60 : second % 60;\n this.changeMinute(Math.floor(second / 60));\n } else {\n this.second = NaN;\n }\n }\n\n isValid(checkSecs = true) {\n return isNumber(this.hour) && isNumber(this.minute) && (checkSecs ? isNumber(this.second) : true);\n }\n\n toString() { return `${this.hour || 0}:${this.minute || 0}:${this.second || 0}`; }\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the timepickers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTimepickerConfig {\n meridian = false;\n spinners = true;\n seconds = false;\n hourStep = 1;\n minuteStep = 1;\n secondStep = 1;\n disabled = false;\n readonlyInputs = false;\n size: 'small' | 'medium' | 'large' = 'medium';\n}\n","import {Injectable} from '@angular/core';\nimport {NgbTimeStruct} from './ngb-time-struct';\nimport {isInteger} from '../util/util';\n\nexport function NGB_DATEPICKER_TIME_ADAPTER_FACTORY() {\n return new NgbTimeStructAdapter();\n}\n\n/**\n * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and\n * any provided user time model `T`, ex. a string, a native date, etc.\n *\n * The adapter is used **only** for conversion when binding timepicker to a form control,\n * ex. `[(ngModel)]=\"userTimeModel\"`. Here `userTimeModel` can be of any type.\n *\n * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model.\n *\n * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example.\n *\n * @since 2.2.0\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY})\nexport abstract class NgbTimeAdapter {\n /**\n * Converts a user-model time of type `T` to an `NgbTimeStruct` for internal use.\n */\n abstract fromModel(value: T): NgbTimeStruct;\n\n /**\n * Converts an internal `NgbTimeStruct` time to a user-model time of type `T`.\n */\n abstract toModel(time: NgbTimeStruct): T;\n}\n\n@Injectable()\nexport class NgbTimeStructAdapter extends NgbTimeAdapter {\n /**\n * Converts a NgbTimeStruct value into NgbTimeStruct value\n */\n fromModel(time: NgbTimeStruct): NgbTimeStruct {\n return (time && isInteger(time.hour) && isInteger(time.minute)) ?\n {hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null} :\n null;\n }\n\n /**\n * Converts a NgbTimeStruct value into NgbTimeStruct value\n */\n toModel(time: NgbTimeStruct): NgbTimeStruct {\n return (time && isInteger(time.hour) && isInteger(time.minute)) ?\n {hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null} :\n null;\n }\n}\n","import {Inject, Injectable, LOCALE_ID} from '@angular/core';\nimport {FormStyle, getLocaleDayPeriods, TranslationWidth} from '@angular/common';\n\nexport function NGB_TIMEPICKER_I18N_FACTORY(locale) {\n return new NgbTimepickerI18nDefault(locale);\n}\n\n/**\n * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component.\n * The default implementation of this service honors the Angular locale, and uses the registered locale data,\n * as explained in the Angular i18n guide.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_TIMEPICKER_I18N_FACTORY, deps: [LOCALE_ID]})\nexport abstract class NgbTimepickerI18n {\n /**\n * Returns the name for the period before midday.\n */\n abstract getMorningPeriod(): string;\n\n /**\n * Returns the name for the period after midday.\n */\n abstract getAfternoonPeriod(): string;\n}\n\n@Injectable()\nexport class NgbTimepickerI18nDefault extends NgbTimepickerI18n {\n private _periods: [string, string];\n\n constructor(@Inject(LOCALE_ID) locale: string) {\n super();\n\n this._periods = getLocaleDayPeriods(locale, FormStyle.Standalone, TranslationWidth.Narrow);\n }\n\n getMorningPeriod(): string { return this._periods[0]; }\n\n getAfternoonPeriod(): string { return this._periods[1]; }\n}\n","import {\n ChangeDetectorRef,\n Component,\n forwardRef,\n Input,\n OnChanges,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {isInteger, isNumber, padNumber, toInteger} from '../util/util';\nimport {NgbTime} from './ngb-time';\nimport {NgbTimepickerConfig} from './timepicker-config';\nimport {NgbTimeAdapter} from './ngb-time-adapter';\nimport {NgbTimepickerI18n} from './timepicker-i18n';\n\nconst NGB_TIMEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbTimepicker),\n multi: true\n};\n\n/**\n * A directive that helps with wth picking hours, minutes and seconds.\n */\n@Component({\n selector: 'ngb-timepicker',\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./timepicker.scss'],\n template: `\n
\n
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
\n
\n \n
\n
\n
\n `,\n providers: [NGB_TIMEPICKER_VALUE_ACCESSOR]\n})\nexport class NgbTimepicker implements ControlValueAccessor,\n OnChanges {\n disabled: boolean;\n model: NgbTime;\n\n private _hourStep: number;\n private _minuteStep: number;\n private _secondStep: number;\n\n /**\n * Whether to display 12H or 24H mode.\n */\n @Input() meridian: boolean;\n\n /**\n * If `true`, the spinners above and below inputs are visible.\n */\n @Input() spinners: boolean;\n\n /**\n * If `true`, it is possible to select seconds.\n */\n @Input() seconds: boolean;\n\n /**\n * The number of hours to add/subtract when clicking hour spinners.\n */\n @Input()\n set hourStep(step: number) {\n this._hourStep = isInteger(step) ? step : this._config.hourStep;\n }\n\n get hourStep(): number { return this._hourStep; }\n\n /**\n * The number of minutes to add/subtract when clicking minute spinners.\n */\n @Input()\n set minuteStep(step: number) {\n this._minuteStep = isInteger(step) ? step : this._config.minuteStep;\n }\n\n get minuteStep(): number { return this._minuteStep; }\n\n /**\n * The number of seconds to add/subtract when clicking second spinners.\n */\n @Input()\n set secondStep(step: number) {\n this._secondStep = isInteger(step) ? step : this._config.secondStep;\n }\n\n get secondStep(): number { return this._secondStep; }\n\n /**\n * If `true`, the timepicker is readonly and can't be changed.\n */\n @Input() readonlyInputs: boolean;\n\n /**\n * The size of inputs and buttons.\n */\n @Input() size: 'small' | 'medium' | 'large';\n\n constructor(\n private readonly _config: NgbTimepickerConfig, private _ngbTimeAdapter: NgbTimeAdapter,\n private _cd: ChangeDetectorRef, public i18n: NgbTimepickerI18n) {\n this.meridian = _config.meridian;\n this.spinners = _config.spinners;\n this.seconds = _config.seconds;\n this.hourStep = _config.hourStep;\n this.minuteStep = _config.minuteStep;\n this.secondStep = _config.secondStep;\n this.disabled = _config.disabled;\n this.readonlyInputs = _config.readonlyInputs;\n this.size = _config.size;\n }\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n writeValue(value) {\n const structValue = this._ngbTimeAdapter.fromModel(value);\n this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime();\n if (!this.seconds && (!structValue || !isNumber(structValue.second))) {\n this.model.second = 0;\n }\n this._cd.markForCheck();\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean) { this.disabled = isDisabled; }\n\n changeHour(step: number) {\n this.model.changeHour(step);\n this.propagateModelChange();\n }\n\n changeMinute(step: number) {\n this.model.changeMinute(step);\n this.propagateModelChange();\n }\n\n changeSecond(step: number) {\n this.model.changeSecond(step);\n this.propagateModelChange();\n }\n\n updateHour(newVal: string) {\n const isPM = this.model.hour >= 12;\n const enteredHour = toInteger(newVal);\n if (this.meridian && (isPM && enteredHour < 12 || !isPM && enteredHour === 12)) {\n this.model.updateHour(enteredHour + 12);\n } else {\n this.model.updateHour(enteredHour);\n }\n this.propagateModelChange();\n }\n\n updateMinute(newVal: string) {\n this.model.updateMinute(toInteger(newVal));\n this.propagateModelChange();\n }\n\n updateSecond(newVal: string) {\n this.model.updateSecond(toInteger(newVal));\n this.propagateModelChange();\n }\n\n toggleMeridian() {\n if (this.meridian) {\n this.changeHour(12);\n }\n }\n\n formatHour(value: number) {\n if (isNumber(value)) {\n if (this.meridian) {\n return padNumber(value % 12 === 0 ? 12 : value % 12);\n } else {\n return padNumber(value % 24);\n }\n } else {\n return padNumber(NaN);\n }\n }\n\n formatMinSec(value: number) { return padNumber(value); }\n\n get isSmallSize(): boolean { return this.size === 'small'; }\n\n get isLargeSize(): boolean { return this.size === 'large'; }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) {\n this.model.second = 0;\n this.propagateModelChange(false);\n }\n }\n\n private propagateModelChange(touched = true) {\n if (touched) {\n this.onTouched();\n }\n if (this.model.isValid(this.seconds)) {\n this.onChange(\n this._ngbTimeAdapter.toModel({hour: this.model.hour, minute: this.model.minute, second: this.model.second}));\n } else {\n this.onChange(this._ngbTimeAdapter.toModel(null));\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbTimepicker} from './timepicker';\n\nexport {NgbTimepicker} from './timepicker';\nexport {NgbTimepickerConfig} from './timepicker-config';\nexport {NgbTimeStruct} from './ngb-time-struct';\nexport {NgbTimeAdapter} from './ngb-time-adapter';\nexport {NgbTimepickerI18n} from './timepicker-i18n';\n\n@NgModule({declarations: [NgbTimepicker], exports: [NgbTimepicker], imports: [CommonModule]})\nexport class NgbTimepickerModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * Interface used to type all toast config options. See `NgbToastConfig`.\n *\n * @since 5.0.0\n */\nexport interface NgbToastOptions {\n /**\n * Specify if the toast component should emit the `hide()` output\n * after a certain `delay` in ms.\n */\n autohide?: boolean;\n\n /**\n * Delay in ms after which the `hide()` output should be emitted.\n */\n delay?: number;\n\n /**\n * Type of aria-live attribute to be used.\n *\n * Could be one of these 2 values (as string):\n * - `polite` (default)\n * - `alert`\n */\n ariaLive?: 'polite' | 'alert';\n}\n\n/**\n * Configuration service for the NgbToast component. You can inject this service, typically in your root component,\n * and customize the values of its properties in order to provide default values for all the toasts used in the\n * application.\n *\n * @since 5.0.0\n */\n@Injectable({providedIn: 'root'})\nexport class NgbToastConfig implements NgbToastOptions {\n autohide = true;\n delay = 500;\n ariaLive: 'polite' | 'alert' = 'polite';\n}\n","import {\n AfterContentInit,\n Attribute,\n Component,\n ContentChild,\n Directive,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {NgbToastConfig} from './toast-config';\n\n/**\n * This directive allows the usage of HTML markup or other directives\n * inside of the toast's header.\n *\n * @since 5.0.0\n */\n@Directive({selector: '[ngbToastHeader]'})\nexport class NgbToastHeader {\n}\n\n/**\n * Toasts provide feedback messages as notifications to the user.\n * Goal is to mimic the push notifications available both on mobile and desktop operating systems.\n *\n * @since 5.0.0\n */\n@Component({\n selector: 'ngb-toast',\n exportAs: 'ngbToast',\n encapsulation: ViewEncapsulation.None,\n host: {\n 'role': 'alert',\n '[attr.aria-live]': 'ariaLive',\n 'aria-atomic': 'true',\n '[class.toast]': 'true',\n '[class.show]': 'true',\n '[class.autohide]': 'autohide',\n },\n template: `\n \n {{header}}\n \n \n
\n \n \n
\n
\n
\n \n
\n `,\n styleUrls: ['./toast.scss']\n})\nexport class NgbToast implements AfterContentInit,\n OnChanges {\n private _timeoutID;\n\n /**\n * Delay after which the toast will hide (ms).\n * default: `500` (ms) (inherited from NgbToastConfig)\n */\n @Input() delay: number;\n\n /**\n * Auto hide the toast after a delay in ms.\n * default: `true` (inherited from NgbToastConfig)\n */\n @Input() autohide: boolean;\n\n /**\n * Text to be used as toast's header.\n * Ignored if a ContentChild template is specified at the same time.\n */\n @Input() header: string;\n\n /**\n * A template like `` can be\n * used in the projected content to allow markup usage.\n */\n @ContentChild(NgbToastHeader, {read: TemplateRef, static: true}) contentHeaderTpl: TemplateRef| null = null;\n\n /**\n * An event fired immediately when toast's `hide()` method has been called.\n * It can only occur in 2 different scenarios:\n * - `autohide` timeout fires\n * - user clicks on a closing cross (×)\n *\n * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of\n * that.\n */\n @Output('hide') hideOutput = new EventEmitter();\n\n constructor(@Attribute('aria-live') public ariaLive: string, config: NgbToastConfig) {\n if (this.ariaLive == null) {\n this.ariaLive = config.ariaLive;\n }\n this.delay = config.delay;\n this.autohide = config.autohide;\n }\n\n ngAfterContentInit() { this._init(); }\n\n ngOnChanges(changes: SimpleChanges) {\n if ('autohide' in changes) {\n this._clearTimeout();\n this._init();\n }\n }\n\n hide() {\n this._clearTimeout();\n this.hideOutput.emit();\n }\n\n private _init() {\n if (this.autohide && !this._timeoutID) {\n this._timeoutID = setTimeout(() => this.hide(), this.delay);\n }\n }\n\n private _clearTimeout() {\n if (this._timeoutID) {\n clearTimeout(this._timeoutID);\n this._timeoutID = null;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\nimport {NgbToast, NgbToastHeader} from './toast';\n\nexport {NgbToast, NgbToastHeader} from './toast';\nexport {NgbToastConfig, NgbToastOptions} from './toast-config';\n\n@NgModule({declarations: [NgbToast, NgbToastHeader], imports: [CommonModule], exports: [NgbToast, NgbToastHeader]})\nexport class NgbToastModule {\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the tooltips used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTooltipConfig {\n autoClose: boolean | 'inside' | 'outside' = true;\n placement: PlacementArray = 'auto';\n triggers = 'hover focus';\n container: string;\n disableTooltip = false;\n tooltipClass: string;\n openDelay = 0;\n closeDelay = 0;\n}\n","import {\n Component,\n Directive,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n Inject,\n Injector,\n Renderer2,\n ComponentRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n ComponentFactoryResolver,\n NgZone,\n ViewEncapsulation,\n ChangeDetectorRef,\n ApplicationRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {listenToTriggers} from '../util/triggers';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {positionElements, PlacementArray} from '../util/positioning';\nimport {PopupService} from '../util/popup';\n\nimport {NgbTooltipConfig} from './tooltip-config';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngb-tooltip-window',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'[class]': '\"tooltip show\" + (tooltipClass ? \" \" + tooltipClass : \"\")', 'role': 'tooltip', '[id]': 'id'},\n template: `
`,\n styleUrls: ['./tooltip.scss']\n})\nexport class NgbTooltipWindow {\n @Input() id: string;\n @Input() tooltipClass: string;\n}\n\n/**\n * A lightweight and extensible directive for fancy tooltip creation.\n */\n@Directive({selector: '[ngbTooltip]', exportAs: 'ngbTooltip'})\nexport class NgbTooltip implements OnInit, OnDestroy {\n /**\n * Indicates whether the tooltip should be closed on `Escape` key and inside/outside clicks:\n *\n * * `true` - closes on both outside and inside clicks as well as `Escape` presses\n * * `false` - disables the autoClose feature (NB: triggers still apply)\n * * `\"inside\"` - closes on inside clicks as well as Escape presses\n * * `\"outside\"` - closes on outside clicks (sometimes also achievable through triggers)\n * as well as `Escape` presses\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside';\n\n /**\n * The preferred placement of the tooltip.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"auto\"` (same as the sequence above).\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * Specifies events that should trigger the tooltip.\n *\n * Supports a space separated list of event names.\n * For more details see the [triggers demo](#/components/tooltip/examples#triggers).\n */\n @Input() triggers: string;\n\n /**\n * A selector specifying the element the tooltip should be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * If `true`, tooltip is disabled and won't be displayed.\n *\n * @since 1.1.0\n */\n @Input() disableTooltip: boolean;\n\n /**\n * An optional class applied to the tooltip window element.\n *\n * @since 3.2.0\n */\n @Input() tooltipClass: string;\n\n /**\n * The opening delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() openDelay: number;\n\n /**\n * The closing delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() closeDelay: number;\n\n /**\n * An event emitted when the tooltip is shown. Contains no payload.\n */\n @Output() shown = new EventEmitter();\n /**\n * An event emitted when the popover is hidden. Contains no payload.\n */\n @Output() hidden = new EventEmitter();\n\n private _ngbTooltip: string | TemplateRef;\n private _ngbTooltipWindowId = `ngb-tooltip-${nextId++}`;\n private _popupService: PopupService;\n private _windowRef: ComponentRef;\n private _unregisterListenersFn;\n private _zoneSubscription: any;\n\n constructor(\n private _elementRef: ElementRef, private _renderer: Renderer2, injector: Injector,\n componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: NgbTooltipConfig,\n private _ngZone: NgZone, @Inject(DOCUMENT) private _document: any, private _changeDetector: ChangeDetectorRef,\n private _applicationRef: ApplicationRef) {\n this.autoClose = config.autoClose;\n this.placement = config.placement;\n this.triggers = config.triggers;\n this.container = config.container;\n this.disableTooltip = config.disableTooltip;\n this.tooltipClass = config.tooltipClass;\n this.openDelay = config.openDelay;\n this.closeDelay = config.closeDelay;\n this._popupService = new PopupService(\n NgbTooltipWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => {\n if (this._windowRef) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body', 'bs-tooltip');\n }\n });\n }\n\n /**\n * The string content or a `TemplateRef` for the content to be displayed in the tooltip.\n *\n * If the content if falsy, the tooltip won't open.\n */\n @Input()\n set ngbTooltip(value: string | TemplateRef) {\n this._ngbTooltip = value;\n if (!value && this._windowRef) {\n this.close();\n }\n }\n\n get ngbTooltip() { return this._ngbTooltip; }\n\n /**\n * Opens the tooltip.\n *\n * This is considered to be a \"manual\" triggering.\n * The `context` is an optional value to be injected into the tooltip template when it is created.\n */\n open(context?: any) {\n if (!this._windowRef && this._ngbTooltip && !this.disableTooltip) {\n this._windowRef = this._popupService.open(this._ngbTooltip, context);\n this._windowRef.instance.tooltipClass = this.tooltipClass;\n this._windowRef.instance.id = this._ngbTooltipWindowId;\n\n this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbTooltipWindowId);\n\n if (this.container === 'body') {\n this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n // We need to detect changes, because we don't know where .open() might be called from.\n // Ex. opening tooltip from one of lifecycle hooks that run after the CD\n // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception\n this._windowRef.changeDetectorRef.detectChanges();\n\n // We need to mark for check, because tooltip won't work inside the OnPush component.\n // Ex. when we use expression like `{{ tooltip.isOpen() : 'opened' : 'closed' }}`\n // inside the template of an OnPush component and we change the tooltip from\n // open -> closed, the expression in question won't be updated unless we explicitly\n // mark the parent component to be checked.\n this._windowRef.changeDetectorRef.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.hidden,\n [this._windowRef.location.nativeElement]);\n\n this.shown.emit();\n }\n }\n\n /**\n * Closes the tooltip.\n *\n * This is considered to be a \"manual\" triggering of the tooltip.\n */\n close(): void {\n if (this._windowRef != null) {\n this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');\n this._popupService.close();\n this._windowRef = null;\n this.hidden.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the tooltip.\n *\n * This is considered to be a \"manual\" triggering of the tooltip.\n */\n toggle(): void {\n if (this._windowRef) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Returns `true`, if the popover is currently shown.\n */\n isOpen(): boolean { return this._windowRef != null; }\n\n ngOnInit() {\n this._unregisterListenersFn = listenToTriggers(\n this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this),\n this.close.bind(this), +this.openDelay, +this.closeDelay);\n }\n\n ngOnDestroy() {\n this.close();\n // This check is needed as it might happen that ngOnDestroy is called before ngOnInit\n // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199\n if (this._unregisterListenersFn) {\n this._unregisterListenersFn();\n }\n this._zoneSubscription.unsubscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbTooltip, NgbTooltipWindow} from './tooltip';\n\nexport {NgbTooltipConfig} from './tooltip-config';\nexport {NgbTooltip} from './tooltip';\nexport {Placement} from '../util/positioning';\n\n@NgModule({declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow]})\nexport class NgbTooltipModule {\n}\n","import {Component, Input, OnChanges, ChangeDetectionStrategy, SimpleChanges, ViewEncapsulation} from '@angular/core';\nimport {regExpEscape, toString} from '../util/util';\n\n/**\n * A component that helps with text highlighting.\n *\n * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify\n * highlighting:\n *\n * Ex. `result=\"Alaska\"` and `term=\"as\"` will produce `Alaska`.\n */\n@Component({\n selector: 'ngb-highlight',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: `` +\n `{{part}}{{part}}` +\n ``, // template needs to be formatted in a certain way so we don't add empty text nodes\n styleUrls: ['./highlight.scss']\n})\nexport class NgbHighlight implements OnChanges {\n parts: string[];\n\n /**\n * The CSS class for `` elements wrapping the `term` inside the `result`.\n */\n @Input() highlightClass = 'ngb-highlight';\n\n /**\n * The text highlighting is added to.\n *\n * If the `term` is found inside this text, it will be highlighted.\n * If the `term` contains array then all the items from it will be highlighted inside the text.\n */\n @Input() result: string;\n\n /**\n * The term or array of terms to be highlighted.\n * Since version `v4.2.0` term could be a `string[]`\n */\n @Input() term: string | string[];\n\n ngOnChanges(changes: SimpleChanges) {\n const result = toString(this.result);\n\n const terms = Array.isArray(this.term) ? this.term : [this.term];\n const escapedTerms = terms.map(term => regExpEscape(toString(term))).filter(term => term);\n\n this.parts = escapedTerms.length ? result.split(new RegExp(`(${escapedTerms.join('|')})`, 'gmi')) : [result];\n }\n}\n","import {Component, Input, Output, EventEmitter, TemplateRef, OnInit} from '@angular/core';\n\nimport {toString} from '../util/util';\n\n/**\n * The context for the typeahead result template in case you want to override the default one.\n */\nexport interface ResultTemplateContext {\n /**\n * Your typeahead result item.\n */\n result: any;\n\n /**\n * Search term from the `` used to get current result.\n */\n term: string;\n}\n\n@Component({\n selector: 'ngb-typeahead-window',\n exportAs: 'ngbTypeaheadWindow',\n host: {'(mousedown)': '$event.preventDefault()', 'class': 'dropdown-menu show', 'role': 'listbox', '[id]': 'id'},\n template: `\n \n \n \n \n \n \n `\n})\nexport class NgbTypeaheadWindow implements OnInit {\n activeIdx = 0;\n\n /**\n * The id for the typeahead window. The id should be unique and the same\n * as the associated typeahead's id.\n */\n @Input() id: string;\n\n /**\n * Flag indicating if the first row should be active initially\n */\n @Input() focusFirst = true;\n\n /**\n * Typeahead match results to be displayed\n */\n @Input() results;\n\n /**\n * Search term used to get current results\n */\n @Input() term: string;\n\n /**\n * A function used to format a given result before display. This function should return a formatted string without any\n * HTML markup\n */\n @Input() formatter = toString;\n\n /**\n * A template to override a matching result default display\n */\n @Input() resultTemplate: TemplateRef;\n\n /**\n * Event raised when user selects a particular result row\n */\n @Output('select') selectEvent = new EventEmitter();\n\n @Output('activeChange') activeChangeEvent = new EventEmitter();\n\n hasActive() { return this.activeIdx > -1 && this.activeIdx < this.results.length; }\n\n getActive() { return this.results[this.activeIdx]; }\n\n markActive(activeIdx: number) {\n this.activeIdx = activeIdx;\n this._activeChanged();\n }\n\n next() {\n if (this.activeIdx === this.results.length - 1) {\n this.activeIdx = this.focusFirst ? (this.activeIdx + 1) % this.results.length : -1;\n } else {\n this.activeIdx++;\n }\n this._activeChanged();\n }\n\n prev() {\n if (this.activeIdx < 0) {\n this.activeIdx = this.results.length - 1;\n } else if (this.activeIdx === 0) {\n this.activeIdx = this.focusFirst ? this.results.length - 1 : -1;\n } else {\n this.activeIdx--;\n }\n this._activeChanged();\n }\n\n resetActive() {\n this.activeIdx = this.focusFirst ? 0 : -1;\n this._activeChanged();\n }\n\n select(item) { this.selectEvent.emit(item); }\n\n ngOnInit() { this.resetActive(); }\n\n private _activeChanged() {\n this.activeChangeEvent.emit(this.activeIdx >= 0 ? this.id + '-' + this.activeIdx : undefined);\n }\n}\n","import {Injectable, Inject, InjectionToken, OnDestroy} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\n\n\n// usefulness (and default value) of delay documented in Material's CDK\n// https://github.com/angular/material2/blob/6405da9b8e8532a7e5c854c920ee1815c275d734/src/cdk/a11y/live-announcer/live-announcer.ts#L50\nexport type ARIA_LIVE_DELAY_TYPE = number | null;\nexport const ARIA_LIVE_DELAY = new InjectionToken(\n 'live announcer delay', {providedIn: 'root', factory: ARIA_LIVE_DELAY_FACTORY});\nexport function ARIA_LIVE_DELAY_FACTORY(): number {\n return 100;\n}\n\n\nfunction getLiveElement(document: any, lazyCreate = false): HTMLElement | null {\n let element = document.body.querySelector('#ngb-live') as HTMLElement;\n\n if (element == null && lazyCreate) {\n element = document.createElement('div');\n\n element.setAttribute('id', 'ngb-live');\n element.setAttribute('aria-live', 'polite');\n element.setAttribute('aria-atomic', 'true');\n\n element.classList.add('sr-only');\n\n document.body.appendChild(element);\n }\n\n return element;\n}\n\n\n\n@Injectable({providedIn: 'root'})\nexport class Live implements OnDestroy {\n constructor(@Inject(DOCUMENT) private _document: any, @Inject(ARIA_LIVE_DELAY) private _delay: any) {}\n\n ngOnDestroy() {\n const element = getLiveElement(this._document);\n if (element) {\n element.parentElement.removeChild(element);\n }\n }\n\n say(message: string) {\n const element = getLiveElement(this._document, true);\n const delay = this._delay;\n\n element.textContent = '';\n const setText = () => element.textContent = message;\n if (delay === null) {\n setText();\n } else {\n setTimeout(setText, delay);\n }\n }\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the typeaheads used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTypeaheadConfig {\n container;\n editable = true;\n focusFirst = true;\n showHint = false;\n placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n}\n","import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Injector,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n Output,\n Renderer2,\n TemplateRef,\n ViewContainerRef,\n ApplicationRef\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {DOCUMENT} from '@angular/common';\nimport {BehaviorSubject, fromEvent, Observable, Subject, Subscription} from 'rxjs';\nimport {map, switchMap, tap} from 'rxjs/operators';\n\nimport {Live} from '../util/accessibility/live';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {Key} from '../util/key';\nimport {PopupService} from '../util/popup';\nimport {PlacementArray, positionElements} from '../util/positioning';\nimport {isDefined, toString} from '../util/util';\n\nimport {NgbTypeaheadConfig} from './typeahead-config';\nimport {NgbTypeaheadWindow, ResultTemplateContext} from './typeahead-window';\n\n\nconst NGB_TYPEAHEAD_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbTypeahead),\n multi: true\n};\n\n/**\n * An event emitted right before an item is selected from the result list.\n */\nexport interface NgbTypeaheadSelectItemEvent {\n /**\n * The item from the result list about to be selected.\n */\n item: any;\n\n /**\n * Calling this function will prevent item selection from happening.\n */\n preventDefault: () => void;\n}\n\nlet nextWindowId = 0;\n\n/**\n * A directive providing a simple way of creating powerful typeaheads from any text input.\n */\n@Directive({\n selector: 'input[ngbTypeahead]',\n exportAs: 'ngbTypeahead',\n host: {\n '(blur)': 'handleBlur()',\n '[class.open]': 'isPopupOpen()',\n '(keydown)': 'handleKeyDown($event)',\n '[autocomplete]': 'autocomplete',\n 'autocapitalize': 'off',\n 'autocorrect': 'off',\n 'role': 'combobox',\n 'aria-multiline': 'false',\n '[attr.aria-autocomplete]': 'showHint ? \"both\" : \"list\"',\n '[attr.aria-activedescendant]': 'activeDescendant',\n '[attr.aria-owns]': 'isPopupOpen() ? popupId : null',\n '[attr.aria-expanded]': 'isPopupOpen()'\n },\n providers: [NGB_TYPEAHEAD_VALUE_ACCESSOR]\n})\nexport class NgbTypeahead implements ControlValueAccessor,\n OnInit, OnDestroy {\n private _popupService: PopupService;\n private _subscription: Subscription;\n private _closed$ = new Subject();\n private _inputValueBackup: string;\n private _valueChanges: Observable;\n private _resubscribeTypeahead: BehaviorSubject;\n private _windowRef: ComponentRef;\n private _zoneSubscription: any;\n\n /**\n * The value for the `autocomplete` attribute for the `` element.\n *\n * Defaults to `\"off\"` to disable the native browser autocomplete, but you can override it if necessary.\n *\n * @since 2.1.0\n */\n @Input() autocomplete = 'off';\n\n /**\n * A selector specifying the element the typeahead popup will be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * If `true`, model values will not be restricted only to items selected from the popup.\n */\n @Input() editable: boolean;\n\n /**\n * If `true`, the first item in the result list will always stay focused while typing.\n */\n @Input() focusFirst: boolean;\n\n /**\n * The function that converts an item from the result list to a `string` to display in the `` field.\n *\n * It is called when the user selects something in the popup or the model value changes, so the input needs to\n * be updated.\n */\n @Input() inputFormatter: (item: any) => string;\n\n /**\n * The function that converts a stream of text values from the `` element to the stream of the array of items\n * to display in the typeahead popup.\n *\n * If the resulting observable emits a non-empty array - the popup will be shown. If it emits an empty array - the\n * popup will be closed.\n *\n * See the [basic example](#/components/typeahead/examples#basic) for more details.\n *\n * Note that the `this` argument is `undefined` so you need to explicitly bind it to a desired \"this\" target.\n */\n @Input() ngbTypeahead: (text: Observable) => Observable;\n\n /**\n * The function that converts an item from the result list to a `string` to display in the popup.\n *\n * Must be provided, if your `ngbTypeahead` returns something other than `Observable`.\n *\n * Alternatively for more complex markup in the popup you should use `resultTemplate`.\n */\n @Input() resultFormatter: (item: any) => string;\n\n /**\n * The template to override the way resulting items are displayed in the popup.\n *\n * See the [ResultTemplateContext](#/components/typeahead/api#ResultTemplateContext) for the template context.\n *\n * Also see the [template for results demo](#/components/typeahead/examples#template) for more details.\n */\n @Input() resultTemplate: TemplateRef;\n\n /**\n * If `true`, will show the hint in the `` when an item in the result list matches.\n */\n @Input() showHint: boolean;\n\n /**\n * The preferred placement of the typeahead.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray = 'bottom-left';\n\n /**\n * An event emitted right before an item is selected from the result list.\n *\n * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent).\n */\n @Output() selectItem = new EventEmitter();\n\n activeDescendant: string;\n popupId = `ngb-typeahead-${nextWindowId++}`;\n\n private _onTouched = () => {};\n private _onChange = (_: any) => {};\n\n constructor(\n private _elementRef: ElementRef, private _viewContainerRef: ViewContainerRef,\n private _renderer: Renderer2, private _injector: Injector, componentFactoryResolver: ComponentFactoryResolver,\n config: NgbTypeaheadConfig, ngZone: NgZone, private _live: Live, @Inject(DOCUMENT) private _document: any,\n private _ngZone: NgZone, private _changeDetector: ChangeDetectorRef, private _applicationRef: ApplicationRef) {\n this.container = config.container;\n this.editable = config.editable;\n this.focusFirst = config.focusFirst;\n this.showHint = config.showHint;\n this.placement = config.placement;\n\n this._valueChanges = fromEvent(_elementRef.nativeElement, 'input')\n .pipe(map($event => ($event.target as HTMLInputElement).value));\n\n this._resubscribeTypeahead = new BehaviorSubject(null);\n\n this._popupService = new PopupService(\n NgbTypeaheadWindow, _injector, _viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = ngZone.onStable.subscribe(() => {\n if (this.isPopupOpen()) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body');\n }\n });\n }\n\n ngOnInit(): void {\n const inputValues$ = this._valueChanges.pipe(tap(value => {\n this._inputValueBackup = this.showHint ? value : null;\n if (this.editable) {\n this._onChange(value);\n }\n }));\n const results$ = inputValues$.pipe(this.ngbTypeahead);\n const processedResults$ = results$.pipe(tap(() => {\n if (!this.editable) {\n this._onChange(undefined);\n }\n }));\n const userInput$ = this._resubscribeTypeahead.pipe(switchMap(() => processedResults$));\n this._subscription = this._subscribeToUserInput(userInput$);\n }\n\n ngOnDestroy(): void {\n this._closePopup();\n this._unsubscribeFromUserInput();\n this._zoneSubscription.unsubscribe();\n }\n\n registerOnChange(fn: (value: any) => any): void { this._onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this._onTouched = fn; }\n\n writeValue(value) {\n this._writeInputValue(this._formatItemForInput(value));\n if (this.showHint) {\n this._inputValueBackup = value;\n }\n }\n\n setDisabledState(isDisabled: boolean): void {\n this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\n }\n\n /**\n * Dismisses typeahead popup window\n */\n dismissPopup() {\n if (this.isPopupOpen()) {\n this._resubscribeTypeahead.next(null);\n this._closePopup();\n if (this.showHint && this._inputValueBackup !== null) {\n this._writeInputValue(this._inputValueBackup);\n }\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Returns true if the typeahead popup window is displayed\n */\n isPopupOpen() { return this._windowRef != null; }\n\n handleBlur() {\n this._resubscribeTypeahead.next(null);\n this._onTouched();\n }\n\n handleKeyDown(event: KeyboardEvent) {\n if (!this.isPopupOpen()) {\n return;\n }\n\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.ArrowDown:\n event.preventDefault();\n this._windowRef.instance.next();\n this._showHint();\n break;\n case Key.ArrowUp:\n event.preventDefault();\n this._windowRef.instance.prev();\n this._showHint();\n break;\n case Key.Enter:\n case Key.Tab:\n const result = this._windowRef.instance.getActive();\n if (isDefined(result)) {\n event.preventDefault();\n event.stopPropagation();\n this._selectResult(result);\n }\n this._closePopup();\n break;\n }\n }\n\n private _openPopup() {\n if (!this.isPopupOpen()) {\n this._inputValueBackup = this._elementRef.nativeElement.value;\n this._windowRef = this._popupService.open();\n this._windowRef.instance.id = this.popupId;\n this._windowRef.instance.selectEvent.subscribe((result: any) => this._selectResultClosePopup(result));\n this._windowRef.instance.activeChangeEvent.subscribe((activeId: string) => this.activeDescendant = activeId);\n\n if (this.container === 'body') {\n window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n this._changeDetector.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, 'outside', () => this.dismissPopup(), this._closed$,\n [this._elementRef.nativeElement, this._windowRef.location.nativeElement]);\n }\n }\n\n private _closePopup() {\n this._closed$.next();\n this._popupService.close();\n this._windowRef = null;\n this.activeDescendant = undefined;\n }\n\n private _selectResult(result: any) {\n let defaultPrevented = false;\n this.selectItem.emit({item: result, preventDefault: () => { defaultPrevented = true; }});\n this._resubscribeTypeahead.next(null);\n\n if (!defaultPrevented) {\n this.writeValue(result);\n this._onChange(result);\n }\n }\n\n private _selectResultClosePopup(result: any) {\n this._selectResult(result);\n this._closePopup();\n }\n\n private _showHint() {\n if (this.showHint && this._windowRef.instance.hasActive() && this._inputValueBackup != null) {\n const userInputLowerCase = this._inputValueBackup.toLowerCase();\n const formattedVal = this._formatItemForInput(this._windowRef.instance.getActive());\n\n if (userInputLowerCase === formattedVal.substr(0, this._inputValueBackup.length).toLowerCase()) {\n this._writeInputValue(this._inputValueBackup + formattedVal.substr(this._inputValueBackup.length));\n this._elementRef.nativeElement['setSelectionRange'].apply(\n this._elementRef.nativeElement, [this._inputValueBackup.length, formattedVal.length]);\n } else {\n this._writeInputValue(formattedVal);\n }\n }\n }\n\n private _formatItemForInput(item: any): string {\n return item != null && this.inputFormatter ? this.inputFormatter(item) : toString(item);\n }\n\n private _writeInputValue(value: string): void {\n this._renderer.setProperty(this._elementRef.nativeElement, 'value', toString(value));\n }\n\n private _subscribeToUserInput(userInput$: Observable): Subscription {\n return userInput$.subscribe((results) => {\n if (!results || results.length === 0) {\n this._closePopup();\n } else {\n this._openPopup();\n this._windowRef.instance.focusFirst = this.focusFirst;\n this._windowRef.instance.results = results;\n this._windowRef.instance.term = this._elementRef.nativeElement.value;\n if (this.resultFormatter) {\n this._windowRef.instance.formatter = this.resultFormatter;\n }\n if (this.resultTemplate) {\n this._windowRef.instance.resultTemplate = this.resultTemplate;\n }\n this._windowRef.instance.resetActive();\n\n // The observable stream we are subscribing to might have async steps\n // and if a component containing typeahead is using the OnPush strategy\n // the change detection turn wouldn't be invoked automatically.\n this._windowRef.changeDetectorRef.detectChanges();\n\n this._showHint();\n }\n\n // live announcer\n const count = results ? results.length : 0;\n this._live.say(count === 0 ? 'No results available' : `${count} result${count === 1 ? '' : 's'} available`);\n });\n }\n\n private _unsubscribeFromUserInput() {\n if (this._subscription) {\n this._subscription.unsubscribe();\n }\n this._subscription = null;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbHighlight} from './highlight';\nimport {NgbTypeaheadWindow} from './typeahead-window';\nimport {NgbTypeahead} from './typeahead';\n\nexport {NgbHighlight} from './highlight';\nexport {NgbTypeaheadWindow} from './typeahead-window';\nexport {NgbTypeaheadConfig} from './typeahead-config';\nexport {NgbTypeahead, NgbTypeaheadSelectItemEvent} from './typeahead';\n\n@NgModule({\n declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow],\n exports: [NgbTypeahead, NgbHighlight],\n imports: [CommonModule],\n entryComponents: [NgbTypeaheadWindow]\n})\nexport class NgbTypeaheadModule {\n}\n","import {NgModule} from '@angular/core';\n\nimport {SbCardModule} from './card/card.module';\nimport {NgbAccordionModule} from './accordion/accordion.module';\nimport {NgbAlertModule} from './alert/alert.module';\nimport {NgbButtonsModule} from './buttons/buttons.module';\nimport {NgbCarouselModule} from './carousel/carousel.module';\nimport {NgbCollapseModule} from './collapse/collapse.module';\nimport {NgbDatepickerModule} from './datepicker/datepicker.module';\nimport {NgbDropdownModule} from './dropdown/dropdown.module';\nimport {NgbModalModule} from './modal/modal.module';\nimport {NgbPaginationModule} from './pagination/pagination.module';\nimport {NgbPopoverModule} from './popover/popover.module';\nimport {NgbProgressbarModule} from './progressbar/progressbar.module';\nimport {NgbRatingModule} from './rating/rating.module';\nimport {NgbTabsetModule} from './tabset/tabset.module';\nimport {NgbTimepickerModule} from './timepicker/timepicker.module';\nimport {NgbToastModule} from './toast/toast.module';\nimport {NgbTooltipModule} from './tooltip/tooltip.module';\nimport {NgbTypeaheadModule} from './typeahead/typeahead.module';\n\n\n\nexport {\n NgbAccordion,\n NgbAccordionConfig,\n NgbAccordionModule,\n NgbPanel,\n NgbPanelChangeEvent,\n NgbPanelContent,\n NgbPanelHeader,\n NgbPanelHeaderContext,\n NgbPanelTitle,\n NgbPanelToggle\n} from './accordion/accordion.module';\nexport {SbCard, SbCardConfig, SbCardModule} from './card/card.module';\nexport {NgbAlert, NgbAlertConfig, NgbAlertModule} from './alert/alert.module';\nexport {NgbButtonLabel, NgbButtonsModule, NgbCheckBox, NgbRadio, NgbRadioGroup} from './buttons/buttons.module';\nexport {\n NgbCarousel,\n NgbCarouselConfig,\n NgbCarouselModule,\n NgbSlide,\n NgbSlideEvent,\n NgbSlideEventDirection,\n NgbSlideEventSource\n} from './carousel/carousel.module';\nexport {NgbCollapse, NgbCollapseModule} from './collapse/collapse.module';\nexport {\n NgbCalendar,\n NgbCalendarGregorian,\n NgbCalendarHebrew,\n NgbCalendarIslamicCivil,\n NgbCalendarIslamicUmalqura,\n NgbCalendarPersian,\n NgbDate,\n NgbDateAdapter,\n NgbDateNativeAdapter,\n NgbDateNativeUTCAdapter,\n NgbDateParserFormatter,\n NgbDatepicker,\n NgbDatepickerConfig,\n NgbDatepickerI18n,\n NgbDatepickerI18nHebrew,\n NgbDatepickerModule,\n NgbDatepickerNavigateEvent,\n NgbDateStruct,\n NgbInputDatepicker,\n NgbPeriod\n} from './datepicker/datepicker.module';\nexport {\n NgbDropdown,\n NgbDropdownAnchor,\n NgbDropdownConfig,\n NgbDropdownItem,\n NgbDropdownMenu,\n NgbDropdownModule,\n NgbDropdownToggle\n} from './dropdown/dropdown.module';\nexport {\n ModalDismissReasons,\n NgbActiveModal,\n NgbModal,\n NgbModalConfig,\n NgbModalModule,\n NgbModalOptions,\n NgbModalRef\n} from './modal/modal.module';\nexport {\n NgbPagination,\n NgbPaginationConfig,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationModule,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination/pagination.module';\nexport {NgbPopover, NgbPopoverConfig, NgbPopoverModule} from './popover/popover.module';\nexport {NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule} from './progressbar/progressbar.module';\nexport {NgbRating, NgbRatingConfig, NgbRatingModule} from './rating/rating.module';\nexport {\n NgbTab,\n NgbTabChangeEvent,\n NgbTabContent,\n NgbTabset,\n NgbTabsetConfig,\n NgbTabsetModule,\n NgbTabTitle\n} from './tabset/tabset.module';\nexport {\n NgbTimeAdapter,\n NgbTimepickerI18n,\n NgbTimepicker,\n NgbTimepickerConfig,\n NgbTimepickerModule,\n NgbTimeStruct\n} from './timepicker/timepicker.module';\nexport {NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule} from './toast/toast.module';\nexport {NgbTooltip, NgbTooltipConfig, NgbTooltipModule} from './tooltip/tooltip.module';\nexport {\n NgbHighlight,\n NgbTypeahead,\n NgbTypeaheadConfig,\n NgbTypeaheadModule,\n NgbTypeaheadSelectItemEvent\n} from './typeahead/typeahead.module';\nexport {Placement} from './util/positioning';\n\n\nconst NGB_MODULES = [\n SbCardModule, NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule,\n NgbDropdownModule, NgbModalModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule,\n NgbTabsetModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule\n];\n\n@NgModule({imports: NGB_MODULES, exports: NGB_MODULES})\nexport class NgbModule {\n}\n"],"names":["nextId","NGB_DATEPICKER_VALUE_ACCESSOR","mod","GREGORIAN_EPOCH","isGregorianLeapYear","fromGregorian","toGregorian"],"mappings":";;;;;;;;;;AAAA;;;;;;AASA,MAAa,YAAY;IADzB;QAEE,gBAAW,GAAG,IAAI,CAAC;QACnB,SAAI,GAAG,SAAS,CAAC;KAClB;;;YAJA,UAAU,SAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;;;;;;ACRhC;;;;;AAmCA,MAAa,MAAM;;;;;;IAqBjB,YAAY,MAAoB,EAAU,SAAoB,EAAU,QAAoB;QAAlD,cAAS,GAAT,SAAS,CAAW;QAAU,aAAQ,GAAR,QAAQ,CAAY;;;;QAFlF,UAAK,GAAG,IAAI,YAAY,EAAQ,CAAC;QAGzC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;KACzB;;;;IAED,YAAY,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;;;;;IAEzC,WAAW,CAAC,OAAsB;;cAC1B,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;QAClC,IAAI,UAAU,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE;YACzC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,SAAS,UAAU,CAAC,aAAa,EAAE,CAAC,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;YAN9B,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,kBAAkB,CAAC;gBAC9D,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;gBACrC,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,eAAe,EAAE,CAAC,kBAAkB,CAAC;aACtC;;;;;;;ACjBD;MAmIM,WAAW,GAAG;IAClB,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB;IAC7H,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,eAAe;IAC/G,eAAe,EAAE,mBAAmB,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB;CAC3F;AAGD,MAAa,SAAS;;;YADrB,QAAQ,SAAC,EAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAC;;;;;"} \ No newline at end of file diff --git a/dist/ng-bootstrap/fesm5/ng-bootstrap.js b/dist/ng-bootstrap/fesm5/ng-bootstrap.js deleted file mode 100644 index f1cb2c0..0000000 --- a/dist/ng-bootstrap/fesm5/ng-bootstrap.js +++ /dev/null @@ -1,12647 +0,0 @@ -import { ɵɵdefineInjectable, Injectable, Component, ChangeDetectionStrategy, ViewEncapsulation, Renderer2, ElementRef, Input, Output, EventEmitter, NgModule, Directive, ContentChildren, Optional, Host, TemplateRef, forwardRef, ChangeDetectorRef, Inject, PLATFORM_ID, NgZone, HostListener, LOCALE_ID, ɵɵinject, ViewChild, ViewContainerRef, ComponentFactoryResolver, ContentChild, Injector, ApplicationRef, RendererFactory2, INJECTOR, Attribute, InjectionToken } from '@angular/core'; -import { CommonModule, isPlatformBrowser, getLocaleDayNames, FormStyle, TranslationWidth, getLocaleMonthNames, formatDate, DOCUMENT, getLocaleDayPeriods } from '@angular/common'; -import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule } from '@angular/forms'; -import { __read, __extends, __assign, __values } from 'tslib'; -import { combineLatest, timer, NEVER, Subject, BehaviorSubject, fromEvent, merge, race, Observable } from 'rxjs'; -import { map, startWith, distinctUntilChanged, switchMap, takeUntil, filter, take, withLatestFrom, delay, share, tap } from 'rxjs/operators'; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [SbCard](#/components/alert/api#SbCard) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ -var SbCardConfig = /** @class */ (function () { - function SbCardConfig() { - this.dismissible = true; - this.type = 'warning'; - } - SbCardConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ SbCardConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function SbCardConfig_Factory() { return new SbCardConfig(); }, token: SbCardConfig, providedIn: "root" }); - return SbCardConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ -var SbCard = /** @class */ (function () { - function SbCard(config, _renderer, _element) { - this._renderer = _renderer; - this._element = _element; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - this.close = new EventEmitter(); - this.dismissible = config.dismissible; - this.type = config.type; - } - /** - * @return {?} - */ - SbCard.prototype.closeHandler = /** - * @return {?} - */ - function () { this.close.emit(null); }; - /** - * @param {?} changes - * @return {?} - */ - SbCard.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - /** @type {?} */ - var typeChange = changes['type']; - if (typeChange && !typeChange.firstChange) { - this._renderer.removeClass(this._element.nativeElement, "alert-" + typeChange.previousValue); - this._renderer.addClass(this._element.nativeElement, "alert-" + typeChange.currentValue); - } - }; - /** - * @return {?} - */ - SbCard.prototype.ngOnInit = /** - * @return {?} - */ - function () { this._renderer.addClass(this._element.nativeElement, "alert-" + this.type); }; - SbCard.decorators = [ - { type: Component, args: [{ - selector: 'sb-card', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { 'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible' }, - template: "\n \n \n ", - styles: ["ngb-alert{display:block}"] - }] } - ]; - /** @nocollapse */ - SbCard.ctorParameters = function () { return [ - { type: SbCardConfig }, - { type: Renderer2 }, - { type: ElementRef } - ]; }; - SbCard.propDecorators = { - dismissible: [{ type: Input }], - type: [{ type: Input }], - close: [{ type: Output }] - }; - return SbCard; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var SbCardModule = /** @class */ (function () { - function SbCardModule() { - } - SbCardModule.decorators = [ - { type: NgModule, args: [{ declarations: [SbCard], exports: [SbCard], imports: [CommonModule], entryComponents: [SbCard] },] } - ]; - return SbCardModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} value - * @return {?} - */ -function toInteger(value) { - return parseInt("" + value, 10); -} -/** - * @param {?} value - * @return {?} - */ -function toString(value) { - return (value !== undefined && value !== null) ? "" + value : ''; -} -/** - * @param {?} value - * @param {?} max - * @param {?=} min - * @return {?} - */ -function getValueInRange(value, max, min) { - if (min === void 0) { min = 0; } - return Math.max(Math.min(value, max), min); -} -/** - * @param {?} value - * @return {?} - */ -function isString(value) { - return typeof value === 'string'; -} -/** - * @param {?} value - * @return {?} - */ -function isNumber(value) { - return !isNaN(toInteger(value)); -} -/** - * @param {?} value - * @return {?} - */ -function isInteger(value) { - return typeof value === 'number' && isFinite(value) && Math.floor(value) === value; -} -/** - * @param {?} value - * @return {?} - */ -function isDefined(value) { - return value !== undefined && value !== null; -} -/** - * @param {?} value - * @return {?} - */ -function padNumber(value) { - if (isNumber(value)) { - return ("0" + value).slice(-2); - } - else { - return ''; - } -} -/** - * @param {?} text - * @return {?} - */ -function regExpEscape(text) { - return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); -} -/** - * @param {?} element - * @param {?} className - * @return {?} - */ -function hasClassName(element, className) { - return element && element.className && element.className.split && - element.className.split(/\s+/).indexOf(className) >= 0; -} -if (typeof Element !== 'undefined' && !Element.prototype.closest) { - // Polyfill for ie10+ - if (!Element.prototype.matches) { - // IE uses the non-standard name: msMatchesSelector - Element.prototype.matches = ((/** @type {?} */ (Element.prototype))).msMatchesSelector || Element.prototype.webkitMatchesSelector; - } - Element.prototype.closest = (/** - * @param {?} s - * @return {?} - */ - function (s) { - /** @type {?} */ - var el = this; - if (!document.documentElement.contains(el)) { - return null; - } - do { - if (el.matches(s)) { - return el; - } - el = el.parentElement || el.parentNode; - } while (el !== null && el.nodeType === 1); - return null; - }); -} -/** - * @param {?} element - * @param {?} selector - * @return {?} - */ -function closest(element, selector) { - if (!selector) { - return null; - } - return element.closest(selector); -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all accordions used in the application. - */ -var NgbAccordionConfig = /** @class */ (function () { - function NgbAccordionConfig() { - this.closeOthers = false; - } - NgbAccordionConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbAccordionConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbAccordionConfig_Factory() { return new NgbAccordionConfig(); }, token: NgbAccordionConfig, providedIn: "root" }); - return NgbAccordionConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var nextId = 0; -/** - * A directive that wraps an accordion panel header with any HTML markup and a toggling button - * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle). - * See the [header customization demo](#/components/accordion/examples#header) for more details. - * - * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title. - * - * \@since 4.1.0 - */ -var NgbPanelHeader = /** @class */ (function () { - function NgbPanelHeader(templateRef) { - this.templateRef = templateRef; - } - NgbPanelHeader.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelHeader]' },] } - ]; - /** @nocollapse */ - NgbPanelHeader.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPanelHeader; -}()); -/** - * A directive that wraps only the panel title with HTML markup inside. - * - * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header. - */ -var NgbPanelTitle = /** @class */ (function () { - function NgbPanelTitle(templateRef) { - this.templateRef = templateRef; - } - NgbPanelTitle.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelTitle]' },] } - ]; - /** @nocollapse */ - NgbPanelTitle.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPanelTitle; -}()); -/** - * A directive that wraps the accordion panel content. - */ -var NgbPanelContent = /** @class */ (function () { - function NgbPanelContent(templateRef) { - this.templateRef = templateRef; - } - NgbPanelContent.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPanelContent]' },] } - ]; - /** @nocollapse */ - NgbPanelContent.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPanelContent; -}()); -/** - * A directive that wraps an individual accordion panel with title and collapsible content. - */ -var NgbPanel = /** @class */ (function () { - function NgbPanel() { - /** - * If `true`, the panel is disabled an can't be toggled. - */ - this.disabled = false; - /** - * An optional id for the panel that must be unique on the page. - * - * If not provided, it will be auto-generated in the `ngb-panel-xxx` format. - */ - this.id = "ngb-panel-" + nextId++; - this.isOpen = false; - } - /** - * @return {?} - */ - NgbPanel.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - // We are using @ContentChildren instead of @ContentChild as in the Angular version being used - // only @ContentChildren allows us to specify the {descendants: false} option. - // Without {descendants: false} we are hitting bugs described in: - // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240 - this.titleTpl = this.titleTpls.first; - this.headerTpl = this.headerTpls.first; - this.contentTpl = this.contentTpls.first; - }; - NgbPanel.decorators = [ - { type: Directive, args: [{ selector: 'ngb-panel' },] } - ]; - NgbPanel.propDecorators = { - disabled: [{ type: Input }], - id: [{ type: Input }], - title: [{ type: Input }], - type: [{ type: Input }], - titleTpls: [{ type: ContentChildren, args: [NgbPanelTitle, { descendants: false },] }], - headerTpls: [{ type: ContentChildren, args: [NgbPanelHeader, { descendants: false },] }], - contentTpls: [{ type: ContentChildren, args: [NgbPanelContent, { descendants: false },] }] - }; - return NgbPanel; -}()); -/** - * Accordion is a collection of collapsible panels (bootstrap cards). - * - * It can ensure only one panel is opened at a time and allows to customize panel - * headers. - */ -var NgbAccordion = /** @class */ (function () { - function NgbAccordion(config) { - /** - * An array or comma separated strings of panel ids that should be opened **initially**. - * - * For subsequent changes use methods like `expand()`, `collapse()`, etc. and - * the `(panelChange)` event. - */ - this.activeIds = []; - /** - * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed. - */ - this.destroyOnHide = true; - /** - * Event emitted right before the panel toggle happens. - * - * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details. - */ - this.panelChange = new EventEmitter(); - this.type = config.type; - this.closeOtherPanels = config.closeOthers; - } - /** - * Checks if a panel with a given id is expanded. - */ - /** - * Checks if a panel with a given id is expanded. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.isExpanded = /** - * Checks if a panel with a given id is expanded. - * @param {?} panelId - * @return {?} - */ - function (panelId) { return this.activeIds.indexOf(panelId) > -1; }; - /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - */ - /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.expand = /** - * Expands a panel with a given id. - * - * Has no effect if the panel is already expanded or disabled. - * @param {?} panelId - * @return {?} - */ - function (panelId) { this._changeOpenState(this._findPanelById(panelId), true); }; - /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - */ - /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - * @return {?} - */ - NgbAccordion.prototype.expandAll = /** - * Expands all panels, if `[closeOthers]` is `false`. - * - * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened. - * @return {?} - */ - function () { - var _this = this; - if (this.closeOtherPanels) { - if (this.activeIds.length === 0 && this.panels.length) { - this._changeOpenState(this.panels.first, true); - } - } - else { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return _this._changeOpenState(panel, true); })); - } - }; - /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - */ - /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.collapse = /** - * Collapses a panel with the given id. - * - * Has no effect if the panel is already collapsed or disabled. - * @param {?} panelId - * @return {?} - */ - function (panelId) { this._changeOpenState(this._findPanelById(panelId), false); }; - /** - * Collapses all opened panels. - */ - /** - * Collapses all opened panels. - * @return {?} - */ - NgbAccordion.prototype.collapseAll = /** - * Collapses all opened panels. - * @return {?} - */ - function () { - var _this = this; - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { _this._changeOpenState(panel, false); })); - }; - /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - */ - /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype.toggle = /** - * Toggles a panel with the given id. - * - * Has no effect if the panel is disabled. - * @param {?} panelId - * @return {?} - */ - function (panelId) { - /** @type {?} */ - var panel = this._findPanelById(panelId); - if (panel) { - this._changeOpenState(panel, !panel.isOpen); - } - }; - /** - * @return {?} - */ - NgbAccordion.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - var _this = this; - // active id updates - if (isString(this.activeIds)) { - this.activeIds = this.activeIds.split(/\s*,\s*/); - } - // update panels open states - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return panel.isOpen = !panel.disabled && _this.activeIds.indexOf(panel.id) > -1; })); - // closeOthers updates - if (this.activeIds.length > 1 && this.closeOtherPanels) { - this._closeOthers(this.activeIds[0]); - this._updateActiveIds(); - } - }; - /** - * @private - * @param {?} panel - * @param {?} nextState - * @return {?} - */ - NgbAccordion.prototype._changeOpenState = /** - * @private - * @param {?} panel - * @param {?} nextState - * @return {?} - */ - function (panel, nextState) { - if (panel && !panel.disabled && panel.isOpen !== nextState) { - /** @type {?} */ - var defaultPrevented_1 = false; - this.panelChange.emit({ panelId: panel.id, nextState: nextState, preventDefault: (/** - * @return {?} - */ - function () { defaultPrevented_1 = true; }) }); - if (!defaultPrevented_1) { - panel.isOpen = nextState; - if (nextState && this.closeOtherPanels) { - this._closeOthers(panel.id); - } - this._updateActiveIds(); - } - } - }; - /** - * @private - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype._closeOthers = /** - * @private - * @param {?} panelId - * @return {?} - */ - function (panelId) { - this.panels.forEach((/** - * @param {?} panel - * @return {?} - */ - function (panel) { - if (panel.id !== panelId) { - panel.isOpen = false; - } - })); - }; - /** - * @private - * @param {?} panelId - * @return {?} - */ - NgbAccordion.prototype._findPanelById = /** - * @private - * @param {?} panelId - * @return {?} - */ - function (panelId) { return this.panels.find((/** - * @param {?} p - * @return {?} - */ - function (p) { return p.id === panelId; })); }; - /** - * @private - * @return {?} - */ - NgbAccordion.prototype._updateActiveIds = /** - * @private - * @return {?} - */ - function () { - this.activeIds = this.panels.filter((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return panel.isOpen && !panel.disabled; })).map((/** - * @param {?} panel - * @return {?} - */ - function (panel) { return panel.id; })); - }; - NgbAccordion.decorators = [ - { type: Component, args: [{ - selector: 'ngb-accordion', - exportAs: 'ngbAccordion', - host: { 'class': 'accordion', 'role': 'tablist', '[attr.aria-multiselectable]': '!closeOtherPanels' }, - template: "\n \n \n \n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n " - }] } - ]; - /** @nocollapse */ - NgbAccordion.ctorParameters = function () { return [ - { type: NgbAccordionConfig } - ]; }; - NgbAccordion.propDecorators = { - panels: [{ type: ContentChildren, args: [NgbPanel,] }], - activeIds: [{ type: Input }], - closeOtherPanels: [{ type: Input, args: ['closeOthers',] }], - destroyOnHide: [{ type: Input }], - type: [{ type: Input }], - panelChange: [{ type: Output }] - }; - return NgbAccordion; -}()); -/** - * A directive to put on a button that toggles panel opening and closing. - * - * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) - * - * \@since 4.1.0 - */ -var NgbPanelToggle = /** @class */ (function () { - function NgbPanelToggle(accordion, panel) { - this.accordion = accordion; - this.panel = panel; - } - Object.defineProperty(NgbPanelToggle.prototype, "ngbPanelToggle", { - set: /** - * @param {?} panel - * @return {?} - */ - function (panel) { - if (panel) { - this.panel = panel; - } - }, - enumerable: true, - configurable: true - }); - NgbPanelToggle.decorators = [ - { type: Directive, args: [{ - selector: 'button[ngbPanelToggle]', - host: { - 'type': 'button', - '[disabled]': 'panel.disabled', - '[class.collapsed]': '!panel.isOpen', - '[attr.aria-expanded]': 'panel.isOpen', - '[attr.aria-controls]': 'panel.id', - '(click)': 'accordion.toggle(panel.id)' - } - },] } - ]; - /** @nocollapse */ - NgbPanelToggle.ctorParameters = function () { return [ - { type: NgbAccordion }, - { type: NgbPanel, decorators: [{ type: Optional }, { type: Host }] } - ]; }; - NgbPanelToggle.propDecorators = { - ngbPanelToggle: [{ type: Input }] - }; - return NgbPanelToggle; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_ACCORDION_DIRECTIVES = [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle]; -var NgbAccordionModule = /** @class */ (function () { - function NgbAccordionModule() { - } - NgbAccordionModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_ACCORDION_DIRECTIVES, exports: NGB_ACCORDION_DIRECTIVES, imports: [CommonModule] },] } - ]; - return NgbAccordionModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all alerts used in the application. - */ -var NgbAlertConfig = /** @class */ (function () { - function NgbAlertConfig() { - this.dismissible = true; - this.type = 'warning'; - } - NgbAlertConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbAlertConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbAlertConfig_Factory() { return new NgbAlertConfig(); }, token: NgbAlertConfig, providedIn: "root" }); - return NgbAlertConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Alert is a component to provide contextual feedback messages for user. - * - * It supports several alert types and can be dismissed. - */ -var NgbAlert = /** @class */ (function () { - function NgbAlert(config, _renderer, _element) { - this._renderer = _renderer; - this._element = _element; - /** - * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts. - */ - this.close = new EventEmitter(); - this.dismissible = config.dismissible; - this.type = config.type; - } - /** - * @return {?} - */ - NgbAlert.prototype.closeHandler = /** - * @return {?} - */ - function () { this.close.emit(null); }; - /** - * @param {?} changes - * @return {?} - */ - NgbAlert.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - /** @type {?} */ - var typeChange = changes['type']; - if (typeChange && !typeChange.firstChange) { - this._renderer.removeClass(this._element.nativeElement, "alert-" + typeChange.previousValue); - this._renderer.addClass(this._element.nativeElement, "alert-" + typeChange.currentValue); - } - }; - /** - * @return {?} - */ - NgbAlert.prototype.ngOnInit = /** - * @return {?} - */ - function () { this._renderer.addClass(this._element.nativeElement, "alert-" + this.type); }; - NgbAlert.decorators = [ - { type: Component, args: [{ - selector: 'ngb-alert', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { 'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible' }, - template: "\n \n \n ", - styles: ["ngb-alert{display:block}"] - }] } - ]; - /** @nocollapse */ - NgbAlert.ctorParameters = function () { return [ - { type: NgbAlertConfig }, - { type: Renderer2 }, - { type: ElementRef } - ]; }; - NgbAlert.propDecorators = { - dismissible: [{ type: Input }], - type: [{ type: Input }], - close: [{ type: Output }] - }; - return NgbAlert; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbAlertModule = /** @class */ (function () { - function NgbAlertModule() { - } - NgbAlertModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbAlert], exports: [NgbAlert], imports: [CommonModule], entryComponents: [NgbAlert] },] } - ]; - return NgbAlertModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbButtonLabel = /** @class */ (function () { - function NgbButtonLabel() { - } - NgbButtonLabel.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButtonLabel]', - host: { '[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused' } - },] } - ]; - return NgbButtonLabel; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_CHECKBOX_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbCheckBox; })), - multi: true -}; -/** - * Allows to easily create Bootstrap-style checkbox buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ -var NgbCheckBox = /** @class */ (function () { - function NgbCheckBox(_label, _cd) { - this._label = _label; - this._cd = _cd; - /** - * If `true`, the checkbox button will be disabled - */ - this.disabled = false; - /** - * The form control value when the checkbox is checked. - */ - this.valueChecked = true; - /** - * The form control value when the checkbox is unchecked. - */ - this.valueUnChecked = false; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - } - Object.defineProperty(NgbCheckBox.prototype, "focused", { - set: /** - * @param {?} isFocused - * @return {?} - */ - function (isFocused) { - this._label.focused = isFocused; - if (!isFocused) { - this.onTouched(); - } - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} $event - * @return {?} - */ - NgbCheckBox.prototype.onInputChange = /** - * @param {?} $event - * @return {?} - */ - function ($event) { - /** @type {?} */ - var modelToPropagate = $event.target.checked ? this.valueChecked : this.valueUnChecked; - this.onChange(modelToPropagate); - this.onTouched(); - this.writeValue(modelToPropagate); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbCheckBox.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbCheckBox.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbCheckBox.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this.disabled = isDisabled; - this._label.disabled = isDisabled; - }; - /** - * @param {?} value - * @return {?} - */ - NgbCheckBox.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this.checked = value === this.valueChecked; - this._label.active = this.checked; - // label won't be updated, if it is inside the OnPush component when [ngModel] changes - this._cd.markForCheck(); - }; - NgbCheckBox.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButton][type=checkbox]', - host: { - 'autocomplete': 'off', - '[checked]': 'checked', - '[disabled]': 'disabled', - '(change)': 'onInputChange($event)', - '(focus)': 'focused = true', - '(blur)': 'focused = false' - }, - providers: [NGB_CHECKBOX_VALUE_ACCESSOR] - },] } - ]; - /** @nocollapse */ - NgbCheckBox.ctorParameters = function () { return [ - { type: NgbButtonLabel }, - { type: ChangeDetectorRef } - ]; }; - NgbCheckBox.propDecorators = { - disabled: [{ type: Input }], - valueChecked: [{ type: Input }], - valueUnChecked: [{ type: Input }] - }; - return NgbCheckBox; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_RADIO_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbRadioGroup; })), - multi: true -}; -/** @type {?} */ -var nextId$1 = 0; -/** - * Allows to easily create Bootstrap-style radio buttons. - * - * Integrates with forms, so the value of a checked button is bound to the underlying form control - * either in a reactive or template-driven way. - */ -var NgbRadioGroup = /** @class */ (function () { - function NgbRadioGroup() { - this._radios = new Set(); - this._value = null; - /** - * Name of the radio group applied to radio input elements. - * - * Will be applied to all radio input elements inside the group, - * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves. - * - * If not provided, will be generated in the `ngb-radio-xx` format. - */ - this.name = "ngb-radio-" + nextId$1++; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - } - Object.defineProperty(NgbRadioGroup.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { return this._disabled; }, - set: /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.setDisabledState(isDisabled); }, - enumerable: true, - configurable: true - }); - /** - * @param {?} radio - * @return {?} - */ - NgbRadioGroup.prototype.onRadioChange = /** - * @param {?} radio - * @return {?} - */ - function (radio) { - this.writeValue(radio.value); - this.onChange(radio.value); - }; - /** - * @return {?} - */ - NgbRadioGroup.prototype.onRadioValueUpdate = /** - * @return {?} - */ - function () { this._updateRadiosValue(); }; - /** - * @param {?} radio - * @return {?} - */ - NgbRadioGroup.prototype.register = /** - * @param {?} radio - * @return {?} - */ - function (radio) { this._radios.add(radio); }; - /** - * @param {?} fn - * @return {?} - */ - NgbRadioGroup.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbRadioGroup.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbRadioGroup.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this._disabled = isDisabled; - this._updateRadiosDisabled(); - }; - /** - * @param {?} radio - * @return {?} - */ - NgbRadioGroup.prototype.unregister = /** - * @param {?} radio - * @return {?} - */ - function (radio) { this._radios.delete(radio); }; - /** - * @param {?} value - * @return {?} - */ - NgbRadioGroup.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._value = value; - this._updateRadiosValue(); - }; - /** - * @private - * @return {?} - */ - NgbRadioGroup.prototype._updateRadiosValue = /** - * @private - * @return {?} - */ - function () { - var _this = this; - this._radios.forEach((/** - * @param {?} radio - * @return {?} - */ - function (radio) { return radio.updateValue(_this._value); })); - }; - /** - * @private - * @return {?} - */ - NgbRadioGroup.prototype._updateRadiosDisabled = /** - * @private - * @return {?} - */ - function () { this._radios.forEach((/** - * @param {?} radio - * @return {?} - */ - function (radio) { return radio.updateDisabled(); })); }; - NgbRadioGroup.decorators = [ - { type: Directive, args: [{ selector: '[ngbRadioGroup]', host: { 'role': 'radiogroup' }, providers: [NGB_RADIO_VALUE_ACCESSOR] },] } - ]; - NgbRadioGroup.propDecorators = { - name: [{ type: Input }] - }; - return NgbRadioGroup; -}()); -/** - * A directive that marks an input of type "radio" as a part of the - * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup). - */ -var NgbRadio = /** @class */ (function () { - function NgbRadio(_group, _label, _renderer, _element, _cd) { - this._group = _group; - this._label = _label; - this._renderer = _renderer; - this._element = _element; - this._cd = _cd; - this._value = null; - this._group.register(this); - this.updateDisabled(); - } - Object.defineProperty(NgbRadio.prototype, "value", { - get: /** - * @return {?} - */ - function () { return this._value; }, - /** - * The form control value when current radio button is checked. - */ - set: /** - * The form control value when current radio button is checked. - * @param {?} value - * @return {?} - */ - function (value) { - this._value = value; - /** @type {?} */ - var stringValue = value ? value.toString() : ''; - this._renderer.setProperty(this._element.nativeElement, 'value', stringValue); - this._group.onRadioValueUpdate(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { return this._group.disabled || this._disabled; }, - /** - * If `true`, current radio button will be disabled. - */ - set: /** - * If `true`, current radio button will be disabled. - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this._disabled = isDisabled !== false; - this.updateDisabled(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "focused", { - set: /** - * @param {?} isFocused - * @return {?} - */ - function (isFocused) { - if (this._label) { - this._label.focused = isFocused; - } - if (!isFocused) { - this._group.onTouched(); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "checked", { - get: /** - * @return {?} - */ - function () { return this._checked; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbRadio.prototype, "nameAttr", { - get: /** - * @return {?} - */ - function () { return this.name || this._group.name; }, - enumerable: true, - configurable: true - }); - /** - * @return {?} - */ - NgbRadio.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { this._group.unregister(this); }; - /** - * @return {?} - */ - NgbRadio.prototype.onChange = /** - * @return {?} - */ - function () { this._group.onRadioChange(this); }; - /** - * @param {?} value - * @return {?} - */ - NgbRadio.prototype.updateValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - // label won't be updated, if it is inside the OnPush component when [ngModel] changes - if (this.value !== value) { - this._cd.markForCheck(); - } - this._checked = this.value === value; - this._label.active = this._checked; - }; - /** - * @return {?} - */ - NgbRadio.prototype.updateDisabled = /** - * @return {?} - */ - function () { this._label.disabled = this.disabled; }; - NgbRadio.decorators = [ - { type: Directive, args: [{ - selector: '[ngbButton][type=radio]', - host: { - '[checked]': 'checked', - '[disabled]': 'disabled', - '[name]': 'nameAttr', - '(change)': 'onChange()', - '(focus)': 'focused = true', - '(blur)': 'focused = false' - } - },] } - ]; - /** @nocollapse */ - NgbRadio.ctorParameters = function () { return [ - { type: NgbRadioGroup }, - { type: NgbButtonLabel }, - { type: Renderer2 }, - { type: ElementRef }, - { type: ChangeDetectorRef } - ]; }; - NgbRadio.propDecorators = { - name: [{ type: Input }], - value: [{ type: Input, args: ['value',] }], - disabled: [{ type: Input, args: ['disabled',] }] - }; - return NgbRadio; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_BUTTON_DIRECTIVES = [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio]; -var NgbButtonsModule = /** @class */ (function () { - function NgbButtonsModule() { - } - NgbButtonsModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_BUTTON_DIRECTIVES, exports: NGB_BUTTON_DIRECTIVES },] } - ]; - return NgbButtonsModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component. - * - * You can inject this service, typically in your root component, and customize its properties - * to provide default values for all carousels used in the application. - */ -var NgbCarouselConfig = /** @class */ (function () { - function NgbCarouselConfig() { - this.interval = 5000; - this.wrap = true; - this.keyboard = true; - this.pauseOnHover = true; - this.showNavigationArrows = true; - this.showNavigationIndicators = true; - } - NgbCarouselConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbCarouselConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbCarouselConfig_Factory() { return new NgbCarouselConfig(); }, token: NgbCarouselConfig, providedIn: "root" }); - return NgbCarouselConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var nextId$2 = 0; -/** - * A directive that wraps the individual carousel slide. - */ -var NgbSlide = /** @class */ (function () { - function NgbSlide(tplRef) { - this.tplRef = tplRef; - /** - * Slide id that must be unique for the entire document. - * - * If not provided, will be generated in the `ngb-slide-xx` format. - */ - this.id = "ngb-slide-" + nextId$2++; - } - NgbSlide.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbSlide]' },] } - ]; - /** @nocollapse */ - NgbSlide.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - NgbSlide.propDecorators = { - id: [{ type: Input }] - }; - return NgbSlide; -}()); -/** - * Carousel is a component to easily create and control slideshows. - * - * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API. - */ -var NgbCarousel = /** @class */ (function () { - function NgbCarousel(config, _platformId, _ngZone, _cd) { - this._platformId = _platformId; - this._ngZone = _ngZone; - this._cd = _cd; - this.NgbSlideEventSource = NgbSlideEventSource; - this._destroy$ = new Subject(); - this._interval$ = new BehaviorSubject(0); - this._mouseHover$ = new BehaviorSubject(false); - this._pauseOnHover$ = new BehaviorSubject(false); - this._pause$ = new BehaviorSubject(false); - this._wrap$ = new BehaviorSubject(false); - /** - * An event emitted right after the slide transition is completed. - * - * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details. - */ - this.slide = new EventEmitter(); - this.interval = config.interval; - this.wrap = config.wrap; - this.keyboard = config.keyboard; - this.pauseOnHover = config.pauseOnHover; - this.showNavigationArrows = config.showNavigationArrows; - this.showNavigationIndicators = config.showNavigationIndicators; - } - Object.defineProperty(NgbCarousel.prototype, "interval", { - get: /** - * @return {?} - */ - function () { return this._interval$.value; }, - /** - * Time in milliseconds before the next slide is shown. - */ - set: /** - * Time in milliseconds before the next slide is shown. - * @param {?} value - * @return {?} - */ - function (value) { - this._interval$.next(value); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbCarousel.prototype, "wrap", { - get: /** - * @return {?} - */ - function () { return this._wrap$.value; }, - /** - * If `true`, will 'wrap' the carousel by switching from the last slide back to the first. - */ - set: /** - * If `true`, will 'wrap' the carousel by switching from the last slide back to the first. - * @param {?} value - * @return {?} - */ - function (value) { - this._wrap$.next(value); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbCarousel.prototype, "pauseOnHover", { - get: /** - * @return {?} - */ - function () { return this._pauseOnHover$.value; }, - /** - * If `true`, will pause slide switching when mouse cursor hovers the slide. - * - * @since 2.2.0 - */ - set: /** - * If `true`, will pause slide switching when mouse cursor hovers the slide. - * - * \@since 2.2.0 - * @param {?} value - * @return {?} - */ - function (value) { - this._pauseOnHover$.next(value); - }, - enumerable: true, - configurable: true - }); - /** - * @return {?} - */ - NgbCarousel.prototype.mouseEnter = /** - * @return {?} - */ - function () { - this._mouseHover$.next(true); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.mouseLeave = /** - * @return {?} - */ - function () { - this._mouseHover$.next(false); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.ngAfterContentInit = /** - * @return {?} - */ - function () { - var _this = this; - // setInterval() doesn't play well with SSR and protractor, - // so we should run it in the browser and outside Angular - if (isPlatformBrowser(this._platformId)) { - this._ngZone.runOutsideAngular((/** - * @return {?} - */ - function () { - /** @type {?} */ - var hasNextSlide$ = combineLatest(_this.slide.pipe(map((/** - * @param {?} slideEvent - * @return {?} - */ - function (slideEvent) { return slideEvent.current; })), startWith(_this.activeId)), _this._wrap$, _this.slides.changes.pipe(startWith(null))) - .pipe(map((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = __read(_a, 2), currentSlideId = _b[0], wrap = _b[1]; - /** @type {?} */ - var slideArr = _this.slides.toArray(); - /** @type {?} */ - var currentSlideIdx = _this._getSlideIdxById(currentSlideId); - return wrap ? slideArr.length > 1 : currentSlideIdx < slideArr.length - 1; - })), distinctUntilChanged()); - combineLatest(_this._pause$, _this._pauseOnHover$, _this._mouseHover$, _this._interval$, hasNextSlide$) - .pipe(map((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = __read(_a, 5), pause = _b[0], pauseOnHover = _b[1], mouseHover = _b[2], interval = _b[3], hasNextSlide = _b[4]; - return ((pause || (pauseOnHover && mouseHover) || !hasNextSlide) ? 0 : interval); - })), distinctUntilChanged(), switchMap((/** - * @param {?} interval - * @return {?} - */ - function (interval) { return interval > 0 ? timer(interval, interval) : NEVER; })), takeUntil(_this._destroy$)) - .subscribe((/** - * @return {?} - */ - function () { return _this._ngZone.run((/** - * @return {?} - */ - function () { return _this.next(NgbSlideEventSource.TIMER); })); })); - })); - } - this.slides.changes.pipe(takeUntil(this._destroy$)).subscribe((/** - * @return {?} - */ - function () { return _this._cd.markForCheck(); })); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - /** @type {?} */ - var activeSlide = this._getSlideById(this.activeId); - this.activeId = activeSlide ? activeSlide.id : (this.slides.length ? this.slides.first.id : null); - }; - /** - * @return {?} - */ - NgbCarousel.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { this._destroy$.next(); }; - /** - * Navigates to a slide with the specified identifier. - */ - /** - * Navigates to a slide with the specified identifier. - * @param {?} slideId - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype.select = /** - * Navigates to a slide with the specified identifier. - * @param {?} slideId - * @param {?=} source - * @return {?} - */ - function (slideId, source) { - this._cycleToSelected(slideId, this._getSlideEventDirection(this.activeId, slideId), source); - }; - /** - * Navigates to the previous slide. - */ - /** - * Navigates to the previous slide. - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype.prev = /** - * Navigates to the previous slide. - * @param {?=} source - * @return {?} - */ - function (source) { - this._cycleToSelected(this._getPrevSlide(this.activeId), NgbSlideEventDirection.RIGHT, source); - }; - /** - * Navigates to the next slide. - */ - /** - * Navigates to the next slide. - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype.next = /** - * Navigates to the next slide. - * @param {?=} source - * @return {?} - */ - function (source) { - this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source); - }; - /** - * Pauses cycling through the slides. - */ - /** - * Pauses cycling through the slides. - * @return {?} - */ - NgbCarousel.prototype.pause = /** - * Pauses cycling through the slides. - * @return {?} - */ - function () { this._pause$.next(true); }; - /** - * Restarts cycling through the slides from left to right. - */ - /** - * Restarts cycling through the slides from left to right. - * @return {?} - */ - NgbCarousel.prototype.cycle = /** - * Restarts cycling through the slides from left to right. - * @return {?} - */ - function () { this._pause$.next(false); }; - /** - * @private - * @param {?} slideIdx - * @param {?} direction - * @param {?=} source - * @return {?} - */ - NgbCarousel.prototype._cycleToSelected = /** - * @private - * @param {?} slideIdx - * @param {?} direction - * @param {?=} source - * @return {?} - */ - function (slideIdx, direction, source) { - /** @type {?} */ - var selectedSlide = this._getSlideById(slideIdx); - if (selectedSlide && selectedSlide.id !== this.activeId) { - this.slide.emit({ prev: this.activeId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source: source }); - this.activeId = selectedSlide.id; - } - // we get here after the interval fires or any external API call like next(), prev() or select() - this._cd.markForCheck(); - }; - /** - * @private - * @param {?} currentActiveSlideId - * @param {?} nextActiveSlideId - * @return {?} - */ - NgbCarousel.prototype._getSlideEventDirection = /** - * @private - * @param {?} currentActiveSlideId - * @param {?} nextActiveSlideId - * @return {?} - */ - function (currentActiveSlideId, nextActiveSlideId) { - /** @type {?} */ - var currentActiveSlideIdx = this._getSlideIdxById(currentActiveSlideId); - /** @type {?} */ - var nextActiveSlideIdx = this._getSlideIdxById(nextActiveSlideId); - return currentActiveSlideIdx > nextActiveSlideIdx ? NgbSlideEventDirection.RIGHT : NgbSlideEventDirection.LEFT; - }; - /** - * @private - * @param {?} slideId - * @return {?} - */ - NgbCarousel.prototype._getSlideById = /** - * @private - * @param {?} slideId - * @return {?} - */ - function (slideId) { return this.slides.find((/** - * @param {?} slide - * @return {?} - */ - function (slide) { return slide.id === slideId; })); }; - /** - * @private - * @param {?} slideId - * @return {?} - */ - NgbCarousel.prototype._getSlideIdxById = /** - * @private - * @param {?} slideId - * @return {?} - */ - function (slideId) { - return this.slides.toArray().indexOf(this._getSlideById(slideId)); - }; - /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - NgbCarousel.prototype._getNextSlide = /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - function (currentSlideId) { - /** @type {?} */ - var slideArr = this.slides.toArray(); - /** @type {?} */ - var currentSlideIdx = this._getSlideIdxById(currentSlideId); - /** @type {?} */ - var isLastSlide = currentSlideIdx === slideArr.length - 1; - return isLastSlide ? (this.wrap ? slideArr[0].id : slideArr[slideArr.length - 1].id) : - slideArr[currentSlideIdx + 1].id; - }; - /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - NgbCarousel.prototype._getPrevSlide = /** - * @private - * @param {?} currentSlideId - * @return {?} - */ - function (currentSlideId) { - /** @type {?} */ - var slideArr = this.slides.toArray(); - /** @type {?} */ - var currentSlideIdx = this._getSlideIdxById(currentSlideId); - /** @type {?} */ - var isFirstSlide = currentSlideIdx === 0; - return isFirstSlide ? (this.wrap ? slideArr[slideArr.length - 1].id : slideArr[0].id) : - slideArr[currentSlideIdx - 1].id; - }; - NgbCarousel.decorators = [ - { type: Component, args: [{ - selector: 'ngb-carousel', - exportAs: 'ngbCarousel', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { - 'class': 'carousel slide', - '[style.display]': '"block"', - 'tabIndex': '0', - '(keydown.arrowLeft)': 'keyboard && prev(NgbSlideEventSource.ARROW_LEFT)', - '(keydown.arrowRight)': 'keyboard && next(NgbSlideEventSource.ARROW_RIGHT)' - }, - template: "\n
    \n
  1. \n
\n
\n
\n \n
\n
\n \n \n Previous\n \n \n \n Next\n \n " - }] } - ]; - /** @nocollapse */ - NgbCarousel.ctorParameters = function () { return [ - { type: NgbCarouselConfig }, - { type: undefined, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, - { type: NgZone }, - { type: ChangeDetectorRef } - ]; }; - NgbCarousel.propDecorators = { - slides: [{ type: ContentChildren, args: [NgbSlide,] }], - activeId: [{ type: Input }], - interval: [{ type: Input }], - wrap: [{ type: Input }], - keyboard: [{ type: Input }], - pauseOnHover: [{ type: Input }], - showNavigationArrows: [{ type: Input }], - showNavigationIndicators: [{ type: Input }], - slide: [{ type: Output }], - mouseEnter: [{ type: HostListener, args: ['mouseenter',] }], - mouseLeave: [{ type: HostListener, args: ['mouseleave',] }] - }; - return NgbCarousel; -}()); -/** @enum {string} */ -var NgbSlideEventDirection = { - LEFT: (/** @type {?} */ ('left')), - RIGHT: (/** @type {?} */ ('right')), -}; -/** @enum {string} */ -var NgbSlideEventSource = { - TIMER: 'timer', - ARROW_LEFT: 'arrowLeft', - ARROW_RIGHT: 'arrowRight', - INDICATOR: 'indicator', -}; -/** @type {?} */ -var NGB_CAROUSEL_DIRECTIVES = [NgbCarousel, NgbSlide]; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbCarouselModule = /** @class */ (function () { - function NgbCarouselModule() { - } - NgbCarouselModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_CAROUSEL_DIRECTIVES, exports: NGB_CAROUSEL_DIRECTIVES, imports: [CommonModule] },] } - ]; - return NgbCarouselModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A directive to provide a simple way of hiding and showing elements on the page. - */ -var NgbCollapse = /** @class */ (function () { - function NgbCollapse() { - /** - * If `true`, will collapse the element or show it otherwise. - */ - this.collapsed = false; - } - NgbCollapse.decorators = [ - { type: Directive, args: [{ - selector: '[ngbCollapse]', - exportAs: 'ngbCollapse', - host: { '[class.collapse]': 'true', '[class.show]': '!collapsed' } - },] } - ]; - NgbCollapse.propDecorators = { - collapsed: [{ type: Input, args: ['ngbCollapse',] }] - }; - return NgbCollapse; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbCollapseModule = /** @class */ (function () { - function NgbCollapseModule() { - } - NgbCollapseModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbCollapse], exports: [NgbCollapse] },] } - ]; - return NgbCollapseModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A simple class that represents a date that datepicker also uses internally. - * - * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods, - * like `.equals()`, `.before()`, etc. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * In many cases it is simpler to manipulate these objects together with - * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * - * \@since 3.0.0 - */ -var /** - * A simple class that represents a date that datepicker also uses internally. - * - * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods, - * like `.equals()`, `.before()`, etc. - * - * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`. - * - * In many cases it is simpler to manipulate these objects together with - * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * - * \@since 3.0.0 - */ -NgbDate = /** @class */ (function () { - function NgbDate(year, month, day) { - this.year = isInteger(year) ? year : null; - this.month = isInteger(month) ? month : null; - this.day = isInteger(day) ? day : null; - } - /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - */ - /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - * @param {?} date - * @return {?} - */ - NgbDate.from = /** - * A **static method** that creates a new date object from the `NgbDateStruct`, - * - * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`. - * - * If the `date` is already of `NgbDate` type, the method will return the same object. - * @param {?} date - * @return {?} - */ - function (date) { - if (date instanceof NgbDate) { - return date; - } - return date ? new NgbDate(date.year, date.month, date.day) : null; - }; - /** - * Checks if the current date is equal to another date. - */ - /** - * Checks if the current date is equal to another date. - * @param {?} other - * @return {?} - */ - NgbDate.prototype.equals = /** - * Checks if the current date is equal to another date. - * @param {?} other - * @return {?} - */ - function (other) { - return other && this.year === other.year && this.month === other.month && this.day === other.day; - }; - /** - * Checks if the current date is before another date. - */ - /** - * Checks if the current date is before another date. - * @param {?} other - * @return {?} - */ - NgbDate.prototype.before = /** - * Checks if the current date is before another date. - * @param {?} other - * @return {?} - */ - function (other) { - if (!other) { - return false; - } - if (this.year === other.year) { - if (this.month === other.month) { - return this.day === other.day ? false : this.day < other.day; - } - else { - return this.month < other.month; - } - } - else { - return this.year < other.year; - } - }; - /** - * Checks if the current date is after another date. - */ - /** - * Checks if the current date is after another date. - * @param {?} other - * @return {?} - */ - NgbDate.prototype.after = /** - * Checks if the current date is after another date. - * @param {?} other - * @return {?} - */ - function (other) { - if (!other) { - return false; - } - if (this.year === other.year) { - if (this.month === other.month) { - return this.day === other.day ? false : this.day > other.day; - } - else { - return this.month > other.month; - } - } - else { - return this.year > other.year; - } - }; - return NgbDate; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} jsDate - * @return {?} - */ -function fromJSDate(jsDate) { - return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate()); -} -/** - * @param {?} date - * @return {?} - */ -function toJSDate(date) { - /** @type {?} */ - var jsDate = new Date(date.year, date.month - 1, date.day, 12); - // this is done avoid 30 -> 1930 conversion - if (!isNaN(jsDate.getTime())) { - jsDate.setFullYear(date.year); - } - return jsDate; -} -/** - * @return {?} - */ -function NGB_DATEPICKER_CALENDAR_FACTORY() { - return new NgbCalendarGregorian(); -} -/** - * A service that represents the calendar used by the datepicker. - * - * The default implementation uses the Gregorian calendar. You can inject it in your own - * implementations if necessary to simplify `NgbDate` calculations. - * @abstract - */ -var NgbCalendar = /** @class */ (function () { - function NgbCalendar() { - } - NgbCalendar.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_CALENDAR_FACTORY },] } - ]; - /** @nocollapse */ NgbCalendar.ngInjectableDef = ɵɵdefineInjectable({ factory: NGB_DATEPICKER_CALENDAR_FACTORY, token: NgbCalendar, providedIn: "root" }); - return NgbCalendar; -}()); -var NgbCalendarGregorian = /** @class */ (function (_super) { - __extends(NgbCalendarGregorian, _super); - function NgbCalendarGregorian() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getMonths = /** - * @return {?} - */ - function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }; - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarGregorian.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - /** @type {?} */ - var jsDate = toJSDate(date); - switch (period) { - case 'y': - return new NgbDate(date.year + number, 1, 1); - case 'm': - jsDate = new Date(date.year, date.month + number - 1, 1, 12); - break; - case 'd': - jsDate.setDate(jsDate.getDate() + number); - break; - default: - return date; - } - return fromJSDate(jsDate); - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarGregorian.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarGregorian.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = toJSDate(date); - /** @type {?} */ - var day = jsDate.getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarGregorian.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - var thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - var date = week[thursdayIndex]; - /** @type {?} */ - var jsDate = toJSDate(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - var time = jsDate.getTime(); - jsDate.setMonth(0); // Compare with Jan 1 - jsDate.setDate(1); - return Math.floor(Math.round((time - jsDate.getTime()) / 86400000) / 7) + 1; - }; - /** - * @return {?} - */ - NgbCalendarGregorian.prototype.getToday = /** - * @return {?} - */ - function () { return fromJSDate(new Date()); }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarGregorian.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - if (!date || !isInteger(date.year) || !isInteger(date.month) || !isInteger(date.day)) { - return false; - } - // year 0 doesn't exist in Gregorian calendar - if (date.year === 0) { - return false; - } - /** @type {?} */ - var jsDate = toJSDate(date); - return !isNaN(jsDate.getTime()) && jsDate.getFullYear() === date.year && jsDate.getMonth() + 1 === date.month && - jsDate.getDate() === date.day; - }; - NgbCalendarGregorian.decorators = [ - { type: Injectable } - ]; - return NgbCalendarGregorian; -}(NgbCalendar)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -function isChangedDate(prev, next) { - return !dateComparator(prev, next); -} -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -function isChangedMonth(prev, next) { - return !prev && !next ? false : !prev || !next ? true : prev.year !== next.year || prev.month !== next.month; -} -/** - * @param {?} prev - * @param {?} next - * @return {?} - */ -function dateComparator(prev, next) { - return (!prev && !next) || (!!prev && !!next && prev.equals(next)); -} -/** - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -function checkMinBeforeMax(minDate, maxDate) { - if (maxDate && minDate && maxDate.before(minDate)) { - throw new Error("'maxDate' " + maxDate + " should be greater than 'minDate' " + minDate); - } -} -/** - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -function checkDateInRange(date, minDate, maxDate) { - if (date && minDate && date.before(minDate)) { - return minDate; - } - if (date && maxDate && date.after(maxDate)) { - return maxDate; - } - return date; -} -/** - * @param {?} date - * @param {?} state - * @return {?} - */ -function isDateSelectable(date, state) { - var minDate = state.minDate, maxDate = state.maxDate, disabled = state.disabled, markDisabled = state.markDisabled; - // clang-format off - return !(!isDefined(date) || - disabled || - (markDisabled && markDisabled(date, { year: date.year, month: date.month })) || - (minDate && date.before(minDate)) || - (maxDate && date.after(maxDate))); - // clang-format on -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -function generateSelectBoxMonths(calendar, date, minDate, maxDate) { - if (!date) { - return []; - } - /** @type {?} */ - var months = calendar.getMonths(date.year); - if (minDate && date.year === minDate.year) { - /** @type {?} */ - var index = months.findIndex((/** - * @param {?} month - * @return {?} - */ - function (month) { return month === minDate.month; })); - months = months.slice(index); - } - if (maxDate && date.year === maxDate.year) { - /** @type {?} */ - var index = months.findIndex((/** - * @param {?} month - * @return {?} - */ - function (month) { return month === maxDate.month; })); - months = months.slice(0, index + 1); - } - return months; -} -/** - * @param {?} date - * @param {?} minDate - * @param {?} maxDate - * @return {?} - */ -function generateSelectBoxYears(date, minDate, maxDate) { - if (!date) { - return []; - } - /** @type {?} */ - var start = minDate && minDate.year || date.year - 10; - /** @type {?} */ - var end = maxDate && maxDate.year || date.year + 10; - return Array.from({ length: end - start + 1 }, (/** - * @param {?} e - * @param {?} i - * @return {?} - */ - function (e, i) { return start + i; })); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} maxDate - * @return {?} - */ -function nextMonthDisabled(calendar, date, maxDate) { - return maxDate && calendar.getNext(date, 'm').after(maxDate); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} minDate - * @return {?} - */ -function prevMonthDisabled(calendar, date, minDate) { - /** @type {?} */ - var prevDate = calendar.getPrev(date, 'm'); - return minDate && (prevDate.year === minDate.year && prevDate.month < minDate.month || - prevDate.year < minDate.year && minDate.month === 1); -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} state - * @param {?} i18n - * @param {?} force - * @return {?} - */ -function buildMonths(calendar, date, state, i18n, force) { - var displayMonths = state.displayMonths, months = state.months; - // move old months to a temporary array - /** @type {?} */ - var monthsToReuse = months.splice(0, months.length); - // generate new first dates, nullify or reuse months - /** @type {?} */ - var firstDates = Array.from({ length: displayMonths }, (/** - * @param {?} _ - * @param {?} i - * @return {?} - */ - function (_, i) { - /** @type {?} */ - var firstDate = calendar.getNext(date, 'm', i); - months[i] = null; - if (!force) { - /** @type {?} */ - var reusedIndex = monthsToReuse.findIndex((/** - * @param {?} month - * @return {?} - */ - function (month) { return month.firstDate.equals(firstDate); })); - // move reused month back to months - if (reusedIndex !== -1) { - months[i] = monthsToReuse.splice(reusedIndex, 1)[0]; - } - } - return firstDate; - })); - // rebuild nullified months - firstDates.forEach((/** - * @param {?} firstDate - * @param {?} i - * @return {?} - */ - function (firstDate, i) { - if (months[i] === null) { - months[i] = buildMonth(calendar, firstDate, state, i18n, monthsToReuse.shift() || (/** @type {?} */ ({}))); - } - })); - return months; -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} state - * @param {?} i18n - * @param {?=} month - * @return {?} - */ -function buildMonth(calendar, date, state, i18n, month) { - if (month === void 0) { month = (/** @type {?} */ ({})); } - var dayTemplateData = state.dayTemplateData, minDate = state.minDate, maxDate = state.maxDate, firstDayOfWeek = state.firstDayOfWeek, markDisabled = state.markDisabled, outsideDays = state.outsideDays; - /** @type {?} */ - var calendarToday = calendar.getToday(); - month.firstDate = null; - month.lastDate = null; - month.number = date.month; - month.year = date.year; - month.weeks = month.weeks || []; - month.weekdays = month.weekdays || []; - date = getFirstViewDate(calendar, date, firstDayOfWeek); - // month has weeks - for (var week = 0; week < calendar.getWeeksPerMonth(); week++) { - /** @type {?} */ - var weekObject = month.weeks[week]; - if (!weekObject) { - weekObject = month.weeks[week] = { number: 0, days: [], collapsed: true }; - } - /** @type {?} */ - var days = weekObject.days; - // week has days - for (var day = 0; day < calendar.getDaysPerWeek(); day++) { - if (week === 0) { - month.weekdays[day] = calendar.getWeekday(date); - } - /** @type {?} */ - var newDate = new NgbDate(date.year, date.month, date.day); - /** @type {?} */ - var nextDate = calendar.getNext(newDate); - /** @type {?} */ - var ariaLabel = i18n.getDayAriaLabel(newDate); - // marking date as disabled - /** @type {?} */ - var disabled = !!((minDate && newDate.before(minDate)) || (maxDate && newDate.after(maxDate))); - if (!disabled && markDisabled) { - disabled = markDisabled(newDate, { month: month.number, year: month.year }); - } - // today - /** @type {?} */ - var today = newDate.equals(calendarToday); - // adding user-provided data to the context - /** @type {?} */ - var contextUserData = dayTemplateData ? dayTemplateData(newDate, { month: month.number, year: month.year }) : undefined; - // saving first date of the month - if (month.firstDate === null && newDate.month === month.number) { - month.firstDate = newDate; - } - // saving last date of the month - if (newDate.month === month.number && nextDate.month !== month.number) { - month.lastDate = newDate; - } - /** @type {?} */ - var dayObject = days[day]; - if (!dayObject) { - dayObject = days[day] = (/** @type {?} */ ({})); - } - dayObject.date = newDate; - dayObject.context = Object.assign(dayObject.context || {}, { - $implicit: newDate, - date: newDate, - data: contextUserData, - currentMonth: month.number, disabled: disabled, - focused: false, - selected: false, today: today - }); - dayObject.tabindex = -1; - dayObject.ariaLabel = ariaLabel; - dayObject.hidden = false; - date = nextDate; - } - weekObject.number = calendar.getWeekNumber(days.map((/** - * @param {?} day - * @return {?} - */ - function (day) { return day.date; })), firstDayOfWeek); - // marking week as collapsed - weekObject.collapsed = outsideDays === 'collapsed' && days[0].date.month !== month.number && - days[days.length - 1].date.month !== month.number; - } - return month; -} -/** - * @param {?} calendar - * @param {?} date - * @param {?} firstDayOfWeek - * @return {?} - */ -function getFirstViewDate(calendar, date, firstDayOfWeek) { - /** @type {?} */ - var daysPerWeek = calendar.getDaysPerWeek(); - /** @type {?} */ - var firstMonthDate = new NgbDate(date.year, date.month, 1); - /** @type {?} */ - var dayOfWeek = calendar.getWeekday(firstMonthDate) % daysPerWeek; - return calendar.getPrev(firstMonthDate, 'd', (daysPerWeek + dayOfWeek - firstDayOfWeek) % daysPerWeek); -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} locale - * @return {?} - */ -function NGB_DATEPICKER_18N_FACTORY(locale) { - return new NgbDatepickerI18nDefault(locale); -} -/** - * A service supplying i18n data to the datepicker component. - * - * The default implementation of this service uses the Angular locale and registered locale data for - * weekdays and month names (as explained in the Angular i18n guide). - * - * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year - * numerals. For other static labels the datepicker uses the default Angular i18n. - * - * See the [i18n demo](#/components/datepicker/examples#i18n) and - * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define - * a custom provider for i18n. - * @abstract - */ -var NgbDatepickerI18n = /** @class */ (function () { - function NgbDatepickerI18n() { - } - /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * @since 3.0.0 - */ - /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * \@since 3.0.0 - * @param {?} date - * @return {?} - */ - NgbDatepickerI18n.prototype.getDayNumerals = /** - * Returns the textual representation of a day that is rendered in a day cell. - * - * \@since 3.0.0 - * @param {?} date - * @return {?} - */ - function (date) { return "" + date.day; }; - /** - * Returns the textual representation of a week number rendered by datepicker. - * - * @since 3.0.0 - */ - /** - * Returns the textual representation of a week number rendered by datepicker. - * - * \@since 3.0.0 - * @param {?} weekNumber - * @return {?} - */ - NgbDatepickerI18n.prototype.getWeekNumerals = /** - * Returns the textual representation of a week number rendered by datepicker. - * - * \@since 3.0.0 - * @param {?} weekNumber - * @return {?} - */ - function (weekNumber) { return "" + weekNumber; }; - /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * @since 3.0.0 - */ - /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * \@since 3.0.0 - * @param {?} year - * @return {?} - */ - NgbDatepickerI18n.prototype.getYearNumerals = /** - * Returns the textual representation of a year that is rendered in the datepicker year select box. - * - * \@since 3.0.0 - * @param {?} year - * @return {?} - */ - function (year) { return "" + year; }; - NgbDatepickerI18n.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_18N_FACTORY, deps: [LOCALE_ID] },] } - ]; - /** @nocollapse */ NgbDatepickerI18n.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbDatepickerI18n_Factory() { return NGB_DATEPICKER_18N_FACTORY(ɵɵinject(LOCALE_ID)); }, token: NgbDatepickerI18n, providedIn: "root" }); - return NgbDatepickerI18n; -}()); -var NgbDatepickerI18nDefault = /** @class */ (function (_super) { - __extends(NgbDatepickerI18nDefault, _super); - function NgbDatepickerI18nDefault(_locale) { - var _this = _super.call(this) || this; - _this._locale = _locale; - /** @type {?} */ - var weekdaysStartingOnSunday = getLocaleDayNames(_locale, FormStyle.Standalone, TranslationWidth.Short); - _this._weekdaysShort = weekdaysStartingOnSunday.map((/** - * @param {?} day - * @param {?} index - * @return {?} - */ - function (day, index) { return weekdaysStartingOnSunday[(index + 1) % 7]; })); - _this._monthsShort = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Abbreviated); - _this._monthsFull = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Wide); - return _this; - } - /** - * @param {?} weekday - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getWeekdayShortName = /** - * @param {?} weekday - * @return {?} - */ - function (weekday) { return this._weekdaysShort[weekday - 1]; }; - /** - * @param {?} month - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getMonthShortName = /** - * @param {?} month - * @return {?} - */ - function (month) { return this._monthsShort[month - 1]; }; - /** - * @param {?} month - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getMonthFullName = /** - * @param {?} month - * @return {?} - */ - function (month) { return this._monthsFull[month - 1]; }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerI18nDefault.prototype.getDayAriaLabel = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = new Date(date.year, date.month - 1, date.day); - return formatDate(jsDate, 'fullDate', this._locale); - }; - NgbDatepickerI18nDefault.decorators = [ - { type: Injectable } - ]; - /** @nocollapse */ - NgbDatepickerI18nDefault.ctorParameters = function () { return [ - { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } - ]; }; - return NgbDatepickerI18nDefault; -}(NgbDatepickerI18n)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbDatepickerService = /** @class */ (function () { - function NgbDatepickerService(_calendar, _i18n) { - this._calendar = _calendar; - this._i18n = _i18n; - this._model$ = new Subject(); - this._select$ = new Subject(); - this._state = { - disabled: false, - displayMonths: 1, - firstDayOfWeek: 1, - focusVisible: false, - months: [], - navigation: 'select', - outsideDays: 'visible', - prevDisabled: false, - nextDisabled: false, - selectBoxes: { years: [], months: [] }, - selectedDate: null - }; - } - Object.defineProperty(NgbDatepickerService.prototype, "model$", { - get: /** - * @return {?} - */ - function () { return this._model$.pipe(filter((/** - * @param {?} model - * @return {?} - */ - function (model) { return model.months.length > 0; }))); }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "select$", { - get: /** - * @return {?} - */ - function () { return this._select$.pipe(filter((/** - * @param {?} date - * @return {?} - */ - function (date) { return date !== null; }))); }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "dayTemplateData", { - set: /** - * @param {?} dayTemplateData - * @return {?} - */ - function (dayTemplateData) { - if (this._state.dayTemplateData !== dayTemplateData) { - this._nextState({ dayTemplateData: dayTemplateData }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "disabled", { - set: /** - * @param {?} disabled - * @return {?} - */ - function (disabled) { - if (this._state.disabled !== disabled) { - this._nextState({ disabled: disabled }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "displayMonths", { - set: /** - * @param {?} displayMonths - * @return {?} - */ - function (displayMonths) { - displayMonths = toInteger(displayMonths); - if (isInteger(displayMonths) && displayMonths > 0 && this._state.displayMonths !== displayMonths) { - this._nextState({ displayMonths: displayMonths }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "firstDayOfWeek", { - set: /** - * @param {?} firstDayOfWeek - * @return {?} - */ - function (firstDayOfWeek) { - firstDayOfWeek = toInteger(firstDayOfWeek); - if (isInteger(firstDayOfWeek) && firstDayOfWeek >= 0 && this._state.firstDayOfWeek !== firstDayOfWeek) { - this._nextState({ firstDayOfWeek: firstDayOfWeek }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "focusVisible", { - set: /** - * @param {?} focusVisible - * @return {?} - */ - function (focusVisible) { - if (this._state.focusVisible !== focusVisible && !this._state.disabled) { - this._nextState({ focusVisible: focusVisible }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "maxDate", { - set: /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var maxDate = this.toValidDate(date, null); - if (isChangedDate(this._state.maxDate, maxDate)) { - this._nextState({ maxDate: maxDate }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "markDisabled", { - set: /** - * @param {?} markDisabled - * @return {?} - */ - function (markDisabled) { - if (this._state.markDisabled !== markDisabled) { - this._nextState({ markDisabled: markDisabled }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "minDate", { - set: /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var minDate = this.toValidDate(date, null); - if (isChangedDate(this._state.minDate, minDate)) { - this._nextState({ minDate: minDate }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "navigation", { - set: /** - * @param {?} navigation - * @return {?} - */ - function (navigation) { - if (this._state.navigation !== navigation) { - this._nextState({ navigation: navigation }); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbDatepickerService.prototype, "outsideDays", { - set: /** - * @param {?} outsideDays - * @return {?} - */ - function (outsideDays) { - if (this._state.outsideDays !== outsideDays) { - this._nextState({ outsideDays: outsideDays }); - } - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerService.prototype.focus = /** - * @param {?} date - * @return {?} - */ - function (date) { - if (!this._state.disabled && this._calendar.isValid(date) && isChangedDate(this._state.focusDate, date)) { - this._nextState({ focusDate: date }); - } - }; - /** - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbDatepickerService.prototype.focusMove = /** - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (period, number) { - this.focus(this._calendar.getNext(this._state.focusDate, period, number)); - }; - /** - * @return {?} - */ - NgbDatepickerService.prototype.focusSelect = /** - * @return {?} - */ - function () { - if (isDateSelectable(this._state.focusDate, this._state)) { - this.select(this._state.focusDate, { emitEvent: true }); - } - }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerService.prototype.open = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var firstDate = this.toValidDate(date, this._calendar.getToday()); - if (!this._state.disabled && (!this._state.firstDate || isChangedMonth(this._state.firstDate, date))) { - this._nextState({ firstDate: firstDate }); - } - }; - /** - * @param {?} date - * @param {?=} options - * @return {?} - */ - NgbDatepickerService.prototype.select = /** - * @param {?} date - * @param {?=} options - * @return {?} - */ - function (date, options) { - if (options === void 0) { options = {}; } - /** @type {?} */ - var selectedDate = this.toValidDate(date, null); - if (!this._state.disabled) { - if (isChangedDate(this._state.selectedDate, selectedDate)) { - this._nextState({ selectedDate: selectedDate }); - } - if (options.emitEvent && isDateSelectable(selectedDate, this._state)) { - this._select$.next(selectedDate); - } - } - }; - /** - * @param {?} date - * @param {?=} defaultValue - * @return {?} - */ - NgbDatepickerService.prototype.toValidDate = /** - * @param {?} date - * @param {?=} defaultValue - * @return {?} - */ - function (date, defaultValue) { - /** @type {?} */ - var ngbDate = NgbDate.from(date); - if (defaultValue === undefined) { - defaultValue = this._calendar.getToday(); - } - return this._calendar.isValid(ngbDate) ? ngbDate : defaultValue; - }; - /** - * @private - * @param {?} patch - * @return {?} - */ - NgbDatepickerService.prototype._nextState = /** - * @private - * @param {?} patch - * @return {?} - */ - function (patch) { - /** @type {?} */ - var newState = this._updateState(patch); - this._patchContexts(newState); - this._state = newState; - this._model$.next(this._state); - }; - /** - * @private - * @param {?} state - * @return {?} - */ - NgbDatepickerService.prototype._patchContexts = /** - * @private - * @param {?} state - * @return {?} - */ - function (state) { - var months = state.months, displayMonths = state.displayMonths, selectedDate = state.selectedDate, focusDate = state.focusDate, focusVisible = state.focusVisible, disabled = state.disabled, outsideDays = state.outsideDays; - state.months.forEach((/** - * @param {?} month - * @return {?} - */ - function (month) { - month.weeks.forEach((/** - * @param {?} week - * @return {?} - */ - function (week) { - week.days.forEach((/** - * @param {?} day - * @return {?} - */ - function (day) { - // patch focus flag - if (focusDate) { - day.context.focused = focusDate.equals(day.date) && focusVisible; - } - // calculating tabindex - day.tabindex = !disabled && day.date.equals(focusDate) && focusDate.month === month.number ? 0 : -1; - // override context disabled - if (disabled === true) { - day.context.disabled = true; - } - // patch selection flag - if (selectedDate !== undefined) { - day.context.selected = selectedDate !== null && selectedDate.equals(day.date); - } - // visibility - if (month.number !== day.date.month) { - day.hidden = outsideDays === 'hidden' || outsideDays === 'collapsed' || - (displayMonths > 1 && day.date.after(months[0].firstDate) && - day.date.before(months[displayMonths - 1].lastDate)); - } - })); - })); - })); - }; - /** - * @private - * @param {?} patch - * @return {?} - */ - NgbDatepickerService.prototype._updateState = /** - * @private - * @param {?} patch - * @return {?} - */ - function (patch) { - // patching fields - /** @type {?} */ - var state = Object.assign({}, this._state, patch); - /** @type {?} */ - var startDate = state.firstDate; - // min/max dates changed - if ('minDate' in patch || 'maxDate' in patch) { - checkMinBeforeMax(state.minDate, state.maxDate); - state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate); - state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate); - startDate = state.focusDate; - } - // disabled - if ('disabled' in patch) { - state.focusVisible = false; - } - // initial rebuild via 'select()' - if ('selectedDate' in patch && this._state.months.length === 0) { - startDate = state.selectedDate; - } - // terminate early if only focus visibility was changed - if ('focusVisible' in patch) { - return state; - } - // focus date changed - if ('focusDate' in patch) { - state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate); - startDate = state.focusDate; - // nothing to rebuild if only focus changed and it is still visible - if (state.months.length !== 0 && !state.focusDate.before(state.firstDate) && - !state.focusDate.after(state.lastDate)) { - return state; - } - } - // first date changed - if ('firstDate' in patch) { - state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate); - startDate = state.firstDate; - } - // rebuilding months - if (startDate) { - /** @type {?} */ - var forceRebuild = 'dayTemplateData' in patch || 'firstDayOfWeek' in patch || 'markDisabled' in patch || - 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch || 'outsideDays' in patch; - /** @type {?} */ - var months = buildMonths(this._calendar, startDate, state, this._i18n, forceRebuild); - // updating months and boundary dates - state.months = months; - state.firstDate = months.length > 0 ? months[0].firstDate : undefined; - state.lastDate = months.length > 0 ? months[months.length - 1].lastDate : undefined; - // reset selected date if 'markDisabled' returns true - if ('selectedDate' in patch && !isDateSelectable(state.selectedDate, state)) { - state.selectedDate = null; - } - // adjusting focus after months were built - if ('firstDate' in patch) { - if (state.focusDate === undefined || state.focusDate.before(state.firstDate) || - state.focusDate.after(state.lastDate)) { - state.focusDate = startDate; - } - } - // adjusting months/years for the select box navigation - /** @type {?} */ - var yearChanged = !this._state.firstDate || this._state.firstDate.year !== state.firstDate.year; - /** @type {?} */ - var monthChanged = !this._state.firstDate || this._state.firstDate.month !== state.firstDate.month; - if (state.navigation === 'select') { - // years -> boundaries (min/max were changed) - if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.years.length === 0 || yearChanged) { - state.selectBoxes.years = generateSelectBoxYears(state.firstDate, state.minDate, state.maxDate); - } - // months -> when current year or boundaries change - if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.months.length === 0 || yearChanged) { - state.selectBoxes.months = - generateSelectBoxMonths(this._calendar, state.firstDate, state.minDate, state.maxDate); - } - } - else { - state.selectBoxes = { years: [], months: [] }; - } - // updating navigation arrows -> boundaries change (min/max) or month/year changes - if ((state.navigation === 'arrows' || state.navigation === 'select') && - (monthChanged || yearChanged || 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch)) { - state.prevDisabled = state.disabled || prevMonthDisabled(this._calendar, state.firstDate, state.minDate); - state.nextDisabled = state.disabled || nextMonthDisabled(this._calendar, state.lastDate, state.maxDate); - } - } - return state; - }; - NgbDatepickerService.decorators = [ - { type: Injectable } - ]; - /** @nocollapse */ - NgbDatepickerService.ctorParameters = function () { return [ - { type: NgbCalendar }, - { type: NgbDatepickerI18n } - ]; }; - return NgbDatepickerService; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -var Key = { - Tab: 9, - Enter: 13, - Escape: 27, - Space: 32, - PageUp: 33, - PageDown: 34, - End: 35, - Home: 36, - ArrowLeft: 37, - ArrowUp: 38, - ArrowRight: 39, - ArrowDown: 40, -}; -Key[Key.Tab] = 'Tab'; -Key[Key.Enter] = 'Enter'; -Key[Key.Escape] = 'Escape'; -Key[Key.Space] = 'Space'; -Key[Key.PageUp] = 'PageUp'; -Key[Key.PageDown] = 'PageDown'; -Key[Key.End] = 'End'; -Key[Key.Home] = 'Home'; -Key[Key.ArrowLeft] = 'ArrowLeft'; -Key[Key.ArrowUp] = 'ArrowUp'; -Key[Key.ArrowRight] = 'ArrowRight'; -Key[Key.ArrowDown] = 'ArrowDown'; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbDatepickerKeyMapService = /** @class */ (function () { - function NgbDatepickerKeyMapService(_service, _calendar) { - var _this = this; - this._service = _service; - this._calendar = _calendar; - _service.model$.subscribe((/** - * @param {?} model - * @return {?} - */ - function (model) { - _this._minDate = model.minDate; - _this._maxDate = model.maxDate; - _this._firstViewDate = model.firstDate; - _this._lastViewDate = model.lastDate; - })); - } - /** - * @param {?} event - * @return {?} - */ - NgbDatepickerKeyMapService.prototype.processKey = /** - * @param {?} event - * @return {?} - */ - function (event) { - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.PageUp: - this._service.focusMove(event.shiftKey ? 'y' : 'm', -1); - break; - case Key.PageDown: - this._service.focusMove(event.shiftKey ? 'y' : 'm', 1); - break; - case Key.End: - this._service.focus(event.shiftKey ? this._maxDate : this._lastViewDate); - break; - case Key.Home: - this._service.focus(event.shiftKey ? this._minDate : this._firstViewDate); - break; - case Key.ArrowLeft: - this._service.focusMove('d', -1); - break; - case Key.ArrowUp: - this._service.focusMove('d', -this._calendar.getDaysPerWeek()); - break; - case Key.ArrowRight: - this._service.focusMove('d', 1); - break; - case Key.ArrowDown: - this._service.focusMove('d', this._calendar.getDaysPerWeek()); - break; - case Key.Enter: - case Key.Space: - this._service.focusSelect(); - break; - default: - return; - } - // note 'return' in default case - event.preventDefault(); - event.stopPropagation(); - }; - NgbDatepickerKeyMapService.decorators = [ - { type: Injectable } - ]; - /** @nocollapse */ - NgbDatepickerKeyMapService.ctorParameters = function () { return [ - { type: NgbDatepickerService }, - { type: NgbCalendar } - ]; }; - return NgbDatepickerKeyMapService; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -var NavigationEvent = { - PREV: 0, - NEXT: 1, -}; -NavigationEvent[NavigationEvent.PREV] = 'PREV'; -NavigationEvent[NavigationEvent.NEXT] = 'NEXT'; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the datepickers used in the application. - */ -var NgbDatepickerConfig = /** @class */ (function () { - function NgbDatepickerConfig() { - this.displayMonths = 1; - this.firstDayOfWeek = 1; - this.navigation = 'select'; - this.outsideDays = 'visible'; - this.showWeekdays = true; - this.showWeekNumbers = false; - } - NgbDatepickerConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbDatepickerConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbDatepickerConfig_Factory() { return new NgbDatepickerConfig(); }, token: NgbDatepickerConfig, providedIn: "root" }); - return NgbDatepickerConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @return {?} - */ -function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() { - return new NgbDateStructAdapter(); -} -/** - * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and - * any provided user date model `D`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding datepicker to a form control, - * ex. `[(ngModel)]="userDateModel"`. Here `userDateModel` can be of any type. - * - * The default datepicker implementation assumes we use `NgbDateStruct` as a user model. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details - * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example. - * @abstract - * @template D - */ -var NgbDateAdapter = /** @class */ (function () { - function NgbDateAdapter() { - } - NgbDateAdapter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY },] } - ]; - /** @nocollapse */ NgbDateAdapter.ngInjectableDef = ɵɵdefineInjectable({ factory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY, token: NgbDateAdapter, providedIn: "root" }); - return NgbDateAdapter; -}()); -var NgbDateStructAdapter = /** @class */ (function (_super) { - __extends(NgbDateStructAdapter, _super); - function NgbDateStructAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Converts a NgbDateStruct value into NgbDateStruct value - */ - /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - NgbDateStructAdapter.prototype.fromModel = /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - function (date) { - return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ? - { year: date.year, month: date.month, day: date.day } : - null; - }; - /** - * Converts a NgbDateStruct value into NgbDateStruct value - */ - /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - NgbDateStructAdapter.prototype.toModel = /** - * Converts a NgbDateStruct value into NgbDateStruct value - * @param {?} date - * @return {?} - */ - function (date) { - return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ? - { year: date.year, month: date.month, day: date.day } : - null; - }; - NgbDateStructAdapter.decorators = [ - { type: Injectable } - ]; - return NgbDateStructAdapter; -}(NgbDateAdapter)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_DATEPICKER_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbDatepicker; })), - multi: true -}; -/** - * A highly configurable component that helps you with selecting calendar dates. - * - * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup. - */ -var NgbDatepicker = /** @class */ (function () { - function NgbDatepicker(_keyMapService, _service, _calendar, i18n, config, _cd, _elementRef, _ngbDateAdapter, _ngZone) { - var _this = this; - this._keyMapService = _keyMapService; - this._service = _service; - this._calendar = _calendar; - this.i18n = i18n; - this._cd = _cd; - this._elementRef = _elementRef; - this._ngbDateAdapter = _ngbDateAdapter; - this._ngZone = _ngZone; - this._destroyed$ = new Subject(); - /** - * An event emitted right before the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - this.navigate = new EventEmitter(); - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - */ - this.select = new EventEmitter(); - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate', - 'maxDate', 'navigation', 'outsideDays', 'showWeekdays', 'showWeekNumbers', 'startDate'] - .forEach((/** - * @param {?} input - * @return {?} - */ - function (input) { return _this[input] = config[input]; })); - _service.select$.pipe(takeUntil(this._destroyed$)).subscribe((/** - * @param {?} date - * @return {?} - */ - function (date) { _this.select.emit(date); })); - _service.model$.pipe(takeUntil(this._destroyed$)).subscribe((/** - * @param {?} model - * @return {?} - */ - function (model) { - /** @type {?} */ - var newDate = model.firstDate; - /** @type {?} */ - var oldDate = _this.model ? _this.model.firstDate : null; - /** @type {?} */ - var navigationPrevented = false; - // emitting navigation event if the first month changes - if (!newDate.equals(oldDate)) { - _this.navigate.emit({ - current: oldDate ? { year: oldDate.year, month: oldDate.month } : null, - next: { year: newDate.year, month: newDate.month }, - preventDefault: (/** - * @return {?} - */ - function () { return navigationPrevented = true; }) - }); - // can't prevent the very first navigation - if (navigationPrevented && oldDate !== null) { - _this._service.open(oldDate); - return; - } - } - /** @type {?} */ - var newSelectedDate = model.selectedDate; - /** @type {?} */ - var newFocusedDate = model.focusDate; - /** @type {?} */ - var oldFocusedDate = _this.model ? _this.model.focusDate : null; - _this.model = model; - // handling selection change - if (isChangedDate(newSelectedDate, _this._controlValue)) { - _this._controlValue = newSelectedDate; - _this.onTouched(); - _this.onChange(_this._ngbDateAdapter.toModel(newSelectedDate)); - } - // handling focus change - if (isChangedDate(newFocusedDate, oldFocusedDate) && oldFocusedDate && model.focusVisible) { - _this.focus(); - } - _cd.markForCheck(); - })); - } - /** - * @return {?} - */ - NgbDatepicker.prototype.focus = /** - * @return {?} - */ - function () { - var _this = this; - this._ngZone.onStable.asObservable().pipe(take(1)).subscribe((/** - * @return {?} - */ - function () { - /** @type {?} */ - var elementToFocus = _this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]'); - if (elementToFocus) { - elementToFocus.focus(); - } - })); - }; - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - */ - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - NgbDatepicker.prototype.navigateTo = /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - function (date) { - this._service.open(NgbDate.from(date ? date.day ? (/** @type {?} */ (date)) : __assign({}, date, { day: 1 }) : null)); - }; - /** - * @return {?} - */ - NgbDatepicker.prototype.ngAfterViewInit = /** - * @return {?} - */ - function () { - var _this = this; - this._ngZone.runOutsideAngular((/** - * @return {?} - */ - function () { - /** @type {?} */ - var focusIns$ = fromEvent(_this._monthsEl.nativeElement, 'focusin'); - /** @type {?} */ - var focusOuts$ = fromEvent(_this._monthsEl.nativeElement, 'focusout'); - // we're changing 'focusVisible' only when entering or leaving months view - // and ignoring all focus events where both 'target' and 'related' target are day cells - merge(focusIns$, focusOuts$) - .pipe(filter((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var target = _a.target, relatedTarget = _a.relatedTarget; - return !(hasClassName(target, 'ngb-dp-day') && hasClassName(relatedTarget, 'ngb-dp-day')); - })), takeUntil(_this._destroyed$)) - .subscribe((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var type = _a.type; - return _this._ngZone.run((/** - * @return {?} - */ - function () { return _this._service.focusVisible = type === 'focusin'; })); - })); - })); - }; - /** - * @return {?} - */ - NgbDatepicker.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { this._destroyed$.next(); }; - /** - * @return {?} - */ - NgbDatepicker.prototype.ngOnInit = /** - * @return {?} - */ - function () { - var _this = this; - if (this.model === undefined) { - ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate', - 'outsideDays'] - .forEach((/** - * @param {?} input - * @return {?} - */ - function (input) { return _this._service[input] = _this[input]; })); - this.navigateTo(this.startDate); - } - }; - /** - * @param {?} changes - * @return {?} - */ - NgbDatepicker.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - var _this = this; - ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate', - 'outsideDays'] - .filter((/** - * @param {?} input - * @return {?} - */ - function (input) { return input in changes; })) - .forEach((/** - * @param {?} input - * @return {?} - */ - function (input) { return _this._service[input] = _this[input]; })); - if ('startDate' in changes) { - var _a = changes.startDate, currentValue = _a.currentValue, previousValue = _a.previousValue; - if (isChangedMonth(previousValue, currentValue)) { - this.navigateTo(this.startDate); - } - } - }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepicker.prototype.onDateSelect = /** - * @param {?} date - * @return {?} - */ - function (date) { - this._service.focus(date); - this._service.select(date, { emitEvent: true }); - }; - /** - * @param {?} event - * @return {?} - */ - NgbDatepicker.prototype.onKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { this._keyMapService.processKey(event); }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepicker.prototype.onNavigateDateSelect = /** - * @param {?} date - * @return {?} - */ - function (date) { this._service.open(date); }; - /** - * @param {?} event - * @return {?} - */ - NgbDatepicker.prototype.onNavigateEvent = /** - * @param {?} event - * @return {?} - */ - function (event) { - switch (event) { - case NavigationEvent.PREV: - this._service.open(this._calendar.getPrev(this.model.firstDate, 'm', 1)); - break; - case NavigationEvent.NEXT: - this._service.open(this._calendar.getNext(this.model.firstDate, 'm', 1)); - break; - } - }; - /** - * @param {?} fn - * @return {?} - */ - NgbDatepicker.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbDatepicker.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbDatepicker.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this._service.disabled = isDisabled; }; - /** - * @param {?} value - * @return {?} - */ - NgbDatepicker.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._controlValue = NgbDate.from(this._ngbDateAdapter.fromModel(value)); - this._service.select(this._controlValue); - }; - NgbDatepicker.decorators = [ - { type: Component, args: [{ - exportAs: 'ngbDatepicker', - selector: 'ngb-datepicker', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: "\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n \n
\n
1 && navigation === 'select')\"\n class=\"ngb-dp-month-name\">\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n \n \n
\n
\n
\n\n \n ", - providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService, NgbDatepickerKeyMapService], - styles: ["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"] - }] } - ]; - /** @nocollapse */ - NgbDatepicker.ctorParameters = function () { return [ - { type: NgbDatepickerKeyMapService }, - { type: NgbDatepickerService }, - { type: NgbCalendar }, - { type: NgbDatepickerI18n }, - { type: NgbDatepickerConfig }, - { type: ChangeDetectorRef }, - { type: ElementRef }, - { type: NgbDateAdapter }, - { type: NgZone } - ]; }; - NgbDatepicker.propDecorators = { - _monthsEl: [{ type: ViewChild, args: ['months', { static: true },] }], - dayTemplate: [{ type: Input }], - dayTemplateData: [{ type: Input }], - displayMonths: [{ type: Input }], - firstDayOfWeek: [{ type: Input }], - footerTemplate: [{ type: Input }], - markDisabled: [{ type: Input }], - maxDate: [{ type: Input }], - minDate: [{ type: Input }], - navigation: [{ type: Input }], - outsideDays: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - startDate: [{ type: Input }], - navigate: [{ type: Output }], - select: [{ type: Output }] - }; - return NgbDatepicker; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbDatepickerMonthView = /** @class */ (function () { - function NgbDatepickerMonthView(i18n) { - this.i18n = i18n; - this.select = new EventEmitter(); - } - /** - * @param {?} day - * @return {?} - */ - NgbDatepickerMonthView.prototype.doSelect = /** - * @param {?} day - * @return {?} - */ - function (day) { - if (!day.context.disabled && !day.hidden) { - this.select.emit(day.date); - } - }; - NgbDatepickerMonthView.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-month-view', - host: { 'role': 'grid' }, - encapsulation: ViewEncapsulation.None, - template: "\n
\n
\n
\n {{ i18n.getWeekdayShortName(w) }}\n
\n
\n \n
\n
{{ i18n.getWeekNumerals(week.number) }}
\n
\n \n \n \n
\n
\n
\n ", - styles: ["ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerMonthView.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerMonthView.propDecorators = { - dayTemplate: [{ type: Input }], - month: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - select: [{ type: Output }] - }; - return NgbDatepickerMonthView; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbDatepickerNavigation = /** @class */ (function () { - function NgbDatepickerNavigation(i18n) { - this.i18n = i18n; - this.navigation = NavigationEvent; - this.months = []; - this.navigate = new EventEmitter(); - this.select = new EventEmitter(); - } - NgbDatepickerNavigation.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-navigation', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: "\n
\n \n
\n \n \n\n \n
0\">
\n
\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n
\n
\n
\n \n
\n ", - styles: ["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerNavigation.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerNavigation.propDecorators = { - date: [{ type: Input }], - disabled: [{ type: Input }], - months: [{ type: Input }], - showSelect: [{ type: Input }], - prevDisabled: [{ type: Input }], - nextDisabled: [{ type: Input }], - selectBoxes: [{ type: Input }], - navigate: [{ type: Output }], - select: [{ type: Output }] - }; - return NgbDatepickerNavigation; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var isContainedIn = (/** - * @param {?} element - * @param {?=} array - * @return {?} - */ -function (element, array) { - return array ? array.some((/** - * @param {?} item - * @return {?} - */ - function (item) { return item.contains(element); })) : false; -}); -/** @type {?} */ -var matchesSelectorIfAny = (/** - * @param {?} element - * @param {?=} selector - * @return {?} - */ -function (element, selector) { - return !selector || closest(element, selector) != null; -}); -// we'll have to use 'touch' events instead of 'mouse' events on iOS and add a more significant delay -// to avoid re-opening when handling (click) on a toggling element -// TODO: use proper Angular platform detection when NgbAutoClose becomes a service and we can inject PLATFORM_ID -/** @type {?} */ -var iOS = false; -if (typeof navigator !== 'undefined') { - iOS = !!navigator.userAgent && /iPad|iPhone|iPod/.test(navigator.userAgent); -} -/** - * @param {?} zone - * @param {?} document - * @param {?} type - * @param {?} close - * @param {?} closed$ - * @param {?} insideElements - * @param {?=} ignoreElements - * @param {?=} insideSelector - * @return {?} - */ -function ngbAutoClose(zone, document, type, close, closed$, insideElements, ignoreElements, insideSelector) { - // closing on ESC and outside clicks - if (type) { - zone.runOutsideAngular((/** - * @return {?} - */ - function () { - /** @type {?} */ - var shouldCloseOnClick = (/** - * @param {?} event - * @return {?} - */ - function (event) { - /** @type {?} */ - var element = (/** @type {?} */ (event.target)); - if ((event instanceof MouseEvent && event.button === 2) || isContainedIn(element, ignoreElements)) { - return false; - } - if (type === 'inside') { - return isContainedIn(element, insideElements) && matchesSelectorIfAny(element, insideSelector); - } - else if (type === 'outside') { - return !isContainedIn(element, insideElements); - } - else /* if (type === true) */ { - return matchesSelectorIfAny(element, insideSelector) || !isContainedIn(element, insideElements); - } - }); - /** @type {?} */ - var escapes$ = fromEvent(document, 'keydown') - .pipe(takeUntil(closed$), - // tslint:disable-next-line:deprecation - filter((/** - * @param {?} e - * @return {?} - */ - function (e) { return e.which === Key.Escape; }))); - // we have to pre-calculate 'shouldCloseOnClick' on 'mousedown/touchstart', - // because on 'mouseup/touchend' DOM nodes might be detached - /** @type {?} */ - var mouseDowns$ = fromEvent(document, iOS ? 'touchstart' : 'mousedown') - .pipe(map(shouldCloseOnClick), takeUntil(closed$)); - /** @type {?} */ - var closeableClicks$ = (/** @type {?} */ (fromEvent(document, iOS ? 'touchend' : 'mouseup') - .pipe(withLatestFrom(mouseDowns$), filter((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = __read(_a, 2), _ = _b[0], shouldClose = _b[1]; - return shouldClose; - })), delay(iOS ? 16 : 0), takeUntil(closed$)))); - race([escapes$, closeableClicks$]).subscribe((/** - * @return {?} - */ - function () { return zone.run(close); })); - })); - } -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var FOCUSABLE_ELEMENTS_SELECTOR = [ - 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type="hidden"])', 'select:not([disabled])', - 'textarea:not([disabled])', '[contenteditable]', '[tabindex]:not([tabindex="-1"])' -].join(', '); -/** - * Returns first and last focusable elements inside of a given element based on specific CSS selector - * @param {?} element - * @return {?} - */ -function getFocusableBoundaryElements(element) { - /** @type {?} */ - var list = Array.from((/** @type {?} */ (element.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR)))) - .filter((/** - * @param {?} el - * @return {?} - */ - function (el) { return el.tabIndex !== -1; })); - return [list[0], list[list.length - 1]]; -} -/** - * Function that enforces browser focus to be trapped inside a DOM element. - * - * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element - * - * \@param element The element around which focus will be trapped inside - * \@param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners - * and free internal resources - * \@param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to - * false) - * @type {?} - */ -var ngbFocusTrap = (/** - * @param {?} element - * @param {?} stopFocusTrap$ - * @param {?=} refocusOnClick - * @return {?} - */ -function (element, stopFocusTrap$, refocusOnClick) { - if (refocusOnClick === void 0) { refocusOnClick = false; } - // last focused element - /** @type {?} */ - var lastFocusedElement$ = fromEvent(element, 'focusin').pipe(takeUntil(stopFocusTrap$), map((/** - * @param {?} e - * @return {?} - */ - function (e) { return e.target; }))); - // 'tab' / 'shift+tab' stream - fromEvent(element, 'keydown') - .pipe(takeUntil(stopFocusTrap$), - // tslint:disable:deprecation - filter((/** - * @param {?} e - * @return {?} - */ - function (e) { return e.which === Key.Tab; })), - // tslint:enable:deprecation - withLatestFrom(lastFocusedElement$)) - .subscribe((/** - * @param {?} __0 - * @return {?} - */ - function (_a) { - var _b = __read(_a, 2), tabEvent = _b[0], focusedElement = _b[1]; - var _c = __read(getFocusableBoundaryElements(element), 2), first = _c[0], last = _c[1]; - if ((focusedElement === first || focusedElement === element) && tabEvent.shiftKey) { - last.focus(); - tabEvent.preventDefault(); - } - if (focusedElement === last && !tabEvent.shiftKey) { - first.focus(); - tabEvent.preventDefault(); - } - })); - // inside click - if (refocusOnClick) { - fromEvent(element, 'click') - .pipe(takeUntil(stopFocusTrap$), withLatestFrom(lastFocusedElement$), map((/** - * @param {?} arr - * @return {?} - */ - function (arr) { return (/** @type {?} */ (arr[1])); }))) - .subscribe((/** - * @param {?} lastFocusedElement - * @return {?} - */ - function (lastFocusedElement) { return lastFocusedElement.focus(); })); - } -}); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -// previous version: -// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js -var -// previous version: -// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js -Positioning = /** @class */ (function () { - function Positioning() { - } - /** - * @private - * @param {?} element - * @return {?} - */ - Positioning.prototype.getAllStyles = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { return window.getComputedStyle(element); }; - /** - * @private - * @param {?} element - * @param {?} prop - * @return {?} - */ - Positioning.prototype.getStyle = /** - * @private - * @param {?} element - * @param {?} prop - * @return {?} - */ - function (element, prop) { return this.getAllStyles(element)[prop]; }; - /** - * @private - * @param {?} element - * @return {?} - */ - Positioning.prototype.isStaticPositioned = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { - return (this.getStyle(element, 'position') || 'static') === 'static'; - }; - /** - * @private - * @param {?} element - * @return {?} - */ - Positioning.prototype.offsetParent = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { - /** @type {?} */ - var offsetParentEl = (/** @type {?} */ (element.offsetParent)) || document.documentElement; - while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) { - offsetParentEl = (/** @type {?} */ (offsetParentEl.offsetParent)); - } - return offsetParentEl || document.documentElement; - }; - /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - Positioning.prototype.position = /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - function (element, round) { - if (round === void 0) { round = true; } - /** @type {?} */ - var elPosition; - /** @type {?} */ - var parentOffset = { width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0 }; - if (this.getStyle(element, 'position') === 'fixed') { - elPosition = element.getBoundingClientRect(); - elPosition = { - top: elPosition.top, - bottom: elPosition.bottom, - left: elPosition.left, - right: elPosition.right, - height: elPosition.height, - width: elPosition.width - }; - } - else { - /** @type {?} */ - var offsetParentEl = this.offsetParent(element); - elPosition = this.offset(element, false); - if (offsetParentEl !== document.documentElement) { - parentOffset = this.offset(offsetParentEl, false); - } - parentOffset.top += offsetParentEl.clientTop; - parentOffset.left += offsetParentEl.clientLeft; - } - elPosition.top -= parentOffset.top; - elPosition.bottom -= parentOffset.top; - elPosition.left -= parentOffset.left; - elPosition.right -= parentOffset.left; - if (round) { - elPosition.top = Math.round(elPosition.top); - elPosition.bottom = Math.round(elPosition.bottom); - elPosition.left = Math.round(elPosition.left); - elPosition.right = Math.round(elPosition.right); - } - return elPosition; - }; - /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - Positioning.prototype.offset = /** - * @param {?} element - * @param {?=} round - * @return {?} - */ - function (element, round) { - if (round === void 0) { round = true; } - /** @type {?} */ - var elBcr = element.getBoundingClientRect(); - /** @type {?} */ - var viewportOffset = { - top: window.pageYOffset - document.documentElement.clientTop, - left: window.pageXOffset - document.documentElement.clientLeft - }; - /** @type {?} */ - var elOffset = { - height: elBcr.height || element.offsetHeight, - width: elBcr.width || element.offsetWidth, - top: elBcr.top + viewportOffset.top, - bottom: elBcr.bottom + viewportOffset.top, - left: elBcr.left + viewportOffset.left, - right: elBcr.right + viewportOffset.left - }; - if (round) { - elOffset.height = Math.round(elOffset.height); - elOffset.width = Math.round(elOffset.width); - elOffset.top = Math.round(elOffset.top); - elOffset.bottom = Math.round(elOffset.bottom); - elOffset.left = Math.round(elOffset.left); - elOffset.right = Math.round(elOffset.right); - } - return elOffset; - }; - /* - Return false if the element to position is outside the viewport - */ - /* - Return false if the element to position is outside the viewport - */ - /** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @return {?} - */ - Positioning.prototype.positionElements = /* - Return false if the element to position is outside the viewport - */ - /** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @return {?} - */ - function (hostElement, targetElement, placement, appendToBody) { - var _a = __read(placement.split('-'), 2), _b = _a[0], placementPrimary = _b === void 0 ? 'top' : _b, _c = _a[1], placementSecondary = _c === void 0 ? 'center' : _c; - /** @type {?} */ - var hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false); - /** @type {?} */ - var targetElStyles = this.getAllStyles(targetElement); - /** @type {?} */ - var marginTop = parseFloat(targetElStyles.marginTop); - /** @type {?} */ - var marginBottom = parseFloat(targetElStyles.marginBottom); - /** @type {?} */ - var marginLeft = parseFloat(targetElStyles.marginLeft); - /** @type {?} */ - var marginRight = parseFloat(targetElStyles.marginRight); - /** @type {?} */ - var topPosition = 0; - /** @type {?} */ - var leftPosition = 0; - switch (placementPrimary) { - case 'top': - topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom)); - break; - case 'bottom': - topPosition = (hostElPosition.top + hostElPosition.height); - break; - case 'left': - leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight)); - break; - case 'right': - leftPosition = (hostElPosition.left + hostElPosition.width); - break; - } - switch (placementSecondary) { - case 'top': - topPosition = hostElPosition.top; - break; - case 'bottom': - topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight; - break; - case 'left': - leftPosition = hostElPosition.left; - break; - case 'right': - leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth; - break; - case 'center': - if (placementPrimary === 'top' || placementPrimary === 'bottom') { - leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2); - } - else { - topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2); - } - break; - } - /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix - // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`; - targetElement.style.transform = "translate(" + Math.round(leftPosition) + "px, " + Math.round(topPosition) + "px)"; - // Check if the targetElement is inside the viewport - /** @type {?} */ - var targetElBCR = targetElement.getBoundingClientRect(); - /** @type {?} */ - var html = document.documentElement; - /** @type {?} */ - var windowHeight = window.innerHeight || html.clientHeight; - /** @type {?} */ - var windowWidth = window.innerWidth || html.clientWidth; - return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth && - targetElBCR.bottom <= windowHeight; - }; - return Positioning; -}()); -/** @type {?} */ -var placementSeparator = /\s+/; -/** @type {?} */ -var positionService = new Positioning(); -/* - * Accept the placement array and applies the appropriate placement dependent on the viewport. - * Returns the applied placement. - * In case of auto placement, placements are selected in order - * 'top', 'bottom', 'left', 'right', - * 'top-left', 'top-right', - * 'bottom-left', 'bottom-right', - * 'left-top', 'left-bottom', - * 'right-top', 'right-bottom'. - * */ -/** - * @param {?} hostElement - * @param {?} targetElement - * @param {?} placement - * @param {?=} appendToBody - * @param {?=} baseClass - * @return {?} - */ -function positionElements(hostElement, targetElement, placement, appendToBody, baseClass) { - var e_1, _a; - /** @type {?} */ - var placementVals = Array.isArray(placement) ? placement : (/** @type {?} */ (placement.split(placementSeparator))); - /** @type {?} */ - var allowedPlacements = [ - 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom', - 'right-top', 'right-bottom' - ]; - /** @type {?} */ - var classList = targetElement.classList; - /** @type {?} */ - var addClassesToTarget = (/** - * @param {?} targetPlacement - * @return {?} - */ - function (targetPlacement) { - var _a = __read(targetPlacement.split('-'), 2), primary = _a[0], secondary = _a[1]; - /** @type {?} */ - var classes = []; - if (baseClass) { - classes.push(baseClass + "-" + primary); - if (secondary) { - classes.push(baseClass + "-" + primary + "-" + secondary); - } - classes.forEach((/** - * @param {?} classname - * @return {?} - */ - function (classname) { classList.add(classname); })); - } - return classes; - }); - // Remove old placement classes to avoid issues - if (baseClass) { - allowedPlacements.forEach((/** - * @param {?} placementToRemove - * @return {?} - */ - function (placementToRemove) { classList.remove(baseClass + "-" + placementToRemove); })); - } - // replace auto placement with other placements - /** @type {?} */ - var hasAuto = placementVals.findIndex((/** - * @param {?} val - * @return {?} - */ - function (val) { return val === 'auto'; })); - if (hasAuto >= 0) { - allowedPlacements.forEach((/** - * @param {?} obj - * @return {?} - */ - function (obj) { - if (placementVals.find((/** - * @param {?} val - * @return {?} - */ - function (val) { return val.search('^' + obj) !== -1; })) == null) { - placementVals.splice(hasAuto++, 1, (/** @type {?} */ (obj))); - } - })); - } - // coordinates where to position - // Required for transform: - /** @type {?} */ - var style = targetElement.style; - style.position = 'absolute'; - style.top = '0'; - style.left = '0'; - style['will-change'] = 'transform'; - /** @type {?} */ - var testPlacement; - /** @type {?} */ - var isInViewport = false; - try { - for (var placementVals_1 = __values(placementVals), placementVals_1_1 = placementVals_1.next(); !placementVals_1_1.done; placementVals_1_1 = placementVals_1.next()) { - testPlacement = placementVals_1_1.value; - /** @type {?} */ - var addedClasses = addClassesToTarget(testPlacement); - if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) { - isInViewport = true; - break; - } - // Remove the baseClasses for further calculation - if (baseClass) { - addedClasses.forEach((/** - * @param {?} classname - * @return {?} - */ - function (classname) { classList.remove(classname); })); - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (placementVals_1_1 && !placementVals_1_1.done && (_a = placementVals_1.return)) _a.call(placementVals_1); - } - finally { if (e_1) throw e_1.error; } - } - if (!isInViewport) { - // If nothing match, the first placement is the default one - testPlacement = placementVals[0]; - addClassesToTarget(testPlacement); - positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody); - } - return testPlacement; -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @return {?} - */ -function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY() { - return new NgbDateISOParserFormatter(); -} -/** - * An abstract service for parsing and formatting dates for the - * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive. - * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the - * input element. - * - * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object. - * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string` - * in the input. - * - * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI - * to use an alternative string format or a custom parsing logic. - * - * See the [date format overview](#/components/datepicker/overview#date-model) for more details. - * @abstract - */ -var NgbDateParserFormatter = /** @class */ (function () { - function NgbDateParserFormatter() { - } - NgbDateParserFormatter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY },] } - ]; - /** @nocollapse */ NgbDateParserFormatter.ngInjectableDef = ɵɵdefineInjectable({ factory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY, token: NgbDateParserFormatter, providedIn: "root" }); - return NgbDateParserFormatter; -}()); -var NgbDateISOParserFormatter = /** @class */ (function (_super) { - __extends(NgbDateISOParserFormatter, _super); - function NgbDateISOParserFormatter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @param {?} value - * @return {?} - */ - NgbDateISOParserFormatter.prototype.parse = /** - * @param {?} value - * @return {?} - */ - function (value) { - if (value) { - /** @type {?} */ - var dateParts = value.trim().split('-'); - if (dateParts.length === 1 && isNumber(dateParts[0])) { - return { year: toInteger(dateParts[0]), month: null, day: null }; - } - else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) { - return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null }; - } - else if (dateParts.length === 3 && isNumber(dateParts[0]) && isNumber(dateParts[1]) && isNumber(dateParts[2])) { - return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: toInteger(dateParts[2]) }; - } - } - return null; - }; - /** - * @param {?} date - * @return {?} - */ - NgbDateISOParserFormatter.prototype.format = /** - * @param {?} date - * @return {?} - */ - function (date) { - return date ? - date.year + "-" + (isNumber(date.month) ? padNumber(date.month) : '') + "-" + (isNumber(date.day) ? padNumber(date.day) : '') : - ''; - }; - NgbDateISOParserFormatter.decorators = [ - { type: Injectable } - ]; - return NgbDateISOParserFormatter; -}(NgbDateParserFormatter)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_DATEPICKER_VALUE_ACCESSOR$1 = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbInputDatepicker; })), - multi: true -}; -/** @type {?} */ -var NGB_DATEPICKER_VALIDATOR = { - provide: NG_VALIDATORS, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbInputDatepicker; })), - multi: true -}; -/** - * A directive that allows to stick a datepicker popup to an input field. - * - * Manages interaction with the input field itself, does value formatting and provides forms integration. - */ -var NgbInputDatepicker = /** @class */ (function () { - function NgbInputDatepicker(_parserFormatter, _elRef, _vcRef, _renderer, _cfr, _ngZone, _service, _calendar, _dateAdapter, _document, _changeDetector) { - var _this = this; - this._parserFormatter = _parserFormatter; - this._elRef = _elRef; - this._vcRef = _vcRef; - this._renderer = _renderer; - this._cfr = _cfr; - this._ngZone = _ngZone; - this._service = _service; - this._calendar = _calendar; - this._dateAdapter = _dateAdapter; - this._document = _document; - this._changeDetector = _changeDetector; - this._cRef = null; - this._disabled = false; - /** - * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not. - * - * * `true` - the popup will close on both date selection and outside click. - * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods. - * * `"inside"` - the popup will close on date selection, but not outside clicks. - * * `"outside"` - the popup will close only on the outside click and not on date selection/inside clicks. - * - * \@since 3.0.0 - */ - this.autoClose = true; - /** - * The preferred placement of the datepicker popup. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - /** - * An event emitted when user selects a date using keyboard or mouse. - * - * The payload of the event is currently selected `NgbDate`. - * - * \@since 1.1.1 - */ - this.dateSelect = new EventEmitter(); - /** - * Event emitted right after the navigation happens and displayed month changes. - * - * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info. - */ - this.navigate = new EventEmitter(); - /** - * An event fired after closing datepicker window. - * - * \@since 4.2.0 - */ - this.closed = new EventEmitter(); - this._onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this._onTouched = (/** - * @return {?} - */ - function () { }); - this._validatorChange = (/** - * @return {?} - */ - function () { }); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { return _this._updatePopupPosition(); })); - } - Object.defineProperty(NgbInputDatepicker.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { - return this._disabled; - }, - set: /** - * @param {?} value - * @return {?} - */ - function (value) { - this._disabled = value === '' || (value && value !== 'false'); - if (this.isOpen()) { - this._cRef.instance.setDisabledState(this._disabled); - } - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} fn - * @return {?} - */ - NgbInputDatepicker.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbInputDatepicker.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onTouched = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbInputDatepicker.prototype.registerOnValidatorChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._validatorChange = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbInputDatepicker.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.disabled = isDisabled; }; - /** - * @param {?} c - * @return {?} - */ - NgbInputDatepicker.prototype.validate = /** - * @param {?} c - * @return {?} - */ - function (c) { - /** @type {?} */ - var value = c.value; - if (value === null || value === undefined) { - return null; - } - /** @type {?} */ - var ngbDate = this._fromDateStruct(this._dateAdapter.fromModel(value)); - if (!this._calendar.isValid(ngbDate)) { - return { 'ngbDate': { invalid: c.value } }; - } - if (this.minDate && ngbDate.before(NgbDate.from(this.minDate))) { - return { 'ngbDate': { requiredBefore: this.minDate } }; - } - if (this.maxDate && ngbDate.after(NgbDate.from(this.maxDate))) { - return { 'ngbDate': { requiredAfter: this.maxDate } }; - } - }; - /** - * @param {?} value - * @return {?} - */ - NgbInputDatepicker.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._model = this._fromDateStruct(this._dateAdapter.fromModel(value)); - this._writeModelValue(this._model); - }; - /** - * @param {?} value - * @param {?=} updateView - * @return {?} - */ - NgbInputDatepicker.prototype.manualDateChange = /** - * @param {?} value - * @param {?=} updateView - * @return {?} - */ - function (value, updateView) { - if (updateView === void 0) { updateView = false; } - /** @type {?} */ - var inputValueChanged = value !== this._inputValue; - if (inputValueChanged) { - this._inputValue = value; - this._model = this._fromDateStruct(this._parserFormatter.parse(value)); - } - if (inputValueChanged || !updateView) { - this._onChange(this._model ? this._dateAdapter.toModel(this._model) : (value === '' ? null : value)); - } - if (updateView && this._model) { - this._writeModelValue(this._model); - } - }; - /** - * @return {?} - */ - NgbInputDatepicker.prototype.isOpen = /** - * @return {?} - */ - function () { return !!this._cRef; }; - /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - */ - /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - * @return {?} - */ - NgbInputDatepicker.prototype.open = /** - * Opens the datepicker popup. - * - * If the related form control contains a valid date, the corresponding month will be opened. - * @return {?} - */ - function () { - var _this = this; - if (!this.isOpen()) { - /** @type {?} */ - var cf = this._cfr.resolveComponentFactory(NgbDatepicker); - this._cRef = this._vcRef.createComponent(cf); - this._applyPopupStyling(this._cRef.location.nativeElement); - this._applyDatepickerInputs(this._cRef.instance); - this._subscribeForDatepickerOutputs(this._cRef.instance); - this._cRef.instance.ngOnInit(); - this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)); - // date selection event handling - this._cRef.instance.registerOnChange((/** - * @param {?} selectedDate - * @return {?} - */ - function (selectedDate) { - _this.writeValue(selectedDate); - _this._onChange(selectedDate); - _this._onTouched(); - })); - this._cRef.changeDetectorRef.detectChanges(); - this._cRef.instance.setDisabledState(this.disabled); - if (this.container === 'body') { - window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement); - } - // focus handling - ngbFocusTrap(this._cRef.location.nativeElement, this.closed, true); - this._cRef.instance.focus(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this.closed, [], [this._elRef.nativeElement, this._cRef.location.nativeElement]); - } - }; - /** - * Closes the datepicker popup. - */ - /** - * Closes the datepicker popup. - * @return {?} - */ - NgbInputDatepicker.prototype.close = /** - * Closes the datepicker popup. - * @return {?} - */ - function () { - if (this.isOpen()) { - this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)); - this._cRef = null; - this.closed.emit(); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the datepicker popup. - */ - /** - * Toggles the datepicker popup. - * @return {?} - */ - NgbInputDatepicker.prototype.toggle = /** - * Toggles the datepicker popup. - * @return {?} - */ - function () { - if (this.isOpen()) { - this.close(); - } - else { - this.open(); - } - }; - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - */ - /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - NgbInputDatepicker.prototype.navigateTo = /** - * Navigates to the provided date. - * - * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec. - * If nothing or invalid date provided calendar will open current month. - * - * Use the `[startDate]` input as an alternative. - * @param {?=} date - * @return {?} - */ - function (date) { - if (this.isOpen()) { - this._cRef.instance.navigateTo(date); - } - }; - /** - * @return {?} - */ - NgbInputDatepicker.prototype.onBlur = /** - * @return {?} - */ - function () { this._onTouched(); }; - /** - * @param {?} changes - * @return {?} - */ - NgbInputDatepicker.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes['minDate'] || changes['maxDate']) { - this._validatorChange(); - } - }; - /** - * @return {?} - */ - NgbInputDatepicker.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this.close(); - this._zoneSubscription.unsubscribe(); - }; - /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - NgbInputDatepicker.prototype._applyDatepickerInputs = /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - function (datepickerInstance) { - var _this = this; - ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate', - 'maxDate', 'navigation', 'outsideDays', 'showNavigation', 'showWeekdays', 'showWeekNumbers'] - .forEach((/** - * @param {?} optionName - * @return {?} - */ - function (optionName) { - if (_this[optionName] !== undefined) { - datepickerInstance[optionName] = _this[optionName]; - } - })); - datepickerInstance.startDate = this.startDate || this._model; - }; - /** - * @private - * @param {?} nativeElement - * @return {?} - */ - NgbInputDatepicker.prototype._applyPopupStyling = /** - * @private - * @param {?} nativeElement - * @return {?} - */ - function (nativeElement) { - this._renderer.addClass(nativeElement, 'dropdown-menu'); - this._renderer.addClass(nativeElement, 'show'); - if (this.container === 'body') { - this._renderer.addClass(nativeElement, 'ngb-dp-body'); - } - }; - /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - NgbInputDatepicker.prototype._subscribeForDatepickerOutputs = /** - * @private - * @param {?} datepickerInstance - * @return {?} - */ - function (datepickerInstance) { - var _this = this; - datepickerInstance.navigate.subscribe((/** - * @param {?} navigateEvent - * @return {?} - */ - function (navigateEvent) { return _this.navigate.emit(navigateEvent); })); - datepickerInstance.select.subscribe((/** - * @param {?} date - * @return {?} - */ - function (date) { - _this.dateSelect.emit(date); - if (_this.autoClose === true || _this.autoClose === 'inside') { - _this.close(); - } - })); - }; - /** - * @private - * @param {?} model - * @return {?} - */ - NgbInputDatepicker.prototype._writeModelValue = /** - * @private - * @param {?} model - * @return {?} - */ - function (model) { - /** @type {?} */ - var value = this._parserFormatter.format(model); - this._inputValue = value; - this._renderer.setProperty(this._elRef.nativeElement, 'value', value); - if (this.isOpen()) { - this._cRef.instance.writeValue(this._dateAdapter.toModel(model)); - this._onTouched(); - } - }; - /** - * @private - * @param {?} date - * @return {?} - */ - NgbInputDatepicker.prototype._fromDateStruct = /** - * @private - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var ngbDate = date ? new NgbDate(date.year, date.month, date.day) : null; - return this._calendar.isValid(ngbDate) ? ngbDate : null; - }; - /** - * @private - * @return {?} - */ - NgbInputDatepicker.prototype._updatePopupPosition = /** - * @private - * @return {?} - */ - function () { - if (!this._cRef) { - return; - } - /** @type {?} */ - var hostElement; - if (typeof this.positionTarget === 'string') { - hostElement = window.document.querySelector(this.positionTarget); - } - else if (this.positionTarget instanceof HTMLElement) { - hostElement = this.positionTarget; - } - else { - hostElement = this._elRef.nativeElement; - } - if (this.positionTarget && !hostElement) { - throw new Error('ngbDatepicker could not find element declared in [positionTarget] to position against.'); - } - positionElements(hostElement, this._cRef.location.nativeElement, this.placement, this.container === 'body'); - }; - NgbInputDatepicker.decorators = [ - { type: Directive, args: [{ - selector: 'input[ngbDatepicker]', - exportAs: 'ngbDatepicker', - host: { - '(input)': 'manualDateChange($event.target.value)', - '(change)': 'manualDateChange($event.target.value, true)', - '(blur)': 'onBlur()', - '[disabled]': 'disabled' - }, - providers: [NGB_DATEPICKER_VALUE_ACCESSOR$1, NGB_DATEPICKER_VALIDATOR, NgbDatepickerService] - },] } - ]; - /** @nocollapse */ - NgbInputDatepicker.ctorParameters = function () { return [ - { type: NgbDateParserFormatter }, - { type: ElementRef }, - { type: ViewContainerRef }, - { type: Renderer2 }, - { type: ComponentFactoryResolver }, - { type: NgZone }, - { type: NgbDatepickerService }, - { type: NgbCalendar }, - { type: NgbDateAdapter }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef } - ]; }; - NgbInputDatepicker.propDecorators = { - autoClose: [{ type: Input }], - dayTemplate: [{ type: Input }], - dayTemplateData: [{ type: Input }], - displayMonths: [{ type: Input }], - firstDayOfWeek: [{ type: Input }], - footerTemplate: [{ type: Input }], - markDisabled: [{ type: Input }], - minDate: [{ type: Input }], - maxDate: [{ type: Input }], - navigation: [{ type: Input }], - outsideDays: [{ type: Input }], - placement: [{ type: Input }], - showWeekdays: [{ type: Input }], - showWeekNumbers: [{ type: Input }], - startDate: [{ type: Input }], - container: [{ type: Input }], - positionTarget: [{ type: Input }], - dateSelect: [{ type: Output }], - navigate: [{ type: Output }], - closed: [{ type: Output }], - disabled: [{ type: Input }] - }; - return NgbInputDatepicker; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbDatepickerDayView = /** @class */ (function () { - function NgbDatepickerDayView(i18n) { - this.i18n = i18n; - } - /** - * @return {?} - */ - NgbDatepickerDayView.prototype.isMuted = /** - * @return {?} - */ - function () { return !this.selected && (this.date.month !== this.currentMonth || this.disabled); }; - NgbDatepickerDayView.decorators = [ - { type: Component, args: [{ - selector: '[ngbDatepickerDayView]', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { - 'class': 'btn-light', - '[class.bg-primary]': 'selected', - '[class.text-white]': 'selected', - '[class.text-muted]': 'isMuted()', - '[class.outside]': 'isMuted()', - '[class.active]': 'focused' - }, - template: "{{ i18n.getDayNumerals(date) }}", - styles: ["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerDayView.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerDayView.propDecorators = { - currentMonth: [{ type: Input }], - date: [{ type: Input }], - disabled: [{ type: Input }], - focused: [{ type: Input }], - selected: [{ type: Input }] - }; - return NgbDatepickerDayView; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbDatepickerNavigationSelect = /** @class */ (function () { - function NgbDatepickerNavigationSelect(i18n) { - this.i18n = i18n; - this.select = new EventEmitter(); - } - /** - * @param {?} month - * @return {?} - */ - NgbDatepickerNavigationSelect.prototype.changeMonth = /** - * @param {?} month - * @return {?} - */ - function (month) { this.select.emit(new NgbDate(this.date.year, toInteger(month), 1)); }; - /** - * @param {?} year - * @return {?} - */ - NgbDatepickerNavigationSelect.prototype.changeYear = /** - * @param {?} year - * @return {?} - */ - function (year) { this.select.emit(new NgbDate(toInteger(year), this.date.month, 1)); }; - NgbDatepickerNavigationSelect.decorators = [ - { type: Component, args: [{ - selector: 'ngb-datepicker-navigation-select', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: "\n \n \n \n \n \n ", - styles: ["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}"] - }] } - ]; - /** @nocollapse */ - NgbDatepickerNavigationSelect.ctorParameters = function () { return [ - { type: NgbDatepickerI18n } - ]; }; - NgbDatepickerNavigationSelect.propDecorators = { - date: [{ type: Input }], - disabled: [{ type: Input }], - months: [{ type: Input }], - years: [{ type: Input }], - select: [{ type: Output }] - }; - return NgbDatepickerNavigationSelect; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @abstract - */ -var NgbCalendarHijri = /** @class */ (function (_super) { - __extends(NgbCalendarHijri, _super); - function NgbCalendarHijri() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getMonths = /** - * @return {?} - */ - function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }; - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHijri.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date = this._setYear(date, date.year + number); - date.month = 1; - date.day = 1; - return date; - case 'm': - date = this._setMonth(date, date.month + number); - date.day = 1; - return date; - case 'd': - return this._setDay(date, date.day + number); - default: - return date; - } - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHijri.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHijri.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var day = this.toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarHijri.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - var thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - var date = week[thursdayIndex]; - /** @type {?} */ - var jsDate = this.toGregorian(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - var time = jsDate.getTime(); - /** @type {?} */ - var MuhDate = this.toGregorian(new NgbDate(date.year, 1, 1)); - return Math.floor(Math.round((time - MuhDate.getTime()) / 86400000) / 7) + 1; - }; - /** - * @return {?} - */ - NgbCalendarHijri.prototype.getToday = /** - * @return {?} - */ - function () { return this.fromGregorian(new Date()); }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHijri.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - return date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day) && - !isNaN(this.toGregorian(date).getTime()); - }; - /** - * @private - * @param {?} date - * @param {?} day - * @return {?} - */ - NgbCalendarHijri.prototype._setDay = /** - * @private - * @param {?} date - * @param {?} day - * @return {?} - */ - function (date, day) { - day = +day; - /** @type {?} */ - var mDays = this.getDaysPerMonth(date.month, date.year); - if (day <= 0) { - while (day <= 0) { - date = this._setMonth(date, date.month - 1); - mDays = this.getDaysPerMonth(date.month, date.year); - day += mDays; - } - } - else if (day > mDays) { - while (day > mDays) { - day -= mDays; - date = this._setMonth(date, date.month + 1); - mDays = this.getDaysPerMonth(date.month, date.year); - } - } - date.day = day; - return date; - }; - /** - * @private - * @param {?} date - * @param {?} month - * @return {?} - */ - NgbCalendarHijri.prototype._setMonth = /** - * @private - * @param {?} date - * @param {?} month - * @return {?} - */ - function (date, month) { - month = +month; - date.year = date.year + Math.floor((month - 1) / 12); - date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1; - return date; - }; - /** - * @private - * @param {?} date - * @param {?} year - * @return {?} - */ - NgbCalendarHijri.prototype._setYear = /** - * @private - * @param {?} date - * @param {?} year - * @return {?} - */ - function (date, year) { - date.year = +year; - return date; - }; - NgbCalendarHijri.decorators = [ - { type: Injectable } - ]; - return NgbCalendarHijri; -}(NgbCalendar)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Checks if islamic year is a leap year - * @param {?} hYear - * @return {?} - */ -function isIslamicLeapYear(hYear) { - return (14 + 11 * hYear) % 30 < 11; -} -/** - * Checks if gregorian years is a leap year - * @param {?} gDate - * @return {?} - */ -function isGregorianLeapYear(gDate) { - /** @type {?} */ - var year = gDate.getFullYear(); - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; -} -/** - * Returns the start of Hijri Month. - * `hMonth` is 0 for Muharram, 1 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hYear - * @param {?} hMonth - * @return {?} - */ -function getIslamicMonthStart(hYear, hMonth) { - return Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30.0); -} -/** - * Returns the start of Hijri year. - * `year` is any Hijri year. - * @param {?} year - * @return {?} - */ -function getIslamicYearStart(year) { - return (year - 1) * 354 + Math.floor((3 + 11 * year) / 30.0); -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function mod(a, b) { - return a - b * Math.floor(a / b); -} -/** - * The civil calendar is one type of Hijri calendars used in islamic countries. - * Uses a fixed cycle of alternating 29- and 30-day months, - * with a leap day added to the last month of 11 out of every 30 years. - * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types - * All the calculations here are based on the equations from "Calendrical Calculations" By Edward M. Reingold, Nachum - * Dershowitz. - * @type {?} - */ -var GREGORIAN_EPOCH = 1721425.5; -/** @type {?} */ -var ISLAMIC_EPOCH = 1948439.5; -var NgbCalendarIslamicCivil = /** @class */ (function (_super) { - __extends(NgbCalendarIslamicCivil, _super); - function NgbCalendarIslamicCivil() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - */ - /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - NgbCalendarIslamicCivil.prototype.fromGregorian = /** - * Returns the equivalent islamic(civil) date value for a give input Gregorian date. - * `gDate` is a JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - function (gDate) { - /** @type {?} */ - var gYear = gDate.getFullYear(); - /** @type {?} */ - var gMonth = gDate.getMonth(); - /** @type {?} */ - var gDay = gDate.getDate(); - /** @type {?} */ - var julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) + - -Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) + - Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gDate) ? -1 : -2) + gDay); - julianDay = Math.floor(julianDay) + 0.5; - /** @type {?} */ - var days = julianDay - ISLAMIC_EPOCH; - /** @type {?} */ - var hYear = Math.floor((30 * days + 10646) / 10631.0); - /** @type {?} */ - var hMonth = Math.ceil((days - 29 - getIslamicYearStart(hYear)) / 29.5); - hMonth = Math.min(hMonth, 11); - /** @type {?} */ - var hDay = Math.ceil(days - getIslamicMonthStart(hYear, hMonth)) + 1; - return new NgbDate(hYear, hMonth + 1, hDay); - }; - /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - */ - /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - * @param {?} hDate - * @return {?} - */ - NgbCalendarIslamicCivil.prototype.toGregorian = /** - * Returns the equivalent JS date value for a give input islamic(civil) date. - * `hDate` is an islamic(civil) date to be converted to Gregorian. - * @param {?} hDate - * @return {?} - */ - function (hDate) { - /** @type {?} */ - var hYear = hDate.year; - /** @type {?} */ - var hMonth = hDate.month - 1; - /** @type {?} */ - var hDay = hDate.day; - /** @type {?} */ - var julianDay = hDay + Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30) + ISLAMIC_EPOCH - 1; - /** @type {?} */ - var wjd = Math.floor(julianDay - 0.5) + 0.5; - /** @type {?} */ - var depoch = wjd - GREGORIAN_EPOCH; - /** @type {?} */ - var quadricent = Math.floor(depoch / 146097); - /** @type {?} */ - var dqc = mod(depoch, 146097); - /** @type {?} */ - var cent = Math.floor(dqc / 36524); - /** @type {?} */ - var dcent = mod(dqc, 36524); - /** @type {?} */ - var quad = Math.floor(dcent / 1461); - /** @type {?} */ - var dquad = mod(dcent, 1461); - /** @type {?} */ - var yindex = Math.floor(dquad / 365); - /** @type {?} */ - var year = quadricent * 400 + cent * 100 + quad * 4 + yindex; - if (!(cent === 4 || yindex === 4)) { - year++; - } - /** @type {?} */ - var gYearStart = GREGORIAN_EPOCH + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400); - /** @type {?} */ - var yearday = wjd - gYearStart; - /** @type {?} */ - var tjd = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400) + Math.floor(739 / 12 + (isGregorianLeapYear(new Date(year, 3, 1)) ? -1 : -2) + 1); - /** @type {?} */ - var leapadj = wjd < tjd ? 0 : isGregorianLeapYear(new Date(year, 3, 1)) ? 1 : 2; - /** @type {?} */ - var month = Math.floor(((yearday + leapadj) * 12 + 373) / 367); - /** @type {?} */ - var tjd2 = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) + - Math.floor((year - 1) / 400) + - Math.floor((367 * month - 362) / 12 + (month <= 2 ? 0 : isGregorianLeapYear(new Date(year, month - 1, 1)) ? -1 : -2) + - 1); - /** @type {?} */ - var day = wjd - tjd2 + 1; - return new Date(year, month - 1, day); - }; - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - */ - /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - * @param {?} month - * @param {?} year - * @return {?} - */ - NgbCalendarIslamicCivil.prototype.getDaysPerMonth = /** - * Returns the number of days in a specific Hijri month. - * `month` is 1 for Muharram, 2 for Safar, etc. - * `year` is any Hijri year. - * @param {?} month - * @param {?} year - * @return {?} - */ - function (month, year) { - year = year + Math.floor(month / 13); - month = ((month - 1) % 12) + 1; - /** @type {?} */ - var length = 29 + month % 2; - if (month === 12 && isIslamicLeapYear(year)) { - length++; - } - return length; - }; - NgbCalendarIslamicCivil.decorators = [ - { type: Injectable } - ]; - return NgbCalendarIslamicCivil; -}(NgbCalendarHijri)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Umalqura calendar is one type of Hijri calendars used in islamic countries. - * This Calendar is used by Saudi Arabia for administrative purpose. - * Unlike tabular calendars, the algorithm involves astronomical calculation, but it's still deterministic. - * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types - * @type {?} - */ -var GREGORIAN_FIRST_DATE = new Date(1882, 10, 12); -/** @type {?} */ -var GREGORIAN_LAST_DATE = new Date(2174, 10, 25); -/** @type {?} */ -var HIJRI_BEGIN = 1300; -/** @type {?} */ -var HIJRI_END = 1600; -/** @type {?} */ -var ONE_DAY = 1000 * 60 * 60 * 24; -/** @type {?} */ -var MONTH_LENGTH = [ - // 1300-1304 - '101010101010', '110101010100', '111011001001', '011011010100', '011011101010', - // 1305-1309 - '001101101100', '101010101101', '010101010101', '011010101001', '011110010010', - // 1310-1314 - '101110101001', '010111010100', '101011011010', '010101011100', '110100101101', - // 1315-1319 - '011010010101', '011101001010', '101101010100', '101101101010', '010110101101', - // 1320-1324 - '010010101110', '101001001111', '010100010111', '011010001011', '011010100101', - // 1325-1329 - '101011010101', '001011010110', '100101011011', '010010011101', '101001001101', - // 1330-1334 - '110100100110', '110110010101', '010110101100', '100110110110', '001010111010', - // 1335-1339 - '101001011011', '010100101011', '101010010101', '011011001010', '101011101001', - // 1340-1344 - '001011110100', '100101110110', '001010110110', '100101010110', '101011001010', - // 1345-1349 - '101110100100', '101111010010', '010111011001', '001011011100', '100101101101', - // 1350-1354 - '010101001101', '101010100101', '101101010010', '101110100101', '010110110100', - // 1355-1359 - '100110110110', '010101010111', '001010010111', '010101001011', '011010100011', - // 1360-1364 - '011101010010', '101101100101', '010101101010', '101010101011', '010100101011', - // 1365-1369 - '110010010101', '110101001010', '110110100101', '010111001010', '101011010110', - // 1370-1374 - '100101010111', '010010101011', '100101001011', '101010100101', '101101010010', - // 1375-1379 - '101101101010', '010101110101', '001001110110', '100010110111', '010001011011', - // 1380-1384 - '010101010101', '010110101001', '010110110100', '100111011010', '010011011101', - // 1385-1389 - '001001101110', '100100110110', '101010101010', '110101010100', '110110110010', - // 1390-1394 - '010111010101', '001011011010', '100101011011', '010010101011', '101001010101', - // 1395-1399 - '101101001001', '101101100100', '101101110001', '010110110100', '101010110101', - // 1400-1404 - '101001010101', '110100100101', '111010010010', '111011001001', '011011010100', - // 1405-1409 - '101011101001', '100101101011', '010010101011', '101010010011', '110101001001', - // 1410-1414 - '110110100100', '110110110010', '101010111001', '010010111010', '101001011011', - // 1415-1419 - '010100101011', '101010010101', '101100101010', '101101010101', '010101011100', - // 1420-1424 - '010010111101', '001000111101', '100100011101', '101010010101', '101101001010', - // 1425-1429 - '101101011010', '010101101101', '001010110110', '100100111011', '010010011011', - // 1430-1434 - '011001010101', '011010101001', '011101010100', '101101101010', '010101101100', - // 1435-1439 - '101010101101', '010101010101', '101100101001', '101110010010', '101110101001', - // 1440-1444 - '010111010100', '101011011010', '010101011010', '101010101011', '010110010101', - // 1445-1449 - '011101001001', '011101100100', '101110101010', '010110110101', '001010110110', - // 1450-1454 - '101001010110', '111001001101', '101100100101', '101101010010', '101101101010', - // 1455-1459 - '010110101101', '001010101110', '100100101111', '010010010111', '011001001011', - // 1460-1464 - '011010100101', '011010101100', '101011010110', '010101011101', '010010011101', - // 1465-1469 - '101001001101', '110100010110', '110110010101', '010110101010', '010110110101', - // 1470-1474 - '001011011010', '100101011011', '010010101101', '010110010101', '011011001010', - // 1475-1479 - '011011100100', '101011101010', '010011110101', '001010110110', '100101010110', - // 1480-1484 - '101010101010', '101101010100', '101111010010', '010111011001', '001011101010', - // 1485-1489 - '100101101101', '010010101101', '101010010101', '101101001010', '101110100101', - // 1490-1494 - '010110110010', '100110110101', '010011010110', '101010010111', '010101000111', - // 1495-1499 - '011010010011', '011101001001', '101101010101', '010101101010', '101001101011', - // 1500-1504 - '010100101011', '101010001011', '110101000110', '110110100011', '010111001010', - // 1505-1509 - '101011010110', '010011011011', '001001101011', '100101001011', '101010100101', - // 1510-1514 - '101101010010', '101101101001', '010101110101', '000101110110', '100010110111', - // 1515-1519 - '001001011011', '010100101011', '010101100101', '010110110100', '100111011010', - // 1520-1524 - '010011101101', '000101101101', '100010110110', '101010100110', '110101010010', - // 1525-1529 - '110110101001', '010111010100', '101011011010', '100101011011', '010010101011', - // 1530-1534 - '011001010011', '011100101001', '011101100010', '101110101001', '010110110010', - // 1535-1539 - '101010110101', '010101010101', '101100100101', '110110010010', '111011001001', - // 1540-1544 - '011011010010', '101011101001', '010101101011', '010010101011', '101001010101', - // 1545-1549 - '110100101001', '110101010100', '110110101010', '100110110101', '010010111010', - // 1550-1554 - '101000111011', '010010011011', '101001001101', '101010101010', '101011010101', - // 1555-1559 - '001011011010', '100101011101', '010001011110', '101000101110', '110010011010', - // 1560-1564 - '110101010101', '011010110010', '011010111001', '010010111010', '101001011101', - // 1565-1569 - '010100101101', '101010010101', '101101010010', '101110101000', '101110110100', - // 1570-1574 - '010110111001', '001011011010', '100101011010', '101101001010', '110110100100', - // 1575-1579 - '111011010001', '011011101000', '101101101010', '010101101101', '010100110101', - // 1580-1584 - '011010010101', '110101001010', '110110101000', '110111010100', '011011011010', - // 1585-1589 - '010101011011', '001010011101', '011000101011', '101100010101', '101101001010', - // 1590-1594 - '101110010101', '010110101010', '101010101110', '100100101110', '110010001111', - // 1595-1599 - '010100100111', '011010010101', '011010101010', '101011010110', '010101011101', - // 1600 - '001010011101' -]; -/** - * @param {?} date1 - * @param {?} date2 - * @return {?} - */ -function getDaysDiff(date1, date2) { - // Ignores the time part in date1 and date2: - /** @type {?} */ - var time1 = Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate()); - /** @type {?} */ - var time2 = Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate()); - /** @type {?} */ - var diff = Math.abs(time1 - time2); - return Math.round(diff / ONE_DAY); -} -var NgbCalendarIslamicUmalqura = /** @class */ (function (_super) { - __extends(NgbCalendarIslamicUmalqura, _super); - function NgbCalendarIslamicUmalqura() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - */ - /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - NgbCalendarIslamicUmalqura.prototype.fromGregorian = /** - * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date. - * `gdate` is s JS Date to be converted to Hijri. - * @param {?} gDate - * @return {?} - */ - function (gDate) { - /** @type {?} */ - var hDay = 1; - /** @type {?} */ - var hMonth = 0; - /** @type {?} */ - var hYear = 1300; - /** @type {?} */ - var daysDiff = getDaysDiff(gDate, GREGORIAN_FIRST_DATE); - if (gDate.getTime() - GREGORIAN_FIRST_DATE.getTime() >= 0 && gDate.getTime() - GREGORIAN_LAST_DATE.getTime() <= 0) { - /** @type {?} */ - var year = 1300; - for (var i = 0; i < MONTH_LENGTH.length; i++, year++) { - for (var j = 0; j < 12; j++) { - /** @type {?} */ - var numOfDays = +MONTH_LENGTH[i][j] + 29; - if (daysDiff <= numOfDays) { - hDay = daysDiff + 1; - if (hDay > numOfDays) { - hDay = 1; - j++; - } - if (j > 11) { - j = 0; - year++; - } - hMonth = j; - hYear = year; - return new NgbDate(hYear, hMonth + 1, hDay); - } - daysDiff = daysDiff - numOfDays; - } - } - } - else { - return _super.prototype.fromGregorian.call(this, gDate); - } - }; - /** - * Converts the current Hijri date to Gregorian. - */ - /** - * Converts the current Hijri date to Gregorian. - * @param {?} hDate - * @return {?} - */ - NgbCalendarIslamicUmalqura.prototype.toGregorian = /** - * Converts the current Hijri date to Gregorian. - * @param {?} hDate - * @return {?} - */ - function (hDate) { - /** @type {?} */ - var hYear = hDate.year; - /** @type {?} */ - var hMonth = hDate.month - 1; - /** @type {?} */ - var hDay = hDate.day; - /** @type {?} */ - var gDate = new Date(GREGORIAN_FIRST_DATE); - /** @type {?} */ - var dayDiff = hDay - 1; - if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) { - for (var y = 0; y < hYear - HIJRI_BEGIN; y++) { - for (var m = 0; m < 12; m++) { - dayDiff += +MONTH_LENGTH[y][m] + 29; - } - } - for (var m = 0; m < hMonth; m++) { - dayDiff += +MONTH_LENGTH[hYear - HIJRI_BEGIN][m] + 29; - } - gDate.setDate(GREGORIAN_FIRST_DATE.getDate() + dayDiff); - } - else { - gDate = _super.prototype.toGregorian.call(this, hDate); - } - return gDate; - }; - /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - */ - /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hMonth - * @param {?} hYear - * @return {?} - */ - NgbCalendarIslamicUmalqura.prototype.getDaysPerMonth = /** - * Returns the number of days in a specific Hijri hMonth. - * `hMonth` is 1 for Muharram, 2 for Safar, etc. - * `hYear` is any Hijri hYear. - * @param {?} hMonth - * @param {?} hYear - * @return {?} - */ - function (hMonth, hYear) { - if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) { - /** @type {?} */ - var pos = hYear - HIJRI_BEGIN; - return +MONTH_LENGTH[pos][hMonth - 1] + 29; - } - return _super.prototype.getDaysPerMonth.call(this, hMonth, hYear); - }; - NgbCalendarIslamicUmalqura.decorators = [ - { type: Injectable } - ]; - return NgbCalendarIslamicUmalqura; -}(NgbCalendarIslamicCivil)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Returns the equivalent JS date value for a give input Jalali date. - * `jalaliDate` is an Jalali date to be converted to Gregorian. - * @param {?} jalaliDate - * @return {?} - */ -function toGregorian(jalaliDate) { - /** @type {?} */ - var jdn = jalaliToJulian(jalaliDate.year, jalaliDate.month, jalaliDate.day); - /** @type {?} */ - var date = julianToGregorian(jdn); - date.setHours(6, 30, 3, 200); - return date; -} -/** - * Returns the equivalent jalali date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to jalali. - * utc to local - * @param {?} gdate - * @return {?} - */ -function fromGregorian(gdate) { - /** @type {?} */ - var g2d = gregorianToJulian(gdate.getFullYear(), gdate.getMonth() + 1, gdate.getDate()); - return julianToJalali(g2d); -} -/** - * @param {?} date - * @param {?} yearValue - * @return {?} - */ -function setJalaliYear(date, yearValue) { - date.year = +yearValue; - return date; -} -/** - * @param {?} date - * @param {?} month - * @return {?} - */ -function setJalaliMonth(date, month) { - month = +month; - date.year = date.year + Math.floor((month - 1) / 12); - date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1; - return date; -} -/** - * @param {?} date - * @param {?} day - * @return {?} - */ -function setJalaliDay(date, day) { - /** @type {?} */ - var mDays = getDaysPerMonth(date.month, date.year); - if (day <= 0) { - while (day <= 0) { - date = setJalaliMonth(date, date.month - 1); - mDays = getDaysPerMonth(date.month, date.year); - day += mDays; - } - } - else if (day > mDays) { - while (day > mDays) { - day -= mDays; - date = setJalaliMonth(date, date.month + 1); - mDays = getDaysPerMonth(date.month, date.year); - } - } - date.day = day; - return date; -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function mod$1(a, b) { - return a - b * Math.floor(a / b); -} -/** - * @param {?} a - * @param {?} b - * @return {?} - */ -function div(a, b) { - return Math.trunc(a / b); -} -/* - This function determines if the Jalali (Persian) year is - leap (366-day long) or is the common year (365 days), and - finds the day in March (Gregorian calendar) of the first - day of the Jalali year (jalaliYear). - @param jalaliYear Jalali calendar year (-61 to 3177) - @return - leap: number of years since the last leap year (0 to 4) - gYear: Gregorian year of the beginning of Jalali year - march: the March day of Farvardin the 1st (1st day of jalaliYear) - @see: http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm - @see: http://www.fourmilab.ch/documents/calendar/ - */ -/** - * @param {?} jalaliYear - * @return {?} - */ -function jalCal(jalaliYear) { - // Jalali years starting the 33-year rule. - /** @type {?} */ - var breaks = [-61, 9, 38, 199, 426, 686, 756, 818, 1111, 1181, 1210, 1635, 2060, 2097, 2192, 2262, 2324, 2394, 2456, 3178]; - /** @type {?} */ - var breaksLength = breaks.length; - /** @type {?} */ - var gYear = jalaliYear + 621; - /** @type {?} */ - var leapJ = -14; - /** @type {?} */ - var jp = breaks[0]; - if (jalaliYear < jp || jalaliYear >= breaks[breaksLength - 1]) { - throw new Error('Invalid Jalali year ' + jalaliYear); - } - // Find the limiting years for the Jalali year jalaliYear. - /** @type {?} */ - var jump; - for (var i = 1; i < breaksLength; i += 1) { - /** @type {?} */ - var jm = breaks[i]; - jump = jm - jp; - if (jalaliYear < jm) { - break; - } - leapJ = leapJ + div(jump, 33) * 8 + div(mod$1(jump, 33), 4); - jp = jm; - } - /** @type {?} */ - var n = jalaliYear - jp; - // Find the number of leap years from AD 621 to the beginning - // of the current Jalali year in the Persian calendar. - leapJ = leapJ + div(n, 33) * 8 + div(mod$1(n, 33) + 3, 4); - if (mod$1(jump, 33) === 4 && jump - n === 4) { - leapJ += 1; - } - // And the same in the Gregorian calendar (until the year gYear). - /** @type {?} */ - var leapG = div(gYear, 4) - div((div(gYear, 100) + 1) * 3, 4) - 150; - // Determine the Gregorian date of Farvardin the 1st. - /** @type {?} */ - var march = 20 + leapJ - leapG; - // Find how many years have passed since the last leap year. - if (jump - n < 6) { - n = n - jump + div(jump + 4, 33) * 33; - } - /** @type {?} */ - var leap = mod$1(mod$1(n + 1, 33) - 1, 4); - if (leap === -1) { - leap = 4; - } - return { leap: leap, gy: gYear, march: march }; -} -/* - Calculates Gregorian and Julian calendar dates from the Julian Day number - (jdn) for the period since jdn=-34839655 (i.e. the year -100100 of both - calendars) to some millions years ahead of the present. - @param jdn Julian Day number - @return - gYear: Calendar year (years BC numbered 0, -1, -2, ...) - gMonth: Calendar month (1 to 12) - gDay: Calendar day of the month M (1 to 28/29/30/31) - */ -/** - * @param {?} julianDayNumber - * @return {?} - */ -function julianToGregorian(julianDayNumber) { - /** @type {?} */ - var j = 4 * julianDayNumber + 139361631; - j = j + div(div(4 * julianDayNumber + 183187720, 146097) * 3, 4) * 4 - 3908; - /** @type {?} */ - var i = div(mod$1(j, 1461), 4) * 5 + 308; - /** @type {?} */ - var gDay = div(mod$1(i, 153), 5) + 1; - /** @type {?} */ - var gMonth = mod$1(div(i, 153), 12) + 1; - /** @type {?} */ - var gYear = div(j, 1461) - 100100 + div(8 - gMonth, 6); - return new Date(gYear, gMonth - 1, gDay); -} -/* - Converts a date of the Jalali calendar to the Julian Day number. - @param jy Jalali year (1 to 3100) - @param jm Jalali month (1 to 12) - @param jd Jalali day (1 to 29/31) - @return Julian Day number - */ -/** - * @param {?} gy - * @param {?} gm - * @param {?} gd - * @return {?} - */ -function gregorianToJulian(gy, gm, gd) { - /** @type {?} */ - var d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod$1(gm + 9, 12) + 2, 5) + gd - 34840408; - d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752; - return d; -} -/* - Converts the Julian Day number to a date in the Jalali calendar. - @param julianDayNumber Julian Day number - @return - jalaliYear: Jalali year (1 to 3100) - jalaliMonth: Jalali month (1 to 12) - jalaliDay: Jalali day (1 to 29/31) - */ -/** - * @param {?} julianDayNumber - * @return {?} - */ -function julianToJalali(julianDayNumber) { - /** @type {?} */ - var gy = julianToGregorian(julianDayNumber).getFullYear() // Calculate Gregorian year (gy). - ; - /** @type {?} */ - var jalaliYear = gy - 621; - /** @type {?} */ - var r = jalCal(jalaliYear); - /** @type {?} */ - var gregorianDay = gregorianToJulian(gy, 3, r.march); - /** @type {?} */ - var jalaliDay; - /** @type {?} */ - var jalaliMonth; - /** @type {?} */ - var numberOfDays; - // Find number of days that passed since 1 Farvardin. - numberOfDays = julianDayNumber - gregorianDay; - if (numberOfDays >= 0) { - if (numberOfDays <= 185) { - // The first 6 months. - jalaliMonth = 1 + div(numberOfDays, 31); - jalaliDay = mod$1(numberOfDays, 31) + 1; - return new NgbDate(jalaliYear, jalaliMonth, jalaliDay); - } - else { - // The remaining months. - numberOfDays -= 186; - } - } - else { - // Previous Jalali year. - jalaliYear -= 1; - numberOfDays += 179; - if (r.leap === 1) { - numberOfDays += 1; - } - } - jalaliMonth = 7 + div(numberOfDays, 30); - jalaliDay = mod$1(numberOfDays, 30) + 1; - return new NgbDate(jalaliYear, jalaliMonth, jalaliDay); -} -/* - Converts a date of the Jalali calendar to the Julian Day number. - @param jYear Jalali year (1 to 3100) - @param jMonth Jalali month (1 to 12) - @param jDay Jalali day (1 to 29/31) - @return Julian Day number - */ -/** - * @param {?} jYear - * @param {?} jMonth - * @param {?} jDay - * @return {?} - */ -function jalaliToJulian(jYear, jMonth, jDay) { - /** @type {?} */ - var r = jalCal(jYear); - return gregorianToJulian(r.gy, 3, r.march) + (jMonth - 1) * 31 - div(jMonth, 7) * (jMonth - 7) + jDay - 1; -} -/** - * Returns the number of days in a specific jalali month. - * @param {?} month - * @param {?} year - * @return {?} - */ -function getDaysPerMonth(month, year) { - if (month <= 6) { - return 31; - } - if (month <= 11) { - return 30; - } - if (jalCal(year).leap === 0) { - return 30; - } - return 29; -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbCalendarPersian = /** @class */ (function (_super) { - __extends(NgbCalendarPersian, _super); - function NgbCalendarPersian() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getMonths = /** - * @return {?} - */ - function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }; - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarPersian.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date = setJalaliYear(date, date.year + number); - date.month = 1; - date.day = 1; - return date; - case 'm': - date = setJalaliMonth(date, date.month + number); - date.day = 1; - return date; - case 'd': - return setJalaliDay(date, date.day + number); - default: - return date; - } - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarPersian.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarPersian.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var day = toGregorian(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarPersian.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - // in JS Date Sun=0, in ISO 8601 Sun=7 - if (firstDayOfWeek === 7) { - firstDayOfWeek = 0; - } - /** @type {?} */ - var thursdayIndex = (4 + 7 - firstDayOfWeek) % 7; - /** @type {?} */ - var date = week[thursdayIndex]; - /** @type {?} */ - var jsDate = toGregorian(date); - jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday - // Thursday - /** @type {?} */ - var time = jsDate.getTime(); - /** @type {?} */ - var startDate = toGregorian(new NgbDate(date.year, 1, 1)); - return Math.floor(Math.round((time - startDate.getTime()) / 86400000) / 7) + 1; - }; - /** - * @return {?} - */ - NgbCalendarPersian.prototype.getToday = /** - * @return {?} - */ - function () { return fromGregorian(new Date()); }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarPersian.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) && - !isNaN(toGregorian(date).getTime()); - }; - NgbCalendarPersian.decorators = [ - { type: Injectable } - ]; - return NgbCalendarPersian; -}(NgbCalendar)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var PARTS_PER_HOUR = 1080; -/** @type {?} */ -var PARTS_PER_DAY = 24 * PARTS_PER_HOUR; -/** @type {?} */ -var PARTS_FRACTIONAL_MONTH = 12 * PARTS_PER_HOUR + 793; -/** @type {?} */ -var PARTS_PER_MONTH = 29 * PARTS_PER_DAY + PARTS_FRACTIONAL_MONTH; -/** @type {?} */ -var BAHARAD = 11 * PARTS_PER_HOUR + 204; -/** @type {?} */ -var HEBREW_DAY_ON_JAN_1_1970 = 2092591; -/** @type {?} */ -var GREGORIAN_EPOCH$1 = 1721425.5; -/** - * @param {?} year - * @return {?} - */ -function isGregorianLeapYear$1(year) { - return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; -} -/** - * @param {?} year - * @return {?} - */ -function numberOfFirstDayInYear(year) { - /** @type {?} */ - var monthsBeforeYear = Math.floor((235 * year - 234) / 19); - /** @type {?} */ - var fractionalMonthsBeforeYear = monthsBeforeYear * PARTS_FRACTIONAL_MONTH + BAHARAD; - /** @type {?} */ - var dayNumber = monthsBeforeYear * 29 + Math.floor(fractionalMonthsBeforeYear / PARTS_PER_DAY); - /** @type {?} */ - var timeOfDay = fractionalMonthsBeforeYear % PARTS_PER_DAY; - /** @type {?} */ - var dayOfWeek = dayNumber % 7; - if (dayOfWeek === 2 || dayOfWeek === 4 || dayOfWeek === 6) { - dayNumber++; - dayOfWeek = dayNumber % 7; - } - if (dayOfWeek === 1 && timeOfDay > 15 * PARTS_PER_HOUR + 204 && !isHebrewLeapYear(year)) { - dayNumber += 2; - } - else if (dayOfWeek === 0 && timeOfDay > 21 * PARTS_PER_HOUR + 589 && isHebrewLeapYear(year - 1)) { - dayNumber++; - } - return dayNumber; -} -/** - * @param {?} month - * @param {?} year - * @return {?} - */ -function getDaysInGregorianMonth(month, year) { - /** @type {?} */ - var days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - if (isGregorianLeapYear$1(year)) { - days[1]++; - } - return days[month - 1]; -} -/** - * @param {?} year - * @return {?} - */ -function getHebrewMonths(year) { - return isHebrewLeapYear(year) ? 13 : 12; -} -/** - * Returns the number of days in a specific Hebrew year. - * `year` is any Hebrew year. - * @param {?} year - * @return {?} - */ -function getDaysInHebrewYear(year) { - return numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year); -} -/** - * @param {?} year - * @return {?} - */ -function isHebrewLeapYear(year) { - /** @type {?} */ - var b = (year * 12 + 17) % 19; - return b >= ((b < 0) ? -7 : 12); -} -/** - * Returns the number of days in a specific Hebrew month. - * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months. - * `year` is any Hebrew year. - * @param {?} month - * @param {?} year - * @return {?} - */ -function getDaysInHebrewMonth(month, year) { - /** @type {?} */ - var yearLength = numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year); - /** @type {?} */ - var yearType = (yearLength <= 380 ? yearLength : (yearLength - 30)) - 353; - /** @type {?} */ - var leapYear = isHebrewLeapYear(year); - /** @type {?} */ - var daysInMonth = leapYear ? [30, 29, 29, 29, 30, 30, 29, 30, 29, 30, 29, 30, 29] : - [30, 29, 29, 29, 30, 29, 30, 29, 30, 29, 30, 29]; - if (yearType > 0) { - daysInMonth[2]++; // Kislev gets an extra day in normal or complete years. - } - if (yearType > 1) { - daysInMonth[1]++; // Heshvan gets an extra day in complete years only. - } - return daysInMonth[month - 1]; -} -/** - * @param {?} date - * @return {?} - */ -function getDayNumberInHebrewYear(date) { - /** @type {?} */ - var numberOfDay = 0; - for (var i = 1; i < date.month; i++) { - numberOfDay += getDaysInHebrewMonth(i, date.year); - } - return numberOfDay + date.day; -} -/** - * @param {?} date - * @param {?} val - * @return {?} - */ -function setHebrewMonth(date, val) { - /** @type {?} */ - var after = val >= 0; - if (!after) { - val = -val; - } - while (val > 0) { - if (after) { - if (val > getHebrewMonths(date.year) - date.month) { - val -= getHebrewMonths(date.year) - date.month + 1; - date.year++; - date.month = 1; - } - else { - date.month += val; - val = 0; - } - } - else { - if (val >= date.month) { - date.year--; - val -= date.month; - date.month = getHebrewMonths(date.year); - } - else { - date.month -= val; - val = 0; - } - } - } - return date; -} -/** - * @param {?} date - * @param {?} val - * @return {?} - */ -function setHebrewDay(date, val) { - /** @type {?} */ - var after = val >= 0; - if (!after) { - val = -val; - } - while (val > 0) { - if (after) { - if (val > getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date)) { - val -= getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date) + 1; - date.year++; - date.month = 1; - date.day = 1; - } - else if (val > getDaysInHebrewMonth(date.month, date.year) - date.day) { - val -= getDaysInHebrewMonth(date.month, date.year) - date.day + 1; - date.month++; - date.day = 1; - } - else { - date.day += val; - val = 0; - } - } - else { - if (val >= date.day) { - val -= date.day; - date.month--; - if (date.month === 0) { - date.year--; - date.month = getHebrewMonths(date.year); - } - date.day = getDaysInHebrewMonth(date.month, date.year); - } - else { - date.day -= val; - val = 0; - } - } - } - return date; -} -/** - * Returns the equivalent Hebrew date value for a give input Gregorian date. - * `gdate` is a JS Date to be converted to Hebrew date. - * @param {?} gdate - * @return {?} - */ -function fromGregorian$1(gdate) { - /** @type {?} */ - var date = new Date(gdate); - /** @type {?} */ - var gYear = date.getFullYear(); - /** @type {?} */ - var gMonth = date.getMonth(); - /** @type {?} */ - var gDay = date.getDate(); - /** @type {?} */ - var julianDay = GREGORIAN_EPOCH$1 - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) - - Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) + - Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear$1(gYear) ? -1 : -2) + gDay); - julianDay = Math.floor(julianDay + 0.5); - /** @type {?} */ - var daysSinceHebEpoch = julianDay - 347997; - /** @type {?} */ - var monthsSinceHebEpoch = Math.floor(daysSinceHebEpoch * PARTS_PER_DAY / PARTS_PER_MONTH); - /** @type {?} */ - var hYear = Math.floor((monthsSinceHebEpoch * 19 + 234) / 235) + 1; - /** @type {?} */ - var firstDayOfThisYear = numberOfFirstDayInYear(hYear); - /** @type {?} */ - var dayOfYear = daysSinceHebEpoch - firstDayOfThisYear; - while (dayOfYear < 1) { - hYear--; - firstDayOfThisYear = numberOfFirstDayInYear(hYear); - dayOfYear = daysSinceHebEpoch - firstDayOfThisYear; - } - /** @type {?} */ - var hMonth = 1; - /** @type {?} */ - var hDay = dayOfYear; - while (hDay > getDaysInHebrewMonth(hMonth, hYear)) { - hDay -= getDaysInHebrewMonth(hMonth, hYear); - hMonth++; - } - return new NgbDate(hYear, hMonth, hDay); -} -/** - * Returns the equivalent JS date value for a given Hebrew date. - * `hebrewDate` is an Hebrew date to be converted to Gregorian. - * @param {?} hebrewDate - * @return {?} - */ -function toGregorian$1(hebrewDate) { - /** @type {?} */ - var hYear = hebrewDate.year; - /** @type {?} */ - var hMonth = hebrewDate.month; - /** @type {?} */ - var hDay = hebrewDate.day; - /** @type {?} */ - var days = numberOfFirstDayInYear(hYear); - for (var i = 1; i < hMonth; i++) { - days += getDaysInHebrewMonth(i, hYear); - } - days += hDay; - /** @type {?} */ - var diffDays = days - HEBREW_DAY_ON_JAN_1_1970; - /** @type {?} */ - var after = diffDays >= 0; - if (!after) { - diffDays = -diffDays; - } - /** @type {?} */ - var gYear = 1970; - /** @type {?} */ - var gMonth = 1; - /** @type {?} */ - var gDay = 1; - while (diffDays > 0) { - if (after) { - if (diffDays >= (isGregorianLeapYear$1(gYear) ? 366 : 365)) { - diffDays -= isGregorianLeapYear$1(gYear) ? 366 : 365; - gYear++; - } - else if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) { - diffDays -= getDaysInGregorianMonth(gMonth, gYear); - gMonth++; - } - else { - gDay += diffDays; - diffDays = 0; - } - } - else { - if (diffDays >= (isGregorianLeapYear$1(gYear - 1) ? 366 : 365)) { - diffDays -= isGregorianLeapYear$1(gYear - 1) ? 366 : 365; - gYear--; - } - else { - if (gMonth > 1) { - gMonth--; - } - else { - gMonth = 12; - gYear--; - } - if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) { - diffDays -= getDaysInGregorianMonth(gMonth, gYear); - } - else { - gDay = getDaysInGregorianMonth(gMonth, gYear) - diffDays + 1; - diffDays = 0; - } - } - } - } - return new Date(gYear, gMonth - 1, gDay); -} -/** - * @param {?} numerals - * @return {?} - */ -function hebrewNumerals(numerals) { - if (!numerals) { - return ''; - } - /** @type {?} */ - var hArray0_9 = ['', '\u05d0', '\u05d1', '\u05d2', '\u05d3', '\u05d4', '\u05d5', '\u05d6', '\u05d7', '\u05d8']; - /** @type {?} */ - var hArray10_19 = [ - '\u05d9', '\u05d9\u05d0', '\u05d9\u05d1', '\u05d9\u05d2', '\u05d9\u05d3', '\u05d8\u05d5', '\u05d8\u05d6', - '\u05d9\u05d6', '\u05d9\u05d7', '\u05d9\u05d8' - ]; - /** @type {?} */ - var hArray20_90 = ['', '', '\u05db', '\u05dc', '\u05de', '\u05e0', '\u05e1', '\u05e2', '\u05e4', '\u05e6']; - /** @type {?} */ - var hArray100_900 = [ - '', '\u05e7', '\u05e8', '\u05e9', '\u05ea', '\u05ea\u05e7', '\u05ea\u05e8', '\u05ea\u05e9', '\u05ea\u05ea', - '\u05ea\u05ea\u05e7' - ]; - /** @type {?} */ - var hArray1000_9000 = [ - '', '\u05d0', '\u05d1', '\u05d1\u05d0', '\u05d1\u05d1', '\u05d4', '\u05d4\u05d0', '\u05d4\u05d1', - '\u05d4\u05d1\u05d0', '\u05d4\u05d1\u05d1' - ]; - /** @type {?} */ - var geresh = '\u05f3'; - /** @type {?} */ - var gershaim = '\u05f4'; - /** @type {?} */ - var mem = 0; - /** @type {?} */ - var result = []; - /** @type {?} */ - var step = 0; - while (numerals > 0) { - /** @type {?} */ - var m = numerals % 10; - if (step === 0) { - mem = m; - } - else if (step === 1) { - if (m !== 1) { - result.unshift(hArray20_90[m], hArray0_9[mem]); - } - else { - result.unshift(hArray10_19[mem]); - } - } - else if (step === 2) { - result.unshift(hArray100_900[m]); - } - else { - if (m !== 5) { - result.unshift(hArray1000_9000[m], geresh, ' '); - } - break; - } - numerals = Math.floor(numerals / 10); - if (step === 0 && numerals === 0) { - result.unshift(hArray0_9[m]); - } - step++; - } - result = result.join('').split(''); - if (result.length === 1) { - result.push(geresh); - } - else if (result.length > 1) { - result.splice(result.length - 1, 0, gershaim); - } - return result.join(''); -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * \@since 3.2.0 - */ -var NgbCalendarHebrew = /** @class */ (function (_super) { - __extends(NgbCalendarHebrew, _super); - function NgbCalendarHebrew() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @return {?} - */ - NgbCalendarHebrew.prototype.getDaysPerWeek = /** - * @return {?} - */ - function () { return 7; }; - /** - * @param {?=} year - * @return {?} - */ - NgbCalendarHebrew.prototype.getMonths = /** - * @param {?=} year - * @return {?} - */ - function (year) { - if (year && isHebrewLeapYear(year)) { - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; - } - else { - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; - } - }; - /** - * @return {?} - */ - NgbCalendarHebrew.prototype.getWeeksPerMonth = /** - * @return {?} - */ - function () { return 6; }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.isValid = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var b = date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day); - b = b && date.month > 0 && date.month <= (isHebrewLeapYear(date.year) ? 13 : 12); - b = b && date.day > 0 && date.day <= getDaysInHebrewMonth(date.month, date.year); - return b && !isNaN(toGregorian$1(date).getTime()); - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHebrew.prototype.getNext = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - date = new NgbDate(date.year, date.month, date.day); - switch (period) { - case 'y': - date.year += number; - date.month = 1; - date.day = 1; - return date; - case 'm': - date = setHebrewMonth(date, number); - date.day = 1; - return date; - case 'd': - return setHebrewDay(date, number); - default: - return date; - } - }; - /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - NgbCalendarHebrew.prototype.getPrev = /** - * @param {?} date - * @param {?=} period - * @param {?=} number - * @return {?} - */ - function (date, period, number) { - if (period === void 0) { period = 'd'; } - if (number === void 0) { number = 1; } - return this.getNext(date, period, -number); - }; - /** - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.getWeekday = /** - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var day = toGregorian$1(date).getDay(); - // in JS Date Sun=0, in ISO 8601 Sun=7 - return day === 0 ? 7 : day; - }; - /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - NgbCalendarHebrew.prototype.getWeekNumber = /** - * @param {?} week - * @param {?} firstDayOfWeek - * @return {?} - */ - function (week, firstDayOfWeek) { - /** @type {?} */ - var date = week[week.length - 1]; - return Math.ceil(getDayNumberInHebrewYear(date) / 7); - }; - /** - * @return {?} - */ - NgbCalendarHebrew.prototype.getToday = /** - * @return {?} - */ - function () { return fromGregorian$1(new Date()); }; - /** - * @since 3.4.0 - */ - /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.toGregorian = /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - function (date) { return fromJSDate(toGregorian$1(date)); }; - /** - * @since 3.4.0 - */ - /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - NgbCalendarHebrew.prototype.fromGregorian = /** - * \@since 3.4.0 - * @param {?} date - * @return {?} - */ - function (date) { return fromGregorian$1(toJSDate(date)); }; - NgbCalendarHebrew.decorators = [ - { type: Injectable } - ]; - return NgbCalendarHebrew; -}(NgbCalendar)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var WEEKDAYS = ['שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת', 'ראשון']; -/** @type {?} */ -var MONTHS = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול']; -/** @type {?} */ -var MONTHS_LEAP = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר א׳', 'אדר ב׳', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול']; -/** - * \@since 3.2.0 - */ -var NgbDatepickerI18nHebrew = /** @class */ (function (_super) { - __extends(NgbDatepickerI18nHebrew, _super); - function NgbDatepickerI18nHebrew() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getMonthShortName = /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - function (month, year) { return this.getMonthFullName(month, year); }; - /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getMonthFullName = /** - * @param {?} month - * @param {?=} year - * @return {?} - */ - function (month, year) { - return isHebrewLeapYear(year) ? MONTHS_LEAP[month - 1] : MONTHS[month - 1]; - }; - /** - * @param {?} weekday - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getWeekdayShortName = /** - * @param {?} weekday - * @return {?} - */ - function (weekday) { return WEEKDAYS[weekday - 1]; }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getDayAriaLabel = /** - * @param {?} date - * @return {?} - */ - function (date) { - return hebrewNumerals(date.day) + " " + this.getMonthFullName(date.month, date.year) + " " + hebrewNumerals(date.year); - }; - /** - * @param {?} date - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getDayNumerals = /** - * @param {?} date - * @return {?} - */ - function (date) { return hebrewNumerals(date.day); }; - /** - * @param {?} weekNumber - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getWeekNumerals = /** - * @param {?} weekNumber - * @return {?} - */ - function (weekNumber) { return hebrewNumerals(weekNumber); }; - /** - * @param {?} year - * @return {?} - */ - NgbDatepickerI18nHebrew.prototype.getYearNumerals = /** - * @param {?} year - * @return {?} - */ - function (year) { return hebrewNumerals(year); }; - NgbDatepickerI18nHebrew.decorators = [ - { type: Injectable } - ]; - return NgbDatepickerI18nHebrew; -}(NgbDatepickerI18n)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses - * native javascript dates as a user date model. - */ -var NgbDateNativeAdapter = /** @class */ (function (_super) { - __extends(NgbDateNativeAdapter, _super); - function NgbDateNativeAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Converts a native `Date` to a `NgbDateStruct`. - */ - /** - * Converts a native `Date` to a `NgbDateStruct`. - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype.fromModel = /** - * Converts a native `Date` to a `NgbDateStruct`. - * @param {?} date - * @return {?} - */ - function (date) { - return (date instanceof Date && !isNaN(date.getTime())) ? this._fromNativeDate(date) : null; - }; - /** - * Converts a `NgbDateStruct` to a native `Date`. - */ - /** - * Converts a `NgbDateStruct` to a native `Date`. - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype.toModel = /** - * Converts a `NgbDateStruct` to a native `Date`. - * @param {?} date - * @return {?} - */ - function (date) { - return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) ? this._toNativeDate(date) : - null; - }; - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype._fromNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - return { year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate() }; - }; - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeAdapter.prototype._toNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = new Date(date.year, date.month - 1, date.day, 12); - // avoid 30 -> 1930 conversion - jsDate.setFullYear(date.year); - return jsDate; - }; - NgbDateNativeAdapter.decorators = [ - { type: Injectable } - ]; - return NgbDateNativeAdapter; -}(NgbDateAdapter)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates. - * - * \@since 3.2.0 - */ -var NgbDateNativeUTCAdapter = /** @class */ (function (_super) { - __extends(NgbDateNativeUTCAdapter, _super); - function NgbDateNativeUTCAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeUTCAdapter.prototype._fromNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - return { year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate() }; - }; - /** - * @protected - * @param {?} date - * @return {?} - */ - NgbDateNativeUTCAdapter.prototype._toNativeDate = /** - * @protected - * @param {?} date - * @return {?} - */ - function (date) { - /** @type {?} */ - var jsDate = new Date(Date.UTC(date.year, date.month - 1, date.day)); - // avoid 30 -> 1930 conversion - jsDate.setUTCFullYear(date.year); - return jsDate; - }; - NgbDateNativeUTCAdapter.decorators = [ - { type: Injectable } - ]; - return NgbDateNativeUTCAdapter; -}(NgbDateNativeAdapter)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbDatepickerModule = /** @class */ (function () { - function NgbDatepickerModule() { - } - NgbDatepickerModule.decorators = [ - { type: NgModule, args: [{ - declarations: [ - NgbDatepicker, NgbDatepickerMonthView, NgbDatepickerNavigation, NgbDatepickerNavigationSelect, NgbDatepickerDayView, - NgbInputDatepicker - ], - exports: [NgbDatepicker, NgbInputDatepicker], - imports: [CommonModule, FormsModule], - entryComponents: [NgbDatepicker] - },] } - ]; - return NgbDatepickerModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the dropdowns used in the application. - */ -var NgbDropdownConfig = /** @class */ (function () { - function NgbDropdownConfig() { - this.autoClose = true; - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - } - NgbDropdownConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbDropdownConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbDropdownConfig_Factory() { return new NgbDropdownConfig(); }, token: NgbDropdownConfig, providedIn: "root" }); - return NgbDropdownConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbNavbar = /** @class */ (function () { - function NgbNavbar() { - } - NgbNavbar.decorators = [ - { type: Directive, args: [{ selector: '.navbar' },] } - ]; - return NgbNavbar; -}()); -/** - * A directive you should put put on a dropdown item to enable keyboard navigation. - * Arrow keys will move focus between items marked with this directive. - * - * \@since 4.1.0 - */ -var NgbDropdownItem = /** @class */ (function () { - function NgbDropdownItem(elementRef) { - this.elementRef = elementRef; - this._disabled = false; - } - Object.defineProperty(NgbDropdownItem.prototype, "disabled", { - get: /** - * @return {?} - */ - function () { return this._disabled; }, - set: /** - * @param {?} value - * @return {?} - */ - function (value) { - this._disabled = (/** @type {?} */ (value)) === '' || value === true; // accept an empty attribute as true - }, - enumerable: true, - configurable: true - }); - NgbDropdownItem.decorators = [ - { type: Directive, args: [{ selector: '[ngbDropdownItem]', host: { 'class': 'dropdown-item', '[class.disabled]': 'disabled' } },] } - ]; - /** @nocollapse */ - NgbDropdownItem.ctorParameters = function () { return [ - { type: ElementRef } - ]; }; - NgbDropdownItem.propDecorators = { - disabled: [{ type: Input }] - }; - return NgbDropdownItem; -}()); -/** - * A directive that wraps dropdown menu content and dropdown items. - */ -var NgbDropdownMenu = /** @class */ (function () { - function NgbDropdownMenu(dropdown) { - this.dropdown = dropdown; - this.placement = 'bottom'; - this.isOpen = false; - } - NgbDropdownMenu.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownMenu]', - host: { - '[class.dropdown-menu]': 'true', - '[class.show]': 'dropdown.isOpen()', - '[attr.x-placement]': 'placement', - '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)', - '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)', - '(keydown.Home)': 'dropdown.onKeyDown($event)', - '(keydown.End)': 'dropdown.onKeyDown($event)', - '(keydown.Enter)': 'dropdown.onKeyDown($event)', - '(keydown.Space)': 'dropdown.onKeyDown($event)' - } - },] } - ]; - /** @nocollapse */ - NgbDropdownMenu.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - function () { return NgbDropdown; })),] }] } - ]; }; - NgbDropdownMenu.propDecorators = { - menuItems: [{ type: ContentChildren, args: [NgbDropdownItem,] }] - }; - return NgbDropdownMenu; -}()); -/** - * A directive to mark an element to which dropdown menu will be anchored. - * - * This is a simple version of the `NgbDropdownToggle` directive. - * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support - * for events other than click. - * - * \@since 1.1.0 - */ -var NgbDropdownAnchor = /** @class */ (function () { - function NgbDropdownAnchor(dropdown, _elementRef) { - this.dropdown = dropdown; - this._elementRef = _elementRef; - this.anchorEl = _elementRef.nativeElement; - } - /** - * @return {?} - */ - NgbDropdownAnchor.prototype.getNativeElement = /** - * @return {?} - */ - function () { return this._elementRef.nativeElement; }; - NgbDropdownAnchor.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownAnchor]', - host: { 'class': 'dropdown-toggle', 'aria-haspopup': 'true', '[attr.aria-expanded]': 'dropdown.isOpen()' } - },] } - ]; - /** @nocollapse */ - NgbDropdownAnchor.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - function () { return NgbDropdown; })),] }] }, - { type: ElementRef } - ]; }; - return NgbDropdownAnchor; -}()); -/** - * A directive to mark an element that will toggle dropdown via the `click` event. - * - * You can also use `NgbDropdownAnchor` as an alternative. - */ -var NgbDropdownToggle = /** @class */ (function (_super) { - __extends(NgbDropdownToggle, _super); - function NgbDropdownToggle(dropdown, elementRef) { - return _super.call(this, dropdown, elementRef) || this; - } - NgbDropdownToggle.decorators = [ - { type: Directive, args: [{ - selector: '[ngbDropdownToggle]', - host: { - 'class': 'dropdown-toggle', - 'aria-haspopup': 'true', - '[attr.aria-expanded]': 'dropdown.isOpen()', - '(click)': 'dropdown.toggle()', - '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)', - '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)', - '(keydown.Home)': 'dropdown.onKeyDown($event)', - '(keydown.End)': 'dropdown.onKeyDown($event)' - }, - providers: [{ provide: NgbDropdownAnchor, useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbDropdownToggle; })) }] - },] } - ]; - /** @nocollapse */ - NgbDropdownToggle.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [forwardRef((/** - * @return {?} - */ - function () { return NgbDropdown; })),] }] }, - { type: ElementRef } - ]; }; - return NgbDropdownToggle; -}(NgbDropdownAnchor)); -/** - * A directive that provides contextual overlays for displaying lists of links and more. - */ -var NgbDropdown = /** @class */ (function () { - function NgbDropdown(_changeDetector, config, _document, _ngZone, _elementRef, _renderer, ngbNavbar) { - var _this = this; - this._changeDetector = _changeDetector; - this._document = _document; - this._ngZone = _ngZone; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._closed$ = new Subject(); - /** - * Defines whether or not the dropdown menu is opened initially. - */ - this._open = false; - /** - * An event fired when the dropdown is opened or closed. - * - * The event payload is a `boolean`: - * * `true` - the dropdown was opened - * * `false` - the dropdown was closed - */ - this.openChange = new EventEmitter(); - this.placement = config.placement; - this.container = config.container; - this.autoClose = config.autoClose; - this.display = ngbNavbar ? 'static' : 'dynamic'; - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { _this._positionMenu(); })); - } - /** - * @return {?} - */ - NgbDropdown.prototype.ngAfterContentInit = /** - * @return {?} - */ - function () { - var _this = this; - this._ngZone.onStable.pipe(take(1)).subscribe((/** - * @return {?} - */ - function () { - _this._applyPlacementClasses(); - if (_this._open) { - _this._setCloseHandlers(); - } - })); - }; - /** - * @param {?} changes - * @return {?} - */ - NgbDropdown.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes.container && this._open) { - this._applyContainer(this.container); - } - if (changes.placement && !changes.placement.isFirstChange) { - this._applyPlacementClasses(); - } - }; - /** - * Checks if the dropdown menu is open. - */ - /** - * Checks if the dropdown menu is open. - * @return {?} - */ - NgbDropdown.prototype.isOpen = /** - * Checks if the dropdown menu is open. - * @return {?} - */ - function () { return this._open; }; - /** - * Opens the dropdown menu. - */ - /** - * Opens the dropdown menu. - * @return {?} - */ - NgbDropdown.prototype.open = /** - * Opens the dropdown menu. - * @return {?} - */ - function () { - if (!this._open) { - this._open = true; - this._applyContainer(this.container); - this.openChange.emit(true); - this._setCloseHandlers(); - } - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._setCloseHandlers = /** - * @private - * @return {?} - */ - function () { - var _this = this; - /** @type {?} */ - var anchor = this._anchor; - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this._closed$, this._menu ? [this._menuElement.nativeElement] : [], anchor ? [anchor.getNativeElement()] : [], '.dropdown-item,.dropdown-divider'); - }; - /** - * Closes the dropdown menu. - */ - /** - * Closes the dropdown menu. - * @return {?} - */ - NgbDropdown.prototype.close = /** - * Closes the dropdown menu. - * @return {?} - */ - function () { - if (this._open) { - this._open = false; - this._resetContainer(); - this._closed$.next(); - this.openChange.emit(false); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the dropdown menu. - */ - /** - * Toggles the dropdown menu. - * @return {?} - */ - NgbDropdown.prototype.toggle = /** - * Toggles the dropdown menu. - * @return {?} - */ - function () { - if (this.isOpen()) { - this.close(); - } - else { - this.open(); - } - }; - /** - * @return {?} - */ - NgbDropdown.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this._resetContainer(); - this._closed$.next(); - this._zoneSubscription.unsubscribe(); - }; - /** - * @param {?} event - * @return {?} - */ - NgbDropdown.prototype.onKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { - var _this = this; - // tslint:disable-next-line:deprecation - /** @type {?} */ - var key = event.which; - /** @type {?} */ - var itemElements = this._getMenuElements(); - /** @type {?} */ - var position = -1; - /** @type {?} */ - var isEventFromItems = false; - /** @type {?} */ - var isEventFromToggle = this._isEventFromToggle(event); - if (!isEventFromToggle && itemElements.length) { - itemElements.forEach((/** - * @param {?} itemElement - * @param {?} index - * @return {?} - */ - function (itemElement, index) { - if (itemElement.contains((/** @type {?} */ (event.target)))) { - isEventFromItems = true; - } - if (itemElement === _this._document.activeElement) { - position = index; - } - })); - } - // closing on Enter / Space - if (key === Key.Space || key === Key.Enter) { - if (isEventFromItems && (this.autoClose === true || this.autoClose === 'inside')) { - this.close(); - } - return; - } - // opening / navigating - if (isEventFromToggle || isEventFromItems) { - this.open(); - if (itemElements.length) { - switch (key) { - case Key.ArrowDown: - position = Math.min(position + 1, itemElements.length - 1); - break; - case Key.ArrowUp: - if (this._isDropup() && position === -1) { - position = itemElements.length - 1; - break; - } - position = Math.max(position - 1, 0); - break; - case Key.Home: - position = 0; - break; - case Key.End: - position = itemElements.length - 1; - break; - } - itemElements[position].focus(); - } - event.preventDefault(); - } - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._isDropup = /** - * @private - * @return {?} - */ - function () { return this._elementRef.nativeElement.classList.contains('dropup'); }; - /** - * @private - * @param {?} event - * @return {?} - */ - NgbDropdown.prototype._isEventFromToggle = /** - * @private - * @param {?} event - * @return {?} - */ - function (event) { - return this._anchor.getNativeElement().contains((/** @type {?} */ (event.target))); - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._getMenuElements = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var menu = this._menu; - if (menu == null) { - return []; - } - return menu.menuItems.filter((/** - * @param {?} item - * @return {?} - */ - function (item) { return !item.disabled; })).map((/** - * @param {?} item - * @return {?} - */ - function (item) { return item.elementRef.nativeElement; })); - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._positionMenu = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var menu = this._menu; - if (this.isOpen() && menu) { - this._applyPlacementClasses(this.display === 'dynamic' ? - positionElements(this._anchor.anchorEl, this._bodyContainer || this._menuElement.nativeElement, this.placement, this.container === 'body') : - this._getFirstPlacement(this.placement)); - } - }; - /** - * @private - * @param {?} placement - * @return {?} - */ - NgbDropdown.prototype._getFirstPlacement = /** - * @private - * @param {?} placement - * @return {?} - */ - function (placement) { - return Array.isArray(placement) ? placement[0] : (/** @type {?} */ (placement.split(' ')[0])); - }; - /** - * @private - * @return {?} - */ - NgbDropdown.prototype._resetContainer = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var renderer = this._renderer; - /** @type {?} */ - var menuElement = this._menuElement; - if (menuElement) { - /** @type {?} */ - var dropdownElement = this._elementRef.nativeElement; - /** @type {?} */ - var dropdownMenuElement = menuElement.nativeElement; - renderer.appendChild(dropdownElement, dropdownMenuElement); - renderer.removeStyle(dropdownMenuElement, 'position'); - renderer.removeStyle(dropdownMenuElement, 'transform'); - } - if (this._bodyContainer) { - renderer.removeChild(this._document.body, this._bodyContainer); - this._bodyContainer = null; - } - }; - /** - * @private - * @param {?=} container - * @return {?} - */ - NgbDropdown.prototype._applyContainer = /** - * @private - * @param {?=} container - * @return {?} - */ - function (container) { - if (container === void 0) { container = null; } - this._resetContainer(); - if (container === 'body') { - /** @type {?} */ - var renderer = this._renderer; - /** @type {?} */ - var dropdownMenuElement = this._menuElement.nativeElement; - /** @type {?} */ - var bodyContainer = this._bodyContainer = this._bodyContainer || renderer.createElement('div'); - // Override some styles to have the positionning working - renderer.setStyle(bodyContainer, 'position', 'absolute'); - renderer.setStyle(dropdownMenuElement, 'position', 'static'); - renderer.setStyle(bodyContainer, 'z-index', '1050'); - renderer.appendChild(bodyContainer, dropdownMenuElement); - renderer.appendChild(this._document.body, bodyContainer); - } - }; - /** - * @private - * @param {?=} placement - * @return {?} - */ - NgbDropdown.prototype._applyPlacementClasses = /** - * @private - * @param {?=} placement - * @return {?} - */ - function (placement) { - /** @type {?} */ - var menu = this._menu; - if (menu) { - if (!placement) { - placement = this._getFirstPlacement(this.placement); - } - /** @type {?} */ - var renderer = this._renderer; - /** @type {?} */ - var dropdownElement = this._elementRef.nativeElement; - // remove the current placement classes - renderer.removeClass(dropdownElement, 'dropup'); - renderer.removeClass(dropdownElement, 'dropdown'); - menu.placement = this.display === 'static' ? null : placement; - /* - * apply the new placement - * in case of top use up-arrow or down-arrow otherwise - */ - /** @type {?} */ - var dropdownClass = placement.search('^top') !== -1 ? 'dropup' : 'dropdown'; - renderer.addClass(dropdownElement, dropdownClass); - /** @type {?} */ - var bodyContainer = this._bodyContainer; - if (bodyContainer) { - renderer.removeClass(bodyContainer, 'dropup'); - renderer.removeClass(bodyContainer, 'dropdown'); - renderer.addClass(bodyContainer, dropdownClass); - } - } - }; - NgbDropdown.decorators = [ - { type: Directive, args: [{ selector: '[ngbDropdown]', exportAs: 'ngbDropdown', host: { '[class.show]': 'isOpen()' } },] } - ]; - /** @nocollapse */ - NgbDropdown.ctorParameters = function () { return [ - { type: ChangeDetectorRef }, - { type: NgbDropdownConfig }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: NgZone }, - { type: ElementRef }, - { type: Renderer2 }, - { type: NgbNavbar, decorators: [{ type: Optional }] } - ]; }; - NgbDropdown.propDecorators = { - _menu: [{ type: ContentChild, args: [NgbDropdownMenu, { static: false },] }], - _menuElement: [{ type: ContentChild, args: [NgbDropdownMenu, { read: ElementRef, static: false },] }], - _anchor: [{ type: ContentChild, args: [NgbDropdownAnchor, { static: false },] }], - autoClose: [{ type: Input }], - _open: [{ type: Input, args: ['open',] }], - placement: [{ type: Input }], - container: [{ type: Input }], - display: [{ type: Input }], - openChange: [{ type: Output }] - }; - return NgbDropdown; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_DROPDOWN_DIRECTIVES = [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar]; -var NgbDropdownModule = /** @class */ (function () { - function NgbDropdownModule() { - } - NgbDropdownModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_DROPDOWN_DIRECTIVES, exports: NGB_DROPDOWN_DIRECTIVES },] } - ]; - return NgbDropdownModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all modals used in the application. - * - * \@since 3.1.0 - */ -var NgbModalConfig = /** @class */ (function () { - function NgbModalConfig() { - this.backdrop = true; - this.keyboard = true; - } - NgbModalConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbModalConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbModalConfig_Factory() { return new NgbModalConfig(); }, token: NgbModalConfig, providedIn: "root" }); - return NgbModalConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var ContentRef = /** @class */ (function () { - function ContentRef(nodes, viewRef, componentRef) { - this.nodes = nodes; - this.viewRef = viewRef; - this.componentRef = componentRef; - } - return ContentRef; -}()); -/** - * @template T - */ -var /** - * @template T - */ -PopupService = /** @class */ (function () { - function PopupService(_type, _injector, _viewContainerRef, _renderer, _componentFactoryResolver, _applicationRef) { - this._type = _type; - this._injector = _injector; - this._viewContainerRef = _viewContainerRef; - this._renderer = _renderer; - this._componentFactoryResolver = _componentFactoryResolver; - this._applicationRef = _applicationRef; - } - /** - * @param {?=} content - * @param {?=} context - * @return {?} - */ - PopupService.prototype.open = /** - * @param {?=} content - * @param {?=} context - * @return {?} - */ - function (content, context) { - if (!this._windowRef) { - this._contentRef = this._getContentRef(content, context); - this._windowRef = this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type), 0, this._injector, this._contentRef.nodes); - } - return this._windowRef; - }; - /** - * @return {?} - */ - PopupService.prototype.close = /** - * @return {?} - */ - function () { - if (this._windowRef) { - this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)); - this._windowRef = null; - if (this._contentRef.viewRef) { - this._applicationRef.detachView(this._contentRef.viewRef); - this._contentRef.viewRef.destroy(); - this._contentRef = null; - } - } - }; - /** - * @private - * @param {?} content - * @param {?=} context - * @return {?} - */ - PopupService.prototype._getContentRef = /** - * @private - * @param {?} content - * @param {?=} context - * @return {?} - */ - function (content, context) { - if (!content) { - return new ContentRef([]); - } - else if (content instanceof TemplateRef) { - /** @type {?} */ - var viewRef = content.createEmbeddedView(context); - this._applicationRef.attachView(viewRef); - return new ContentRef([viewRef.rootNodes], viewRef); - } - else { - return new ContentRef([[this._renderer.createText("" + content)]]); - } - }; - return PopupService; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var noop = (/** - * @return {?} - */ -function () { }); -/** - * Utility to handle the scrollbar. - * - * It allows to compensate the lack of a vertical scrollbar by adding an - * equivalent padding on the right of the body, and to remove this compensation. - */ -var ScrollBar = /** @class */ (function () { - function ScrollBar(_document) { - this._document = _document; - } - /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return {?} a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - ScrollBar.prototype.compensate = /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return {?} a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - function () { return !this._isPresent() ? noop : this._adjustBody(this._getWidth()); }; - /** - * Adds a padding of the given width on the right of the body. - * - * @return a callback used to revert the padding to its previous value - */ - /** - * Adds a padding of the given width on the right of the body. - * - * @private - * @param {?} width - * @return {?} a callback used to revert the padding to its previous value - */ - ScrollBar.prototype._adjustBody = /** - * Adds a padding of the given width on the right of the body. - * - * @private - * @param {?} width - * @return {?} a callback used to revert the padding to its previous value - */ - function (width) { - /** @type {?} */ - var body = this._document.body; - /** @type {?} */ - var userSetPadding = body.style.paddingRight; - /** @type {?} */ - var paddingAmount = parseFloat(window.getComputedStyle(body)['padding-right']); - body.style['padding-right'] = paddingAmount + width + "px"; - return (/** - * @return {?} - */ - function () { return body.style['padding-right'] = userSetPadding; }); - }; - /** - * Tells whether a scrollbar is currently present on the body. - * - * @return true if scrollbar is present, false otherwise - */ - /** - * Tells whether a scrollbar is currently present on the body. - * - * @private - * @return {?} true if scrollbar is present, false otherwise - */ - ScrollBar.prototype._isPresent = /** - * Tells whether a scrollbar is currently present on the body. - * - * @private - * @return {?} true if scrollbar is present, false otherwise - */ - function () { - /** @type {?} */ - var rect = this._document.body.getBoundingClientRect(); - return rect.left + rect.right < window.innerWidth; - }; - /** - * Calculates and returns the width of a scrollbar. - * - * @return the width of a scrollbar on this page - */ - /** - * Calculates and returns the width of a scrollbar. - * - * @private - * @return {?} the width of a scrollbar on this page - */ - ScrollBar.prototype._getWidth = /** - * Calculates and returns the width of a scrollbar. - * - * @private - * @return {?} the width of a scrollbar on this page - */ - function () { - /** @type {?} */ - var measurer = this._document.createElement('div'); - measurer.className = 'modal-scrollbar-measure'; - /** @type {?} */ - var body = this._document.body; - body.appendChild(measurer); - /** @type {?} */ - var width = measurer.getBoundingClientRect().width - measurer.clientWidth; - body.removeChild(measurer); - return width; - }; - ScrollBar.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - ScrollBar.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] } - ]; }; - /** @nocollapse */ ScrollBar.ngInjectableDef = ɵɵdefineInjectable({ factory: function ScrollBar_Factory() { return new ScrollBar(ɵɵinject(DOCUMENT)); }, token: ScrollBar, providedIn: "root" }); - return ScrollBar; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbModalBackdrop = /** @class */ (function () { - function NgbModalBackdrop() { - } - NgbModalBackdrop.decorators = [ - { type: Component, args: [{ - selector: 'ngb-modal-backdrop', - template: '', - host: { '[class]': '"modal-backdrop fade show" + (backdropClass ? " " + backdropClass : "")', 'style': 'z-index: 1050' } - }] } - ]; - NgbModalBackdrop.propDecorators = { - backdropClass: [{ type: Input }] - }; - return NgbModalBackdrop; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A reference to the currently opened (active) modal. - * - * Instances of this class can be injected into your component passed as modal content. - * So you can `.close()` or `.dismiss()` the modal window from your component. - */ -var /** - * A reference to the currently opened (active) modal. - * - * Instances of this class can be injected into your component passed as modal content. - * So you can `.close()` or `.dismiss()` the modal window from your component. - */ -NgbActiveModal = /** @class */ (function () { - function NgbActiveModal() { - } - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - */ - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - NgbActiveModal.prototype.close = /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - function (result) { }; - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - */ - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - NgbActiveModal.prototype.dismiss = /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - function (reason) { }; - return NgbActiveModal; -}()); -/** - * A reference to the newly opened modal returned by the `NgbModal.open()` method. - */ -var /** - * A reference to the newly opened modal returned by the `NgbModal.open()` method. - */ -NgbModalRef = /** @class */ (function () { - function NgbModalRef(_windowCmptRef, _contentRef, _backdropCmptRef, _beforeDismiss) { - var _this = this; - this._windowCmptRef = _windowCmptRef; - this._contentRef = _contentRef; - this._backdropCmptRef = _backdropCmptRef; - this._beforeDismiss = _beforeDismiss; - _windowCmptRef.instance.dismissEvent.subscribe((/** - * @param {?} reason - * @return {?} - */ - function (reason) { _this.dismiss(reason); })); - this.result = new Promise((/** - * @param {?} resolve - * @param {?} reject - * @return {?} - */ - function (resolve, reject) { - _this._resolve = resolve; - _this._reject = reject; - })); - this.result.then(null, (/** - * @return {?} - */ - function () { })); - } - Object.defineProperty(NgbModalRef.prototype, "componentInstance", { - /** - * The instance of a component used for the modal content. - * - * When a `TemplateRef` is used as the content, will return `undefined`. - */ - get: /** - * The instance of a component used for the modal content. - * - * When a `TemplateRef` is used as the content, will return `undefined`. - * @return {?} - */ - function () { - if (this._contentRef.componentRef) { - return this._contentRef.componentRef.instance; - } - }, - enumerable: true, - configurable: true - }); - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - */ - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - NgbModalRef.prototype.close = /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - * @param {?=} result - * @return {?} - */ - function (result) { - if (this._windowCmptRef) { - this._resolve(result); - this._removeModalElements(); - } - }; - /** - * @private - * @param {?=} reason - * @return {?} - */ - NgbModalRef.prototype._dismiss = /** - * @private - * @param {?=} reason - * @return {?} - */ - function (reason) { - this._reject(reason); - this._removeModalElements(); - }; - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - */ - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - NgbModalRef.prototype.dismiss = /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - * @param {?=} reason - * @return {?} - */ - function (reason) { - var _this = this; - if (this._windowCmptRef) { - if (!this._beforeDismiss) { - this._dismiss(reason); - } - else { - /** @type {?} */ - var dismiss = this._beforeDismiss(); - if (dismiss && dismiss.then) { - dismiss.then((/** - * @param {?} result - * @return {?} - */ - function (result) { - if (result !== false) { - _this._dismiss(reason); - } - }), (/** - * @return {?} - */ - function () { })); - } - else if (dismiss !== false) { - this._dismiss(reason); - } - } - } - }; - /** - * @private - * @return {?} - */ - NgbModalRef.prototype._removeModalElements = /** - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var windowNativeEl = this._windowCmptRef.location.nativeElement; - windowNativeEl.parentNode.removeChild(windowNativeEl); - this._windowCmptRef.destroy(); - if (this._backdropCmptRef) { - /** @type {?} */ - var backdropNativeEl = this._backdropCmptRef.location.nativeElement; - backdropNativeEl.parentNode.removeChild(backdropNativeEl); - this._backdropCmptRef.destroy(); - } - if (this._contentRef && this._contentRef.viewRef) { - this._contentRef.viewRef.destroy(); - } - this._windowCmptRef = null; - this._backdropCmptRef = null; - this._contentRef = null; - }; - return NgbModalRef; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @enum {number} */ -var ModalDismissReasons = { - BACKDROP_CLICK: 0, - ESC: 1, -}; -ModalDismissReasons[ModalDismissReasons.BACKDROP_CLICK] = 'BACKDROP_CLICK'; -ModalDismissReasons[ModalDismissReasons.ESC] = 'ESC'; - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbModalWindow = /** @class */ (function () { - function NgbModalWindow(_document, _elRef) { - this._document = _document; - this._elRef = _elRef; - this.backdrop = true; - this.keyboard = true; - this.dismissEvent = new EventEmitter(); - } - /** - * @param {?} $event - * @return {?} - */ - NgbModalWindow.prototype.backdropClick = /** - * @param {?} $event - * @return {?} - */ - function ($event) { - if (this.backdrop === true && this._elRef.nativeElement === $event.target) { - this.dismiss(ModalDismissReasons.BACKDROP_CLICK); - } - }; - /** - * @param {?} $event - * @return {?} - */ - NgbModalWindow.prototype.escKey = /** - * @param {?} $event - * @return {?} - */ - function ($event) { - if (this.keyboard && !$event.defaultPrevented) { - this.dismiss(ModalDismissReasons.ESC); - } - }; - /** - * @param {?} reason - * @return {?} - */ - NgbModalWindow.prototype.dismiss = /** - * @param {?} reason - * @return {?} - */ - function (reason) { this.dismissEvent.emit(reason); }; - /** - * @return {?} - */ - NgbModalWindow.prototype.ngOnInit = /** - * @return {?} - */ - function () { this._elWithFocus = this._document.activeElement; }; - /** - * @return {?} - */ - NgbModalWindow.prototype.ngAfterViewInit = /** - * @return {?} - */ - function () { - if (!this._elRef.nativeElement.contains(document.activeElement)) { - /** @type {?} */ - var autoFocusable = (/** @type {?} */ (this._elRef.nativeElement.querySelector("[ngbAutofocus]"))); - /** @type {?} */ - var firstFocusable = getFocusableBoundaryElements(this._elRef.nativeElement)[0]; - /** @type {?} */ - var elementToFocus = autoFocusable || firstFocusable || this._elRef.nativeElement; - elementToFocus.focus(); - } - }; - /** - * @return {?} - */ - NgbModalWindow.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - /** @type {?} */ - var body = this._document.body; - /** @type {?} */ - var elWithFocus = this._elWithFocus; - /** @type {?} */ - var elementToFocus; - if (elWithFocus && elWithFocus['focus'] && body.contains(elWithFocus)) { - elementToFocus = elWithFocus; - } - else { - elementToFocus = body; - } - elementToFocus.focus(); - this._elWithFocus = null; - }; - NgbModalWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-modal-window', - host: { - '[class]': '"modal fade show d-block" + (windowClass ? " " + windowClass : "")', - 'role': 'dialog', - 'tabindex': '-1', - '(keyup.esc)': 'escKey($event)', - '(click)': 'backdropClick($event)', - '[attr.aria-modal]': 'true', - '[attr.aria-labelledby]': 'ariaLabelledBy', - }, - template: "\n
\n
\n
\n ", - encapsulation: ViewEncapsulation.None, - styles: ["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"] - }] } - ]; - /** @nocollapse */ - NgbModalWindow.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ElementRef } - ]; }; - NgbModalWindow.propDecorators = { - ariaLabelledBy: [{ type: Input }], - backdrop: [{ type: Input }], - centered: [{ type: Input }], - keyboard: [{ type: Input }], - scrollable: [{ type: Input }], - size: [{ type: Input }], - windowClass: [{ type: Input }], - dismissEvent: [{ type: Output, args: ['dismiss',] }] - }; - return NgbModalWindow; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbModalStack = /** @class */ (function () { - function NgbModalStack(_applicationRef, _injector, _document, _scrollBar, _rendererFactory) { - var _this = this; - this._applicationRef = _applicationRef; - this._injector = _injector; - this._document = _document; - this._scrollBar = _scrollBar; - this._rendererFactory = _rendererFactory; - this._activeWindowCmptHasChanged = new Subject(); - this._ariaHiddenValues = new Map(); - this._backdropAttributes = ['backdropClass']; - this._modalRefs = []; - this._windowAttributes = ['ariaLabelledBy', 'backdrop', 'centered', 'keyboard', 'scrollable', 'size', 'windowClass']; - this._windowCmpts = []; - // Trap focus on active WindowCmpt - this._activeWindowCmptHasChanged.subscribe((/** - * @return {?} - */ - function () { - if (_this._windowCmpts.length) { - /** @type {?} */ - var activeWindowCmpt = _this._windowCmpts[_this._windowCmpts.length - 1]; - ngbFocusTrap(activeWindowCmpt.location.nativeElement, _this._activeWindowCmptHasChanged); - _this._revertAriaHidden(); - _this._setAriaHidden(activeWindowCmpt.location.nativeElement); - } - })); - } - /** - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype.open = /** - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} options - * @return {?} - */ - function (moduleCFR, contentInjector, content, options) { - var _this = this; - /** @type {?} */ - var containerEl = isDefined(options.container) ? this._document.querySelector(options.container) : this._document.body; - /** @type {?} */ - var renderer = this._rendererFactory.createRenderer(null, null); - /** @type {?} */ - var revertPaddingForScrollBar = this._scrollBar.compensate(); - /** @type {?} */ - var removeBodyClass = (/** - * @return {?} - */ - function () { - if (!_this._modalRefs.length) { - renderer.removeClass(_this._document.body, 'modal-open'); - _this._revertAriaHidden(); - } - }); - if (!containerEl) { - throw new Error("The specified modal container \"" + (options.container || 'body') + "\" was not found in the DOM."); - } - /** @type {?} */ - var activeModal = new NgbActiveModal(); - /** @type {?} */ - var contentRef = this._getContentRef(moduleCFR, options.injector || contentInjector, content, activeModal, options); - /** @type {?} */ - var backdropCmptRef = options.backdrop !== false ? this._attachBackdrop(moduleCFR, containerEl) : null; - /** @type {?} */ - var windowCmptRef = this._attachWindowComponent(moduleCFR, containerEl, contentRef); - /** @type {?} */ - var ngbModalRef = new NgbModalRef(windowCmptRef, contentRef, backdropCmptRef, options.beforeDismiss); - this._registerModalRef(ngbModalRef); - this._registerWindowCmpt(windowCmptRef); - ngbModalRef.result.then(revertPaddingForScrollBar, revertPaddingForScrollBar); - ngbModalRef.result.then(removeBodyClass, removeBodyClass); - activeModal.close = (/** - * @param {?} result - * @return {?} - */ - function (result) { ngbModalRef.close(result); }); - activeModal.dismiss = (/** - * @param {?} reason - * @return {?} - */ - function (reason) { ngbModalRef.dismiss(reason); }); - this._applyWindowOptions(windowCmptRef.instance, options); - if (this._modalRefs.length === 1) { - renderer.addClass(this._document.body, 'modal-open'); - } - if (backdropCmptRef && backdropCmptRef.instance) { - this._applyBackdropOptions(backdropCmptRef.instance, options); - } - return ngbModalRef; - }; - /** - * @param {?=} reason - * @return {?} - */ - NgbModalStack.prototype.dismissAll = /** - * @param {?=} reason - * @return {?} - */ - function (reason) { this._modalRefs.forEach((/** - * @param {?} ngbModalRef - * @return {?} - */ - function (ngbModalRef) { return ngbModalRef.dismiss(reason); })); }; - /** - * @return {?} - */ - NgbModalStack.prototype.hasOpenModals = /** - * @return {?} - */ - function () { return this._modalRefs.length > 0; }; - /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @return {?} - */ - NgbModalStack.prototype._attachBackdrop = /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @return {?} - */ - function (moduleCFR, containerEl) { - /** @type {?} */ - var backdropFactory = moduleCFR.resolveComponentFactory(NgbModalBackdrop); - /** @type {?} */ - var backdropCmptRef = backdropFactory.create(this._injector); - this._applicationRef.attachView(backdropCmptRef.hostView); - containerEl.appendChild(backdropCmptRef.location.nativeElement); - return backdropCmptRef; - }; - /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @param {?} contentRef - * @return {?} - */ - NgbModalStack.prototype._attachWindowComponent = /** - * @private - * @param {?} moduleCFR - * @param {?} containerEl - * @param {?} contentRef - * @return {?} - */ - function (moduleCFR, containerEl, contentRef) { - /** @type {?} */ - var windowFactory = moduleCFR.resolveComponentFactory(NgbModalWindow); - /** @type {?} */ - var windowCmptRef = windowFactory.create(this._injector, contentRef.nodes); - this._applicationRef.attachView(windowCmptRef.hostView); - containerEl.appendChild(windowCmptRef.location.nativeElement); - return windowCmptRef; - }; - /** - * @private - * @param {?} windowInstance - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._applyWindowOptions = /** - * @private - * @param {?} windowInstance - * @param {?} options - * @return {?} - */ - function (windowInstance, options) { - this._windowAttributes.forEach((/** - * @param {?} optionName - * @return {?} - */ - function (optionName) { - if (isDefined(options[optionName])) { - windowInstance[optionName] = options[optionName]; - } - })); - }; - /** - * @private - * @param {?} backdropInstance - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._applyBackdropOptions = /** - * @private - * @param {?} backdropInstance - * @param {?} options - * @return {?} - */ - function (backdropInstance, options) { - this._backdropAttributes.forEach((/** - * @param {?} optionName - * @return {?} - */ - function (optionName) { - if (isDefined(options[optionName])) { - backdropInstance[optionName] = options[optionName]; - } - })); - }; - /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} activeModal - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._getContentRef = /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} activeModal - * @param {?} options - * @return {?} - */ - function (moduleCFR, contentInjector, content, activeModal, options) { - if (!content) { - return new ContentRef([]); - } - else if (content instanceof TemplateRef) { - return this._createFromTemplateRef(content, activeModal); - } - else if (isString(content)) { - return this._createFromString(content); - } - else { - return this._createFromComponent(moduleCFR, contentInjector, content, activeModal, options); - } - }; - /** - * @private - * @param {?} content - * @param {?} activeModal - * @return {?} - */ - NgbModalStack.prototype._createFromTemplateRef = /** - * @private - * @param {?} content - * @param {?} activeModal - * @return {?} - */ - function (content, activeModal) { - /** @type {?} */ - var context = { - $implicit: activeModal, - close: /** - * @param {?} result - * @return {?} - */ - function (result) { activeModal.close(result); }, - dismiss: /** - * @param {?} reason - * @return {?} - */ - function (reason) { activeModal.dismiss(reason); } - }; - /** @type {?} */ - var viewRef = content.createEmbeddedView(context); - this._applicationRef.attachView(viewRef); - return new ContentRef([viewRef.rootNodes], viewRef); - }; - /** - * @private - * @param {?} content - * @return {?} - */ - NgbModalStack.prototype._createFromString = /** - * @private - * @param {?} content - * @return {?} - */ - function (content) { - /** @type {?} */ - var component = this._document.createTextNode("" + content); - return new ContentRef([[component]]); - }; - /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} context - * @param {?} options - * @return {?} - */ - NgbModalStack.prototype._createFromComponent = /** - * @private - * @param {?} moduleCFR - * @param {?} contentInjector - * @param {?} content - * @param {?} context - * @param {?} options - * @return {?} - */ - function (moduleCFR, contentInjector, content, context, options) { - /** @type {?} */ - var contentCmptFactory = moduleCFR.resolveComponentFactory(content); - /** @type {?} */ - var modalContentInjector = Injector.create({ providers: [{ provide: NgbActiveModal, useValue: context }], parent: contentInjector }); - /** @type {?} */ - var componentRef = contentCmptFactory.create(modalContentInjector); - /** @type {?} */ - var componentNativeEl = componentRef.location.nativeElement; - if (options.scrollable) { - ((/** @type {?} */ (componentNativeEl))).classList.add('component-host-scrollable'); - } - this._applicationRef.attachView(componentRef.hostView); - // FIXME: we should here get rid of the component nativeElement - // and use `[Array.from(componentNativeEl.childNodes)]` instead and remove the above CSS class. - return new ContentRef([[componentNativeEl]], componentRef.hostView, componentRef); - }; - /** - * @private - * @param {?} element - * @return {?} - */ - NgbModalStack.prototype._setAriaHidden = /** - * @private - * @param {?} element - * @return {?} - */ - function (element) { - var _this = this; - /** @type {?} */ - var parent = element.parentElement; - if (parent && element !== this._document.body) { - Array.from(parent.children).forEach((/** - * @param {?} sibling - * @return {?} - */ - function (sibling) { - if (sibling !== element && sibling.nodeName !== 'SCRIPT') { - _this._ariaHiddenValues.set(sibling, sibling.getAttribute('aria-hidden')); - sibling.setAttribute('aria-hidden', 'true'); - } - })); - this._setAriaHidden(parent); - } - }; - /** - * @private - * @return {?} - */ - NgbModalStack.prototype._revertAriaHidden = /** - * @private - * @return {?} - */ - function () { - this._ariaHiddenValues.forEach((/** - * @param {?} value - * @param {?} element - * @return {?} - */ - function (value, element) { - if (value) { - element.setAttribute('aria-hidden', value); - } - else { - element.removeAttribute('aria-hidden'); - } - })); - this._ariaHiddenValues.clear(); - }; - /** - * @private - * @param {?} ngbModalRef - * @return {?} - */ - NgbModalStack.prototype._registerModalRef = /** - * @private - * @param {?} ngbModalRef - * @return {?} - */ - function (ngbModalRef) { - var _this = this; - /** @type {?} */ - var unregisterModalRef = (/** - * @return {?} - */ - function () { - /** @type {?} */ - var index = _this._modalRefs.indexOf(ngbModalRef); - if (index > -1) { - _this._modalRefs.splice(index, 1); - } - }); - this._modalRefs.push(ngbModalRef); - ngbModalRef.result.then(unregisterModalRef, unregisterModalRef); - }; - /** - * @private - * @param {?} ngbWindowCmpt - * @return {?} - */ - NgbModalStack.prototype._registerWindowCmpt = /** - * @private - * @param {?} ngbWindowCmpt - * @return {?} - */ - function (ngbWindowCmpt) { - var _this = this; - this._windowCmpts.push(ngbWindowCmpt); - this._activeWindowCmptHasChanged.next(); - ngbWindowCmpt.onDestroy((/** - * @return {?} - */ - function () { - /** @type {?} */ - var index = _this._windowCmpts.indexOf(ngbWindowCmpt); - if (index > -1) { - _this._windowCmpts.splice(index, 1); - _this._activeWindowCmptHasChanged.next(); - } - })); - }; - NgbModalStack.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - NgbModalStack.ctorParameters = function () { return [ - { type: ApplicationRef }, - { type: Injector }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ScrollBar }, - { type: RendererFactory2 } - ]; }; - /** @nocollapse */ NgbModalStack.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbModalStack_Factory() { return new NgbModalStack(ɵɵinject(ApplicationRef), ɵɵinject(INJECTOR), ɵɵinject(DOCUMENT), ɵɵinject(ScrollBar), ɵɵinject(RendererFactory2)); }, token: NgbModalStack, providedIn: "root" }); - return NgbModalStack; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A service for opening modal windows. - * - * Creating a modal is straightforward: create a component or a template and pass it as an argument to - * the `.open()` method. - */ -var NgbModal = /** @class */ (function () { - function NgbModal(_moduleCFR, _injector, _modalStack, _config) { - this._moduleCFR = _moduleCFR; - this._injector = _injector; - this._modalStack = _modalStack; - this._config = _config; - } - /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - */ - /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - * @param {?} content - * @param {?=} options - * @return {?} - */ - NgbModal.prototype.open = /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - * @param {?} content - * @param {?=} options - * @return {?} - */ - function (content, options) { - if (options === void 0) { options = {}; } - /** @type {?} */ - var combinedOptions = Object.assign({}, this._config, options); - return this._modalStack.open(this._moduleCFR, this._injector, content, combinedOptions); - }; - /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * @since 3.1.0 - */ - /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * \@since 3.1.0 - * @param {?=} reason - * @return {?} - */ - NgbModal.prototype.dismissAll = /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * \@since 3.1.0 - * @param {?=} reason - * @return {?} - */ - function (reason) { this._modalStack.dismissAll(reason); }; - /** - * Indicates if there are currently any open modal windows in the application. - * - * @since 3.3.0 - */ - /** - * Indicates if there are currently any open modal windows in the application. - * - * \@since 3.3.0 - * @return {?} - */ - NgbModal.prototype.hasOpenModals = /** - * Indicates if there are currently any open modal windows in the application. - * - * \@since 3.3.0 - * @return {?} - */ - function () { return this._modalStack.hasOpenModals(); }; - NgbModal.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - NgbModal.ctorParameters = function () { return [ - { type: ComponentFactoryResolver }, - { type: Injector }, - { type: NgbModalStack }, - { type: NgbModalConfig } - ]; }; - /** @nocollapse */ NgbModal.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbModal_Factory() { return new NgbModal(ɵɵinject(ComponentFactoryResolver), ɵɵinject(INJECTOR), ɵɵinject(NgbModalStack), ɵɵinject(NgbModalConfig)); }, token: NgbModal, providedIn: "root" }); - return NgbModal; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbModalModule = /** @class */ (function () { - function NgbModalModule() { - } - NgbModalModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbModalBackdrop, NgbModalWindow], - entryComponents: [NgbModalBackdrop, NgbModalWindow], - providers: [NgbModal] - },] } - ]; - return NgbModalModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the paginations used in the application. - */ -var NgbPaginationConfig = /** @class */ (function () { - function NgbPaginationConfig() { - this.disabled = false; - this.boundaryLinks = false; - this.directionLinks = true; - this.ellipses = true; - this.maxSize = 0; - this.pageSize = 10; - this.rotate = false; - } - NgbPaginationConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbPaginationConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbPaginationConfig_Factory() { return new NgbPaginationConfig(); }, token: NgbPaginationConfig, providedIn: "root" }); - return NgbPaginationConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A directive to match the 'ellipsis' link template - * - * \@since 4.1.0 - */ -var NgbPaginationEllipsis = /** @class */ (function () { - function NgbPaginationEllipsis(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationEllipsis.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationEllipsis]' },] } - ]; - /** @nocollapse */ - NgbPaginationEllipsis.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationEllipsis; -}()); -/** - * A directive to match the 'first' link template - * - * \@since 4.1.0 - */ -var NgbPaginationFirst = /** @class */ (function () { - function NgbPaginationFirst(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationFirst.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationFirst]' },] } - ]; - /** @nocollapse */ - NgbPaginationFirst.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationFirst; -}()); -/** - * A directive to match the 'last' link template - * - * \@since 4.1.0 - */ -var NgbPaginationLast = /** @class */ (function () { - function NgbPaginationLast(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationLast.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationLast]' },] } - ]; - /** @nocollapse */ - NgbPaginationLast.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationLast; -}()); -/** - * A directive to match the 'next' link template - * - * \@since 4.1.0 - */ -var NgbPaginationNext = /** @class */ (function () { - function NgbPaginationNext(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationNext.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationNext]' },] } - ]; - /** @nocollapse */ - NgbPaginationNext.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationNext; -}()); -/** - * A directive to match the page 'number' link template - * - * \@since 4.1.0 - */ -var NgbPaginationNumber = /** @class */ (function () { - function NgbPaginationNumber(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationNumber.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationNumber]' },] } - ]; - /** @nocollapse */ - NgbPaginationNumber.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationNumber; -}()); -/** - * A directive to match the 'previous' link template - * - * \@since 4.1.0 - */ -var NgbPaginationPrevious = /** @class */ (function () { - function NgbPaginationPrevious(templateRef) { - this.templateRef = templateRef; - } - NgbPaginationPrevious.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbPaginationPrevious]' },] } - ]; - /** @nocollapse */ - NgbPaginationPrevious.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbPaginationPrevious; -}()); -/** - * A component that displays page numbers and allows to customize them in several ways. - */ -var NgbPagination = /** @class */ (function () { - function NgbPagination(config) { - this.pageCount = 0; - this.pages = []; - /** - * The current page. - * - * Page numbers start with `1`. - */ - this.page = 1; - /** - * An event fired when the page is changed. Will fire only if collection size is set and all values are valid. - * - * Event payload is the number of the newly selected page. - * - * Page numbers start with `1`. - */ - this.pageChange = new EventEmitter(true); - this.disabled = config.disabled; - this.boundaryLinks = config.boundaryLinks; - this.directionLinks = config.directionLinks; - this.ellipses = config.ellipses; - this.maxSize = config.maxSize; - this.pageSize = config.pageSize; - this.rotate = config.rotate; - this.size = config.size; - } - /** - * @return {?} - */ - NgbPagination.prototype.hasPrevious = /** - * @return {?} - */ - function () { return this.page > 1; }; - /** - * @return {?} - */ - NgbPagination.prototype.hasNext = /** - * @return {?} - */ - function () { return this.page < this.pageCount; }; - /** - * @return {?} - */ - NgbPagination.prototype.nextDisabled = /** - * @return {?} - */ - function () { return !this.hasNext() || this.disabled; }; - /** - * @return {?} - */ - NgbPagination.prototype.previousDisabled = /** - * @return {?} - */ - function () { return !this.hasPrevious() || this.disabled; }; - /** - * @param {?} pageNumber - * @return {?} - */ - NgbPagination.prototype.selectPage = /** - * @param {?} pageNumber - * @return {?} - */ - function (pageNumber) { this._updatePages(pageNumber); }; - /** - * @param {?} changes - * @return {?} - */ - NgbPagination.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { this._updatePages(this.page); }; - /** - * @param {?} pageNumber - * @return {?} - */ - NgbPagination.prototype.isEllipsis = /** - * @param {?} pageNumber - * @return {?} - */ - function (pageNumber) { return pageNumber === -1; }; - /** - * Appends ellipses and first/last page number to the displayed pages - */ - /** - * Appends ellipses and first/last page number to the displayed pages - * @private - * @param {?} start - * @param {?} end - * @return {?} - */ - NgbPagination.prototype._applyEllipses = /** - * Appends ellipses and first/last page number to the displayed pages - * @private - * @param {?} start - * @param {?} end - * @return {?} - */ - function (start, end) { - if (this.ellipses) { - if (start > 0) { - if (start > 1) { - this.pages.unshift(-1); - } - this.pages.unshift(1); - } - if (end < this.pageCount) { - if (end < (this.pageCount - 1)) { - this.pages.push(-1); - } - this.pages.push(this.pageCount); - } - } - }; - /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - */ - /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - * @private - * @return {?} - */ - NgbPagination.prototype._applyRotation = /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var start = 0; - /** @type {?} */ - var end = this.pageCount; - /** @type {?} */ - var leftOffset = Math.floor(this.maxSize / 2); - /** @type {?} */ - var rightOffset = this.maxSize % 2 === 0 ? leftOffset - 1 : leftOffset; - if (this.page <= leftOffset) { - // very beginning, no rotation -> [0..maxSize] - end = this.maxSize; - } - else if (this.pageCount - this.page < leftOffset) { - // very end, no rotation -> [len-maxSize..len] - start = this.pageCount - this.maxSize; - } - else { - // rotate - start = this.page - leftOffset - 1; - end = this.page + rightOffset; - } - return [start, end]; - }; - /** - * Paginates page numbers based on maxSize items per page. - */ - /** - * Paginates page numbers based on maxSize items per page. - * @private - * @return {?} - */ - NgbPagination.prototype._applyPagination = /** - * Paginates page numbers based on maxSize items per page. - * @private - * @return {?} - */ - function () { - /** @type {?} */ - var page = Math.ceil(this.page / this.maxSize) - 1; - /** @type {?} */ - var start = page * this.maxSize; - /** @type {?} */ - var end = start + this.maxSize; - return [start, end]; - }; - /** - * @private - * @param {?} newPageNo - * @return {?} - */ - NgbPagination.prototype._setPageInRange = /** - * @private - * @param {?} newPageNo - * @return {?} - */ - function (newPageNo) { - /** @type {?} */ - var prevPageNo = this.page; - this.page = getValueInRange(newPageNo, this.pageCount, 1); - if (this.page !== prevPageNo && isNumber(this.collectionSize)) { - this.pageChange.emit(this.page); - } - }; - /** - * @private - * @param {?} newPage - * @return {?} - */ - NgbPagination.prototype._updatePages = /** - * @private - * @param {?} newPage - * @return {?} - */ - function (newPage) { - var _a, _b; - this.pageCount = Math.ceil(this.collectionSize / this.pageSize); - if (!isNumber(this.pageCount)) { - this.pageCount = 0; - } - // fill-in model needed to render pages - this.pages.length = 0; - for (var i = 1; i <= this.pageCount; i++) { - this.pages.push(i); - } - // set page within 1..max range - this._setPageInRange(newPage); - // apply maxSize if necessary - if (this.maxSize > 0 && this.pageCount > this.maxSize) { - /** @type {?} */ - var start = 0; - /** @type {?} */ - var end = this.pageCount; - // either paginating or rotating page numbers - if (this.rotate) { - _a = __read(this._applyRotation(), 2), start = _a[0], end = _a[1]; - } - else { - _b = __read(this._applyPagination(), 2), start = _b[0], end = _b[1]; - } - this.pages = this.pages.slice(start, end); - // adding ellipses - this._applyEllipses(start, end); - } - }; - NgbPagination.decorators = [ - { type: Component, args: [{ - selector: 'ngb-pagination', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { 'role': 'navigation' }, - template: "\n ««\n «\n »\n »»\n ...\n \n {{ page }}\n (current)\n \n \n " - }] } - ]; - /** @nocollapse */ - NgbPagination.ctorParameters = function () { return [ - { type: NgbPaginationConfig } - ]; }; - NgbPagination.propDecorators = { - tplEllipsis: [{ type: ContentChild, args: [NgbPaginationEllipsis, { static: false },] }], - tplFirst: [{ type: ContentChild, args: [NgbPaginationFirst, { static: false },] }], - tplLast: [{ type: ContentChild, args: [NgbPaginationLast, { static: false },] }], - tplNext: [{ type: ContentChild, args: [NgbPaginationNext, { static: false },] }], - tplNumber: [{ type: ContentChild, args: [NgbPaginationNumber, { static: false },] }], - tplPrevious: [{ type: ContentChild, args: [NgbPaginationPrevious, { static: false },] }], - disabled: [{ type: Input }], - boundaryLinks: [{ type: Input }], - directionLinks: [{ type: Input }], - ellipses: [{ type: Input }], - rotate: [{ type: Input }], - collectionSize: [{ type: Input }], - maxSize: [{ type: Input }], - page: [{ type: Input }], - pageSize: [{ type: Input }], - pageChange: [{ type: Output }], - size: [{ type: Input }] - }; - return NgbPagination; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var DIRECTIVES = [ - NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, - NgbPaginationPrevious -]; -var NgbPaginationModule = /** @class */ (function () { - function NgbPaginationModule() { - } - NgbPaginationModule.decorators = [ - { type: NgModule, args: [{ declarations: DIRECTIVES, exports: DIRECTIVES, imports: [CommonModule] },] } - ]; - return NgbPaginationModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var Trigger = /** @class */ (function () { - function Trigger(open, close) { - this.open = open; - this.close = close; - if (!close) { - this.close = open; - } - } - /** - * @return {?} - */ - Trigger.prototype.isManual = /** - * @return {?} - */ - function () { return this.open === 'manual' || this.close === 'manual'; }; - return Trigger; -}()); -/** @type {?} */ -var DEFAULT_ALIASES = { - 'hover': ['mouseenter', 'mouseleave'], - 'focus': ['focusin', 'focusout'], -}; -/** - * @param {?} triggers - * @param {?=} aliases - * @return {?} - */ -function parseTriggers(triggers, aliases) { - if (aliases === void 0) { aliases = DEFAULT_ALIASES; } - /** @type {?} */ - var trimmedTriggers = (triggers || '').trim(); - if (trimmedTriggers.length === 0) { - return []; - } - /** @type {?} */ - var parsedTriggers = trimmedTriggers.split(/\s+/).map((/** - * @param {?} trigger - * @return {?} - */ - function (trigger) { return trigger.split(':'); })).map((/** - * @param {?} triggerPair - * @return {?} - */ - function (triggerPair) { - /** @type {?} */ - var alias = aliases[triggerPair[0]] || triggerPair; - return new Trigger(alias[0], alias[1]); - })); - /** @type {?} */ - var manualTriggers = parsedTriggers.filter((/** - * @param {?} triggerPair - * @return {?} - */ - function (triggerPair) { return triggerPair.isManual(); })); - if (manualTriggers.length > 1) { - throw 'Triggers parse error: only one manual trigger is allowed'; - } - if (manualTriggers.length === 1 && parsedTriggers.length > 1) { - throw 'Triggers parse error: manual trigger can\'t be mixed with other triggers'; - } - return parsedTriggers; -} -/** - * @param {?} renderer - * @param {?} nativeElement - * @param {?} triggers - * @param {?} isOpenedFn - * @return {?} - */ -function observeTriggers(renderer, nativeElement, triggers, isOpenedFn) { - return new Observable((/** - * @param {?} subscriber - * @return {?} - */ - function (subscriber) { - /** @type {?} */ - var listeners = []; - /** @type {?} */ - var openFn = (/** - * @return {?} - */ - function () { return subscriber.next(true); }); - /** @type {?} */ - var closeFn = (/** - * @return {?} - */ - function () { return subscriber.next(false); }); - /** @type {?} */ - var toggleFn = (/** - * @return {?} - */ - function () { return subscriber.next(!isOpenedFn()); }); - triggers.forEach((/** - * @param {?} trigger - * @return {?} - */ - function (trigger) { - if (trigger.open === trigger.close) { - listeners.push(renderer.listen(nativeElement, trigger.open, toggleFn)); - } - else { - listeners.push(renderer.listen(nativeElement, trigger.open, openFn), renderer.listen(nativeElement, trigger.close, closeFn)); - } - })); - return (/** - * @return {?} - */ - function () { listeners.forEach((/** - * @param {?} unsubscribeFn - * @return {?} - */ - function (unsubscribeFn) { return unsubscribeFn(); })); }); - })); -} -/** @type {?} */ -var delayOrNoop = (/** - * @template T - * @param {?} time - * @return {?} - */ -function (time) { return time > 0 ? delay(time) : (/** - * @param {?} a - * @return {?} - */ -function (a) { return a; }); }); -/** - * @param {?} openDelay - * @param {?} closeDelay - * @param {?} isOpenedFn - * @return {?} - */ -function triggerDelay(openDelay, closeDelay, isOpenedFn) { - return (/** - * @param {?} input$ - * @return {?} - */ - function (input$) { - /** @type {?} */ - var pending = null; - /** @type {?} */ - var filteredInput$ = input$.pipe(map((/** - * @param {?} open - * @return {?} - */ - function (open) { return ({ open: open }); })), filter((/** - * @param {?} event - * @return {?} - */ - function (event) { - /** @type {?} */ - var currentlyOpen = isOpenedFn(); - if (currentlyOpen !== event.open && (!pending || pending.open === currentlyOpen)) { - pending = event; - return true; - } - if (pending && pending.open !== event.open) { - pending = null; - } - return false; - })), share()); - /** @type {?} */ - var delayedOpen$ = filteredInput$.pipe(filter((/** - * @param {?} event - * @return {?} - */ - function (event) { return event.open; })), delayOrNoop(openDelay)); - /** @type {?} */ - var delayedClose$ = filteredInput$.pipe(filter((/** - * @param {?} event - * @return {?} - */ - function (event) { return !event.open; })), delayOrNoop(closeDelay)); - return merge(delayedOpen$, delayedClose$) - .pipe(filter((/** - * @param {?} event - * @return {?} - */ - function (event) { - if (event === pending) { - pending = null; - return event.open !== isOpenedFn(); - } - return false; - })), map((/** - * @param {?} event - * @return {?} - */ - function (event) { return event.open; }))); - }); -} -/** - * @param {?} renderer - * @param {?} nativeElement - * @param {?} triggers - * @param {?} isOpenedFn - * @param {?} openFn - * @param {?} closeFn - * @param {?=} openDelay - * @param {?=} closeDelay - * @return {?} - */ -function listenToTriggers(renderer, nativeElement, triggers, isOpenedFn, openFn, closeFn, openDelay, closeDelay) { - if (openDelay === void 0) { openDelay = 0; } - if (closeDelay === void 0) { closeDelay = 0; } - /** @type {?} */ - var parsedTriggers = parseTriggers(triggers); - if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) { - return (/** - * @return {?} - */ - function () { }); - } - /** @type {?} */ - var subscription = observeTriggers(renderer, nativeElement, parsedTriggers, isOpenedFn) - .pipe(triggerDelay(openDelay, closeDelay, isOpenedFn)) - .subscribe((/** - * @param {?} open - * @return {?} - */ - function (open) { return (open ? openFn() : closeFn()); })); - return (/** - * @return {?} - */ - function () { return subscription.unsubscribe(); }); -} - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the popovers used in the application. - */ -var NgbPopoverConfig = /** @class */ (function () { - function NgbPopoverConfig() { - this.autoClose = true; - this.placement = 'auto'; - this.triggers = 'click'; - this.disablePopover = false; - this.openDelay = 0; - this.closeDelay = 0; - } - NgbPopoverConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbPopoverConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbPopoverConfig_Factory() { return new NgbPopoverConfig(); }, token: NgbPopoverConfig, providedIn: "root" }); - return NgbPopoverConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var nextId$3 = 0; -var NgbPopoverWindow = /** @class */ (function () { - function NgbPopoverWindow() { - } - /** - * @return {?} - */ - NgbPopoverWindow.prototype.isTitleTemplate = /** - * @return {?} - */ - function () { return this.title instanceof TemplateRef; }; - NgbPopoverWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-popover-window', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { '[class]': '"popover" + (popoverClass ? " " + popoverClass : "")', 'role': 'tooltip', '[id]': 'id' }, - template: "\n
\n

\n {{title}}\n \n

\n
", - styles: ["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"] - }] } - ]; - NgbPopoverWindow.propDecorators = { - title: [{ type: Input }], - id: [{ type: Input }], - popoverClass: [{ type: Input }], - context: [{ type: Input }] - }; - return NgbPopoverWindow; -}()); -/** - * A lightweight and extensible directive for fancy popover creation. - */ -var NgbPopover = /** @class */ (function () { - function NgbPopover(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, _applicationRef) { - var _this = this; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._ngZone = _ngZone; - this._document = _document; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - /** - * An event emitted when the popover is shown. Contains no payload. - */ - this.shown = new EventEmitter(); - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - this.hidden = new EventEmitter(); - this._ngbPopoverWindowId = "ngb-popover-" + nextId$3++; - this.autoClose = config.autoClose; - this.placement = config.placement; - this.triggers = config.triggers; - this.container = config.container; - this.disablePopover = config.disablePopover; - this.popoverClass = config.popoverClass; - this.openDelay = config.openDelay; - this.closeDelay = config.closeDelay; - this._popupService = new PopupService(NgbPopoverWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { - if (_this._windowRef) { - positionElements(_this._elementRef.nativeElement, _this._windowRef.location.nativeElement, _this.placement, _this.container === 'body', 'bs-popover'); - } - })); - } - /** - * @private - * @return {?} - */ - NgbPopover.prototype._isDisabled = /** - * @private - * @return {?} - */ - function () { - if (this.disablePopover) { - return true; - } - if (!this.ngbPopover && !this.popoverTitle) { - return true; - } - return false; - }; - /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - */ - /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - * @param {?=} context - * @return {?} - */ - NgbPopover.prototype.open = /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - * @param {?=} context - * @return {?} - */ - function (context) { - var _this = this; - if (!this._windowRef && !this._isDisabled()) { - this._windowRef = this._popupService.open(this.ngbPopover, context); - this._windowRef.instance.title = this.popoverTitle; - this._windowRef.instance.context = context; - this._windowRef.instance.popoverClass = this.popoverClass; - this._windowRef.instance.id = this._ngbPopoverWindowId; - this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbPopoverWindowId); - if (this.container === 'body') { - this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - // We need to detect changes, because we don't know where .open() might be called from. - // Ex. opening popover from one of lifecycle hooks that run after the CD - // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception - this._windowRef.changeDetectorRef.detectChanges(); - // We need to mark for check, because popover won't work inside the OnPush component. - // Ex. when we use expression like `{{ popover.isOpen() : 'opened' : 'closed' }}` - // inside the template of an OnPush component and we change the popover from - // open -> closed, the expression in question won't be updated unless we explicitly - // mark the parent component to be checked. - this._windowRef.changeDetectorRef.markForCheck(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this.hidden, [this._windowRef.location.nativeElement]); - this.shown.emit(); - } - }; - /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - */ - /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - NgbPopover.prototype.close = /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - function () { - if (this._windowRef) { - this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby'); - this._popupService.close(); - this._windowRef = null; - this.hidden.emit(); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - */ - /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - NgbPopover.prototype.toggle = /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - * @return {?} - */ - function () { - if (this._windowRef) { - this.close(); - } - else { - this.open(); - } - }; - /** - * Returns `true`, if the popover is currently shown. - */ - /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - NgbPopover.prototype.isOpen = /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - function () { return this._windowRef != null; }; - /** - * @return {?} - */ - NgbPopover.prototype.ngOnInit = /** - * @return {?} - */ - function () { - this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay); - }; - /** - * @param {?} changes - * @return {?} - */ - NgbPopover.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - // close popover if title and content become empty, or disablePopover set to true - if ((changes['ngbPopover'] || changes['popoverTitle'] || changes['disablePopover']) && this._isDisabled()) { - this.close(); - } - }; - /** - * @return {?} - */ - NgbPopover.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this.close(); - // This check is needed as it might happen that ngOnDestroy is called before ngOnInit - // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199 - if (this._unregisterListenersFn) { - this._unregisterListenersFn(); - } - this._zoneSubscription.unsubscribe(); - }; - NgbPopover.decorators = [ - { type: Directive, args: [{ selector: '[ngbPopover]', exportAs: 'ngbPopover' },] } - ]; - /** @nocollapse */ - NgbPopover.ctorParameters = function () { return [ - { type: ElementRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: ViewContainerRef }, - { type: NgbPopoverConfig }, - { type: NgZone }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } - ]; }; - NgbPopover.propDecorators = { - autoClose: [{ type: Input }], - ngbPopover: [{ type: Input }], - popoverTitle: [{ type: Input }], - placement: [{ type: Input }], - triggers: [{ type: Input }], - container: [{ type: Input }], - disablePopover: [{ type: Input }], - popoverClass: [{ type: Input }], - openDelay: [{ type: Input }], - closeDelay: [{ type: Input }], - shown: [{ type: Output }], - hidden: [{ type: Output }] - }; - return NgbPopover; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbPopoverModule = /** @class */ (function () { - function NgbPopoverModule() { - } - NgbPopoverModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbPopover, NgbPopoverWindow], - exports: [NgbPopover], - imports: [CommonModule], - entryComponents: [NgbPopoverWindow] - },] } - ]; - return NgbPopoverModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the progress bars used in the application. - */ -var NgbProgressbarConfig = /** @class */ (function () { - function NgbProgressbarConfig() { - this.max = 100; - this.animated = false; - this.striped = false; - this.showValue = false; - } - NgbProgressbarConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbProgressbarConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbProgressbarConfig_Factory() { return new NgbProgressbarConfig(); }, token: NgbProgressbarConfig, providedIn: "root" }); - return NgbProgressbarConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A directive that provides feedback on the progress of a workflow or an action. - */ -var NgbProgressbar = /** @class */ (function () { - function NgbProgressbar(config) { - /** - * The current value for the progress bar. - * - * Should be in the `[0, max]` range. - */ - this.value = 0; - this.max = config.max; - this.animated = config.animated; - this.striped = config.striped; - this.type = config.type; - this.showValue = config.showValue; - this.height = config.height; - } - /** - * @return {?} - */ - NgbProgressbar.prototype.getValue = /** - * @return {?} - */ - function () { return getValueInRange(this.value, this.max); }; - /** - * @return {?} - */ - NgbProgressbar.prototype.getPercentValue = /** - * @return {?} - */ - function () { return 100 * this.getValue() / this.max; }; - NgbProgressbar.decorators = [ - { type: Component, args: [{ - selector: 'ngb-progressbar', - changeDetection: ChangeDetectionStrategy.OnPush, - template: "\n
\n
\n {{getPercentValue()}}%\n
\n
\n " - }] } - ]; - /** @nocollapse */ - NgbProgressbar.ctorParameters = function () { return [ - { type: NgbProgressbarConfig } - ]; }; - NgbProgressbar.propDecorators = { - max: [{ type: Input }], - animated: [{ type: Input }], - striped: [{ type: Input }], - showValue: [{ type: Input }], - type: [{ type: Input }], - value: [{ type: Input }], - height: [{ type: Input }] - }; - return NgbProgressbar; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbProgressbarModule = /** @class */ (function () { - function NgbProgressbarModule() { - } - NgbProgressbarModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbProgressbar], exports: [NgbProgressbar], imports: [CommonModule] },] } - ]; - return NgbProgressbarModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the ratings used in the application. - */ -var NgbRatingConfig = /** @class */ (function () { - function NgbRatingConfig() { - this.max = 10; - this.readonly = false; - this.resettable = false; - } - NgbRatingConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbRatingConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbRatingConfig_Factory() { return new NgbRatingConfig(); }, token: NgbRatingConfig, providedIn: "root" }); - return NgbRatingConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_RATING_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbRating; })), - multi: true -}; -/** - * A directive that helps visualising and interacting with a star rating bar. - */ -var NgbRating = /** @class */ (function () { - function NgbRating(config, _changeDetectorRef) { - this._changeDetectorRef = _changeDetectorRef; - this.contexts = []; - this.disabled = false; - /** - * An event emitted when the user is hovering over a given rating. - * - * Event payload equals to the rating being hovered over. - */ - this.hover = new EventEmitter(); - /** - * An event emitted when the user stops hovering over a given rating. - * - * Event payload equals to the rating of the last item being hovered over. - */ - this.leave = new EventEmitter(); - /** - * An event emitted when the user selects a new rating. - * - * Event payload equals to the newly selected rating. - */ - this.rateChange = new EventEmitter(true); - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - this.max = config.max; - this.readonly = config.readonly; - } - /** - * @return {?} - */ - NgbRating.prototype.ariaValueText = /** - * @return {?} - */ - function () { return this.nextRate + " out of " + this.max; }; - /** - * @param {?} value - * @return {?} - */ - NgbRating.prototype.enter = /** - * @param {?} value - * @return {?} - */ - function (value) { - if (!this.readonly && !this.disabled) { - this._updateState(value); - } - this.hover.emit(value); - }; - /** - * @return {?} - */ - NgbRating.prototype.handleBlur = /** - * @return {?} - */ - function () { this.onTouched(); }; - /** - * @param {?} value - * @return {?} - */ - NgbRating.prototype.handleClick = /** - * @param {?} value - * @return {?} - */ - function (value) { this.update(this.resettable && this.rate === value ? 0 : value); }; - /** - * @param {?} event - * @return {?} - */ - NgbRating.prototype.handleKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.ArrowDown: - case Key.ArrowLeft: - this.update(this.rate - 1); - break; - case Key.ArrowUp: - case Key.ArrowRight: - this.update(this.rate + 1); - break; - case Key.Home: - this.update(0); - break; - case Key.End: - this.update(this.max); - break; - default: - return; - } - // note 'return' in default case - event.preventDefault(); - }; - /** - * @param {?} changes - * @return {?} - */ - NgbRating.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes['rate']) { - this.update(this.rate); - } - }; - /** - * @return {?} - */ - NgbRating.prototype.ngOnInit = /** - * @return {?} - */ - function () { - this.contexts = Array.from({ length: this.max }, (/** - * @param {?} v - * @param {?} k - * @return {?} - */ - function (v, k) { return ({ fill: 0, index: k }); })); - this._updateState(this.rate); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbRating.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbRating.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @return {?} - */ - NgbRating.prototype.reset = /** - * @return {?} - */ - function () { - this.leave.emit(this.nextRate); - this._updateState(this.rate); - }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbRating.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.disabled = isDisabled; }; - /** - * @param {?} value - * @param {?=} internalChange - * @return {?} - */ - NgbRating.prototype.update = /** - * @param {?} value - * @param {?=} internalChange - * @return {?} - */ - function (value, internalChange) { - if (internalChange === void 0) { internalChange = true; } - /** @type {?} */ - var newRate = getValueInRange(value, this.max, 0); - if (!this.readonly && !this.disabled && this.rate !== newRate) { - this.rate = newRate; - this.rateChange.emit(this.rate); - } - if (internalChange) { - this.onChange(this.rate); - this.onTouched(); - } - this._updateState(this.rate); - }; - /** - * @param {?} value - * @return {?} - */ - NgbRating.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this.update(value, false); - this._changeDetectorRef.markForCheck(); - }; - /** - * @private - * @param {?} index - * @return {?} - */ - NgbRating.prototype._getFillValue = /** - * @private - * @param {?} index - * @return {?} - */ - function (index) { - /** @type {?} */ - var diff = this.nextRate - index; - if (diff >= 1) { - return 100; - } - if (diff < 1 && diff > 0) { - return parseInt((diff * 100).toFixed(2), 10); - } - return 0; - }; - /** - * @private - * @param {?} nextValue - * @return {?} - */ - NgbRating.prototype._updateState = /** - * @private - * @param {?} nextValue - * @return {?} - */ - function (nextValue) { - var _this = this; - this.nextRate = nextValue; - this.contexts.forEach((/** - * @param {?} context - * @param {?} index - * @return {?} - */ - function (context, index) { return context.fill = _this._getFillValue(index); })); - }; - NgbRating.decorators = [ - { type: Component, args: [{ - selector: 'ngb-rating', - changeDetection: ChangeDetectionStrategy.OnPush, - host: { - 'class': 'd-inline-flex', - 'tabindex': '0', - 'role': 'slider', - 'aria-valuemin': '0', - '[attr.aria-valuemax]': 'max', - '[attr.aria-valuenow]': 'nextRate', - '[attr.aria-valuetext]': 'ariaValueText()', - '[attr.aria-disabled]': 'readonly ? true : null', - '(blur)': 'handleBlur()', - '(keydown)': 'handleKeyDown($event)', - '(mouseleave)': 'reset()' - }, - template: "\n {{ fill === 100 ? '★' : '☆' }}\n \n ({{ index < nextRate ? '*' : ' ' }})\n \n \n \n \n \n ", - providers: [NGB_RATING_VALUE_ACCESSOR] - }] } - ]; - /** @nocollapse */ - NgbRating.ctorParameters = function () { return [ - { type: NgbRatingConfig }, - { type: ChangeDetectorRef } - ]; }; - NgbRating.propDecorators = { - max: [{ type: Input }], - rate: [{ type: Input }], - readonly: [{ type: Input }], - resettable: [{ type: Input }], - starTemplate: [{ type: Input }], - starTemplateFromContent: [{ type: ContentChild, args: [TemplateRef, { static: false },] }], - hover: [{ type: Output }], - leave: [{ type: Output }], - rateChange: [{ type: Output }] - }; - return NgbRating; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbRatingModule = /** @class */ (function () { - function NgbRatingModule() { - } - NgbRatingModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbRating], exports: [NgbRating], imports: [CommonModule] },] } - ]; - return NgbRatingModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbTabset`](#/components/tabset/api#NgbTabset) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tabsets used in the application. - */ -var NgbTabsetConfig = /** @class */ (function () { - function NgbTabsetConfig() { - this.justify = 'start'; - this.orientation = 'horizontal'; - this.type = 'tabs'; - } - NgbTabsetConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTabsetConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbTabsetConfig_Factory() { return new NgbTabsetConfig(); }, token: NgbTabsetConfig, providedIn: "root" }); - return NgbTabsetConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var nextId$4 = 0; -/** - * A directive to wrap tab titles that need to contain HTML markup or other directives. - * - * Alternatively you could use the `NgbTab.title` input for string titles. - */ -var NgbTabTitle = /** @class */ (function () { - function NgbTabTitle(templateRef) { - this.templateRef = templateRef; - } - NgbTabTitle.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbTabTitle]' },] } - ]; - /** @nocollapse */ - NgbTabTitle.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbTabTitle; -}()); -/** - * A directive to wrap content to be displayed in a tab. - */ -var NgbTabContent = /** @class */ (function () { - function NgbTabContent(templateRef) { - this.templateRef = templateRef; - } - NgbTabContent.decorators = [ - { type: Directive, args: [{ selector: 'ng-template[ngbTabContent]' },] } - ]; - /** @nocollapse */ - NgbTabContent.ctorParameters = function () { return [ - { type: TemplateRef } - ]; }; - return NgbTabContent; -}()); -/** - * A directive representing an individual tab. - */ -var NgbTab = /** @class */ (function () { - function NgbTab() { - /** - * The tab identifier. - * - * Must be unique for the entire document for proper accessibility support. - */ - this.id = "ngb-tab-" + nextId$4++; - /** - * If `true`, the current tab is disabled and can't be toggled. - */ - this.disabled = false; - } - /** - * @return {?} - */ - NgbTab.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - // We are using @ContentChildren instead of @ContentChild as in the Angular version being used - // only @ContentChildren allows us to specify the {descendants: false} option. - // Without {descendants: false} we are hitting bugs described in: - // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240 - this.titleTpl = this.titleTpls.first; - this.contentTpl = this.contentTpls.first; - }; - NgbTab.decorators = [ - { type: Directive, args: [{ selector: 'ngb-tab' },] } - ]; - NgbTab.propDecorators = { - id: [{ type: Input }], - title: [{ type: Input }], - disabled: [{ type: Input }], - titleTpls: [{ type: ContentChildren, args: [NgbTabTitle, { descendants: false },] }], - contentTpls: [{ type: ContentChildren, args: [NgbTabContent, { descendants: false },] }] - }; - return NgbTab; -}()); -/** - * A component that makes it easy to create tabbed interface. - */ -var NgbTabset = /** @class */ (function () { - function NgbTabset(config) { - /** - * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden. - */ - this.destroyOnHide = true; - /** - * A tab change event emitted right before the tab change happens. - * - * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details. - */ - this.tabChange = new EventEmitter(); - this.type = config.type; - this.justify = config.justify; - this.orientation = config.orientation; - } - Object.defineProperty(NgbTabset.prototype, "justify", { - /** - * The horizontal alignment of the tabs with flexbox utilities. - */ - set: /** - * The horizontal alignment of the tabs with flexbox utilities. - * @param {?} className - * @return {?} - */ - function (className) { - if (className === 'fill' || className === 'justified') { - this.justifyClass = "nav-" + className; - } - else { - this.justifyClass = "justify-content-" + className; - } - }, - enumerable: true, - configurable: true - }); - /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - */ - /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - * @param {?} tabId - * @return {?} - */ - NgbTabset.prototype.select = /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - * @param {?} tabId - * @return {?} - */ - function (tabId) { - /** @type {?} */ - var selectedTab = this._getTabById(tabId); - if (selectedTab && !selectedTab.disabled && this.activeId !== selectedTab.id) { - /** @type {?} */ - var defaultPrevented_1 = false; - this.tabChange.emit({ activeId: this.activeId, nextId: selectedTab.id, preventDefault: (/** - * @return {?} - */ - function () { defaultPrevented_1 = true; }) }); - if (!defaultPrevented_1) { - this.activeId = selectedTab.id; - } - } - }; - /** - * @return {?} - */ - NgbTabset.prototype.ngAfterContentChecked = /** - * @return {?} - */ - function () { - // auto-correct activeId that might have been set incorrectly as input - /** @type {?} */ - var activeTab = this._getTabById(this.activeId); - this.activeId = activeTab ? activeTab.id : (this.tabs.length ? this.tabs.first.id : null); - }; - /** - * @private - * @param {?} id - * @return {?} - */ - NgbTabset.prototype._getTabById = /** - * @private - * @param {?} id - * @return {?} - */ - function (id) { - /** @type {?} */ - var tabsWithId = this.tabs.filter((/** - * @param {?} tab - * @return {?} - */ - function (tab) { return tab.id === id; })); - return tabsWithId.length ? tabsWithId[0] : null; - }; - NgbTabset.decorators = [ - { type: Component, args: [{ - selector: 'ngb-tabset', - exportAs: 'ngbTabset', - template: "\n \n
\n \n \n \n
\n
\n \n " - }] } - ]; - /** @nocollapse */ - NgbTabset.ctorParameters = function () { return [ - { type: NgbTabsetConfig } - ]; }; - NgbTabset.propDecorators = { - tabs: [{ type: ContentChildren, args: [NgbTab,] }], - activeId: [{ type: Input }], - destroyOnHide: [{ type: Input }], - justify: [{ type: Input }], - orientation: [{ type: Input }], - type: [{ type: Input }], - tabChange: [{ type: Output }] - }; - return NgbTabset; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_TABSET_DIRECTIVES = [NgbTabset, NgbTab, NgbTabContent, NgbTabTitle]; -var NgbTabsetModule = /** @class */ (function () { - function NgbTabsetModule() { - } - NgbTabsetModule.decorators = [ - { type: NgModule, args: [{ declarations: NGB_TABSET_DIRECTIVES, exports: NGB_TABSET_DIRECTIVES, imports: [CommonModule] },] } - ]; - return NgbTabsetModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbTime = /** @class */ (function () { - function NgbTime(hour, minute, second) { - this.hour = toInteger(hour); - this.minute = toInteger(minute); - this.second = toInteger(second); - } - /** - * @param {?=} step - * @return {?} - */ - NgbTime.prototype.changeHour = /** - * @param {?=} step - * @return {?} - */ - function (step) { - if (step === void 0) { step = 1; } - this.updateHour((isNaN(this.hour) ? 0 : this.hour) + step); - }; - /** - * @param {?} hour - * @return {?} - */ - NgbTime.prototype.updateHour = /** - * @param {?} hour - * @return {?} - */ - function (hour) { - if (isNumber(hour)) { - this.hour = (hour < 0 ? 24 + hour : hour) % 24; - } - else { - this.hour = NaN; - } - }; - /** - * @param {?=} step - * @return {?} - */ - NgbTime.prototype.changeMinute = /** - * @param {?=} step - * @return {?} - */ - function (step) { - if (step === void 0) { step = 1; } - this.updateMinute((isNaN(this.minute) ? 0 : this.minute) + step); - }; - /** - * @param {?} minute - * @return {?} - */ - NgbTime.prototype.updateMinute = /** - * @param {?} minute - * @return {?} - */ - function (minute) { - if (isNumber(minute)) { - this.minute = minute % 60 < 0 ? 60 + minute % 60 : minute % 60; - this.changeHour(Math.floor(minute / 60)); - } - else { - this.minute = NaN; - } - }; - /** - * @param {?=} step - * @return {?} - */ - NgbTime.prototype.changeSecond = /** - * @param {?=} step - * @return {?} - */ - function (step) { - if (step === void 0) { step = 1; } - this.updateSecond((isNaN(this.second) ? 0 : this.second) + step); - }; - /** - * @param {?} second - * @return {?} - */ - NgbTime.prototype.updateSecond = /** - * @param {?} second - * @return {?} - */ - function (second) { - if (isNumber(second)) { - this.second = second < 0 ? 60 + second % 60 : second % 60; - this.changeMinute(Math.floor(second / 60)); - } - else { - this.second = NaN; - } - }; - /** - * @param {?=} checkSecs - * @return {?} - */ - NgbTime.prototype.isValid = /** - * @param {?=} checkSecs - * @return {?} - */ - function (checkSecs) { - if (checkSecs === void 0) { checkSecs = true; } - return isNumber(this.hour) && isNumber(this.minute) && (checkSecs ? isNumber(this.second) : true); - }; - /** - * @return {?} - */ - NgbTime.prototype.toString = /** - * @return {?} - */ - function () { return (this.hour || 0) + ":" + (this.minute || 0) + ":" + (this.second || 0); }; - return NgbTime; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the timepickers used in the application. - */ -var NgbTimepickerConfig = /** @class */ (function () { - function NgbTimepickerConfig() { - this.meridian = false; - this.spinners = true; - this.seconds = false; - this.hourStep = 1; - this.minuteStep = 1; - this.secondStep = 1; - this.disabled = false; - this.readonlyInputs = false; - this.size = 'medium'; - } - NgbTimepickerConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTimepickerConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbTimepickerConfig_Factory() { return new NgbTimepickerConfig(); }, token: NgbTimepickerConfig, providedIn: "root" }); - return NgbTimepickerConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @return {?} - */ -function NGB_DATEPICKER_TIME_ADAPTER_FACTORY() { - return new NgbTimeStructAdapter(); -} -/** - * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and - * any provided user time model `T`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding timepicker to a form control, - * ex. `[(ngModel)]="userTimeModel"`. Here `userTimeModel` can be of any type. - * - * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model. - * - * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example. - * - * \@since 2.2.0 - * @abstract - * @template T - */ -var NgbTimeAdapter = /** @class */ (function () { - function NgbTimeAdapter() { - } - NgbTimeAdapter.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY },] } - ]; - /** @nocollapse */ NgbTimeAdapter.ngInjectableDef = ɵɵdefineInjectable({ factory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY, token: NgbTimeAdapter, providedIn: "root" }); - return NgbTimeAdapter; -}()); -var NgbTimeStructAdapter = /** @class */ (function (_super) { - __extends(NgbTimeStructAdapter, _super); - function NgbTimeStructAdapter() { - return _super !== null && _super.apply(this, arguments) || this; - } - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - */ - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - NgbTimeStructAdapter.prototype.fromModel = /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - function (time) { - return (time && isInteger(time.hour) && isInteger(time.minute)) ? - { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } : - null; - }; - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - */ - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - NgbTimeStructAdapter.prototype.toModel = /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - * @param {?} time - * @return {?} - */ - function (time) { - return (time && isInteger(time.hour) && isInteger(time.minute)) ? - { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } : - null; - }; - NgbTimeStructAdapter.decorators = [ - { type: Injectable } - ]; - return NgbTimeStructAdapter; -}(NgbTimeAdapter)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * @param {?} locale - * @return {?} - */ -function NGB_TIMEPICKER_I18N_FACTORY(locale) { - return new NgbTimepickerI18nDefault(locale); -} -/** - * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component. - * The default implementation of this service honors the Angular locale, and uses the registered locale data, - * as explained in the Angular i18n guide. - * @abstract - */ -var NgbTimepickerI18n = /** @class */ (function () { - function NgbTimepickerI18n() { - } - NgbTimepickerI18n.decorators = [ - { type: Injectable, args: [{ providedIn: 'root', useFactory: NGB_TIMEPICKER_I18N_FACTORY, deps: [LOCALE_ID] },] } - ]; - /** @nocollapse */ NgbTimepickerI18n.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbTimepickerI18n_Factory() { return NGB_TIMEPICKER_I18N_FACTORY(ɵɵinject(LOCALE_ID)); }, token: NgbTimepickerI18n, providedIn: "root" }); - return NgbTimepickerI18n; -}()); -var NgbTimepickerI18nDefault = /** @class */ (function (_super) { - __extends(NgbTimepickerI18nDefault, _super); - function NgbTimepickerI18nDefault(locale) { - var _this = _super.call(this) || this; - _this._periods = getLocaleDayPeriods(locale, FormStyle.Standalone, TranslationWidth.Narrow); - return _this; - } - /** - * @return {?} - */ - NgbTimepickerI18nDefault.prototype.getMorningPeriod = /** - * @return {?} - */ - function () { return this._periods[0]; }; - /** - * @return {?} - */ - NgbTimepickerI18nDefault.prototype.getAfternoonPeriod = /** - * @return {?} - */ - function () { return this._periods[1]; }; - NgbTimepickerI18nDefault.decorators = [ - { type: Injectable } - ]; - /** @nocollapse */ - NgbTimepickerI18nDefault.ctorParameters = function () { return [ - { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] } - ]; }; - return NgbTimepickerI18nDefault; -}(NgbTimepickerI18n)); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_TIMEPICKER_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbTimepicker; })), - multi: true -}; -/** - * A directive that helps with wth picking hours, minutes and seconds. - */ -var NgbTimepicker = /** @class */ (function () { - function NgbTimepicker(_config, _ngbTimeAdapter, _cd, i18n) { - this._config = _config; - this._ngbTimeAdapter = _ngbTimeAdapter; - this._cd = _cd; - this.i18n = i18n; - this.onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.onTouched = (/** - * @return {?} - */ - function () { }); - this.meridian = _config.meridian; - this.spinners = _config.spinners; - this.seconds = _config.seconds; - this.hourStep = _config.hourStep; - this.minuteStep = _config.minuteStep; - this.secondStep = _config.secondStep; - this.disabled = _config.disabled; - this.readonlyInputs = _config.readonlyInputs; - this.size = _config.size; - } - Object.defineProperty(NgbTimepicker.prototype, "hourStep", { - get: /** - * @return {?} - */ - function () { return this._hourStep; }, - /** - * The number of hours to add/subtract when clicking hour spinners. - */ - set: /** - * The number of hours to add/subtract when clicking hour spinners. - * @param {?} step - * @return {?} - */ - function (step) { - this._hourStep = isInteger(step) ? step : this._config.hourStep; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbTimepicker.prototype, "minuteStep", { - get: /** - * @return {?} - */ - function () { return this._minuteStep; }, - /** - * The number of minutes to add/subtract when clicking minute spinners. - */ - set: /** - * The number of minutes to add/subtract when clicking minute spinners. - * @param {?} step - * @return {?} - */ - function (step) { - this._minuteStep = isInteger(step) ? step : this._config.minuteStep; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbTimepicker.prototype, "secondStep", { - get: /** - * @return {?} - */ - function () { return this._secondStep; }, - /** - * The number of seconds to add/subtract when clicking second spinners. - */ - set: /** - * The number of seconds to add/subtract when clicking second spinners. - * @param {?} step - * @return {?} - */ - function (step) { - this._secondStep = isInteger(step) ? step : this._config.secondStep; - }, - enumerable: true, - configurable: true - }); - /** - * @param {?} value - * @return {?} - */ - NgbTimepicker.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - /** @type {?} */ - var structValue = this._ngbTimeAdapter.fromModel(value); - this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime(); - if (!this.seconds && (!structValue || !isNumber(structValue.second))) { - this.model.second = 0; - } - this._cd.markForCheck(); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbTimepicker.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbTimepicker.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this.onTouched = fn; }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbTimepicker.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { this.disabled = isDisabled; }; - /** - * @param {?} step - * @return {?} - */ - NgbTimepicker.prototype.changeHour = /** - * @param {?} step - * @return {?} - */ - function (step) { - this.model.changeHour(step); - this.propagateModelChange(); - }; - /** - * @param {?} step - * @return {?} - */ - NgbTimepicker.prototype.changeMinute = /** - * @param {?} step - * @return {?} - */ - function (step) { - this.model.changeMinute(step); - this.propagateModelChange(); - }; - /** - * @param {?} step - * @return {?} - */ - NgbTimepicker.prototype.changeSecond = /** - * @param {?} step - * @return {?} - */ - function (step) { - this.model.changeSecond(step); - this.propagateModelChange(); - }; - /** - * @param {?} newVal - * @return {?} - */ - NgbTimepicker.prototype.updateHour = /** - * @param {?} newVal - * @return {?} - */ - function (newVal) { - /** @type {?} */ - var isPM = this.model.hour >= 12; - /** @type {?} */ - var enteredHour = toInteger(newVal); - if (this.meridian && (isPM && enteredHour < 12 || !isPM && enteredHour === 12)) { - this.model.updateHour(enteredHour + 12); - } - else { - this.model.updateHour(enteredHour); - } - this.propagateModelChange(); - }; - /** - * @param {?} newVal - * @return {?} - */ - NgbTimepicker.prototype.updateMinute = /** - * @param {?} newVal - * @return {?} - */ - function (newVal) { - this.model.updateMinute(toInteger(newVal)); - this.propagateModelChange(); - }; - /** - * @param {?} newVal - * @return {?} - */ - NgbTimepicker.prototype.updateSecond = /** - * @param {?} newVal - * @return {?} - */ - function (newVal) { - this.model.updateSecond(toInteger(newVal)); - this.propagateModelChange(); - }; - /** - * @return {?} - */ - NgbTimepicker.prototype.toggleMeridian = /** - * @return {?} - */ - function () { - if (this.meridian) { - this.changeHour(12); - } - }; - /** - * @param {?} value - * @return {?} - */ - NgbTimepicker.prototype.formatHour = /** - * @param {?} value - * @return {?} - */ - function (value) { - if (isNumber(value)) { - if (this.meridian) { - return padNumber(value % 12 === 0 ? 12 : value % 12); - } - else { - return padNumber(value % 24); - } - } - else { - return padNumber(NaN); - } - }; - /** - * @param {?} value - * @return {?} - */ - NgbTimepicker.prototype.formatMinSec = /** - * @param {?} value - * @return {?} - */ - function (value) { return padNumber(value); }; - Object.defineProperty(NgbTimepicker.prototype, "isSmallSize", { - get: /** - * @return {?} - */ - function () { return this.size === 'small'; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(NgbTimepicker.prototype, "isLargeSize", { - get: /** - * @return {?} - */ - function () { return this.size === 'large'; }, - enumerable: true, - configurable: true - }); - /** - * @param {?} changes - * @return {?} - */ - NgbTimepicker.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) { - this.model.second = 0; - this.propagateModelChange(false); - } - }; - /** - * @private - * @param {?=} touched - * @return {?} - */ - NgbTimepicker.prototype.propagateModelChange = /** - * @private - * @param {?=} touched - * @return {?} - */ - function (touched) { - if (touched === void 0) { touched = true; } - if (touched) { - this.onTouched(); - } - if (this.model.isValid(this.seconds)) { - this.onChange(this._ngbTimeAdapter.toModel({ hour: this.model.hour, minute: this.model.minute, second: this.model.second })); - } - else { - this.onChange(this._ngbTimeAdapter.toModel(null)); - } - }; - NgbTimepicker.decorators = [ - { type: Component, args: [{ - selector: 'ngb-timepicker', - encapsulation: ViewEncapsulation.None, - template: "\n
\n
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
\n
\n \n
\n
\n
\n ", - providers: [NGB_TIMEPICKER_VALUE_ACCESSOR], - styles: ["ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:\"\";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}"] - }] } - ]; - /** @nocollapse */ - NgbTimepicker.ctorParameters = function () { return [ - { type: NgbTimepickerConfig }, - { type: NgbTimeAdapter }, - { type: ChangeDetectorRef }, - { type: NgbTimepickerI18n } - ]; }; - NgbTimepicker.propDecorators = { - meridian: [{ type: Input }], - spinners: [{ type: Input }], - seconds: [{ type: Input }], - hourStep: [{ type: Input }], - minuteStep: [{ type: Input }], - secondStep: [{ type: Input }], - readonlyInputs: [{ type: Input }], - size: [{ type: Input }] - }; - return NgbTimepicker; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbTimepickerModule = /** @class */ (function () { - function NgbTimepickerModule() { - } - NgbTimepickerModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbTimepicker], exports: [NgbTimepicker], imports: [CommonModule] },] } - ]; - return NgbTimepickerModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * Configuration service for the NgbToast component. You can inject this service, typically in your root component, - * and customize the values of its properties in order to provide default values for all the toasts used in the - * application. - * - * \@since 5.0.0 - */ -var NgbToastConfig = /** @class */ (function () { - function NgbToastConfig() { - this.autohide = true; - this.delay = 500; - this.ariaLive = 'polite'; - } - NgbToastConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbToastConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbToastConfig_Factory() { return new NgbToastConfig(); }, token: NgbToastConfig, providedIn: "root" }); - return NgbToastConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * This directive allows the usage of HTML markup or other directives - * inside of the toast's header. - * - * \@since 5.0.0 - */ -var NgbToastHeader = /** @class */ (function () { - function NgbToastHeader() { - } - NgbToastHeader.decorators = [ - { type: Directive, args: [{ selector: '[ngbToastHeader]' },] } - ]; - return NgbToastHeader; -}()); -/** - * Toasts provide feedback messages as notifications to the user. - * Goal is to mimic the push notifications available both on mobile and desktop operating systems. - * - * \@since 5.0.0 - */ -var NgbToast = /** @class */ (function () { - function NgbToast(ariaLive, config) { - this.ariaLive = ariaLive; - /** - * A template like `` can be - * used in the projected content to allow markup usage. - */ - this.contentHeaderTpl = null; - /** - * An event fired immediately when toast's `hide()` method has been called. - * It can only occur in 2 different scenarios: - * - `autohide` timeout fires - * - user clicks on a closing cross (×) - * - * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of - * that. - */ - this.hideOutput = new EventEmitter(); - if (this.ariaLive == null) { - this.ariaLive = config.ariaLive; - } - this.delay = config.delay; - this.autohide = config.autohide; - } - /** - * @return {?} - */ - NgbToast.prototype.ngAfterContentInit = /** - * @return {?} - */ - function () { this._init(); }; - /** - * @param {?} changes - * @return {?} - */ - NgbToast.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - if ('autohide' in changes) { - this._clearTimeout(); - this._init(); - } - }; - /** - * @return {?} - */ - NgbToast.prototype.hide = /** - * @return {?} - */ - function () { - this._clearTimeout(); - this.hideOutput.emit(); - }; - /** - * @private - * @return {?} - */ - NgbToast.prototype._init = /** - * @private - * @return {?} - */ - function () { - var _this = this; - if (this.autohide && !this._timeoutID) { - this._timeoutID = setTimeout((/** - * @return {?} - */ - function () { return _this.hide(); }), this.delay); - } - }; - /** - * @private - * @return {?} - */ - NgbToast.prototype._clearTimeout = /** - * @private - * @return {?} - */ - function () { - if (this._timeoutID) { - clearTimeout(this._timeoutID); - this._timeoutID = null; - } - }; - NgbToast.decorators = [ - { type: Component, args: [{ - selector: 'ngb-toast', - exportAs: 'ngbToast', - encapsulation: ViewEncapsulation.None, - host: { - 'role': 'alert', - '[attr.aria-live]': 'ariaLive', - 'aria-atomic': 'true', - '[class.toast]': 'true', - '[class.show]': 'true', - '[class.autohide]': 'autohide', - }, - template: "\n \n {{header}}\n \n \n
\n \n \n
\n
\n
\n \n
\n ", - styles: [".ngb-toasts{position:fixed;top:0;right:0;margin:.5em;z-index:1200}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}"] - }] } - ]; - /** @nocollapse */ - NgbToast.ctorParameters = function () { return [ - { type: String, decorators: [{ type: Attribute, args: ['aria-live',] }] }, - { type: NgbToastConfig } - ]; }; - NgbToast.propDecorators = { - delay: [{ type: Input }], - autohide: [{ type: Input }], - header: [{ type: Input }], - contentHeaderTpl: [{ type: ContentChild, args: [NgbToastHeader, { read: TemplateRef, static: true },] }], - hideOutput: [{ type: Output, args: ['hide',] }] - }; - return NgbToast; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbToastModule = /** @class */ (function () { - function NgbToastModule() { - } - NgbToastModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbToast, NgbToastHeader], imports: [CommonModule], exports: [NgbToast, NgbToastHeader] },] } - ]; - return NgbToastModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tooltips used in the application. - */ -var NgbTooltipConfig = /** @class */ (function () { - function NgbTooltipConfig() { - this.autoClose = true; - this.placement = 'auto'; - this.triggers = 'hover focus'; - this.disableTooltip = false; - this.openDelay = 0; - this.closeDelay = 0; - } - NgbTooltipConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTooltipConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbTooltipConfig_Factory() { return new NgbTooltipConfig(); }, token: NgbTooltipConfig, providedIn: "root" }); - return NgbTooltipConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var nextId$5 = 0; -var NgbTooltipWindow = /** @class */ (function () { - function NgbTooltipWindow() { - } - NgbTooltipWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-tooltip-window', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - host: { '[class]': '"tooltip show" + (tooltipClass ? " " + tooltipClass : "")', 'role': 'tooltip', '[id]': 'id' }, - template: "
", - styles: ["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"] - }] } - ]; - NgbTooltipWindow.propDecorators = { - id: [{ type: Input }], - tooltipClass: [{ type: Input }] - }; - return NgbTooltipWindow; -}()); -/** - * A lightweight and extensible directive for fancy tooltip creation. - */ -var NgbTooltip = /** @class */ (function () { - function NgbTooltip(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, _applicationRef) { - var _this = this; - this._elementRef = _elementRef; - this._renderer = _renderer; - this._ngZone = _ngZone; - this._document = _document; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - /** - * An event emitted when the tooltip is shown. Contains no payload. - */ - this.shown = new EventEmitter(); - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - this.hidden = new EventEmitter(); - this._ngbTooltipWindowId = "ngb-tooltip-" + nextId$5++; - this.autoClose = config.autoClose; - this.placement = config.placement; - this.triggers = config.triggers; - this.container = config.container; - this.disableTooltip = config.disableTooltip; - this.tooltipClass = config.tooltipClass; - this.openDelay = config.openDelay; - this.closeDelay = config.closeDelay; - this._popupService = new PopupService(NgbTooltipWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = _ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { - if (_this._windowRef) { - positionElements(_this._elementRef.nativeElement, _this._windowRef.location.nativeElement, _this.placement, _this.container === 'body', 'bs-tooltip'); - } - })); - } - Object.defineProperty(NgbTooltip.prototype, "ngbTooltip", { - get: /** - * @return {?} - */ - function () { return this._ngbTooltip; }, - /** - * The string content or a `TemplateRef` for the content to be displayed in the tooltip. - * - * If the content if falsy, the tooltip won't open. - */ - set: /** - * The string content or a `TemplateRef` for the content to be displayed in the tooltip. - * - * If the content if falsy, the tooltip won't open. - * @param {?} value - * @return {?} - */ - function (value) { - this._ngbTooltip = value; - if (!value && this._windowRef) { - this.close(); - } - }, - enumerable: true, - configurable: true - }); - /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - */ - /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - * @param {?=} context - * @return {?} - */ - NgbTooltip.prototype.open = /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - * @param {?=} context - * @return {?} - */ - function (context) { - var _this = this; - if (!this._windowRef && this._ngbTooltip && !this.disableTooltip) { - this._windowRef = this._popupService.open(this._ngbTooltip, context); - this._windowRef.instance.tooltipClass = this.tooltipClass; - this._windowRef.instance.id = this._ngbTooltipWindowId; - this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbTooltipWindowId); - if (this.container === 'body') { - this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - // We need to detect changes, because we don't know where .open() might be called from. - // Ex. opening tooltip from one of lifecycle hooks that run after the CD - // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception - this._windowRef.changeDetectorRef.detectChanges(); - // We need to mark for check, because tooltip won't work inside the OnPush component. - // Ex. when we use expression like `{{ tooltip.isOpen() : 'opened' : 'closed' }}` - // inside the template of an OnPush component and we change the tooltip from - // open -> closed, the expression in question won't be updated unless we explicitly - // mark the parent component to be checked. - this._windowRef.changeDetectorRef.markForCheck(); - ngbAutoClose(this._ngZone, this._document, this.autoClose, (/** - * @return {?} - */ - function () { return _this.close(); }), this.hidden, [this._windowRef.location.nativeElement]); - this.shown.emit(); - } - }; - /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - */ - /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - NgbTooltip.prototype.close = /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - function () { - if (this._windowRef != null) { - this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby'); - this._popupService.close(); - this._windowRef = null; - this.hidden.emit(); - this._changeDetector.markForCheck(); - } - }; - /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - */ - /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - NgbTooltip.prototype.toggle = /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - * @return {?} - */ - function () { - if (this._windowRef) { - this.close(); - } - else { - this.open(); - } - }; - /** - * Returns `true`, if the popover is currently shown. - */ - /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - NgbTooltip.prototype.isOpen = /** - * Returns `true`, if the popover is currently shown. - * @return {?} - */ - function () { return this._windowRef != null; }; - /** - * @return {?} - */ - NgbTooltip.prototype.ngOnInit = /** - * @return {?} - */ - function () { - this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay); - }; - /** - * @return {?} - */ - NgbTooltip.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this.close(); - // This check is needed as it might happen that ngOnDestroy is called before ngOnInit - // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199 - if (this._unregisterListenersFn) { - this._unregisterListenersFn(); - } - this._zoneSubscription.unsubscribe(); - }; - NgbTooltip.decorators = [ - { type: Directive, args: [{ selector: '[ngbTooltip]', exportAs: 'ngbTooltip' },] } - ]; - /** @nocollapse */ - NgbTooltip.ctorParameters = function () { return [ - { type: ElementRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: ViewContainerRef }, - { type: NgbTooltipConfig }, - { type: NgZone }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } - ]; }; - NgbTooltip.propDecorators = { - autoClose: [{ type: Input }], - placement: [{ type: Input }], - triggers: [{ type: Input }], - container: [{ type: Input }], - disableTooltip: [{ type: Input }], - tooltipClass: [{ type: Input }], - openDelay: [{ type: Input }], - closeDelay: [{ type: Input }], - shown: [{ type: Output }], - hidden: [{ type: Output }], - ngbTooltip: [{ type: Input }] - }; - return NgbTooltip; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbTooltipModule = /** @class */ (function () { - function NgbTooltipModule() { - } - NgbTooltipModule.decorators = [ - { type: NgModule, args: [{ declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow] },] } - ]; - return NgbTooltipModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A component that helps with text highlighting. - * - * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify - * highlighting: - * - * Ex. `result="Alaska"` and `term="as"` will produce `Alaska`. - */ -var NgbHighlight = /** @class */ (function () { - function NgbHighlight() { - /** - * The CSS class for `` elements wrapping the `term` inside the `result`. - */ - this.highlightClass = 'ngb-highlight'; - } - /** - * @param {?} changes - * @return {?} - */ - NgbHighlight.prototype.ngOnChanges = /** - * @param {?} changes - * @return {?} - */ - function (changes) { - /** @type {?} */ - var result = toString(this.result); - /** @type {?} */ - var terms = Array.isArray(this.term) ? this.term : [this.term]; - /** @type {?} */ - var escapedTerms = terms.map((/** - * @param {?} term - * @return {?} - */ - function (term) { return regExpEscape(toString(term)); })).filter((/** - * @param {?} term - * @return {?} - */ - function (term) { return term; })); - this.parts = escapedTerms.length ? result.split(new RegExp("(" + escapedTerms.join('|') + ")", 'gmi')) : [result]; - }; - NgbHighlight.decorators = [ - { type: Component, args: [{ - selector: 'ngb-highlight', - changeDetection: ChangeDetectionStrategy.OnPush, - encapsulation: ViewEncapsulation.None, - template: "" + - "{{part}}{{part}}" + - "", - styles: [".ngb-highlight{font-weight:700}"] - }] } - ]; - NgbHighlight.propDecorators = { - highlightClass: [{ type: Input }], - result: [{ type: Input }], - term: [{ type: Input }] - }; - return NgbHighlight; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbTypeaheadWindow = /** @class */ (function () { - function NgbTypeaheadWindow() { - this.activeIdx = 0; - /** - * Flag indicating if the first row should be active initially - */ - this.focusFirst = true; - /** - * A function used to format a given result before display. This function should return a formatted string without any - * HTML markup - */ - this.formatter = toString; - /** - * Event raised when user selects a particular result row - */ - this.selectEvent = new EventEmitter(); - this.activeChangeEvent = new EventEmitter(); - } - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.hasActive = /** - * @return {?} - */ - function () { return this.activeIdx > -1 && this.activeIdx < this.results.length; }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.getActive = /** - * @return {?} - */ - function () { return this.results[this.activeIdx]; }; - /** - * @param {?} activeIdx - * @return {?} - */ - NgbTypeaheadWindow.prototype.markActive = /** - * @param {?} activeIdx - * @return {?} - */ - function (activeIdx) { - this.activeIdx = activeIdx; - this._activeChanged(); - }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.next = /** - * @return {?} - */ - function () { - if (this.activeIdx === this.results.length - 1) { - this.activeIdx = this.focusFirst ? (this.activeIdx + 1) % this.results.length : -1; - } - else { - this.activeIdx++; - } - this._activeChanged(); - }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.prev = /** - * @return {?} - */ - function () { - if (this.activeIdx < 0) { - this.activeIdx = this.results.length - 1; - } - else if (this.activeIdx === 0) { - this.activeIdx = this.focusFirst ? this.results.length - 1 : -1; - } - else { - this.activeIdx--; - } - this._activeChanged(); - }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.resetActive = /** - * @return {?} - */ - function () { - this.activeIdx = this.focusFirst ? 0 : -1; - this._activeChanged(); - }; - /** - * @param {?} item - * @return {?} - */ - NgbTypeaheadWindow.prototype.select = /** - * @param {?} item - * @return {?} - */ - function (item) { this.selectEvent.emit(item); }; - /** - * @return {?} - */ - NgbTypeaheadWindow.prototype.ngOnInit = /** - * @return {?} - */ - function () { this.resetActive(); }; - /** - * @private - * @return {?} - */ - NgbTypeaheadWindow.prototype._activeChanged = /** - * @private - * @return {?} - */ - function () { - this.activeChangeEvent.emit(this.activeIdx >= 0 ? this.id + '-' + this.activeIdx : undefined); - }; - NgbTypeaheadWindow.decorators = [ - { type: Component, args: [{ - selector: 'ngb-typeahead-window', - exportAs: 'ngbTypeaheadWindow', - host: { '(mousedown)': '$event.preventDefault()', 'class': 'dropdown-menu show', 'role': 'listbox', '[id]': 'id' }, - template: "\n \n \n \n \n \n \n " - }] } - ]; - NgbTypeaheadWindow.propDecorators = { - id: [{ type: Input }], - focusFirst: [{ type: Input }], - results: [{ type: Input }], - term: [{ type: Input }], - formatter: [{ type: Input }], - resultTemplate: [{ type: Input }], - selectEvent: [{ type: Output, args: ['select',] }], - activeChangeEvent: [{ type: Output, args: ['activeChange',] }] - }; - return NgbTypeaheadWindow; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var ARIA_LIVE_DELAY = new InjectionToken('live announcer delay', { providedIn: 'root', factory: ARIA_LIVE_DELAY_FACTORY }); -/** - * @return {?} - */ -function ARIA_LIVE_DELAY_FACTORY() { - return 100; -} -/** - * @param {?} document - * @param {?=} lazyCreate - * @return {?} - */ -function getLiveElement(document, lazyCreate) { - if (lazyCreate === void 0) { lazyCreate = false; } - /** @type {?} */ - var element = (/** @type {?} */ (document.body.querySelector('#ngb-live'))); - if (element == null && lazyCreate) { - element = document.createElement('div'); - element.setAttribute('id', 'ngb-live'); - element.setAttribute('aria-live', 'polite'); - element.setAttribute('aria-atomic', 'true'); - element.classList.add('sr-only'); - document.body.appendChild(element); - } - return element; -} -var Live = /** @class */ (function () { - function Live(_document, _delay) { - this._document = _document; - this._delay = _delay; - } - /** - * @return {?} - */ - Live.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - /** @type {?} */ - var element = getLiveElement(this._document); - if (element) { - element.parentElement.removeChild(element); - } - }; - /** - * @param {?} message - * @return {?} - */ - Live.prototype.say = /** - * @param {?} message - * @return {?} - */ - function (message) { - /** @type {?} */ - var element = getLiveElement(this._document, true); - /** @type {?} */ - var delay = this._delay; - element.textContent = ''; - /** @type {?} */ - var setText = (/** - * @return {?} - */ - function () { return element.textContent = message; }); - if (delay === null) { - setText(); - } - else { - setTimeout(setText, delay); - } - }; - Live.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ - Live.ctorParameters = function () { return [ - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: undefined, decorators: [{ type: Inject, args: [ARIA_LIVE_DELAY,] }] } - ]; }; - /** @nocollapse */ Live.ngInjectableDef = ɵɵdefineInjectable({ factory: function Live_Factory() { return new Live(ɵɵinject(DOCUMENT), ɵɵinject(ARIA_LIVE_DELAY)); }, token: Live, providedIn: "root" }); - return Live; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** - * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the typeaheads used in the application. - */ -var NgbTypeaheadConfig = /** @class */ (function () { - function NgbTypeaheadConfig() { - this.editable = true; - this.focusFirst = true; - this.showHint = false; - this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right']; - } - NgbTypeaheadConfig.decorators = [ - { type: Injectable, args: [{ providedIn: 'root' },] } - ]; - /** @nocollapse */ NgbTypeaheadConfig.ngInjectableDef = ɵɵdefineInjectable({ factory: function NgbTypeaheadConfig_Factory() { return new NgbTypeaheadConfig(); }, token: NgbTypeaheadConfig, providedIn: "root" }); - return NgbTypeaheadConfig; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_TYPEAHEAD_VALUE_ACCESSOR = { - provide: NG_VALUE_ACCESSOR, - useExisting: forwardRef((/** - * @return {?} - */ - function () { return NgbTypeahead; })), - multi: true -}; -/** @type {?} */ -var nextWindowId = 0; -/** - * A directive providing a simple way of creating powerful typeaheads from any text input. - */ -var NgbTypeahead = /** @class */ (function () { - function NgbTypeahead(_elementRef, _viewContainerRef, _renderer, _injector, componentFactoryResolver, config, ngZone, _live, _document, _ngZone, _changeDetector, _applicationRef) { - var _this = this; - this._elementRef = _elementRef; - this._viewContainerRef = _viewContainerRef; - this._renderer = _renderer; - this._injector = _injector; - this._live = _live; - this._document = _document; - this._ngZone = _ngZone; - this._changeDetector = _changeDetector; - this._applicationRef = _applicationRef; - this._closed$ = new Subject(); - /** - * The value for the `autocomplete` attribute for the `` element. - * - * Defaults to `"off"` to disable the native browser autocomplete, but you can override it if necessary. - * - * \@since 2.1.0 - */ - this.autocomplete = 'off'; - /** - * The preferred placement of the typeahead. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - this.placement = 'bottom-left'; - /** - * An event emitted right before an item is selected from the result list. - * - * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent). - */ - this.selectItem = new EventEmitter(); - this.popupId = "ngb-typeahead-" + nextWindowId++; - this._onTouched = (/** - * @return {?} - */ - function () { }); - this._onChange = (/** - * @param {?} _ - * @return {?} - */ - function (_) { }); - this.container = config.container; - this.editable = config.editable; - this.focusFirst = config.focusFirst; - this.showHint = config.showHint; - this.placement = config.placement; - this._valueChanges = fromEvent(_elementRef.nativeElement, 'input') - .pipe(map((/** - * @param {?} $event - * @return {?} - */ - function ($event) { return ((/** @type {?} */ ($event.target))).value; }))); - this._resubscribeTypeahead = new BehaviorSubject(null); - this._popupService = new PopupService(NgbTypeaheadWindow, _injector, _viewContainerRef, _renderer, componentFactoryResolver, _applicationRef); - this._zoneSubscription = ngZone.onStable.subscribe((/** - * @return {?} - */ - function () { - if (_this.isPopupOpen()) { - positionElements(_this._elementRef.nativeElement, _this._windowRef.location.nativeElement, _this.placement, _this.container === 'body'); - } - })); - } - /** - * @return {?} - */ - NgbTypeahead.prototype.ngOnInit = /** - * @return {?} - */ - function () { - var _this = this; - /** @type {?} */ - var inputValues$ = this._valueChanges.pipe(tap((/** - * @param {?} value - * @return {?} - */ - function (value) { - _this._inputValueBackup = _this.showHint ? value : null; - if (_this.editable) { - _this._onChange(value); - } - }))); - /** @type {?} */ - var results$ = inputValues$.pipe(this.ngbTypeahead); - /** @type {?} */ - var processedResults$ = results$.pipe(tap((/** - * @return {?} - */ - function () { - if (!_this.editable) { - _this._onChange(undefined); - } - }))); - /** @type {?} */ - var userInput$ = this._resubscribeTypeahead.pipe(switchMap((/** - * @return {?} - */ - function () { return processedResults$; }))); - this._subscription = this._subscribeToUserInput(userInput$); - }; - /** - * @return {?} - */ - NgbTypeahead.prototype.ngOnDestroy = /** - * @return {?} - */ - function () { - this._closePopup(); - this._unsubscribeFromUserInput(); - this._zoneSubscription.unsubscribe(); - }; - /** - * @param {?} fn - * @return {?} - */ - NgbTypeahead.prototype.registerOnChange = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onChange = fn; }; - /** - * @param {?} fn - * @return {?} - */ - NgbTypeahead.prototype.registerOnTouched = /** - * @param {?} fn - * @return {?} - */ - function (fn) { this._onTouched = fn; }; - /** - * @param {?} value - * @return {?} - */ - NgbTypeahead.prototype.writeValue = /** - * @param {?} value - * @return {?} - */ - function (value) { - this._writeInputValue(this._formatItemForInput(value)); - if (this.showHint) { - this._inputValueBackup = value; - } - }; - /** - * @param {?} isDisabled - * @return {?} - */ - NgbTypeahead.prototype.setDisabledState = /** - * @param {?} isDisabled - * @return {?} - */ - function (isDisabled) { - this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled); - }; - /** - * Dismisses typeahead popup window - */ - /** - * Dismisses typeahead popup window - * @return {?} - */ - NgbTypeahead.prototype.dismissPopup = /** - * Dismisses typeahead popup window - * @return {?} - */ - function () { - if (this.isPopupOpen()) { - this._resubscribeTypeahead.next(null); - this._closePopup(); - if (this.showHint && this._inputValueBackup !== null) { - this._writeInputValue(this._inputValueBackup); - } - this._changeDetector.markForCheck(); - } - }; - /** - * Returns true if the typeahead popup window is displayed - */ - /** - * Returns true if the typeahead popup window is displayed - * @return {?} - */ - NgbTypeahead.prototype.isPopupOpen = /** - * Returns true if the typeahead popup window is displayed - * @return {?} - */ - function () { return this._windowRef != null; }; - /** - * @return {?} - */ - NgbTypeahead.prototype.handleBlur = /** - * @return {?} - */ - function () { - this._resubscribeTypeahead.next(null); - this._onTouched(); - }; - /** - * @param {?} event - * @return {?} - */ - NgbTypeahead.prototype.handleKeyDown = /** - * @param {?} event - * @return {?} - */ - function (event) { - if (!this.isPopupOpen()) { - return; - } - // tslint:disable-next-line:deprecation - switch (event.which) { - case Key.ArrowDown: - event.preventDefault(); - this._windowRef.instance.next(); - this._showHint(); - break; - case Key.ArrowUp: - event.preventDefault(); - this._windowRef.instance.prev(); - this._showHint(); - break; - case Key.Enter: - case Key.Tab: - /** @type {?} */ - var result = this._windowRef.instance.getActive(); - if (isDefined(result)) { - event.preventDefault(); - event.stopPropagation(); - this._selectResult(result); - } - this._closePopup(); - break; - } - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._openPopup = /** - * @private - * @return {?} - */ - function () { - var _this = this; - if (!this.isPopupOpen()) { - this._inputValueBackup = this._elementRef.nativeElement.value; - this._windowRef = this._popupService.open(); - this._windowRef.instance.id = this.popupId; - this._windowRef.instance.selectEvent.subscribe((/** - * @param {?} result - * @return {?} - */ - function (result) { return _this._selectResultClosePopup(result); })); - this._windowRef.instance.activeChangeEvent.subscribe((/** - * @param {?} activeId - * @return {?} - */ - function (activeId) { return _this.activeDescendant = activeId; })); - if (this.container === 'body') { - window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement); - } - this._changeDetector.markForCheck(); - ngbAutoClose(this._ngZone, this._document, 'outside', (/** - * @return {?} - */ - function () { return _this.dismissPopup(); }), this._closed$, [this._elementRef.nativeElement, this._windowRef.location.nativeElement]); - } - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._closePopup = /** - * @private - * @return {?} - */ - function () { - this._closed$.next(); - this._popupService.close(); - this._windowRef = null; - this.activeDescendant = undefined; - }; - /** - * @private - * @param {?} result - * @return {?} - */ - NgbTypeahead.prototype._selectResult = /** - * @private - * @param {?} result - * @return {?} - */ - function (result) { - /** @type {?} */ - var defaultPrevented = false; - this.selectItem.emit({ item: result, preventDefault: (/** - * @return {?} - */ - function () { defaultPrevented = true; }) }); - this._resubscribeTypeahead.next(null); - if (!defaultPrevented) { - this.writeValue(result); - this._onChange(result); - } - }; - /** - * @private - * @param {?} result - * @return {?} - */ - NgbTypeahead.prototype._selectResultClosePopup = /** - * @private - * @param {?} result - * @return {?} - */ - function (result) { - this._selectResult(result); - this._closePopup(); - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._showHint = /** - * @private - * @return {?} - */ - function () { - if (this.showHint && this._windowRef.instance.hasActive() && this._inputValueBackup != null) { - /** @type {?} */ - var userInputLowerCase = this._inputValueBackup.toLowerCase(); - /** @type {?} */ - var formattedVal = this._formatItemForInput(this._windowRef.instance.getActive()); - if (userInputLowerCase === formattedVal.substr(0, this._inputValueBackup.length).toLowerCase()) { - this._writeInputValue(this._inputValueBackup + formattedVal.substr(this._inputValueBackup.length)); - this._elementRef.nativeElement['setSelectionRange'].apply(this._elementRef.nativeElement, [this._inputValueBackup.length, formattedVal.length]); - } - else { - this._writeInputValue(formattedVal); - } - } - }; - /** - * @private - * @param {?} item - * @return {?} - */ - NgbTypeahead.prototype._formatItemForInput = /** - * @private - * @param {?} item - * @return {?} - */ - function (item) { - return item != null && this.inputFormatter ? this.inputFormatter(item) : toString(item); - }; - /** - * @private - * @param {?} value - * @return {?} - */ - NgbTypeahead.prototype._writeInputValue = /** - * @private - * @param {?} value - * @return {?} - */ - function (value) { - this._renderer.setProperty(this._elementRef.nativeElement, 'value', toString(value)); - }; - /** - * @private - * @param {?} userInput$ - * @return {?} - */ - NgbTypeahead.prototype._subscribeToUserInput = /** - * @private - * @param {?} userInput$ - * @return {?} - */ - function (userInput$) { - var _this = this; - return userInput$.subscribe((/** - * @param {?} results - * @return {?} - */ - function (results) { - if (!results || results.length === 0) { - _this._closePopup(); - } - else { - _this._openPopup(); - _this._windowRef.instance.focusFirst = _this.focusFirst; - _this._windowRef.instance.results = results; - _this._windowRef.instance.term = _this._elementRef.nativeElement.value; - if (_this.resultFormatter) { - _this._windowRef.instance.formatter = _this.resultFormatter; - } - if (_this.resultTemplate) { - _this._windowRef.instance.resultTemplate = _this.resultTemplate; - } - _this._windowRef.instance.resetActive(); - // The observable stream we are subscribing to might have async steps - // and if a component containing typeahead is using the OnPush strategy - // the change detection turn wouldn't be invoked automatically. - _this._windowRef.changeDetectorRef.detectChanges(); - _this._showHint(); - } - // live announcer - /** @type {?} */ - var count = results ? results.length : 0; - _this._live.say(count === 0 ? 'No results available' : count + " result" + (count === 1 ? '' : 's') + " available"); - })); - }; - /** - * @private - * @return {?} - */ - NgbTypeahead.prototype._unsubscribeFromUserInput = /** - * @private - * @return {?} - */ - function () { - if (this._subscription) { - this._subscription.unsubscribe(); - } - this._subscription = null; - }; - NgbTypeahead.decorators = [ - { type: Directive, args: [{ - selector: 'input[ngbTypeahead]', - exportAs: 'ngbTypeahead', - host: { - '(blur)': 'handleBlur()', - '[class.open]': 'isPopupOpen()', - '(keydown)': 'handleKeyDown($event)', - '[autocomplete]': 'autocomplete', - 'autocapitalize': 'off', - 'autocorrect': 'off', - 'role': 'combobox', - 'aria-multiline': 'false', - '[attr.aria-autocomplete]': 'showHint ? "both" : "list"', - '[attr.aria-activedescendant]': 'activeDescendant', - '[attr.aria-owns]': 'isPopupOpen() ? popupId : null', - '[attr.aria-expanded]': 'isPopupOpen()' - }, - providers: [NGB_TYPEAHEAD_VALUE_ACCESSOR] - },] } - ]; - /** @nocollapse */ - NgbTypeahead.ctorParameters = function () { return [ - { type: ElementRef }, - { type: ViewContainerRef }, - { type: Renderer2 }, - { type: Injector }, - { type: ComponentFactoryResolver }, - { type: NgbTypeaheadConfig }, - { type: NgZone }, - { type: Live }, - { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, - { type: NgZone }, - { type: ChangeDetectorRef }, - { type: ApplicationRef } - ]; }; - NgbTypeahead.propDecorators = { - autocomplete: [{ type: Input }], - container: [{ type: Input }], - editable: [{ type: Input }], - focusFirst: [{ type: Input }], - inputFormatter: [{ type: Input }], - ngbTypeahead: [{ type: Input }], - resultFormatter: [{ type: Input }], - resultTemplate: [{ type: Input }], - showHint: [{ type: Input }], - placement: [{ type: Input }], - selectItem: [{ type: Output }] - }; - return NgbTypeahead; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -var NgbTypeaheadModule = /** @class */ (function () { - function NgbTypeaheadModule() { - } - NgbTypeaheadModule.decorators = [ - { type: NgModule, args: [{ - declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow], - exports: [NgbTypeahead, NgbHighlight], - imports: [CommonModule], - entryComponents: [NgbTypeaheadWindow] - },] } - ]; - return NgbTypeaheadModule; -}()); - -/** - * @fileoverview added by tsickle - * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc - */ -/** @type {?} */ -var NGB_MODULES = [ - SbCardModule, NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule, - NgbDropdownModule, NgbModalModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule, - NgbTabsetModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule -]; -var NgbModule = /** @class */ (function () { - function NgbModule() { - } - NgbModule.decorators = [ - { type: NgModule, args: [{ imports: NGB_MODULES, exports: NGB_MODULES },] } - ]; - return NgbModule; -}()); - -export { ModalDismissReasons, NgbAccordion, NgbAccordionConfig, NgbAccordionModule, NgbActiveModal, NgbAlert, NgbAlertConfig, NgbAlertModule, NgbButtonLabel, NgbButtonsModule, NgbCalendar, NgbCalendarGregorian, NgbCalendarHebrew, NgbCalendarIslamicCivil, NgbCalendarIslamicUmalqura, NgbCalendarPersian, NgbCarousel, NgbCarouselConfig, NgbCarouselModule, NgbCheckBox, NgbCollapse, NgbCollapseModule, NgbDate, NgbDateAdapter, NgbDateNativeAdapter, NgbDateNativeUTCAdapter, NgbDateParserFormatter, NgbDatepicker, NgbDatepickerConfig, NgbDatepickerI18n, NgbDatepickerI18nHebrew, NgbDatepickerModule, NgbDropdown, NgbDropdownAnchor, NgbDropdownConfig, NgbDropdownItem, NgbDropdownMenu, NgbDropdownModule, NgbDropdownToggle, NgbHighlight, NgbInputDatepicker, NgbModal, NgbModalConfig, NgbModalModule, NgbModalRef, NgbModule, NgbPagination, NgbPaginationConfig, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationModule, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious, NgbPanel, NgbPanelContent, NgbPanelHeader, NgbPanelTitle, NgbPanelToggle, NgbPopover, NgbPopoverConfig, NgbPopoverModule, NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule, NgbRadio, NgbRadioGroup, NgbRating, NgbRatingConfig, NgbRatingModule, NgbSlide, NgbSlideEventDirection, NgbSlideEventSource, NgbTab, NgbTabContent, NgbTabTitle, NgbTabset, NgbTabsetConfig, NgbTabsetModule, NgbTimeAdapter, NgbTimepicker, NgbTimepickerConfig, NgbTimepickerI18n, NgbTimepickerModule, NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule, NgbTooltip, NgbTooltipConfig, NgbTooltipModule, NgbTypeahead, NgbTypeaheadConfig, NgbTypeaheadModule, SbCard, SbCardConfig, SbCardModule, NGB_CAROUSEL_DIRECTIVES as ɵa, NGB_DATEPICKER_CALENDAR_FACTORY as ɵb, ARIA_LIVE_DELAY as ɵba, ARIA_LIVE_DELAY_FACTORY as ɵbb, Live as ɵbc, NgbCalendarHijri as ɵbd, ContentRef as ɵbe, NgbDatepickerMonthView as ɵc, NgbDatepickerDayView as ɵd, NgbDatepickerNavigation as ɵe, NgbDatepickerNavigationSelect as ɵf, NGB_DATEPICKER_18N_FACTORY as ɵg, NgbDatepickerI18nDefault as ɵh, NGB_DATEPICKER_DATE_ADAPTER_FACTORY as ɵi, NgbDateStructAdapter as ɵj, NGB_DATEPICKER_PARSER_FORMATTER_FACTORY as ɵk, NgbDateISOParserFormatter as ɵl, NgbNavbar as ɵm, NgbPopoverWindow as ɵn, NGB_DATEPICKER_TIME_ADAPTER_FACTORY as ɵo, NgbTimeStructAdapter as ɵp, NGB_TIMEPICKER_I18N_FACTORY as ɵq, NgbTimepickerI18nDefault as ɵr, NgbTooltipWindow as ɵs, NgbTypeaheadWindow as ɵt, NgbDatepickerService as ɵu, NgbDatepickerKeyMapService as ɵv, NgbModalBackdrop as ɵw, NgbModalWindow as ɵx, NgbModalStack as ɵy, ScrollBar as ɵz }; -//# sourceMappingURL=ng-bootstrap.js.map diff --git a/dist/ng-bootstrap/fesm5/ng-bootstrap.js.map b/dist/ng-bootstrap/fesm5/ng-bootstrap.js.map deleted file mode 100644 index a37aa7f..0000000 --- a/dist/ng-bootstrap/fesm5/ng-bootstrap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ng-bootstrap.js","sources":["ng://@sunbird-ed/sunbird-ui-components/card/card-config.ts","ng://@sunbird-ed/sunbird-ui-components/card/card.ts","ng://@sunbird-ed/sunbird-ui-components/card/card.module.ts","ng://@sunbird-ed/sunbird-ui-components/util/util.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion-config.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion.ts","ng://@sunbird-ed/sunbird-ui-components/accordion/accordion.module.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert-config.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert.ts","ng://@sunbird-ed/sunbird-ui-components/alert/alert.module.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/label.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/checkbox.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/radio.ts","ng://@sunbird-ed/sunbird-ui-components/buttons/buttons.module.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel-config.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel.ts","ng://@sunbird-ed/sunbird-ui-components/carousel/carousel.module.ts","ng://@sunbird-ed/sunbird-ui-components/collapse/collapse.ts","ng://@sunbird-ed/sunbird-ui-components/collapse/collapse.module.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-date.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-calendar.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-tools.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-i18n.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-service.ts","ng://@sunbird-ed/sunbird-ui-components/util/key.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-keymap-service.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-view-model.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-config.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-month-view.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-navigation.ts","ng://@sunbird-ed/sunbird-ui-components/util/autoclose.ts","ng://@sunbird-ed/sunbird-ui-components/util/focus-trap.ts","ng://@sunbird-ed/sunbird-ui-components/util/positioning.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/ngb-date-parser-formatter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-input.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-day-view.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker-navigation-select.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-hijri.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-islamic-civil.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hijri/ngb-calendar-islamic-umalqura.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/jalali/jalali.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/jalali/ngb-calendar-persian.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/ngb-calendar-hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/hebrew/datepicker-i18n-hebrew.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-native-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/adapters/ngb-date-native-utc-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/datepicker/datepicker.module.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown-config.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown.ts","ng://@sunbird-ed/sunbird-ui-components/dropdown/dropdown.module.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-config.ts","ng://@sunbird-ed/sunbird-ui-components/util/popup.ts","ng://@sunbird-ed/sunbird-ui-components/util/scrollbar.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-backdrop.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-ref.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-dismiss-reasons.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-window.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal-stack.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal.ts","ng://@sunbird-ed/sunbird-ui-components/modal/modal.module.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination-config.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination.ts","ng://@sunbird-ed/sunbird-ui-components/pagination/pagination.module.ts","ng://@sunbird-ed/sunbird-ui-components/util/triggers.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover-config.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover.ts","ng://@sunbird-ed/sunbird-ui-components/popover/popover.module.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar-config.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar.ts","ng://@sunbird-ed/sunbird-ui-components/progressbar/progressbar.module.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating-config.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating.ts","ng://@sunbird-ed/sunbird-ui-components/rating/rating.module.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset-config.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset.ts","ng://@sunbird-ed/sunbird-ui-components/tabset/tabset.module.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/ngb-time.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker-config.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/ngb-time-adapter.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker-i18n.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker.ts","ng://@sunbird-ed/sunbird-ui-components/timepicker/timepicker.module.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast-config.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast.ts","ng://@sunbird-ed/sunbird-ui-components/toast/toast.module.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip-config.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip.ts","ng://@sunbird-ed/sunbird-ui-components/tooltip/tooltip.module.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/highlight.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead-window.ts","ng://@sunbird-ed/sunbird-ui-components/util/accessibility/live.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead-config.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead.ts","ng://@sunbird-ed/sunbird-ui-components/typeahead/typeahead.module.ts","ng://@sunbird-ed/sunbird-ui-components/index.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [SbCard](#/components/alert/api#SbCard) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all alerts used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class SbCardConfig {\n dismissible = true;\n type = 'warning';\n}\n","import {\n Component,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n Renderer2,\n ElementRef,\n OnChanges,\n OnInit,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {SbCardConfig} from './card-config';\n\n/**\n * Alert is a component to provide contextual feedback messages for user.\n *\n * It supports several alert types and can be dismissed.\n */\n@Component({\n selector: 'sb-card',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible'},\n template: `\n \n \n `,\n styleUrls: ['./card.scss']\n})\nexport class SbCard implements OnInit,\n OnChanges {\n /**\n * If `true`, alert can be dismissed by the user.\n *\n * The close button (×) will be displayed and you can be notified\n * of the event with the `(close)` output.\n */\n @Input() dismissible: boolean;\n /**\n * Type of the alert.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n /**\n * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts.\n */\n @Output() close = new EventEmitter();\n\n constructor(config: SbCardConfig, private _renderer: Renderer2, private _element: ElementRef) {\n this.dismissible = config.dismissible;\n this.type = config.type;\n }\n\n closeHandler() { this.close.emit(null); }\n\n ngOnChanges(changes: SimpleChanges) {\n const typeChange = changes['type'];\n if (typeChange && !typeChange.firstChange) {\n this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`);\n this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`);\n }\n }\n\n ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {SbCard} from './card';\n\nexport {SbCard} from './card';\nexport {SbCardConfig} from './card-config';\n\n@NgModule({declarations: [SbCard], exports: [SbCard], imports: [CommonModule], entryComponents: [SbCard]})\nexport class SbCardModule {\n}\n","export function toInteger(value: any): number {\n return parseInt(`${value}`, 10);\n}\n\nexport function toString(value: any): string {\n return (value !== undefined && value !== null) ? `${value}` : '';\n}\n\nexport function getValueInRange(value: number, max: number, min = 0): number {\n return Math.max(Math.min(value, max), min);\n}\n\nexport function isString(value: any): value is string {\n return typeof value === 'string';\n}\n\nexport function isNumber(value: any): value is number {\n return !isNaN(toInteger(value));\n}\n\nexport function isInteger(value: any): value is number {\n return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;\n}\n\nexport function isDefined(value: any): boolean {\n return value !== undefined && value !== null;\n}\n\nexport function padNumber(value: number) {\n if (isNumber(value)) {\n return `0${value}`.slice(-2);\n } else {\n return '';\n }\n}\n\nexport function regExpEscape(text) {\n return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n}\n\nexport function hasClassName(element: any, className: string): boolean {\n return element && element.className && element.className.split &&\n element.className.split(/\\s+/).indexOf(className) >= 0;\n}\n\nif (typeof Element !== 'undefined' && !Element.prototype.closest) {\n // Polyfill for ie10+\n\n if (!Element.prototype.matches) {\n // IE uses the non-standard name: msMatchesSelector\n Element.prototype.matches = (Element.prototype as any).msMatchesSelector || Element.prototype.webkitMatchesSelector;\n }\n\n Element.prototype.closest = function(s: string) {\n let el = this;\n if (!document.documentElement.contains(el)) {\n return null;\n }\n do {\n if (el.matches(s)) {\n return el;\n }\n el = el.parentElement || el.parentNode;\n } while (el !== null && el.nodeType === 1);\n return null;\n };\n}\n\nexport function closest(element: HTMLElement, selector): HTMLElement {\n if (!selector) {\n return null;\n }\n\n return element.closest(selector);\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all accordions used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbAccordionConfig {\n closeOthers = false;\n type: string;\n}\n","import {\n AfterContentChecked,\n Component,\n ContentChildren,\n Directive,\n EventEmitter,\n Host,\n Input,\n Optional,\n Output,\n QueryList,\n TemplateRef\n} from '@angular/core';\n\nimport {isString} from '../util/util';\n\nimport {NgbAccordionConfig} from './accordion-config';\n\nlet nextId = 0;\n\n/**\n * The context for the [NgbPanelHeader](#/components/accordion/api#NgbPanelHeader) template\n *\n * @since 4.1.0\n */\nexport interface NgbPanelHeaderContext {\n /**\n * `True` if current panel is opened\n */\n opened: boolean;\n}\n\n/**\n * A directive that wraps an accordion panel header with any HTML markup and a toggling button\n * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle).\n * See the [header customization demo](#/components/accordion/examples#header) for more details.\n *\n * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title.\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPanelHeader]'})\nexport class NgbPanelHeader {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps only the panel title with HTML markup inside.\n *\n * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header.\n */\n@Directive({selector: 'ng-template[ngbPanelTitle]'})\nexport class NgbPanelTitle {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps the accordion panel content.\n */\n@Directive({selector: 'ng-template[ngbPanelContent]'})\nexport class NgbPanelContent {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive that wraps an individual accordion panel with title and collapsible content.\n */\n@Directive({selector: 'ngb-panel'})\nexport class NgbPanel implements AfterContentChecked {\n /**\n * If `true`, the panel is disabled an can't be toggled.\n */\n @Input() disabled = false;\n\n /**\n * An optional id for the panel that must be unique on the page.\n *\n * If not provided, it will be auto-generated in the `ngb-panel-xxx` format.\n */\n @Input() id = `ngb-panel-${nextId++}`;\n\n isOpen = false;\n\n /**\n * The panel title.\n *\n * You can alternatively use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to set panel title.\n */\n @Input() title: string;\n\n /**\n * Type of the current panel.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n\n titleTpl: NgbPanelTitle | null;\n headerTpl: NgbPanelHeader | null;\n contentTpl: NgbPanelContent | null;\n\n @ContentChildren(NgbPanelTitle, {descendants: false}) titleTpls: QueryList;\n @ContentChildren(NgbPanelHeader, {descendants: false}) headerTpls: QueryList;\n @ContentChildren(NgbPanelContent, {descendants: false}) contentTpls: QueryList;\n\n ngAfterContentChecked() {\n // We are using @ContentChildren instead of @ContentChild as in the Angular version being used\n // only @ContentChildren allows us to specify the {descendants: false} option.\n // Without {descendants: false} we are hitting bugs described in:\n // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240\n this.titleTpl = this.titleTpls.first;\n this.headerTpl = this.headerTpls.first;\n this.contentTpl = this.contentTpls.first;\n }\n}\n\n/**\n * An event emitted right before toggling an accordion panel.\n */\nexport interface NgbPanelChangeEvent {\n /**\n * The id of the accordion panel that is being toggled.\n */\n panelId: string;\n\n /**\n * The next state of the panel.\n *\n * `true` if it will be opened, `false` if closed.\n */\n nextState: boolean;\n\n /**\n * Calling this function will prevent panel toggling.\n */\n preventDefault: () => void;\n}\n\n/**\n * Accordion is a collection of collapsible panels (bootstrap cards).\n *\n * It can ensure only one panel is opened at a time and allows to customize panel\n * headers.\n */\n@Component({\n selector: 'ngb-accordion',\n exportAs: 'ngbAccordion',\n host: {'class': 'accordion', 'role': 'tablist', '[attr.aria-multiselectable]': '!closeOtherPanels'},\n template: `\n \n \n \n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n `\n})\nexport class NgbAccordion implements AfterContentChecked {\n @ContentChildren(NgbPanel) panels: QueryList;\n\n /**\n * An array or comma separated strings of panel ids that should be opened **initially**.\n *\n * For subsequent changes use methods like `expand()`, `collapse()`, etc. and\n * the `(panelChange)` event.\n */\n @Input() activeIds: string | string[] = [];\n\n /**\n * If `true`, only one panel could be opened at a time.\n *\n * Opening a new panel will close others.\n */\n @Input('closeOthers') closeOtherPanels: boolean;\n\n /**\n * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed.\n */\n @Input() destroyOnHide = true;\n\n /**\n * Type of panels.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n\n /**\n * Event emitted right before the panel toggle happens.\n *\n * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details.\n */\n @Output() panelChange = new EventEmitter();\n\n constructor(config: NgbAccordionConfig) {\n this.type = config.type;\n this.closeOtherPanels = config.closeOthers;\n }\n\n /**\n * Checks if a panel with a given id is expanded.\n */\n isExpanded(panelId: string): boolean { return this.activeIds.indexOf(panelId) > -1; }\n\n /**\n * Expands a panel with a given id.\n *\n * Has no effect if the panel is already expanded or disabled.\n */\n expand(panelId: string): void { this._changeOpenState(this._findPanelById(panelId), true); }\n\n /**\n * Expands all panels, if `[closeOthers]` is `false`.\n *\n * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened.\n */\n expandAll(): void {\n if (this.closeOtherPanels) {\n if (this.activeIds.length === 0 && this.panels.length) {\n this._changeOpenState(this.panels.first, true);\n }\n } else {\n this.panels.forEach(panel => this._changeOpenState(panel, true));\n }\n }\n\n /**\n * Collapses a panel with the given id.\n *\n * Has no effect if the panel is already collapsed or disabled.\n */\n collapse(panelId: string) { this._changeOpenState(this._findPanelById(panelId), false); }\n\n /**\n * Collapses all opened panels.\n */\n collapseAll() {\n this.panels.forEach((panel) => { this._changeOpenState(panel, false); });\n }\n\n /**\n * Toggles a panel with the given id.\n *\n * Has no effect if the panel is disabled.\n */\n toggle(panelId: string) {\n const panel = this._findPanelById(panelId);\n if (panel) {\n this._changeOpenState(panel, !panel.isOpen);\n }\n }\n\n ngAfterContentChecked() {\n // active id updates\n if (isString(this.activeIds)) {\n this.activeIds = this.activeIds.split(/\\s*,\\s*/);\n }\n\n // update panels open states\n this.panels.forEach(panel => panel.isOpen = !panel.disabled && this.activeIds.indexOf(panel.id) > -1);\n\n // closeOthers updates\n if (this.activeIds.length > 1 && this.closeOtherPanels) {\n this._closeOthers(this.activeIds[0]);\n this._updateActiveIds();\n }\n }\n\n private _changeOpenState(panel: NgbPanel, nextState: boolean) {\n if (panel && !panel.disabled && panel.isOpen !== nextState) {\n let defaultPrevented = false;\n\n this.panelChange.emit(\n {panelId: panel.id, nextState: nextState, preventDefault: () => { defaultPrevented = true; }});\n\n if (!defaultPrevented) {\n panel.isOpen = nextState;\n\n if (nextState && this.closeOtherPanels) {\n this._closeOthers(panel.id);\n }\n this._updateActiveIds();\n }\n }\n }\n\n private _closeOthers(panelId: string) {\n this.panels.forEach(panel => {\n if (panel.id !== panelId) {\n panel.isOpen = false;\n }\n });\n }\n\n private _findPanelById(panelId: string): NgbPanel | null { return this.panels.find(p => p.id === panelId); }\n\n private _updateActiveIds() {\n this.activeIds = this.panels.filter(panel => panel.isOpen && !panel.disabled).map(panel => panel.id);\n }\n}\n\n/**\n * A directive to put on a button that toggles panel opening and closing.\n *\n * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader)\n *\n * @since 4.1.0\n */\n@Directive({\n selector: 'button[ngbPanelToggle]',\n host: {\n 'type': 'button',\n '[disabled]': 'panel.disabled',\n '[class.collapsed]': '!panel.isOpen',\n '[attr.aria-expanded]': 'panel.isOpen',\n '[attr.aria-controls]': 'panel.id',\n '(click)': 'accordion.toggle(panel.id)'\n }\n})\nexport class NgbPanelToggle {\n @Input()\n set ngbPanelToggle(panel: NgbPanel) {\n if (panel) {\n this.panel = panel;\n }\n }\n\n constructor(public accordion: NgbAccordion, @Optional() @Host() public panel: NgbPanel) {}\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle} from './accordion';\n\nexport {\n NgbAccordion,\n NgbPanel,\n NgbPanelTitle,\n NgbPanelContent,\n NgbPanelChangeEvent,\n NgbPanelHeader,\n NgbPanelHeaderContext,\n NgbPanelToggle\n} from './accordion';\nexport {NgbAccordionConfig} from './accordion-config';\n\nconst NGB_ACCORDION_DIRECTIVES =\n [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle];\n\n@NgModule({declarations: NGB_ACCORDION_DIRECTIVES, exports: NGB_ACCORDION_DIRECTIVES, imports: [CommonModule]})\nexport class NgbAccordionModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all alerts used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbAlertConfig {\n dismissible = true;\n type = 'warning';\n}\n","import {\n Component,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n Renderer2,\n ElementRef,\n OnChanges,\n OnInit,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {NgbAlertConfig} from './alert-config';\n\n/**\n * Alert is a component to provide contextual feedback messages for user.\n *\n * It supports several alert types and can be dismissed.\n */\n@Component({\n selector: 'ngb-alert',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'role': 'alert', 'class': 'alert', '[class.alert-dismissible]': 'dismissible'},\n template: `\n \n \n `,\n styleUrls: ['./alert.scss']\n})\nexport class NgbAlert implements OnInit,\n OnChanges {\n /**\n * If `true`, alert can be dismissed by the user.\n *\n * The close button (×) will be displayed and you can be notified\n * of the event with the `(close)` output.\n */\n @Input() dismissible: boolean;\n /**\n * Type of the alert.\n *\n * Bootstrap provides styles for the following types: `'success'`, `'info'`, `'warning'`, `'danger'`, `'primary'`,\n * `'secondary'`, `'light'` and `'dark'`.\n */\n @Input() type: string;\n /**\n * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts.\n */\n @Output() close = new EventEmitter();\n\n constructor(config: NgbAlertConfig, private _renderer: Renderer2, private _element: ElementRef) {\n this.dismissible = config.dismissible;\n this.type = config.type;\n }\n\n closeHandler() { this.close.emit(null); }\n\n ngOnChanges(changes: SimpleChanges) {\n const typeChange = changes['type'];\n if (typeChange && !typeChange.firstChange) {\n this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`);\n this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`);\n }\n }\n\n ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbAlert} from './alert';\n\nexport {NgbAlert} from './alert';\nexport {NgbAlertConfig} from './alert-config';\n\n@NgModule({declarations: [NgbAlert], exports: [NgbAlert], imports: [CommonModule], entryComponents: [NgbAlert]})\nexport class NgbAlertModule {\n}\n","import {Directive} from '@angular/core';\n\n@Directive({\n selector: '[ngbButtonLabel]',\n host:\n {'[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused'}\n})\nexport class NgbButtonLabel {\n active: boolean;\n disabled: boolean;\n focused: boolean;\n}\n","import {ChangeDetectorRef, Directive, forwardRef, Input} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {NgbButtonLabel} from './label';\n\nconst NGB_CHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbCheckBox),\n multi: true\n};\n\n\n/**\n * Allows to easily create Bootstrap-style checkbox buttons.\n *\n * Integrates with forms, so the value of a checked button is bound to the underlying form control\n * either in a reactive or template-driven way.\n */\n@Directive({\n selector: '[ngbButton][type=checkbox]',\n host: {\n 'autocomplete': 'off',\n '[checked]': 'checked',\n '[disabled]': 'disabled',\n '(change)': 'onInputChange($event)',\n '(focus)': 'focused = true',\n '(blur)': 'focused = false'\n },\n providers: [NGB_CHECKBOX_VALUE_ACCESSOR]\n})\nexport class NgbCheckBox implements ControlValueAccessor {\n checked;\n\n /**\n * If `true`, the checkbox button will be disabled\n */\n @Input() disabled = false;\n\n /**\n * The form control value when the checkbox is checked.\n */\n @Input() valueChecked = true;\n\n /**\n * The form control value when the checkbox is unchecked.\n */\n @Input() valueUnChecked = false;\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n set focused(isFocused: boolean) {\n this._label.focused = isFocused;\n if (!isFocused) {\n this.onTouched();\n }\n }\n\n constructor(private _label: NgbButtonLabel, private _cd: ChangeDetectorRef) {}\n\n onInputChange($event) {\n const modelToPropagate = $event.target.checked ? this.valueChecked : this.valueUnChecked;\n this.onChange(modelToPropagate);\n this.onTouched();\n this.writeValue(modelToPropagate);\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n this._label.disabled = isDisabled;\n }\n\n writeValue(value) {\n this.checked = value === this.valueChecked;\n this._label.active = this.checked;\n\n // label won't be updated, if it is inside the OnPush component when [ngModel] changes\n this._cd.markForCheck();\n }\n}\n","import {ChangeDetectorRef, Directive, ElementRef, forwardRef, Input, OnDestroy, Renderer2} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {NgbButtonLabel} from './label';\n\nconst NGB_RADIO_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbRadioGroup),\n multi: true\n};\n\nlet nextId = 0;\n\n/**\n * Allows to easily create Bootstrap-style radio buttons.\n *\n * Integrates with forms, so the value of a checked button is bound to the underlying form control\n * either in a reactive or template-driven way.\n */\n@Directive({selector: '[ngbRadioGroup]', host: {'role': 'radiogroup'}, providers: [NGB_RADIO_VALUE_ACCESSOR]})\nexport class NgbRadioGroup implements ControlValueAccessor {\n private _radios: Set = new Set();\n private _value = null;\n private _disabled: boolean;\n\n get disabled() { return this._disabled; }\n set disabled(isDisabled: boolean) { this.setDisabledState(isDisabled); }\n\n /**\n * Name of the radio group applied to radio input elements.\n *\n * Will be applied to all radio input elements inside the group,\n * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves.\n *\n * If not provided, will be generated in the `ngb-radio-xx` format.\n */\n @Input() name = `ngb-radio-${nextId++}`;\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n onRadioChange(radio: NgbRadio) {\n this.writeValue(radio.value);\n this.onChange(radio.value);\n }\n\n onRadioValueUpdate() { this._updateRadiosValue(); }\n\n register(radio: NgbRadio) { this._radios.add(radio); }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean): void {\n this._disabled = isDisabled;\n this._updateRadiosDisabled();\n }\n\n unregister(radio: NgbRadio) { this._radios.delete(radio); }\n\n writeValue(value) {\n this._value = value;\n this._updateRadiosValue();\n }\n\n private _updateRadiosValue() { this._radios.forEach((radio) => radio.updateValue(this._value)); }\n private _updateRadiosDisabled() { this._radios.forEach((radio) => radio.updateDisabled()); }\n}\n\n\n/**\n * A directive that marks an input of type \"radio\" as a part of the\n * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup).\n */\n@Directive({\n selector: '[ngbButton][type=radio]',\n host: {\n '[checked]': 'checked',\n '[disabled]': 'disabled',\n '[name]': 'nameAttr',\n '(change)': 'onChange()',\n '(focus)': 'focused = true',\n '(blur)': 'focused = false'\n }\n})\nexport class NgbRadio implements OnDestroy {\n private _checked: boolean;\n private _disabled: boolean;\n private _value: any = null;\n\n /**\n * The value for the 'name' property of the input element.\n *\n * All inputs of the radio group should have the same name. If not specified,\n * the name of the enclosing group is used.\n */\n @Input() name: string;\n\n /**\n * The form control value when current radio button is checked.\n */\n @Input('value')\n set value(value: any) {\n this._value = value;\n const stringValue = value ? value.toString() : '';\n this._renderer.setProperty(this._element.nativeElement, 'value', stringValue);\n this._group.onRadioValueUpdate();\n }\n\n /**\n * If `true`, current radio button will be disabled.\n */\n @Input('disabled')\n set disabled(isDisabled: boolean) {\n this._disabled = isDisabled !== false;\n this.updateDisabled();\n }\n\n set focused(isFocused: boolean) {\n if (this._label) {\n this._label.focused = isFocused;\n }\n if (!isFocused) {\n this._group.onTouched();\n }\n }\n\n get checked() { return this._checked; }\n\n get disabled() { return this._group.disabled || this._disabled; }\n\n get value() { return this._value; }\n\n get nameAttr() { return this.name || this._group.name; }\n\n constructor(\n private _group: NgbRadioGroup, private _label: NgbButtonLabel, private _renderer: Renderer2,\n private _element: ElementRef, private _cd: ChangeDetectorRef) {\n this._group.register(this);\n this.updateDisabled();\n }\n\n ngOnDestroy() { this._group.unregister(this); }\n\n onChange() { this._group.onRadioChange(this); }\n\n updateValue(value) {\n // label won't be updated, if it is inside the OnPush component when [ngModel] changes\n if (this.value !== value) {\n this._cd.markForCheck();\n }\n\n this._checked = this.value === value;\n this._label.active = this._checked;\n }\n\n updateDisabled() { this._label.disabled = this.disabled; }\n}\n","import {NgModule} from '@angular/core';\nimport {NgbButtonLabel} from './label';\nimport {NgbCheckBox} from './checkbox';\nimport {NgbRadio, NgbRadioGroup} from './radio';\n\nexport {NgbButtonLabel} from './label';\nexport {NgbCheckBox} from './checkbox';\nexport {NgbRadio, NgbRadioGroup} from './radio';\n\n\nconst NGB_BUTTON_DIRECTIVES = [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio];\n\n@NgModule({declarations: NGB_BUTTON_DIRECTIVES, exports: NGB_BUTTON_DIRECTIVES})\nexport class NgbButtonsModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component.\n *\n * You can inject this service, typically in your root component, and customize its properties\n * to provide default values for all carousels used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbCarouselConfig {\n interval = 5000;\n wrap = true;\n keyboard = true;\n pauseOnHover = true;\n showNavigationArrows = true;\n showNavigationIndicators = true;\n}\n","import {\n AfterContentChecked,\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n Directive,\n EventEmitter,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n PLATFORM_ID,\n QueryList,\n TemplateRef,\n HostListener\n} from '@angular/core';\nimport {isPlatformBrowser} from '@angular/common';\n\nimport {NgbCarouselConfig} from './carousel-config';\n\nimport {Subject, timer, BehaviorSubject, combineLatest, NEVER} from 'rxjs';\nimport {startWith, map, switchMap, takeUntil, distinctUntilChanged} from 'rxjs/operators';\n\nlet nextId = 0;\n\n/**\n * A directive that wraps the individual carousel slide.\n */\n@Directive({selector: 'ng-template[ngbSlide]'})\nexport class NgbSlide {\n /**\n * Slide id that must be unique for the entire document.\n *\n * If not provided, will be generated in the `ngb-slide-xx` format.\n */\n @Input() id = `ngb-slide-${nextId++}`;\n constructor(public tplRef: TemplateRef) {}\n}\n\n/**\n * Carousel is a component to easily create and control slideshows.\n *\n * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API.\n */\n@Component({\n selector: 'ngb-carousel',\n exportAs: 'ngbCarousel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'carousel slide',\n '[style.display]': '\"block\"',\n 'tabIndex': '0',\n '(keydown.arrowLeft)': 'keyboard && prev(NgbSlideEventSource.ARROW_LEFT)',\n '(keydown.arrowRight)': 'keyboard && next(NgbSlideEventSource.ARROW_RIGHT)'\n },\n template: `\n
    \n
  1. \n
\n
\n
\n \n
\n
\n \n \n Previous\n \n \n \n Next\n \n `\n})\nexport class NgbCarousel implements AfterContentChecked,\n AfterContentInit, OnDestroy {\n @ContentChildren(NgbSlide) slides: QueryList;\n\n public NgbSlideEventSource = NgbSlideEventSource;\n\n private _destroy$ = new Subject();\n private _interval$ = new BehaviorSubject(0);\n private _mouseHover$ = new BehaviorSubject(false);\n private _pauseOnHover$ = new BehaviorSubject(false);\n private _pause$ = new BehaviorSubject(false);\n private _wrap$ = new BehaviorSubject(false);\n\n /**\n * The slide id that should be displayed **initially**.\n *\n * For subsequent interactions use methods `select()`, `next()`, etc. and the `(slide)` output.\n */\n @Input() activeId: string;\n\n /**\n * Time in milliseconds before the next slide is shown.\n */\n @Input()\n set interval(value: number) {\n this._interval$.next(value);\n }\n\n get interval() { return this._interval$.value; }\n\n /**\n * If `true`, will 'wrap' the carousel by switching from the last slide back to the first.\n */\n @Input()\n set wrap(value: boolean) {\n this._wrap$.next(value);\n }\n\n get wrap() { return this._wrap$.value; }\n\n /**\n * If `true`, allows to interact with carousel using keyboard 'arrow left' and 'arrow right'.\n */\n @Input() keyboard: boolean;\n\n /**\n * If `true`, will pause slide switching when mouse cursor hovers the slide.\n *\n * @since 2.2.0\n */\n @Input()\n set pauseOnHover(value: boolean) {\n this._pauseOnHover$.next(value);\n }\n\n get pauseOnHover() { return this._pauseOnHover$.value; }\n\n /**\n * If `true`, 'previous' and 'next' navigation arrows will be visible on the slide.\n *\n * @since 2.2.0\n */\n @Input() showNavigationArrows: boolean;\n\n /**\n * If `true`, navigation indicators at the bottom of the slide will be visible.\n *\n * @since 2.2.0\n */\n @Input() showNavigationIndicators: boolean;\n\n /**\n * An event emitted right after the slide transition is completed.\n *\n * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details.\n */\n @Output() slide = new EventEmitter();\n\n constructor(\n config: NgbCarouselConfig, @Inject(PLATFORM_ID) private _platformId, private _ngZone: NgZone,\n private _cd: ChangeDetectorRef) {\n this.interval = config.interval;\n this.wrap = config.wrap;\n this.keyboard = config.keyboard;\n this.pauseOnHover = config.pauseOnHover;\n this.showNavigationArrows = config.showNavigationArrows;\n this.showNavigationIndicators = config.showNavigationIndicators;\n }\n\n @HostListener('mouseenter')\n mouseEnter() {\n this._mouseHover$.next(true);\n }\n\n @HostListener('mouseleave')\n mouseLeave() {\n this._mouseHover$.next(false);\n }\n\n ngAfterContentInit() {\n // setInterval() doesn't play well with SSR and protractor,\n // so we should run it in the browser and outside Angular\n if (isPlatformBrowser(this._platformId)) {\n this._ngZone.runOutsideAngular(() => {\n const hasNextSlide$ = combineLatest(\n this.slide.pipe(map(slideEvent => slideEvent.current), startWith(this.activeId)),\n this._wrap$, this.slides.changes.pipe(startWith(null)))\n .pipe(\n map(([currentSlideId, wrap]) => {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n return wrap ? slideArr.length > 1 : currentSlideIdx < slideArr.length - 1;\n }),\n distinctUntilChanged());\n combineLatest(this._pause$, this._pauseOnHover$, this._mouseHover$, this._interval$, hasNextSlide$)\n .pipe(\n map(([pause, pauseOnHover, mouseHover, interval, hasNextSlide]) =>\n ((pause || (pauseOnHover && mouseHover) || !hasNextSlide) ? 0 : interval)),\n\n distinctUntilChanged(), switchMap(interval => interval > 0 ? timer(interval, interval) : NEVER),\n takeUntil(this._destroy$))\n .subscribe(() => this._ngZone.run(() => this.next(NgbSlideEventSource.TIMER)));\n });\n }\n\n this.slides.changes.pipe(takeUntil(this._destroy$)).subscribe(() => this._cd.markForCheck());\n }\n\n ngAfterContentChecked() {\n let activeSlide = this._getSlideById(this.activeId);\n this.activeId = activeSlide ? activeSlide.id : (this.slides.length ? this.slides.first.id : null);\n }\n\n ngOnDestroy() { this._destroy$.next(); }\n\n /**\n * Navigates to a slide with the specified identifier.\n */\n select(slideId: string, source?: NgbSlideEventSource) {\n this._cycleToSelected(slideId, this._getSlideEventDirection(this.activeId, slideId), source);\n }\n\n /**\n * Navigates to the previous slide.\n */\n prev(source?: NgbSlideEventSource) {\n this._cycleToSelected(this._getPrevSlide(this.activeId), NgbSlideEventDirection.RIGHT, source);\n }\n\n /**\n * Navigates to the next slide.\n */\n next(source?: NgbSlideEventSource) {\n this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source);\n }\n\n /**\n * Pauses cycling through the slides.\n */\n pause() { this._pause$.next(true); }\n\n /**\n * Restarts cycling through the slides from left to right.\n */\n cycle() { this._pause$.next(false); }\n\n private _cycleToSelected(slideIdx: string, direction: NgbSlideEventDirection, source?: NgbSlideEventSource) {\n let selectedSlide = this._getSlideById(slideIdx);\n if (selectedSlide && selectedSlide.id !== this.activeId) {\n this.slide.emit(\n {prev: this.activeId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source});\n this.activeId = selectedSlide.id;\n }\n\n // we get here after the interval fires or any external API call like next(), prev() or select()\n this._cd.markForCheck();\n }\n\n private _getSlideEventDirection(currentActiveSlideId: string, nextActiveSlideId: string): NgbSlideEventDirection {\n const currentActiveSlideIdx = this._getSlideIdxById(currentActiveSlideId);\n const nextActiveSlideIdx = this._getSlideIdxById(nextActiveSlideId);\n\n return currentActiveSlideIdx > nextActiveSlideIdx ? NgbSlideEventDirection.RIGHT : NgbSlideEventDirection.LEFT;\n }\n\n private _getSlideById(slideId: string): NgbSlide { return this.slides.find(slide => slide.id === slideId); }\n\n private _getSlideIdxById(slideId: string): number {\n return this.slides.toArray().indexOf(this._getSlideById(slideId));\n }\n\n private _getNextSlide(currentSlideId: string): string {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n const isLastSlide = currentSlideIdx === slideArr.length - 1;\n\n return isLastSlide ? (this.wrap ? slideArr[0].id : slideArr[slideArr.length - 1].id) :\n slideArr[currentSlideIdx + 1].id;\n }\n\n private _getPrevSlide(currentSlideId: string): string {\n const slideArr = this.slides.toArray();\n const currentSlideIdx = this._getSlideIdxById(currentSlideId);\n const isFirstSlide = currentSlideIdx === 0;\n\n return isFirstSlide ? (this.wrap ? slideArr[slideArr.length - 1].id : slideArr[0].id) :\n slideArr[currentSlideIdx - 1].id;\n }\n}\n\n/**\n * A slide change event emitted right after the slide transition is completed.\n */\nexport interface NgbSlideEvent {\n /**\n * The previous slide id.\n */\n prev: string;\n\n /**\n * The current slide id.\n */\n current: string;\n\n /**\n * The slide event direction.\n *\n * Possible values are `'left' | 'right'`.\n */\n direction: NgbSlideEventDirection;\n\n /**\n * Whether the pause() method was called (and no cycle() call was done afterwards).\n *\n * @since 5.1.0\n */\n paused: boolean;\n\n /**\n * Source triggering the slide change event.\n *\n * Possible values are `'timer' | 'arrowLeft' | 'arrowRight' | 'indicator'`\n *\n * @since 5.1.0\n */\n source?: NgbSlideEventSource;\n}\n\n/**\n * Defines the carousel slide transition direction.\n */\nexport enum NgbSlideEventDirection {\n LEFT = 'left',\n RIGHT = 'right'\n}\n\nexport enum NgbSlideEventSource {\n TIMER = 'timer',\n ARROW_LEFT = 'arrowLeft',\n ARROW_RIGHT = 'arrowRight',\n INDICATOR = 'indicator'\n}\n\nexport const NGB_CAROUSEL_DIRECTIVES = [NgbCarousel, NgbSlide];\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NGB_CAROUSEL_DIRECTIVES} from './carousel';\n\nexport {NgbCarousel, NgbSlide, NgbSlideEvent, NgbSlideEventDirection, NgbSlideEventSource} from './carousel';\nexport {NgbCarouselConfig} from './carousel-config';\n\n@NgModule({declarations: NGB_CAROUSEL_DIRECTIVES, exports: NGB_CAROUSEL_DIRECTIVES, imports: [CommonModule]})\nexport class NgbCarouselModule {\n}\n","import {Directive, Input} from '@angular/core';\n\n/**\n * A directive to provide a simple way of hiding and showing elements on the page.\n */\n@Directive({\n selector: '[ngbCollapse]',\n exportAs: 'ngbCollapse',\n host: {'[class.collapse]': 'true', '[class.show]': '!collapsed'}\n})\nexport class NgbCollapse {\n /**\n * If `true`, will collapse the element or show it otherwise.\n */\n @Input('ngbCollapse') collapsed = false;\n}\n","import {NgModule} from '@angular/core';\nimport {NgbCollapse} from './collapse';\n\nexport {NgbCollapse} from './collapse';\n\n@NgModule({declarations: [NgbCollapse], exports: [NgbCollapse]})\nexport class NgbCollapseModule {\n}\n","import {NgbDateStruct} from './ngb-date-struct';\nimport {isInteger} from '../util/util';\n\n/**\n * A simple class that represents a date that datepicker also uses internally.\n *\n * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods,\n * like `.equals()`, `.before()`, etc.\n *\n * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`.\n *\n * In many cases it is simpler to manipulate these objects together with\n * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details.\n *\n * @since 3.0.0\n */\nexport class NgbDate implements NgbDateStruct {\n /**\n * The year, for example 2016\n */\n year: number;\n\n /**\n * The month, for example 1=Jan ... 12=Dec as in ISO 8601\n */\n month: number;\n\n /**\n * The day of month, starting with 1\n */\n day: number;\n\n /**\n * A **static method** that creates a new date object from the `NgbDateStruct`,\n *\n * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`.\n *\n * If the `date` is already of `NgbDate` type, the method will return the same object.\n */\n static from(date: NgbDateStruct): NgbDate {\n if (date instanceof NgbDate) {\n return date;\n }\n return date ? new NgbDate(date.year, date.month, date.day) : null;\n }\n\n constructor(year: number, month: number, day: number) {\n this.year = isInteger(year) ? year : null;\n this.month = isInteger(month) ? month : null;\n this.day = isInteger(day) ? day : null;\n }\n\n /**\n * Checks if the current date is equal to another date.\n */\n equals(other: NgbDateStruct): boolean {\n return other && this.year === other.year && this.month === other.month && this.day === other.day;\n }\n\n /**\n * Checks if the current date is before another date.\n */\n before(other: NgbDateStruct): boolean {\n if (!other) {\n return false;\n }\n\n if (this.year === other.year) {\n if (this.month === other.month) {\n return this.day === other.day ? false : this.day < other.day;\n } else {\n return this.month < other.month;\n }\n } else {\n return this.year < other.year;\n }\n }\n\n /**\n * Checks if the current date is after another date.\n */\n after(other: NgbDateStruct): boolean {\n if (!other) {\n return false;\n }\n if (this.year === other.year) {\n if (this.month === other.month) {\n return this.day === other.day ? false : this.day > other.day;\n } else {\n return this.month > other.month;\n }\n } else {\n return this.year > other.year;\n }\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {Injectable} from '@angular/core';\nimport {isInteger} from '../util/util';\n\nexport function fromJSDate(jsDate: Date) {\n return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate());\n}\nexport function toJSDate(date: NgbDate) {\n const jsDate = new Date(date.year, date.month - 1, date.day, 12);\n // this is done avoid 30 -> 1930 conversion\n if (!isNaN(jsDate.getTime())) {\n jsDate.setFullYear(date.year);\n }\n return jsDate;\n}\n\nexport type NgbPeriod = 'y' | 'm' | 'd';\n\nexport function NGB_DATEPICKER_CALENDAR_FACTORY() {\n return new NgbCalendarGregorian();\n}\n\n/**\n * A service that represents the calendar used by the datepicker.\n *\n * The default implementation uses the Gregorian calendar. You can inject it in your own\n * implementations if necessary to simplify `NgbDate` calculations.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_CALENDAR_FACTORY})\nexport abstract class NgbCalendar {\n /**\n * Returns the number of days per week.\n */\n abstract getDaysPerWeek(): number;\n\n /**\n * Returns an array of months per year.\n *\n * With default calendar we use ISO 8601 and return [1, 2, ..., 12];\n */\n abstract getMonths(year?: number): number[];\n\n /**\n * Returns the number of weeks per month.\n */\n abstract getWeeksPerMonth(): number;\n\n /**\n * Returns the weekday number for a given day.\n *\n * With the default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun\n */\n abstract getWeekday(date: NgbDate): number;\n\n /**\n * Adds a number of years, months or days to a given date.\n *\n * * `period` can be `y`, `m` or `d` and defaults to day.\n * * `number` defaults to 1.\n *\n * Always returns a new date.\n */\n abstract getNext(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;\n\n /**\n * Subtracts a number of years, months or days from a given date.\n *\n * * `period` can be `y`, `m` or `d` and defaults to day.\n * * `number` defaults to 1.\n *\n * Always returns a new date.\n */\n abstract getPrev(date: NgbDate, period?: NgbPeriod, number?: number): NgbDate;\n\n /**\n * Returns the week number for a given week.\n */\n abstract getWeekNumber(week: NgbDate[], firstDayOfWeek: number): number;\n\n /**\n * Returns the today's date.\n */\n abstract getToday(): NgbDate;\n\n /**\n * Checks if a date is valid in the current calendar.\n */\n abstract isValid(date: NgbDate): boolean;\n}\n\n@Injectable()\nexport class NgbCalendarGregorian extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n let jsDate = toJSDate(date);\n\n switch (period) {\n case 'y':\n return new NgbDate(date.year + number, 1, 1);\n case 'm':\n jsDate = new Date(date.year, date.month + number - 1, 1, 12);\n break;\n case 'd':\n jsDate.setDate(jsDate.getDate() + number);\n break;\n default:\n return date;\n }\n\n return fromJSDate(jsDate);\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n let jsDate = toJSDate(date);\n let day = jsDate.getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n let date = week[thursdayIndex];\n\n const jsDate = toJSDate(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n jsDate.setMonth(0); // Compare with Jan 1\n jsDate.setDate(1);\n return Math.floor(Math.round((time - jsDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return fromJSDate(new Date()); }\n\n isValid(date: NgbDate): boolean {\n if (!date || !isInteger(date.year) || !isInteger(date.month) || !isInteger(date.day)) {\n return false;\n }\n\n // year 0 doesn't exist in Gregorian calendar\n if (date.year === 0) {\n return false;\n }\n\n const jsDate = toJSDate(date);\n\n return !isNaN(jsDate.getTime()) && jsDate.getFullYear() === date.year && jsDate.getMonth() + 1 === date.month &&\n jsDate.getDate() === date.day;\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {DatepickerViewModel, DayViewModel, MonthViewModel} from './datepicker-view-model';\nimport {NgbCalendar} from './ngb-calendar';\nimport {isDefined} from '../util/util';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\nexport function isChangedDate(prev: NgbDate, next: NgbDate) {\n return !dateComparator(prev, next);\n}\n\nexport function isChangedMonth(prev: NgbDate, next: NgbDate) {\n return !prev && !next ? false : !prev || !next ? true : prev.year !== next.year || prev.month !== next.month;\n}\n\nexport function dateComparator(prev: NgbDate, next: NgbDate) {\n return (!prev && !next) || (!!prev && !!next && prev.equals(next));\n}\n\nexport function checkMinBeforeMax(minDate: NgbDate, maxDate: NgbDate) {\n if (maxDate && minDate && maxDate.before(minDate)) {\n throw new Error(`'maxDate' ${maxDate} should be greater than 'minDate' ${minDate}`);\n }\n}\n\nexport function checkDateInRange(date: NgbDate, minDate: NgbDate, maxDate: NgbDate): NgbDate {\n if (date && minDate && date.before(minDate)) {\n return minDate;\n }\n if (date && maxDate && date.after(maxDate)) {\n return maxDate;\n }\n\n return date;\n}\n\nexport function isDateSelectable(date: NgbDate, state: DatepickerViewModel) {\n const {minDate, maxDate, disabled, markDisabled} = state;\n // clang-format off\n return !(\n !isDefined(date) ||\n disabled ||\n (markDisabled && markDisabled(date, {year: date.year, month: date.month})) ||\n (minDate && date.before(minDate)) ||\n (maxDate && date.after(maxDate))\n );\n // clang-format on\n}\n\nexport function generateSelectBoxMonths(calendar: NgbCalendar, date: NgbDate, minDate: NgbDate, maxDate: NgbDate) {\n if (!date) {\n return [];\n }\n\n let months = calendar.getMonths(date.year);\n\n if (minDate && date.year === minDate.year) {\n const index = months.findIndex(month => month === minDate.month);\n months = months.slice(index);\n }\n\n if (maxDate && date.year === maxDate.year) {\n const index = months.findIndex(month => month === maxDate.month);\n months = months.slice(0, index + 1);\n }\n\n return months;\n}\n\nexport function generateSelectBoxYears(date: NgbDate, minDate: NgbDate, maxDate: NgbDate) {\n if (!date) {\n return [];\n }\n\n const start = minDate && minDate.year || date.year - 10;\n const end = maxDate && maxDate.year || date.year + 10;\n\n return Array.from({length: end - start + 1}, (e, i) => start + i);\n}\n\nexport function nextMonthDisabled(calendar: NgbCalendar, date: NgbDate, maxDate: NgbDate) {\n return maxDate && calendar.getNext(date, 'm').after(maxDate);\n}\n\nexport function prevMonthDisabled(calendar: NgbCalendar, date: NgbDate, minDate: NgbDate) {\n const prevDate = calendar.getPrev(date, 'm');\n return minDate && (prevDate.year === minDate.year && prevDate.month < minDate.month ||\n prevDate.year < minDate.year && minDate.month === 1);\n}\n\nexport function buildMonths(\n calendar: NgbCalendar, date: NgbDate, state: DatepickerViewModel, i18n: NgbDatepickerI18n,\n force: boolean): MonthViewModel[] {\n const {displayMonths, months} = state;\n // move old months to a temporary array\n const monthsToReuse = months.splice(0, months.length);\n\n // generate new first dates, nullify or reuse months\n const firstDates = Array.from({length: displayMonths}, (_, i) => {\n const firstDate = calendar.getNext(date, 'm', i);\n months[i] = null;\n\n if (!force) {\n const reusedIndex = monthsToReuse.findIndex(month => month.firstDate.equals(firstDate));\n // move reused month back to months\n if (reusedIndex !== -1) {\n months[i] = monthsToReuse.splice(reusedIndex, 1)[0];\n }\n }\n\n return firstDate;\n });\n\n // rebuild nullified months\n firstDates.forEach((firstDate, i) => {\n if (months[i] === null) {\n months[i] = buildMonth(calendar, firstDate, state, i18n, monthsToReuse.shift() || {} as MonthViewModel);\n }\n });\n\n return months;\n}\n\nexport function buildMonth(\n calendar: NgbCalendar, date: NgbDate, state: DatepickerViewModel, i18n: NgbDatepickerI18n,\n month: MonthViewModel = {} as MonthViewModel): MonthViewModel {\n const {dayTemplateData, minDate, maxDate, firstDayOfWeek, markDisabled, outsideDays} = state;\n const calendarToday = calendar.getToday();\n\n month.firstDate = null;\n month.lastDate = null;\n month.number = date.month;\n month.year = date.year;\n month.weeks = month.weeks || [];\n month.weekdays = month.weekdays || [];\n\n date = getFirstViewDate(calendar, date, firstDayOfWeek);\n\n // month has weeks\n for (let week = 0; week < calendar.getWeeksPerMonth(); week++) {\n let weekObject = month.weeks[week];\n if (!weekObject) {\n weekObject = month.weeks[week] = {number: 0, days: [], collapsed: true};\n }\n const days = weekObject.days;\n\n // week has days\n for (let day = 0; day < calendar.getDaysPerWeek(); day++) {\n if (week === 0) {\n month.weekdays[day] = calendar.getWeekday(date);\n }\n\n const newDate = new NgbDate(date.year, date.month, date.day);\n const nextDate = calendar.getNext(newDate);\n\n const ariaLabel = i18n.getDayAriaLabel(newDate);\n\n // marking date as disabled\n let disabled = !!((minDate && newDate.before(minDate)) || (maxDate && newDate.after(maxDate)));\n if (!disabled && markDisabled) {\n disabled = markDisabled(newDate, {month: month.number, year: month.year});\n }\n\n // today\n let today = newDate.equals(calendarToday);\n\n // adding user-provided data to the context\n let contextUserData =\n dayTemplateData ? dayTemplateData(newDate, {month: month.number, year: month.year}) : undefined;\n\n // saving first date of the month\n if (month.firstDate === null && newDate.month === month.number) {\n month.firstDate = newDate;\n }\n\n // saving last date of the month\n if (newDate.month === month.number && nextDate.month !== month.number) {\n month.lastDate = newDate;\n }\n\n let dayObject = days[day];\n if (!dayObject) {\n dayObject = days[day] = {} as DayViewModel;\n }\n dayObject.date = newDate;\n dayObject.context = Object.assign(dayObject.context || {}, {\n $implicit: newDate,\n date: newDate,\n data: contextUserData,\n currentMonth: month.number, disabled,\n focused: false,\n selected: false, today\n });\n dayObject.tabindex = -1;\n dayObject.ariaLabel = ariaLabel;\n dayObject.hidden = false;\n\n date = nextDate;\n }\n\n weekObject.number = calendar.getWeekNumber(days.map(day => day.date), firstDayOfWeek);\n\n // marking week as collapsed\n weekObject.collapsed = outsideDays === 'collapsed' && days[0].date.month !== month.number &&\n days[days.length - 1].date.month !== month.number;\n }\n\n return month;\n}\n\nexport function getFirstViewDate(calendar: NgbCalendar, date: NgbDate, firstDayOfWeek: number): NgbDate {\n const daysPerWeek = calendar.getDaysPerWeek();\n const firstMonthDate = new NgbDate(date.year, date.month, 1);\n const dayOfWeek = calendar.getWeekday(firstMonthDate) % daysPerWeek;\n return calendar.getPrev(firstMonthDate, 'd', (daysPerWeek + dayOfWeek - firstDayOfWeek) % daysPerWeek);\n}\n","import {Inject, Injectable, LOCALE_ID} from '@angular/core';\nimport {FormStyle, getLocaleDayNames, getLocaleMonthNames, TranslationWidth, formatDate} from '@angular/common';\nimport {NgbDateStruct} from './ngb-date-struct';\n\nexport function NGB_DATEPICKER_18N_FACTORY(locale) {\n return new NgbDatepickerI18nDefault(locale);\n}\n\n/**\n * A service supplying i18n data to the datepicker component.\n *\n * The default implementation of this service uses the Angular locale and registered locale data for\n * weekdays and month names (as explained in the Angular i18n guide).\n *\n * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year\n * numerals. For other static labels the datepicker uses the default Angular i18n.\n *\n * See the [i18n demo](#/components/datepicker/examples#i18n) and\n * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define\n * a custom provider for i18n.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_18N_FACTORY, deps: [LOCALE_ID]})\nexport abstract class NgbDatepickerI18n {\n /**\n * Returns the short weekday name to display in the heading of the month view.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n abstract getWeekdayShortName(weekday: number): string;\n\n /**\n * Returns the short month name to display in the date picker navigation.\n *\n * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n */\n abstract getMonthShortName(month: number, year?: number): string;\n\n /**\n * Returns the full month name to display in the date picker navigation.\n *\n * With default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n */\n abstract getMonthFullName(month: number, year?: number): string;\n\n /**\n * Returns the value of the `aria-label` attribute for a specific date.\n *\n * @since 2.0.0\n */\n abstract getDayAriaLabel(date: NgbDateStruct): string;\n\n /**\n * Returns the textual representation of a day that is rendered in a day cell.\n *\n * @since 3.0.0\n */\n getDayNumerals(date: NgbDateStruct): string { return `${date.day}`; }\n\n /**\n * Returns the textual representation of a week number rendered by datepicker.\n *\n * @since 3.0.0\n */\n getWeekNumerals(weekNumber: number): string { return `${weekNumber}`; }\n\n /**\n * Returns the textual representation of a year that is rendered in the datepicker year select box.\n *\n * @since 3.0.0\n */\n getYearNumerals(year: number): string { return `${year}`; }\n}\n\n@Injectable()\nexport class NgbDatepickerI18nDefault extends NgbDatepickerI18n {\n private _weekdaysShort: Array;\n private _monthsShort: Array;\n private _monthsFull: Array;\n\n constructor(@Inject(LOCALE_ID) private _locale: string) {\n super();\n\n const weekdaysStartingOnSunday = getLocaleDayNames(_locale, FormStyle.Standalone, TranslationWidth.Short);\n this._weekdaysShort = weekdaysStartingOnSunday.map((day, index) => weekdaysStartingOnSunday[(index + 1) % 7]);\n\n this._monthsShort = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Abbreviated);\n this._monthsFull = getLocaleMonthNames(_locale, FormStyle.Standalone, TranslationWidth.Wide);\n }\n\n getWeekdayShortName(weekday: number): string { return this._weekdaysShort[weekday - 1]; }\n\n getMonthShortName(month: number): string { return this._monthsShort[month - 1]; }\n\n getMonthFullName(month: number): string { return this._monthsFull[month - 1]; }\n\n getDayAriaLabel(date: NgbDateStruct): string {\n const jsDate = new Date(date.year, date.month - 1, date.day);\n return formatDate(jsDate, 'fullDate', this._locale);\n }\n}\n","import {NgbCalendar, NgbPeriod} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {DatepickerViewModel, NgbDayTemplateData, NgbMarkDisabled} from './datepicker-view-model';\nimport {Injectable} from '@angular/core';\nimport {isInteger, toInteger} from '../util/util';\nimport {Observable, Subject} from 'rxjs';\nimport {\n buildMonths,\n checkDateInRange,\n checkMinBeforeMax,\n isChangedDate,\n isChangedMonth,\n isDateSelectable,\n generateSelectBoxYears,\n generateSelectBoxMonths,\n prevMonthDisabled,\n nextMonthDisabled\n} from './datepicker-tools';\n\nimport {filter} from 'rxjs/operators';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Injectable()\nexport class NgbDatepickerService {\n private _model$ = new Subject();\n\n private _select$ = new Subject();\n\n private _state: DatepickerViewModel = {\n disabled: false,\n displayMonths: 1,\n firstDayOfWeek: 1,\n focusVisible: false,\n months: [],\n navigation: 'select',\n outsideDays: 'visible',\n prevDisabled: false,\n nextDisabled: false,\n selectBoxes: {years: [], months: []},\n selectedDate: null\n };\n\n get model$(): Observable { return this._model$.pipe(filter(model => model.months.length > 0)); }\n\n get select$(): Observable { return this._select$.pipe(filter(date => date !== null)); }\n\n set dayTemplateData(dayTemplateData: NgbDayTemplateData) {\n if (this._state.dayTemplateData !== dayTemplateData) {\n this._nextState({dayTemplateData});\n }\n }\n\n set disabled(disabled: boolean) {\n if (this._state.disabled !== disabled) {\n this._nextState({disabled});\n }\n }\n\n set displayMonths(displayMonths: number) {\n displayMonths = toInteger(displayMonths);\n if (isInteger(displayMonths) && displayMonths > 0 && this._state.displayMonths !== displayMonths) {\n this._nextState({displayMonths});\n }\n }\n\n set firstDayOfWeek(firstDayOfWeek: number) {\n firstDayOfWeek = toInteger(firstDayOfWeek);\n if (isInteger(firstDayOfWeek) && firstDayOfWeek >= 0 && this._state.firstDayOfWeek !== firstDayOfWeek) {\n this._nextState({firstDayOfWeek});\n }\n }\n\n set focusVisible(focusVisible: boolean) {\n if (this._state.focusVisible !== focusVisible && !this._state.disabled) {\n this._nextState({focusVisible});\n }\n }\n\n set maxDate(date: NgbDate) {\n const maxDate = this.toValidDate(date, null);\n if (isChangedDate(this._state.maxDate, maxDate)) {\n this._nextState({maxDate});\n }\n }\n\n set markDisabled(markDisabled: NgbMarkDisabled) {\n if (this._state.markDisabled !== markDisabled) {\n this._nextState({markDisabled});\n }\n }\n\n set minDate(date: NgbDate) {\n const minDate = this.toValidDate(date, null);\n if (isChangedDate(this._state.minDate, minDate)) {\n this._nextState({minDate});\n }\n }\n\n set navigation(navigation: 'select' | 'arrows' | 'none') {\n if (this._state.navigation !== navigation) {\n this._nextState({navigation});\n }\n }\n\n set outsideDays(outsideDays: 'visible' | 'collapsed' | 'hidden') {\n if (this._state.outsideDays !== outsideDays) {\n this._nextState({outsideDays});\n }\n }\n\n constructor(private _calendar: NgbCalendar, private _i18n: NgbDatepickerI18n) {}\n\n focus(date: NgbDate) {\n if (!this._state.disabled && this._calendar.isValid(date) && isChangedDate(this._state.focusDate, date)) {\n this._nextState({focusDate: date});\n }\n }\n\n focusMove(period?: NgbPeriod, number?: number) {\n this.focus(this._calendar.getNext(this._state.focusDate, period, number));\n }\n\n focusSelect() {\n if (isDateSelectable(this._state.focusDate, this._state)) {\n this.select(this._state.focusDate, {emitEvent: true});\n }\n }\n\n open(date: NgbDate) {\n const firstDate = this.toValidDate(date, this._calendar.getToday());\n if (!this._state.disabled && (!this._state.firstDate || isChangedMonth(this._state.firstDate, date))) {\n this._nextState({firstDate});\n }\n }\n\n select(date: NgbDate, options: {emitEvent?: boolean} = {}) {\n const selectedDate = this.toValidDate(date, null);\n if (!this._state.disabled) {\n if (isChangedDate(this._state.selectedDate, selectedDate)) {\n this._nextState({selectedDate});\n }\n\n if (options.emitEvent && isDateSelectable(selectedDate, this._state)) {\n this._select$.next(selectedDate);\n }\n }\n }\n\n toValidDate(date: NgbDateStruct, defaultValue?: NgbDate): NgbDate {\n const ngbDate = NgbDate.from(date);\n if (defaultValue === undefined) {\n defaultValue = this._calendar.getToday();\n }\n return this._calendar.isValid(ngbDate) ? ngbDate : defaultValue;\n }\n\n private _nextState(patch: Partial) {\n const newState = this._updateState(patch);\n this._patchContexts(newState);\n this._state = newState;\n this._model$.next(this._state);\n }\n\n private _patchContexts(state: DatepickerViewModel) {\n const {months, displayMonths, selectedDate, focusDate, focusVisible, disabled, outsideDays} = state;\n state.months.forEach(month => {\n month.weeks.forEach(week => {\n week.days.forEach(day => {\n\n // patch focus flag\n if (focusDate) {\n day.context.focused = focusDate.equals(day.date) && focusVisible;\n }\n\n // calculating tabindex\n day.tabindex = !disabled && day.date.equals(focusDate) && focusDate.month === month.number ? 0 : -1;\n\n // override context disabled\n if (disabled === true) {\n day.context.disabled = true;\n }\n\n // patch selection flag\n if (selectedDate !== undefined) {\n day.context.selected = selectedDate !== null && selectedDate.equals(day.date);\n }\n\n // visibility\n if (month.number !== day.date.month) {\n day.hidden = outsideDays === 'hidden' || outsideDays === 'collapsed' ||\n (displayMonths > 1 && day.date.after(months[0].firstDate) &&\n day.date.before(months[displayMonths - 1].lastDate));\n }\n });\n });\n });\n }\n\n private _updateState(patch: Partial): DatepickerViewModel {\n // patching fields\n const state = Object.assign({}, this._state, patch);\n\n let startDate = state.firstDate;\n\n // min/max dates changed\n if ('minDate' in patch || 'maxDate' in patch) {\n checkMinBeforeMax(state.minDate, state.maxDate);\n state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate);\n state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate);\n startDate = state.focusDate;\n }\n\n // disabled\n if ('disabled' in patch) {\n state.focusVisible = false;\n }\n\n // initial rebuild via 'select()'\n if ('selectedDate' in patch && this._state.months.length === 0) {\n startDate = state.selectedDate;\n }\n\n // terminate early if only focus visibility was changed\n if ('focusVisible' in patch) {\n return state;\n }\n\n // focus date changed\n if ('focusDate' in patch) {\n state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate);\n startDate = state.focusDate;\n\n // nothing to rebuild if only focus changed and it is still visible\n if (state.months.length !== 0 && !state.focusDate.before(state.firstDate) &&\n !state.focusDate.after(state.lastDate)) {\n return state;\n }\n }\n\n // first date changed\n if ('firstDate' in patch) {\n state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate);\n startDate = state.firstDate;\n }\n\n // rebuilding months\n if (startDate) {\n const forceRebuild = 'dayTemplateData' in patch || 'firstDayOfWeek' in patch || 'markDisabled' in patch ||\n 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch || 'outsideDays' in patch;\n\n const months = buildMonths(this._calendar, startDate, state, this._i18n, forceRebuild);\n\n // updating months and boundary dates\n state.months = months;\n state.firstDate = months.length > 0 ? months[0].firstDate : undefined;\n state.lastDate = months.length > 0 ? months[months.length - 1].lastDate : undefined;\n\n // reset selected date if 'markDisabled' returns true\n if ('selectedDate' in patch && !isDateSelectable(state.selectedDate, state)) {\n state.selectedDate = null;\n }\n\n // adjusting focus after months were built\n if ('firstDate' in patch) {\n if (state.focusDate === undefined || state.focusDate.before(state.firstDate) ||\n state.focusDate.after(state.lastDate)) {\n state.focusDate = startDate;\n }\n }\n\n // adjusting months/years for the select box navigation\n const yearChanged = !this._state.firstDate || this._state.firstDate.year !== state.firstDate.year;\n const monthChanged = !this._state.firstDate || this._state.firstDate.month !== state.firstDate.month;\n if (state.navigation === 'select') {\n // years -> boundaries (min/max were changed)\n if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.years.length === 0 || yearChanged) {\n state.selectBoxes.years = generateSelectBoxYears(state.firstDate, state.minDate, state.maxDate);\n }\n\n // months -> when current year or boundaries change\n if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.months.length === 0 || yearChanged) {\n state.selectBoxes.months =\n generateSelectBoxMonths(this._calendar, state.firstDate, state.minDate, state.maxDate);\n }\n } else {\n state.selectBoxes = {years: [], months: []};\n }\n\n // updating navigation arrows -> boundaries change (min/max) or month/year changes\n if ((state.navigation === 'arrows' || state.navigation === 'select') &&\n (monthChanged || yearChanged || 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch)) {\n state.prevDisabled = state.disabled || prevMonthDisabled(this._calendar, state.firstDate, state.minDate);\n state.nextDisabled = state.disabled || nextMonthDisabled(this._calendar, state.lastDate, state.maxDate);\n }\n }\n\n return state;\n }\n}\n","export enum Key {\n Tab = 9,\n Enter = 13,\n Escape = 27,\n Space = 32,\n PageUp = 33,\n PageDown = 34,\n End = 35,\n Home = 36,\n ArrowLeft = 37,\n ArrowUp = 38,\n ArrowRight = 39,\n ArrowDown = 40\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbCalendar} from './ngb-calendar';\nimport {Key} from '../util/key';\nimport {NgbDate} from './ngb-date';\n\n@Injectable()\nexport class NgbDatepickerKeyMapService {\n private _minDate: NgbDate;\n private _maxDate: NgbDate;\n private _firstViewDate: NgbDate;\n private _lastViewDate: NgbDate;\n\n constructor(private _service: NgbDatepickerService, private _calendar: NgbCalendar) {\n _service.model$.subscribe(model => {\n this._minDate = model.minDate;\n this._maxDate = model.maxDate;\n this._firstViewDate = model.firstDate;\n this._lastViewDate = model.lastDate;\n });\n }\n\n processKey(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.PageUp:\n this._service.focusMove(event.shiftKey ? 'y' : 'm', -1);\n break;\n case Key.PageDown:\n this._service.focusMove(event.shiftKey ? 'y' : 'm', 1);\n break;\n case Key.End:\n this._service.focus(event.shiftKey ? this._maxDate : this._lastViewDate);\n break;\n case Key.Home:\n this._service.focus(event.shiftKey ? this._minDate : this._firstViewDate);\n break;\n case Key.ArrowLeft:\n this._service.focusMove('d', -1);\n break;\n case Key.ArrowUp:\n this._service.focusMove('d', -this._calendar.getDaysPerWeek());\n break;\n case Key.ArrowRight:\n this._service.focusMove('d', 1);\n break;\n case Key.ArrowDown:\n this._service.focusMove('d', this._calendar.getDaysPerWeek());\n break;\n case Key.Enter:\n case Key.Space:\n this._service.focusSelect();\n break;\n default:\n return;\n }\n\n // note 'return' in default case\n event.preventDefault();\n event.stopPropagation();\n }\n}\n","import {NgbDate} from './ngb-date';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {DayTemplateContext} from './datepicker-day-template-context';\n\nexport type NgbMarkDisabled = (date: NgbDateStruct, current: {year: number, month: number}) => boolean;\nexport type NgbDayTemplateData = (date: NgbDateStruct, current: {year: number, month: number}) => any;\n\nexport type DayViewModel = {\n date: NgbDate,\n context: DayTemplateContext,\n tabindex: number,\n ariaLabel: string,\n hidden: boolean\n};\n\nexport type WeekViewModel = {\n number: number,\n days: DayViewModel[],\n collapsed: boolean\n};\n\nexport type MonthViewModel = {\n firstDate: NgbDate,\n lastDate: NgbDate,\n number: number,\n year: number,\n weeks: WeekViewModel[],\n weekdays: number[]\n};\n\n// clang-format off\nexport type DatepickerViewModel = {\n dayTemplateData?: NgbDayTemplateData,\n disabled: boolean,\n displayMonths: number,\n firstDate?: NgbDate,\n firstDayOfWeek: number,\n focusDate?: NgbDate,\n focusVisible: boolean,\n lastDate?: NgbDate,\n markDisabled?: NgbMarkDisabled,\n maxDate?: NgbDate,\n minDate?: NgbDate,\n months: MonthViewModel[],\n navigation: 'select' | 'arrows' | 'none',\n outsideDays: 'visible' | 'collapsed' | 'hidden',\n prevDisabled: boolean,\n nextDisabled: boolean,\n selectBoxes: {\n years: number[],\n months: number[]\n },\n selectedDate: NgbDate\n};\n// clang-format on\n\nexport enum NavigationEvent {\n PREV,\n NEXT\n}\n","import {Injectable, TemplateRef} from '@angular/core';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDateStruct} from './ngb-date-struct';\n\n/**\n * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the datepickers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbDatepickerConfig {\n dayTemplate: TemplateRef;\n dayTemplateData: (date: NgbDateStruct, current: {year: number, month: number}) => any;\n footerTemplate: TemplateRef;\n displayMonths = 1;\n firstDayOfWeek = 1;\n markDisabled: (date: NgbDateStruct, current: {year: number, month: number}) => boolean;\n minDate: NgbDateStruct;\n maxDate: NgbDateStruct;\n navigation: 'select' | 'arrows' | 'none' = 'select';\n outsideDays: 'visible' | 'collapsed' | 'hidden' = 'visible';\n showWeekdays = true;\n showWeekNumbers = false;\n startDate: {year: number, month: number};\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {isInteger} from '../../util/util';\n\nexport function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() {\n return new NgbDateStructAdapter();\n}\n\n/**\n * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and\n * any provided user date model `D`, ex. a string, a native date, etc.\n *\n * The adapter is used **only** for conversion when binding datepicker to a form control,\n * ex. `[(ngModel)]=\"userDateModel\"`. Here `userDateModel` can be of any type.\n *\n * The default datepicker implementation assumes we use `NgbDateStruct` as a user model.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details\n * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY})\nexport abstract class NgbDateAdapter {\n /**\n * Converts a user-model date of type `D` to an `NgbDateStruct` for internal use.\n */\n abstract fromModel(value: D): NgbDateStruct;\n\n /**\n * Converts an internal `NgbDateStruct` date to a user-model date of type `D`.\n */\n abstract toModel(date: NgbDateStruct): D;\n}\n\n@Injectable()\nexport class NgbDateStructAdapter extends NgbDateAdapter {\n /**\n * Converts a NgbDateStruct value into NgbDateStruct value\n */\n fromModel(date: NgbDateStruct): NgbDateStruct {\n return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ?\n {year: date.year, month: date.month, day: date.day} :\n null;\n }\n\n /**\n * Converts a NgbDateStruct value into NgbDateStruct value\n */\n toModel(date: NgbDateStruct): NgbDateStruct {\n return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ?\n {year: date.year, month: date.month, day: date.day} :\n null;\n }\n}\n","import {fromEvent, merge, Subject} from 'rxjs';\nimport {filter, take, takeUntil} from 'rxjs/operators';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {NgbCalendar} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbDatepickerKeyMapService} from './datepicker-keymap-service';\nimport {DatepickerViewModel, NavigationEvent} from './datepicker-view-model';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDatepickerConfig} from './datepicker-config';\nimport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\nimport {isChangedDate, isChangedMonth} from './datepicker-tools';\nimport {hasClassName} from '../util/util';\n\nconst NGB_DATEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbDatepicker),\n multi: true\n};\n\n/**\n * An event emitted right before the navigation happens and the month displayed by the datepicker changes.\n */\nexport interface NgbDatepickerNavigateEvent {\n /**\n * The currently displayed month.\n */\n current: {year: number, month: number};\n\n /**\n * The month we're navigating to.\n */\n next: {year: number, month: number};\n\n /**\n * Calling this function will prevent navigation from happening.\n *\n * @since 4.1.0\n */\n preventDefault: () => void;\n}\n\n/**\n * A highly configurable component that helps you with selecting calendar dates.\n *\n * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup.\n */\n@Component({\n exportAs: 'ngbDatepicker',\n selector: 'ngb-datepicker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker.scss'],\n template: `\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n \n
\n
1 && navigation === 'select')\"\n class=\"ngb-dp-month-name\">\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n \n \n
\n
\n
\n\n \n `,\n providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService, NgbDatepickerKeyMapService]\n})\nexport class NgbDatepicker implements OnDestroy,\n OnChanges, OnInit, AfterViewInit, ControlValueAccessor {\n model: DatepickerViewModel;\n\n @ViewChild('months', {static: true}) private _monthsEl: ElementRef;\n private _controlValue: NgbDate;\n private _destroyed$ = new Subject();\n\n /**\n * The reference to a custom template for the day.\n *\n * Allows to completely override the way a day 'cell' in the calendar is displayed.\n *\n * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside.\n */\n @Input() dayTemplate: TemplateRef;\n\n /**\n * The callback to pass any arbitrary data to the template cell via the\n * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter.\n *\n * `current` is the month that is currently displayed by the datepicker.\n *\n * @since 3.3.0\n */\n @Input() dayTemplateData: (date: NgbDate, current: {year: number, month: number}) => any;\n\n /**\n * The number of months to display.\n */\n @Input() displayMonths: number;\n\n /**\n * The first day of the week.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n @Input() firstDayOfWeek: number;\n\n /**\n * The reference to the custom template for the datepicker footer.\n *\n * @since 3.3.0\n */\n @Input() footerTemplate: TemplateRef;\n\n /**\n * The callback to mark some dates as disabled.\n *\n * It is called for each new date when navigating to a different month.\n *\n * `current` is the month that is currently displayed by the datepicker.\n */\n @Input() markDisabled: (date: NgbDate, current: {year: number, month: number}) => boolean;\n\n /**\n * The latest date that can be displayed or selected.\n *\n * If not provided, 'year' select box will display 10 years after the current month.\n */\n @Input() maxDate: NgbDateStruct;\n\n /**\n * The earliest date that can be displayed or selected.\n *\n * If not provided, 'year' select box will display 10 years before the current month.\n */\n @Input() minDate: NgbDateStruct;\n\n /**\n * Navigation type.\n *\n * * `\"select\"` - select boxes for month and navigation arrows\n * * `\"arrows\"` - only navigation arrows\n * * `\"none\"` - no navigation visible at all\n */\n @Input() navigation: 'select' | 'arrows' | 'none';\n\n /**\n * The way of displaying days that don't belong to the current month.\n *\n * * `\"visible\"` - days are visible\n * * `\"hidden\"` - days are hidden, white space preserved\n * * `\"collapsed\"` - days are collapsed, so the datepicker height might change between months\n *\n * For the 2+ months view, days in between months are never shown.\n */\n @Input() outsideDays: 'visible' | 'collapsed' | 'hidden';\n\n /**\n * If `true`, weekdays will be displayed.\n */\n @Input() showWeekdays: boolean;\n\n /**\n * If `true`, week numbers will be displayed.\n */\n @Input() showWeekNumbers: boolean;\n\n /**\n * The date to open calendar with.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date is provided, calendar will open with current month.\n *\n * You could use `navigateTo(date)` method as an alternative.\n */\n @Input() startDate: {year: number, month: number, day?: number};\n\n /**\n * An event emitted right before the navigation happens and displayed month changes.\n *\n * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info.\n */\n @Output() navigate = new EventEmitter();\n\n /**\n * An event emitted when user selects a date using keyboard or mouse.\n *\n * The payload of the event is currently selected `NgbDate`.\n */\n @Output() select = new EventEmitter();\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n constructor(\n private _keyMapService: NgbDatepickerKeyMapService, public _service: NgbDatepickerService,\n private _calendar: NgbCalendar, public i18n: NgbDatepickerI18n, config: NgbDatepickerConfig,\n private _cd: ChangeDetectorRef, private _elementRef: ElementRef,\n private _ngbDateAdapter: NgbDateAdapter, private _ngZone: NgZone) {\n ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate',\n 'maxDate', 'navigation', 'outsideDays', 'showWeekdays', 'showWeekNumbers', 'startDate']\n .forEach(input => this[input] = config[input]);\n\n _service.select$.pipe(takeUntil(this._destroyed$)).subscribe(date => { this.select.emit(date); });\n\n _service.model$.pipe(takeUntil(this._destroyed$)).subscribe(model => {\n const newDate = model.firstDate;\n const oldDate = this.model ? this.model.firstDate : null;\n\n let navigationPrevented = false;\n // emitting navigation event if the first month changes\n if (!newDate.equals(oldDate)) {\n this.navigate.emit({\n current: oldDate ? {year: oldDate.year, month: oldDate.month} : null,\n next: {year: newDate.year, month: newDate.month},\n preventDefault: () => navigationPrevented = true\n });\n\n // can't prevent the very first navigation\n if (navigationPrevented && oldDate !== null) {\n this._service.open(oldDate);\n return;\n }\n }\n\n const newSelectedDate = model.selectedDate;\n const newFocusedDate = model.focusDate;\n const oldFocusedDate = this.model ? this.model.focusDate : null;\n\n this.model = model;\n\n // handling selection change\n if (isChangedDate(newSelectedDate, this._controlValue)) {\n this._controlValue = newSelectedDate;\n this.onTouched();\n this.onChange(this._ngbDateAdapter.toModel(newSelectedDate));\n }\n\n // handling focus change\n if (isChangedDate(newFocusedDate, oldFocusedDate) && oldFocusedDate && model.focusVisible) {\n this.focus();\n }\n\n _cd.markForCheck();\n });\n }\n\n focus() {\n this._ngZone.onStable.asObservable().pipe(take(1)).subscribe(() => {\n const elementToFocus =\n this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex=\"0\"]');\n if (elementToFocus) {\n elementToFocus.focus();\n }\n });\n }\n\n /**\n * Navigates to the provided date.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date provided calendar will open current month.\n *\n * Use the `[startDate]` input as an alternative.\n */\n navigateTo(date?: {year: number, month: number, day?: number}) {\n this._service.open(NgbDate.from(date ? date.day ? date as NgbDateStruct : {...date, day: 1} : null));\n }\n\n ngAfterViewInit() {\n this._ngZone.runOutsideAngular(() => {\n const focusIns$ = fromEvent(this._monthsEl.nativeElement, 'focusin');\n const focusOuts$ = fromEvent(this._monthsEl.nativeElement, 'focusout');\n\n // we're changing 'focusVisible' only when entering or leaving months view\n // and ignoring all focus events where both 'target' and 'related' target are day cells\n merge(focusIns$, focusOuts$)\n .pipe(\n filter(\n ({target, relatedTarget}) =>\n !(hasClassName(target, 'ngb-dp-day') && hasClassName(relatedTarget, 'ngb-dp-day'))),\n takeUntil(this._destroyed$))\n .subscribe(({type}) => this._ngZone.run(() => this._service.focusVisible = type === 'focusin'));\n });\n }\n\n ngOnDestroy() { this._destroyed$.next(); }\n\n ngOnInit() {\n if (this.model === undefined) {\n ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate',\n 'outsideDays']\n .forEach(input => this._service[input] = this[input]);\n this.navigateTo(this.startDate);\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate',\n 'outsideDays']\n .filter(input => input in changes)\n .forEach(input => this._service[input] = this[input]);\n\n if ('startDate' in changes) {\n const {currentValue, previousValue} = changes.startDate;\n if (isChangedMonth(previousValue, currentValue)) {\n this.navigateTo(this.startDate);\n }\n }\n }\n\n onDateSelect(date: NgbDate) {\n this._service.focus(date);\n this._service.select(date, {emitEvent: true});\n }\n\n onKeyDown(event: KeyboardEvent) { this._keyMapService.processKey(event); }\n\n onNavigateDateSelect(date: NgbDate) { this._service.open(date); }\n\n onNavigateEvent(event: NavigationEvent) {\n switch (event) {\n case NavigationEvent.PREV:\n this._service.open(this._calendar.getPrev(this.model.firstDate, 'm', 1));\n break;\n case NavigationEvent.NEXT:\n this._service.open(this._calendar.getNext(this.model.firstDate, 'm', 1));\n break;\n }\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean) { this._service.disabled = isDisabled; }\n\n writeValue(value) {\n this._controlValue = NgbDate.from(this._ngbDateAdapter.fromModel(value));\n this._service.select(this._controlValue);\n }\n}\n","import {Component, Input, TemplateRef, Output, EventEmitter, ViewEncapsulation} from '@angular/core';\nimport {MonthViewModel, DayViewModel} from './datepicker-view-model';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\nimport {DayTemplateContext} from './datepicker-day-template-context';\n\n@Component({\n selector: 'ngb-datepicker-month-view',\n host: {'role': 'grid'},\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-month-view.scss'],\n template: `\n
\n
\n
\n {{ i18n.getWeekdayShortName(w) }}\n
\n
\n \n
\n
{{ i18n.getWeekNumerals(week.number) }}
\n
\n \n \n \n
\n
\n
\n `\n})\nexport class NgbDatepickerMonthView {\n @Input() dayTemplate: TemplateRef;\n @Input() month: MonthViewModel;\n @Input() showWeekdays;\n @Input() showWeekNumbers;\n\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n doSelect(day: DayViewModel) {\n if (!day.context.disabled && !day.hidden) {\n this.select.emit(day.date);\n }\n }\n}\n","import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {NavigationEvent, MonthViewModel} from './datepicker-view-model';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: 'ngb-datepicker-navigation',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-navigation.scss'],\n template: `\n
\n \n
\n \n \n\n \n
0\">
\n
\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n
\n
\n
\n \n
\n `\n})\nexport class NgbDatepickerNavigation {\n navigation = NavigationEvent;\n\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() months: MonthViewModel[] = [];\n @Input() showSelect: boolean;\n @Input() prevDisabled: boolean;\n @Input() nextDisabled: boolean;\n @Input() selectBoxes: {years: number[], months: number[]};\n\n @Output() navigate = new EventEmitter();\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n}\n","import {NgZone} from '@angular/core';\nimport {fromEvent, Observable, race} from 'rxjs';\nimport {delay, filter, map, takeUntil, withLatestFrom} from 'rxjs/operators';\nimport {Key} from './key';\nimport {closest} from './util';\n\nconst isContainedIn = (element: HTMLElement, array?: HTMLElement[]) =>\n array ? array.some(item => item.contains(element)) : false;\n\nconst matchesSelectorIfAny = (element: HTMLElement, selector?: string) =>\n !selector || closest(element, selector) != null;\n\n// we'll have to use 'touch' events instead of 'mouse' events on iOS and add a more significant delay\n// to avoid re-opening when handling (click) on a toggling element\n// TODO: use proper Angular platform detection when NgbAutoClose becomes a service and we can inject PLATFORM_ID\nlet iOS = false;\nif (typeof navigator !== 'undefined') {\n iOS = !!navigator.userAgent && /iPad|iPhone|iPod/.test(navigator.userAgent);\n}\n\nexport function ngbAutoClose(\n zone: NgZone, document: any, type: boolean | 'inside' | 'outside', close: () => void, closed$: Observable,\n insideElements: HTMLElement[], ignoreElements?: HTMLElement[], insideSelector?: string) {\n // closing on ESC and outside clicks\n if (type) {\n zone.runOutsideAngular(() => {\n\n const shouldCloseOnClick = (event: MouseEvent | TouchEvent) => {\n const element = event.target as HTMLElement;\n if ((event instanceof MouseEvent && event.button === 2) || isContainedIn(element, ignoreElements)) {\n return false;\n }\n if (type === 'inside') {\n return isContainedIn(element, insideElements) && matchesSelectorIfAny(element, insideSelector);\n } else if (type === 'outside') {\n return !isContainedIn(element, insideElements);\n } else /* if (type === true) */ {\n return matchesSelectorIfAny(element, insideSelector) || !isContainedIn(element, insideElements);\n }\n };\n\n const escapes$ = fromEvent(document, 'keydown')\n .pipe(\n takeUntil(closed$),\n // tslint:disable-next-line:deprecation\n filter(e => e.which === Key.Escape));\n\n\n // we have to pre-calculate 'shouldCloseOnClick' on 'mousedown/touchstart',\n // because on 'mouseup/touchend' DOM nodes might be detached\n const mouseDowns$ = fromEvent(document, iOS ? 'touchstart' : 'mousedown')\n .pipe(map(shouldCloseOnClick), takeUntil(closed$));\n\n const closeableClicks$ = fromEvent(document, iOS ? 'touchend' : 'mouseup')\n .pipe(\n withLatestFrom(mouseDowns$), filter(([_, shouldClose]) => shouldClose),\n delay(iOS ? 16 : 0), takeUntil(closed$)) as Observable;\n\n\n race([escapes$, closeableClicks$]).subscribe(() => zone.run(close));\n });\n }\n}\n","import {fromEvent, Observable} from 'rxjs';\nimport {filter, map, takeUntil, withLatestFrom} from 'rxjs/operators';\n\nimport {Key} from '../util/key';\n\n\nconst FOCUSABLE_ELEMENTS_SELECTOR = [\n 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type=\"hidden\"])', 'select:not([disabled])',\n 'textarea:not([disabled])', '[contenteditable]', '[tabindex]:not([tabindex=\"-1\"])'\n].join(', ');\n\n/**\n * Returns first and last focusable elements inside of a given element based on specific CSS selector\n */\nexport function getFocusableBoundaryElements(element: HTMLElement): HTMLElement[] {\n const list: HTMLElement[] =\n Array.from(element.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR) as NodeListOf)\n .filter(el => el.tabIndex !== -1);\n return [list[0], list[list.length - 1]];\n}\n\n/**\n * Function that enforces browser focus to be trapped inside a DOM element.\n *\n * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element\n *\n * @param element The element around which focus will be trapped inside\n * @param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners\n * and free internal resources\n * @param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to\n * false)\n */\nexport const ngbFocusTrap = (element: HTMLElement, stopFocusTrap$: Observable, refocusOnClick = false) => {\n // last focused element\n const lastFocusedElement$ =\n fromEvent(element, 'focusin').pipe(takeUntil(stopFocusTrap$), map(e => e.target));\n\n // 'tab' / 'shift+tab' stream\n fromEvent(element, 'keydown')\n .pipe(\n takeUntil(stopFocusTrap$),\n // tslint:disable:deprecation\n filter(e => e.which === Key.Tab),\n // tslint:enable:deprecation\n withLatestFrom(lastFocusedElement$))\n .subscribe(([tabEvent, focusedElement]) => {\n const[first, last] = getFocusableBoundaryElements(element);\n\n if ((focusedElement === first || focusedElement === element) && tabEvent.shiftKey) {\n last.focus();\n tabEvent.preventDefault();\n }\n\n if (focusedElement === last && !tabEvent.shiftKey) {\n first.focus();\n tabEvent.preventDefault();\n }\n });\n\n // inside click\n if (refocusOnClick) {\n fromEvent(element, 'click')\n .pipe(takeUntil(stopFocusTrap$), withLatestFrom(lastFocusedElement$), map(arr => arr[1] as HTMLElement))\n .subscribe(lastFocusedElement => lastFocusedElement.focus());\n }\n};\n","// previous version:\n// https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js\nexport class Positioning {\n private getAllStyles(element: HTMLElement) { return window.getComputedStyle(element); }\n\n private getStyle(element: HTMLElement, prop: string): string { return this.getAllStyles(element)[prop]; }\n\n private isStaticPositioned(element: HTMLElement): boolean {\n return (this.getStyle(element, 'position') || 'static') === 'static';\n }\n\n private offsetParent(element: HTMLElement): HTMLElement {\n let offsetParentEl = element.offsetParent || document.documentElement;\n\n while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) {\n offsetParentEl = offsetParentEl.offsetParent;\n }\n\n return offsetParentEl || document.documentElement;\n }\n\n position(element: HTMLElement, round = true): ClientRect {\n let elPosition: ClientRect;\n let parentOffset: ClientRect = {width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0};\n\n if (this.getStyle(element, 'position') === 'fixed') {\n elPosition = element.getBoundingClientRect();\n elPosition = {\n top: elPosition.top,\n bottom: elPosition.bottom,\n left: elPosition.left,\n right: elPosition.right,\n height: elPosition.height,\n width: elPosition.width\n };\n } else {\n const offsetParentEl = this.offsetParent(element);\n\n elPosition = this.offset(element, false);\n\n if (offsetParentEl !== document.documentElement) {\n parentOffset = this.offset(offsetParentEl, false);\n }\n\n parentOffset.top += offsetParentEl.clientTop;\n parentOffset.left += offsetParentEl.clientLeft;\n }\n\n elPosition.top -= parentOffset.top;\n elPosition.bottom -= parentOffset.top;\n elPosition.left -= parentOffset.left;\n elPosition.right -= parentOffset.left;\n\n if (round) {\n elPosition.top = Math.round(elPosition.top);\n elPosition.bottom = Math.round(elPosition.bottom);\n elPosition.left = Math.round(elPosition.left);\n elPosition.right = Math.round(elPosition.right);\n }\n\n return elPosition;\n }\n\n offset(element: HTMLElement, round = true): ClientRect {\n const elBcr = element.getBoundingClientRect();\n const viewportOffset = {\n top: window.pageYOffset - document.documentElement.clientTop,\n left: window.pageXOffset - document.documentElement.clientLeft\n };\n\n let elOffset = {\n height: elBcr.height || element.offsetHeight,\n width: elBcr.width || element.offsetWidth,\n top: elBcr.top + viewportOffset.top,\n bottom: elBcr.bottom + viewportOffset.top,\n left: elBcr.left + viewportOffset.left,\n right: elBcr.right + viewportOffset.left\n };\n\n if (round) {\n elOffset.height = Math.round(elOffset.height);\n elOffset.width = Math.round(elOffset.width);\n elOffset.top = Math.round(elOffset.top);\n elOffset.bottom = Math.round(elOffset.bottom);\n elOffset.left = Math.round(elOffset.left);\n elOffset.right = Math.round(elOffset.right);\n }\n\n return elOffset;\n }\n\n /*\n Return false if the element to position is outside the viewport\n */\n positionElements(hostElement: HTMLElement, targetElement: HTMLElement, placement: string, appendToBody?: boolean):\n boolean {\n const[placementPrimary = 'top', placementSecondary = 'center'] = placement.split('-');\n\n const hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false);\n const targetElStyles = this.getAllStyles(targetElement);\n\n const marginTop = parseFloat(targetElStyles.marginTop);\n const marginBottom = parseFloat(targetElStyles.marginBottom);\n const marginLeft = parseFloat(targetElStyles.marginLeft);\n const marginRight = parseFloat(targetElStyles.marginRight);\n\n let topPosition = 0;\n let leftPosition = 0;\n\n switch (placementPrimary) {\n case 'top':\n topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom));\n break;\n case 'bottom':\n topPosition = (hostElPosition.top + hostElPosition.height);\n break;\n case 'left':\n leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight));\n break;\n case 'right':\n leftPosition = (hostElPosition.left + hostElPosition.width);\n break;\n }\n\n switch (placementSecondary) {\n case 'top':\n topPosition = hostElPosition.top;\n break;\n case 'bottom':\n topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight;\n break;\n case 'left':\n leftPosition = hostElPosition.left;\n break;\n case 'right':\n leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth;\n break;\n case 'center':\n if (placementPrimary === 'top' || placementPrimary === 'bottom') {\n leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2);\n } else {\n topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2);\n }\n break;\n }\n\n /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix\n // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`;\n targetElement.style.transform = `translate(${Math.round(leftPosition)}px, ${Math.round(topPosition)}px)`;\n\n // Check if the targetElement is inside the viewport\n const targetElBCR = targetElement.getBoundingClientRect();\n const html = document.documentElement;\n const windowHeight = window.innerHeight || html.clientHeight;\n const windowWidth = window.innerWidth || html.clientWidth;\n\n return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth &&\n targetElBCR.bottom <= windowHeight;\n }\n}\n\nconst placementSeparator = /\\s+/;\nconst positionService = new Positioning();\n\n/*\n * Accept the placement array and applies the appropriate placement dependent on the viewport.\n * Returns the applied placement.\n * In case of auto placement, placements are selected in order\n * 'top', 'bottom', 'left', 'right',\n * 'top-left', 'top-right',\n * 'bottom-left', 'bottom-right',\n * 'left-top', 'left-bottom',\n * 'right-top', 'right-bottom'.\n * */\nexport function positionElements(\n hostElement: HTMLElement, targetElement: HTMLElement, placement: string | Placement | PlacementArray,\n appendToBody?: boolean, baseClass?: string): Placement {\n let placementVals: Array =\n Array.isArray(placement) ? placement : placement.split(placementSeparator) as Array;\n\n const allowedPlacements = [\n 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom',\n 'right-top', 'right-bottom'\n ];\n\n const classList = targetElement.classList;\n const addClassesToTarget = (targetPlacement: Placement): Array => {\n const[primary, secondary] = targetPlacement.split('-');\n const classes = [];\n if (baseClass) {\n classes.push(`${baseClass}-${primary}`);\n if (secondary) {\n classes.push(`${baseClass}-${primary}-${secondary}`);\n }\n\n classes.forEach((classname) => { classList.add(classname); });\n }\n return classes;\n };\n\n // Remove old placement classes to avoid issues\n if (baseClass) {\n allowedPlacements.forEach((placementToRemove) => { classList.remove(`${baseClass}-${placementToRemove}`); });\n }\n\n // replace auto placement with other placements\n let hasAuto = placementVals.findIndex(val => val === 'auto');\n if (hasAuto >= 0) {\n allowedPlacements.forEach(function(obj) {\n if (placementVals.find(val => val.search('^' + obj) !== -1) == null) {\n placementVals.splice(hasAuto++, 1, obj as Placement);\n }\n });\n }\n\n // coordinates where to position\n\n // Required for transform:\n const style = targetElement.style;\n style.position = 'absolute';\n style.top = '0';\n style.left = '0';\n style['will-change'] = 'transform';\n\n let testPlacement: Placement;\n let isInViewport = false;\n for (testPlacement of placementVals) {\n let addedClasses = addClassesToTarget(testPlacement);\n\n if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) {\n isInViewport = true;\n break;\n }\n\n // Remove the baseClasses for further calculation\n if (baseClass) {\n addedClasses.forEach((classname) => { classList.remove(classname); });\n }\n }\n\n if (!isInViewport) {\n // If nothing match, the first placement is the default one\n testPlacement = placementVals[0];\n addClassesToTarget(testPlacement);\n positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody);\n }\n\n return testPlacement;\n}\n\nexport type Placement = 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' |\n 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';\n\nexport type PlacementArray = Placement | Array| string;\n","import {padNumber, toInteger, isNumber} from '../util/util';\nimport {NgbDateStruct} from './ngb-date-struct';\nimport {Injectable} from '@angular/core';\n\nexport function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY() {\n return new NgbDateISOParserFormatter();\n}\n\n/**\n * An abstract service for parsing and formatting dates for the\n * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive.\n * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the\n * input element.\n *\n * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object.\n * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string`\n * in the input.\n *\n * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI\n * to use an alternative string format or a custom parsing logic.\n *\n * See the [date format overview](#/components/datepicker/overview#date-model) for more details.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY})\nexport abstract class NgbDateParserFormatter {\n /**\n * Parses the given `string` to an `NgbDateStruct`.\n *\n * Implementations should try their best to provide a result, even\n * partial. They must return `null` if the value can't be parsed.\n */\n abstract parse(value: string): NgbDateStruct;\n\n /**\n * Formats the given `NgbDateStruct` to a `string`.\n *\n * Implementations should return an empty string if the given date is `null`,\n * and try their best to provide a partial result if the given date is incomplete or invalid.\n */\n abstract format(date: NgbDateStruct): string;\n}\n\n@Injectable()\nexport class NgbDateISOParserFormatter extends NgbDateParserFormatter {\n parse(value: string): NgbDateStruct {\n if (value) {\n const dateParts = value.trim().split('-');\n if (dateParts.length === 1 && isNumber(dateParts[0])) {\n return {year: toInteger(dateParts[0]), month: null, day: null};\n } else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) {\n return {year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null};\n } else if (dateParts.length === 3 && isNumber(dateParts[0]) && isNumber(dateParts[1]) && isNumber(dateParts[2])) {\n return {year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: toInteger(dateParts[2])};\n }\n }\n return null;\n }\n\n format(date: NgbDateStruct): string {\n return date ?\n `${date.year}-${isNumber(date.month) ? padNumber(date.month) : ''}-${isNumber(date.day) ? padNumber(date.day) : ''}` :\n '';\n }\n}\n","import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n Output,\n Renderer2,\n SimpleChanges,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, Validator} from '@angular/forms';\n\nimport {ngbAutoClose} from '../util/autoclose';\nimport {ngbFocusTrap} from '../util/focus-trap';\nimport {PlacementArray, positionElements} from '../util/positioning';\n\nimport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nimport {NgbDatepicker, NgbDatepickerNavigateEvent} from './datepicker';\nimport {DayTemplateContext} from './datepicker-day-template-context';\nimport {NgbDatepickerService} from './datepicker-service';\nimport {NgbCalendar} from './ngb-calendar';\nimport {NgbDate} from './ngb-date';\nimport {NgbDateParserFormatter} from './ngb-date-parser-formatter';\nimport {NgbDateStruct} from './ngb-date-struct';\n\nconst NGB_DATEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbInputDatepicker),\n multi: true\n};\n\nconst NGB_DATEPICKER_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => NgbInputDatepicker),\n multi: true\n};\n\n/**\n * A directive that allows to stick a datepicker popup to an input field.\n *\n * Manages interaction with the input field itself, does value formatting and provides forms integration.\n */\n@Directive({\n selector: 'input[ngbDatepicker]',\n exportAs: 'ngbDatepicker',\n host: {\n '(input)': 'manualDateChange($event.target.value)',\n '(change)': 'manualDateChange($event.target.value, true)',\n '(blur)': 'onBlur()',\n '[disabled]': 'disabled'\n },\n providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NGB_DATEPICKER_VALIDATOR, NgbDatepickerService]\n})\nexport class NgbInputDatepicker implements OnChanges,\n OnDestroy, ControlValueAccessor, Validator {\n private _cRef: ComponentRef = null;\n private _disabled = false;\n private _model: NgbDate;\n private _inputValue: string;\n private _zoneSubscription: any;\n\n /**\n * Indicates whether the datepicker popup should be closed automatically after date selection / outside click or not.\n *\n * * `true` - the popup will close on both date selection and outside click.\n * * `false` - the popup can only be closed manually via `close()` or `toggle()` methods.\n * * `\"inside\"` - the popup will close on date selection, but not outside clicks.\n * * `\"outside\"` - the popup will close only on the outside click and not on date selection/inside clicks.\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside' = true;\n\n /**\n * The reference to a custom template for the day.\n *\n * Allows to completely override the way a day 'cell' in the calendar is displayed.\n *\n * See [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext) for the data you get inside.\n */\n @Input() dayTemplate: TemplateRef;\n\n /**\n * The callback to pass any arbitrary data to the template cell via the\n * [`DayTemplateContext`](#/components/datepicker/api#DayTemplateContext)'s `data` parameter.\n *\n * `current` is the month that is currently displayed by the datepicker.\n *\n * @since 3.3.0\n */\n @Input() dayTemplateData: (date: NgbDate, current: {year: number, month: number}) => any;\n\n /**\n * The number of months to display.\n */\n @Input() displayMonths: number;\n\n /**\n * The first day of the week.\n *\n * With default calendar we use ISO 8601: 'weekday' is 1=Mon ... 7=Sun.\n */\n @Input() firstDayOfWeek: number;\n\n /**\n * The reference to the custom template for the datepicker footer.\n *\n * @since 3.3.0\n */\n @Input() footerTemplate: TemplateRef;\n\n /**\n * The callback to mark some dates as disabled.\n *\n * It is called for each new date when navigating to a different month.\n *\n * `current` is the month that is currently displayed by the datepicker.\n */\n @Input() markDisabled: (date: NgbDate, current: {year: number, month: number}) => boolean;\n\n /**\n * The earliest date that can be displayed or selected. Also used for form validation.\n *\n * If not provided, 'year' select box will display 10 years before the current month.\n */\n @Input() minDate: NgbDateStruct;\n\n /**\n * The latest date that can be displayed or selected. Also used for form validation.\n *\n * If not provided, 'year' select box will display 10 years after the current month.\n */\n @Input() maxDate: NgbDateStruct;\n\n /**\n * Navigation type.\n *\n * * `\"select\"` - select boxes for month and navigation arrows\n * * `\"arrows\"` - only navigation arrows\n * * `\"none\"` - no navigation visible at all\n */\n @Input() navigation: 'select' | 'arrows' | 'none';\n\n /**\n * The way of displaying days that don't belong to the current month.\n *\n * * `\"visible\"` - days are visible\n * * `\"hidden\"` - days are hidden, white space preserved\n * * `\"collapsed\"` - days are collapsed, so the datepicker height might change between months\n *\n * For the 2+ months view, days in between months are never shown.\n */\n @Input() outsideDays: 'visible' | 'collapsed' | 'hidden';\n\n /**\n * The preferred placement of the datepicker popup.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n\n /**\n * If `true`, weekdays will be displayed.\n */\n @Input() showWeekdays: boolean;\n\n /**\n * If `true`, week numbers will be displayed.\n */\n @Input() showWeekNumbers: boolean;\n\n /**\n * The date to open calendar with.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date is provided, calendar will open with current month.\n *\n * You could use `navigateTo(date)` method as an alternative.\n */\n @Input() startDate: {year: number, month: number, day?: number};\n\n /**\n * A selector specifying the element the datepicker popup should be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * A css selector or html element specifying the element the datepicker popup should be positioned against.\n *\n * By default the input is used as a target.\n *\n * @since 4.2.0\n */\n @Input() positionTarget: string | HTMLElement;\n\n /**\n * An event emitted when user selects a date using keyboard or mouse.\n *\n * The payload of the event is currently selected `NgbDate`.\n *\n * @since 1.1.1\n */\n @Output() dateSelect = new EventEmitter();\n\n /**\n * Event emitted right after the navigation happens and displayed month changes.\n *\n * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info.\n */\n @Output() navigate = new EventEmitter();\n\n /**\n * An event fired after closing datepicker window.\n *\n * @since 4.2.0\n */\n @Output() closed = new EventEmitter();\n\n @Input()\n get disabled() {\n return this._disabled;\n }\n set disabled(value: any) {\n this._disabled = value === '' || (value && value !== 'false');\n\n if (this.isOpen()) {\n this._cRef.instance.setDisabledState(this._disabled);\n }\n }\n\n private _onChange = (_: any) => {};\n private _onTouched = () => {};\n private _validatorChange = () => {};\n\n\n constructor(\n private _parserFormatter: NgbDateParserFormatter, private _elRef: ElementRef,\n private _vcRef: ViewContainerRef, private _renderer: Renderer2, private _cfr: ComponentFactoryResolver,\n private _ngZone: NgZone, private _service: NgbDatepickerService, private _calendar: NgbCalendar,\n private _dateAdapter: NgbDateAdapter, @Inject(DOCUMENT) private _document: any,\n private _changeDetector: ChangeDetectorRef) {\n this._zoneSubscription = _ngZone.onStable.subscribe(() => this._updatePopupPosition());\n }\n\n registerOnChange(fn: (value: any) => any): void { this._onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this._onTouched = fn; }\n\n registerOnValidatorChange(fn: () => void): void { this._validatorChange = fn; }\n\n setDisabledState(isDisabled: boolean): void { this.disabled = isDisabled; }\n\n validate(c: AbstractControl): {[key: string]: any} {\n const value = c.value;\n\n if (value === null || value === undefined) {\n return null;\n }\n\n const ngbDate = this._fromDateStruct(this._dateAdapter.fromModel(value));\n\n if (!this._calendar.isValid(ngbDate)) {\n return {'ngbDate': {invalid: c.value}};\n }\n\n if (this.minDate && ngbDate.before(NgbDate.from(this.minDate))) {\n return {'ngbDate': {requiredBefore: this.minDate}};\n }\n\n if (this.maxDate && ngbDate.after(NgbDate.from(this.maxDate))) {\n return {'ngbDate': {requiredAfter: this.maxDate}};\n }\n }\n\n writeValue(value) {\n this._model = this._fromDateStruct(this._dateAdapter.fromModel(value));\n this._writeModelValue(this._model);\n }\n\n manualDateChange(value: string, updateView = false) {\n const inputValueChanged = value !== this._inputValue;\n if (inputValueChanged) {\n this._inputValue = value;\n this._model = this._fromDateStruct(this._parserFormatter.parse(value));\n }\n if (inputValueChanged || !updateView) {\n this._onChange(this._model ? this._dateAdapter.toModel(this._model) : (value === '' ? null : value));\n }\n if (updateView && this._model) {\n this._writeModelValue(this._model);\n }\n }\n\n isOpen() { return !!this._cRef; }\n\n /**\n * Opens the datepicker popup.\n *\n * If the related form control contains a valid date, the corresponding month will be opened.\n */\n open() {\n if (!this.isOpen()) {\n const cf = this._cfr.resolveComponentFactory(NgbDatepicker);\n this._cRef = this._vcRef.createComponent(cf);\n\n this._applyPopupStyling(this._cRef.location.nativeElement);\n this._applyDatepickerInputs(this._cRef.instance);\n this._subscribeForDatepickerOutputs(this._cRef.instance);\n this._cRef.instance.ngOnInit();\n this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model));\n\n // date selection event handling\n this._cRef.instance.registerOnChange((selectedDate) => {\n this.writeValue(selectedDate);\n this._onChange(selectedDate);\n this._onTouched();\n });\n\n this._cRef.changeDetectorRef.detectChanges();\n\n this._cRef.instance.setDisabledState(this.disabled);\n\n if (this.container === 'body') {\n window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement);\n }\n\n // focus handling\n ngbFocusTrap(this._cRef.location.nativeElement, this.closed, true);\n this._cRef.instance.focus();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.closed, [],\n [this._elRef.nativeElement, this._cRef.location.nativeElement]);\n }\n }\n\n /**\n * Closes the datepicker popup.\n */\n close() {\n if (this.isOpen()) {\n this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView));\n this._cRef = null;\n this.closed.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the datepicker popup.\n */\n toggle() {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Navigates to the provided date.\n *\n * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.\n * If nothing or invalid date provided calendar will open current month.\n *\n * Use the `[startDate]` input as an alternative.\n */\n navigateTo(date?: {year: number, month: number, day?: number}) {\n if (this.isOpen()) {\n this._cRef.instance.navigateTo(date);\n }\n }\n\n onBlur() { this._onTouched(); }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['minDate'] || changes['maxDate']) {\n this._validatorChange();\n }\n }\n\n ngOnDestroy() {\n this.close();\n this._zoneSubscription.unsubscribe();\n }\n\n private _applyDatepickerInputs(datepickerInstance: NgbDatepicker): void {\n ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate',\n 'maxDate', 'navigation', 'outsideDays', 'showNavigation', 'showWeekdays', 'showWeekNumbers']\n .forEach((optionName: string) => {\n if (this[optionName] !== undefined) {\n datepickerInstance[optionName] = this[optionName];\n }\n });\n datepickerInstance.startDate = this.startDate || this._model;\n }\n\n private _applyPopupStyling(nativeElement: any) {\n this._renderer.addClass(nativeElement, 'dropdown-menu');\n this._renderer.addClass(nativeElement, 'show');\n\n if (this.container === 'body') {\n this._renderer.addClass(nativeElement, 'ngb-dp-body');\n }\n }\n\n private _subscribeForDatepickerOutputs(datepickerInstance: NgbDatepicker) {\n datepickerInstance.navigate.subscribe(navigateEvent => this.navigate.emit(navigateEvent));\n datepickerInstance.select.subscribe(date => {\n this.dateSelect.emit(date);\n if (this.autoClose === true || this.autoClose === 'inside') {\n this.close();\n }\n });\n }\n\n private _writeModelValue(model: NgbDate) {\n const value = this._parserFormatter.format(model);\n this._inputValue = value;\n this._renderer.setProperty(this._elRef.nativeElement, 'value', value);\n if (this.isOpen()) {\n this._cRef.instance.writeValue(this._dateAdapter.toModel(model));\n this._onTouched();\n }\n }\n\n private _fromDateStruct(date: NgbDateStruct): NgbDate {\n const ngbDate = date ? new NgbDate(date.year, date.month, date.day) : null;\n return this._calendar.isValid(ngbDate) ? ngbDate : null;\n }\n\n private _updatePopupPosition() {\n if (!this._cRef) {\n return;\n }\n\n let hostElement: HTMLElement;\n if (typeof this.positionTarget === 'string') {\n hostElement = window.document.querySelector(this.positionTarget);\n } else if (this.positionTarget instanceof HTMLElement) {\n hostElement = this.positionTarget;\n } else {\n hostElement = this._elRef.nativeElement;\n }\n\n if (this.positionTarget && !hostElement) {\n throw new Error('ngbDatepicker could not find element declared in [positionTarget] to position against.');\n }\n\n positionElements(hostElement, this._cRef.location.nativeElement, this.placement, this.container === 'body');\n }\n}\n","import {ChangeDetectionStrategy, Component, Input, ViewEncapsulation} from '@angular/core';\nimport {NgbDate} from './ngb-date';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: '[ngbDatepickerDayView]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-day-view.scss'],\n host: {\n 'class': 'btn-light',\n '[class.bg-primary]': 'selected',\n '[class.text-white]': 'selected',\n '[class.text-muted]': 'isMuted()',\n '[class.outside]': 'isMuted()',\n '[class.active]': 'focused'\n },\n template: `{{ i18n.getDayNumerals(date) }}`\n})\nexport class NgbDatepickerDayView {\n @Input() currentMonth: number;\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() focused: boolean;\n @Input() selected: boolean;\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n isMuted() { return !this.selected && (this.date.month !== this.currentMonth || this.disabled); }\n}\n","import {Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {NgbDate} from './ngb-date';\nimport {toInteger} from '../util/util';\nimport {NgbDatepickerI18n} from './datepicker-i18n';\n\n@Component({\n selector: 'ngb-datepicker-navigation-select',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./datepicker-navigation-select.scss'],\n template: `\n \n \n \n \n \n `\n})\nexport class NgbDatepickerNavigationSelect {\n @Input() date: NgbDate;\n @Input() disabled: boolean;\n @Input() months: number[];\n @Input() years: number[];\n\n @Output() select = new EventEmitter();\n\n constructor(public i18n: NgbDatepickerI18n) {}\n\n changeMonth(month: string) { this.select.emit(new NgbDate(this.date.year, toInteger(month), 1)); }\n\n changeYear(year: string) { this.select.emit(new NgbDate(toInteger(year), this.date.month, 1)); }\n}\n","import {NgbDate} from '../ngb-date';\nimport {NgbPeriod, NgbCalendar} from '../ngb-calendar';\nimport {Injectable} from '@angular/core';\nimport {isNumber} from '../../util/util';\n\n@Injectable()\nexport abstract class NgbCalendarHijri extends NgbCalendar {\n /**\n * Returns the number of days in a specific Hijri month.\n * `month` is 1 for Muharram, 2 for Safar, etc.\n * `year` is any Hijri year.\n */\n abstract getDaysPerMonth(month: number, year: number): number;\n\n /**\n * Returns the equivalent Hijri date value for a give input Gregorian date.\n * `gDate` is s JS Date to be converted to Hijri.\n */\n abstract fromGregorian(gDate: Date): NgbDate;\n\n /**\n * Converts the current Hijri date to Gregorian.\n */\n abstract toGregorian(hDate: NgbDate): Date;\n\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date = this._setYear(date, date.year + number);\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = this._setMonth(date, date.month + number);\n date.day = 1;\n return date;\n case 'd':\n return this._setDay(date, date.day + number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = this.toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n const date = week[thursdayIndex];\n\n const jsDate = this.toGregorian(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n const MuhDate = this.toGregorian(new NgbDate(date.year, 1, 1)); // Compare with Muharram 1\n return Math.floor(Math.round((time - MuhDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return this.fromGregorian(new Date()); }\n\n\n isValid(date: NgbDate): boolean {\n return date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day) &&\n !isNaN(this.toGregorian(date).getTime());\n }\n\n private _setDay(date: NgbDate, day: number): NgbDate {\n day = +day;\n let mDays = this.getDaysPerMonth(date.month, date.year);\n if (day <= 0) {\n while (day <= 0) {\n date = this._setMonth(date, date.month - 1);\n mDays = this.getDaysPerMonth(date.month, date.year);\n day += mDays;\n }\n } else if (day > mDays) {\n while (day > mDays) {\n day -= mDays;\n date = this._setMonth(date, date.month + 1);\n mDays = this.getDaysPerMonth(date.month, date.year);\n }\n }\n date.day = day;\n return date;\n }\n\n private _setMonth(date: NgbDate, month: number): NgbDate {\n month = +month;\n date.year = date.year + Math.floor((month - 1) / 12);\n date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1;\n return date;\n }\n\n private _setYear(date: NgbDate, year: number): NgbDate {\n date.year = +year;\n return date;\n }\n}\n","import {NgbCalendarHijri} from './ngb-calendar-hijri';\nimport {NgbDate} from '../ngb-date';\nimport {Injectable} from '@angular/core';\n\n/**\n * Checks if islamic year is a leap year\n */\nfunction isIslamicLeapYear(hYear: number): boolean {\n return (14 + 11 * hYear) % 30 < 11;\n}\n\n/**\n * Checks if gregorian years is a leap year\n */\nfunction isGregorianLeapYear(gDate: Date): boolean {\n const year = gDate.getFullYear();\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n}\n\n/**\n * Returns the start of Hijri Month.\n * `hMonth` is 0 for Muharram, 1 for Safar, etc.\n * `hYear` is any Hijri hYear.\n */\nfunction getIslamicMonthStart(hYear: number, hMonth: number): number {\n return Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30.0);\n}\n\n/**\n * Returns the start of Hijri year.\n * `year` is any Hijri year.\n */\nfunction getIslamicYearStart(year: number): number {\n return (year - 1) * 354 + Math.floor((3 + 11 * year) / 30.0);\n}\n\nfunction mod(a: number, b: number): number {\n return a - b * Math.floor(a / b);\n}\n\n/**\n * The civil calendar is one type of Hijri calendars used in islamic countries.\n * Uses a fixed cycle of alternating 29- and 30-day months,\n * with a leap day added to the last month of 11 out of every 30 years.\n * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types\n * All the calculations here are based on the equations from \"Calendrical Calculations\" By Edward M. Reingold, Nachum\n * Dershowitz.\n */\n\nconst GREGORIAN_EPOCH = 1721425.5;\nconst ISLAMIC_EPOCH = 1948439.5;\n\n@Injectable()\nexport class NgbCalendarIslamicCivil extends NgbCalendarHijri {\n /**\n * Returns the equivalent islamic(civil) date value for a give input Gregorian date.\n * `gDate` is a JS Date to be converted to Hijri.\n */\n fromGregorian(gDate: Date): NgbDate {\n const gYear = gDate.getFullYear(), gMonth = gDate.getMonth(), gDay = gDate.getDate();\n\n let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) +\n -Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) +\n Math.floor(\n (367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gDate) ? -1 : -2) + gDay);\n julianDay = Math.floor(julianDay) + 0.5;\n\n const days = julianDay - ISLAMIC_EPOCH;\n const hYear = Math.floor((30 * days + 10646) / 10631.0);\n let hMonth = Math.ceil((days - 29 - getIslamicYearStart(hYear)) / 29.5);\n hMonth = Math.min(hMonth, 11);\n const hDay = Math.ceil(days - getIslamicMonthStart(hYear, hMonth)) + 1;\n return new NgbDate(hYear, hMonth + 1, hDay);\n }\n\n /**\n * Returns the equivalent JS date value for a give input islamic(civil) date.\n * `hDate` is an islamic(civil) date to be converted to Gregorian.\n */\n toGregorian(hDate: NgbDate): Date {\n const hYear = hDate.year;\n const hMonth = hDate.month - 1;\n const hDay = hDate.day;\n const julianDay =\n hDay + Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30) + ISLAMIC_EPOCH - 1;\n\n const wjd = Math.floor(julianDay - 0.5) + 0.5, depoch = wjd - GREGORIAN_EPOCH,\n quadricent = Math.floor(depoch / 146097), dqc = mod(depoch, 146097), cent = Math.floor(dqc / 36524),\n dcent = mod(dqc, 36524), quad = Math.floor(dcent / 1461), dquad = mod(dcent, 1461),\n yindex = Math.floor(dquad / 365);\n let year = quadricent * 400 + cent * 100 + quad * 4 + yindex;\n if (!(cent === 4 || yindex === 4)) {\n year++;\n }\n\n const gYearStart = GREGORIAN_EPOCH + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400);\n\n const yearday = wjd - gYearStart;\n\n const tjd = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400) + Math.floor(739 / 12 + (isGregorianLeapYear(new Date(year, 3, 1)) ? -1 : -2) + 1);\n\n const leapadj = wjd < tjd ? 0 : isGregorianLeapYear(new Date(year, 3, 1)) ? 1 : 2;\n\n const month = Math.floor(((yearday + leapadj) * 12 + 373) / 367);\n const tjd2 = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +\n Math.floor((year - 1) / 400) +\n Math.floor(\n (367 * month - 362) / 12 + (month <= 2 ? 0 : isGregorianLeapYear(new Date(year, month - 1, 1)) ? -1 : -2) +\n 1);\n\n const day = wjd - tjd2 + 1;\n\n return new Date(year, month - 1, day);\n }\n\n /**\n * Returns the number of days in a specific Hijri month.\n * `month` is 1 for Muharram, 2 for Safar, etc.\n * `year` is any Hijri year.\n */\n getDaysPerMonth(month: number, year: number): number {\n year = year + Math.floor(month / 13);\n month = ((month - 1) % 12) + 1;\n let length = 29 + month % 2;\n if (month === 12 && isIslamicLeapYear(year)) {\n length++;\n }\n return length;\n }\n}\n","import {NgbCalendarIslamicCivil} from './ngb-calendar-islamic-civil';\nimport {NgbDate} from '../ngb-date';\nimport {Injectable} from '@angular/core';\n\n/**\n * Umalqura calendar is one type of Hijri calendars used in islamic countries.\n * This Calendar is used by Saudi Arabia for administrative purpose.\n * Unlike tabular calendars, the algorithm involves astronomical calculation, but it's still deterministic.\n * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types\n */\n\nconst GREGORIAN_FIRST_DATE = new Date(1882, 10, 12);\nconst GREGORIAN_LAST_DATE = new Date(2174, 10, 25);\nconst HIJRI_BEGIN = 1300;\nconst HIJRI_END = 1600;\nconst ONE_DAY = 1000 * 60 * 60 * 24;\n\nconst MONTH_LENGTH = [\n // 1300-1304\n '101010101010', '110101010100', '111011001001', '011011010100', '011011101010',\n // 1305-1309\n '001101101100', '101010101101', '010101010101', '011010101001', '011110010010',\n // 1310-1314\n '101110101001', '010111010100', '101011011010', '010101011100', '110100101101',\n // 1315-1319\n '011010010101', '011101001010', '101101010100', '101101101010', '010110101101',\n // 1320-1324\n '010010101110', '101001001111', '010100010111', '011010001011', '011010100101',\n // 1325-1329\n '101011010101', '001011010110', '100101011011', '010010011101', '101001001101',\n // 1330-1334\n '110100100110', '110110010101', '010110101100', '100110110110', '001010111010',\n // 1335-1339\n '101001011011', '010100101011', '101010010101', '011011001010', '101011101001',\n // 1340-1344\n '001011110100', '100101110110', '001010110110', '100101010110', '101011001010',\n // 1345-1349\n '101110100100', '101111010010', '010111011001', '001011011100', '100101101101',\n // 1350-1354\n '010101001101', '101010100101', '101101010010', '101110100101', '010110110100',\n // 1355-1359\n '100110110110', '010101010111', '001010010111', '010101001011', '011010100011',\n // 1360-1364\n '011101010010', '101101100101', '010101101010', '101010101011', '010100101011',\n // 1365-1369\n '110010010101', '110101001010', '110110100101', '010111001010', '101011010110',\n // 1370-1374\n '100101010111', '010010101011', '100101001011', '101010100101', '101101010010',\n // 1375-1379\n '101101101010', '010101110101', '001001110110', '100010110111', '010001011011',\n // 1380-1384\n '010101010101', '010110101001', '010110110100', '100111011010', '010011011101',\n // 1385-1389\n '001001101110', '100100110110', '101010101010', '110101010100', '110110110010',\n // 1390-1394\n '010111010101', '001011011010', '100101011011', '010010101011', '101001010101',\n // 1395-1399\n '101101001001', '101101100100', '101101110001', '010110110100', '101010110101',\n // 1400-1404\n '101001010101', '110100100101', '111010010010', '111011001001', '011011010100',\n // 1405-1409\n '101011101001', '100101101011', '010010101011', '101010010011', '110101001001',\n // 1410-1414\n '110110100100', '110110110010', '101010111001', '010010111010', '101001011011',\n // 1415-1419\n '010100101011', '101010010101', '101100101010', '101101010101', '010101011100',\n // 1420-1424\n '010010111101', '001000111101', '100100011101', '101010010101', '101101001010',\n // 1425-1429\n '101101011010', '010101101101', '001010110110', '100100111011', '010010011011',\n // 1430-1434\n '011001010101', '011010101001', '011101010100', '101101101010', '010101101100',\n // 1435-1439\n '101010101101', '010101010101', '101100101001', '101110010010', '101110101001',\n // 1440-1444\n '010111010100', '101011011010', '010101011010', '101010101011', '010110010101',\n // 1445-1449\n '011101001001', '011101100100', '101110101010', '010110110101', '001010110110',\n // 1450-1454\n '101001010110', '111001001101', '101100100101', '101101010010', '101101101010',\n // 1455-1459\n '010110101101', '001010101110', '100100101111', '010010010111', '011001001011',\n // 1460-1464\n '011010100101', '011010101100', '101011010110', '010101011101', '010010011101',\n // 1465-1469\n '101001001101', '110100010110', '110110010101', '010110101010', '010110110101',\n // 1470-1474\n '001011011010', '100101011011', '010010101101', '010110010101', '011011001010',\n // 1475-1479\n '011011100100', '101011101010', '010011110101', '001010110110', '100101010110',\n // 1480-1484\n '101010101010', '101101010100', '101111010010', '010111011001', '001011101010',\n // 1485-1489\n '100101101101', '010010101101', '101010010101', '101101001010', '101110100101',\n // 1490-1494\n '010110110010', '100110110101', '010011010110', '101010010111', '010101000111',\n // 1495-1499\n '011010010011', '011101001001', '101101010101', '010101101010', '101001101011',\n // 1500-1504\n '010100101011', '101010001011', '110101000110', '110110100011', '010111001010',\n // 1505-1509\n '101011010110', '010011011011', '001001101011', '100101001011', '101010100101',\n // 1510-1514\n '101101010010', '101101101001', '010101110101', '000101110110', '100010110111',\n // 1515-1519\n '001001011011', '010100101011', '010101100101', '010110110100', '100111011010',\n // 1520-1524\n '010011101101', '000101101101', '100010110110', '101010100110', '110101010010',\n // 1525-1529\n '110110101001', '010111010100', '101011011010', '100101011011', '010010101011',\n // 1530-1534\n '011001010011', '011100101001', '011101100010', '101110101001', '010110110010',\n // 1535-1539\n '101010110101', '010101010101', '101100100101', '110110010010', '111011001001',\n // 1540-1544\n '011011010010', '101011101001', '010101101011', '010010101011', '101001010101',\n // 1545-1549\n '110100101001', '110101010100', '110110101010', '100110110101', '010010111010',\n // 1550-1554\n '101000111011', '010010011011', '101001001101', '101010101010', '101011010101',\n // 1555-1559\n '001011011010', '100101011101', '010001011110', '101000101110', '110010011010',\n // 1560-1564\n '110101010101', '011010110010', '011010111001', '010010111010', '101001011101',\n // 1565-1569\n '010100101101', '101010010101', '101101010010', '101110101000', '101110110100',\n // 1570-1574\n '010110111001', '001011011010', '100101011010', '101101001010', '110110100100',\n // 1575-1579\n '111011010001', '011011101000', '101101101010', '010101101101', '010100110101',\n // 1580-1584\n '011010010101', '110101001010', '110110101000', '110111010100', '011011011010',\n // 1585-1589\n '010101011011', '001010011101', '011000101011', '101100010101', '101101001010',\n // 1590-1594\n '101110010101', '010110101010', '101010101110', '100100101110', '110010001111',\n // 1595-1599\n '010100100111', '011010010101', '011010101010', '101011010110', '010101011101',\n // 1600\n '001010011101'\n];\n\nfunction getDaysDiff(date1: Date, date2: Date): number {\n // Ignores the time part in date1 and date2:\n const time1 = Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate());\n const time2 = Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate());\n const diff = Math.abs(time1 - time2);\n return Math.round(diff / ONE_DAY);\n}\n\n@Injectable()\nexport class NgbCalendarIslamicUmalqura extends NgbCalendarIslamicCivil {\n /**\n * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date.\n * `gdate` is s JS Date to be converted to Hijri.\n */\n fromGregorian(gDate: Date): NgbDate {\n let hDay = 1, hMonth = 0, hYear = 1300;\n let daysDiff = getDaysDiff(gDate, GREGORIAN_FIRST_DATE);\n if (gDate.getTime() - GREGORIAN_FIRST_DATE.getTime() >= 0 && gDate.getTime() - GREGORIAN_LAST_DATE.getTime() <= 0) {\n let year = 1300;\n for (let i = 0; i < MONTH_LENGTH.length; i++, year++) {\n for (let j = 0; j < 12; j++) {\n let numOfDays = +MONTH_LENGTH[i][j] + 29;\n if (daysDiff <= numOfDays) {\n hDay = daysDiff + 1;\n if (hDay > numOfDays) {\n hDay = 1;\n j++;\n }\n if (j > 11) {\n j = 0;\n year++;\n }\n hMonth = j;\n hYear = year;\n return new NgbDate(hYear, hMonth + 1, hDay);\n }\n daysDiff = daysDiff - numOfDays;\n }\n }\n } else {\n return super.fromGregorian(gDate);\n }\n }\n /**\n * Converts the current Hijri date to Gregorian.\n */\n toGregorian(hDate: NgbDate): Date {\n const hYear = hDate.year;\n const hMonth = hDate.month - 1;\n const hDay = hDate.day;\n let gDate = new Date(GREGORIAN_FIRST_DATE);\n let dayDiff = hDay - 1;\n if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) {\n for (let y = 0; y < hYear - HIJRI_BEGIN; y++) {\n for (let m = 0; m < 12; m++) {\n dayDiff += +MONTH_LENGTH[y][m] + 29;\n }\n }\n for (let m = 0; m < hMonth; m++) {\n dayDiff += +MONTH_LENGTH[hYear - HIJRI_BEGIN][m] + 29;\n }\n gDate.setDate(GREGORIAN_FIRST_DATE.getDate() + dayDiff);\n } else {\n gDate = super.toGregorian(hDate);\n }\n return gDate;\n }\n /**\n * Returns the number of days in a specific Hijri hMonth.\n * `hMonth` is 1 for Muharram, 2 for Safar, etc.\n * `hYear` is any Hijri hYear.\n */\n getDaysPerMonth(hMonth: number, hYear: number): number {\n if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) {\n const pos = hYear - HIJRI_BEGIN;\n return +MONTH_LENGTH[pos][hMonth - 1] + 29;\n }\n return super.getDaysPerMonth(hMonth, hYear);\n }\n}\n","import {NgbDate} from '../ngb-date';\n\n/**\n * Returns the equivalent JS date value for a give input Jalali date.\n * `jalaliDate` is an Jalali date to be converted to Gregorian.\n */\nexport function toGregorian(jalaliDate: NgbDate): Date {\n let jdn = jalaliToJulian(jalaliDate.year, jalaliDate.month, jalaliDate.day);\n let date = julianToGregorian(jdn);\n date.setHours(6, 30, 3, 200);\n return date;\n}\n\n/**\n * Returns the equivalent jalali date value for a give input Gregorian date.\n * `gdate` is a JS Date to be converted to jalali.\n * utc to local\n */\nexport function fromGregorian(gdate: Date): NgbDate {\n let g2d = gregorianToJulian(gdate.getFullYear(), gdate.getMonth() + 1, gdate.getDate());\n return julianToJalali(g2d);\n}\n\nexport function setJalaliYear(date: NgbDate, yearValue: number): NgbDate {\n date.year = +yearValue;\n return date;\n}\n\nexport function setJalaliMonth(date: NgbDate, month: number): NgbDate {\n month = +month;\n date.year = date.year + Math.floor((month - 1) / 12);\n date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1;\n return date;\n}\n\nexport function setJalaliDay(date: NgbDate, day: number): NgbDate {\n let mDays = getDaysPerMonth(date.month, date.year);\n if (day <= 0) {\n while (day <= 0) {\n date = setJalaliMonth(date, date.month - 1);\n mDays = getDaysPerMonth(date.month, date.year);\n day += mDays;\n }\n } else if (day > mDays) {\n while (day > mDays) {\n day -= mDays;\n date = setJalaliMonth(date, date.month + 1);\n mDays = getDaysPerMonth(date.month, date.year);\n }\n }\n date.day = day;\n return date;\n}\n\nfunction mod(a: number, b: number): number {\n return a - b * Math.floor(a / b);\n}\n\nfunction div(a: number, b: number) {\n return Math.trunc(a / b);\n}\n\n/*\n This function determines if the Jalali (Persian) year is\n leap (366-day long) or is the common year (365 days), and\n finds the day in March (Gregorian calendar) of the first\n day of the Jalali year (jalaliYear).\n @param jalaliYear Jalali calendar year (-61 to 3177)\n @return\n leap: number of years since the last leap year (0 to 4)\n gYear: Gregorian year of the beginning of Jalali year\n march: the March day of Farvardin the 1st (1st day of jalaliYear)\n @see: http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm\n @see: http://www.fourmilab.ch/documents/calendar/\n */\nfunction jalCal(jalaliYear: number) {\n // Jalali years starting the 33-year rule.\n let breaks =\n [-61, 9, 38, 199, 426, 686, 756, 818, 1111, 1181, 1210, 1635, 2060, 2097, 2192, 2262, 2324, 2394, 2456, 3178];\n const breaksLength = breaks.length;\n const gYear = jalaliYear + 621;\n let leapJ = -14;\n let jp = breaks[0];\n\n if (jalaliYear < jp || jalaliYear >= breaks[breaksLength - 1]) {\n throw new Error('Invalid Jalali year ' + jalaliYear);\n }\n\n // Find the limiting years for the Jalali year jalaliYear.\n let jump;\n for (let i = 1; i < breaksLength; i += 1) {\n const jm = breaks[i];\n jump = jm - jp;\n if (jalaliYear < jm) {\n break;\n }\n leapJ = leapJ + div(jump, 33) * 8 + div(mod(jump, 33), 4);\n jp = jm;\n }\n let n = jalaliYear - jp;\n\n // Find the number of leap years from AD 621 to the beginning\n // of the current Jalali year in the Persian calendar.\n leapJ = leapJ + div(n, 33) * 8 + div(mod(n, 33) + 3, 4);\n if (mod(jump, 33) === 4 && jump - n === 4) {\n leapJ += 1;\n }\n\n // And the same in the Gregorian calendar (until the year gYear).\n const leapG = div(gYear, 4) - div((div(gYear, 100) + 1) * 3, 4) - 150;\n\n // Determine the Gregorian date of Farvardin the 1st.\n const march = 20 + leapJ - leapG;\n\n // Find how many years have passed since the last leap year.\n if (jump - n < 6) {\n n = n - jump + div(jump + 4, 33) * 33;\n }\n let leap = mod(mod(n + 1, 33) - 1, 4);\n if (leap === -1) {\n leap = 4;\n }\n\n return {leap: leap, gy: gYear, march: march};\n}\n\n/*\n Calculates Gregorian and Julian calendar dates from the Julian Day number\n (jdn) for the period since jdn=-34839655 (i.e. the year -100100 of both\n calendars) to some millions years ahead of the present.\n @param jdn Julian Day number\n @return\n gYear: Calendar year (years BC numbered 0, -1, -2, ...)\n gMonth: Calendar month (1 to 12)\n gDay: Calendar day of the month M (1 to 28/29/30/31)\n */\nfunction julianToGregorian(julianDayNumber: number) {\n let j = 4 * julianDayNumber + 139361631;\n j = j + div(div(4 * julianDayNumber + 183187720, 146097) * 3, 4) * 4 - 3908;\n const i = div(mod(j, 1461), 4) * 5 + 308;\n const gDay = div(mod(i, 153), 5) + 1;\n const gMonth = mod(div(i, 153), 12) + 1;\n const gYear = div(j, 1461) - 100100 + div(8 - gMonth, 6);\n\n return new Date(gYear, gMonth - 1, gDay);\n}\n\n/*\n Converts a date of the Jalali calendar to the Julian Day number.\n @param jy Jalali year (1 to 3100)\n @param jm Jalali month (1 to 12)\n @param jd Jalali day (1 to 29/31)\n @return Julian Day number\n */\nfunction gregorianToJulian(gy: number, gm: number, gd: number) {\n let d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod(gm + 9, 12) + 2, 5) + gd - 34840408;\n d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752;\n return d;\n}\n\n/*\n Converts the Julian Day number to a date in the Jalali calendar.\n @param julianDayNumber Julian Day number\n @return\n jalaliYear: Jalali year (1 to 3100)\n jalaliMonth: Jalali month (1 to 12)\n jalaliDay: Jalali day (1 to 29/31)\n */\nfunction julianToJalali(julianDayNumber: number) {\n let gy = julianToGregorian(julianDayNumber).getFullYear() // Calculate Gregorian year (gy).\n ,\n jalaliYear = gy - 621, r = jalCal(jalaliYear), gregorianDay = gregorianToJulian(gy, 3, r.march), jalaliDay,\n jalaliMonth, numberOfDays;\n\n // Find number of days that passed since 1 Farvardin.\n numberOfDays = julianDayNumber - gregorianDay;\n if (numberOfDays >= 0) {\n if (numberOfDays <= 185) {\n // The first 6 months.\n jalaliMonth = 1 + div(numberOfDays, 31);\n jalaliDay = mod(numberOfDays, 31) + 1;\n return new NgbDate(jalaliYear, jalaliMonth, jalaliDay);\n } else {\n // The remaining months.\n numberOfDays -= 186;\n }\n } else {\n // Previous Jalali year.\n jalaliYear -= 1;\n numberOfDays += 179;\n if (r.leap === 1) {\n numberOfDays += 1;\n }\n }\n jalaliMonth = 7 + div(numberOfDays, 30);\n jalaliDay = mod(numberOfDays, 30) + 1;\n\n return new NgbDate(jalaliYear, jalaliMonth, jalaliDay);\n}\n\n/*\n Converts a date of the Jalali calendar to the Julian Day number.\n @param jYear Jalali year (1 to 3100)\n @param jMonth Jalali month (1 to 12)\n @param jDay Jalali day (1 to 29/31)\n @return Julian Day number\n */\nfunction jalaliToJulian(jYear: number, jMonth: number, jDay: number) {\n let r = jalCal(jYear);\n return gregorianToJulian(r.gy, 3, r.march) + (jMonth - 1) * 31 - div(jMonth, 7) * (jMonth - 7) + jDay - 1;\n}\n\n/**\n * Returns the number of days in a specific jalali month.\n */\nfunction getDaysPerMonth(month: number, year: number): number {\n if (month <= 6) {\n return 31;\n }\n if (month <= 11) {\n return 30;\n }\n if (jalCal(year).leap === 0) {\n return 30;\n }\n return 29;\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDate} from '../ngb-date';\nimport {NgbCalendar, NgbPeriod} from '../ngb-calendar';\nimport {isInteger} from '../../util/util';\n\nimport {fromGregorian, setJalaliDay, setJalaliMonth, setJalaliYear, toGregorian} from './jalali';\n\n@Injectable()\nexport class NgbCalendarPersian extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }\n\n getWeeksPerMonth() { return 6; }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date = setJalaliYear(date, date.year + number);\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = setJalaliMonth(date, date.month + number);\n date.day = 1;\n return date;\n case 'd':\n return setJalaliDay(date, date.day + number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n // in JS Date Sun=0, in ISO 8601 Sun=7\n if (firstDayOfWeek === 7) {\n firstDayOfWeek = 0;\n }\n\n const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;\n const date = week[thursdayIndex];\n\n const jsDate = toGregorian(date);\n jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday\n const time = jsDate.getTime();\n const startDate = toGregorian(new NgbDate(date.year, 1, 1));\n return Math.floor(Math.round((time - startDate.getTime()) / 86400000) / 7) + 1;\n }\n\n getToday(): NgbDate { return fromGregorian(new Date()); }\n\n isValid(date: NgbDate): boolean {\n return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) &&\n !isNaN(toGregorian(date).getTime());\n }\n}\n","import {NgbDate} from '../ngb-date';\nimport {NgbDateStruct} from '../ngb-date-struct';\n\nconst PARTS_PER_HOUR = 1080;\nconst PARTS_PER_DAY = 24 * PARTS_PER_HOUR;\nconst PARTS_FRACTIONAL_MONTH = 12 * PARTS_PER_HOUR + 793;\nconst PARTS_PER_MONTH = 29 * PARTS_PER_DAY + PARTS_FRACTIONAL_MONTH;\nconst BAHARAD = 11 * PARTS_PER_HOUR + 204;\nconst HEBREW_DAY_ON_JAN_1_1970 = 2092591;\nconst GREGORIAN_EPOCH = 1721425.5;\n\nfunction isGregorianLeapYear(year: number): boolean {\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n}\n\nfunction numberOfFirstDayInYear(year: number): number {\n let monthsBeforeYear = Math.floor((235 * year - 234) / 19);\n let fractionalMonthsBeforeYear = monthsBeforeYear * PARTS_FRACTIONAL_MONTH + BAHARAD;\n let dayNumber = monthsBeforeYear * 29 + Math.floor(fractionalMonthsBeforeYear / PARTS_PER_DAY);\n let timeOfDay = fractionalMonthsBeforeYear % PARTS_PER_DAY;\n\n let dayOfWeek = dayNumber % 7; // 0 == Monday\n\n if (dayOfWeek === 2 || dayOfWeek === 4 || dayOfWeek === 6) {\n dayNumber++;\n dayOfWeek = dayNumber % 7;\n }\n if (dayOfWeek === 1 && timeOfDay > 15 * PARTS_PER_HOUR + 204 && !isHebrewLeapYear(year)) {\n dayNumber += 2;\n } else if (dayOfWeek === 0 && timeOfDay > 21 * PARTS_PER_HOUR + 589 && isHebrewLeapYear(year - 1)) {\n dayNumber++;\n }\n return dayNumber;\n}\n\nfunction getDaysInGregorianMonth(month: number, year: number): number {\n let days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n if (isGregorianLeapYear(year)) {\n days[1]++;\n }\n return days[month - 1];\n}\n\nfunction getHebrewMonths(year: number): number {\n return isHebrewLeapYear(year) ? 13 : 12;\n}\n\n/**\n * Returns the number of days in a specific Hebrew year.\n * `year` is any Hebrew year.\n */\nfunction getDaysInHebrewYear(year: number): number {\n return numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year);\n}\n\nexport function isHebrewLeapYear(year: number): boolean {\n let b = (year * 12 + 17) % 19;\n return b >= ((b < 0) ? -7 : 12);\n}\n\n/**\n * Returns the number of days in a specific Hebrew month.\n * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months.\n * `year` is any Hebrew year.\n */\nexport function getDaysInHebrewMonth(month: number, year: number): number {\n let yearLength = numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year);\n let yearType = (yearLength <= 380 ? yearLength : (yearLength - 30)) - 353;\n let leapYear = isHebrewLeapYear(year);\n let daysInMonth = leapYear ? [30, 29, 29, 29, 30, 30, 29, 30, 29, 30, 29, 30, 29] :\n [30, 29, 29, 29, 30, 29, 30, 29, 30, 29, 30, 29];\n if (yearType > 0) {\n daysInMonth[2]++; // Kislev gets an extra day in normal or complete years.\n }\n if (yearType > 1) {\n daysInMonth[1]++; // Heshvan gets an extra day in complete years only.\n }\n return daysInMonth[month - 1];\n}\n\nexport function getDayNumberInHebrewYear(date: NgbDate): number {\n let numberOfDay = 0;\n for (let i = 1; i < date.month; i++) {\n numberOfDay += getDaysInHebrewMonth(i, date.year);\n }\n return numberOfDay + date.day;\n}\n\nexport function setHebrewMonth(date: NgbDate, val: number): NgbDate {\n let after = val >= 0;\n if (!after) {\n val = -val;\n }\n while (val > 0) {\n if (after) {\n if (val > getHebrewMonths(date.year) - date.month) {\n val -= getHebrewMonths(date.year) - date.month + 1;\n date.year++;\n date.month = 1;\n } else {\n date.month += val;\n val = 0;\n }\n } else {\n if (val >= date.month) {\n date.year--;\n val -= date.month;\n date.month = getHebrewMonths(date.year);\n } else {\n date.month -= val;\n val = 0;\n }\n }\n }\n return date;\n}\n\nexport function setHebrewDay(date: NgbDate, val: number): NgbDate {\n let after = val >= 0;\n if (!after) {\n val = -val;\n }\n while (val > 0) {\n if (after) {\n if (val > getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date)) {\n val -= getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date) + 1;\n date.year++;\n date.month = 1;\n date.day = 1;\n } else if (val > getDaysInHebrewMonth(date.month, date.year) - date.day) {\n val -= getDaysInHebrewMonth(date.month, date.year) - date.day + 1;\n date.month++;\n date.day = 1;\n } else {\n date.day += val;\n val = 0;\n }\n } else {\n if (val >= date.day) {\n val -= date.day;\n date.month--;\n if (date.month === 0) {\n date.year--;\n date.month = getHebrewMonths(date.year);\n }\n date.day = getDaysInHebrewMonth(date.month, date.year);\n } else {\n date.day -= val;\n val = 0;\n }\n }\n }\n return date;\n}\n\n/**\n * Returns the equivalent Hebrew date value for a give input Gregorian date.\n * `gdate` is a JS Date to be converted to Hebrew date.\n */\nexport function fromGregorian(gdate: Date): NgbDate {\n const date = new Date(gdate);\n const gYear = date.getFullYear(), gMonth = date.getMonth(), gDay = date.getDate();\n let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) -\n Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) +\n Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gYear) ? -1 : -2) + gDay);\n julianDay = Math.floor(julianDay + 0.5);\n let daysSinceHebEpoch = julianDay - 347997;\n let monthsSinceHebEpoch = Math.floor(daysSinceHebEpoch * PARTS_PER_DAY / PARTS_PER_MONTH);\n let hYear = Math.floor((monthsSinceHebEpoch * 19 + 234) / 235) + 1;\n let firstDayOfThisYear = numberOfFirstDayInYear(hYear);\n let dayOfYear = daysSinceHebEpoch - firstDayOfThisYear;\n while (dayOfYear < 1) {\n hYear--;\n firstDayOfThisYear = numberOfFirstDayInYear(hYear);\n dayOfYear = daysSinceHebEpoch - firstDayOfThisYear;\n }\n let hMonth = 1;\n let hDay = dayOfYear;\n while (hDay > getDaysInHebrewMonth(hMonth, hYear)) {\n hDay -= getDaysInHebrewMonth(hMonth, hYear);\n hMonth++;\n }\n return new NgbDate(hYear, hMonth, hDay);\n}\n\n/**\n * Returns the equivalent JS date value for a given Hebrew date.\n * `hebrewDate` is an Hebrew date to be converted to Gregorian.\n */\nexport function toGregorian(hebrewDate: NgbDateStruct | NgbDate): Date {\n const hYear = hebrewDate.year;\n const hMonth = hebrewDate.month;\n const hDay = hebrewDate.day;\n let days = numberOfFirstDayInYear(hYear);\n for (let i = 1; i < hMonth; i++) {\n days += getDaysInHebrewMonth(i, hYear);\n }\n days += hDay;\n let diffDays = days - HEBREW_DAY_ON_JAN_1_1970;\n let after = diffDays >= 0;\n if (!after) {\n diffDays = -diffDays;\n }\n let gYear = 1970;\n let gMonth = 1;\n let gDay = 1;\n while (diffDays > 0) {\n if (after) {\n if (diffDays >= (isGregorianLeapYear(gYear) ? 366 : 365)) {\n diffDays -= isGregorianLeapYear(gYear) ? 366 : 365;\n gYear++;\n } else if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) {\n diffDays -= getDaysInGregorianMonth(gMonth, gYear);\n gMonth++;\n } else {\n gDay += diffDays;\n diffDays = 0;\n }\n } else {\n if (diffDays >= (isGregorianLeapYear(gYear - 1) ? 366 : 365)) {\n diffDays -= isGregorianLeapYear(gYear - 1) ? 366 : 365;\n gYear--;\n } else {\n if (gMonth > 1) {\n gMonth--;\n } else {\n gMonth = 12;\n gYear--;\n }\n if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) {\n diffDays -= getDaysInGregorianMonth(gMonth, gYear);\n } else {\n gDay = getDaysInGregorianMonth(gMonth, gYear) - diffDays + 1;\n diffDays = 0;\n }\n }\n }\n }\n return new Date(gYear, gMonth - 1, gDay);\n}\n\nexport function hebrewNumerals(numerals: number): string {\n if (!numerals) {\n return '';\n }\n const hArray0_9 = ['', '\\u05d0', '\\u05d1', '\\u05d2', '\\u05d3', '\\u05d4', '\\u05d5', '\\u05d6', '\\u05d7', '\\u05d8'];\n const hArray10_19 = [\n '\\u05d9', '\\u05d9\\u05d0', '\\u05d9\\u05d1', '\\u05d9\\u05d2', '\\u05d9\\u05d3', '\\u05d8\\u05d5', '\\u05d8\\u05d6',\n '\\u05d9\\u05d6', '\\u05d9\\u05d7', '\\u05d9\\u05d8'\n ];\n const hArray20_90 = ['', '', '\\u05db', '\\u05dc', '\\u05de', '\\u05e0', '\\u05e1', '\\u05e2', '\\u05e4', '\\u05e6'];\n const hArray100_900 = [\n '', '\\u05e7', '\\u05e8', '\\u05e9', '\\u05ea', '\\u05ea\\u05e7', '\\u05ea\\u05e8', '\\u05ea\\u05e9', '\\u05ea\\u05ea',\n '\\u05ea\\u05ea\\u05e7'\n ];\n const hArray1000_9000 = [\n '', '\\u05d0', '\\u05d1', '\\u05d1\\u05d0', '\\u05d1\\u05d1', '\\u05d4', '\\u05d4\\u05d0', '\\u05d4\\u05d1',\n '\\u05d4\\u05d1\\u05d0', '\\u05d4\\u05d1\\u05d1'\n ];\n const geresh = '\\u05f3', gershaim = '\\u05f4';\n let mem = 0;\n let result = [];\n let step = 0;\n while (numerals > 0) {\n let m = numerals % 10;\n if (step === 0) {\n mem = m;\n } else if (step === 1) {\n if (m !== 1) {\n result.unshift(hArray20_90[m], hArray0_9[mem]);\n } else {\n result.unshift(hArray10_19[mem]);\n }\n } else if (step === 2) {\n result.unshift(hArray100_900[m]);\n } else {\n if (m !== 5) {\n result.unshift(hArray1000_9000[m], geresh, ' ');\n }\n break;\n }\n numerals = Math.floor(numerals / 10);\n if (step === 0 && numerals === 0) {\n result.unshift(hArray0_9[m]);\n }\n step++;\n }\n result = result.join('').split('');\n if (result.length === 1) {\n result.push(geresh);\n } else if (result.length > 1) {\n result.splice(result.length - 1, 0, gershaim);\n }\n return result.join('');\n}\n","import {NgbDate} from '../ngb-date';\nimport {fromJSDate, NgbCalendar, NgbPeriod, toJSDate} from '../ngb-calendar';\nimport {Injectable} from '@angular/core';\nimport {isNumber} from '../../util/util';\nimport {\n fromGregorian,\n getDayNumberInHebrewYear,\n getDaysInHebrewMonth,\n isHebrewLeapYear,\n toGregorian,\n setHebrewDay,\n setHebrewMonth\n} from './hebrew';\n\n/**\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbCalendarHebrew extends NgbCalendar {\n getDaysPerWeek() { return 7; }\n\n getMonths(year?: number) {\n if (year && isHebrewLeapYear(year)) {\n return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];\n } else {\n return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];\n }\n }\n\n getWeeksPerMonth() { return 6; }\n\n isValid(date: NgbDate): boolean {\n let b = date && isNumber(date.year) && isNumber(date.month) && isNumber(date.day);\n b = b && date.month > 0 && date.month <= (isHebrewLeapYear(date.year) ? 13 : 12);\n b = b && date.day > 0 && date.day <= getDaysInHebrewMonth(date.month, date.year);\n return b && !isNaN(toGregorian(date).getTime());\n }\n\n getNext(date: NgbDate, period: NgbPeriod = 'd', number = 1) {\n date = new NgbDate(date.year, date.month, date.day);\n\n switch (period) {\n case 'y':\n date.year += number;\n date.month = 1;\n date.day = 1;\n return date;\n case 'm':\n date = setHebrewMonth(date, number);\n date.day = 1;\n return date;\n case 'd':\n return setHebrewDay(date, number);\n default:\n return date;\n }\n }\n\n getPrev(date: NgbDate, period: NgbPeriod = 'd', number = 1) { return this.getNext(date, period, -number); }\n\n getWeekday(date: NgbDate) {\n const day = toGregorian(date).getDay();\n // in JS Date Sun=0, in ISO 8601 Sun=7\n return day === 0 ? 7 : day;\n }\n\n getWeekNumber(week: NgbDate[], firstDayOfWeek: number) {\n const date = week[week.length - 1];\n return Math.ceil(getDayNumberInHebrewYear(date) / 7);\n }\n\n getToday(): NgbDate { return fromGregorian(new Date()); }\n\n /**\n * @since 3.4.0\n */\n toGregorian(date: NgbDate): NgbDate { return fromJSDate(toGregorian(date)); }\n\n /**\n * @since 3.4.0\n */\n fromGregorian(date: NgbDate): NgbDate { return fromGregorian(toJSDate(date)); }\n}\n","import {NgbDatepickerI18n} from '../datepicker-i18n';\nimport {NgbDateStruct} from '../../index';\nimport {hebrewNumerals, isHebrewLeapYear} from './hebrew';\nimport {Injectable} from '@angular/core';\n\n\nconst WEEKDAYS = ['שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת', 'ראשון'];\nconst MONTHS = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול'];\nconst MONTHS_LEAP =\n ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר א׳', 'אדר ב׳', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול'];\n\n/**\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbDatepickerI18nHebrew extends NgbDatepickerI18n {\n getMonthShortName(month: number, year?: number): string { return this.getMonthFullName(month, year); }\n\n getMonthFullName(month: number, year?: number): string {\n return isHebrewLeapYear(year) ? MONTHS_LEAP[month - 1] : MONTHS[month - 1];\n }\n\n getWeekdayShortName(weekday: number): string { return WEEKDAYS[weekday - 1]; }\n\n getDayAriaLabel(date: NgbDateStruct): string {\n return `${hebrewNumerals(date.day)} ${this.getMonthFullName(date.month, date.year)} ${hebrewNumerals(date.year)}`;\n }\n\n getDayNumerals(date: NgbDateStruct): string { return hebrewNumerals(date.day); }\n\n getWeekNumerals(weekNumber: number): string { return hebrewNumerals(weekNumber); }\n\n getYearNumerals(year: number): string { return hebrewNumerals(year); }\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateAdapter} from './ngb-date-adapter';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {isInteger} from '../../util/util';\n\n/**\n * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses\n * native javascript dates as a user date model.\n */\n@Injectable()\nexport class NgbDateNativeAdapter extends NgbDateAdapter {\n /**\n * Converts a native `Date` to a `NgbDateStruct`.\n */\n fromModel(date: Date): NgbDateStruct {\n return (date instanceof Date && !isNaN(date.getTime())) ? this._fromNativeDate(date) : null;\n }\n\n /**\n * Converts a `NgbDateStruct` to a native `Date`.\n */\n toModel(date: NgbDateStruct): Date {\n return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) ? this._toNativeDate(date) :\n null;\n }\n\n protected _fromNativeDate(date: Date): NgbDateStruct {\n return {year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate()};\n }\n\n protected _toNativeDate(date: NgbDateStruct): Date {\n const jsDate = new Date(date.year, date.month - 1, date.day, 12);\n // avoid 30 -> 1930 conversion\n jsDate.setFullYear(date.year);\n return jsDate;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {NgbDateStruct} from '../ngb-date-struct';\nimport {NgbDateNativeAdapter} from './ngb-date-native-adapter';\n\n/**\n * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates.\n *\n * @since 3.2.0\n */\n@Injectable()\nexport class NgbDateNativeUTCAdapter extends NgbDateNativeAdapter {\n protected _fromNativeDate(date: Date): NgbDateStruct {\n return {year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate()};\n }\n\n protected _toNativeDate(date: NgbDateStruct): Date {\n const jsDate = new Date(Date.UTC(date.year, date.month - 1, date.day));\n // avoid 30 -> 1930 conversion\n jsDate.setUTCFullYear(date.year);\n return jsDate;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {NgbDatepicker} from './datepicker';\nimport {NgbDatepickerMonthView} from './datepicker-month-view';\nimport {NgbDatepickerNavigation} from './datepicker-navigation';\nimport {NgbInputDatepicker} from './datepicker-input';\nimport {NgbDatepickerDayView} from './datepicker-day-view';\nimport {NgbDatepickerNavigationSelect} from './datepicker-navigation-select';\n\nexport {NgbDatepicker, NgbDatepickerNavigateEvent} from './datepicker';\nexport {NgbInputDatepicker} from './datepicker-input';\nexport {NgbCalendar, NgbPeriod, NgbCalendarGregorian} from './ngb-calendar';\nexport {NgbCalendarIslamicCivil} from './hijri/ngb-calendar-islamic-civil';\nexport {NgbCalendarIslamicUmalqura} from './hijri/ngb-calendar-islamic-umalqura';\nexport {NgbCalendarPersian} from './jalali/ngb-calendar-persian';\nexport {NgbCalendarHebrew} from './hebrew/ngb-calendar-hebrew';\nexport {NgbDatepickerI18nHebrew} from './hebrew/datepicker-i18n-hebrew';\nexport {NgbDatepickerMonthView} from './datepicker-month-view';\nexport {NgbDatepickerDayView} from './datepicker-day-view';\nexport {NgbDatepickerNavigation} from './datepicker-navigation';\nexport {NgbDatepickerNavigationSelect} from './datepicker-navigation-select';\nexport {NgbDatepickerConfig} from './datepicker-config';\nexport {NgbDatepickerI18n} from './datepicker-i18n';\nexport {NgbDateStruct} from './ngb-date-struct';\nexport {NgbDate} from './ngb-date';\nexport {NgbDateAdapter} from './adapters/ngb-date-adapter';\nexport {NgbDateNativeAdapter} from './adapters/ngb-date-native-adapter';\nexport {NgbDateNativeUTCAdapter} from './adapters/ngb-date-native-utc-adapter';\nexport {NgbDateParserFormatter} from './ngb-date-parser-formatter';\n\n@NgModule({\n declarations: [\n NgbDatepicker, NgbDatepickerMonthView, NgbDatepickerNavigation, NgbDatepickerNavigationSelect, NgbDatepickerDayView,\n NgbInputDatepicker\n ],\n exports: [NgbDatepicker, NgbInputDatepicker],\n imports: [CommonModule, FormsModule],\n entryComponents: [NgbDatepicker]\n})\nexport class NgbDatepickerModule {\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the dropdowns used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbDropdownConfig {\n autoClose: boolean | 'outside' | 'inside' = true;\n placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n container: null | 'body';\n}\n","import {\n ChangeDetectorRef,\n ContentChild,\n ContentChildren,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n AfterContentInit,\n OnDestroy,\n Output,\n QueryList,\n Renderer2,\n SimpleChanges,\n Optional\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {Subject, Subscription} from 'rxjs';\nimport {take} from 'rxjs/operators';\n\nimport {Placement, PlacementArray, positionElements} from '../util/positioning';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {Key} from '../util/key';\n\nimport {NgbDropdownConfig} from './dropdown-config';\n\n@Directive({selector: '.navbar'})\nexport class NgbNavbar {\n}\n\n/**\n * A directive you should put put on a dropdown item to enable keyboard navigation.\n * Arrow keys will move focus between items marked with this directive.\n *\n * @since 4.1.0\n */\n@Directive({selector: '[ngbDropdownItem]', host: {'class': 'dropdown-item', '[class.disabled]': 'disabled'}})\nexport class NgbDropdownItem {\n private _disabled = false;\n\n @Input()\n set disabled(value: boolean) {\n this._disabled = value === '' || value === true; // accept an empty attribute as true\n }\n\n get disabled(): boolean { return this._disabled; }\n\n constructor(public elementRef: ElementRef) {}\n}\n\n/**\n * A directive that wraps dropdown menu content and dropdown items.\n */\n@Directive({\n selector: '[ngbDropdownMenu]',\n host: {\n '[class.dropdown-menu]': 'true',\n '[class.show]': 'dropdown.isOpen()',\n '[attr.x-placement]': 'placement',\n '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)',\n '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)',\n '(keydown.Home)': 'dropdown.onKeyDown($event)',\n '(keydown.End)': 'dropdown.onKeyDown($event)',\n '(keydown.Enter)': 'dropdown.onKeyDown($event)',\n '(keydown.Space)': 'dropdown.onKeyDown($event)'\n }\n})\nexport class NgbDropdownMenu {\n placement: Placement = 'bottom';\n isOpen = false;\n\n @ContentChildren(NgbDropdownItem) menuItems: QueryList;\n\n constructor(@Inject(forwardRef(() => NgbDropdown)) public dropdown) {}\n}\n\n/**\n * A directive to mark an element to which dropdown menu will be anchored.\n *\n * This is a simple version of the `NgbDropdownToggle` directive.\n * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support\n * for events other than click.\n *\n * @since 1.1.0\n */\n@Directive({\n selector: '[ngbDropdownAnchor]',\n host: {'class': 'dropdown-toggle', 'aria-haspopup': 'true', '[attr.aria-expanded]': 'dropdown.isOpen()'}\n})\nexport class NgbDropdownAnchor {\n anchorEl;\n\n constructor(@Inject(forwardRef(() => NgbDropdown)) public dropdown, private _elementRef: ElementRef) {\n this.anchorEl = _elementRef.nativeElement;\n }\n\n getNativeElement() { return this._elementRef.nativeElement; }\n}\n\n/**\n * A directive to mark an element that will toggle dropdown via the `click` event.\n *\n * You can also use `NgbDropdownAnchor` as an alternative.\n */\n@Directive({\n selector: '[ngbDropdownToggle]',\n host: {\n 'class': 'dropdown-toggle',\n 'aria-haspopup': 'true',\n '[attr.aria-expanded]': 'dropdown.isOpen()',\n '(click)': 'dropdown.toggle()',\n '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)',\n '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)',\n '(keydown.Home)': 'dropdown.onKeyDown($event)',\n '(keydown.End)': 'dropdown.onKeyDown($event)'\n },\n providers: [{provide: NgbDropdownAnchor, useExisting: forwardRef(() => NgbDropdownToggle)}]\n})\nexport class NgbDropdownToggle extends NgbDropdownAnchor {\n constructor(@Inject(forwardRef(() => NgbDropdown)) dropdown, elementRef: ElementRef) {\n super(dropdown, elementRef);\n }\n}\n\n/**\n * A directive that provides contextual overlays for displaying lists of links and more.\n */\n@Directive({selector: '[ngbDropdown]', exportAs: 'ngbDropdown', host: {'[class.show]': 'isOpen()'}})\nexport class NgbDropdown implements AfterContentInit, OnDestroy {\n private _closed$ = new Subject();\n private _zoneSubscription: Subscription;\n private _bodyContainer: HTMLElement;\n\n @ContentChild(NgbDropdownMenu, {static: false}) private _menu: NgbDropdownMenu;\n @ContentChild(NgbDropdownMenu, {read: ElementRef, static: false}) private _menuElement: ElementRef;\n @ContentChild(NgbDropdownAnchor, {static: false}) private _anchor: NgbDropdownAnchor;\n\n /**\n * Indicates whether the dropdown should be closed when clicking one of dropdown items or pressing ESC.\n *\n * * `true` - the dropdown will close on both outside and inside (menu) clicks.\n * * `false` - the dropdown can only be closed manually via `close()` or `toggle()` methods.\n * * `\"inside\"` - the dropdown will close on inside menu clicks, but not outside clicks.\n * * `\"outside\"` - the dropdown will close only on the outside clicks and not on menu clicks.\n */\n @Input() autoClose: boolean | 'outside' | 'inside';\n\n /**\n * Defines whether or not the dropdown menu is opened initially.\n */\n @Input('open') _open = false;\n\n /**\n * The preferred placement of the dropdown.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * A selector specifying the element the dropdown should be appended to.\n * Currently only supports \"body\".\n *\n * @since 4.1.0\n */\n @Input() container: null | 'body';\n\n /**\n * Enable or disable the dynamic positioning. The default value is dynamic unless the dropdown is used\n * inside a Bootstrap navbar. If you need custom placement for a dropdown in a navbar, set it to\n * dynamic explicitly. See the [positioning of dropdown](#/positioning#dropdown)\n * and the [navbar demo](/#/components/dropdown/examples#navbar) for more details.\n *\n * @since 4.2.0\n */\n @Input() display: 'dynamic' | 'static';\n\n /**\n * An event fired when the dropdown is opened or closed.\n *\n * The event payload is a `boolean`:\n * * `true` - the dropdown was opened\n * * `false` - the dropdown was closed\n */\n @Output() openChange = new EventEmitter();\n\n constructor(\n private _changeDetector: ChangeDetectorRef, config: NgbDropdownConfig, @Inject(DOCUMENT) private _document: any,\n private _ngZone: NgZone, private _elementRef: ElementRef, private _renderer: Renderer2,\n @Optional() ngbNavbar: NgbNavbar) {\n this.placement = config.placement;\n this.container = config.container;\n this.autoClose = config.autoClose;\n\n this.display = ngbNavbar ? 'static' : 'dynamic';\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => { this._positionMenu(); });\n }\n\n ngAfterContentInit() {\n this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n this._applyPlacementClasses();\n if (this._open) {\n this._setCloseHandlers();\n }\n });\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.container && this._open) {\n this._applyContainer(this.container);\n }\n\n if (changes.placement && !changes.placement.isFirstChange) {\n this._applyPlacementClasses();\n }\n }\n\n /**\n * Checks if the dropdown menu is open.\n */\n isOpen(): boolean { return this._open; }\n\n /**\n * Opens the dropdown menu.\n */\n open(): void {\n if (!this._open) {\n this._open = true;\n this._applyContainer(this.container);\n this.openChange.emit(true);\n this._setCloseHandlers();\n }\n }\n\n private _setCloseHandlers() {\n const anchor = this._anchor;\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this._closed$,\n this._menu ? [this._menuElement.nativeElement] : [], anchor ? [anchor.getNativeElement()] : [],\n '.dropdown-item,.dropdown-divider');\n }\n\n /**\n * Closes the dropdown menu.\n */\n close(): void {\n if (this._open) {\n this._open = false;\n this._resetContainer();\n this._closed$.next();\n this.openChange.emit(false);\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the dropdown menu.\n */\n toggle(): void {\n if (this.isOpen()) {\n this.close();\n } else {\n this.open();\n }\n }\n\n ngOnDestroy() {\n this._resetContainer();\n\n this._closed$.next();\n this._zoneSubscription.unsubscribe();\n }\n\n onKeyDown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n const key = event.which;\n const itemElements = this._getMenuElements();\n\n let position = -1;\n let isEventFromItems = false;\n const isEventFromToggle = this._isEventFromToggle(event);\n\n if (!isEventFromToggle && itemElements.length) {\n itemElements.forEach((itemElement, index) => {\n if (itemElement.contains(event.target as HTMLElement)) {\n isEventFromItems = true;\n }\n if (itemElement === this._document.activeElement) {\n position = index;\n }\n });\n }\n\n // closing on Enter / Space\n if (key === Key.Space || key === Key.Enter) {\n if (isEventFromItems && (this.autoClose === true || this.autoClose === 'inside')) {\n this.close();\n }\n return;\n }\n\n // opening / navigating\n if (isEventFromToggle || isEventFromItems) {\n this.open();\n\n if (itemElements.length) {\n switch (key) {\n case Key.ArrowDown:\n position = Math.min(position + 1, itemElements.length - 1);\n break;\n case Key.ArrowUp:\n if (this._isDropup() && position === -1) {\n position = itemElements.length - 1;\n break;\n }\n position = Math.max(position - 1, 0);\n break;\n case Key.Home:\n position = 0;\n break;\n case Key.End:\n position = itemElements.length - 1;\n break;\n }\n itemElements[position].focus();\n }\n event.preventDefault();\n }\n }\n\n private _isDropup(): boolean { return this._elementRef.nativeElement.classList.contains('dropup'); }\n\n private _isEventFromToggle(event: KeyboardEvent) {\n return this._anchor.getNativeElement().contains(event.target as HTMLElement);\n }\n\n private _getMenuElements(): HTMLElement[] {\n const menu = this._menu;\n if (menu == null) {\n return [];\n }\n return menu.menuItems.filter(item => !item.disabled).map(item => item.elementRef.nativeElement);\n }\n\n private _positionMenu() {\n const menu = this._menu;\n if (this.isOpen() && menu) {\n this._applyPlacementClasses(\n this.display === 'dynamic' ?\n positionElements(\n this._anchor.anchorEl, this._bodyContainer || this._menuElement.nativeElement, this.placement,\n this.container === 'body') :\n this._getFirstPlacement(this.placement));\n }\n }\n\n private _getFirstPlacement(placement: PlacementArray): Placement {\n return Array.isArray(placement) ? placement[0] : placement.split(' ')[0] as Placement;\n }\n\n private _resetContainer() {\n const renderer = this._renderer;\n const menuElement = this._menuElement;\n if (menuElement) {\n const dropdownElement = this._elementRef.nativeElement;\n const dropdownMenuElement = menuElement.nativeElement;\n\n renderer.appendChild(dropdownElement, dropdownMenuElement);\n renderer.removeStyle(dropdownMenuElement, 'position');\n renderer.removeStyle(dropdownMenuElement, 'transform');\n }\n if (this._bodyContainer) {\n renderer.removeChild(this._document.body, this._bodyContainer);\n this._bodyContainer = null;\n }\n }\n\n private _applyContainer(container: null | 'body' = null) {\n this._resetContainer();\n if (container === 'body') {\n const renderer = this._renderer;\n const dropdownMenuElement = this._menuElement.nativeElement;\n const bodyContainer = this._bodyContainer = this._bodyContainer || renderer.createElement('div');\n\n // Override some styles to have the positionning working\n renderer.setStyle(bodyContainer, 'position', 'absolute');\n renderer.setStyle(dropdownMenuElement, 'position', 'static');\n renderer.setStyle(bodyContainer, 'z-index', '1050');\n\n renderer.appendChild(bodyContainer, dropdownMenuElement);\n renderer.appendChild(this._document.body, bodyContainer);\n }\n }\n\n private _applyPlacementClasses(placement?: Placement) {\n const menu = this._menu;\n if (menu) {\n if (!placement) {\n placement = this._getFirstPlacement(this.placement);\n }\n\n const renderer = this._renderer;\n const dropdownElement = this._elementRef.nativeElement;\n\n // remove the current placement classes\n renderer.removeClass(dropdownElement, 'dropup');\n renderer.removeClass(dropdownElement, 'dropdown');\n menu.placement = this.display === 'static' ? null : placement;\n\n /*\n * apply the new placement\n * in case of top use up-arrow or down-arrow otherwise\n */\n const dropdownClass = placement.search('^top') !== -1 ? 'dropup' : 'dropdown';\n renderer.addClass(dropdownElement, dropdownClass);\n\n const bodyContainer = this._bodyContainer;\n if (bodyContainer) {\n renderer.removeClass(bodyContainer, 'dropup');\n renderer.removeClass(bodyContainer, 'dropdown');\n renderer.addClass(bodyContainer, dropdownClass);\n }\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {\n NgbDropdown,\n NgbDropdownAnchor,\n NgbDropdownToggle,\n NgbDropdownMenu,\n NgbDropdownItem,\n NgbNavbar\n} from './dropdown';\n\nexport {NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem} from './dropdown';\nexport {NgbDropdownConfig} from './dropdown-config';\n\nconst NGB_DROPDOWN_DIRECTIVES =\n [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar];\n\n@NgModule({declarations: NGB_DROPDOWN_DIRECTIVES, exports: NGB_DROPDOWN_DIRECTIVES})\nexport class NgbDropdownModule {\n}\n","import {Injectable, Injector} from '@angular/core';\n\n/**\n * Options available when opening new modal windows with `NgbModal.open()` method.\n */\nexport interface NgbModalOptions {\n /**\n * `aria-labelledby` attribute value to set on the modal window.\n *\n * @since 2.2.0\n */\n ariaLabelledBy?: string;\n\n /**\n * If `true`, the backdrop element will be created for a given modal.\n *\n * Alternatively, specify `'static'` for a backdrop which doesn't close the modal on click.\n *\n * Default value is `true`.\n */\n backdrop?: boolean | 'static';\n\n /**\n * Callback right before the modal will be dismissed.\n *\n * If this function returns:\n * * `false`\n * * a promise resolved with `false`\n * * a promise that is rejected\n *\n * then the modal won't be dismissed.\n */\n beforeDismiss?: () => boolean | Promise;\n\n /**\n * If `true`, the modal will be centered vertically.\n *\n * Default value is `false`.\n *\n * @since 1.1.0\n */\n centered?: boolean;\n\n /**\n * A selector specifying the element all new modal windows should be appended to.\n *\n * If not specified, will be `body`.\n */\n container?: string;\n\n /**\n * The `Injector` to use for modal content.\n */\n injector?: Injector;\n\n /**\n * If `true`, the modal will be closed when `Escape` key is pressed\n *\n * Default value is `true`.\n */\n keyboard?: boolean;\n\n /**\n * Scrollable modal content (false by default).\n *\n * @since 5.0.0\n */\n scrollable?: boolean;\n\n /**\n * Size of a new modal window.\n */\n size?: 'sm' | 'lg' | 'xl';\n\n /**\n * A custom class to append to the modal window.\n */\n windowClass?: string;\n\n /**\n * A custom class to append to the modal backdrop.\n *\n * @since 1.1.0\n */\n backdropClass?: string;\n}\n\n/**\n * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all modals used in the application.\n*\n* @since 3.1.0\n*/\n@Injectable({providedIn: 'root'})\nexport class NgbModalConfig implements NgbModalOptions {\n backdrop: boolean | 'static' = true;\n keyboard = true;\n}\n","import {\n Injector,\n TemplateRef,\n ViewRef,\n ViewContainerRef,\n Renderer2,\n ComponentRef,\n ComponentFactoryResolver,\n ApplicationRef\n} from '@angular/core';\n\nexport class ContentRef {\n constructor(public nodes: any[], public viewRef?: ViewRef, public componentRef?: ComponentRef) {}\n}\n\nexport class PopupService {\n private _windowRef: ComponentRef;\n private _contentRef: ContentRef;\n\n constructor(\n private _type: any, private _injector: Injector, private _viewContainerRef: ViewContainerRef,\n private _renderer: Renderer2, private _componentFactoryResolver: ComponentFactoryResolver,\n private _applicationRef: ApplicationRef) {}\n\n open(content?: string | TemplateRef, context?: any): ComponentRef {\n if (!this._windowRef) {\n this._contentRef = this._getContentRef(content, context);\n this._windowRef = this._viewContainerRef.createComponent(\n this._componentFactoryResolver.resolveComponentFactory(this._type), 0, this._injector,\n this._contentRef.nodes);\n }\n\n return this._windowRef;\n }\n\n close() {\n if (this._windowRef) {\n this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView));\n this._windowRef = null;\n\n if (this._contentRef.viewRef) {\n this._applicationRef.detachView(this._contentRef.viewRef);\n this._contentRef.viewRef.destroy();\n this._contentRef = null;\n }\n }\n }\n\n private _getContentRef(content: string | TemplateRef, context?: any): ContentRef {\n if (!content) {\n return new ContentRef([]);\n } else if (content instanceof TemplateRef) {\n const viewRef = content.createEmbeddedView(context);\n this._applicationRef.attachView(viewRef);\n return new ContentRef([viewRef.rootNodes], viewRef);\n } else {\n return new ContentRef([[this._renderer.createText(`${content}`)]]);\n }\n }\n}\n","import {Injectable, Inject} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\n\nconst noop = () => {};\n\n\n\n/** Type for the callback used to revert the scrollbar compensation. */\nexport type CompensationReverter = () => void;\n\n\n\n/**\n * Utility to handle the scrollbar.\n *\n * It allows to compensate the lack of a vertical scrollbar by adding an\n * equivalent padding on the right of the body, and to remove this compensation.\n */\n@Injectable({providedIn: 'root'})\nexport class ScrollBar {\n constructor(@Inject(DOCUMENT) private _document: any) {}\n\n /**\n * Detects if a scrollbar is present and if yes, already compensates for its\n * removal by adding an equivalent padding on the right of the body.\n *\n * @return a callback used to revert the compensation (noop if there was none,\n * otherwise a function removing the padding)\n */\n compensate(): CompensationReverter { return !this._isPresent() ? noop : this._adjustBody(this._getWidth()); }\n\n /**\n * Adds a padding of the given width on the right of the body.\n *\n * @return a callback used to revert the padding to its previous value\n */\n private _adjustBody(width: number): CompensationReverter {\n const body = this._document.body;\n const userSetPadding = body.style.paddingRight;\n const paddingAmount = parseFloat(window.getComputedStyle(body)['padding-right']);\n body.style['padding-right'] = `${paddingAmount + width}px`;\n return () => body.style['padding-right'] = userSetPadding;\n }\n\n /**\n * Tells whether a scrollbar is currently present on the body.\n *\n * @return true if scrollbar is present, false otherwise\n */\n private _isPresent(): boolean {\n const rect = this._document.body.getBoundingClientRect();\n return rect.left + rect.right < window.innerWidth;\n }\n\n /**\n * Calculates and returns the width of a scrollbar.\n *\n * @return the width of a scrollbar on this page\n */\n private _getWidth(): number {\n const measurer = this._document.createElement('div');\n measurer.className = 'modal-scrollbar-measure';\n\n const body = this._document.body;\n body.appendChild(measurer);\n const width = measurer.getBoundingClientRect().width - measurer.clientWidth;\n body.removeChild(measurer);\n\n return width;\n }\n}\n","import {Component, Input} from '@angular/core';\n\n@Component({\n selector: 'ngb-modal-backdrop',\n template: '',\n host:\n {'[class]': '\"modal-backdrop fade show\" + (backdropClass ? \" \" + backdropClass : \"\")', 'style': 'z-index: 1050'}\n})\nexport class NgbModalBackdrop {\n @Input() backdropClass: string;\n}\n","import {ComponentRef} from '@angular/core';\n\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalWindow} from './modal-window';\n\nimport {ContentRef} from '../util/popup';\n\n/**\n * A reference to the currently opened (active) modal.\n *\n * Instances of this class can be injected into your component passed as modal content.\n * So you can `.close()` or `.dismiss()` the modal window from your component.\n */\nexport class NgbActiveModal {\n /**\n * Closes the modal with an optional `result` value.\n *\n * The `NgbMobalRef.result` promise will be resolved with the provided value.\n */\n close(result?: any): void {}\n\n /**\n * Dismisses the modal with an optional `reason` value.\n *\n * The `NgbModalRef.result` promise will be rejected with the provided value.\n */\n dismiss(reason?: any): void {}\n}\n\n/**\n * A reference to the newly opened modal returned by the `NgbModal.open()` method.\n */\nexport class NgbModalRef {\n private _resolve: (result?: any) => void;\n private _reject: (reason?: any) => void;\n\n /**\n * The instance of a component used for the modal content.\n *\n * When a `TemplateRef` is used as the content, will return `undefined`.\n */\n get componentInstance(): any {\n if (this._contentRef.componentRef) {\n return this._contentRef.componentRef.instance;\n }\n }\n\n /**\n * The promise that is resolved when the modal is closed and rejected when the modal is dismissed.\n */\n result: Promise;\n\n constructor(\n private _windowCmptRef: ComponentRef, private _contentRef: ContentRef,\n private _backdropCmptRef?: ComponentRef, private _beforeDismiss?: Function) {\n _windowCmptRef.instance.dismissEvent.subscribe((reason: any) => { this.dismiss(reason); });\n\n this.result = new Promise((resolve, reject) => {\n this._resolve = resolve;\n this._reject = reject;\n });\n this.result.then(null, () => {});\n }\n\n /**\n * Closes the modal with an optional `result` value.\n *\n * The `NgbMobalRef.result` promise will be resolved with the provided value.\n */\n close(result?: any): void {\n if (this._windowCmptRef) {\n this._resolve(result);\n this._removeModalElements();\n }\n }\n\n private _dismiss(reason?: any) {\n this._reject(reason);\n this._removeModalElements();\n }\n\n /**\n * Dismisses the modal with an optional `reason` value.\n *\n * The `NgbModalRef.result` promise will be rejected with the provided value.\n */\n dismiss(reason?: any): void {\n if (this._windowCmptRef) {\n if (!this._beforeDismiss) {\n this._dismiss(reason);\n } else {\n const dismiss = this._beforeDismiss();\n if (dismiss && dismiss.then) {\n dismiss.then(\n result => {\n if (result !== false) {\n this._dismiss(reason);\n }\n },\n () => {});\n } else if (dismiss !== false) {\n this._dismiss(reason);\n }\n }\n }\n }\n\n private _removeModalElements() {\n const windowNativeEl = this._windowCmptRef.location.nativeElement;\n windowNativeEl.parentNode.removeChild(windowNativeEl);\n this._windowCmptRef.destroy();\n\n if (this._backdropCmptRef) {\n const backdropNativeEl = this._backdropCmptRef.location.nativeElement;\n backdropNativeEl.parentNode.removeChild(backdropNativeEl);\n this._backdropCmptRef.destroy();\n }\n\n if (this._contentRef && this._contentRef.viewRef) {\n this._contentRef.viewRef.destroy();\n }\n\n this._windowCmptRef = null;\n this._backdropCmptRef = null;\n this._contentRef = null;\n }\n}\n","export enum ModalDismissReasons {\n BACKDROP_CLICK,\n ESC\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n OnDestroy,\n OnInit,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {getFocusableBoundaryElements} from '../util/focus-trap';\nimport {ModalDismissReasons} from './modal-dismiss-reasons';\n\n@Component({\n selector: 'ngb-modal-window',\n host: {\n '[class]': '\"modal fade show d-block\" + (windowClass ? \" \" + windowClass : \"\")',\n 'role': 'dialog',\n 'tabindex': '-1',\n '(keyup.esc)': 'escKey($event)',\n '(click)': 'backdropClick($event)',\n '[attr.aria-modal]': 'true',\n '[attr.aria-labelledby]': 'ariaLabelledBy',\n },\n template: `\n
\n
\n
\n `,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./modal.scss']\n})\nexport class NgbModalWindow implements OnInit,\n AfterViewInit, OnDestroy {\n private _elWithFocus: Element; // element that is focused prior to modal opening\n\n @Input() ariaLabelledBy: string;\n @Input() backdrop: boolean | string = true;\n @Input() centered: string;\n @Input() keyboard = true;\n @Input() scrollable: string;\n @Input() size: string;\n @Input() windowClass: string;\n\n @Output('dismiss') dismissEvent = new EventEmitter();\n\n constructor(@Inject(DOCUMENT) private _document: any, private _elRef: ElementRef) {}\n\n backdropClick($event): void {\n if (this.backdrop === true && this._elRef.nativeElement === $event.target) {\n this.dismiss(ModalDismissReasons.BACKDROP_CLICK);\n }\n }\n\n escKey($event): void {\n if (this.keyboard && !$event.defaultPrevented) {\n this.dismiss(ModalDismissReasons.ESC);\n }\n }\n\n dismiss(reason): void { this.dismissEvent.emit(reason); }\n\n ngOnInit() { this._elWithFocus = this._document.activeElement; }\n\n ngAfterViewInit() {\n if (!this._elRef.nativeElement.contains(document.activeElement)) {\n const autoFocusable = this._elRef.nativeElement.querySelector(`[ngbAutofocus]`) as HTMLElement;\n const firstFocusable = getFocusableBoundaryElements(this._elRef.nativeElement)[0];\n\n const elementToFocus = autoFocusable || firstFocusable || this._elRef.nativeElement;\n elementToFocus.focus();\n }\n }\n\n ngOnDestroy() {\n const body = this._document.body;\n const elWithFocus = this._elWithFocus;\n\n let elementToFocus;\n if (elWithFocus && elWithFocus['focus'] && body.contains(elWithFocus)) {\n elementToFocus = elWithFocus;\n } else {\n elementToFocus = body;\n }\n elementToFocus.focus();\n this._elWithFocus = null;\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ApplicationRef,\n ComponentFactoryResolver,\n ComponentRef,\n Inject,\n Injectable,\n Injector,\n RendererFactory2,\n TemplateRef,\n} from '@angular/core';\nimport {Subject} from 'rxjs';\n\nimport {ngbFocusTrap} from '../util/focus-trap';\nimport {ContentRef} from '../util/popup';\nimport {ScrollBar} from '../util/scrollbar';\nimport {isDefined, isString} from '../util/util';\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalOptions} from './modal-config';\nimport {NgbActiveModal, NgbModalRef} from './modal-ref';\nimport {NgbModalWindow} from './modal-window';\n\n@Injectable({providedIn: 'root'})\nexport class NgbModalStack {\n private _activeWindowCmptHasChanged = new Subject();\n private _ariaHiddenValues: Map = new Map();\n private _backdropAttributes = ['backdropClass'];\n private _modalRefs: NgbModalRef[] = [];\n private _windowAttributes =\n ['ariaLabelledBy', 'backdrop', 'centered', 'keyboard', 'scrollable', 'size', 'windowClass'];\n private _windowCmpts: ComponentRef[] = [];\n\n constructor(\n private _applicationRef: ApplicationRef, private _injector: Injector, @Inject(DOCUMENT) private _document: any,\n private _scrollBar: ScrollBar, private _rendererFactory: RendererFactory2) {\n // Trap focus on active WindowCmpt\n this._activeWindowCmptHasChanged.subscribe(() => {\n if (this._windowCmpts.length) {\n const activeWindowCmpt = this._windowCmpts[this._windowCmpts.length - 1];\n ngbFocusTrap(activeWindowCmpt.location.nativeElement, this._activeWindowCmptHasChanged);\n this._revertAriaHidden();\n this._setAriaHidden(activeWindowCmpt.location.nativeElement);\n }\n });\n }\n\n open(moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, options): NgbModalRef {\n const containerEl =\n isDefined(options.container) ? this._document.querySelector(options.container) : this._document.body;\n const renderer = this._rendererFactory.createRenderer(null, null);\n\n const revertPaddingForScrollBar = this._scrollBar.compensate();\n const removeBodyClass = () => {\n if (!this._modalRefs.length) {\n renderer.removeClass(this._document.body, 'modal-open');\n this._revertAriaHidden();\n }\n };\n\n if (!containerEl) {\n throw new Error(`The specified modal container \"${options.container || 'body'}\" was not found in the DOM.`);\n }\n\n const activeModal = new NgbActiveModal();\n const contentRef =\n this._getContentRef(moduleCFR, options.injector || contentInjector, content, activeModal, options);\n\n let backdropCmptRef: ComponentRef =\n options.backdrop !== false ? this._attachBackdrop(moduleCFR, containerEl) : null;\n let windowCmptRef: ComponentRef = this._attachWindowComponent(moduleCFR, containerEl, contentRef);\n let ngbModalRef: NgbModalRef = new NgbModalRef(windowCmptRef, contentRef, backdropCmptRef, options.beforeDismiss);\n\n this._registerModalRef(ngbModalRef);\n this._registerWindowCmpt(windowCmptRef);\n ngbModalRef.result.then(revertPaddingForScrollBar, revertPaddingForScrollBar);\n ngbModalRef.result.then(removeBodyClass, removeBodyClass);\n activeModal.close = (result: any) => { ngbModalRef.close(result); };\n activeModal.dismiss = (reason: any) => { ngbModalRef.dismiss(reason); };\n\n this._applyWindowOptions(windowCmptRef.instance, options);\n if (this._modalRefs.length === 1) {\n renderer.addClass(this._document.body, 'modal-open');\n }\n\n if (backdropCmptRef && backdropCmptRef.instance) {\n this._applyBackdropOptions(backdropCmptRef.instance, options);\n }\n return ngbModalRef;\n }\n\n dismissAll(reason?: any) { this._modalRefs.forEach(ngbModalRef => ngbModalRef.dismiss(reason)); }\n\n hasOpenModals(): boolean { return this._modalRefs.length > 0; }\n\n private _attachBackdrop(moduleCFR: ComponentFactoryResolver, containerEl: any): ComponentRef {\n let backdropFactory = moduleCFR.resolveComponentFactory(NgbModalBackdrop);\n let backdropCmptRef = backdropFactory.create(this._injector);\n this._applicationRef.attachView(backdropCmptRef.hostView);\n containerEl.appendChild(backdropCmptRef.location.nativeElement);\n return backdropCmptRef;\n }\n\n private _attachWindowComponent(moduleCFR: ComponentFactoryResolver, containerEl: any, contentRef: any):\n ComponentRef {\n let windowFactory = moduleCFR.resolveComponentFactory(NgbModalWindow);\n let windowCmptRef = windowFactory.create(this._injector, contentRef.nodes);\n this._applicationRef.attachView(windowCmptRef.hostView);\n containerEl.appendChild(windowCmptRef.location.nativeElement);\n return windowCmptRef;\n }\n\n private _applyWindowOptions(windowInstance: NgbModalWindow, options: Object): void {\n this._windowAttributes.forEach((optionName: string) => {\n if (isDefined(options[optionName])) {\n windowInstance[optionName] = options[optionName];\n }\n });\n }\n\n private _applyBackdropOptions(backdropInstance: NgbModalBackdrop, options: Object): void {\n this._backdropAttributes.forEach((optionName: string) => {\n if (isDefined(options[optionName])) {\n backdropInstance[optionName] = options[optionName];\n }\n });\n }\n\n private _getContentRef(\n moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, activeModal: NgbActiveModal,\n options: NgbModalOptions): ContentRef {\n if (!content) {\n return new ContentRef([]);\n } else if (content instanceof TemplateRef) {\n return this._createFromTemplateRef(content, activeModal);\n } else if (isString(content)) {\n return this._createFromString(content);\n } else {\n return this._createFromComponent(moduleCFR, contentInjector, content, activeModal, options);\n }\n }\n\n private _createFromTemplateRef(content: TemplateRef, activeModal: NgbActiveModal): ContentRef {\n const context = {\n $implicit: activeModal,\n close(result) { activeModal.close(result); },\n dismiss(reason) { activeModal.dismiss(reason); }\n };\n const viewRef = content.createEmbeddedView(context);\n this._applicationRef.attachView(viewRef);\n return new ContentRef([viewRef.rootNodes], viewRef);\n }\n\n private _createFromString(content: string): ContentRef {\n const component = this._document.createTextNode(`${content}`);\n return new ContentRef([[component]]);\n }\n\n private _createFromComponent(\n moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, context: NgbActiveModal,\n options: NgbModalOptions): ContentRef {\n const contentCmptFactory = moduleCFR.resolveComponentFactory(content);\n const modalContentInjector =\n Injector.create({providers: [{provide: NgbActiveModal, useValue: context}], parent: contentInjector});\n const componentRef = contentCmptFactory.create(modalContentInjector);\n const componentNativeEl = componentRef.location.nativeElement;\n if (options.scrollable) {\n (componentNativeEl as HTMLElement).classList.add('component-host-scrollable');\n }\n this._applicationRef.attachView(componentRef.hostView);\n // FIXME: we should here get rid of the component nativeElement\n // and use `[Array.from(componentNativeEl.childNodes)]` instead and remove the above CSS class.\n return new ContentRef([[componentNativeEl]], componentRef.hostView, componentRef);\n }\n\n private _setAriaHidden(element: Element) {\n const parent = element.parentElement;\n if (parent && element !== this._document.body) {\n Array.from(parent.children).forEach(sibling => {\n if (sibling !== element && sibling.nodeName !== 'SCRIPT') {\n this._ariaHiddenValues.set(sibling, sibling.getAttribute('aria-hidden'));\n sibling.setAttribute('aria-hidden', 'true');\n }\n });\n\n this._setAriaHidden(parent);\n }\n }\n\n private _revertAriaHidden() {\n this._ariaHiddenValues.forEach((value, element) => {\n if (value) {\n element.setAttribute('aria-hidden', value);\n } else {\n element.removeAttribute('aria-hidden');\n }\n });\n this._ariaHiddenValues.clear();\n }\n\n private _registerModalRef(ngbModalRef: NgbModalRef) {\n const unregisterModalRef = () => {\n const index = this._modalRefs.indexOf(ngbModalRef);\n if (index > -1) {\n this._modalRefs.splice(index, 1);\n }\n };\n this._modalRefs.push(ngbModalRef);\n ngbModalRef.result.then(unregisterModalRef, unregisterModalRef);\n }\n\n private _registerWindowCmpt(ngbWindowCmpt: ComponentRef) {\n this._windowCmpts.push(ngbWindowCmpt);\n this._activeWindowCmptHasChanged.next();\n\n ngbWindowCmpt.onDestroy(() => {\n const index = this._windowCmpts.indexOf(ngbWindowCmpt);\n if (index > -1) {\n this._windowCmpts.splice(index, 1);\n this._activeWindowCmptHasChanged.next();\n }\n });\n }\n}\n","import {Injectable, Injector, ComponentFactoryResolver} from '@angular/core';\n\nimport {NgbModalOptions, NgbModalConfig} from './modal-config';\nimport {NgbModalRef} from './modal-ref';\nimport {NgbModalStack} from './modal-stack';\n\n/**\n * A service for opening modal windows.\n *\n * Creating a modal is straightforward: create a component or a template and pass it as an argument to\n * the `.open()` method.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbModal {\n constructor(\n private _moduleCFR: ComponentFactoryResolver, private _injector: Injector, private _modalStack: NgbModalStack,\n private _config: NgbModalConfig) {}\n\n /**\n * Opens a new modal window with the specified content and supplied options.\n *\n * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content,\n * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then\n * use `NgbActiveModal` methods to close / dismiss modals from \"inside\" of your component.\n *\n * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options.\n */\n open(content: any, options: NgbModalOptions = {}): NgbModalRef {\n const combinedOptions = Object.assign({}, this._config, options);\n return this._modalStack.open(this._moduleCFR, this._injector, content, combinedOptions);\n }\n\n /**\n * Dismisses all currently displayed modal windows with the supplied reason.\n *\n * @since 3.1.0\n */\n dismissAll(reason?: any) { this._modalStack.dismissAll(reason); }\n\n /**\n * Indicates if there are currently any open modal windows in the application.\n *\n * @since 3.3.0\n */\n hasOpenModals(): boolean { return this._modalStack.hasOpenModals(); }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbModal} from './modal';\nimport {NgbModalBackdrop} from './modal-backdrop';\nimport {NgbModalWindow} from './modal-window';\n\nexport {NgbModal} from './modal';\nexport {NgbModalConfig, NgbModalOptions} from './modal-config';\nexport {NgbModalRef, NgbActiveModal} from './modal-ref';\nexport {ModalDismissReasons} from './modal-dismiss-reasons';\n\n@NgModule({\n declarations: [NgbModalBackdrop, NgbModalWindow],\n entryComponents: [NgbModalBackdrop, NgbModalWindow],\n providers: [NgbModal]\n})\nexport class NgbModalModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the paginations used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbPaginationConfig {\n disabled = false;\n boundaryLinks = false;\n directionLinks = true;\n ellipses = true;\n maxSize = 0;\n pageSize = 10;\n rotate = false;\n size: 'sm' | 'lg';\n}\n","import {\n Component,\n ContentChild,\n Directive,\n EventEmitter,\n Input,\n Output,\n OnChanges,\n ChangeDetectionStrategy,\n SimpleChanges,\n TemplateRef\n} from '@angular/core';\nimport {getValueInRange, isNumber} from '../util/util';\nimport {NgbPaginationConfig} from './pagination-config';\n\n/**\n * A context for the\n * * `NgbPaginationFirst`\n * * `NgbPaginationPrevious`\n * * `NgbPaginationNext`\n * * `NgbPaginationLast`\n * * `NgbPaginationEllipsis`\n *\n * link templates in case you want to override one.\n *\n * @since 4.1.0\n */\nexport interface NgbPaginationLinkContext {\n /**\n * The currently selected page number\n */\n currentPage: number;\n\n /**\n * If `true`, the current link is disabled\n */\n disabled: boolean;\n}\n\n/**\n * A context for the `NgbPaginationNumber` link template in case you want to override one.\n *\n * Extends `NgbPaginationLinkContext`.\n *\n * @since 4.1.0\n */\nexport interface NgbPaginationNumberContext extends NgbPaginationLinkContext {\n /**\n * The page number, displayed by the current page link.\n */\n $implicit: number;\n}\n\n/**\n * A directive to match the 'ellipsis' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationEllipsis]'})\nexport class NgbPaginationEllipsis {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'first' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationFirst]'})\nexport class NgbPaginationFirst {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'last' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationLast]'})\nexport class NgbPaginationLast {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'next' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationNext]'})\nexport class NgbPaginationNext {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the page 'number' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationNumber]'})\nexport class NgbPaginationNumber {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to match the 'previous' link template\n *\n * @since 4.1.0\n */\n@Directive({selector: 'ng-template[ngbPaginationPrevious]'})\nexport class NgbPaginationPrevious {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A component that displays page numbers and allows to customize them in several ways.\n */\n@Component({\n selector: 'ngb-pagination',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {'role': 'navigation'},\n template: `\n ««\n «\n »\n »»\n ...\n \n {{ page }}\n (current)\n \n \n `\n})\nexport class NgbPagination implements OnChanges {\n pageCount = 0;\n pages: number[] = [];\n\n @ContentChild(NgbPaginationEllipsis, {static: false}) tplEllipsis: NgbPaginationEllipsis;\n @ContentChild(NgbPaginationFirst, {static: false}) tplFirst: NgbPaginationFirst;\n @ContentChild(NgbPaginationLast, {static: false}) tplLast: NgbPaginationLast;\n @ContentChild(NgbPaginationNext, {static: false}) tplNext: NgbPaginationNext;\n @ContentChild(NgbPaginationNumber, {static: false}) tplNumber: NgbPaginationNumber;\n @ContentChild(NgbPaginationPrevious, {static: false}) tplPrevious: NgbPaginationPrevious;\n\n /**\n * If `true`, pagination links will be disabled.\n */\n @Input() disabled: boolean;\n\n /**\n * If `true`, the \"First\" and \"Last\" page links are shown.\n */\n @Input() boundaryLinks: boolean;\n\n /**\n * If `true`, the \"Next\" and \"Previous\" page links are shown.\n */\n @Input() directionLinks: boolean;\n\n /**\n * If `true`, the ellipsis symbols and first/last page numbers will be shown when `maxSize` > number of pages.\n */\n @Input() ellipses: boolean;\n\n /**\n * Whether to rotate pages when `maxSize` > number of pages.\n *\n * The current page always stays in the middle if `true`.\n */\n @Input() rotate: boolean;\n\n /**\n * The number of items in your paginated collection.\n *\n * Note, that this is not the number of pages. Page numbers are calculated dynamically based on\n * `collectionSize` and `pageSize`. Ex. if you have 100 items in your collection and displaying 20 items per page,\n * you'll end up with 5 pages.\n */\n @Input() collectionSize: number;\n\n /**\n * The maximum number of pages to display.\n */\n @Input() maxSize: number;\n\n /**\n * The current page.\n *\n * Page numbers start with `1`.\n */\n @Input() page = 1;\n\n /**\n * The number of items per page.\n */\n @Input() pageSize: number;\n\n /**\n * An event fired when the page is changed. Will fire only if collection size is set and all values are valid.\n *\n * Event payload is the number of the newly selected page.\n *\n * Page numbers start with `1`.\n */\n @Output() pageChange = new EventEmitter(true);\n\n /**\n * The pagination display size.\n *\n * Bootstrap currently supports small and large sizes.\n */\n @Input() size: 'sm' | 'lg';\n\n constructor(config: NgbPaginationConfig) {\n this.disabled = config.disabled;\n this.boundaryLinks = config.boundaryLinks;\n this.directionLinks = config.directionLinks;\n this.ellipses = config.ellipses;\n this.maxSize = config.maxSize;\n this.pageSize = config.pageSize;\n this.rotate = config.rotate;\n this.size = config.size;\n }\n\n hasPrevious(): boolean { return this.page > 1; }\n\n hasNext(): boolean { return this.page < this.pageCount; }\n\n nextDisabled(): boolean { return !this.hasNext() || this.disabled; }\n\n previousDisabled(): boolean { return !this.hasPrevious() || this.disabled; }\n\n selectPage(pageNumber: number): void { this._updatePages(pageNumber); }\n\n ngOnChanges(changes: SimpleChanges): void { this._updatePages(this.page); }\n\n isEllipsis(pageNumber): boolean { return pageNumber === -1; }\n\n /**\n * Appends ellipses and first/last page number to the displayed pages\n */\n private _applyEllipses(start: number, end: number) {\n if (this.ellipses) {\n if (start > 0) {\n if (start > 1) {\n this.pages.unshift(-1);\n }\n this.pages.unshift(1);\n }\n if (end < this.pageCount) {\n if (end < (this.pageCount - 1)) {\n this.pages.push(-1);\n }\n this.pages.push(this.pageCount);\n }\n }\n }\n\n /**\n * Rotates page numbers based on maxSize items visible.\n * Currently selected page stays in the middle:\n *\n * Ex. for selected page = 6:\n * [5,*6*,7] for maxSize = 3\n * [4,5,*6*,7] for maxSize = 4\n */\n private _applyRotation(): [number, number] {\n let start = 0;\n let end = this.pageCount;\n let leftOffset = Math.floor(this.maxSize / 2);\n let rightOffset = this.maxSize % 2 === 0 ? leftOffset - 1 : leftOffset;\n\n if (this.page <= leftOffset) {\n // very beginning, no rotation -> [0..maxSize]\n end = this.maxSize;\n } else if (this.pageCount - this.page < leftOffset) {\n // very end, no rotation -> [len-maxSize..len]\n start = this.pageCount - this.maxSize;\n } else {\n // rotate\n start = this.page - leftOffset - 1;\n end = this.page + rightOffset;\n }\n\n return [start, end];\n }\n\n /**\n * Paginates page numbers based on maxSize items per page.\n */\n private _applyPagination(): [number, number] {\n let page = Math.ceil(this.page / this.maxSize) - 1;\n let start = page * this.maxSize;\n let end = start + this.maxSize;\n\n return [start, end];\n }\n\n private _setPageInRange(newPageNo) {\n const prevPageNo = this.page;\n this.page = getValueInRange(newPageNo, this.pageCount, 1);\n\n if (this.page !== prevPageNo && isNumber(this.collectionSize)) {\n this.pageChange.emit(this.page);\n }\n }\n\n private _updatePages(newPage: number) {\n this.pageCount = Math.ceil(this.collectionSize / this.pageSize);\n\n if (!isNumber(this.pageCount)) {\n this.pageCount = 0;\n }\n\n // fill-in model needed to render pages\n this.pages.length = 0;\n for (let i = 1; i <= this.pageCount; i++) {\n this.pages.push(i);\n }\n\n // set page within 1..max range\n this._setPageInRange(newPage);\n\n // apply maxSize if necessary\n if (this.maxSize > 0 && this.pageCount > this.maxSize) {\n let start = 0;\n let end = this.pageCount;\n\n // either paginating or rotating page numbers\n if (this.rotate) {\n [start, end] = this._applyRotation();\n } else {\n [start, end] = this._applyPagination();\n }\n\n this.pages = this.pages.slice(start, end);\n\n // adding ellipses\n this._applyEllipses(start, end);\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {\n NgbPagination,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination';\n\nexport {\n NgbPagination,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination';\nexport {NgbPaginationConfig} from './pagination-config';\n\nconst DIRECTIVES = [\n NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber,\n NgbPaginationPrevious\n];\n\n@NgModule({declarations: DIRECTIVES, exports: DIRECTIVES, imports: [CommonModule]})\nexport class NgbPaginationModule {\n}\n","import {Observable, merge} from 'rxjs';\nimport {share, filter, delay, map} from 'rxjs/operators';\n\nexport class Trigger {\n constructor(public open: string, public close?: string) {\n if (!close) {\n this.close = open;\n }\n }\n\n isManual() { return this.open === 'manual' || this.close === 'manual'; }\n}\n\nconst DEFAULT_ALIASES = {\n 'hover': ['mouseenter', 'mouseleave'],\n 'focus': ['focusin', 'focusout'],\n};\n\nexport function parseTriggers(triggers: string, aliases = DEFAULT_ALIASES): Trigger[] {\n const trimmedTriggers = (triggers || '').trim();\n\n if (trimmedTriggers.length === 0) {\n return [];\n }\n\n const parsedTriggers = trimmedTriggers.split(/\\s+/).map(trigger => trigger.split(':')).map((triggerPair) => {\n let alias = aliases[triggerPair[0]] || triggerPair;\n return new Trigger(alias[0], alias[1]);\n });\n\n const manualTriggers = parsedTriggers.filter(triggerPair => triggerPair.isManual());\n\n if (manualTriggers.length > 1) {\n throw 'Triggers parse error: only one manual trigger is allowed';\n }\n\n if (manualTriggers.length === 1 && parsedTriggers.length > 1) {\n throw 'Triggers parse error: manual trigger can\\'t be mixed with other triggers';\n }\n\n return parsedTriggers;\n}\n\nexport function observeTriggers(renderer: any, nativeElement: any, triggers: Trigger[], isOpenedFn: () => boolean) {\n return new Observable(subscriber => {\n const listeners = [];\n const openFn = () => subscriber.next(true);\n const closeFn = () => subscriber.next(false);\n const toggleFn = () => subscriber.next(!isOpenedFn());\n\n triggers.forEach((trigger: Trigger) => {\n if (trigger.open === trigger.close) {\n listeners.push(renderer.listen(nativeElement, trigger.open, toggleFn));\n } else {\n listeners.push(\n renderer.listen(nativeElement, trigger.open, openFn),\n renderer.listen(nativeElement, trigger.close, closeFn));\n }\n });\n\n return () => { listeners.forEach(unsubscribeFn => unsubscribeFn()); };\n });\n}\n\nconst delayOrNoop = (time: number) => time > 0 ? delay(time) : (a: Observable) => a;\n\nexport function triggerDelay(openDelay: number, closeDelay: number, isOpenedFn: () => boolean) {\n return (input$: Observable) => {\n let pending = null;\n const filteredInput$ = input$.pipe(\n map(open => ({open})), filter(event => {\n const currentlyOpen = isOpenedFn();\n if (currentlyOpen !== event.open && (!pending || pending.open === currentlyOpen)) {\n pending = event;\n return true;\n }\n if (pending && pending.open !== event.open) {\n pending = null;\n }\n return false;\n }),\n share());\n const delayedOpen$ = filteredInput$.pipe(filter(event => event.open), delayOrNoop(openDelay));\n const delayedClose$ = filteredInput$.pipe(filter(event => !event.open), delayOrNoop(closeDelay));\n return merge(delayedOpen$, delayedClose$)\n .pipe(\n filter(event => {\n if (event === pending) {\n pending = null;\n return event.open !== isOpenedFn();\n }\n return false;\n }),\n map(event => event.open));\n };\n}\n\nexport function listenToTriggers(\n renderer: any, nativeElement: any, triggers: string, isOpenedFn: () => boolean, openFn, closeFn, openDelay = 0,\n closeDelay = 0) {\n const parsedTriggers = parseTriggers(triggers);\n\n if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) {\n return () => {};\n }\n\n const subscription = observeTriggers(renderer, nativeElement, parsedTriggers, isOpenedFn)\n .pipe(triggerDelay(openDelay, closeDelay, isOpenedFn))\n .subscribe(open => (open ? openFn() : closeFn()));\n\n return () => subscription.unsubscribe();\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the popovers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbPopoverConfig {\n autoClose: boolean | 'inside' | 'outside' = true;\n placement: PlacementArray = 'auto';\n triggers = 'click';\n container: string;\n disablePopover = false;\n popoverClass: string;\n openDelay = 0;\n closeDelay = 0;\n}\n","import {\n Component,\n Directive,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n OnChanges,\n Inject,\n Injector,\n Renderer2,\n ComponentRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n ComponentFactoryResolver,\n NgZone,\n SimpleChanges,\n ViewEncapsulation,\n ChangeDetectorRef,\n ApplicationRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {listenToTriggers} from '../util/triggers';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {positionElements, PlacementArray} from '../util/positioning';\nimport {PopupService} from '../util/popup';\n\nimport {NgbPopoverConfig} from './popover-config';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngb-popover-window',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'[class]': '\"popover\" + (popoverClass ? \" \" + popoverClass : \"\")', 'role': 'tooltip', '[id]': 'id'},\n template: `\n
\n

\n {{title}}\n \n

\n
`,\n styleUrls: ['./popover.scss']\n})\nexport class NgbPopoverWindow {\n @Input() title: undefined | string | TemplateRef;\n @Input() id: string;\n @Input() popoverClass: string;\n @Input() context: any;\n\n isTitleTemplate() { return this.title instanceof TemplateRef; }\n}\n\n/**\n * A lightweight and extensible directive for fancy popover creation.\n */\n@Directive({selector: '[ngbPopover]', exportAs: 'ngbPopover'})\nexport class NgbPopover implements OnInit, OnDestroy, OnChanges {\n /**\n * Indicates whether the popover should be closed on `Escape` key and inside/outside clicks:\n *\n * * `true` - closes on both outside and inside clicks as well as `Escape` presses\n * * `false` - disables the autoClose feature (NB: triggers still apply)\n * * `\"inside\"` - closes on inside clicks as well as Escape presses\n * * `\"outside\"` - closes on outside clicks (sometimes also achievable through triggers)\n * as well as `Escape` presses\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside';\n\n /**\n * The string content or a `TemplateRef` for the content to be displayed in the popover.\n *\n * If the title and the content are empty, the popover won't open.\n */\n @Input() ngbPopover: string | TemplateRef;\n\n /**\n * The title of the popover.\n *\n * If the title and the content are empty, the popover won't open.\n */\n @Input() popoverTitle: string | TemplateRef;\n\n /**\n * The preferred placement of the popover.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"auto\"` (same as the sequence above).\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * Specifies events that should trigger the tooltip.\n *\n * Supports a space separated list of event names.\n * For more details see the [triggers demo](#/components/popover/examples#triggers).\n */\n @Input() triggers: string;\n\n /**\n * A selector specifying the element the popover should be appended to.\n *\n * Currently only supports `body`.\n */\n @Input() container: string;\n\n /**\n * If `true`, popover is disabled and won't be displayed.\n *\n * @since 1.1.0\n */\n @Input() disablePopover: boolean;\n\n /**\n * An optional class applied to the popover window element.\n *\n * @since 2.2.0\n */\n @Input() popoverClass: string;\n\n /**\n * The opening delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() openDelay: number;\n\n /**\n * The closing delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() closeDelay: number;\n\n /**\n * An event emitted when the popover is shown. Contains no payload.\n */\n @Output() shown = new EventEmitter();\n\n /**\n * An event emitted when the popover is hidden. Contains no payload.\n */\n @Output() hidden = new EventEmitter();\n\n private _ngbPopoverWindowId = `ngb-popover-${nextId++}`;\n private _popupService: PopupService;\n private _windowRef: ComponentRef;\n private _unregisterListenersFn;\n private _zoneSubscription: any;\n private _isDisabled(): boolean {\n if (this.disablePopover) {\n return true;\n }\n if (!this.ngbPopover && !this.popoverTitle) {\n return true;\n }\n return false;\n }\n\n constructor(\n private _elementRef: ElementRef, private _renderer: Renderer2, injector: Injector,\n componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: NgbPopoverConfig,\n private _ngZone: NgZone, @Inject(DOCUMENT) private _document: any, private _changeDetector: ChangeDetectorRef,\n private _applicationRef: ApplicationRef) {\n this.autoClose = config.autoClose;\n this.placement = config.placement;\n this.triggers = config.triggers;\n this.container = config.container;\n this.disablePopover = config.disablePopover;\n this.popoverClass = config.popoverClass;\n this.openDelay = config.openDelay;\n this.closeDelay = config.closeDelay;\n this._popupService = new PopupService(\n NgbPopoverWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => {\n if (this._windowRef) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body', 'bs-popover');\n }\n });\n }\n\n /**\n * Opens the popover.\n *\n * This is considered to be a \"manual\" triggering.\n * The `context` is an optional value to be injected into the popover template when it is created.\n */\n open(context?: any) {\n if (!this._windowRef && !this._isDisabled()) {\n this._windowRef = this._popupService.open(this.ngbPopover, context);\n this._windowRef.instance.title = this.popoverTitle;\n this._windowRef.instance.context = context;\n this._windowRef.instance.popoverClass = this.popoverClass;\n this._windowRef.instance.id = this._ngbPopoverWindowId;\n\n this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbPopoverWindowId);\n\n if (this.container === 'body') {\n this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n // We need to detect changes, because we don't know where .open() might be called from.\n // Ex. opening popover from one of lifecycle hooks that run after the CD\n // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception\n this._windowRef.changeDetectorRef.detectChanges();\n\n // We need to mark for check, because popover won't work inside the OnPush component.\n // Ex. when we use expression like `{{ popover.isOpen() : 'opened' : 'closed' }}`\n // inside the template of an OnPush component and we change the popover from\n // open -> closed, the expression in question won't be updated unless we explicitly\n // mark the parent component to be checked.\n this._windowRef.changeDetectorRef.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.hidden,\n [this._windowRef.location.nativeElement]);\n this.shown.emit();\n }\n }\n\n /**\n * Closes the popover.\n *\n * This is considered to be a \"manual\" triggering of the popover.\n */\n close(): void {\n if (this._windowRef) {\n this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');\n this._popupService.close();\n this._windowRef = null;\n this.hidden.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the popover.\n *\n * This is considered to be a \"manual\" triggering of the popover.\n */\n toggle(): void {\n if (this._windowRef) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Returns `true`, if the popover is currently shown.\n */\n isOpen(): boolean { return this._windowRef != null; }\n\n ngOnInit() {\n this._unregisterListenersFn = listenToTriggers(\n this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this),\n this.close.bind(this), +this.openDelay, +this.closeDelay);\n }\n\n ngOnChanges(changes: SimpleChanges) {\n // close popover if title and content become empty, or disablePopover set to true\n if ((changes['ngbPopover'] || changes['popoverTitle'] || changes['disablePopover']) && this._isDisabled()) {\n this.close();\n }\n }\n\n ngOnDestroy() {\n this.close();\n // This check is needed as it might happen that ngOnDestroy is called before ngOnInit\n // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199\n if (this._unregisterListenersFn) {\n this._unregisterListenersFn();\n }\n this._zoneSubscription.unsubscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbPopover, NgbPopoverWindow} from './popover';\nimport {CommonModule} from '@angular/common';\n\nexport {NgbPopover} from './popover';\nexport {NgbPopoverConfig} from './popover-config';\nexport {Placement} from '../util/positioning';\n\n@NgModule({\n declarations: [NgbPopover, NgbPopoverWindow],\n exports: [NgbPopover],\n imports: [CommonModule],\n entryComponents: [NgbPopoverWindow]\n})\nexport class NgbPopoverModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the progress bars used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbProgressbarConfig {\n max = 100;\n animated = false;\n striped = false;\n type: string;\n showValue = false;\n height: string;\n}\n","import {Component, Input, ChangeDetectionStrategy} from '@angular/core';\nimport {getValueInRange} from '../util/util';\nimport {NgbProgressbarConfig} from './progressbar-config';\n\n/**\n * A directive that provides feedback on the progress of a workflow or an action.\n */\n@Component({\n selector: 'ngb-progressbar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n
\n
\n {{getPercentValue()}}%\n
\n
\n `\n})\nexport class NgbProgressbar {\n /**\n * The maximal value to be displayed in the progressbar.\n */\n @Input() max: number;\n\n /**\n * If `true`, the stripes on the progressbar are animated.\n *\n * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.\n */\n @Input() animated: boolean;\n\n /**\n * If `true`, the progress bars will be displayed as striped.\n */\n @Input() striped: boolean;\n\n /**\n * If `true`, the current percentage will be shown in the `xx%` format.\n */\n @Input() showValue: boolean;\n\n /**\n * The type of the progress bar.\n *\n * Currently Bootstrap supports `\"success\"`, `\"info\"`, `\"warning\"` or `\"danger\"`.\n */\n @Input() type: string;\n\n /**\n * The current value for the progress bar.\n *\n * Should be in the `[0, max]` range.\n */\n @Input() value = 0;\n\n /**\n * THe height of the progress bar.\n *\n * Accepts any valid CSS height values, ex. `\"2rem\"`\n */\n @Input() height: string;\n\n constructor(config: NgbProgressbarConfig) {\n this.max = config.max;\n this.animated = config.animated;\n this.striped = config.striped;\n this.type = config.type;\n this.showValue = config.showValue;\n this.height = config.height;\n }\n\n getValue() { return getValueInRange(this.value, this.max); }\n\n getPercentValue() { return 100 * this.getValue() / this.max; }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbProgressbar} from './progressbar';\n\nexport {NgbProgressbar} from './progressbar';\nexport {NgbProgressbarConfig} from './progressbar-config';\n\n@NgModule({declarations: [NgbProgressbar], exports: [NgbProgressbar], imports: [CommonModule]})\nexport class NgbProgressbarModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the ratings used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbRatingConfig {\n max = 10;\n readonly = false;\n resettable = false;\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n Output,\n EventEmitter,\n OnInit,\n TemplateRef,\n OnChanges,\n SimpleChanges,\n ContentChild,\n forwardRef,\n ChangeDetectorRef\n} from '@angular/core';\nimport {NgbRatingConfig} from './rating-config';\nimport {getValueInRange} from '../util/util';\nimport {Key} from '../util/key';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\n/**\n * The context for the custom star display template defined in the `starTemplate`.\n */\nexport interface StarTemplateContext {\n /**\n * The star fill percentage, an integer in the `[0, 100]` range.\n */\n fill: number;\n\n /**\n * Index of the star, starts with `0`.\n */\n index: number;\n}\n\nconst NGB_RATING_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbRating),\n multi: true\n};\n\n/**\n * A directive that helps visualising and interacting with a star rating bar.\n */\n@Component({\n selector: 'ngb-rating',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'd-inline-flex',\n 'tabindex': '0',\n 'role': 'slider',\n 'aria-valuemin': '0',\n '[attr.aria-valuemax]': 'max',\n '[attr.aria-valuenow]': 'nextRate',\n '[attr.aria-valuetext]': 'ariaValueText()',\n '[attr.aria-disabled]': 'readonly ? true : null',\n '(blur)': 'handleBlur()',\n '(keydown)': 'handleKeyDown($event)',\n '(mouseleave)': 'reset()'\n },\n template: `\n {{ fill === 100 ? '★' : '☆' }}\n \n ({{ index < nextRate ? '*' : ' ' }})\n \n \n \n \n \n `,\n providers: [NGB_RATING_VALUE_ACCESSOR]\n})\nexport class NgbRating implements ControlValueAccessor,\n OnInit, OnChanges {\n contexts: StarTemplateContext[] = [];\n disabled = false;\n nextRate: number;\n\n\n /**\n * The maximal rating that can be given.\n */\n @Input() max: number;\n\n /**\n * The current rating. Could be a decimal value like `3.75`.\n */\n @Input() rate: number;\n\n /**\n * If `true`, the rating can't be changed.\n */\n @Input() readonly: boolean;\n\n /**\n * If `true`, the rating can be reset to `0` by mouse clicking currently set rating.\n */\n @Input() resettable: boolean;\n\n /**\n * The template to override the way each star is displayed.\n *\n * Alternatively put an `` as the only child of your `` element\n */\n @Input() starTemplate: TemplateRef;\n @ContentChild(TemplateRef, {static: false}) starTemplateFromContent: TemplateRef;\n\n /**\n * An event emitted when the user is hovering over a given rating.\n *\n * Event payload equals to the rating being hovered over.\n */\n @Output() hover = new EventEmitter();\n\n /**\n * An event emitted when the user stops hovering over a given rating.\n *\n * Event payload equals to the rating of the last item being hovered over.\n */\n @Output() leave = new EventEmitter();\n\n /**\n * An event emitted when the user selects a new rating.\n *\n * Event payload equals to the newly selected rating.\n */\n @Output() rateChange = new EventEmitter(true);\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n constructor(config: NgbRatingConfig, private _changeDetectorRef: ChangeDetectorRef) {\n this.max = config.max;\n this.readonly = config.readonly;\n }\n\n ariaValueText() { return `${this.nextRate} out of ${this.max}`; }\n\n enter(value: number): void {\n if (!this.readonly && !this.disabled) {\n this._updateState(value);\n }\n this.hover.emit(value);\n }\n\n handleBlur() { this.onTouched(); }\n\n handleClick(value: number) { this.update(this.resettable && this.rate === value ? 0 : value); }\n\n handleKeyDown(event: KeyboardEvent) {\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.ArrowDown:\n case Key.ArrowLeft:\n this.update(this.rate - 1);\n break;\n case Key.ArrowUp:\n case Key.ArrowRight:\n this.update(this.rate + 1);\n break;\n case Key.Home:\n this.update(0);\n break;\n case Key.End:\n this.update(this.max);\n break;\n default:\n return;\n }\n\n // note 'return' in default case\n event.preventDefault();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['rate']) {\n this.update(this.rate);\n }\n }\n\n ngOnInit(): void {\n this.contexts = Array.from({length: this.max}, (v, k) => ({fill: 0, index: k}));\n this._updateState(this.rate);\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n reset(): void {\n this.leave.emit(this.nextRate);\n this._updateState(this.rate);\n }\n\n setDisabledState(isDisabled: boolean) { this.disabled = isDisabled; }\n\n update(value: number, internalChange = true): void {\n const newRate = getValueInRange(value, this.max, 0);\n if (!this.readonly && !this.disabled && this.rate !== newRate) {\n this.rate = newRate;\n this.rateChange.emit(this.rate);\n }\n if (internalChange) {\n this.onChange(this.rate);\n this.onTouched();\n }\n this._updateState(this.rate);\n }\n\n writeValue(value) {\n this.update(value, false);\n this._changeDetectorRef.markForCheck();\n }\n\n private _getFillValue(index: number): number {\n const diff = this.nextRate - index;\n\n if (diff >= 1) {\n return 100;\n }\n if (diff < 1 && diff > 0) {\n return parseInt((diff * 100).toFixed(2), 10);\n }\n\n return 0;\n }\n\n private _updateState(nextValue: number) {\n this.nextRate = nextValue;\n this.contexts.forEach((context, index) => context.fill = this._getFillValue(index));\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbRating} from './rating';\n\nexport {NgbRating} from './rating';\nexport {NgbRatingConfig} from './rating-config';\n\n@NgModule({declarations: [NgbRating], exports: [NgbRating], imports: [CommonModule]})\nexport class NgbRatingModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbTabset`](#/components/tabset/api#NgbTabset) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the tabsets used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTabsetConfig {\n justify: 'start' | 'center' | 'end' | 'fill' | 'justified' = 'start';\n orientation: 'horizontal' | 'vertical' = 'horizontal';\n type: 'tabs' | 'pills' = 'tabs';\n}\n","import {\n Component,\n Input,\n ContentChildren,\n QueryList,\n Directive,\n TemplateRef,\n AfterContentChecked,\n Output,\n EventEmitter\n} from '@angular/core';\nimport {NgbTabsetConfig} from './tabset-config';\n\nlet nextId = 0;\n\n/**\n * A directive to wrap tab titles that need to contain HTML markup or other directives.\n *\n * Alternatively you could use the `NgbTab.title` input for string titles.\n */\n@Directive({selector: 'ng-template[ngbTabTitle]'})\nexport class NgbTabTitle {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive to wrap content to be displayed in a tab.\n */\n@Directive({selector: 'ng-template[ngbTabContent]'})\nexport class NgbTabContent {\n constructor(public templateRef: TemplateRef) {}\n}\n\n/**\n * A directive representing an individual tab.\n */\n@Directive({selector: 'ngb-tab'})\nexport class NgbTab implements AfterContentChecked {\n /**\n * The tab identifier.\n *\n * Must be unique for the entire document for proper accessibility support.\n */\n @Input() id = `ngb-tab-${nextId++}`;\n\n /**\n * The tab title.\n *\n * Use the [`NgbTabTitle`](#/components/tabset/api#NgbTabTitle) directive for non-string titles.\n */\n @Input() title: string;\n\n /**\n * If `true`, the current tab is disabled and can't be toggled.\n */\n @Input() disabled = false;\n\n titleTpl: NgbTabTitle | null;\n contentTpl: NgbTabContent | null;\n\n @ContentChildren(NgbTabTitle, {descendants: false}) titleTpls: QueryList;\n @ContentChildren(NgbTabContent, {descendants: false}) contentTpls: QueryList;\n\n ngAfterContentChecked() {\n // We are using @ContentChildren instead of @ContentChild as in the Angular version being used\n // only @ContentChildren allows us to specify the {descendants: false} option.\n // Without {descendants: false} we are hitting bugs described in:\n // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240\n this.titleTpl = this.titleTpls.first;\n this.contentTpl = this.contentTpls.first;\n }\n}\n\n/**\n * The payload of the change event fired right before the tab change.\n */\nexport interface NgbTabChangeEvent {\n /**\n * The id of the currently active tab.\n */\n activeId: string;\n\n /**\n * The id of the newly selected tab.\n */\n nextId: string;\n\n /**\n * Calling this function will prevent tab switching.\n */\n preventDefault: () => void;\n}\n\n/**\n * A component that makes it easy to create tabbed interface.\n */\n@Component({\n selector: 'ngb-tabset',\n exportAs: 'ngbTabset',\n template: `\n \n
\n \n \n \n
\n
\n \n `\n})\nexport class NgbTabset implements AfterContentChecked {\n justifyClass: string;\n\n @ContentChildren(NgbTab) tabs: QueryList;\n\n /**\n * The identifier of the tab that should be opened **initially**.\n *\n * For subsequent tab switches use the `.select()` method and the `(tabChange)` event.\n */\n @Input() activeId: string;\n\n /**\n * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden.\n */\n @Input() destroyOnHide = true;\n\n /**\n * The horizontal alignment of the tabs with flexbox utilities.\n */\n @Input()\n set justify(className: 'start' | 'center' | 'end' | 'fill' | 'justified') {\n if (className === 'fill' || className === 'justified') {\n this.justifyClass = `nav-${className}`;\n } else {\n this.justifyClass = `justify-content-${className}`;\n }\n }\n\n /**\n * The orientation of the tabset.\n */\n @Input() orientation: 'horizontal' | 'vertical';\n\n /**\n * Type of navigation to be used for tabs.\n *\n * Currently Bootstrap supports only `\"tabs\"` and `\"pills\"`.\n *\n * Since `3.0.0` can also be an arbitrary string (ex. for custom themes).\n */\n @Input() type: 'tabs' | 'pills' | string;\n\n /**\n * A tab change event emitted right before the tab change happens.\n *\n * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details.\n */\n @Output() tabChange = new EventEmitter();\n\n constructor(config: NgbTabsetConfig) {\n this.type = config.type;\n this.justify = config.justify;\n this.orientation = config.orientation;\n }\n\n /**\n * Selects the tab with the given id and shows its associated content panel.\n *\n * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or\n * hidden depending on the `destroyOnHide` value.\n */\n select(tabId: string) {\n let selectedTab = this._getTabById(tabId);\n if (selectedTab && !selectedTab.disabled && this.activeId !== selectedTab.id) {\n let defaultPrevented = false;\n\n this.tabChange.emit(\n {activeId: this.activeId, nextId: selectedTab.id, preventDefault: () => { defaultPrevented = true; }});\n\n if (!defaultPrevented) {\n this.activeId = selectedTab.id;\n }\n }\n }\n\n ngAfterContentChecked() {\n // auto-correct activeId that might have been set incorrectly as input\n let activeTab = this._getTabById(this.activeId);\n this.activeId = activeTab ? activeTab.id : (this.tabs.length ? this.tabs.first.id : null);\n }\n\n private _getTabById(id: string): NgbTab {\n let tabsWithId: NgbTab[] = this.tabs.filter(tab => tab.id === id);\n return tabsWithId.length ? tabsWithId[0] : null;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbTabset, NgbTab, NgbTabContent, NgbTabTitle} from './tabset';\n\nexport {NgbTabset, NgbTab, NgbTabContent, NgbTabTitle, NgbTabChangeEvent} from './tabset';\nexport {NgbTabsetConfig} from './tabset-config';\n\nconst NGB_TABSET_DIRECTIVES = [NgbTabset, NgbTab, NgbTabContent, NgbTabTitle];\n\n@NgModule({declarations: NGB_TABSET_DIRECTIVES, exports: NGB_TABSET_DIRECTIVES, imports: [CommonModule]})\nexport class NgbTabsetModule {\n}\n","import {isNumber, toInteger} from '../util/util';\n\nexport class NgbTime {\n hour: number;\n minute: number;\n second: number;\n\n constructor(hour?: number, minute?: number, second?: number) {\n this.hour = toInteger(hour);\n this.minute = toInteger(minute);\n this.second = toInteger(second);\n }\n\n changeHour(step = 1) { this.updateHour((isNaN(this.hour) ? 0 : this.hour) + step); }\n\n updateHour(hour: number) {\n if (isNumber(hour)) {\n this.hour = (hour < 0 ? 24 + hour : hour) % 24;\n } else {\n this.hour = NaN;\n }\n }\n\n changeMinute(step = 1) { this.updateMinute((isNaN(this.minute) ? 0 : this.minute) + step); }\n\n updateMinute(minute: number) {\n if (isNumber(minute)) {\n this.minute = minute % 60 < 0 ? 60 + minute % 60 : minute % 60;\n this.changeHour(Math.floor(minute / 60));\n } else {\n this.minute = NaN;\n }\n }\n\n changeSecond(step = 1) { this.updateSecond((isNaN(this.second) ? 0 : this.second) + step); }\n\n updateSecond(second: number) {\n if (isNumber(second)) {\n this.second = second < 0 ? 60 + second % 60 : second % 60;\n this.changeMinute(Math.floor(second / 60));\n } else {\n this.second = NaN;\n }\n }\n\n isValid(checkSecs = true) {\n return isNumber(this.hour) && isNumber(this.minute) && (checkSecs ? isNumber(this.second) : true);\n }\n\n toString() { return `${this.hour || 0}:${this.minute || 0}:${this.second || 0}`; }\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the timepickers used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTimepickerConfig {\n meridian = false;\n spinners = true;\n seconds = false;\n hourStep = 1;\n minuteStep = 1;\n secondStep = 1;\n disabled = false;\n readonlyInputs = false;\n size: 'small' | 'medium' | 'large' = 'medium';\n}\n","import {Injectable} from '@angular/core';\nimport {NgbTimeStruct} from './ngb-time-struct';\nimport {isInteger} from '../util/util';\n\nexport function NGB_DATEPICKER_TIME_ADAPTER_FACTORY() {\n return new NgbTimeStructAdapter();\n}\n\n/**\n * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and\n * any provided user time model `T`, ex. a string, a native date, etc.\n *\n * The adapter is used **only** for conversion when binding timepicker to a form control,\n * ex. `[(ngModel)]=\"userTimeModel\"`. Here `userTimeModel` can be of any type.\n *\n * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model.\n *\n * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example.\n *\n * @since 2.2.0\n */\n@Injectable({providedIn: 'root', useFactory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY})\nexport abstract class NgbTimeAdapter {\n /**\n * Converts a user-model time of type `T` to an `NgbTimeStruct` for internal use.\n */\n abstract fromModel(value: T): NgbTimeStruct;\n\n /**\n * Converts an internal `NgbTimeStruct` time to a user-model time of type `T`.\n */\n abstract toModel(time: NgbTimeStruct): T;\n}\n\n@Injectable()\nexport class NgbTimeStructAdapter extends NgbTimeAdapter {\n /**\n * Converts a NgbTimeStruct value into NgbTimeStruct value\n */\n fromModel(time: NgbTimeStruct): NgbTimeStruct {\n return (time && isInteger(time.hour) && isInteger(time.minute)) ?\n {hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null} :\n null;\n }\n\n /**\n * Converts a NgbTimeStruct value into NgbTimeStruct value\n */\n toModel(time: NgbTimeStruct): NgbTimeStruct {\n return (time && isInteger(time.hour) && isInteger(time.minute)) ?\n {hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null} :\n null;\n }\n}\n","import {Inject, Injectable, LOCALE_ID} from '@angular/core';\nimport {FormStyle, getLocaleDayPeriods, TranslationWidth} from '@angular/common';\n\nexport function NGB_TIMEPICKER_I18N_FACTORY(locale) {\n return new NgbTimepickerI18nDefault(locale);\n}\n\n/**\n * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component.\n * The default implementation of this service honors the Angular locale, and uses the registered locale data,\n * as explained in the Angular i18n guide.\n */\n@Injectable({providedIn: 'root', useFactory: NGB_TIMEPICKER_I18N_FACTORY, deps: [LOCALE_ID]})\nexport abstract class NgbTimepickerI18n {\n /**\n * Returns the name for the period before midday.\n */\n abstract getMorningPeriod(): string;\n\n /**\n * Returns the name for the period after midday.\n */\n abstract getAfternoonPeriod(): string;\n}\n\n@Injectable()\nexport class NgbTimepickerI18nDefault extends NgbTimepickerI18n {\n private _periods: [string, string];\n\n constructor(@Inject(LOCALE_ID) locale: string) {\n super();\n\n this._periods = getLocaleDayPeriods(locale, FormStyle.Standalone, TranslationWidth.Narrow);\n }\n\n getMorningPeriod(): string { return this._periods[0]; }\n\n getAfternoonPeriod(): string { return this._periods[1]; }\n}\n","import {\n ChangeDetectorRef,\n Component,\n forwardRef,\n Input,\n OnChanges,\n SimpleChanges,\n ViewEncapsulation\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {isInteger, isNumber, padNumber, toInteger} from '../util/util';\nimport {NgbTime} from './ngb-time';\nimport {NgbTimepickerConfig} from './timepicker-config';\nimport {NgbTimeAdapter} from './ngb-time-adapter';\nimport {NgbTimepickerI18n} from './timepicker-i18n';\n\nconst NGB_TIMEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbTimepicker),\n multi: true\n};\n\n/**\n * A directive that helps with wth picking hours, minutes and seconds.\n */\n@Component({\n selector: 'ngb-timepicker',\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./timepicker.scss'],\n template: `\n
\n
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
\n
\n \n
\n
\n
\n `,\n providers: [NGB_TIMEPICKER_VALUE_ACCESSOR]\n})\nexport class NgbTimepicker implements ControlValueAccessor,\n OnChanges {\n disabled: boolean;\n model: NgbTime;\n\n private _hourStep: number;\n private _minuteStep: number;\n private _secondStep: number;\n\n /**\n * Whether to display 12H or 24H mode.\n */\n @Input() meridian: boolean;\n\n /**\n * If `true`, the spinners above and below inputs are visible.\n */\n @Input() spinners: boolean;\n\n /**\n * If `true`, it is possible to select seconds.\n */\n @Input() seconds: boolean;\n\n /**\n * The number of hours to add/subtract when clicking hour spinners.\n */\n @Input()\n set hourStep(step: number) {\n this._hourStep = isInteger(step) ? step : this._config.hourStep;\n }\n\n get hourStep(): number { return this._hourStep; }\n\n /**\n * The number of minutes to add/subtract when clicking minute spinners.\n */\n @Input()\n set minuteStep(step: number) {\n this._minuteStep = isInteger(step) ? step : this._config.minuteStep;\n }\n\n get minuteStep(): number { return this._minuteStep; }\n\n /**\n * The number of seconds to add/subtract when clicking second spinners.\n */\n @Input()\n set secondStep(step: number) {\n this._secondStep = isInteger(step) ? step : this._config.secondStep;\n }\n\n get secondStep(): number { return this._secondStep; }\n\n /**\n * If `true`, the timepicker is readonly and can't be changed.\n */\n @Input() readonlyInputs: boolean;\n\n /**\n * The size of inputs and buttons.\n */\n @Input() size: 'small' | 'medium' | 'large';\n\n constructor(\n private readonly _config: NgbTimepickerConfig, private _ngbTimeAdapter: NgbTimeAdapter,\n private _cd: ChangeDetectorRef, public i18n: NgbTimepickerI18n) {\n this.meridian = _config.meridian;\n this.spinners = _config.spinners;\n this.seconds = _config.seconds;\n this.hourStep = _config.hourStep;\n this.minuteStep = _config.minuteStep;\n this.secondStep = _config.secondStep;\n this.disabled = _config.disabled;\n this.readonlyInputs = _config.readonlyInputs;\n this.size = _config.size;\n }\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n writeValue(value) {\n const structValue = this._ngbTimeAdapter.fromModel(value);\n this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime();\n if (!this.seconds && (!structValue || !isNumber(structValue.second))) {\n this.model.second = 0;\n }\n this._cd.markForCheck();\n }\n\n registerOnChange(fn: (value: any) => any): void { this.onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this.onTouched = fn; }\n\n setDisabledState(isDisabled: boolean) { this.disabled = isDisabled; }\n\n changeHour(step: number) {\n this.model.changeHour(step);\n this.propagateModelChange();\n }\n\n changeMinute(step: number) {\n this.model.changeMinute(step);\n this.propagateModelChange();\n }\n\n changeSecond(step: number) {\n this.model.changeSecond(step);\n this.propagateModelChange();\n }\n\n updateHour(newVal: string) {\n const isPM = this.model.hour >= 12;\n const enteredHour = toInteger(newVal);\n if (this.meridian && (isPM && enteredHour < 12 || !isPM && enteredHour === 12)) {\n this.model.updateHour(enteredHour + 12);\n } else {\n this.model.updateHour(enteredHour);\n }\n this.propagateModelChange();\n }\n\n updateMinute(newVal: string) {\n this.model.updateMinute(toInteger(newVal));\n this.propagateModelChange();\n }\n\n updateSecond(newVal: string) {\n this.model.updateSecond(toInteger(newVal));\n this.propagateModelChange();\n }\n\n toggleMeridian() {\n if (this.meridian) {\n this.changeHour(12);\n }\n }\n\n formatHour(value: number) {\n if (isNumber(value)) {\n if (this.meridian) {\n return padNumber(value % 12 === 0 ? 12 : value % 12);\n } else {\n return padNumber(value % 24);\n }\n } else {\n return padNumber(NaN);\n }\n }\n\n formatMinSec(value: number) { return padNumber(value); }\n\n get isSmallSize(): boolean { return this.size === 'small'; }\n\n get isLargeSize(): boolean { return this.size === 'large'; }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) {\n this.model.second = 0;\n this.propagateModelChange(false);\n }\n }\n\n private propagateModelChange(touched = true) {\n if (touched) {\n this.onTouched();\n }\n if (this.model.isValid(this.seconds)) {\n this.onChange(\n this._ngbTimeAdapter.toModel({hour: this.model.hour, minute: this.model.minute, second: this.model.second}));\n } else {\n this.onChange(this._ngbTimeAdapter.toModel(null));\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbTimepicker} from './timepicker';\n\nexport {NgbTimepicker} from './timepicker';\nexport {NgbTimepickerConfig} from './timepicker-config';\nexport {NgbTimeStruct} from './ngb-time-struct';\nexport {NgbTimeAdapter} from './ngb-time-adapter';\nexport {NgbTimepickerI18n} from './timepicker-i18n';\n\n@NgModule({declarations: [NgbTimepicker], exports: [NgbTimepicker], imports: [CommonModule]})\nexport class NgbTimepickerModule {\n}\n","import {Injectable} from '@angular/core';\n\n/**\n * Interface used to type all toast config options. See `NgbToastConfig`.\n *\n * @since 5.0.0\n */\nexport interface NgbToastOptions {\n /**\n * Specify if the toast component should emit the `hide()` output\n * after a certain `delay` in ms.\n */\n autohide?: boolean;\n\n /**\n * Delay in ms after which the `hide()` output should be emitted.\n */\n delay?: number;\n\n /**\n * Type of aria-live attribute to be used.\n *\n * Could be one of these 2 values (as string):\n * - `polite` (default)\n * - `alert`\n */\n ariaLive?: 'polite' | 'alert';\n}\n\n/**\n * Configuration service for the NgbToast component. You can inject this service, typically in your root component,\n * and customize the values of its properties in order to provide default values for all the toasts used in the\n * application.\n *\n * @since 5.0.0\n */\n@Injectable({providedIn: 'root'})\nexport class NgbToastConfig implements NgbToastOptions {\n autohide = true;\n delay = 500;\n ariaLive: 'polite' | 'alert' = 'polite';\n}\n","import {\n AfterContentInit,\n Attribute,\n Component,\n ContentChild,\n Directive,\n EventEmitter,\n Input,\n OnChanges,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {NgbToastConfig} from './toast-config';\n\n/**\n * This directive allows the usage of HTML markup or other directives\n * inside of the toast's header.\n *\n * @since 5.0.0\n */\n@Directive({selector: '[ngbToastHeader]'})\nexport class NgbToastHeader {\n}\n\n/**\n * Toasts provide feedback messages as notifications to the user.\n * Goal is to mimic the push notifications available both on mobile and desktop operating systems.\n *\n * @since 5.0.0\n */\n@Component({\n selector: 'ngb-toast',\n exportAs: 'ngbToast',\n encapsulation: ViewEncapsulation.None,\n host: {\n 'role': 'alert',\n '[attr.aria-live]': 'ariaLive',\n 'aria-atomic': 'true',\n '[class.toast]': 'true',\n '[class.show]': 'true',\n '[class.autohide]': 'autohide',\n },\n template: `\n \n {{header}}\n \n \n
\n \n \n
\n
\n
\n \n
\n `,\n styleUrls: ['./toast.scss']\n})\nexport class NgbToast implements AfterContentInit,\n OnChanges {\n private _timeoutID;\n\n /**\n * Delay after which the toast will hide (ms).\n * default: `500` (ms) (inherited from NgbToastConfig)\n */\n @Input() delay: number;\n\n /**\n * Auto hide the toast after a delay in ms.\n * default: `true` (inherited from NgbToastConfig)\n */\n @Input() autohide: boolean;\n\n /**\n * Text to be used as toast's header.\n * Ignored if a ContentChild template is specified at the same time.\n */\n @Input() header: string;\n\n /**\n * A template like `` can be\n * used in the projected content to allow markup usage.\n */\n @ContentChild(NgbToastHeader, {read: TemplateRef, static: true}) contentHeaderTpl: TemplateRef| null = null;\n\n /**\n * An event fired immediately when toast's `hide()` method has been called.\n * It can only occur in 2 different scenarios:\n * - `autohide` timeout fires\n * - user clicks on a closing cross (×)\n *\n * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of\n * that.\n */\n @Output('hide') hideOutput = new EventEmitter();\n\n constructor(@Attribute('aria-live') public ariaLive: string, config: NgbToastConfig) {\n if (this.ariaLive == null) {\n this.ariaLive = config.ariaLive;\n }\n this.delay = config.delay;\n this.autohide = config.autohide;\n }\n\n ngAfterContentInit() { this._init(); }\n\n ngOnChanges(changes: SimpleChanges) {\n if ('autohide' in changes) {\n this._clearTimeout();\n this._init();\n }\n }\n\n hide() {\n this._clearTimeout();\n this.hideOutput.emit();\n }\n\n private _init() {\n if (this.autohide && !this._timeoutID) {\n this._timeoutID = setTimeout(() => this.hide(), this.delay);\n }\n }\n\n private _clearTimeout() {\n if (this._timeoutID) {\n clearTimeout(this._timeoutID);\n this._timeoutID = null;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\nimport {NgbToast, NgbToastHeader} from './toast';\n\nexport {NgbToast, NgbToastHeader} from './toast';\nexport {NgbToastConfig, NgbToastOptions} from './toast-config';\n\n@NgModule({declarations: [NgbToast, NgbToastHeader], imports: [CommonModule], exports: [NgbToast, NgbToastHeader]})\nexport class NgbToastModule {\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the tooltips used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTooltipConfig {\n autoClose: boolean | 'inside' | 'outside' = true;\n placement: PlacementArray = 'auto';\n triggers = 'hover focus';\n container: string;\n disableTooltip = false;\n tooltipClass: string;\n openDelay = 0;\n closeDelay = 0;\n}\n","import {\n Component,\n Directive,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n OnInit,\n OnDestroy,\n Inject,\n Injector,\n Renderer2,\n ComponentRef,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n ComponentFactoryResolver,\n NgZone,\n ViewEncapsulation,\n ChangeDetectorRef,\n ApplicationRef\n} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {listenToTriggers} from '../util/triggers';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {positionElements, PlacementArray} from '../util/positioning';\nimport {PopupService} from '../util/popup';\n\nimport {NgbTooltipConfig} from './tooltip-config';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ngb-tooltip-window',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {'[class]': '\"tooltip show\" + (tooltipClass ? \" \" + tooltipClass : \"\")', 'role': 'tooltip', '[id]': 'id'},\n template: `
`,\n styleUrls: ['./tooltip.scss']\n})\nexport class NgbTooltipWindow {\n @Input() id: string;\n @Input() tooltipClass: string;\n}\n\n/**\n * A lightweight and extensible directive for fancy tooltip creation.\n */\n@Directive({selector: '[ngbTooltip]', exportAs: 'ngbTooltip'})\nexport class NgbTooltip implements OnInit, OnDestroy {\n /**\n * Indicates whether the tooltip should be closed on `Escape` key and inside/outside clicks:\n *\n * * `true` - closes on both outside and inside clicks as well as `Escape` presses\n * * `false` - disables the autoClose feature (NB: triggers still apply)\n * * `\"inside\"` - closes on inside clicks as well as Escape presses\n * * `\"outside\"` - closes on outside clicks (sometimes also achievable through triggers)\n * as well as `Escape` presses\n *\n * @since 3.0.0\n */\n @Input() autoClose: boolean | 'inside' | 'outside';\n\n /**\n * The preferred placement of the tooltip.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"auto\"` (same as the sequence above).\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray;\n\n /**\n * Specifies events that should trigger the tooltip.\n *\n * Supports a space separated list of event names.\n * For more details see the [triggers demo](#/components/tooltip/examples#triggers).\n */\n @Input() triggers: string;\n\n /**\n * A selector specifying the element the tooltip should be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * If `true`, tooltip is disabled and won't be displayed.\n *\n * @since 1.1.0\n */\n @Input() disableTooltip: boolean;\n\n /**\n * An optional class applied to the tooltip window element.\n *\n * @since 3.2.0\n */\n @Input() tooltipClass: string;\n\n /**\n * The opening delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() openDelay: number;\n\n /**\n * The closing delay in ms. Works only for \"non-manual\" opening triggers defined by the `triggers` input.\n *\n * @since 4.1.0\n */\n @Input() closeDelay: number;\n\n /**\n * An event emitted when the tooltip is shown. Contains no payload.\n */\n @Output() shown = new EventEmitter();\n /**\n * An event emitted when the popover is hidden. Contains no payload.\n */\n @Output() hidden = new EventEmitter();\n\n private _ngbTooltip: string | TemplateRef;\n private _ngbTooltipWindowId = `ngb-tooltip-${nextId++}`;\n private _popupService: PopupService;\n private _windowRef: ComponentRef;\n private _unregisterListenersFn;\n private _zoneSubscription: any;\n\n constructor(\n private _elementRef: ElementRef, private _renderer: Renderer2, injector: Injector,\n componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: NgbTooltipConfig,\n private _ngZone: NgZone, @Inject(DOCUMENT) private _document: any, private _changeDetector: ChangeDetectorRef,\n private _applicationRef: ApplicationRef) {\n this.autoClose = config.autoClose;\n this.placement = config.placement;\n this.triggers = config.triggers;\n this.container = config.container;\n this.disableTooltip = config.disableTooltip;\n this.tooltipClass = config.tooltipClass;\n this.openDelay = config.openDelay;\n this.closeDelay = config.closeDelay;\n this._popupService = new PopupService(\n NgbTooltipWindow, injector, viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = _ngZone.onStable.subscribe(() => {\n if (this._windowRef) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body', 'bs-tooltip');\n }\n });\n }\n\n /**\n * The string content or a `TemplateRef` for the content to be displayed in the tooltip.\n *\n * If the content if falsy, the tooltip won't open.\n */\n @Input()\n set ngbTooltip(value: string | TemplateRef) {\n this._ngbTooltip = value;\n if (!value && this._windowRef) {\n this.close();\n }\n }\n\n get ngbTooltip() { return this._ngbTooltip; }\n\n /**\n * Opens the tooltip.\n *\n * This is considered to be a \"manual\" triggering.\n * The `context` is an optional value to be injected into the tooltip template when it is created.\n */\n open(context?: any) {\n if (!this._windowRef && this._ngbTooltip && !this.disableTooltip) {\n this._windowRef = this._popupService.open(this._ngbTooltip, context);\n this._windowRef.instance.tooltipClass = this.tooltipClass;\n this._windowRef.instance.id = this._ngbTooltipWindowId;\n\n this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbTooltipWindowId);\n\n if (this.container === 'body') {\n this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n // We need to detect changes, because we don't know where .open() might be called from.\n // Ex. opening tooltip from one of lifecycle hooks that run after the CD\n // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception\n this._windowRef.changeDetectorRef.detectChanges();\n\n // We need to mark for check, because tooltip won't work inside the OnPush component.\n // Ex. when we use expression like `{{ tooltip.isOpen() : 'opened' : 'closed' }}`\n // inside the template of an OnPush component and we change the tooltip from\n // open -> closed, the expression in question won't be updated unless we explicitly\n // mark the parent component to be checked.\n this._windowRef.changeDetectorRef.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, this.autoClose, () => this.close(), this.hidden,\n [this._windowRef.location.nativeElement]);\n\n this.shown.emit();\n }\n }\n\n /**\n * Closes the tooltip.\n *\n * This is considered to be a \"manual\" triggering of the tooltip.\n */\n close(): void {\n if (this._windowRef != null) {\n this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');\n this._popupService.close();\n this._windowRef = null;\n this.hidden.emit();\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Toggles the tooltip.\n *\n * This is considered to be a \"manual\" triggering of the tooltip.\n */\n toggle(): void {\n if (this._windowRef) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /**\n * Returns `true`, if the popover is currently shown.\n */\n isOpen(): boolean { return this._windowRef != null; }\n\n ngOnInit() {\n this._unregisterListenersFn = listenToTriggers(\n this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this),\n this.close.bind(this), +this.openDelay, +this.closeDelay);\n }\n\n ngOnDestroy() {\n this.close();\n // This check is needed as it might happen that ngOnDestroy is called before ngOnInit\n // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199\n if (this._unregisterListenersFn) {\n this._unregisterListenersFn();\n }\n this._zoneSubscription.unsubscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgbTooltip, NgbTooltipWindow} from './tooltip';\n\nexport {NgbTooltipConfig} from './tooltip-config';\nexport {NgbTooltip} from './tooltip';\nexport {Placement} from '../util/positioning';\n\n@NgModule({declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow]})\nexport class NgbTooltipModule {\n}\n","import {Component, Input, OnChanges, ChangeDetectionStrategy, SimpleChanges, ViewEncapsulation} from '@angular/core';\nimport {regExpEscape, toString} from '../util/util';\n\n/**\n * A component that helps with text highlighting.\n *\n * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify\n * highlighting:\n *\n * Ex. `result=\"Alaska\"` and `term=\"as\"` will produce `Alaska`.\n */\n@Component({\n selector: 'ngb-highlight',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: `` +\n `{{part}}{{part}}` +\n ``, // template needs to be formatted in a certain way so we don't add empty text nodes\n styleUrls: ['./highlight.scss']\n})\nexport class NgbHighlight implements OnChanges {\n parts: string[];\n\n /**\n * The CSS class for `` elements wrapping the `term` inside the `result`.\n */\n @Input() highlightClass = 'ngb-highlight';\n\n /**\n * The text highlighting is added to.\n *\n * If the `term` is found inside this text, it will be highlighted.\n * If the `term` contains array then all the items from it will be highlighted inside the text.\n */\n @Input() result: string;\n\n /**\n * The term or array of terms to be highlighted.\n * Since version `v4.2.0` term could be a `string[]`\n */\n @Input() term: string | string[];\n\n ngOnChanges(changes: SimpleChanges) {\n const result = toString(this.result);\n\n const terms = Array.isArray(this.term) ? this.term : [this.term];\n const escapedTerms = terms.map(term => regExpEscape(toString(term))).filter(term => term);\n\n this.parts = escapedTerms.length ? result.split(new RegExp(`(${escapedTerms.join('|')})`, 'gmi')) : [result];\n }\n}\n","import {Component, Input, Output, EventEmitter, TemplateRef, OnInit} from '@angular/core';\n\nimport {toString} from '../util/util';\n\n/**\n * The context for the typeahead result template in case you want to override the default one.\n */\nexport interface ResultTemplateContext {\n /**\n * Your typeahead result item.\n */\n result: any;\n\n /**\n * Search term from the `` used to get current result.\n */\n term: string;\n}\n\n@Component({\n selector: 'ngb-typeahead-window',\n exportAs: 'ngbTypeaheadWindow',\n host: {'(mousedown)': '$event.preventDefault()', 'class': 'dropdown-menu show', 'role': 'listbox', '[id]': 'id'},\n template: `\n \n \n \n \n \n \n `\n})\nexport class NgbTypeaheadWindow implements OnInit {\n activeIdx = 0;\n\n /**\n * The id for the typeahead window. The id should be unique and the same\n * as the associated typeahead's id.\n */\n @Input() id: string;\n\n /**\n * Flag indicating if the first row should be active initially\n */\n @Input() focusFirst = true;\n\n /**\n * Typeahead match results to be displayed\n */\n @Input() results;\n\n /**\n * Search term used to get current results\n */\n @Input() term: string;\n\n /**\n * A function used to format a given result before display. This function should return a formatted string without any\n * HTML markup\n */\n @Input() formatter = toString;\n\n /**\n * A template to override a matching result default display\n */\n @Input() resultTemplate: TemplateRef;\n\n /**\n * Event raised when user selects a particular result row\n */\n @Output('select') selectEvent = new EventEmitter();\n\n @Output('activeChange') activeChangeEvent = new EventEmitter();\n\n hasActive() { return this.activeIdx > -1 && this.activeIdx < this.results.length; }\n\n getActive() { return this.results[this.activeIdx]; }\n\n markActive(activeIdx: number) {\n this.activeIdx = activeIdx;\n this._activeChanged();\n }\n\n next() {\n if (this.activeIdx === this.results.length - 1) {\n this.activeIdx = this.focusFirst ? (this.activeIdx + 1) % this.results.length : -1;\n } else {\n this.activeIdx++;\n }\n this._activeChanged();\n }\n\n prev() {\n if (this.activeIdx < 0) {\n this.activeIdx = this.results.length - 1;\n } else if (this.activeIdx === 0) {\n this.activeIdx = this.focusFirst ? this.results.length - 1 : -1;\n } else {\n this.activeIdx--;\n }\n this._activeChanged();\n }\n\n resetActive() {\n this.activeIdx = this.focusFirst ? 0 : -1;\n this._activeChanged();\n }\n\n select(item) { this.selectEvent.emit(item); }\n\n ngOnInit() { this.resetActive(); }\n\n private _activeChanged() {\n this.activeChangeEvent.emit(this.activeIdx >= 0 ? this.id + '-' + this.activeIdx : undefined);\n }\n}\n","import {Injectable, Inject, InjectionToken, OnDestroy} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\n\n\n// usefulness (and default value) of delay documented in Material's CDK\n// https://github.com/angular/material2/blob/6405da9b8e8532a7e5c854c920ee1815c275d734/src/cdk/a11y/live-announcer/live-announcer.ts#L50\nexport type ARIA_LIVE_DELAY_TYPE = number | null;\nexport const ARIA_LIVE_DELAY = new InjectionToken(\n 'live announcer delay', {providedIn: 'root', factory: ARIA_LIVE_DELAY_FACTORY});\nexport function ARIA_LIVE_DELAY_FACTORY(): number {\n return 100;\n}\n\n\nfunction getLiveElement(document: any, lazyCreate = false): HTMLElement | null {\n let element = document.body.querySelector('#ngb-live') as HTMLElement;\n\n if (element == null && lazyCreate) {\n element = document.createElement('div');\n\n element.setAttribute('id', 'ngb-live');\n element.setAttribute('aria-live', 'polite');\n element.setAttribute('aria-atomic', 'true');\n\n element.classList.add('sr-only');\n\n document.body.appendChild(element);\n }\n\n return element;\n}\n\n\n\n@Injectable({providedIn: 'root'})\nexport class Live implements OnDestroy {\n constructor(@Inject(DOCUMENT) private _document: any, @Inject(ARIA_LIVE_DELAY) private _delay: any) {}\n\n ngOnDestroy() {\n const element = getLiveElement(this._document);\n if (element) {\n element.parentElement.removeChild(element);\n }\n }\n\n say(message: string) {\n const element = getLiveElement(this._document, true);\n const delay = this._delay;\n\n element.textContent = '';\n const setText = () => element.textContent = message;\n if (delay === null) {\n setText();\n } else {\n setTimeout(setText, delay);\n }\n }\n}\n","import {Injectable} from '@angular/core';\nimport {PlacementArray} from '../util/positioning';\n\n/**\n * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component.\n *\n * You can inject this service, typically in your root component, and customize the values of its properties in\n * order to provide default values for all the typeaheads used in the application.\n */\n@Injectable({providedIn: 'root'})\nexport class NgbTypeaheadConfig {\n container;\n editable = true;\n focusFirst = true;\n showHint = false;\n placement: PlacementArray = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];\n}\n","import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Injector,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n Output,\n Renderer2,\n TemplateRef,\n ViewContainerRef,\n ApplicationRef\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {DOCUMENT} from '@angular/common';\nimport {BehaviorSubject, fromEvent, Observable, Subject, Subscription} from 'rxjs';\nimport {map, switchMap, tap} from 'rxjs/operators';\n\nimport {Live} from '../util/accessibility/live';\nimport {ngbAutoClose} from '../util/autoclose';\nimport {Key} from '../util/key';\nimport {PopupService} from '../util/popup';\nimport {PlacementArray, positionElements} from '../util/positioning';\nimport {isDefined, toString} from '../util/util';\n\nimport {NgbTypeaheadConfig} from './typeahead-config';\nimport {NgbTypeaheadWindow, ResultTemplateContext} from './typeahead-window';\n\n\nconst NGB_TYPEAHEAD_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgbTypeahead),\n multi: true\n};\n\n/**\n * An event emitted right before an item is selected from the result list.\n */\nexport interface NgbTypeaheadSelectItemEvent {\n /**\n * The item from the result list about to be selected.\n */\n item: any;\n\n /**\n * Calling this function will prevent item selection from happening.\n */\n preventDefault: () => void;\n}\n\nlet nextWindowId = 0;\n\n/**\n * A directive providing a simple way of creating powerful typeaheads from any text input.\n */\n@Directive({\n selector: 'input[ngbTypeahead]',\n exportAs: 'ngbTypeahead',\n host: {\n '(blur)': 'handleBlur()',\n '[class.open]': 'isPopupOpen()',\n '(keydown)': 'handleKeyDown($event)',\n '[autocomplete]': 'autocomplete',\n 'autocapitalize': 'off',\n 'autocorrect': 'off',\n 'role': 'combobox',\n 'aria-multiline': 'false',\n '[attr.aria-autocomplete]': 'showHint ? \"both\" : \"list\"',\n '[attr.aria-activedescendant]': 'activeDescendant',\n '[attr.aria-owns]': 'isPopupOpen() ? popupId : null',\n '[attr.aria-expanded]': 'isPopupOpen()'\n },\n providers: [NGB_TYPEAHEAD_VALUE_ACCESSOR]\n})\nexport class NgbTypeahead implements ControlValueAccessor,\n OnInit, OnDestroy {\n private _popupService: PopupService;\n private _subscription: Subscription;\n private _closed$ = new Subject();\n private _inputValueBackup: string;\n private _valueChanges: Observable;\n private _resubscribeTypeahead: BehaviorSubject;\n private _windowRef: ComponentRef;\n private _zoneSubscription: any;\n\n /**\n * The value for the `autocomplete` attribute for the `` element.\n *\n * Defaults to `\"off\"` to disable the native browser autocomplete, but you can override it if necessary.\n *\n * @since 2.1.0\n */\n @Input() autocomplete = 'off';\n\n /**\n * A selector specifying the element the typeahead popup will be appended to.\n *\n * Currently only supports `\"body\"`.\n */\n @Input() container: string;\n\n /**\n * If `true`, model values will not be restricted only to items selected from the popup.\n */\n @Input() editable: boolean;\n\n /**\n * If `true`, the first item in the result list will always stay focused while typing.\n */\n @Input() focusFirst: boolean;\n\n /**\n * The function that converts an item from the result list to a `string` to display in the `` field.\n *\n * It is called when the user selects something in the popup or the model value changes, so the input needs to\n * be updated.\n */\n @Input() inputFormatter: (item: any) => string;\n\n /**\n * The function that converts a stream of text values from the `` element to the stream of the array of items\n * to display in the typeahead popup.\n *\n * If the resulting observable emits a non-empty array - the popup will be shown. If it emits an empty array - the\n * popup will be closed.\n *\n * See the [basic example](#/components/typeahead/examples#basic) for more details.\n *\n * Note that the `this` argument is `undefined` so you need to explicitly bind it to a desired \"this\" target.\n */\n @Input() ngbTypeahead: (text: Observable) => Observable;\n\n /**\n * The function that converts an item from the result list to a `string` to display in the popup.\n *\n * Must be provided, if your `ngbTypeahead` returns something other than `Observable`.\n *\n * Alternatively for more complex markup in the popup you should use `resultTemplate`.\n */\n @Input() resultFormatter: (item: any) => string;\n\n /**\n * The template to override the way resulting items are displayed in the popup.\n *\n * See the [ResultTemplateContext](#/components/typeahead/api#ResultTemplateContext) for the template context.\n *\n * Also see the [template for results demo](#/components/typeahead/examples#template) for more details.\n */\n @Input() resultTemplate: TemplateRef;\n\n /**\n * If `true`, will show the hint in the `` when an item in the result list matches.\n */\n @Input() showHint: boolean;\n\n /**\n * The preferred placement of the typeahead.\n *\n * Possible values are `\"top\"`, `\"top-left\"`, `\"top-right\"`, `\"bottom\"`, `\"bottom-left\"`,\n * `\"bottom-right\"`, `\"left\"`, `\"left-top\"`, `\"left-bottom\"`, `\"right\"`, `\"right-top\"`,\n * `\"right-bottom\"`\n *\n * Accepts an array of strings or a string with space separated possible values.\n *\n * The default order of preference is `\"bottom-left bottom-right top-left top-right\"`\n *\n * Please see the [positioning overview](#/positioning) for more details.\n */\n @Input() placement: PlacementArray = 'bottom-left';\n\n /**\n * An event emitted right before an item is selected from the result list.\n *\n * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent).\n */\n @Output() selectItem = new EventEmitter();\n\n activeDescendant: string;\n popupId = `ngb-typeahead-${nextWindowId++}`;\n\n private _onTouched = () => {};\n private _onChange = (_: any) => {};\n\n constructor(\n private _elementRef: ElementRef, private _viewContainerRef: ViewContainerRef,\n private _renderer: Renderer2, private _injector: Injector, componentFactoryResolver: ComponentFactoryResolver,\n config: NgbTypeaheadConfig, ngZone: NgZone, private _live: Live, @Inject(DOCUMENT) private _document: any,\n private _ngZone: NgZone, private _changeDetector: ChangeDetectorRef, private _applicationRef: ApplicationRef) {\n this.container = config.container;\n this.editable = config.editable;\n this.focusFirst = config.focusFirst;\n this.showHint = config.showHint;\n this.placement = config.placement;\n\n this._valueChanges = fromEvent(_elementRef.nativeElement, 'input')\n .pipe(map($event => ($event.target as HTMLInputElement).value));\n\n this._resubscribeTypeahead = new BehaviorSubject(null);\n\n this._popupService = new PopupService(\n NgbTypeaheadWindow, _injector, _viewContainerRef, _renderer, componentFactoryResolver, _applicationRef);\n\n this._zoneSubscription = ngZone.onStable.subscribe(() => {\n if (this.isPopupOpen()) {\n positionElements(\n this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement,\n this.container === 'body');\n }\n });\n }\n\n ngOnInit(): void {\n const inputValues$ = this._valueChanges.pipe(tap(value => {\n this._inputValueBackup = this.showHint ? value : null;\n if (this.editable) {\n this._onChange(value);\n }\n }));\n const results$ = inputValues$.pipe(this.ngbTypeahead);\n const processedResults$ = results$.pipe(tap(() => {\n if (!this.editable) {\n this._onChange(undefined);\n }\n }));\n const userInput$ = this._resubscribeTypeahead.pipe(switchMap(() => processedResults$));\n this._subscription = this._subscribeToUserInput(userInput$);\n }\n\n ngOnDestroy(): void {\n this._closePopup();\n this._unsubscribeFromUserInput();\n this._zoneSubscription.unsubscribe();\n }\n\n registerOnChange(fn: (value: any) => any): void { this._onChange = fn; }\n\n registerOnTouched(fn: () => any): void { this._onTouched = fn; }\n\n writeValue(value) {\n this._writeInputValue(this._formatItemForInput(value));\n if (this.showHint) {\n this._inputValueBackup = value;\n }\n }\n\n setDisabledState(isDisabled: boolean): void {\n this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\n }\n\n /**\n * Dismisses typeahead popup window\n */\n dismissPopup() {\n if (this.isPopupOpen()) {\n this._resubscribeTypeahead.next(null);\n this._closePopup();\n if (this.showHint && this._inputValueBackup !== null) {\n this._writeInputValue(this._inputValueBackup);\n }\n this._changeDetector.markForCheck();\n }\n }\n\n /**\n * Returns true if the typeahead popup window is displayed\n */\n isPopupOpen() { return this._windowRef != null; }\n\n handleBlur() {\n this._resubscribeTypeahead.next(null);\n this._onTouched();\n }\n\n handleKeyDown(event: KeyboardEvent) {\n if (!this.isPopupOpen()) {\n return;\n }\n\n // tslint:disable-next-line:deprecation\n switch (event.which) {\n case Key.ArrowDown:\n event.preventDefault();\n this._windowRef.instance.next();\n this._showHint();\n break;\n case Key.ArrowUp:\n event.preventDefault();\n this._windowRef.instance.prev();\n this._showHint();\n break;\n case Key.Enter:\n case Key.Tab:\n const result = this._windowRef.instance.getActive();\n if (isDefined(result)) {\n event.preventDefault();\n event.stopPropagation();\n this._selectResult(result);\n }\n this._closePopup();\n break;\n }\n }\n\n private _openPopup() {\n if (!this.isPopupOpen()) {\n this._inputValueBackup = this._elementRef.nativeElement.value;\n this._windowRef = this._popupService.open();\n this._windowRef.instance.id = this.popupId;\n this._windowRef.instance.selectEvent.subscribe((result: any) => this._selectResultClosePopup(result));\n this._windowRef.instance.activeChangeEvent.subscribe((activeId: string) => this.activeDescendant = activeId);\n\n if (this.container === 'body') {\n window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);\n }\n\n this._changeDetector.markForCheck();\n\n ngbAutoClose(\n this._ngZone, this._document, 'outside', () => this.dismissPopup(), this._closed$,\n [this._elementRef.nativeElement, this._windowRef.location.nativeElement]);\n }\n }\n\n private _closePopup() {\n this._closed$.next();\n this._popupService.close();\n this._windowRef = null;\n this.activeDescendant = undefined;\n }\n\n private _selectResult(result: any) {\n let defaultPrevented = false;\n this.selectItem.emit({item: result, preventDefault: () => { defaultPrevented = true; }});\n this._resubscribeTypeahead.next(null);\n\n if (!defaultPrevented) {\n this.writeValue(result);\n this._onChange(result);\n }\n }\n\n private _selectResultClosePopup(result: any) {\n this._selectResult(result);\n this._closePopup();\n }\n\n private _showHint() {\n if (this.showHint && this._windowRef.instance.hasActive() && this._inputValueBackup != null) {\n const userInputLowerCase = this._inputValueBackup.toLowerCase();\n const formattedVal = this._formatItemForInput(this._windowRef.instance.getActive());\n\n if (userInputLowerCase === formattedVal.substr(0, this._inputValueBackup.length).toLowerCase()) {\n this._writeInputValue(this._inputValueBackup + formattedVal.substr(this._inputValueBackup.length));\n this._elementRef.nativeElement['setSelectionRange'].apply(\n this._elementRef.nativeElement, [this._inputValueBackup.length, formattedVal.length]);\n } else {\n this._writeInputValue(formattedVal);\n }\n }\n }\n\n private _formatItemForInput(item: any): string {\n return item != null && this.inputFormatter ? this.inputFormatter(item) : toString(item);\n }\n\n private _writeInputValue(value: string): void {\n this._renderer.setProperty(this._elementRef.nativeElement, 'value', toString(value));\n }\n\n private _subscribeToUserInput(userInput$: Observable): Subscription {\n return userInput$.subscribe((results) => {\n if (!results || results.length === 0) {\n this._closePopup();\n } else {\n this._openPopup();\n this._windowRef.instance.focusFirst = this.focusFirst;\n this._windowRef.instance.results = results;\n this._windowRef.instance.term = this._elementRef.nativeElement.value;\n if (this.resultFormatter) {\n this._windowRef.instance.formatter = this.resultFormatter;\n }\n if (this.resultTemplate) {\n this._windowRef.instance.resultTemplate = this.resultTemplate;\n }\n this._windowRef.instance.resetActive();\n\n // The observable stream we are subscribing to might have async steps\n // and if a component containing typeahead is using the OnPush strategy\n // the change detection turn wouldn't be invoked automatically.\n this._windowRef.changeDetectorRef.detectChanges();\n\n this._showHint();\n }\n\n // live announcer\n const count = results ? results.length : 0;\n this._live.say(count === 0 ? 'No results available' : `${count} result${count === 1 ? '' : 's'} available`);\n });\n }\n\n private _unsubscribeFromUserInput() {\n if (this._subscription) {\n this._subscription.unsubscribe();\n }\n this._subscription = null;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgbHighlight} from './highlight';\nimport {NgbTypeaheadWindow} from './typeahead-window';\nimport {NgbTypeahead} from './typeahead';\n\nexport {NgbHighlight} from './highlight';\nexport {NgbTypeaheadWindow} from './typeahead-window';\nexport {NgbTypeaheadConfig} from './typeahead-config';\nexport {NgbTypeahead, NgbTypeaheadSelectItemEvent} from './typeahead';\n\n@NgModule({\n declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow],\n exports: [NgbTypeahead, NgbHighlight],\n imports: [CommonModule],\n entryComponents: [NgbTypeaheadWindow]\n})\nexport class NgbTypeaheadModule {\n}\n","import {NgModule} from '@angular/core';\n\nimport {SbCardModule} from './card/card.module';\nimport {NgbAccordionModule} from './accordion/accordion.module';\nimport {NgbAlertModule} from './alert/alert.module';\nimport {NgbButtonsModule} from './buttons/buttons.module';\nimport {NgbCarouselModule} from './carousel/carousel.module';\nimport {NgbCollapseModule} from './collapse/collapse.module';\nimport {NgbDatepickerModule} from './datepicker/datepicker.module';\nimport {NgbDropdownModule} from './dropdown/dropdown.module';\nimport {NgbModalModule} from './modal/modal.module';\nimport {NgbPaginationModule} from './pagination/pagination.module';\nimport {NgbPopoverModule} from './popover/popover.module';\nimport {NgbProgressbarModule} from './progressbar/progressbar.module';\nimport {NgbRatingModule} from './rating/rating.module';\nimport {NgbTabsetModule} from './tabset/tabset.module';\nimport {NgbTimepickerModule} from './timepicker/timepicker.module';\nimport {NgbToastModule} from './toast/toast.module';\nimport {NgbTooltipModule} from './tooltip/tooltip.module';\nimport {NgbTypeaheadModule} from './typeahead/typeahead.module';\n\n\n\nexport {\n NgbAccordion,\n NgbAccordionConfig,\n NgbAccordionModule,\n NgbPanel,\n NgbPanelChangeEvent,\n NgbPanelContent,\n NgbPanelHeader,\n NgbPanelHeaderContext,\n NgbPanelTitle,\n NgbPanelToggle\n} from './accordion/accordion.module';\nexport {SbCard, SbCardConfig, SbCardModule} from './card/card.module';\nexport {NgbAlert, NgbAlertConfig, NgbAlertModule} from './alert/alert.module';\nexport {NgbButtonLabel, NgbButtonsModule, NgbCheckBox, NgbRadio, NgbRadioGroup} from './buttons/buttons.module';\nexport {\n NgbCarousel,\n NgbCarouselConfig,\n NgbCarouselModule,\n NgbSlide,\n NgbSlideEvent,\n NgbSlideEventDirection,\n NgbSlideEventSource\n} from './carousel/carousel.module';\nexport {NgbCollapse, NgbCollapseModule} from './collapse/collapse.module';\nexport {\n NgbCalendar,\n NgbCalendarGregorian,\n NgbCalendarHebrew,\n NgbCalendarIslamicCivil,\n NgbCalendarIslamicUmalqura,\n NgbCalendarPersian,\n NgbDate,\n NgbDateAdapter,\n NgbDateNativeAdapter,\n NgbDateNativeUTCAdapter,\n NgbDateParserFormatter,\n NgbDatepicker,\n NgbDatepickerConfig,\n NgbDatepickerI18n,\n NgbDatepickerI18nHebrew,\n NgbDatepickerModule,\n NgbDatepickerNavigateEvent,\n NgbDateStruct,\n NgbInputDatepicker,\n NgbPeriod\n} from './datepicker/datepicker.module';\nexport {\n NgbDropdown,\n NgbDropdownAnchor,\n NgbDropdownConfig,\n NgbDropdownItem,\n NgbDropdownMenu,\n NgbDropdownModule,\n NgbDropdownToggle\n} from './dropdown/dropdown.module';\nexport {\n ModalDismissReasons,\n NgbActiveModal,\n NgbModal,\n NgbModalConfig,\n NgbModalModule,\n NgbModalOptions,\n NgbModalRef\n} from './modal/modal.module';\nexport {\n NgbPagination,\n NgbPaginationConfig,\n NgbPaginationEllipsis,\n NgbPaginationFirst,\n NgbPaginationLast,\n NgbPaginationModule,\n NgbPaginationNext,\n NgbPaginationNumber,\n NgbPaginationPrevious\n} from './pagination/pagination.module';\nexport {NgbPopover, NgbPopoverConfig, NgbPopoverModule} from './popover/popover.module';\nexport {NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule} from './progressbar/progressbar.module';\nexport {NgbRating, NgbRatingConfig, NgbRatingModule} from './rating/rating.module';\nexport {\n NgbTab,\n NgbTabChangeEvent,\n NgbTabContent,\n NgbTabset,\n NgbTabsetConfig,\n NgbTabsetModule,\n NgbTabTitle\n} from './tabset/tabset.module';\nexport {\n NgbTimeAdapter,\n NgbTimepickerI18n,\n NgbTimepicker,\n NgbTimepickerConfig,\n NgbTimepickerModule,\n NgbTimeStruct\n} from './timepicker/timepicker.module';\nexport {NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule} from './toast/toast.module';\nexport {NgbTooltip, NgbTooltipConfig, NgbTooltipModule} from './tooltip/tooltip.module';\nexport {\n NgbHighlight,\n NgbTypeahead,\n NgbTypeaheadConfig,\n NgbTypeaheadModule,\n NgbTypeaheadSelectItemEvent\n} from './typeahead/typeahead.module';\nexport {Placement} from './util/positioning';\n\n\nconst NGB_MODULES = [\n SbCardModule, NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule,\n NgbDropdownModule, NgbModalModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule,\n NgbTabsetModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule\n];\n\n@NgModule({imports: NGB_MODULES, exports: NGB_MODULES})\nexport class NgbModule {\n}\n"],"names":["nextId","tslib_1.__extends","tslib_1.__values","NGB_DATEPICKER_VALUE_ACCESSOR","mod","GREGORIAN_EPOCH","isGregorianLeapYear","fromGregorian","toGregorian"],"mappings":";;;;;;;;;;;AAAA;;;;;;AAQA;IAAA;QAEE,gBAAW,GAAG,IAAI,CAAC;QACnB,SAAI,GAAG,SAAS,CAAC;KAClB;;gBAJA,UAAU,SAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;uBARhC;CAQA;;;;;;ACRA;;;;;AAqBA;IAmCE,gBAAY,MAAoB,EAAU,SAAoB,EAAU,QAAoB;QAAlD,cAAS,GAAT,SAAS,CAAW;QAAU,aAAQ,GAAR,QAAQ,CAAY;;;;QAFlF,UAAK,GAAG,IAAI,YAAY,EAAQ,CAAC;QAGzC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;KACzB;;;;IAED,6BAAY;;;IAAZ,cAAiB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;;;;;IAEzC,4BAAW;;;;IAAX,UAAY,OAAsB;;YAC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AAQ,SAAC;oBACR,YAAY,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,kBAAkB,CAAC;oBAC9D,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;oBACrC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,eAAe,EAAE,CAAC,kBAAkB,CAAC;iBACtC;;IAED,yBAAC;CAPD;;;;;;ACZA;IAmIM,WAAW,GAAG;IAClB,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB;IAC7H,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,eAAe;IAC/G,eAAe,EAAE,mBAAmB,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB;CAC3F;AAED;IAAA;KAEC;;gBAFA,QAAQ,SAAC,EAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAC;;IAEtD,gBAAC;CAFD;;;;"} \ No newline at end of file diff --git a/dist/ng-bootstrap/index.d.ts b/dist/ng-bootstrap/index.d.ts deleted file mode 100644 index 971c8c0..0000000 --- a/dist/ng-bootstrap/index.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export { NgbAccordion, NgbAccordionConfig, NgbAccordionModule, NgbPanel, NgbPanelChangeEvent, NgbPanelContent, NgbPanelHeader, NgbPanelHeaderContext, NgbPanelTitle, NgbPanelToggle } from './accordion/accordion.module'; -export { SbCard, SbCardConfig, SbCardModule } from './card/card.module'; -export { NgbAlert, NgbAlertConfig, NgbAlertModule } from './alert/alert.module'; -export { NgbButtonLabel, NgbButtonsModule, NgbCheckBox, NgbRadio, NgbRadioGroup } from './buttons/buttons.module'; -export { NgbCarousel, NgbCarouselConfig, NgbCarouselModule, NgbSlide, NgbSlideEvent, NgbSlideEventDirection, NgbSlideEventSource } from './carousel/carousel.module'; -export { NgbCollapse, NgbCollapseModule } from './collapse/collapse.module'; -export { NgbCalendar, NgbCalendarGregorian, NgbCalendarHebrew, NgbCalendarIslamicCivil, NgbCalendarIslamicUmalqura, NgbCalendarPersian, NgbDate, NgbDateAdapter, NgbDateNativeAdapter, NgbDateNativeUTCAdapter, NgbDateParserFormatter, NgbDatepicker, NgbDatepickerConfig, NgbDatepickerI18n, NgbDatepickerI18nHebrew, NgbDatepickerModule, NgbDatepickerNavigateEvent, NgbDateStruct, NgbInputDatepicker, NgbPeriod } from './datepicker/datepicker.module'; -export { NgbDropdown, NgbDropdownAnchor, NgbDropdownConfig, NgbDropdownItem, NgbDropdownMenu, NgbDropdownModule, NgbDropdownToggle } from './dropdown/dropdown.module'; -export { ModalDismissReasons, NgbActiveModal, NgbModal, NgbModalConfig, NgbModalModule, NgbModalOptions, NgbModalRef } from './modal/modal.module'; -export { NgbPagination, NgbPaginationConfig, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationModule, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious } from './pagination/pagination.module'; -export { NgbPopover, NgbPopoverConfig, NgbPopoverModule } from './popover/popover.module'; -export { NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule } from './progressbar/progressbar.module'; -export { NgbRating, NgbRatingConfig, NgbRatingModule } from './rating/rating.module'; -export { NgbTab, NgbTabChangeEvent, NgbTabContent, NgbTabset, NgbTabsetConfig, NgbTabsetModule, NgbTabTitle } from './tabset/tabset.module'; -export { NgbTimeAdapter, NgbTimepickerI18n, NgbTimepicker, NgbTimepickerConfig, NgbTimepickerModule, NgbTimeStruct } from './timepicker/timepicker.module'; -export { NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule } from './toast/toast.module'; -export { NgbTooltip, NgbTooltipConfig, NgbTooltipModule } from './tooltip/tooltip.module'; -export { NgbHighlight, NgbTypeahead, NgbTypeaheadConfig, NgbTypeaheadModule, NgbTypeaheadSelectItemEvent } from './typeahead/typeahead.module'; -export { Placement } from './util/positioning'; -export declare class NgbModule { -} diff --git a/dist/ng-bootstrap/modal/modal-backdrop.d.ts b/dist/ng-bootstrap/modal/modal-backdrop.d.ts deleted file mode 100644 index 612304c..0000000 --- a/dist/ng-bootstrap/modal/modal-backdrop.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare class NgbModalBackdrop { - backdropClass: string; -} diff --git a/dist/ng-bootstrap/modal/modal-config.d.ts b/dist/ng-bootstrap/modal/modal-config.d.ts deleted file mode 100644 index 3a4d624..0000000 --- a/dist/ng-bootstrap/modal/modal-config.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { Injector } from '@angular/core'; -/** - * Options available when opening new modal windows with `NgbModal.open()` method. - */ -export interface NgbModalOptions { - /** - * `aria-labelledby` attribute value to set on the modal window. - * - * @since 2.2.0 - */ - ariaLabelledBy?: string; - /** - * If `true`, the backdrop element will be created for a given modal. - * - * Alternatively, specify `'static'` for a backdrop which doesn't close the modal on click. - * - * Default value is `true`. - */ - backdrop?: boolean | 'static'; - /** - * Callback right before the modal will be dismissed. - * - * If this function returns: - * * `false` - * * a promise resolved with `false` - * * a promise that is rejected - * - * then the modal won't be dismissed. - */ - beforeDismiss?: () => boolean | Promise; - /** - * If `true`, the modal will be centered vertically. - * - * Default value is `false`. - * - * @since 1.1.0 - */ - centered?: boolean; - /** - * A selector specifying the element all new modal windows should be appended to. - * - * If not specified, will be `body`. - */ - container?: string; - /** - * The `Injector` to use for modal content. - */ - injector?: Injector; - /** - * If `true`, the modal will be closed when `Escape` key is pressed - * - * Default value is `true`. - */ - keyboard?: boolean; - /** - * Scrollable modal content (false by default). - * - * @since 5.0.0 - */ - scrollable?: boolean; - /** - * Size of a new modal window. - */ - size?: 'sm' | 'lg' | 'xl'; - /** - * A custom class to append to the modal window. - */ - windowClass?: string; - /** - * A custom class to append to the modal backdrop. - * - * @since 1.1.0 - */ - backdropClass?: string; -} -/** - * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all modals used in the application. -* -* @since 3.1.0 -*/ -export declare class NgbModalConfig implements NgbModalOptions { - backdrop: boolean | 'static'; - keyboard: boolean; -} diff --git a/dist/ng-bootstrap/modal/modal-dismiss-reasons.d.ts b/dist/ng-bootstrap/modal/modal-dismiss-reasons.d.ts deleted file mode 100644 index 342fe32..0000000 --- a/dist/ng-bootstrap/modal/modal-dismiss-reasons.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare enum ModalDismissReasons { - BACKDROP_CLICK = 0, - ESC = 1 -} diff --git a/dist/ng-bootstrap/modal/modal-ref.d.ts b/dist/ng-bootstrap/modal/modal-ref.d.ts deleted file mode 100644 index 20f7487..0000000 --- a/dist/ng-bootstrap/modal/modal-ref.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { ComponentRef } from '@angular/core'; -import { NgbModalBackdrop } from './modal-backdrop'; -import { NgbModalWindow } from './modal-window'; -import { ContentRef } from '../util/popup'; -/** - * A reference to the currently opened (active) modal. - * - * Instances of this class can be injected into your component passed as modal content. - * So you can `.close()` or `.dismiss()` the modal window from your component. - */ -export declare class NgbActiveModal { - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - */ - close(result?: any): void; - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - */ - dismiss(reason?: any): void; -} -/** - * A reference to the newly opened modal returned by the `NgbModal.open()` method. - */ -export declare class NgbModalRef { - private _windowCmptRef; - private _contentRef; - private _backdropCmptRef?; - private _beforeDismiss?; - private _resolve; - private _reject; - /** - * The instance of a component used for the modal content. - * - * When a `TemplateRef` is used as the content, will return `undefined`. - */ - readonly componentInstance: any; - /** - * The promise that is resolved when the modal is closed and rejected when the modal is dismissed. - */ - result: Promise; - constructor(_windowCmptRef: ComponentRef, _contentRef: ContentRef, _backdropCmptRef?: ComponentRef, _beforeDismiss?: Function); - /** - * Closes the modal with an optional `result` value. - * - * The `NgbMobalRef.result` promise will be resolved with the provided value. - */ - close(result?: any): void; - private _dismiss; - /** - * Dismisses the modal with an optional `reason` value. - * - * The `NgbModalRef.result` promise will be rejected with the provided value. - */ - dismiss(reason?: any): void; - private _removeModalElements; -} diff --git a/dist/ng-bootstrap/modal/modal-stack.d.ts b/dist/ng-bootstrap/modal/modal-stack.d.ts deleted file mode 100644 index c943560..0000000 --- a/dist/ng-bootstrap/modal/modal-stack.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { ApplicationRef, ComponentFactoryResolver, Injector, RendererFactory2 } from '@angular/core'; -import { ScrollBar } from '../util/scrollbar'; -import { NgbModalRef } from './modal-ref'; -export declare class NgbModalStack { - private _applicationRef; - private _injector; - private _document; - private _scrollBar; - private _rendererFactory; - private _activeWindowCmptHasChanged; - private _ariaHiddenValues; - private _backdropAttributes; - private _modalRefs; - private _windowAttributes; - private _windowCmpts; - constructor(_applicationRef: ApplicationRef, _injector: Injector, _document: any, _scrollBar: ScrollBar, _rendererFactory: RendererFactory2); - open(moduleCFR: ComponentFactoryResolver, contentInjector: Injector, content: any, options: any): NgbModalRef; - dismissAll(reason?: any): void; - hasOpenModals(): boolean; - private _attachBackdrop; - private _attachWindowComponent; - private _applyWindowOptions; - private _applyBackdropOptions; - private _getContentRef; - private _createFromTemplateRef; - private _createFromString; - private _createFromComponent; - private _setAriaHidden; - private _revertAriaHidden; - private _registerModalRef; - private _registerWindowCmpt; -} diff --git a/dist/ng-bootstrap/modal/modal-window.d.ts b/dist/ng-bootstrap/modal/modal-window.d.ts deleted file mode 100644 index 3435847..0000000 --- a/dist/ng-bootstrap/modal/modal-window.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; -export declare class NgbModalWindow implements OnInit, AfterViewInit, OnDestroy { - private _document; - private _elRef; - private _elWithFocus; - ariaLabelledBy: string; - backdrop: boolean | string; - centered: string; - keyboard: boolean; - scrollable: string; - size: string; - windowClass: string; - dismissEvent: EventEmitter<{}>; - constructor(_document: any, _elRef: ElementRef); - backdropClick($event: any): void; - escKey($event: any): void; - dismiss(reason: any): void; - ngOnInit(): void; - ngAfterViewInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/ng-bootstrap/modal/modal.d.ts b/dist/ng-bootstrap/modal/modal.d.ts deleted file mode 100644 index 0b9ba58..0000000 --- a/dist/ng-bootstrap/modal/modal.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Injector, ComponentFactoryResolver } from '@angular/core'; -import { NgbModalOptions, NgbModalConfig } from './modal-config'; -import { NgbModalRef } from './modal-ref'; -import { NgbModalStack } from './modal-stack'; -/** - * A service for opening modal windows. - * - * Creating a modal is straightforward: create a component or a template and pass it as an argument to - * the `.open()` method. - */ -export declare class NgbModal { - private _moduleCFR; - private _injector; - private _modalStack; - private _config; - constructor(_moduleCFR: ComponentFactoryResolver, _injector: Injector, _modalStack: NgbModalStack, _config: NgbModalConfig); - /** - * Opens a new modal window with the specified content and supplied options. - * - * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content, - * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then - * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component. - * - * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options. - */ - open(content: any, options?: NgbModalOptions): NgbModalRef; - /** - * Dismisses all currently displayed modal windows with the supplied reason. - * - * @since 3.1.0 - */ - dismissAll(reason?: any): void; - /** - * Indicates if there are currently any open modal windows in the application. - * - * @since 3.3.0 - */ - hasOpenModals(): boolean; -} diff --git a/dist/ng-bootstrap/modal/modal.module.d.ts b/dist/ng-bootstrap/modal/modal.module.d.ts deleted file mode 100644 index 2dec28e..0000000 --- a/dist/ng-bootstrap/modal/modal.module.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { NgbModal } from './modal'; -export { NgbModalConfig, NgbModalOptions } from './modal-config'; -export { NgbModalRef, NgbActiveModal } from './modal-ref'; -export { ModalDismissReasons } from './modal-dismiss-reasons'; -export declare class NgbModalModule { -} diff --git a/dist/ng-bootstrap/ng-bootstrap.d.ts b/dist/ng-bootstrap/ng-bootstrap.d.ts deleted file mode 100644 index abef2de..0000000 --- a/dist/ng-bootstrap/ng-bootstrap.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Generated bundle index. Do not edit. - */ -export * from './index'; -export { NGB_CAROUSEL_DIRECTIVES as ɵa } from './carousel/carousel'; -export { NGB_DATEPICKER_DATE_ADAPTER_FACTORY as ɵi, NgbDateStructAdapter as ɵj } from './datepicker/adapters/ngb-date-adapter'; -export { NgbDatepickerDayView as ɵd } from './datepicker/datepicker-day-view'; -export { NGB_DATEPICKER_18N_FACTORY as ɵg, NgbDatepickerI18nDefault as ɵh } from './datepicker/datepicker-i18n'; -export { NgbDatepickerKeyMapService as ɵv } from './datepicker/datepicker-keymap-service'; -export { NgbDatepickerMonthView as ɵc } from './datepicker/datepicker-month-view'; -export { NgbDatepickerNavigation as ɵe } from './datepicker/datepicker-navigation'; -export { NgbDatepickerNavigationSelect as ɵf } from './datepicker/datepicker-navigation-select'; -export { NgbDatepickerService as ɵu } from './datepicker/datepicker-service'; -export { NgbCalendarHijri as ɵbd } from './datepicker/hijri/ngb-calendar-hijri'; -export { NGB_DATEPICKER_CALENDAR_FACTORY as ɵb } from './datepicker/ngb-calendar'; -export { NGB_DATEPICKER_PARSER_FORMATTER_FACTORY as ɵk, NgbDateISOParserFormatter as ɵl } from './datepicker/ngb-date-parser-formatter'; -export { NgbNavbar as ɵm } from './dropdown/dropdown'; -export { NgbModalBackdrop as ɵw } from './modal/modal-backdrop'; -export { NgbModalStack as ɵy } from './modal/modal-stack'; -export { NgbModalWindow as ɵx } from './modal/modal-window'; -export { NgbPopoverWindow as ɵn } from './popover/popover'; -export { NGB_DATEPICKER_TIME_ADAPTER_FACTORY as ɵo, NgbTimeStructAdapter as ɵp } from './timepicker/ngb-time-adapter'; -export { NGB_TIMEPICKER_I18N_FACTORY as ɵq, NgbTimepickerI18nDefault as ɵr } from './timepicker/timepicker-i18n'; -export { NgbTooltipWindow as ɵs } from './tooltip/tooltip'; -export { NgbTypeaheadWindow as ɵt } from './typeahead/typeahead-window'; -export { ARIA_LIVE_DELAY as ɵba, ARIA_LIVE_DELAY_FACTORY as ɵbb, Live as ɵbc } from './util/accessibility/live'; -export { ContentRef as ɵbe } from './util/popup'; -export { ScrollBar as ɵz } from './util/scrollbar'; diff --git a/dist/ng-bootstrap/ng-bootstrap.metadata.json b/dist/ng-bootstrap/ng-bootstrap.metadata.json deleted file mode 100644 index 7302e60..0000000 --- a/dist/ng-bootstrap/ng-bootstrap.metadata.json +++ /dev/null @@ -1 +0,0 @@ -{"__symbolic":"module","version":4,"metadata":{"NgbModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":137,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","name":"SbCardModule"},{"__symbolic":"reference","name":"NgbAccordionModule"},{"__symbolic":"reference","name":"NgbAlertModule"},{"__symbolic":"reference","name":"NgbButtonsModule"},{"__symbolic":"reference","name":"NgbCarouselModule"},{"__symbolic":"reference","name":"NgbCollapseModule"},{"__symbolic":"reference","name":"NgbDatepickerModule"},{"__symbolic":"reference","name":"NgbDropdownModule"},{"__symbolic":"reference","name":"NgbModalModule"},{"__symbolic":"reference","name":"NgbPaginationModule"},{"__symbolic":"reference","name":"NgbPopoverModule"},{"__symbolic":"reference","name":"NgbProgressbarModule"},{"__symbolic":"reference","name":"NgbRatingModule"},{"__symbolic":"reference","name":"NgbTabsetModule"},{"__symbolic":"reference","name":"NgbTimepickerModule"},{"__symbolic":"reference","name":"NgbToastModule"},{"__symbolic":"reference","name":"NgbTooltipModule"},{"__symbolic":"reference","name":"NgbTypeaheadModule"}],"exports":[{"__symbolic":"reference","name":"SbCardModule"},{"__symbolic":"reference","name":"NgbAccordionModule"},{"__symbolic":"reference","name":"NgbAlertModule"},{"__symbolic":"reference","name":"NgbButtonsModule"},{"__symbolic":"reference","name":"NgbCarouselModule"},{"__symbolic":"reference","name":"NgbCollapseModule"},{"__symbolic":"reference","name":"NgbDatepickerModule"},{"__symbolic":"reference","name":"NgbDropdownModule"},{"__symbolic":"reference","name":"NgbModalModule"},{"__symbolic":"reference","name":"NgbPaginationModule"},{"__symbolic":"reference","name":"NgbPopoverModule"},{"__symbolic":"reference","name":"NgbProgressbarModule"},{"__symbolic":"reference","name":"NgbRatingModule"},{"__symbolic":"reference","name":"NgbTabsetModule"},{"__symbolic":"reference","name":"NgbTimepickerModule"},{"__symbolic":"reference","name":"NgbToastModule"},{"__symbolic":"reference","name":"NgbTooltipModule"},{"__symbolic":"reference","name":"NgbTypeaheadModule"}]}]}],"members":{}},"NgbAccordion":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":145,"character":1},"arguments":[{"selector":"ngb-accordion","exportAs":"ngbAccordion","host":{"class":"accordion","role":"tablist","[attr.aria-multiselectable]":"!closeOtherPanels","$quoted$":["class","role","[attr.aria-multiselectable]"]},"template":"\n \n \n \n \n
\n
\n \n
\n
\n
\n \n
\n
\n
\n
\n "}]}],"members":{"panels":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":172,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbPanel"}]}]}],"activeIds":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":180,"character":3}}]}],"closeOtherPanels":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":187,"character":3},"arguments":["closeOthers"]}]}],"destroyOnHide":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":192,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":200,"character":3}}]}],"panelChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":207,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbAccordionConfig"}]}],"isExpanded":[{"__symbolic":"method"}],"expand":[{"__symbolic":"method"}],"expandAll":[{"__symbolic":"method"}],"collapse":[{"__symbolic":"method"}],"collapseAll":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"ngAfterContentChecked":[{"__symbolic":"method"}],"_changeOpenState":[{"__symbolic":"method"}],"_closeOthers":[{"__symbolic":"method"}],"_findPanelById":[{"__symbolic":"method"}],"_updateActiveIds":[{"__symbolic":"method"}]}},"NgbAccordionConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbAccordionModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":20,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbAccordion"},{"__symbolic":"reference","name":"NgbPanel"},{"__symbolic":"reference","name":"NgbPanelTitle"},{"__symbolic":"reference","name":"NgbPanelContent"},{"__symbolic":"reference","name":"NgbPanelHeader"},{"__symbolic":"reference","name":"NgbPanelToggle"}],"exports":[{"__symbolic":"reference","name":"NgbAccordion"},{"__symbolic":"reference","name":"NgbPanel"},{"__symbolic":"reference","name":"NgbPanelTitle"},{"__symbolic":"reference","name":"NgbPanelContent"},{"__symbolic":"reference","name":"NgbPanelHeader"},{"__symbolic":"reference","name":"NgbPanelToggle"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":20,"character":96}]}]}],"members":{}},"NgbPanel":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":67,"character":1},"arguments":[{"selector":"ngb-panel"}]}],"members":{"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":72,"character":3}}]}],"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":79,"character":3}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":88,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":96,"character":3}}]}],"titleTpls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":102,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbPanelTitle"},{"descendants":false}]}]}],"headerTpls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":103,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbPanelHeader"},{"descendants":false}]}]}],"contentTpls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":104,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbPanelContent"},{"descendants":false}]}]}],"ngAfterContentChecked":[{"__symbolic":"method"}]}},"NgbPanelChangeEvent":{"__symbolic":"interface"},"NgbPanelContent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":59,"character":1},"arguments":[{"selector":"ng-template[ngbPanelContent]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"NgbPanelHeader":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":41,"character":1},"arguments":[{"selector":"ng-template[ngbPanelHeader]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"NgbPanelHeaderContext":{"__symbolic":"interface"},"NgbPanelTitle":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":51,"character":1},"arguments":[{"selector":"ng-template[ngbPanelTitle]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"NgbPanelToggle":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":323,"character":1},"arguments":[{"selector":"button[ngbPanelToggle]","host":{"type":"button","[disabled]":"panel.disabled","[class.collapsed]":"!panel.isOpen","[attr.aria-expanded]":"panel.isOpen","[attr.aria-controls]":"panel.id","(click)":"accordion.toggle(panel.id)","$quoted$":["type","[disabled]","[class.collapsed]","[attr.aria-expanded]","[attr.aria-controls]","(click)"]}}]}],"members":{"ngbPanelToggle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":335,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":342,"character":47}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host","line":342,"character":59}}]],"parameters":[{"__symbolic":"reference","name":"NgbAccordion"},{"__symbolic":"reference","name":"NgbPanel"}]}]}},"SbCard":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":21,"character":1},"arguments":[{"selector":"sb-card","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":23,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":24,"character":17},"member":"None"},"host":{"role":"alert","class":"alert","[class.alert-dismissible]":"dismissible","$quoted$":["role","class","[class.alert-dismissible]"]},"template":"\n \n \n ","styles":["ngb-alert{display:block}"]}]}],"members":{"dismissible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":54,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"SbCardConfig"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":56,"character":55},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":56,"character":84}]}],"closeHandler":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}},"SbCardConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"SbCardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"SbCard"}],"exports":[{"__symbolic":"reference","name":"SbCard"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":64}],"entryComponents":[{"__symbolic":"reference","name":"SbCard"}]}]}],"members":{}},"NgbAlert":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":21,"character":1},"arguments":[{"selector":"ngb-alert","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":23,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":24,"character":17},"member":"None"},"host":{"role":"alert","class":"alert","[class.alert-dismissible]":"dismissible","$quoted$":["role","class","[class.alert-dismissible]"]},"template":"\n \n \n ","styles":["ngb-alert{display:block}"]}]}],"members":{"dismissible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":54,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbAlertConfig"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":56,"character":57},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":56,"character":86}]}],"closeHandler":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}},"NgbAlertConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbAlertModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbAlert"}],"exports":[{"__symbolic":"reference","name":"NgbAlert"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":68}],"entryComponents":[{"__symbolic":"reference","name":"NgbAlert"}]}]}],"members":{}},"NgbButtonLabel":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[ngbButtonLabel]","host":{"[class.btn]":"true","[class.active]":"active","[class.disabled]":"disabled","[class.focus]":"focused","$quoted$":["[class.btn]","[class.active]","[class.disabled]","[class.focus]"]}}]}],"members":{}},"NgbButtonsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbButtonLabel"},{"__symbolic":"reference","name":"NgbCheckBox"},{"__symbolic":"reference","name":"NgbRadioGroup"},{"__symbolic":"reference","name":"NgbRadio"}],"exports":[{"__symbolic":"reference","name":"NgbButtonLabel"},{"__symbolic":"reference","name":"NgbCheckBox"},{"__symbolic":"reference","name":"NgbRadioGroup"},{"__symbolic":"reference","name":"NgbRadio"}]}]}],"members":{}},"NgbCheckBox":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":18,"character":1},"arguments":[{"selector":"[ngbButton][type=checkbox]","host":{"autocomplete":"off","[checked]":"checked","[disabled]":"disabled","(change)":"onInputChange($event)","(focus)":"focused = true","(blur)":"focused = false","$quoted$":["autocomplete","[checked]","[disabled]","(change)","(focus)","(blur)"]},"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":6,"character":11},"useExisting":{"__symbolic":"reference","name":"NgbCheckBox"},"multi":true}]}]}],"members":{"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"valueChecked":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"valueUnChecked":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbButtonLabel"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":58,"character":59}]}],"onInputChange":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}]}},"NgbRadio":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":75,"character":1},"arguments":[{"selector":"[ngbButton][type=radio]","host":{"[checked]":"checked","[disabled]":"disabled","[name]":"nameAttr","(change)":"onChange()","(focus)":"focused = true","(blur)":"focused = false","$quoted$":["[checked]","[disabled]","[name]","(change)","(focus)","(blur)"]}}]}],"members":{"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":97,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":102,"character":3},"arguments":["value"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":113,"character":3},"arguments":["disabled"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbRadioGroup"},{"__symbolic":"reference","name":"NgbButtonLabel"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":137,"character":88},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":138,"character":35,"context":{"typeName":"HTMLInputElement"},"module":"./buttons/radio"}]},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":138,"character":67}]}],"ngOnDestroy":[{"__symbolic":"method"}],"onChange":[{"__symbolic":"method"}],"updateValue":[{"__symbolic":"method"}],"updateDisabled":[{"__symbolic":"method"}]}},"NgbRadioGroup":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":19,"character":1},"arguments":[{"selector":"[ngbRadioGroup]","host":{"role":"radiogroup","$quoted$":["role"]},"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":6,"character":11},"useExisting":{"__symbolic":"reference","name":"NgbRadioGroup"},"multi":true}]}]}],"members":{"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"onRadioChange":[{"__symbolic":"method"}],"onRadioValueUpdate":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"unregister":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"_updateRadiosValue":[{"__symbolic":"method"}],"_updateRadiosDisabled":[{"__symbolic":"method"}]}},"ɵa":[{"__symbolic":"reference","name":"NgbCarousel"},{"__symbolic":"reference","name":"NgbSlide"}],"NgbCarousel":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":47,"character":1},"arguments":[{"selector":"ngb-carousel","exportAs":"ngbCarousel","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":50,"character":19},"member":"OnPush"},"host":{"class":"carousel slide","[style.display]":"\"block\"","tabIndex":"0","(keydown.arrowLeft)":"keyboard && prev(NgbSlideEventSource.ARROW_LEFT)","(keydown.arrowRight)":"keyboard && next(NgbSlideEventSource.ARROW_RIGHT)","$quoted$":["class","[style.display]","tabIndex","(keydown.arrowLeft)","(keydown.arrowRight)"]},"template":"\n
    \n
  1. \n
\n
\n
\n \n
\n
\n \n \n Previous\n \n \n \n Next\n \n "}]}],"members":{"slides":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":80,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbSlide"}]}]}],"activeId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":96,"character":3}}]}],"interval":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":101,"character":3}}]}],"wrap":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":111,"character":3}}]}],"keyboard":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":121,"character":3}}]}],"pauseOnHover":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":128,"character":3}}]}],"showNavigationArrows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":140,"character":3}}]}],"showNavigationIndicators":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":147,"character":3}}]}],"slide":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":154,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":157,"character":34},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":157,"character":41}]}],null,null],"parameters":[{"__symbolic":"reference","name":"NgbCarouselConfig"},null,{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":157,"character":92},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":158,"character":19}]}],"mouseEnter":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":167,"character":3},"arguments":["mouseenter"]}]}],"mouseLeave":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":172,"character":3},"arguments":["mouseleave"]}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngAfterContentChecked":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"prev":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"pause":[{"__symbolic":"method"}],"cycle":[{"__symbolic":"method"}],"_cycleToSelected":[{"__symbolic":"method"}],"_getSlideEventDirection":[{"__symbolic":"method"}],"_getSlideById":[{"__symbolic":"method"}],"_getSlideIdxById":[{"__symbolic":"method"}],"_getNextSlide":[{"__symbolic":"method"}],"_getPrevSlide":[{"__symbolic":"method"}]}},"NgbCarouselConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbCarouselModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":{"__symbolic":"reference","name":"ɵa"},"exports":{"__symbolic":"reference","name":"ɵa"},"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":94}]}]}],"members":{}},"NgbSlide":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":31,"character":1},"arguments":[{"selector":"ng-template[ngbSlide]"}]}],"members":{"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"NgbSlideEvent":{"__symbolic":"interface"},"NgbSlideEventDirection":{"LEFT":"left","RIGHT":"right"},"NgbSlideEventSource":{"TIMER":"timer","ARROW_LEFT":"arrowLeft","ARROW_RIGHT":"arrowRight","INDICATOR":"indicator"},"NgbCollapse":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[ngbCollapse]","exportAs":"ngbCollapse","host":{"[class.collapse]":"true","[class.show]":"!collapsed","$quoted$":["[class.collapse]","[class.show]"]}}]}],"members":{"collapsed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3},"arguments":["ngbCollapse"]}]}]}},"NgbCollapseModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbCollapse"}],"exports":[{"__symbolic":"reference","name":"NgbCollapse"}]}]}],"members":{}},"ɵb":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"NgbCalendarGregorian"}}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"ngb-datepicker-month-view","host":{"role":"grid","$quoted$":["role"]},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":9,"character":17},"member":"None"},"template":"\n
\n
\n
\n {{ i18n.getWeekdayShortName(w) }}\n
\n
\n \n
\n
{{ i18n.getWeekNumerals(week.number) }}
\n
\n \n \n \n
\n
\n
\n ","styles":["ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}"]}]}],"members":{"dayTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"month":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"showWeekdays":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"select":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":41,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbDatepickerI18n"}]}],"doSelect":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"[ngbDatepickerDayView]","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":6,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":7,"character":17},"member":"None"},"host":{"class":"btn-light","[class.bg-primary]":"selected","[class.text-white]":"selected","[class.text-muted]":"isMuted()","[class.outside]":"isMuted()","[class.active]":"focused","$quoted$":["class","[class.bg-primary]","[class.text-white]","[class.text-muted]","[class.outside]","[class.active]"]},"template":"{{ i18n.getDayNumerals(date) }}","styles":["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"]}]}],"members":{"currentMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"date":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"focused":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"selected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbDatepickerI18n"}]}],"isMuted":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"ngb-datepicker-navigation","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":8,"character":17},"member":"None"},"template":"\n
\n \n
\n \n \n\n \n
0\">
\n
\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n
\n
\n
\n \n
\n ","styles":["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"]}]}],"members":{"date":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"months":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"showSelect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"prevDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"nextDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"selectBoxes":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"navigate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":53,"character":3}}]}],"select":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":54,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbDatepickerI18n"}]}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"ngb-datepicker-navigation-select","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":8,"character":17},"member":"None"},"template":"\n \n \n \n \n \n ","styles":["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}"]}]}],"members":{"date":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"months":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"years":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"select":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":37,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbDatepickerI18n"}]}],"changeMonth":[{"__symbolic":"method"}],"changeYear":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"function","parameters":["locale"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"ɵh"},"arguments":[{"__symbolic":"reference","name":"locale"}]}},"ɵh":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbDatepickerI18n"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":73,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":79,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":79,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"string"}]}],"getWeekdayShortName":[{"__symbolic":"method"}],"getMonthShortName":[{"__symbolic":"method"}],"getMonthFullName":[{"__symbolic":"method"}],"getDayAriaLabel":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"ɵj"}}},"ɵj":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbDateAdapter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":33,"character":1}}],"members":{"fromModel":[{"__symbolic":"method"}],"toModel":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"ɵl"}}},"ɵl":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbDateParserFormatter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":42,"character":1}}],"members":{"parse":[{"__symbolic":"method"}],"format":[{"__symbolic":"method"}]}},"NgbCalendar":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":28,"character":1},"arguments":[{"providedIn":"root","useFactory":{"__symbolic":"reference","name":"ɵb"}}]}],"members":{"getDaysPerWeek":[{"__symbolic":"method"}],"getMonths":[{"__symbolic":"method"}],"getWeeksPerMonth":[{"__symbolic":"method"}],"getWeekday":[{"__symbolic":"method"}],"getNext":[{"__symbolic":"method"}],"getPrev":[{"__symbolic":"method"}],"getWeekNumber":[{"__symbolic":"method"}],"getToday":[{"__symbolic":"method"}],"isValid":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgbCalendarGregorian":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbCalendar"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":90,"character":1}}],"members":{"getDaysPerWeek":[{"__symbolic":"method"}],"getMonths":[{"__symbolic":"method"}],"getWeeksPerMonth":[{"__symbolic":"method"}],"getNext":[{"__symbolic":"method"}],"getPrev":[{"__symbolic":"method"}],"getWeekday":[{"__symbolic":"method"}],"getWeekNumber":[{"__symbolic":"method"}],"getToday":[{"__symbolic":"method"}],"isValid":[{"__symbolic":"method"}]}},"NgbCalendarHebrew":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbCalendar"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":17,"character":1}}],"members":{"getDaysPerWeek":[{"__symbolic":"method"}],"getMonths":[{"__symbolic":"method"}],"getWeeksPerMonth":[{"__symbolic":"method"}],"isValid":[{"__symbolic":"method"}],"getNext":[{"__symbolic":"method"}],"getPrev":[{"__symbolic":"method"}],"getWeekday":[{"__symbolic":"method"}],"getWeekNumber":[{"__symbolic":"method"}],"getToday":[{"__symbolic":"method"}],"toGregorian":[{"__symbolic":"method"}],"fromGregorian":[{"__symbolic":"method"}]}},"NgbCalendarIslamicCivil":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵbd"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":52,"character":1}}],"members":{"fromGregorian":[{"__symbolic":"method"}],"toGregorian":[{"__symbolic":"method"}],"getDaysPerMonth":[{"__symbolic":"method"}]}},"NgbCalendarIslamicUmalqura":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbCalendarIslamicCivil"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":150,"character":1}}],"members":{"fromGregorian":[{"__symbolic":"method"}],"toGregorian":[{"__symbolic":"method"}],"getDaysPerMonth":[{"__symbolic":"method"}]}},"NgbCalendarPersian":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbCalendar"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"getDaysPerWeek":[{"__symbolic":"method"}],"getMonths":[{"__symbolic":"method"}],"getWeeksPerMonth":[{"__symbolic":"method"}],"getNext":[{"__symbolic":"method"}],"getPrev":[{"__symbolic":"method"}],"getWeekday":[{"__symbolic":"method"}],"getWeekNumber":[{"__symbolic":"method"}],"getToday":[{"__symbolic":"method"}],"isValid":[{"__symbolic":"method"}]}},"NgbDate":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"}]}],"equals":[{"__symbolic":"method"}],"before":[{"__symbolic":"method"}],"after":[{"__symbolic":"method"}]}},"NgbDateAdapter":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":20,"character":1},"arguments":[{"providedIn":"root","useFactory":{"__symbolic":"reference","name":"ɵi"}}]}],"members":{"fromModel":[{"__symbolic":"method"}],"toModel":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgbDateNativeAdapter":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbDateAdapter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"fromModel":[{"__symbolic":"method"}],"toModel":[{"__symbolic":"method"}],"_fromNativeDate":[{"__symbolic":"method"}],"_toNativeDate":[{"__symbolic":"method"}]}},"NgbDateNativeUTCAdapter":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbDateNativeAdapter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"_fromNativeDate":[{"__symbolic":"method"}],"_toNativeDate":[{"__symbolic":"method"}]}},"NgbDateParserFormatter":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":23,"character":1},"arguments":[{"providedIn":"root","useFactory":{"__symbolic":"reference","name":"ɵk"}}]}],"members":{"parse":[{"__symbolic":"method"}],"format":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgbDatepicker":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":68,"character":1},"arguments":[{"exportAs":"ngbDatepicker","selector":"ngb-datepicker","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":71,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":72,"character":17},"member":"None"},"template":"\n \n
\n
\n
\n\n
\n \n \n
\n\n
\n \n
\n
1 && navigation === 'select')\"\n class=\"ngb-dp-month-name\">\n {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n
\n \n \n
\n
\n
\n\n \n ","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":36,"character":11},"useExisting":{"__symbolic":"reference","name":"NgbDatepicker"},"multi":true},{"__symbolic":"reference","name":"ɵu"},{"__symbolic":"reference","name":"ɵv"}],"styles":["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"]}]}],"members":{"_monthsEl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":125,"character":3},"arguments":["months",{"static":true}]}]}],"dayTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":136,"character":3}}]}],"dayTemplateData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":146,"character":3}}]}],"displayMonths":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":151,"character":3}}]}],"firstDayOfWeek":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":158,"character":3}}]}],"footerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":165,"character":3}}]}],"markDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":174,"character":3}}]}],"maxDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":181,"character":3}}]}],"minDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":188,"character":3}}]}],"navigation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":197,"character":3}}]}],"outsideDays":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":208,"character":3}}]}],"showWeekdays":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":213,"character":3}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":218,"character":3}}]}],"startDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":228,"character":3}}]}],"navigate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":235,"character":3}}]}],"select":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":242,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵv"},{"__symbolic":"reference","name":"ɵu"},{"__symbolic":"reference","name":"NgbCalendar"},{"__symbolic":"reference","name":"NgbDatepickerI18n"},{"__symbolic":"reference","name":"NgbDatepickerConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":250,"character":19},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":250,"character":70,"context":{"typeName":"HTMLElement"},"module":"./datepicker/datepicker"}]},{"__symbolic":"reference","name":"NgbDateAdapter"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":251,"character":69}]}],"focus":[{"__symbolic":"method"}],"navigateTo":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"onDateSelect":[{"__symbolic":"method"}],"onKeyDown":[{"__symbolic":"method"}],"onNavigateDateSelect":[{"__symbolic":"method"}],"onNavigateEvent":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}]}},"NgbDatepickerConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbDatepickerI18n":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1},"arguments":[{"providedIn":"root","useFactory":{"__symbolic":"reference","name":"ɵg"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":21,"character":80}]}]}],"members":{"getWeekdayShortName":[{"__symbolic":"method"}],"getMonthShortName":[{"__symbolic":"method"}],"getMonthFullName":[{"__symbolic":"method"}],"getDayAriaLabel":[{"__symbolic":"method"}],"getDayNumerals":[{"__symbolic":"method"}],"getWeekNumerals":[{"__symbolic":"method"}],"getYearNumerals":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgbDatepickerI18nHebrew":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbDatepickerI18n"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":14,"character":1}}],"members":{"getMonthShortName":[{"__symbolic":"method"}],"getMonthFullName":[{"__symbolic":"method"}],"getWeekdayShortName":[{"__symbolic":"method"}],"getDayAriaLabel":[{"__symbolic":"method"}],"getDayNumerals":[{"__symbolic":"method"}],"getWeekNumerals":[{"__symbolic":"method"}],"getYearNumerals":[{"__symbolic":"method"}]}},"NgbDatepickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":31,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbDatepicker"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"NgbInputDatepicker"}],"exports":[{"__symbolic":"reference","name":"NgbDatepicker"},{"__symbolic":"reference","name":"NgbInputDatepicker"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":37,"character":12},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":37,"character":26}],"entryComponents":[{"__symbolic":"reference","name":"NgbDatepicker"}]}]}],"members":{}},"NgbDatepickerNavigateEvent":{"__symbolic":"interface"},"NgbDateStruct":{"__symbolic":"interface"},"NgbInputDatepicker":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":52,"character":1},"arguments":[{"selector":"input[ngbDatepicker]","exportAs":"ngbDatepicker","host":{"(input)":"manualDateChange($event.target.value)","(change)":"manualDateChange($event.target.value, true)","(blur)":"onBlur()","[disabled]":"disabled","$quoted$":["(input)","(change)","(blur)","[disabled]"]},"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":36,"character":11},"useExisting":{"__symbolic":"reference","name":"NgbInputDatepicker"},"multi":true},{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALIDATORS","line":42,"character":11},"useExisting":{"__symbolic":"reference","name":"NgbInputDatepicker"},"multi":true},{"__symbolic":"reference","name":"ɵu"}]}]}],"members":{"autoClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":81,"character":3}}]}],"dayTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":90,"character":3}}]}],"dayTemplateData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":100,"character":3}}]}],"displayMonths":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":105,"character":3}}]}],"firstDayOfWeek":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":112,"character":3}}]}],"footerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":119,"character":3}}]}],"markDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":128,"character":3}}]}],"minDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":135,"character":3}}]}],"maxDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":142,"character":3}}]}],"navigation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":151,"character":3}}]}],"outsideDays":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":162,"character":3}}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":177,"character":3}}]}],"showWeekdays":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":182,"character":3}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":187,"character":3}}]}],"startDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":197,"character":3}}]}],"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":204,"character":3}}]}],"positionTarget":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":213,"character":3}}]}],"dateSelect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":222,"character":3}}]}],"navigate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":229,"character":3}}]}],"closed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":236,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":238,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":259,"character":50},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":259,"character":57}]}],null],"parameters":[{"__symbolic":"reference","name":"NgbDateParserFormatter"},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":256,"character":83,"context":{"typeName":"HTMLInputElement"},"module":"./datepicker/datepicker-input"}]},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":257,"character":22},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":257,"character":59},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":257,"character":84},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":258,"character":23},{"__symbolic":"reference","name":"ɵu"},{"__symbolic":"reference","name":"NgbCalendar"},{"__symbolic":"reference","name":"NgbDateAdapter"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":260,"character":31}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"registerOnValidatorChange":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"manualDateChange":[{"__symbolic":"method"}],"isOpen":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"navigateTo":[{"__symbolic":"method"}],"onBlur":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_applyDatepickerInputs":[{"__symbolic":"method"}],"_applyPopupStyling":[{"__symbolic":"method"}],"_subscribeForDatepickerOutputs":[{"__symbolic":"method"}],"_writeModelValue":[{"__symbolic":"method"}],"_fromDateStruct":[{"__symbolic":"method"}],"_updatePopupPosition":[{"__symbolic":"method"}]}},"NgbPeriod":{"__symbolic":"interface"},"ɵm":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":29,"character":1},"arguments":[{"selector":".navbar"}]}],"members":{}},"NgbDropdown":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":130,"character":1},"arguments":[{"selector":"[ngbDropdown]","exportAs":"ngbDropdown","host":{"[class.show]":"isOpen()","$quoted$":["[class.show]"]}}]}],"members":{"_menu":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":136,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbDropdownMenu"},{"static":false}]}]}],"_menuElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":137,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbDropdownMenu"},{"read":{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":122,"character":86,"context":{"typeName":"HTMLElement"},"module":"./dropdown/dropdown"}]},"static":false}]}]}],"_anchor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":138,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbDropdownAnchor"},{"static":false}]}]}],"autoClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":148,"character":3}}]}],"_open":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":153,"character":3},"arguments":["open"]}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":168,"character":3}}]}],"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":176,"character":3}}]}],"display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":186,"character":3}}]}],"openChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":195,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":198,"character":78},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":198,"character":85}]}],null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":200,"character":7}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":198,"character":31},{"__symbolic":"reference","name":"NgbDropdownConfig"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":199,"character":23},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":199,"character":63,"context":{"typeName":"HTMLElement"},"module":"./dropdown/dropdown"}]},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":199,"character":96},{"__symbolic":"reference","name":"ɵm"}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"isOpen":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"_setCloseHandlers":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"onKeyDown":[{"__symbolic":"method"}],"_isDropup":[{"__symbolic":"method"}],"_isEventFromToggle":[{"__symbolic":"method"}],"_getMenuElements":[{"__symbolic":"method"}],"_positionMenu":[{"__symbolic":"method"}],"_getFirstPlacement":[{"__symbolic":"method"}],"_resetContainer":[{"__symbolic":"method"}],"_applyContainer":[{"__symbolic":"method"}],"_applyPlacementClasses":[{"__symbolic":"method"}]}},"NgbDropdownAnchor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":88,"character":1},"arguments":[{"selector":"[ngbDropdownAnchor]","host":{"class":"dropdown-toggle","aria-haspopup":"true","[attr.aria-expanded]":"dropdown.isOpen()","$quoted$":["class","aria-haspopup","[attr.aria-expanded]"]}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":95,"character":15},"arguments":[{"__symbolic":"reference","name":"NgbDropdown"}]}],null],"parameters":[null,{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":199,"character":63,"context":{"typeName":"HTMLElement"},"module":"./dropdown/dropdown"}]}]}],"getNativeElement":[{"__symbolic":"method"}]}},"NgbDropdownConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbDropdownItem":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":39,"character":1},"arguments":[{"selector":"[ngbDropdownItem]","host":{"class":"dropdown-item","[class.disabled]":"disabled","$quoted$":["class","[class.disabled]"]}}]}],"members":{"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":199,"character":63,"context":{"typeName":"HTMLElement"},"module":"./dropdown/dropdown"}]}]}]}},"NgbDropdownMenu":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":56,"character":1},"arguments":[{"selector":"[ngbDropdownMenu]","host":{"[class.dropdown-menu]":"true","[class.show]":"dropdown.isOpen()","[attr.x-placement]":"placement","(keydown.ArrowUp)":"dropdown.onKeyDown($event)","(keydown.ArrowDown)":"dropdown.onKeyDown($event)","(keydown.Home)":"dropdown.onKeyDown($event)","(keydown.End)":"dropdown.onKeyDown($event)","(keydown.Enter)":"dropdown.onKeyDown($event)","(keydown.Space)":"dropdown.onKeyDown($event)","$quoted$":["[class.dropdown-menu]","[class.show]","[attr.x-placement]","(keydown.ArrowUp)","(keydown.ArrowDown)","(keydown.Home)","(keydown.End)","(keydown.Enter)","(keydown.Space)"]}}]}],"members":{"menuItems":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":74,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbDropdownItem"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":76,"character":15},"arguments":[{"__symbolic":"reference","name":"NgbDropdown"}]}]],"parameters":[null]}]}},"NgbDropdownModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":16,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbDropdown"},{"__symbolic":"reference","name":"NgbDropdownAnchor"},{"__symbolic":"reference","name":"NgbDropdownToggle"},{"__symbolic":"reference","name":"NgbDropdownMenu"},{"__symbolic":"reference","name":"NgbDropdownItem"},{"__symbolic":"reference","name":"ɵm"}],"exports":[{"__symbolic":"reference","name":"NgbDropdown"},{"__symbolic":"reference","name":"NgbDropdownAnchor"},{"__symbolic":"reference","name":"NgbDropdownToggle"},{"__symbolic":"reference","name":"NgbDropdownMenu"},{"__symbolic":"reference","name":"NgbDropdownItem"},{"__symbolic":"reference","name":"ɵm"}]}]}],"members":{}},"NgbDropdownToggle":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbDropdownAnchor"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":107,"character":1},"arguments":[{"selector":"[ngbDropdownToggle]","host":{"class":"dropdown-toggle","aria-haspopup":"true","[attr.aria-expanded]":"dropdown.isOpen()","(click)":"dropdown.toggle()","(keydown.ArrowUp)":"dropdown.onKeyDown($event)","(keydown.ArrowDown)":"dropdown.onKeyDown($event)","(keydown.Home)":"dropdown.onKeyDown($event)","(keydown.End)":"dropdown.onKeyDown($event)","$quoted$":["class","aria-haspopup","[attr.aria-expanded]","(click)","(keydown.ArrowUp)","(keydown.ArrowDown)","(keydown.Home)","(keydown.End)"]},"providers":[{"provide":{"__symbolic":"reference","name":"NgbDropdownAnchor"},"useExisting":{"__symbolic":"reference","name":"NgbDropdownToggle"}}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":122,"character":15},"arguments":[{"__symbolic":"reference","name":"NgbDropdown"}]}],null],"parameters":[null,{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":199,"character":63,"context":{"typeName":"HTMLElement"},"module":"./dropdown/dropdown"}]}]}]}},"ModalDismissReasons":{"BACKDROP_CLICK":0,"ESC":1},"NgbActiveModal":{"__symbolic":"class","members":{"close":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}]}},"NgbModal":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":15,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":15,"character":71},{"__symbolic":"reference","name":"ɵy"},{"__symbolic":"reference","name":"NgbModalConfig"}]}],"open":[{"__symbolic":"method"}],"dismissAll":[{"__symbolic":"method"}],"hasOpenModals":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgbModalConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":95,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbModalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵw"},{"__symbolic":"reference","name":"ɵx"}],"entryComponents":[{"__symbolic":"reference","name":"ɵw"},{"__symbolic":"reference","name":"ɵx"}],"providers":[{"__symbolic":"reference","name":"NgbModal"}]}]}],"members":{}},"NgbModalOptions":{"__symbolic":"interface"},"NgbModalRef":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ComponentRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"ɵw"}]},{"__symbolic":"reference","name":"ɵbe"},{"__symbolic":"reference","name":"ComponentRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"ɵw"}]},{"__symbolic":"reference","name":"Function"}]}],"close":[{"__symbolic":"method"}],"_dismiss":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}],"_removeModalElements":[{"__symbolic":"method"}]}},"NgbPagination":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":116,"character":1},"arguments":[{"selector":"ngb-pagination","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":118,"character":19},"member":"OnPush"},"host":{"role":"navigation","$quoted$":["role"]},"template":"\n ««\n «\n »\n »»\n ...\n \n {{ page }}\n (current)\n \n \n "}]}],"members":{"tplEllipsis":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":181,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbPaginationEllipsis"},{"static":false}]}]}],"tplFirst":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":182,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbPaginationFirst"},{"static":false}]}]}],"tplLast":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":183,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbPaginationLast"},{"static":false}]}]}],"tplNext":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":184,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbPaginationNext"},{"static":false}]}]}],"tplNumber":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":185,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbPaginationNumber"},{"static":false}]}]}],"tplPrevious":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":186,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbPaginationPrevious"},{"static":false}]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":191,"character":3}}]}],"boundaryLinks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":196,"character":3}}]}],"directionLinks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":201,"character":3}}]}],"ellipses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":206,"character":3}}]}],"rotate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":213,"character":3}}]}],"collectionSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":222,"character":3}}]}],"maxSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":227,"character":3}}]}],"page":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":234,"character":3}}]}],"pageSize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":239,"character":3}}]}],"pageChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":248,"character":3}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":255,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbPaginationConfig"}]}],"hasPrevious":[{"__symbolic":"method"}],"hasNext":[{"__symbolic":"method"}],"nextDisabled":[{"__symbolic":"method"}],"previousDisabled":[{"__symbolic":"method"}],"selectPage":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"isEllipsis":[{"__symbolic":"method"}],"_applyEllipses":[{"__symbolic":"method"}],"_applyRotation":[{"__symbolic":"method"}],"_applyPagination":[{"__symbolic":"method"}],"_setPageInRange":[{"__symbolic":"method"}],"_updatePages":[{"__symbolic":"method"}]}},"NgbPaginationConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbPaginationEllipsis":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":58,"character":1},"arguments":[{"selector":"ng-template[ngbPaginationEllipsis]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"NgbPaginationFirst":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":68,"character":1},"arguments":[{"selector":"ng-template[ngbPaginationFirst]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"NgbPaginationLast":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":78,"character":1},"arguments":[{"selector":"ng-template[ngbPaginationLast]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"NgbPaginationModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":29,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbPagination"},{"__symbolic":"reference","name":"NgbPaginationEllipsis"},{"__symbolic":"reference","name":"NgbPaginationFirst"},{"__symbolic":"reference","name":"NgbPaginationLast"},{"__symbolic":"reference","name":"NgbPaginationNext"},{"__symbolic":"reference","name":"NgbPaginationNumber"},{"__symbolic":"reference","name":"NgbPaginationPrevious"}],"exports":[{"__symbolic":"reference","name":"NgbPagination"},{"__symbolic":"reference","name":"NgbPaginationEllipsis"},{"__symbolic":"reference","name":"NgbPaginationFirst"},{"__symbolic":"reference","name":"NgbPaginationLast"},{"__symbolic":"reference","name":"NgbPaginationNext"},{"__symbolic":"reference","name":"NgbPaginationNumber"},{"__symbolic":"reference","name":"NgbPaginationPrevious"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":29,"character":68}]}]}],"members":{}},"NgbPaginationNext":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":88,"character":1},"arguments":[{"selector":"ng-template[ngbPaginationNext]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"NgbPaginationNumber":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":98,"character":1},"arguments":[{"selector":"ng-template[ngbPaginationNumber]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"NgbPaginationPrevious":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":108,"character":1},"arguments":[{"selector":"ng-template[ngbPaginationPrevious]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵn":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":35,"character":1},"arguments":[{"selector":"ngb-popover-window","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":37,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":38,"character":17},"member":"None"},"host":{"[class]":"\"popover\" + (popoverClass ? \" \" + popoverClass : \"\")","role":"tooltip","[id]":"id","$quoted$":["[class]","role","[id]"]},"template":"\n
\n

\n {{title}}\n \n

\n
","styles":["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"]}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"popoverClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"context":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":3}}]}],"isTitleTemplate":[{"__symbolic":"method"}]}},"NgbPopover":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":61,"character":1},"arguments":[{"selector":"[ngbPopover]","exportAs":"ngbPopover"}]}],"members":{"autoClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":74,"character":3}}]}],"ngbPopover":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":81,"character":3}}]}],"popoverTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":88,"character":3}}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":103,"character":3}}]}],"triggers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":111,"character":3}}]}],"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":118,"character":3}}]}],"disablePopover":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":125,"character":3}}]}],"popoverClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":132,"character":3}}]}],"openDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":139,"character":3}}]}],"closeDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":146,"character":3}}]}],"shown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":151,"character":3}}]}],"hidden":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":156,"character":3}}]}],"_isDisabled":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":176,"character":32},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":176,"character":39}]}],null,null],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":174,"character":38,"context":{"typeName":"HTMLElement"},"module":"./popover/popover"}]},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":174,"character":71},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":174,"character":92},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":175,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":175,"character":76},{"__symbolic":"reference","name":"NgbPopoverConfig"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":176,"character":23},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":176,"character":98},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":177,"character":31}]}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"isOpen":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"NgbPopoverConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbPopoverModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbPopover"},{"__symbolic":"reference","name":"ɵn"}],"exports":[{"__symbolic":"reference","name":"NgbPopover"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":12,"character":12}],"entryComponents":[{"__symbolic":"reference","name":"ɵn"}]}]}],"members":{}},"NgbProgressbar":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"ngb-progressbar","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":9,"character":19},"member":"OnPush"},"template":"\n
\n
\n {{getPercentValue()}}%\n
\n
\n "}]}],"members":{"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"animated":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"striped":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"showValue":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbProgressbarConfig"}]}],"getValue":[{"__symbolic":"method"}],"getPercentValue":[{"__symbolic":"method"}]}},"NgbProgressbarConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbProgressbarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbProgressbar"}],"exports":[{"__symbolic":"reference","name":"NgbProgressbar"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":80}]}]}],"members":{}},"NgbRating":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":43,"character":1},"arguments":[{"selector":"ngb-rating","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":45,"character":19},"member":"OnPush"},"host":{"class":"d-inline-flex","tabindex":"0","role":"slider","aria-valuemin":"0","[attr.aria-valuemax]":"max","[attr.aria-valuenow]":"nextRate","[attr.aria-valuetext]":"ariaValueText()","[attr.aria-disabled]":"readonly ? true : null","(blur)":"handleBlur()","(keydown)":"handleKeyDown($event)","(mouseleave)":"reset()","$quoted$":["class","tabindex","role","aria-valuemin","[attr.aria-valuemax]","[attr.aria-valuenow]","[attr.aria-valuetext]","[attr.aria-disabled]","(blur)","(keydown)","(mouseleave)"]},"template":"\n {{ fill === 100 ? '★' : '☆' }}\n \n ({{ index < nextRate ? '*' : ' ' }})\n \n \n \n \n \n ","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":35,"character":11},"useExisting":{"__symbolic":"reference","name":"NgbRating"},"multi":true}]}]}],"members":{"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":81,"character":3}}]}],"rate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":86,"character":3}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":91,"character":3}}]}],"resettable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":96,"character":3}}]}],"starTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":103,"character":3}}]}],"starTemplateFromContent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":104,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":104,"character":16},{"static":false}]}]}],"hover":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":111,"character":3}}]}],"leave":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":118,"character":3}}]}],"rateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":125,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbRatingConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":130,"character":67}]}],"ariaValueText":[{"__symbolic":"method"}],"enter":[{"__symbolic":"method"}],"handleBlur":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}],"handleKeyDown":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"_getFillValue":[{"__symbolic":"method"}],"_updateState":[{"__symbolic":"method"}]}},"NgbRatingConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbRatingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbRating"}],"exports":[{"__symbolic":"reference","name":"NgbRating"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":70}]}]}],"members":{}},"NgbTab":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":36,"character":1},"arguments":[{"selector":"ngb-tab"}]}],"members":{"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":3}}]}],"titleTpls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":60,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbTabTitle"},{"descendants":false}]}]}],"contentTpls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":61,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbTabContent"},{"descendants":false}]}]}],"ngAfterContentChecked":[{"__symbolic":"method"}]}},"NgbTabChangeEvent":{"__symbolic":"interface"},"NgbTabContent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":28,"character":1},"arguments":[{"selector":"ng-template[ngbTabContent]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"NgbTabset":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":96,"character":1},"arguments":[{"selector":"ngb-tabset","exportAs":"ngbTabset","template":"\n \n
\n \n \n \n
\n \n \n "}]}],"members":{"tabs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":126,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbTab"}]}]}],"activeId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":133,"character":3}}]}],"destroyOnHide":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":138,"character":3}}]}],"justify":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":143,"character":3}}]}],"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":155,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":164,"character":3}}]}],"tabChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":171,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbTabsetConfig"}]}],"select":[{"__symbolic":"method"}],"ngAfterContentChecked":[{"__symbolic":"method"}],"_getTabById":[{"__symbolic":"method"}]}},"NgbTabsetConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbTabsetModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbTabset"},{"__symbolic":"reference","name":"NgbTab"},{"__symbolic":"reference","name":"NgbTabContent"},{"__symbolic":"reference","name":"NgbTabTitle"}],"exports":[{"__symbolic":"reference","name":"NgbTabset"},{"__symbolic":"reference","name":"NgbTab"},{"__symbolic":"reference","name":"NgbTabContent"},{"__symbolic":"reference","name":"NgbTabTitle"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":90}]}]}],"members":{}},"NgbTabTitle":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":20,"character":1},"arguments":[{"selector":"ng-template[ngbTabTitle]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵo":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"ɵp"}}},"ɵp":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbTimeAdapter"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":34,"character":1}}],"members":{"fromModel":[{"__symbolic":"method"}],"toModel":[{"__symbolic":"method"}]}},"ɵq":{"__symbolic":"function","parameters":["locale"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"ɵr"},"arguments":[{"__symbolic":"reference","name":"locale"}]}},"ɵr":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbTimepickerI18n"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":25,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":29,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"string"}]}],"getMorningPeriod":[{"__symbolic":"method"}],"getAfternoonPeriod":[{"__symbolic":"method"}]}},"NgbTimeAdapter":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1},"arguments":[{"providedIn":"root","useFactory":{"__symbolic":"reference","name":"ɵo"}}]}],"members":{"fromModel":[{"__symbolic":"method"}],"toModel":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgbTimepickerI18n":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1},"arguments":[{"providedIn":"root","useFactory":{"__symbolic":"reference","name":"ɵq"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":12,"character":81}]}]}],"members":{"getMorningPeriod":[{"__symbolic":"method"}],"getAfternoonPeriod":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgbTimepicker":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":26,"character":1},"arguments":[{"selector":"ngb-timepicker","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":28,"character":17},"member":"None"},"template":"\n
\n
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
:
\n
\n \n \n \n
\n
\n
\n \n
\n
\n
\n ","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":18,"character":11},"useExisting":{"__symbolic":"reference","name":"NgbTimepicker"},"multi":true}],"styles":["ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:\"\";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}"]}]}],"members":{"meridian":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":121,"character":3}}]}],"spinners":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":126,"character":3}}]}],"seconds":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":131,"character":3}}]}],"hourStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":136,"character":3}}]}],"minuteStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":146,"character":3}}]}],"secondStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":156,"character":3}}]}],"readonlyInputs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":166,"character":3}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":171,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbTimepickerConfig"},{"__symbolic":"reference","name":"NgbTimeAdapter"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":175,"character":19},{"__symbolic":"reference","name":"NgbTimepickerI18n"}]}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"changeHour":[{"__symbolic":"method"}],"changeMinute":[{"__symbolic":"method"}],"changeSecond":[{"__symbolic":"method"}],"updateHour":[{"__symbolic":"method"}],"updateMinute":[{"__symbolic":"method"}],"updateSecond":[{"__symbolic":"method"}],"toggleMeridian":[{"__symbolic":"method"}],"formatHour":[{"__symbolic":"method"}],"formatMinSec":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"propagateModelChange":[{"__symbolic":"method"}]}},"NgbTimepickerConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbTimepickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbTimepicker"}],"exports":[{"__symbolic":"reference","name":"NgbTimepicker"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":78}]}]}],"members":{}},"NgbTimeStruct":{"__symbolic":"interface"},"NgbToast":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":33,"character":1},"arguments":[{"selector":"ngb-toast","exportAs":"ngbToast","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":36,"character":17},"member":"None"},"host":{"role":"alert","[attr.aria-live]":"ariaLive","aria-atomic":"true","[class.toast]":"true","[class.show]":"true","[class.autohide]":"autohide","$quoted$":["role","[attr.aria-live]","aria-atomic","[class.toast]","[class.show]","[class.autohide]"]},"template":"\n \n {{header}}\n \n \n
\n \n \n
\n
\n
\n \n
\n ","styles":[".ngb-toasts{position:fixed;top:0;right:0;margin:.5em;z-index:1200}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}"]}]}],"members":{"delay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":71,"character":3}}]}],"autohide":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":77,"character":3}}]}],"header":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":83,"character":3}}]}],"contentHeaderTpl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":89,"character":3},"arguments":[{"__symbolic":"reference","name":"NgbToastHeader"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":89,"character":39},"static":true}]}]}],"hideOutput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":100,"character":3},"arguments":["hide"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Attribute","line":102,"character":15},"arguments":["aria-live"]}],null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"NgbToastConfig"}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"_init":[{"__symbolic":"method"}],"_clearTimeout":[{"__symbolic":"method"}]}},"NgbToastConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":36,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbToastHeader":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":23,"character":1},"arguments":[{"selector":"[ngbToastHeader]"}]}],"members":{}},"NgbToastModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbToast"},{"__symbolic":"reference","name":"NgbToastHeader"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":63}],"exports":[{"__symbolic":"reference","name":"NgbToast"},{"__symbolic":"reference","name":"NgbToastHeader"}]}]}],"members":{}},"ɵs":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":33,"character":1},"arguments":[{"selector":"ngb-tooltip-window","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":35,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":36,"character":17},"member":"None"},"host":{"[class]":"\"tooltip show\" + (tooltipClass ? \" \" + tooltipClass : \"\")","role":"tooltip","[id]":"id","$quoted$":["[class]","role","[id]"]},"template":"
","styles":["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"]}]}],"members":{"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"tooltipClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}]}},"NgbTooltip":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":49,"character":1},"arguments":[{"selector":"[ngbTooltip]","exportAs":"ngbTooltip"}]}],"members":{"autoClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3}}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":77,"character":3}}]}],"triggers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":85,"character":3}}]}],"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":92,"character":3}}]}],"disableTooltip":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":99,"character":3}}]}],"tooltipClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":106,"character":3}}]}],"openDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":113,"character":3}}]}],"closeDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":120,"character":3}}]}],"shown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":125,"character":3}}]}],"hidden":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":129,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":141,"character":32},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":141,"character":39}]}],null,null],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":139,"character":38,"context":{"typeName":"HTMLElement"},"module":"./tooltip/tooltip"}]},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":139,"character":71},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":139,"character":92},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":140,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":140,"character":76},{"__symbolic":"reference","name":"NgbTooltipConfig"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":141,"character":23},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":141,"character":98},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":142,"character":31}]}],"ngbTooltip":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":168,"character":3}}]}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"isOpen":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"NgbTooltipConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbTooltipModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbTooltip"},{"__symbolic":"reference","name":"ɵs"}],"exports":[{"__symbolic":"reference","name":"NgbTooltip"}],"entryComponents":[{"__symbolic":"reference","name":"ɵs"}]}]}],"members":{}},"ɵt":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":19,"character":1},"arguments":[{"selector":"ngb-typeahead-window","exportAs":"ngbTypeaheadWindow","host":{"(mousedown)":"$event.preventDefault()","class":"dropdown-menu show","role":"listbox","[id]":"id","$quoted$":["(mousedown)","class","role","[id]"]},"template":"\n \n \n \n \n \n \n "}]}],"members":{"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"focusFirst":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"results":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":3}}]}],"term":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":61,"character":3}}]}],"formatter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":67,"character":3}}]}],"resultTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":72,"character":3}}]}],"selectEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":77,"character":3},"arguments":["select"]}]}],"activeChangeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":79,"character":3},"arguments":["activeChange"]}]}],"hasActive":[{"__symbolic":"method"}],"getActive":[{"__symbolic":"method"}],"markActive":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"prev":[{"__symbolic":"method"}],"resetActive":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"_activeChanged":[{"__symbolic":"method"}]}},"NgbHighlight":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"ngb-highlight","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":13,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":14,"character":17},"member":"None"},"template":"{{part}}{{part}}","styles":[".ngb-highlight{font-weight:700}"]}]}],"members":{"highlightClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"result":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"term":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":3}}]}],"ngOnChanges":[{"__symbolic":"method"}]}},"NgbTypeahead":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":62,"character":1},"arguments":[{"selector":"input[ngbTypeahead]","exportAs":"ngbTypeahead","host":{"(blur)":"handleBlur()","[class.open]":"isPopupOpen()","(keydown)":"handleKeyDown($event)","[autocomplete]":"autocomplete","autocapitalize":"off","autocorrect":"off","role":"combobox","aria-multiline":"false","[attr.aria-autocomplete]":"showHint ? \"both\" : \"list\"","[attr.aria-activedescendant]":"activeDescendant","[attr.aria-owns]":"isPopupOpen() ? popupId : null","[attr.aria-expanded]":"isPopupOpen()","$quoted$":["(blur)","[class.open]","(keydown)","[autocomplete]","autocapitalize","autocorrect","role","aria-multiline","[attr.aria-autocomplete]","[attr.aria-activedescendant]","[attr.aria-owns]","[attr.aria-expanded]"]},"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":37,"character":11},"useExisting":{"__symbolic":"reference","name":"NgbTypeahead"},"multi":true}]}]}],"members":{"autocomplete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":99,"character":3}}]}],"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":106,"character":3}}]}],"editable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":111,"character":3}}]}],"focusFirst":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":116,"character":3}}]}],"inputFormatter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":124,"character":3}}]}],"ngbTypeahead":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":137,"character":3}}]}],"resultFormatter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":146,"character":3}}]}],"resultTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":155,"character":3}}]}],"showHint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":160,"character":3}}]}],"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":175,"character":3}}]}],"selectItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":182,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":193,"character":72},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":193,"character":79}]}],null,null,null],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":191,"character":38,"context":{"typeName":"HTMLInputElement"},"module":"./typeahead/typeahead"}]},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":191,"character":84},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":192,"character":25},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":192,"character":55},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":192,"character":91},{"__symbolic":"reference","name":"NgbTypeaheadConfig"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":193,"character":42},{"__symbolic":"reference","name":"ɵbc"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":193,"character":42},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":194,"character":56},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":194,"character":100}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"dismissPopup":[{"__symbolic":"method"}],"isPopupOpen":[{"__symbolic":"method"}],"handleBlur":[{"__symbolic":"method"}],"handleKeyDown":[{"__symbolic":"method"}],"_openPopup":[{"__symbolic":"method"}],"_closePopup":[{"__symbolic":"method"}],"_selectResult":[{"__symbolic":"method"}],"_selectResultClosePopup":[{"__symbolic":"method"}],"_showHint":[{"__symbolic":"method"}],"_formatItemForInput":[{"__symbolic":"method"}],"_writeInputValue":[{"__symbolic":"method"}],"_subscribeToUserInput":[{"__symbolic":"method"}],"_unsubscribeFromUserInput":[{"__symbolic":"method"}]}},"NgbTypeaheadConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ngInjectableDef":{}}},"NgbTypeaheadModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgbTypeahead"},{"__symbolic":"reference","name":"NgbHighlight"},{"__symbolic":"reference","name":"ɵt"}],"exports":[{"__symbolic":"reference","name":"NgbTypeahead"},{"__symbolic":"reference","name":"NgbHighlight"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":12}],"entryComponents":[{"__symbolic":"reference","name":"ɵt"}]}]}],"members":{}},"NgbTypeaheadSelectItemEvent":{"__symbolic":"interface"},"Placement":{"__symbolic":"interface"},"ɵu":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":23,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgbCalendar"},{"__symbolic":"reference","name":"NgbDatepickerI18n"}]}],"focus":[{"__symbolic":"method"}],"focusMove":[{"__symbolic":"method"}],"focusSelect":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"toValidDate":[{"__symbolic":"method"}],"_nextState":[{"__symbolic":"method"}],"_patchContexts":[{"__symbolic":"method"}],"_updateState":[{"__symbolic":"method"}]}},"ɵv":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵu"},{"__symbolic":"reference","name":"NgbCalendar"}]}],"processKey":[{"__symbolic":"method"}]}},"ɵw":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"ngb-modal-backdrop","template":"","host":{"[class]":"\"modal-backdrop fade show\" + (backdropClass ? \" \" + backdropClass : \"\")","style":"z-index: 1050","$quoted$":["[class]","style"]}}]}],"members":{"backdropClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}]}},"ɵx":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":17,"character":1},"arguments":[{"selector":"ngb-modal-window","host":{"[class]":"\"modal fade show d-block\" + (windowClass ? \" \" + windowClass : \"\")","role":"dialog","tabindex":"-1","(keyup.esc)":"escKey($event)","(click)":"backdropClick($event)","[attr.aria-modal]":"true","[attr.aria-labelledby]":"ariaLabelledBy","$quoted$":["[class]","role","tabindex","(keyup.esc)","(click)","[attr.aria-modal]","[attr.aria-labelledby]"]},"template":"\n
\n
\n
\n ","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":34,"character":17},"member":"None"},"styles":["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"]}]}],"members":{"ariaLabelledBy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"backdrop":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"centered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"keyboard":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"scrollable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"windowClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"dismissEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":49,"character":3},"arguments":["dismiss"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":51,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":51,"character":22}]}],null],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":51,"character":83,"context":{"typeName":"HTMLElement"},"module":"./modal/modal-window"}]}]}],"backdropClick":[{"__symbolic":"method"}],"escKey":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵy":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":22,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":33,"character":77},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":33,"character":84}]}],null,null],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":33,"character":31},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":33,"character":66},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"ɵz"},{"__symbolic":"reference","module":"@angular/core","name":"RendererFactory2","line":34,"character":63}]}],"open":[{"__symbolic":"method"}],"dismissAll":[{"__symbolic":"method"}],"hasOpenModals":[{"__symbolic":"method"}],"_attachBackdrop":[{"__symbolic":"method"}],"_attachWindowComponent":[{"__symbolic":"method"}],"_applyWindowOptions":[{"__symbolic":"method"}],"_applyBackdropOptions":[{"__symbolic":"method"}],"_getContentRef":[{"__symbolic":"method"}],"_createFromTemplateRef":[{"__symbolic":"method"}],"_createFromString":[{"__symbolic":"method"}],"_createFromComponent":[{"__symbolic":"method"}],"_setAriaHidden":[{"__symbolic":"method"}],"_revertAriaHidden":[{"__symbolic":"method"}],"_registerModalRef":[{"__symbolic":"method"}],"_registerWindowCmpt":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵz":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":19,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":21,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":21,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"compensate":[{"__symbolic":"method"}],"_adjustBody":[{"__symbolic":"method"}],"_isPresent":[{"__symbolic":"method"}],"_getWidth":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵba":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":8,"character":35},"arguments":["live announcer delay",{"providedIn":"root","factory":{"__symbolic":"reference","name":"ɵbb"}}]},"ɵbb":{"__symbolic":"function","parameters":[],"value":100},"ɵbc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":35,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":37,"character":22}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":57},"arguments":[{"__symbolic":"reference","name":"ɵba"}]}]],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"any"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"say":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵbd":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"NgbCalendar"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"getDaysPerMonth":[{"__symbolic":"method"}],"fromGregorian":[{"__symbolic":"method"}],"toGregorian":[{"__symbolic":"method"}],"getDaysPerWeek":[{"__symbolic":"method"}],"getMonths":[{"__symbolic":"method"}],"getWeeksPerMonth":[{"__symbolic":"method"}],"getNext":[{"__symbolic":"method"}],"getPrev":[{"__symbolic":"method"}],"getWeekday":[{"__symbolic":"method"}],"getWeekNumber":[{"__symbolic":"method"}],"getToday":[{"__symbolic":"method"}],"isValid":[{"__symbolic":"method"}],"_setDay":[{"__symbolic":"method"}],"_setMonth":[{"__symbolic":"method"}],"_setYear":[{"__symbolic":"method"}]}},"ɵbe":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@angular/core","name":"ViewRef","line":12,"character":52},{"__symbolic":"reference","name":"ComponentRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}}},"origins":{"NgbModule":"./index","NgbAccordion":"./accordion/accordion","NgbAccordionConfig":"./accordion/accordion-config","NgbAccordionModule":"./accordion/accordion.module","NgbPanel":"./accordion/accordion","NgbPanelChangeEvent":"./accordion/accordion","NgbPanelContent":"./accordion/accordion","NgbPanelHeader":"./accordion/accordion","NgbPanelHeaderContext":"./accordion/accordion","NgbPanelTitle":"./accordion/accordion","NgbPanelToggle":"./accordion/accordion","SbCard":"./card/card","SbCardConfig":"./card/card-config","SbCardModule":"./card/card.module","NgbAlert":"./alert/alert","NgbAlertConfig":"./alert/alert-config","NgbAlertModule":"./alert/alert.module","NgbButtonLabel":"./buttons/label","NgbButtonsModule":"./buttons/buttons.module","NgbCheckBox":"./buttons/checkbox","NgbRadio":"./buttons/radio","NgbRadioGroup":"./buttons/radio","ɵa":"./carousel/carousel","NgbCarousel":"./carousel/carousel","NgbCarouselConfig":"./carousel/carousel-config","NgbCarouselModule":"./carousel/carousel.module","NgbSlide":"./carousel/carousel","NgbSlideEvent":"./carousel/carousel","NgbSlideEventDirection":"./carousel/carousel","NgbSlideEventSource":"./carousel/carousel","NgbCollapse":"./collapse/collapse","NgbCollapseModule":"./collapse/collapse.module","ɵb":"./datepicker/ngb-calendar","ɵc":"./datepicker/datepicker-month-view","ɵd":"./datepicker/datepicker-day-view","ɵe":"./datepicker/datepicker-navigation","ɵf":"./datepicker/datepicker-navigation-select","ɵg":"./datepicker/datepicker-i18n","ɵh":"./datepicker/datepicker-i18n","ɵi":"./datepicker/adapters/ngb-date-adapter","ɵj":"./datepicker/adapters/ngb-date-adapter","ɵk":"./datepicker/ngb-date-parser-formatter","ɵl":"./datepicker/ngb-date-parser-formatter","NgbCalendar":"./datepicker/ngb-calendar","NgbCalendarGregorian":"./datepicker/ngb-calendar","NgbCalendarHebrew":"./datepicker/hebrew/ngb-calendar-hebrew","NgbCalendarIslamicCivil":"./datepicker/hijri/ngb-calendar-islamic-civil","NgbCalendarIslamicUmalqura":"./datepicker/hijri/ngb-calendar-islamic-umalqura","NgbCalendarPersian":"./datepicker/jalali/ngb-calendar-persian","NgbDate":"./datepicker/ngb-date","NgbDateAdapter":"./datepicker/adapters/ngb-date-adapter","NgbDateNativeAdapter":"./datepicker/adapters/ngb-date-native-adapter","NgbDateNativeUTCAdapter":"./datepicker/adapters/ngb-date-native-utc-adapter","NgbDateParserFormatter":"./datepicker/ngb-date-parser-formatter","NgbDatepicker":"./datepicker/datepicker","NgbDatepickerConfig":"./datepicker/datepicker-config","NgbDatepickerI18n":"./datepicker/datepicker-i18n","NgbDatepickerI18nHebrew":"./datepicker/hebrew/datepicker-i18n-hebrew","NgbDatepickerModule":"./datepicker/datepicker.module","NgbDatepickerNavigateEvent":"./datepicker/datepicker","NgbDateStruct":"./datepicker/ngb-date-struct","NgbInputDatepicker":"./datepicker/datepicker-input","NgbPeriod":"./datepicker/ngb-calendar","ɵm":"./dropdown/dropdown","NgbDropdown":"./dropdown/dropdown","NgbDropdownAnchor":"./dropdown/dropdown","NgbDropdownConfig":"./dropdown/dropdown-config","NgbDropdownItem":"./dropdown/dropdown","NgbDropdownMenu":"./dropdown/dropdown","NgbDropdownModule":"./dropdown/dropdown.module","NgbDropdownToggle":"./dropdown/dropdown","ModalDismissReasons":"./modal/modal-dismiss-reasons","NgbActiveModal":"./modal/modal-ref","NgbModal":"./modal/modal","NgbModalConfig":"./modal/modal-config","NgbModalModule":"./modal/modal.module","NgbModalOptions":"./modal/modal-config","NgbModalRef":"./modal/modal-ref","NgbPagination":"./pagination/pagination","NgbPaginationConfig":"./pagination/pagination-config","NgbPaginationEllipsis":"./pagination/pagination","NgbPaginationFirst":"./pagination/pagination","NgbPaginationLast":"./pagination/pagination","NgbPaginationModule":"./pagination/pagination.module","NgbPaginationNext":"./pagination/pagination","NgbPaginationNumber":"./pagination/pagination","NgbPaginationPrevious":"./pagination/pagination","ɵn":"./popover/popover","NgbPopover":"./popover/popover","NgbPopoverConfig":"./popover/popover-config","NgbPopoverModule":"./popover/popover.module","NgbProgressbar":"./progressbar/progressbar","NgbProgressbarConfig":"./progressbar/progressbar-config","NgbProgressbarModule":"./progressbar/progressbar.module","NgbRating":"./rating/rating","NgbRatingConfig":"./rating/rating-config","NgbRatingModule":"./rating/rating.module","NgbTab":"./tabset/tabset","NgbTabChangeEvent":"./tabset/tabset","NgbTabContent":"./tabset/tabset","NgbTabset":"./tabset/tabset","NgbTabsetConfig":"./tabset/tabset-config","NgbTabsetModule":"./tabset/tabset.module","NgbTabTitle":"./tabset/tabset","ɵo":"./timepicker/ngb-time-adapter","ɵp":"./timepicker/ngb-time-adapter","ɵq":"./timepicker/timepicker-i18n","ɵr":"./timepicker/timepicker-i18n","NgbTimeAdapter":"./timepicker/ngb-time-adapter","NgbTimepickerI18n":"./timepicker/timepicker-i18n","NgbTimepicker":"./timepicker/timepicker","NgbTimepickerConfig":"./timepicker/timepicker-config","NgbTimepickerModule":"./timepicker/timepicker.module","NgbTimeStruct":"./timepicker/ngb-time-struct","NgbToast":"./toast/toast","NgbToastConfig":"./toast/toast-config","NgbToastHeader":"./toast/toast","NgbToastModule":"./toast/toast.module","ɵs":"./tooltip/tooltip","NgbTooltip":"./tooltip/tooltip","NgbTooltipConfig":"./tooltip/tooltip-config","NgbTooltipModule":"./tooltip/tooltip.module","ɵt":"./typeahead/typeahead-window","NgbHighlight":"./typeahead/highlight","NgbTypeahead":"./typeahead/typeahead","NgbTypeaheadConfig":"./typeahead/typeahead-config","NgbTypeaheadModule":"./typeahead/typeahead.module","NgbTypeaheadSelectItemEvent":"./typeahead/typeahead","Placement":"./util/positioning","ɵu":"./datepicker/datepicker-service","ɵv":"./datepicker/datepicker-keymap-service","ɵw":"./modal/modal-backdrop","ɵx":"./modal/modal-window","ɵy":"./modal/modal-stack","ɵz":"./util/scrollbar","ɵba":"./util/accessibility/live","ɵbb":"./util/accessibility/live","ɵbc":"./util/accessibility/live","ɵbd":"./datepicker/hijri/ngb-calendar-hijri","ɵbe":"./util/popup"},"importAs":"@sunbird-ed/sunbird-ui-components"} \ No newline at end of file diff --git a/dist/ng-bootstrap/package.json b/dist/ng-bootstrap/package.json deleted file mode 100644 index 4c12d1e..0000000 --- a/dist/ng-bootstrap/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@sunbird-ed/sunbird-ui-components", - "version": "1.1.0", - "description": "Sunbird UI Components", - "keywords": [ - "angular", - "bootstrap", - "components", - "accordion", - "alert", - "buttons", - "carousel", - "collapse", - "datepicker", - "dropdown", - "modal", - "pagination", - "popover", - "progressbar", - "rating", - "table", - "tabset", - "timepicker", - "tooltip", - "typeahead" - ], - "author": "https://github.com/Sunbird-Ed/sunbird-ui-components/graphs/contributors", - "repository": { - "type": "git", - "url": "git+https://github.com/Sunbird-Ed/sunbird-ui-components.git" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/Sunbird-Ed/sunbird-ui-components/issues" - }, - "homepage": "https://github.com/Sunbird-Ed/sunbird-ui-components#readme", - "peerDependencies": { - "@angular/common": "^8.0.0", - "@angular/core": "^8.0.0", - "@angular/forms": "^8.0.0", - "rxjs": "^6.4.0" - }, - "main": "bundles/ng-bootstrap.umd.js", - "module": "fesm5/ng-bootstrap.js", - "es2015": "fesm2015/ng-bootstrap.js", - "esm5": "esm5/ng-bootstrap.js", - "esm2015": "esm2015/ng-bootstrap.js", - "fesm5": "fesm5/ng-bootstrap.js", - "fesm2015": "fesm2015/ng-bootstrap.js", - "typings": "ng-bootstrap.d.ts", - "metadata": "ng-bootstrap.metadata.json", - "sideEffects": false, - "dependencies": { - "tslib": "^1.9.0" - } -} diff --git a/dist/ng-bootstrap/pagination/pagination-config.d.ts b/dist/ng-bootstrap/pagination/pagination-config.d.ts deleted file mode 100644 index 8a4c9f7..0000000 --- a/dist/ng-bootstrap/pagination/pagination-config.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the paginations used in the application. - */ -export declare class NgbPaginationConfig { - disabled: boolean; - boundaryLinks: boolean; - directionLinks: boolean; - ellipses: boolean; - maxSize: number; - pageSize: number; - rotate: boolean; - size: 'sm' | 'lg'; -} diff --git a/dist/ng-bootstrap/pagination/pagination.d.ts b/dist/ng-bootstrap/pagination/pagination.d.ts deleted file mode 100644 index 62dc638..0000000 --- a/dist/ng-bootstrap/pagination/pagination.d.ts +++ /dev/null @@ -1,189 +0,0 @@ -import { EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core'; -import { NgbPaginationConfig } from './pagination-config'; -/** - * A context for the - * * `NgbPaginationFirst` - * * `NgbPaginationPrevious` - * * `NgbPaginationNext` - * * `NgbPaginationLast` - * * `NgbPaginationEllipsis` - * - * link templates in case you want to override one. - * - * @since 4.1.0 - */ -export interface NgbPaginationLinkContext { - /** - * The currently selected page number - */ - currentPage: number; - /** - * If `true`, the current link is disabled - */ - disabled: boolean; -} -/** - * A context for the `NgbPaginationNumber` link template in case you want to override one. - * - * Extends `NgbPaginationLinkContext`. - * - * @since 4.1.0 - */ -export interface NgbPaginationNumberContext extends NgbPaginationLinkContext { - /** - * The page number, displayed by the current page link. - */ - $implicit: number; -} -/** - * A directive to match the 'ellipsis' link template - * - * @since 4.1.0 - */ -export declare class NgbPaginationEllipsis { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A directive to match the 'first' link template - * - * @since 4.1.0 - */ -export declare class NgbPaginationFirst { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A directive to match the 'last' link template - * - * @since 4.1.0 - */ -export declare class NgbPaginationLast { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A directive to match the 'next' link template - * - * @since 4.1.0 - */ -export declare class NgbPaginationNext { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A directive to match the page 'number' link template - * - * @since 4.1.0 - */ -export declare class NgbPaginationNumber { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A directive to match the 'previous' link template - * - * @since 4.1.0 - */ -export declare class NgbPaginationPrevious { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A component that displays page numbers and allows to customize them in several ways. - */ -export declare class NgbPagination implements OnChanges { - pageCount: number; - pages: number[]; - tplEllipsis: NgbPaginationEllipsis; - tplFirst: NgbPaginationFirst; - tplLast: NgbPaginationLast; - tplNext: NgbPaginationNext; - tplNumber: NgbPaginationNumber; - tplPrevious: NgbPaginationPrevious; - /** - * If `true`, pagination links will be disabled. - */ - disabled: boolean; - /** - * If `true`, the "First" and "Last" page links are shown. - */ - boundaryLinks: boolean; - /** - * If `true`, the "Next" and "Previous" page links are shown. - */ - directionLinks: boolean; - /** - * If `true`, the ellipsis symbols and first/last page numbers will be shown when `maxSize` > number of pages. - */ - ellipses: boolean; - /** - * Whether to rotate pages when `maxSize` > number of pages. - * - * The current page always stays in the middle if `true`. - */ - rotate: boolean; - /** - * The number of items in your paginated collection. - * - * Note, that this is not the number of pages. Page numbers are calculated dynamically based on - * `collectionSize` and `pageSize`. Ex. if you have 100 items in your collection and displaying 20 items per page, - * you'll end up with 5 pages. - */ - collectionSize: number; - /** - * The maximum number of pages to display. - */ - maxSize: number; - /** - * The current page. - * - * Page numbers start with `1`. - */ - page: number; - /** - * The number of items per page. - */ - pageSize: number; - /** - * An event fired when the page is changed. Will fire only if collection size is set and all values are valid. - * - * Event payload is the number of the newly selected page. - * - * Page numbers start with `1`. - */ - pageChange: EventEmitter; - /** - * The pagination display size. - * - * Bootstrap currently supports small and large sizes. - */ - size: 'sm' | 'lg'; - constructor(config: NgbPaginationConfig); - hasPrevious(): boolean; - hasNext(): boolean; - nextDisabled(): boolean; - previousDisabled(): boolean; - selectPage(pageNumber: number): void; - ngOnChanges(changes: SimpleChanges): void; - isEllipsis(pageNumber: any): boolean; - /** - * Appends ellipses and first/last page number to the displayed pages - */ - private _applyEllipses; - /** - * Rotates page numbers based on maxSize items visible. - * Currently selected page stays in the middle: - * - * Ex. for selected page = 6: - * [5,*6*,7] for maxSize = 3 - * [4,5,*6*,7] for maxSize = 4 - */ - private _applyRotation; - /** - * Paginates page numbers based on maxSize items per page. - */ - private _applyPagination; - private _setPageInRange; - private _updatePages; -} diff --git a/dist/ng-bootstrap/pagination/pagination.module.d.ts b/dist/ng-bootstrap/pagination/pagination.module.d.ts deleted file mode 100644 index c34a299..0000000 --- a/dist/ng-bootstrap/pagination/pagination.module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious } from './pagination'; -export { NgbPaginationConfig } from './pagination-config'; -export declare class NgbPaginationModule { -} diff --git a/dist/ng-bootstrap/popover/popover-config.d.ts b/dist/ng-bootstrap/popover/popover-config.d.ts deleted file mode 100644 index c7bfd7a..0000000 --- a/dist/ng-bootstrap/popover/popover-config.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { PlacementArray } from '../util/positioning'; -/** - * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the popovers used in the application. - */ -export declare class NgbPopoverConfig { - autoClose: boolean | 'inside' | 'outside'; - placement: PlacementArray; - triggers: string; - container: string; - disablePopover: boolean; - popoverClass: string; - openDelay: number; - closeDelay: number; -} diff --git a/dist/ng-bootstrap/popover/popover.d.ts b/dist/ng-bootstrap/popover/popover.d.ts deleted file mode 100644 index 2c3d0fb..0000000 --- a/dist/ng-bootstrap/popover/popover.d.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { EventEmitter, OnInit, OnDestroy, OnChanges, Injector, Renderer2, ElementRef, TemplateRef, ViewContainerRef, ComponentFactoryResolver, NgZone, SimpleChanges, ChangeDetectorRef, ApplicationRef } from '@angular/core'; -import { PlacementArray } from '../util/positioning'; -import { NgbPopoverConfig } from './popover-config'; -export declare class NgbPopoverWindow { - title: undefined | string | TemplateRef; - id: string; - popoverClass: string; - context: any; - isTitleTemplate(): boolean; -} -/** - * A lightweight and extensible directive for fancy popover creation. - */ -export declare class NgbPopover implements OnInit, OnDestroy, OnChanges { - private _elementRef; - private _renderer; - private _ngZone; - private _document; - private _changeDetector; - private _applicationRef; - /** - * Indicates whether the popover should be closed on `Escape` key and inside/outside clicks: - * - * * `true` - closes on both outside and inside clicks as well as `Escape` presses - * * `false` - disables the autoClose feature (NB: triggers still apply) - * * `"inside"` - closes on inside clicks as well as Escape presses - * * `"outside"` - closes on outside clicks (sometimes also achievable through triggers) - * as well as `Escape` presses - * - * @since 3.0.0 - */ - autoClose: boolean | 'inside' | 'outside'; - /** - * The string content or a `TemplateRef` for the content to be displayed in the popover. - * - * If the title and the content are empty, the popover won't open. - */ - ngbPopover: string | TemplateRef; - /** - * The title of the popover. - * - * If the title and the content are empty, the popover won't open. - */ - popoverTitle: string | TemplateRef; - /** - * The preferred placement of the popover. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"auto"` (same as the sequence above). - * - * Please see the [positioning overview](#/positioning) for more details. - */ - placement: PlacementArray; - /** - * Specifies events that should trigger the tooltip. - * - * Supports a space separated list of event names. - * For more details see the [triggers demo](#/components/popover/examples#triggers). - */ - triggers: string; - /** - * A selector specifying the element the popover should be appended to. - * - * Currently only supports `body`. - */ - container: string; - /** - * If `true`, popover is disabled and won't be displayed. - * - * @since 1.1.0 - */ - disablePopover: boolean; - /** - * An optional class applied to the popover window element. - * - * @since 2.2.0 - */ - popoverClass: string; - /** - * The opening delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * @since 4.1.0 - */ - openDelay: number; - /** - * The closing delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * @since 4.1.0 - */ - closeDelay: number; - /** - * An event emitted when the popover is shown. Contains no payload. - */ - shown: EventEmitter; - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - hidden: EventEmitter; - private _ngbPopoverWindowId; - private _popupService; - private _windowRef; - private _unregisterListenersFn; - private _zoneSubscription; - private _isDisabled; - constructor(_elementRef: ElementRef, _renderer: Renderer2, injector: Injector, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: NgbPopoverConfig, _ngZone: NgZone, _document: any, _changeDetector: ChangeDetectorRef, _applicationRef: ApplicationRef); - /** - * Opens the popover. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the popover template when it is created. - */ - open(context?: any): void; - /** - * Closes the popover. - * - * This is considered to be a "manual" triggering of the popover. - */ - close(): void; - /** - * Toggles the popover. - * - * This is considered to be a "manual" triggering of the popover. - */ - toggle(): void; - /** - * Returns `true`, if the popover is currently shown. - */ - isOpen(): boolean; - ngOnInit(): void; - ngOnChanges(changes: SimpleChanges): void; - ngOnDestroy(): void; -} diff --git a/dist/ng-bootstrap/popover/popover.module.d.ts b/dist/ng-bootstrap/popover/popover.module.d.ts deleted file mode 100644 index 5877109..0000000 --- a/dist/ng-bootstrap/popover/popover.module.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { NgbPopover } from './popover'; -export { NgbPopoverConfig } from './popover-config'; -export { Placement } from '../util/positioning'; -export declare class NgbPopoverModule { -} diff --git a/dist/ng-bootstrap/progressbar/progressbar-config.d.ts b/dist/ng-bootstrap/progressbar/progressbar-config.d.ts deleted file mode 100644 index 48ec316..0000000 --- a/dist/ng-bootstrap/progressbar/progressbar-config.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the progress bars used in the application. - */ -export declare class NgbProgressbarConfig { - max: number; - animated: boolean; - striped: boolean; - type: string; - showValue: boolean; - height: string; -} diff --git a/dist/ng-bootstrap/progressbar/progressbar.d.ts b/dist/ng-bootstrap/progressbar/progressbar.d.ts deleted file mode 100644 index cf1db55..0000000 --- a/dist/ng-bootstrap/progressbar/progressbar.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { NgbProgressbarConfig } from './progressbar-config'; -/** - * A directive that provides feedback on the progress of a workflow or an action. - */ -export declare class NgbProgressbar { - /** - * The maximal value to be displayed in the progressbar. - */ - max: number; - /** - * If `true`, the stripes on the progressbar are animated. - * - * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`. - */ - animated: boolean; - /** - * If `true`, the progress bars will be displayed as striped. - */ - striped: boolean; - /** - * If `true`, the current percentage will be shown in the `xx%` format. - */ - showValue: boolean; - /** - * The type of the progress bar. - * - * Currently Bootstrap supports `"success"`, `"info"`, `"warning"` or `"danger"`. - */ - type: string; - /** - * The current value for the progress bar. - * - * Should be in the `[0, max]` range. - */ - value: number; - /** - * THe height of the progress bar. - * - * Accepts any valid CSS height values, ex. `"2rem"` - */ - height: string; - constructor(config: NgbProgressbarConfig); - getValue(): number; - getPercentValue(): number; -} diff --git a/dist/ng-bootstrap/progressbar/progressbar.module.d.ts b/dist/ng-bootstrap/progressbar/progressbar.module.d.ts deleted file mode 100644 index 25082e0..0000000 --- a/dist/ng-bootstrap/progressbar/progressbar.module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { NgbProgressbar } from './progressbar'; -export { NgbProgressbarConfig } from './progressbar-config'; -export declare class NgbProgressbarModule { -} diff --git a/dist/ng-bootstrap/rating/rating-config.d.ts b/dist/ng-bootstrap/rating/rating-config.d.ts deleted file mode 100644 index a569880..0000000 --- a/dist/ng-bootstrap/rating/rating-config.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the ratings used in the application. - */ -export declare class NgbRatingConfig { - max: number; - readonly: boolean; - resettable: boolean; -} diff --git a/dist/ng-bootstrap/rating/rating.d.ts b/dist/ng-bootstrap/rating/rating.d.ts deleted file mode 100644 index 9ac9a34..0000000 --- a/dist/ng-bootstrap/rating/rating.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { EventEmitter, OnInit, TemplateRef, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core'; -import { NgbRatingConfig } from './rating-config'; -import { ControlValueAccessor } from '@angular/forms'; -/** - * The context for the custom star display template defined in the `starTemplate`. - */ -export interface StarTemplateContext { - /** - * The star fill percentage, an integer in the `[0, 100]` range. - */ - fill: number; - /** - * Index of the star, starts with `0`. - */ - index: number; -} -/** - * A directive that helps visualising and interacting with a star rating bar. - */ -export declare class NgbRating implements ControlValueAccessor, OnInit, OnChanges { - private _changeDetectorRef; - contexts: StarTemplateContext[]; - disabled: boolean; - nextRate: number; - /** - * The maximal rating that can be given. - */ - max: number; - /** - * The current rating. Could be a decimal value like `3.75`. - */ - rate: number; - /** - * If `true`, the rating can't be changed. - */ - readonly: boolean; - /** - * If `true`, the rating can be reset to `0` by mouse clicking currently set rating. - */ - resettable: boolean; - /** - * The template to override the way each star is displayed. - * - * Alternatively put an `` as the only child of your `` element - */ - starTemplate: TemplateRef; - starTemplateFromContent: TemplateRef; - /** - * An event emitted when the user is hovering over a given rating. - * - * Event payload equals to the rating being hovered over. - */ - hover: EventEmitter; - /** - * An event emitted when the user stops hovering over a given rating. - * - * Event payload equals to the rating of the last item being hovered over. - */ - leave: EventEmitter; - /** - * An event emitted when the user selects a new rating. - * - * Event payload equals to the newly selected rating. - */ - rateChange: EventEmitter; - onChange: (_: any) => void; - onTouched: () => void; - constructor(config: NgbRatingConfig, _changeDetectorRef: ChangeDetectorRef); - ariaValueText(): string; - enter(value: number): void; - handleBlur(): void; - handleClick(value: number): void; - handleKeyDown(event: KeyboardEvent): void; - ngOnChanges(changes: SimpleChanges): void; - ngOnInit(): void; - registerOnChange(fn: (value: any) => any): void; - registerOnTouched(fn: () => any): void; - reset(): void; - setDisabledState(isDisabled: boolean): void; - update(value: number, internalChange?: boolean): void; - writeValue(value: any): void; - private _getFillValue; - private _updateState; -} diff --git a/dist/ng-bootstrap/rating/rating.module.d.ts b/dist/ng-bootstrap/rating/rating.module.d.ts deleted file mode 100644 index 39d6254..0000000 --- a/dist/ng-bootstrap/rating/rating.module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { NgbRating } from './rating'; -export { NgbRatingConfig } from './rating-config'; -export declare class NgbRatingModule { -} diff --git a/dist/ng-bootstrap/tabset/tabset-config.d.ts b/dist/ng-bootstrap/tabset/tabset-config.d.ts deleted file mode 100644 index aa02baa..0000000 --- a/dist/ng-bootstrap/tabset/tabset-config.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * A configuration service for the [`NgbTabset`](#/components/tabset/api#NgbTabset) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tabsets used in the application. - */ -export declare class NgbTabsetConfig { - justify: 'start' | 'center' | 'end' | 'fill' | 'justified'; - orientation: 'horizontal' | 'vertical'; - type: 'tabs' | 'pills'; -} diff --git a/dist/ng-bootstrap/tabset/tabset.d.ts b/dist/ng-bootstrap/tabset/tabset.d.ts deleted file mode 100644 index 48841cf..0000000 --- a/dist/ng-bootstrap/tabset/tabset.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { QueryList, TemplateRef, AfterContentChecked, EventEmitter } from '@angular/core'; -import { NgbTabsetConfig } from './tabset-config'; -/** - * A directive to wrap tab titles that need to contain HTML markup or other directives. - * - * Alternatively you could use the `NgbTab.title` input for string titles. - */ -export declare class NgbTabTitle { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A directive to wrap content to be displayed in a tab. - */ -export declare class NgbTabContent { - templateRef: TemplateRef; - constructor(templateRef: TemplateRef); -} -/** - * A directive representing an individual tab. - */ -export declare class NgbTab implements AfterContentChecked { - /** - * The tab identifier. - * - * Must be unique for the entire document for proper accessibility support. - */ - id: string; - /** - * The tab title. - * - * Use the [`NgbTabTitle`](#/components/tabset/api#NgbTabTitle) directive for non-string titles. - */ - title: string; - /** - * If `true`, the current tab is disabled and can't be toggled. - */ - disabled: boolean; - titleTpl: NgbTabTitle | null; - contentTpl: NgbTabContent | null; - titleTpls: QueryList; - contentTpls: QueryList; - ngAfterContentChecked(): void; -} -/** - * The payload of the change event fired right before the tab change. - */ -export interface NgbTabChangeEvent { - /** - * The id of the currently active tab. - */ - activeId: string; - /** - * The id of the newly selected tab. - */ - nextId: string; - /** - * Calling this function will prevent tab switching. - */ - preventDefault: () => void; -} -/** - * A component that makes it easy to create tabbed interface. - */ -export declare class NgbTabset implements AfterContentChecked { - justifyClass: string; - tabs: QueryList; - /** - * The identifier of the tab that should be opened **initially**. - * - * For subsequent tab switches use the `.select()` method and the `(tabChange)` event. - */ - activeId: string; - /** - * If `true`, non-visible tabs content will be removed from DOM. Otherwise it will just be hidden. - */ - destroyOnHide: boolean; - /** - * The horizontal alignment of the tabs with flexbox utilities. - */ - justify: 'start' | 'center' | 'end' | 'fill' | 'justified'; - /** - * The orientation of the tabset. - */ - orientation: 'horizontal' | 'vertical'; - /** - * Type of navigation to be used for tabs. - * - * Currently Bootstrap supports only `"tabs"` and `"pills"`. - * - * Since `3.0.0` can also be an arbitrary string (ex. for custom themes). - */ - type: 'tabs' | 'pills' | string; - /** - * A tab change event emitted right before the tab change happens. - * - * See [`NgbTabChangeEvent`](#/components/tabset/api#NgbTabChangeEvent) for payload details. - */ - tabChange: EventEmitter; - constructor(config: NgbTabsetConfig); - /** - * Selects the tab with the given id and shows its associated content panel. - * - * Any other tab that was previously selected becomes unselected and its associated pane is removed from DOM or - * hidden depending on the `destroyOnHide` value. - */ - select(tabId: string): void; - ngAfterContentChecked(): void; - private _getTabById; -} diff --git a/dist/ng-bootstrap/tabset/tabset.module.d.ts b/dist/ng-bootstrap/tabset/tabset.module.d.ts deleted file mode 100644 index 6b7756d..0000000 --- a/dist/ng-bootstrap/tabset/tabset.module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { NgbTabset, NgbTab, NgbTabContent, NgbTabTitle, NgbTabChangeEvent } from './tabset'; -export { NgbTabsetConfig } from './tabset-config'; -export declare class NgbTabsetModule { -} diff --git a/dist/ng-bootstrap/test/typings/custom-jasmine.d.ts b/dist/ng-bootstrap/test/typings/custom-jasmine.d.ts deleted file mode 100644 index e0da4c8..0000000 --- a/dist/ng-bootstrap/test/typings/custom-jasmine.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -declare module jasmine { - interface Matchers { - toHaveToast(content?: string | string[]): boolean; - toHaveCssClass(expected: any): boolean; - toHaveModal(content?: string | string[], selector?: string): boolean; - toHaveBackdrop(): boolean; - toBeShown(): boolean; - } -} diff --git a/dist/ng-bootstrap/timepicker/ngb-time-adapter.d.ts b/dist/ng-bootstrap/timepicker/ngb-time-adapter.d.ts deleted file mode 100644 index f0257ca..0000000 --- a/dist/ng-bootstrap/timepicker/ngb-time-adapter.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { NgbTimeStruct } from './ngb-time-struct'; -export declare function NGB_DATEPICKER_TIME_ADAPTER_FACTORY(): NgbTimeStructAdapter; -/** - * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and - * any provided user time model `T`, ex. a string, a native date, etc. - * - * The adapter is used **only** for conversion when binding timepicker to a form control, - * ex. `[(ngModel)]="userTimeModel"`. Here `userTimeModel` can be of any type. - * - * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model. - * - * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example. - * - * @since 2.2.0 - */ -export declare abstract class NgbTimeAdapter { - /** - * Converts a user-model time of type `T` to an `NgbTimeStruct` for internal use. - */ - abstract fromModel(value: T): NgbTimeStruct; - /** - * Converts an internal `NgbTimeStruct` time to a user-model time of type `T`. - */ - abstract toModel(time: NgbTimeStruct): T; -} -export declare class NgbTimeStructAdapter extends NgbTimeAdapter { - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - */ - fromModel(time: NgbTimeStruct): NgbTimeStruct; - /** - * Converts a NgbTimeStruct value into NgbTimeStruct value - */ - toModel(time: NgbTimeStruct): NgbTimeStruct; -} diff --git a/dist/ng-bootstrap/timepicker/ngb-time-struct.d.ts b/dist/ng-bootstrap/timepicker/ngb-time-struct.d.ts deleted file mode 100644 index f317d2a..0000000 --- a/dist/ng-bootstrap/timepicker/ngb-time-struct.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * An interface for the time model used by the timepicker. - */ -export interface NgbTimeStruct { - /** - * The hour in the `[0, 23]` range. - */ - hour: number; - /** - * The minute in the `[0, 59]` range. - */ - minute: number; - /** - * The second in the `[0, 59]` range. - */ - second: number; -} diff --git a/dist/ng-bootstrap/timepicker/ngb-time.d.ts b/dist/ng-bootstrap/timepicker/ngb-time.d.ts deleted file mode 100644 index 9755d16..0000000 --- a/dist/ng-bootstrap/timepicker/ngb-time.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare class NgbTime { - hour: number; - minute: number; - second: number; - constructor(hour?: number, minute?: number, second?: number); - changeHour(step?: number): void; - updateHour(hour: number): void; - changeMinute(step?: number): void; - updateMinute(minute: number): void; - changeSecond(step?: number): void; - updateSecond(second: number): void; - isValid(checkSecs?: boolean): boolean; - toString(): string; -} diff --git a/dist/ng-bootstrap/timepicker/timepicker-config.d.ts b/dist/ng-bootstrap/timepicker/timepicker-config.d.ts deleted file mode 100644 index 0b5a118..0000000 --- a/dist/ng-bootstrap/timepicker/timepicker-config.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the timepickers used in the application. - */ -export declare class NgbTimepickerConfig { - meridian: boolean; - spinners: boolean; - seconds: boolean; - hourStep: number; - minuteStep: number; - secondStep: number; - disabled: boolean; - readonlyInputs: boolean; - size: 'small' | 'medium' | 'large'; -} diff --git a/dist/ng-bootstrap/timepicker/timepicker-i18n.d.ts b/dist/ng-bootstrap/timepicker/timepicker-i18n.d.ts deleted file mode 100644 index 5bca6b6..0000000 --- a/dist/ng-bootstrap/timepicker/timepicker-i18n.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export declare function NGB_TIMEPICKER_I18N_FACTORY(locale: any): NgbTimepickerI18nDefault; -/** - * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component. - * The default implementation of this service honors the Angular locale, and uses the registered locale data, - * as explained in the Angular i18n guide. - */ -export declare abstract class NgbTimepickerI18n { - /** - * Returns the name for the period before midday. - */ - abstract getMorningPeriod(): string; - /** - * Returns the name for the period after midday. - */ - abstract getAfternoonPeriod(): string; -} -export declare class NgbTimepickerI18nDefault extends NgbTimepickerI18n { - private _periods; - constructor(locale: string); - getMorningPeriod(): string; - getAfternoonPeriod(): string; -} diff --git a/dist/ng-bootstrap/timepicker/timepicker.d.ts b/dist/ng-bootstrap/timepicker/timepicker.d.ts deleted file mode 100644 index 5369543..0000000 --- a/dist/ng-bootstrap/timepicker/timepicker.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core'; -import { ControlValueAccessor } from '@angular/forms'; -import { NgbTime } from './ngb-time'; -import { NgbTimepickerConfig } from './timepicker-config'; -import { NgbTimeAdapter } from './ngb-time-adapter'; -import { NgbTimepickerI18n } from './timepicker-i18n'; -/** - * A directive that helps with wth picking hours, minutes and seconds. - */ -export declare class NgbTimepicker implements ControlValueAccessor, OnChanges { - private readonly _config; - private _ngbTimeAdapter; - private _cd; - i18n: NgbTimepickerI18n; - disabled: boolean; - model: NgbTime; - private _hourStep; - private _minuteStep; - private _secondStep; - /** - * Whether to display 12H or 24H mode. - */ - meridian: boolean; - /** - * If `true`, the spinners above and below inputs are visible. - */ - spinners: boolean; - /** - * If `true`, it is possible to select seconds. - */ - seconds: boolean; - /** - * The number of hours to add/subtract when clicking hour spinners. - */ - hourStep: number; - /** - * The number of minutes to add/subtract when clicking minute spinners. - */ - minuteStep: number; - /** - * The number of seconds to add/subtract when clicking second spinners. - */ - secondStep: number; - /** - * If `true`, the timepicker is readonly and can't be changed. - */ - readonlyInputs: boolean; - /** - * The size of inputs and buttons. - */ - size: 'small' | 'medium' | 'large'; - constructor(_config: NgbTimepickerConfig, _ngbTimeAdapter: NgbTimeAdapter, _cd: ChangeDetectorRef, i18n: NgbTimepickerI18n); - onChange: (_: any) => void; - onTouched: () => void; - writeValue(value: any): void; - registerOnChange(fn: (value: any) => any): void; - registerOnTouched(fn: () => any): void; - setDisabledState(isDisabled: boolean): void; - changeHour(step: number): void; - changeMinute(step: number): void; - changeSecond(step: number): void; - updateHour(newVal: string): void; - updateMinute(newVal: string): void; - updateSecond(newVal: string): void; - toggleMeridian(): void; - formatHour(value: number): string; - formatMinSec(value: number): string; - readonly isSmallSize: boolean; - readonly isLargeSize: boolean; - ngOnChanges(changes: SimpleChanges): void; - private propagateModelChange; -} diff --git a/dist/ng-bootstrap/timepicker/timepicker.module.d.ts b/dist/ng-bootstrap/timepicker/timepicker.module.d.ts deleted file mode 100644 index a316569..0000000 --- a/dist/ng-bootstrap/timepicker/timepicker.module.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { NgbTimepicker } from './timepicker'; -export { NgbTimepickerConfig } from './timepicker-config'; -export { NgbTimeStruct } from './ngb-time-struct'; -export { NgbTimeAdapter } from './ngb-time-adapter'; -export { NgbTimepickerI18n } from './timepicker-i18n'; -export declare class NgbTimepickerModule { -} diff --git a/dist/ng-bootstrap/toast/toast-config.d.ts b/dist/ng-bootstrap/toast/toast-config.d.ts deleted file mode 100644 index ea480d1..0000000 --- a/dist/ng-bootstrap/toast/toast-config.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Interface used to type all toast config options. See `NgbToastConfig`. - * - * @since 5.0.0 - */ -export interface NgbToastOptions { - /** - * Specify if the toast component should emit the `hide()` output - * after a certain `delay` in ms. - */ - autohide?: boolean; - /** - * Delay in ms after which the `hide()` output should be emitted. - */ - delay?: number; - /** - * Type of aria-live attribute to be used. - * - * Could be one of these 2 values (as string): - * - `polite` (default) - * - `alert` - */ - ariaLive?: 'polite' | 'alert'; -} -/** - * Configuration service for the NgbToast component. You can inject this service, typically in your root component, - * and customize the values of its properties in order to provide default values for all the toasts used in the - * application. - * - * @since 5.0.0 - */ -export declare class NgbToastConfig implements NgbToastOptions { - autohide: boolean; - delay: number; - ariaLive: 'polite' | 'alert'; -} diff --git a/dist/ng-bootstrap/toast/toast.d.ts b/dist/ng-bootstrap/toast/toast.d.ts deleted file mode 100644 index b7c82cd..0000000 --- a/dist/ng-bootstrap/toast/toast.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { AfterContentInit, EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core'; -import { NgbToastConfig } from './toast-config'; -/** - * This directive allows the usage of HTML markup or other directives - * inside of the toast's header. - * - * @since 5.0.0 - */ -export declare class NgbToastHeader { -} -/** - * Toasts provide feedback messages as notifications to the user. - * Goal is to mimic the push notifications available both on mobile and desktop operating systems. - * - * @since 5.0.0 - */ -export declare class NgbToast implements AfterContentInit, OnChanges { - ariaLive: string; - private _timeoutID; - /** - * Delay after which the toast will hide (ms). - * default: `500` (ms) (inherited from NgbToastConfig) - */ - delay: number; - /** - * Auto hide the toast after a delay in ms. - * default: `true` (inherited from NgbToastConfig) - */ - autohide: boolean; - /** - * Text to be used as toast's header. - * Ignored if a ContentChild template is specified at the same time. - */ - header: string; - /** - * A template like `` can be - * used in the projected content to allow markup usage. - */ - contentHeaderTpl: TemplateRef | null; - /** - * An event fired immediately when toast's `hide()` method has been called. - * It can only occur in 2 different scenarios: - * - `autohide` timeout fires - * - user clicks on a closing cross (×) - * - * Additionally this output is purely informative. The toast won't disappear. It's up to the user to take care of - * that. - */ - hideOutput: EventEmitter; - constructor(ariaLive: string, config: NgbToastConfig); - ngAfterContentInit(): void; - ngOnChanges(changes: SimpleChanges): void; - hide(): void; - private _init; - private _clearTimeout; -} diff --git a/dist/ng-bootstrap/toast/toast.module.d.ts b/dist/ng-bootstrap/toast/toast.module.d.ts deleted file mode 100644 index 90e5d3a..0000000 --- a/dist/ng-bootstrap/toast/toast.module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { NgbToast, NgbToastHeader } from './toast'; -export { NgbToastConfig, NgbToastOptions } from './toast-config'; -export declare class NgbToastModule { -} diff --git a/dist/ng-bootstrap/tooltip/tooltip-config.d.ts b/dist/ng-bootstrap/tooltip/tooltip-config.d.ts deleted file mode 100644 index 3e68215..0000000 --- a/dist/ng-bootstrap/tooltip/tooltip-config.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { PlacementArray } from '../util/positioning'; -/** - * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the tooltips used in the application. - */ -export declare class NgbTooltipConfig { - autoClose: boolean | 'inside' | 'outside'; - placement: PlacementArray; - triggers: string; - container: string; - disableTooltip: boolean; - tooltipClass: string; - openDelay: number; - closeDelay: number; -} diff --git a/dist/ng-bootstrap/tooltip/tooltip.d.ts b/dist/ng-bootstrap/tooltip/tooltip.d.ts deleted file mode 100644 index 88ae2b7..0000000 --- a/dist/ng-bootstrap/tooltip/tooltip.d.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { EventEmitter, OnInit, OnDestroy, Injector, Renderer2, ElementRef, TemplateRef, ViewContainerRef, ComponentFactoryResolver, NgZone, ChangeDetectorRef, ApplicationRef } from '@angular/core'; -import { PlacementArray } from '../util/positioning'; -import { NgbTooltipConfig } from './tooltip-config'; -export declare class NgbTooltipWindow { - id: string; - tooltipClass: string; -} -/** - * A lightweight and extensible directive for fancy tooltip creation. - */ -export declare class NgbTooltip implements OnInit, OnDestroy { - private _elementRef; - private _renderer; - private _ngZone; - private _document; - private _changeDetector; - private _applicationRef; - /** - * Indicates whether the tooltip should be closed on `Escape` key and inside/outside clicks: - * - * * `true` - closes on both outside and inside clicks as well as `Escape` presses - * * `false` - disables the autoClose feature (NB: triggers still apply) - * * `"inside"` - closes on inside clicks as well as Escape presses - * * `"outside"` - closes on outside clicks (sometimes also achievable through triggers) - * as well as `Escape` presses - * - * @since 3.0.0 - */ - autoClose: boolean | 'inside' | 'outside'; - /** - * The preferred placement of the tooltip. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"auto"` (same as the sequence above). - * - * Please see the [positioning overview](#/positioning) for more details. - */ - placement: PlacementArray; - /** - * Specifies events that should trigger the tooltip. - * - * Supports a space separated list of event names. - * For more details see the [triggers demo](#/components/tooltip/examples#triggers). - */ - triggers: string; - /** - * A selector specifying the element the tooltip should be appended to. - * - * Currently only supports `"body"`. - */ - container: string; - /** - * If `true`, tooltip is disabled and won't be displayed. - * - * @since 1.1.0 - */ - disableTooltip: boolean; - /** - * An optional class applied to the tooltip window element. - * - * @since 3.2.0 - */ - tooltipClass: string; - /** - * The opening delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * @since 4.1.0 - */ - openDelay: number; - /** - * The closing delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. - * - * @since 4.1.0 - */ - closeDelay: number; - /** - * An event emitted when the tooltip is shown. Contains no payload. - */ - shown: EventEmitter<{}>; - /** - * An event emitted when the popover is hidden. Contains no payload. - */ - hidden: EventEmitter<{}>; - private _ngbTooltip; - private _ngbTooltipWindowId; - private _popupService; - private _windowRef; - private _unregisterListenersFn; - private _zoneSubscription; - constructor(_elementRef: ElementRef, _renderer: Renderer2, injector: Injector, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, config: NgbTooltipConfig, _ngZone: NgZone, _document: any, _changeDetector: ChangeDetectorRef, _applicationRef: ApplicationRef); - /** - * The string content or a `TemplateRef` for the content to be displayed in the tooltip. - * - * If the content if falsy, the tooltip won't open. - */ - ngbTooltip: string | TemplateRef; - /** - * Opens the tooltip. - * - * This is considered to be a "manual" triggering. - * The `context` is an optional value to be injected into the tooltip template when it is created. - */ - open(context?: any): void; - /** - * Closes the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - */ - close(): void; - /** - * Toggles the tooltip. - * - * This is considered to be a "manual" triggering of the tooltip. - */ - toggle(): void; - /** - * Returns `true`, if the popover is currently shown. - */ - isOpen(): boolean; - ngOnInit(): void; - ngOnDestroy(): void; -} diff --git a/dist/ng-bootstrap/tooltip/tooltip.module.d.ts b/dist/ng-bootstrap/tooltip/tooltip.module.d.ts deleted file mode 100644 index 4eb84ae..0000000 --- a/dist/ng-bootstrap/tooltip/tooltip.module.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { NgbTooltipConfig } from './tooltip-config'; -export { NgbTooltip } from './tooltip'; -export { Placement } from '../util/positioning'; -export declare class NgbTooltipModule { -} diff --git a/dist/ng-bootstrap/typeahead/highlight.d.ts b/dist/ng-bootstrap/typeahead/highlight.d.ts deleted file mode 100644 index 541ec20..0000000 --- a/dist/ng-bootstrap/typeahead/highlight.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { OnChanges, SimpleChanges } from '@angular/core'; -/** - * A component that helps with text highlighting. - * - * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify - * highlighting: - * - * Ex. `result="Alaska"` and `term="as"` will produce `Alaska`. - */ -export declare class NgbHighlight implements OnChanges { - parts: string[]; - /** - * The CSS class for `` elements wrapping the `term` inside the `result`. - */ - highlightClass: string; - /** - * The text highlighting is added to. - * - * If the `term` is found inside this text, it will be highlighted. - * If the `term` contains array then all the items from it will be highlighted inside the text. - */ - result: string; - /** - * The term or array of terms to be highlighted. - * Since version `v4.2.0` term could be a `string[]` - */ - term: string | string[]; - ngOnChanges(changes: SimpleChanges): void; -} diff --git a/dist/ng-bootstrap/typeahead/typeahead-config.d.ts b/dist/ng-bootstrap/typeahead/typeahead-config.d.ts deleted file mode 100644 index 04329b5..0000000 --- a/dist/ng-bootstrap/typeahead/typeahead-config.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { PlacementArray } from '../util/positioning'; -/** - * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component. - * - * You can inject this service, typically in your root component, and customize the values of its properties in - * order to provide default values for all the typeaheads used in the application. - */ -export declare class NgbTypeaheadConfig { - container: any; - editable: boolean; - focusFirst: boolean; - showHint: boolean; - placement: PlacementArray; -} diff --git a/dist/ng-bootstrap/typeahead/typeahead-window.d.ts b/dist/ng-bootstrap/typeahead/typeahead-window.d.ts deleted file mode 100644 index 778edb8..0000000 --- a/dist/ng-bootstrap/typeahead/typeahead-window.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { EventEmitter, TemplateRef, OnInit } from '@angular/core'; -import { toString } from '../util/util'; -/** - * The context for the typeahead result template in case you want to override the default one. - */ -export interface ResultTemplateContext { - /** - * Your typeahead result item. - */ - result: any; - /** - * Search term from the `` used to get current result. - */ - term: string; -} -export declare class NgbTypeaheadWindow implements OnInit { - activeIdx: number; - /** - * The id for the typeahead window. The id should be unique and the same - * as the associated typeahead's id. - */ - id: string; - /** - * Flag indicating if the first row should be active initially - */ - focusFirst: boolean; - /** - * Typeahead match results to be displayed - */ - results: any; - /** - * Search term used to get current results - */ - term: string; - /** - * A function used to format a given result before display. This function should return a formatted string without any - * HTML markup - */ - formatter: typeof toString; - /** - * A template to override a matching result default display - */ - resultTemplate: TemplateRef; - /** - * Event raised when user selects a particular result row - */ - selectEvent: EventEmitter<{}>; - activeChangeEvent: EventEmitter<{}>; - hasActive(): boolean; - getActive(): any; - markActive(activeIdx: number): void; - next(): void; - prev(): void; - resetActive(): void; - select(item: any): void; - ngOnInit(): void; - private _activeChanged; -} diff --git a/dist/ng-bootstrap/typeahead/typeahead.d.ts b/dist/ng-bootstrap/typeahead/typeahead.d.ts deleted file mode 100644 index f249165..0000000 --- a/dist/ng-bootstrap/typeahead/typeahead.d.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { ChangeDetectorRef, ComponentFactoryResolver, ElementRef, EventEmitter, Injector, NgZone, OnDestroy, OnInit, Renderer2, TemplateRef, ViewContainerRef, ApplicationRef } from '@angular/core'; -import { ControlValueAccessor } from '@angular/forms'; -import { Observable } from 'rxjs'; -import { Live } from '../util/accessibility/live'; -import { PlacementArray } from '../util/positioning'; -import { NgbTypeaheadConfig } from './typeahead-config'; -import { ResultTemplateContext } from './typeahead-window'; -/** - * An event emitted right before an item is selected from the result list. - */ -export interface NgbTypeaheadSelectItemEvent { - /** - * The item from the result list about to be selected. - */ - item: any; - /** - * Calling this function will prevent item selection from happening. - */ - preventDefault: () => void; -} -/** - * A directive providing a simple way of creating powerful typeaheads from any text input. - */ -export declare class NgbTypeahead implements ControlValueAccessor, OnInit, OnDestroy { - private _elementRef; - private _viewContainerRef; - private _renderer; - private _injector; - private _live; - private _document; - private _ngZone; - private _changeDetector; - private _applicationRef; - private _popupService; - private _subscription; - private _closed$; - private _inputValueBackup; - private _valueChanges; - private _resubscribeTypeahead; - private _windowRef; - private _zoneSubscription; - /** - * The value for the `autocomplete` attribute for the `` element. - * - * Defaults to `"off"` to disable the native browser autocomplete, but you can override it if necessary. - * - * @since 2.1.0 - */ - autocomplete: string; - /** - * A selector specifying the element the typeahead popup will be appended to. - * - * Currently only supports `"body"`. - */ - container: string; - /** - * If `true`, model values will not be restricted only to items selected from the popup. - */ - editable: boolean; - /** - * If `true`, the first item in the result list will always stay focused while typing. - */ - focusFirst: boolean; - /** - * The function that converts an item from the result list to a `string` to display in the `` field. - * - * It is called when the user selects something in the popup or the model value changes, so the input needs to - * be updated. - */ - inputFormatter: (item: any) => string; - /** - * The function that converts a stream of text values from the `` element to the stream of the array of items - * to display in the typeahead popup. - * - * If the resulting observable emits a non-empty array - the popup will be shown. If it emits an empty array - the - * popup will be closed. - * - * See the [basic example](#/components/typeahead/examples#basic) for more details. - * - * Note that the `this` argument is `undefined` so you need to explicitly bind it to a desired "this" target. - */ - ngbTypeahead: (text: Observable) => Observable; - /** - * The function that converts an item from the result list to a `string` to display in the popup. - * - * Must be provided, if your `ngbTypeahead` returns something other than `Observable`. - * - * Alternatively for more complex markup in the popup you should use `resultTemplate`. - */ - resultFormatter: (item: any) => string; - /** - * The template to override the way resulting items are displayed in the popup. - * - * See the [ResultTemplateContext](#/components/typeahead/api#ResultTemplateContext) for the template context. - * - * Also see the [template for results demo](#/components/typeahead/examples#template) for more details. - */ - resultTemplate: TemplateRef; - /** - * If `true`, will show the hint in the `` when an item in the result list matches. - */ - showHint: boolean; - /** - * The preferred placement of the typeahead. - * - * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`, - * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`, - * `"right-bottom"` - * - * Accepts an array of strings or a string with space separated possible values. - * - * The default order of preference is `"bottom-left bottom-right top-left top-right"` - * - * Please see the [positioning overview](#/positioning) for more details. - */ - placement: PlacementArray; - /** - * An event emitted right before an item is selected from the result list. - * - * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent). - */ - selectItem: EventEmitter; - activeDescendant: string; - popupId: string; - private _onTouched; - private _onChange; - constructor(_elementRef: ElementRef, _viewContainerRef: ViewContainerRef, _renderer: Renderer2, _injector: Injector, componentFactoryResolver: ComponentFactoryResolver, config: NgbTypeaheadConfig, ngZone: NgZone, _live: Live, _document: any, _ngZone: NgZone, _changeDetector: ChangeDetectorRef, _applicationRef: ApplicationRef); - ngOnInit(): void; - ngOnDestroy(): void; - registerOnChange(fn: (value: any) => any): void; - registerOnTouched(fn: () => any): void; - writeValue(value: any): void; - setDisabledState(isDisabled: boolean): void; - /** - * Dismisses typeahead popup window - */ - dismissPopup(): void; - /** - * Returns true if the typeahead popup window is displayed - */ - isPopupOpen(): boolean; - handleBlur(): void; - handleKeyDown(event: KeyboardEvent): void; - private _openPopup; - private _closePopup; - private _selectResult; - private _selectResultClosePopup; - private _showHint; - private _formatItemForInput; - private _writeInputValue; - private _subscribeToUserInput; - private _unsubscribeFromUserInput; -} diff --git a/dist/ng-bootstrap/typeahead/typeahead.module.d.ts b/dist/ng-bootstrap/typeahead/typeahead.module.d.ts deleted file mode 100644 index 8174daa..0000000 --- a/dist/ng-bootstrap/typeahead/typeahead.module.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { NgbHighlight } from './highlight'; -export { NgbTypeaheadWindow } from './typeahead-window'; -export { NgbTypeaheadConfig } from './typeahead-config'; -export { NgbTypeahead, NgbTypeaheadSelectItemEvent } from './typeahead'; -export declare class NgbTypeaheadModule { -} diff --git a/dist/ng-bootstrap/util/accessibility/live.d.ts b/dist/ng-bootstrap/util/accessibility/live.d.ts deleted file mode 100644 index dfb4846..0000000 --- a/dist/ng-bootstrap/util/accessibility/live.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { InjectionToken, OnDestroy } from '@angular/core'; -export declare type ARIA_LIVE_DELAY_TYPE = number | null; -export declare const ARIA_LIVE_DELAY: InjectionToken; -export declare function ARIA_LIVE_DELAY_FACTORY(): number; -export declare class Live implements OnDestroy { - private _document; - private _delay; - constructor(_document: any, _delay: any); - ngOnDestroy(): void; - say(message: string): void; -} diff --git a/dist/ng-bootstrap/util/autoclose.d.ts b/dist/ng-bootstrap/util/autoclose.d.ts deleted file mode 100644 index dc83762..0000000 --- a/dist/ng-bootstrap/util/autoclose.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { NgZone } from '@angular/core'; -import { Observable } from 'rxjs'; -export declare function ngbAutoClose(zone: NgZone, document: any, type: boolean | 'inside' | 'outside', close: () => void, closed$: Observable, insideElements: HTMLElement[], ignoreElements?: HTMLElement[], insideSelector?: string): void; diff --git a/dist/ng-bootstrap/util/focus-trap.d.ts b/dist/ng-bootstrap/util/focus-trap.d.ts deleted file mode 100644 index 6a30e96..0000000 --- a/dist/ng-bootstrap/util/focus-trap.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Observable } from 'rxjs'; -/** - * Returns first and last focusable elements inside of a given element based on specific CSS selector - */ -export declare function getFocusableBoundaryElements(element: HTMLElement): HTMLElement[]; -/** - * Function that enforces browser focus to be trapped inside a DOM element. - * - * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element - * - * @param element The element around which focus will be trapped inside - * @param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners - * and free internal resources - * @param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to - * false) - */ -export declare const ngbFocusTrap: (element: HTMLElement, stopFocusTrap$: Observable, refocusOnClick?: boolean) => void; diff --git a/dist/ng-bootstrap/util/key.d.ts b/dist/ng-bootstrap/util/key.d.ts deleted file mode 100644 index db77e46..0000000 --- a/dist/ng-bootstrap/util/key.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare enum Key { - Tab = 9, - Enter = 13, - Escape = 27, - Space = 32, - PageUp = 33, - PageDown = 34, - End = 35, - Home = 36, - ArrowLeft = 37, - ArrowUp = 38, - ArrowRight = 39, - ArrowDown = 40 -} diff --git a/dist/ng-bootstrap/util/popup.d.ts b/dist/ng-bootstrap/util/popup.d.ts deleted file mode 100644 index ee1a4a8..0000000 --- a/dist/ng-bootstrap/util/popup.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Injector, TemplateRef, ViewRef, ViewContainerRef, Renderer2, ComponentRef, ComponentFactoryResolver, ApplicationRef } from '@angular/core'; -export declare class ContentRef { - nodes: any[]; - viewRef?: ViewRef; - componentRef?: ComponentRef; - constructor(nodes: any[], viewRef?: ViewRef, componentRef?: ComponentRef); -} -export declare class PopupService { - private _type; - private _injector; - private _viewContainerRef; - private _renderer; - private _componentFactoryResolver; - private _applicationRef; - private _windowRef; - private _contentRef; - constructor(_type: any, _injector: Injector, _viewContainerRef: ViewContainerRef, _renderer: Renderer2, _componentFactoryResolver: ComponentFactoryResolver, _applicationRef: ApplicationRef); - open(content?: string | TemplateRef, context?: any): ComponentRef; - close(): void; - private _getContentRef; -} diff --git a/dist/ng-bootstrap/util/positioning.d.ts b/dist/ng-bootstrap/util/positioning.d.ts deleted file mode 100644 index fd2604f..0000000 --- a/dist/ng-bootstrap/util/positioning.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export declare class Positioning { - private getAllStyles; - private getStyle; - private isStaticPositioned; - private offsetParent; - position(element: HTMLElement, round?: boolean): ClientRect; - offset(element: HTMLElement, round?: boolean): ClientRect; - positionElements(hostElement: HTMLElement, targetElement: HTMLElement, placement: string, appendToBody?: boolean): boolean; -} -export declare function positionElements(hostElement: HTMLElement, targetElement: HTMLElement, placement: string | Placement | PlacementArray, appendToBody?: boolean, baseClass?: string): Placement; -export declare type Placement = 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom'; -export declare type PlacementArray = Placement | Array | string; diff --git a/dist/ng-bootstrap/util/scrollbar.d.ts b/dist/ng-bootstrap/util/scrollbar.d.ts deleted file mode 100644 index 47ac4b9..0000000 --- a/dist/ng-bootstrap/util/scrollbar.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** Type for the callback used to revert the scrollbar compensation. */ -export declare type CompensationReverter = () => void; -/** - * Utility to handle the scrollbar. - * - * It allows to compensate the lack of a vertical scrollbar by adding an - * equivalent padding on the right of the body, and to remove this compensation. - */ -export declare class ScrollBar { - private _document; - constructor(_document: any); - /** - * Detects if a scrollbar is present and if yes, already compensates for its - * removal by adding an equivalent padding on the right of the body. - * - * @return a callback used to revert the compensation (noop if there was none, - * otherwise a function removing the padding) - */ - compensate(): CompensationReverter; - /** - * Adds a padding of the given width on the right of the body. - * - * @return a callback used to revert the padding to its previous value - */ - private _adjustBody; - /** - * Tells whether a scrollbar is currently present on the body. - * - * @return true if scrollbar is present, false otherwise - */ - private _isPresent; - /** - * Calculates and returns the width of a scrollbar. - * - * @return the width of a scrollbar on this page - */ - private _getWidth; -} diff --git a/dist/ng-bootstrap/util/triggers.d.ts b/dist/ng-bootstrap/util/triggers.d.ts deleted file mode 100644 index a3891c3..0000000 --- a/dist/ng-bootstrap/util/triggers.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Observable } from 'rxjs'; -export declare class Trigger { - open: string; - close?: string; - constructor(open: string, close?: string); - isManual(): boolean; -} -export declare function parseTriggers(triggers: string, aliases?: { - 'hover': string[]; - 'focus': string[]; -}): Trigger[]; -export declare function observeTriggers(renderer: any, nativeElement: any, triggers: Trigger[], isOpenedFn: () => boolean): Observable; -export declare function triggerDelay(openDelay: number, closeDelay: number, isOpenedFn: () => boolean): (input$: Observable) => Observable; -export declare function listenToTriggers(renderer: any, nativeElement: any, triggers: string, isOpenedFn: () => boolean, openFn: any, closeFn: any, openDelay?: number, closeDelay?: number): () => void; diff --git a/dist/ng-bootstrap/util/util.d.ts b/dist/ng-bootstrap/util/util.d.ts deleted file mode 100644 index 7f24ffb..0000000 --- a/dist/ng-bootstrap/util/util.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare function toInteger(value: any): number; -export declare function toString(value: any): string; -export declare function getValueInRange(value: number, max: number, min?: number): number; -export declare function isString(value: any): value is string; -export declare function isNumber(value: any): value is number; -export declare function isInteger(value: any): value is number; -export declare function isDefined(value: any): boolean; -export declare function padNumber(value: number): string; -export declare function regExpEscape(text: any): any; -export declare function hasClassName(element: any, className: string): boolean; -export declare function closest(element: HTMLElement, selector: any): HTMLElement;