ngx-bootstrap 1.8.1 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +80 -0
- package/README.md +25 -10
- package/accordion/accordion-group.component.js +3 -2
- package/accordion/accordion-group.component.js.map +1 -1
- package/accordion/accordion-group.component.metadata.json +1 -1
- package/accordion/accordion.component.js +2 -1
- package/accordion/accordion.component.js.map +1 -1
- package/accordion/accordion.config.js +2 -1
- package/accordion/accordion.config.js.map +1 -1
- package/accordion/accordion.module.js +2 -1
- package/accordion/accordion.module.js.map +1 -1
- package/accordion/index.js.map +1 -1
- package/alert/alert.component.js +4 -3
- package/alert/alert.component.js.map +1 -1
- package/alert/alert.config.js +2 -1
- package/alert/alert.config.js.map +1 -1
- package/alert/alert.module.js +2 -1
- package/alert/alert.module.js.map +1 -1
- package/alert/index.js.map +1 -1
- package/bs-moment/LICENSE +26 -0
- package/bs-moment/format-functions.d.ts +13 -0
- package/bs-moment/format-functions.js +53 -0
- package/bs-moment/format-functions.js.map +1 -0
- package/bs-moment/format-functions.metadata.json +1 -0
- package/bs-moment/format.d.ts +6 -0
- package/bs-moment/format.js +43 -0
- package/bs-moment/format.js.map +1 -0
- package/bs-moment/format.metadata.json +1 -0
- package/bs-moment/i18n/ar.d.ts +2 -0
- package/bs-moment/i18n/ar.js +131 -0
- package/bs-moment/i18n/ar.js.map +1 -0
- package/bs-moment/i18n/ar.metadata.json +1 -0
- package/bs-moment/i18n/de.d.ts +2 -0
- package/bs-moment/i18n/de.js +67 -0
- package/bs-moment/i18n/de.js.map +1 -0
- package/bs-moment/i18n/de.metadata.json +1 -0
- package/bs-moment/i18n/en-gb.d.ts +2 -0
- package/bs-moment/i18n/en-gb.js +60 -0
- package/bs-moment/i18n/en-gb.js.map +1 -0
- package/bs-moment/i18n/en-gb.metadata.json +1 -0
- package/bs-moment/i18n/es-do.d.ts +2 -0
- package/bs-moment/i18n/es-do.js +61 -0
- package/bs-moment/i18n/es-do.js.map +1 -0
- package/bs-moment/i18n/es-do.metadata.json +1 -0
- package/bs-moment/i18n/es-us.d.ts +2 -0
- package/bs-moment/i18n/es-us.js +54 -0
- package/bs-moment/i18n/es-us.js.map +1 -0
- package/bs-moment/i18n/es-us.metadata.json +1 -0
- package/bs-moment/i18n/es.d.ts +2 -0
- package/bs-moment/i18n/es.js +62 -0
- package/bs-moment/i18n/es.js.map +1 -0
- package/bs-moment/i18n/es.metadata.json +1 -0
- package/bs-moment/i18n/fr.d.ts +2 -0
- package/bs-moment/i18n/fr.js +70 -0
- package/bs-moment/i18n/fr.js.map +1 -0
- package/bs-moment/i18n/fr.metadata.json +1 -0
- package/bs-moment/i18n/hi.d.ts +2 -0
- package/bs-moment/i18n/hi.js +119 -0
- package/bs-moment/i18n/hi.js.map +1 -0
- package/bs-moment/i18n/hi.metadata.json +1 -0
- package/bs-moment/i18n/it.d.ts +2 -0
- package/bs-moment/i18n/it.js +27 -0
- package/bs-moment/i18n/it.js.map +1 -0
- package/bs-moment/i18n/it.metadata.json +1 -0
- package/bs-moment/i18n/ja.d.ts +2 -0
- package/bs-moment/i18n/ja.js +65 -0
- package/bs-moment/i18n/ja.js.map +1 -0
- package/bs-moment/i18n/ja.metadata.json +1 -0
- package/bs-moment/i18n/ko.d.ts +2 -0
- package/bs-moment/i18n/ko.js +72 -0
- package/bs-moment/i18n/ko.js.map +1 -0
- package/bs-moment/i18n/ko.metadata.json +1 -0
- package/bs-moment/i18n/nl-be.d.ts +2 -0
- package/bs-moment/i18n/nl-be.js +73 -0
- package/bs-moment/i18n/nl-be.js.map +1 -0
- package/bs-moment/i18n/nl-be.metadata.json +1 -0
- package/bs-moment/i18n/nl.d.ts +2 -0
- package/bs-moment/i18n/nl.js +73 -0
- package/bs-moment/i18n/nl.js.map +1 -0
- package/bs-moment/i18n/nl.metadata.json +1 -0
- package/bs-moment/i18n/pl.d.ts +2 -0
- package/bs-moment/i18n/pl.js +77 -0
- package/bs-moment/i18n/pl.js.map +1 -0
- package/bs-moment/i18n/pl.metadata.json +1 -0
- package/bs-moment/i18n/pt-br.d.ts +2 -0
- package/bs-moment/i18n/pt-br.js +39 -0
- package/bs-moment/i18n/pt-br.js.map +1 -0
- package/bs-moment/i18n/pt-br.metadata.json +1 -0
- package/bs-moment/i18n/ru.d.ts +2 -0
- package/bs-moment/i18n/ru.js +120 -0
- package/bs-moment/i18n/ru.js.map +1 -0
- package/bs-moment/i18n/ru.metadata.json +1 -0
- package/bs-moment/i18n/zh-cn.d.ts +2 -0
- package/bs-moment/i18n/zh-cn.js +107 -0
- package/bs-moment/i18n/zh-cn.js.map +1 -0
- package/bs-moment/i18n/zh-cn.metadata.json +1 -0
- package/bs-moment/index.d.ts +1 -0
- package/bs-moment/index.js +2 -0
- package/bs-moment/index.js.map +1 -0
- package/bs-moment/index.metadata.json +1 -0
- package/bs-moment/locale/en.d.ts +0 -0
- package/bs-moment/locale/en.js +14 -0
- package/bs-moment/locale/en.js.map +1 -0
- package/bs-moment/locale/index.d.ts +1 -0
- package/bs-moment/locale/index.js +2 -0
- package/bs-moment/locale/index.js.map +1 -0
- package/bs-moment/locale/locale.class.d.ts +60 -0
- package/bs-moment/locale/locale.class.js +117 -0
- package/bs-moment/locale/locale.class.js.map +1 -0
- package/bs-moment/locale/locale.class.metadata.json +1 -0
- package/bs-moment/locale/locale.defaults.d.ts +8 -0
- package/bs-moment/locale/locale.defaults.js +23 -0
- package/bs-moment/locale/locale.defaults.js.map +1 -0
- package/bs-moment/locale/locale.defaults.metadata.json +1 -0
- package/bs-moment/locale/locales.service.d.ts +8 -0
- package/bs-moment/locale/locales.service.js +81 -0
- package/bs-moment/locale/locales.service.js.map +1 -0
- package/bs-moment/locale/locales.service.metadata.json +1 -0
- package/bs-moment/types.d.ts +11 -0
- package/bs-moment/types.js +1 -0
- package/bs-moment/types.js.map +1 -0
- package/bs-moment/types.metadata.json +1 -0
- package/bs-moment/units/day-of-month.d.ts +0 -0
- package/bs-moment/units/day-of-month.js +6 -0
- package/bs-moment/units/day-of-month.js.map +1 -0
- package/bs-moment/units/day-of-week.d.ts +3 -0
- package/bs-moment/units/day-of-week.js +28 -0
- package/bs-moment/units/day-of-week.js.map +1 -0
- package/bs-moment/units/day-of-week.metadata.json +1 -0
- package/bs-moment/units/day-of-year.d.ts +2 -0
- package/bs-moment/units/day-of-year.js +20 -0
- package/bs-moment/units/day-of-year.js.map +1 -0
- package/bs-moment/units/day-of-year.metadata.json +1 -0
- package/bs-moment/units/hour.d.ts +0 -0
- package/bs-moment/units/hour.js +49 -0
- package/bs-moment/units/hour.js.map +1 -0
- package/bs-moment/units/index.d.ts +10 -0
- package/bs-moment/units/index.js +11 -0
- package/bs-moment/units/index.js.map +1 -0
- package/bs-moment/units/minute.d.ts +0 -0
- package/bs-moment/units/minute.js +6 -0
- package/bs-moment/units/minute.js.map +1 -0
- package/bs-moment/units/month.d.ts +1 -0
- package/bs-moment/units/month.js +23 -0
- package/bs-moment/units/month.js.map +1 -0
- package/bs-moment/units/month.metadata.json +1 -0
- package/bs-moment/units/second.d.ts +0 -0
- package/bs-moment/units/second.js +6 -0
- package/bs-moment/units/second.js.map +1 -0
- package/bs-moment/units/week-calendar-utils.d.ts +9 -0
- package/bs-moment/units/week-calendar-utils.js +70 -0
- package/bs-moment/units/week-calendar-utils.js.map +1 -0
- package/bs-moment/units/week-calendar-utils.metadata.json +1 -0
- package/bs-moment/units/week.d.ts +3 -0
- package/bs-moment/units/week.js +15 -0
- package/bs-moment/units/week.js.map +1 -0
- package/bs-moment/units/week.metadata.json +1 -0
- package/bs-moment/units/year.d.ts +2 -0
- package/bs-moment/units/year.js +23 -0
- package/bs-moment/units/year.js.map +1 -0
- package/bs-moment/units/year.metadata.json +1 -0
- package/bs-moment/utils/date-compare.d.ts +7 -0
- package/bs-moment/utils/date-compare.js +50 -0
- package/bs-moment/utils/date-compare.js.map +1 -0
- package/bs-moment/utils/date-compare.metadata.json +1 -0
- package/bs-moment/utils/date-getters.d.ts +14 -0
- package/bs-moment/utils/date-getters.js +61 -0
- package/bs-moment/utils/date-getters.js.map +1 -0
- package/bs-moment/utils/date-getters.metadata.json +1 -0
- package/bs-moment/utils/date-setters.d.ts +4 -0
- package/bs-moment/utils/date-setters.js +23 -0
- package/bs-moment/utils/date-setters.js.map +1 -0
- package/bs-moment/utils/date-setters.metadata.json +1 -0
- package/bs-moment/utils/start-end-of.d.ts +3 -0
- package/bs-moment/utils/start-end-of.js +35 -0
- package/bs-moment/utils/start-end-of.js.map +1 -0
- package/bs-moment/utils/start-end-of.metadata.json +1 -0
- package/bs-moment/utils/type-checks.d.ts +7 -0
- package/bs-moment/utils/type-checks.js +30 -0
- package/bs-moment/utils/type-checks.js.map +1 -0
- package/bs-moment/utils/type-checks.metadata.json +1 -0
- package/bs-moment/utils.d.ts +4 -0
- package/bs-moment/utils.js +24 -0
- package/bs-moment/utils.js.map +1 -0
- package/bs-moment/utils.metadata.json +1 -0
- package/bundles/ngx-bootstrap.umd.js +8786 -20532
- package/bundles/ngx-bootstrap.umd.js.map +1 -1
- package/bundles/ngx-bootstrap.umd.min.js +2 -2
- package/buttons/button-checkbox.directive.js +2 -1
- package/buttons/button-checkbox.directive.js.map +1 -1
- package/buttons/button-radio.directive.js +2 -1
- package/buttons/button-radio.directive.js.map +1 -1
- package/buttons/buttons.module.js +2 -1
- package/buttons/buttons.module.js.map +1 -1
- package/buttons/index.js.map +1 -1
- package/carousel/carousel.component.d.ts +3 -2
- package/carousel/carousel.component.js +31 -12
- package/carousel/carousel.component.js.map +1 -1
- package/carousel/carousel.component.metadata.json +1 -1
- package/carousel/carousel.config.js +2 -1
- package/carousel/carousel.config.js.map +1 -1
- package/carousel/carousel.module.js +2 -1
- package/carousel/carousel.module.js.map +1 -1
- package/carousel/index.js.map +1 -1
- package/carousel/slide.component.js +2 -1
- package/carousel/slide.component.js.map +1 -1
- package/collapse/collapse.directive.js +3 -1
- package/collapse/collapse.directive.js.map +1 -1
- package/collapse/collapse.module.js +2 -1
- package/collapse/collapse.module.js.map +1 -1
- package/collapse/index.js.map +1 -1
- package/component-loader/bs-component-ref.class.js +2 -1
- package/component-loader/bs-component-ref.class.js.map +1 -1
- package/component-loader/bs-component-ref.class.metadata.json +1 -1
- package/component-loader/component-loader.class.d.ts +10 -9
- package/component-loader/component-loader.class.js +56 -12
- package/component-loader/component-loader.class.js.map +1 -1
- package/component-loader/component-loader.class.metadata.json +1 -1
- package/component-loader/component-loader.factory.js +2 -1
- package/component-loader/component-loader.factory.js.map +1 -1
- package/component-loader/content-ref.class.js +2 -1
- package/component-loader/content-ref.class.js.map +1 -1
- package/component-loader/index.js.map +1 -1
- package/component-loader/listen-options.model.d.ts +9 -0
- package/component-loader/listen-options.model.js +1 -0
- package/component-loader/listen-options.model.js.map +1 -0
- package/component-loader/listen-options.model.metadata.json +1 -0
- package/datepicker/base/bs-datepicker-container.d.ts +26 -0
- package/datepicker/base/bs-datepicker-container.js +41 -0
- package/datepicker/base/bs-datepicker-container.js.map +1 -0
- package/datepicker/base/bs-datepicker-container.metadata.json +1 -0
- package/datepicker/bs-datepicker-input.directive.d.ts +21 -0
- package/datepicker/bs-datepicker-input.directive.js +79 -0
- package/datepicker/bs-datepicker-input.directive.js.map +1 -0
- package/datepicker/bs-datepicker-input.directive.metadata.json +1 -0
- package/datepicker/bs-datepicker.component.d.ts +85 -0
- package/datepicker/bs-datepicker.component.js +184 -0
- package/datepicker/bs-datepicker.component.js.map +1 -0
- package/datepicker/bs-datepicker.component.metadata.json +1 -0
- package/datepicker/bs-datepicker.config.d.ts +36 -0
- package/datepicker/bs-datepicker.config.js +39 -0
- package/datepicker/bs-datepicker.config.js.map +1 -0
- package/datepicker/bs-datepicker.config.metadata.json +1 -0
- package/datepicker/bs-datepicker.css +424 -0
- package/datepicker/bs-datepicker.css.map +16 -0
- package/datepicker/bs-datepicker.module.d.ts +5 -0
- package/datepicker/bs-datepicker.module.js +69 -0
- package/datepicker/bs-datepicker.module.js.map +1 -0
- package/datepicker/bs-datepicker.module.metadata.json +1 -0
- package/datepicker/bs-datepicker.scss +532 -0
- package/datepicker/bs-daterangepicker-input.directive.d.ts +21 -0
- package/datepicker/bs-daterangepicker-input.directive.js +87 -0
- package/datepicker/bs-daterangepicker-input.directive.js.map +1 -0
- package/datepicker/bs-daterangepicker-input.directive.metadata.json +1 -0
- package/datepicker/bs-daterangepicker.component.d.ts +84 -0
- package/datepicker/bs-daterangepicker.component.js +184 -0
- package/datepicker/bs-daterangepicker.component.js.map +1 -0
- package/datepicker/bs-daterangepicker.component.metadata.json +1 -0
- package/datepicker/date-formatter.d.ts +1 -1
- package/datepicker/date-formatter.js +5 -4
- package/datepicker/date-formatter.js.map +1 -1
- package/datepicker/datepicker-inner.component.d.ts +1 -0
- package/datepicker/datepicker-inner.component.js +5 -2
- package/datepicker/datepicker-inner.component.js.map +1 -1
- package/datepicker/datepicker-inner.component.metadata.json +1 -1
- package/datepicker/datepicker.component.d.ts +1 -1
- package/datepicker/datepicker.component.js +3 -2
- package/datepicker/datepicker.component.js.map +1 -1
- package/datepicker/datepicker.component.metadata.json +1 -1
- package/datepicker/datepicker.config.d.ts +1 -0
- package/datepicker/datepicker.config.js +3 -1
- package/datepicker/datepicker.config.js.map +1 -1
- package/datepicker/datepicker.module.js +2 -1
- package/datepicker/datepicker.module.js.map +1 -1
- package/datepicker/daypicker.component.js +4 -2
- package/datepicker/daypicker.component.js.map +1 -1
- package/datepicker/daypicker.component.metadata.json +1 -1
- package/datepicker/engine/calc-days-calendar.d.ts +2 -0
- package/datepicker/engine/calc-days-calendar.js +18 -0
- package/datepicker/engine/calc-days-calendar.js.map +1 -0
- package/datepicker/engine/calc-days-calendar.metadata.json +1 -0
- package/datepicker/engine/flag-days-calendar.d.ts +12 -0
- package/datepicker/engine/flag-days-calendar.js +71 -0
- package/datepicker/engine/flag-days-calendar.js.map +1 -0
- package/datepicker/engine/flag-days-calendar.metadata.json +1 -0
- package/datepicker/engine/flag-months-calendar.d.ts +10 -0
- package/datepicker/engine/flag-months-calendar.js +27 -0
- package/datepicker/engine/flag-months-calendar.js.map +1 -0
- package/datepicker/engine/flag-months-calendar.metadata.json +1 -0
- package/datepicker/engine/flag-years-calendar.d.ts +10 -0
- package/datepicker/engine/flag-years-calendar.js +29 -0
- package/datepicker/engine/flag-years-calendar.js.map +1 -0
- package/datepicker/engine/flag-years-calendar.metadata.json +1 -0
- package/datepicker/engine/format-days-calendar.d.ts +3 -0
- package/datepicker/engine/format-days-calendar.js +25 -0
- package/datepicker/engine/format-days-calendar.js.map +1 -0
- package/datepicker/engine/format-days-calendar.metadata.json +1 -0
- package/datepicker/engine/format-months-calendar.d.ts +2 -0
- package/datepicker/engine/format-months-calendar.js +20 -0
- package/datepicker/engine/format-months-calendar.js.map +1 -0
- package/datepicker/engine/format-months-calendar.metadata.json +1 -0
- package/datepicker/engine/format-years-calendar.d.ts +3 -0
- package/datepicker/engine/format-years-calendar.js +28 -0
- package/datepicker/engine/format-years-calendar.js.map +1 -0
- package/datepicker/engine/format-years-calendar.metadata.json +1 -0
- package/datepicker/engine/view-mode.d.ts +2 -0
- package/datepicker/engine/view-mode.js +4 -0
- package/datepicker/engine/view-mode.js.map +1 -0
- package/datepicker/engine/view-mode.metadata.json +1 -0
- package/datepicker/index.d.ts +4 -0
- package/datepicker/index.js +4 -8
- package/datepicker/index.js.map +1 -1
- package/datepicker/index.metadata.json +1 -1
- package/datepicker/models/index.d.ts +89 -0
- package/datepicker/models/index.js +9 -0
- package/datepicker/models/index.js.map +1 -0
- package/datepicker/models/index.metadata.json +1 -0
- package/datepicker/monthpicker.component.js +4 -2
- package/datepicker/monthpicker.component.js.map +1 -1
- package/datepicker/monthpicker.component.metadata.json +1 -1
- package/datepicker/reducer/_defaults.d.ts +2 -0
- package/datepicker/reducer/_defaults.js +5 -0
- package/datepicker/reducer/_defaults.js.map +1 -0
- package/datepicker/reducer/_defaults.metadata.json +1 -0
- package/datepicker/reducer/bs-datepicker.actions.d.ts +31 -0
- package/datepicker/reducer/bs-datepicker.actions.js +90 -0
- package/datepicker/reducer/bs-datepicker.actions.js.map +1 -0
- package/datepicker/reducer/bs-datepicker.actions.metadata.json +1 -0
- package/datepicker/reducer/bs-datepicker.effects.d.ts +33 -0
- package/datepicker/reducer/bs-datepicker.effects.js +173 -0
- package/datepicker/reducer/bs-datepicker.effects.js.map +1 -0
- package/datepicker/reducer/bs-datepicker.effects.metadata.json +1 -0
- package/datepicker/reducer/bs-datepicker.reducer.d.ts +3 -0
- package/datepicker/reducer/bs-datepicker.reducer.js +230 -0
- package/datepicker/reducer/bs-datepicker.reducer.js.map +1 -0
- package/datepicker/reducer/bs-datepicker.reducer.metadata.json +1 -0
- package/datepicker/reducer/bs-datepicker.state.d.ts +34 -0
- package/datepicker/reducer/bs-datepicker.state.js +14 -0
- package/datepicker/reducer/bs-datepicker.state.js.map +1 -0
- package/datepicker/reducer/bs-datepicker.state.metadata.json +1 -0
- package/datepicker/reducer/bs-datepicker.store.d.ts +5 -0
- package/datepicker/reducer/bs-datepicker.store.js +34 -0
- package/datepicker/reducer/bs-datepicker.store.js.map +1 -0
- package/datepicker/reducer/bs-datepicker.store.metadata.json +1 -0
- package/datepicker/themes/bs/bs-calendar-layout.component.d.ts +2 -0
- package/datepicker/themes/bs/bs-calendar-layout.component.js +16 -0
- package/datepicker/themes/bs/bs-calendar-layout.component.js.map +1 -0
- package/datepicker/themes/bs/bs-calendar-layout.component.metadata.json +1 -0
- package/datepicker/themes/bs/bs-current-date-view.component.d.ts +3 -0
- package/datepicker/themes/bs/bs-current-date-view.component.js +19 -0
- package/datepicker/themes/bs/bs-current-date-view.component.js.map +1 -0
- package/datepicker/themes/bs/bs-current-date-view.component.metadata.json +1 -0
- package/datepicker/themes/bs/bs-custom-dates-view.component.d.ts +8 -0
- package/datepicker/themes/bs/bs-custom-dates-view.component.js +21 -0
- package/datepicker/themes/bs/bs-custom-dates-view.component.js.map +1 -0
- package/datepicker/themes/bs/bs-custom-dates-view.component.metadata.json +1 -0
- package/datepicker/themes/bs/bs-datepicker-container.component.d.ts +20 -0
- package/datepicker/themes/bs/bs-datepicker-container.component.js +85 -0
- package/datepicker/themes/bs/bs-datepicker-container.component.js.map +1 -0
- package/datepicker/themes/bs/bs-datepicker-container.component.metadata.json +1 -0
- package/datepicker/themes/bs/bs-datepicker-day-decorator.directive.d.ts +4 -0
- package/datepicker/themes/bs/bs-datepicker-day-decorator.directive.js +29 -0
- package/datepicker/themes/bs/bs-datepicker-day-decorator.directive.js.map +1 -0
- package/datepicker/themes/bs/bs-datepicker-day-decorator.directive.metadata.json +1 -0
- package/datepicker/themes/bs/bs-datepicker-navigation-view.component.d.ts +9 -0
- package/datepicker/themes/bs/bs-datepicker-navigation-view.component.js +33 -0
- package/datepicker/themes/bs/bs-datepicker-navigation-view.component.js.map +1 -0
- package/datepicker/themes/bs/bs-datepicker-navigation-view.component.metadata.json +1 -0
- package/datepicker/themes/bs/bs-datepicker-view.html +61 -0
- package/datepicker/themes/bs/bs-daterangepicker-container.component.d.ts +21 -0
- package/datepicker/themes/bs/bs-daterangepicker-container.component.js +102 -0
- package/datepicker/themes/bs/bs-daterangepicker-container.component.js.map +1 -0
- package/datepicker/themes/bs/bs-daterangepicker-container.component.metadata.json +1 -0
- package/datepicker/themes/bs/bs-days-calendar-view.component.d.ts +14 -0
- package/datepicker/themes/bs/bs-days-calendar-view.component.js +43 -0
- package/datepicker/themes/bs/bs-days-calendar-view.component.js.map +1 -0
- package/datepicker/themes/bs/bs-days-calendar-view.component.metadata.json +1 -0
- package/datepicker/themes/bs/bs-months-calendar-view.component.d.ts +13 -0
- package/datepicker/themes/bs/bs-months-calendar-view.component.js +41 -0
- package/datepicker/themes/bs/bs-months-calendar-view.component.js.map +1 -0
- package/datepicker/themes/bs/bs-months-calendar-view.component.metadata.json +1 -0
- package/datepicker/themes/bs/bs-timepicker-view.component.d.ts +5 -0
- package/datepicker/themes/bs/bs-timepicker-view.component.js +19 -0
- package/datepicker/themes/bs/bs-timepicker-view.component.js.map +1 -0
- package/datepicker/themes/bs/bs-timepicker-view.component.metadata.json +1 -0
- package/datepicker/themes/bs/bs-years-calendar-view.component.d.ts +13 -0
- package/datepicker/themes/bs/bs-years-calendar-view.component.js +42 -0
- package/datepicker/themes/bs/bs-years-calendar-view.component.js.map +1 -0
- package/datepicker/themes/bs/bs-years-calendar-view.component.metadata.json +1 -0
- package/datepicker/utils/bs-calendar-utils.d.ts +5 -0
- package/datepicker/utils/bs-calendar-utils.js +22 -0
- package/datepicker/utils/bs-calendar-utils.js.map +1 -0
- package/datepicker/utils/bs-calendar-utils.metadata.json +1 -0
- package/datepicker/utils/matrix-utils.d.ts +9 -0
- package/datepicker/utils/matrix-utils.js +14 -0
- package/datepicker/utils/matrix-utils.js.map +1 -0
- package/datepicker/utils/matrix-utils.metadata.json +1 -0
- package/datepicker/utils/scss/mixins.css +2 -0
- package/datepicker/utils/scss/mixins.css.map +12 -0
- package/datepicker/utils/scss/mixins.scss +24 -0
- package/datepicker/utils/scss/variables.css +2 -0
- package/datepicker/utils/scss/variables.css.map +12 -0
- package/datepicker/utils/scss/variables.scss +36 -0
- package/datepicker/yearpicker.component.js +4 -2
- package/datepicker/yearpicker.component.js.map +1 -1
- package/datepicker/yearpicker.component.metadata.json +1 -1
- package/dropdown/bs-dropdown-container.component.d.ts +3 -2
- package/dropdown/bs-dropdown-container.component.js +19 -3
- package/dropdown/bs-dropdown-container.component.js.map +1 -1
- package/dropdown/bs-dropdown-container.component.metadata.json +1 -1
- package/dropdown/bs-dropdown-menu.directive.js +2 -1
- package/dropdown/bs-dropdown-menu.directive.js.map +1 -1
- package/dropdown/bs-dropdown-toggle.directive.js +2 -1
- package/dropdown/bs-dropdown-toggle.directive.js.map +1 -1
- package/dropdown/bs-dropdown.config.js +2 -1
- package/dropdown/bs-dropdown.config.js.map +1 -1
- package/dropdown/bs-dropdown.directive.d.ts +5 -0
- package/dropdown/bs-dropdown.directive.js +40 -2
- package/dropdown/bs-dropdown.directive.js.map +1 -1
- package/dropdown/bs-dropdown.directive.metadata.json +1 -1
- package/dropdown/bs-dropdown.module.js +2 -1
- package/dropdown/bs-dropdown.module.js.map +1 -1
- package/dropdown/bs-dropdown.state.js +2 -1
- package/dropdown/bs-dropdown.state.js.map +1 -1
- package/dropdown/index.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +7 -3
- package/index.js.map +1 -1
- package/index.metadata.json +1 -1
- package/locale.d.ts +17 -0
- package/locale.js +18 -0
- package/locale.js.map +1 -0
- package/locale.metadata.json +1 -0
- package/mini-ngrx/LICENCE +21 -0
- package/mini-ngrx/index.js.map +1 -1
- package/mini-ngrx/index.metadata.json +1 -1
- package/mini-ngrx/state.class.js +17 -8
- package/mini-ngrx/state.class.js.map +1 -1
- package/mini-ngrx/state.class.metadata.json +1 -1
- package/mini-ngrx/store.class.js +20 -10
- package/mini-ngrx/store.class.js.map +1 -1
- package/mini-ngrx/store.class.metadata.json +1 -1
- package/modal/bs-modal.service.js +3 -2
- package/modal/bs-modal.service.js.map +1 -1
- package/modal/index.js.map +1 -1
- package/modal/modal-backdrop.component.js +4 -2
- package/modal/modal-backdrop.component.js.map +1 -1
- package/modal/modal-container.component.js +2 -1
- package/modal/modal-container.component.js.map +1 -1
- package/modal/modal-options.class.js +4 -2
- package/modal/modal-options.class.js.map +1 -1
- package/modal/modal.component.d.ts +2 -2
- package/modal/modal.component.js +3 -2
- package/modal/modal.component.js.map +1 -1
- package/modal/modal.module.js +2 -1
- package/modal/modal.module.js.map +1 -1
- package/ng2-bootstrap.js +2 -1
- package/ng2-bootstrap.js.map +1 -1
- package/package.json +30 -34
- package/pagination/index.js.map +1 -1
- package/pagination/pager.component.js +3 -2
- package/pagination/pager.component.js.map +1 -1
- package/pagination/pager.component.metadata.json +1 -1
- package/pagination/pagination.component.js +2 -1
- package/pagination/pagination.component.js.map +1 -1
- package/pagination/pagination.component.metadata.json +1 -1
- package/pagination/pagination.config.js +3 -1
- package/pagination/pagination.config.js.map +1 -1
- package/pagination/pagination.module.js +2 -1
- package/pagination/pagination.module.js.map +1 -1
- package/popover/index.js.map +1 -1
- package/popover/popover-container.component.js +5 -3
- package/popover/popover-container.component.js.map +1 -1
- package/popover/popover-container.component.metadata.json +1 -1
- package/popover/popover.config.d.ts +2 -1
- package/popover/popover.config.js +4 -2
- package/popover/popover.config.js.map +1 -1
- package/popover/popover.directive.d.ts +9 -1
- package/popover/popover.directive.js +10 -1
- package/popover/popover.directive.js.map +1 -1
- package/popover/popover.directive.metadata.json +1 -1
- package/popover/popover.module.js +2 -1
- package/popover/popover.module.js.map +1 -1
- package/positioning/index.js.map +1 -1
- package/positioning/ng-positioning.d.ts +2 -0
- package/positioning/ng-positioning.js +30 -4
- package/positioning/ng-positioning.js.map +1 -1
- package/positioning/ng-positioning.metadata.json +1 -1
- package/positioning/positioning.service.js +2 -1
- package/positioning/positioning.service.js.map +1 -1
- package/positioning/positioning.service.metadata.json +1 -1
- package/progressbar/bar.component.js +2 -1
- package/progressbar/bar.component.js.map +1 -1
- package/progressbar/index.js.map +1 -1
- package/progressbar/progress.directive.js +2 -1
- package/progressbar/progress.directive.js.map +1 -1
- package/progressbar/progressbar.component.js +2 -1
- package/progressbar/progressbar.component.js.map +1 -1
- package/progressbar/progressbar.config.js +2 -1
- package/progressbar/progressbar.config.js.map +1 -1
- package/progressbar/progressbar.module.js +2 -1
- package/progressbar/progressbar.module.js.map +1 -1
- package/rating/index.js.map +1 -1
- package/rating/rating.component.js +2 -1
- package/rating/rating.component.js.map +1 -1
- package/rating/rating.module.js +2 -1
- package/rating/rating.module.js.map +1 -1
- package/sortable/draggable-item.js.map +1 -1
- package/sortable/draggable-item.metadata.json +1 -0
- package/sortable/draggable-item.service.js +2 -1
- package/sortable/draggable-item.service.js.map +1 -1
- package/sortable/index.js.map +1 -1
- package/sortable/sortable.component.js +2 -1
- package/sortable/sortable.component.js.map +1 -1
- package/sortable/sortable.component.metadata.json +1 -1
- package/sortable/sortable.module.js +2 -1
- package/sortable/sortable.module.js.map +1 -1
- package/spec/ng-bootstrap/license +23 -0
- package/tabs/index.js.map +1 -1
- package/tabs/ng-transclude.directive.js +2 -1
- package/tabs/ng-transclude.directive.js.map +1 -1
- package/tabs/tab-heading.directive.js +2 -1
- package/tabs/tab-heading.directive.js.map +1 -1
- package/tabs/tab.directive.js +7 -3
- package/tabs/tab.directive.js.map +1 -1
- package/tabs/tabs.module.js +2 -1
- package/tabs/tabs.module.js.map +1 -1
- package/tabs/tabset.component.js +4 -3
- package/tabs/tabset.component.js.map +1 -1
- package/tabs/tabset.config.js +2 -1
- package/tabs/tabset.config.js.map +1 -1
- package/timepicker/index.js.map +1 -1
- package/timepicker/reducer/timepicker.actions.js +2 -1
- package/timepicker/reducer/timepicker.actions.js.map +1 -1
- package/timepicker/reducer/timepicker.reducer.d.ts +1 -3
- package/timepicker/reducer/timepicker.reducer.js +10 -3
- package/timepicker/reducer/timepicker.reducer.js.map +1 -1
- package/timepicker/reducer/timepicker.reducer.metadata.json +1 -1
- package/timepicker/reducer/timepicker.store.js +15 -7
- package/timepicker/reducer/timepicker.store.js.map +1 -1
- package/timepicker/timepicker-controls.util.js.map +1 -1
- package/timepicker/timepicker.component.js +4 -2
- package/timepicker/timepicker.component.js.map +1 -1
- package/timepicker/timepicker.component.metadata.json +1 -1
- package/timepicker/timepicker.config.js +2 -1
- package/timepicker/timepicker.config.js.map +1 -1
- package/timepicker/timepicker.models.js.map +1 -1
- package/timepicker/timepicker.models.metadata.json +1 -0
- package/timepicker/timepicker.module.js +2 -1
- package/timepicker/timepicker.module.js.map +1 -1
- package/timepicker/timepicker.utils.js.map +1 -1
- package/tooltip/index.js.map +1 -1
- package/tooltip/tooltip-container.component.js +24 -3
- package/tooltip/tooltip-container.component.js.map +1 -1
- package/tooltip/tooltip-container.component.metadata.json +1 -1
- package/tooltip/tooltip.config.js +2 -1
- package/tooltip/tooltip.config.js.map +1 -1
- package/tooltip/tooltip.directive.js +17 -15
- package/tooltip/tooltip.directive.js.map +1 -1
- package/tooltip/tooltip.module.js +2 -1
- package/tooltip/tooltip.module.js.map +1 -1
- package/tsconfig.spec.json +39 -0
- package/typeahead/index.js.map +1 -1
- package/typeahead/latin-map.js.map +1 -1
- package/typeahead/typeahead-container.component.d.ts +1 -0
- package/typeahead/typeahead-container.component.js +3 -1
- package/typeahead/typeahead-container.component.js.map +1 -1
- package/typeahead/typeahead-container.component.metadata.json +1 -1
- package/typeahead/typeahead-match.class.js +2 -1
- package/typeahead/typeahead-match.class.js.map +1 -1
- package/typeahead/typeahead-options.class.js +2 -1
- package/typeahead/typeahead-options.class.js.map +1 -1
- package/typeahead/typeahead-utils.js.map +1 -1
- package/typeahead/typeahead.directive.d.ts +3 -0
- package/typeahead/typeahead.directive.js +19 -8
- package/typeahead/typeahead.directive.js.map +1 -1
- package/typeahead/typeahead.directive.metadata.json +1 -1
- package/typeahead/typeahead.module.js +2 -1
- package/typeahead/typeahead.module.js.map +1 -1
- package/utils/decorators.js +1 -0
- package/utils/decorators.js.map +1 -1
- package/utils/facade/browser.js.map +1 -1
- package/utils/index.js.map +1 -1
- package/utils/linked-list.class.js +5 -3
- package/utils/linked-list.class.js.map +1 -1
- package/utils/linked-list.class.metadata.json +1 -1
- package/utils/ng2-bootstrap-config.js +27 -0
- package/utils/ng2-bootstrap-config.js.map +1 -1
- package/utils/ng2-bootstrap-config.metadata.json +1 -1
- package/utils/trigger.class.js +2 -1
- package/utils/trigger.class.js.map +1 -1
- package/utils/triggers.d.ts +3 -0
- package/utils/triggers.js +44 -0
- package/utils/triggers.js.map +1 -1
- package/utils/triggers.metadata.json +1 -1
- package/utils/utils.class.js +2 -1
- package/utils/utils.class.js.map +1 -1
- package/utils/warn-once.d.ts +1 -0
- package/utils/warn-once.js +12 -0
- package/utils/warn-once.js.map +1 -0
- package/utils/warn-once.metadata.json +1 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit, ElementRef, Renderer, ViewContainerRef, SimpleChanges, OnChanges } from '@angular/core';
|
2
|
+
import { Subscription } from 'rxjs/Subscription';
|
3
|
+
import { ComponentLoaderFactory } from '../component-loader/component-loader.factory';
|
4
|
+
import { BsDatepickerConfig } from './bs-datepicker.config';
|
5
|
+
export declare class BsDaterangepickerComponent implements OnInit, OnDestroy, OnChanges {
|
6
|
+
_config: BsDatepickerConfig;
|
7
|
+
/**
|
8
|
+
* Placement of a daterangepicker. Accepts: "top", "bottom", "left", "right"
|
9
|
+
*/
|
10
|
+
placement: 'top' | 'bottom' | 'left' | 'right';
|
11
|
+
/**
|
12
|
+
* Specifies events that should trigger. Supports a space separated list of
|
13
|
+
* event names.
|
14
|
+
*/
|
15
|
+
triggers: string;
|
16
|
+
/**
|
17
|
+
* Close daterangepicker on outside click
|
18
|
+
*/
|
19
|
+
outsideClick: boolean;
|
20
|
+
/**
|
21
|
+
* A selector specifying the element the daterangepicker should be appended to.
|
22
|
+
* Currently only supports "body".
|
23
|
+
*/
|
24
|
+
container: string;
|
25
|
+
/**
|
26
|
+
* Returns whether or not the daterangepicker is currently being shown
|
27
|
+
*/
|
28
|
+
isOpen: boolean;
|
29
|
+
/**
|
30
|
+
* Emits an event when the daterangepicker is shown
|
31
|
+
*/
|
32
|
+
onShown: EventEmitter<any>;
|
33
|
+
/**
|
34
|
+
* Emits an event when the daterangepicker is hidden
|
35
|
+
*/
|
36
|
+
onHidden: EventEmitter<any>;
|
37
|
+
_bsValue: Date[];
|
38
|
+
/**
|
39
|
+
* Initial value of daterangepicker
|
40
|
+
*/
|
41
|
+
bsValue: Date[];
|
42
|
+
/**
|
43
|
+
* Config object for daterangepicker
|
44
|
+
*/
|
45
|
+
bsConfig: Partial<BsDatepickerConfig>;
|
46
|
+
/**
|
47
|
+
* Indicates whether daterangepicker is enabled or not
|
48
|
+
*/
|
49
|
+
isDisabled: boolean;
|
50
|
+
/**
|
51
|
+
* Minimum date which is available for selection
|
52
|
+
*/
|
53
|
+
minDate: Date;
|
54
|
+
/**
|
55
|
+
* Maximum date which is available for selection
|
56
|
+
*/
|
57
|
+
maxDate: Date;
|
58
|
+
/**
|
59
|
+
* Emits when daterangepicker value has been changed
|
60
|
+
*/
|
61
|
+
bsValueChange: EventEmitter<Date[]>;
|
62
|
+
protected _subs: Subscription[];
|
63
|
+
private _datepicker;
|
64
|
+
private _datepickerRef;
|
65
|
+
constructor(_config: BsDatepickerConfig, _elementRef: ElementRef, _renderer: Renderer, _viewContainerRef: ViewContainerRef, cis: ComponentLoaderFactory);
|
66
|
+
ngOnInit(): any;
|
67
|
+
ngOnChanges(changes: SimpleChanges): void;
|
68
|
+
/**
|
69
|
+
* Opens an element’s datepicker. This is considered a “manual” triggering of
|
70
|
+
* the datepicker.
|
71
|
+
*/
|
72
|
+
show(): void;
|
73
|
+
/**
|
74
|
+
* Closes an element’s datepicker. This is considered a “manual” triggering of
|
75
|
+
* the datepicker.
|
76
|
+
*/
|
77
|
+
hide(): void;
|
78
|
+
/**
|
79
|
+
* Toggles an element’s datepicker. This is considered a “manual” triggering of
|
80
|
+
* the datepicker.
|
81
|
+
*/
|
82
|
+
toggle(): void;
|
83
|
+
ngOnDestroy(): any;
|
84
|
+
}
|
@@ -0,0 +1,184 @@
|
|
1
|
+
import { Component, EventEmitter, Input, Output, ElementRef, Renderer, ViewContainerRef } from '@angular/core';
|
2
|
+
import { BsDaterangepickerContainerComponent } from './themes/bs/bs-daterangepicker-container.component';
|
3
|
+
import { ComponentLoaderFactory } from '../component-loader/component-loader.factory';
|
4
|
+
import { BsDatepickerConfig } from './bs-datepicker.config';
|
5
|
+
var BsDaterangepickerComponent = (function () {
|
6
|
+
function BsDaterangepickerComponent(_config, _elementRef, _renderer, _viewContainerRef, cis) {
|
7
|
+
this._config = _config;
|
8
|
+
/**
|
9
|
+
* Placement of a daterangepicker. Accepts: "top", "bottom", "left", "right"
|
10
|
+
*/
|
11
|
+
this.placement = 'bottom';
|
12
|
+
/**
|
13
|
+
* Specifies events that should trigger. Supports a space separated list of
|
14
|
+
* event names.
|
15
|
+
*/
|
16
|
+
this.triggers = 'click';
|
17
|
+
/**
|
18
|
+
* Close daterangepicker on outside click
|
19
|
+
*/
|
20
|
+
this.outsideClick = true;
|
21
|
+
/**
|
22
|
+
* A selector specifying the element the daterangepicker should be appended to.
|
23
|
+
* Currently only supports "body".
|
24
|
+
*/
|
25
|
+
this.container = 'body';
|
26
|
+
/**
|
27
|
+
* Emits when daterangepicker value has been changed
|
28
|
+
*/
|
29
|
+
this.bsValueChange = new EventEmitter();
|
30
|
+
this._subs = [];
|
31
|
+
this._datepicker = cis
|
32
|
+
.createLoader(_elementRef, _viewContainerRef, _renderer);
|
33
|
+
Object.assign(this, _config);
|
34
|
+
this.onShown = this._datepicker.onShown;
|
35
|
+
this.onHidden = this._datepicker.onHidden;
|
36
|
+
}
|
37
|
+
Object.defineProperty(BsDaterangepickerComponent.prototype, "isOpen", {
|
38
|
+
/**
|
39
|
+
* Returns whether or not the daterangepicker is currently being shown
|
40
|
+
*/
|
41
|
+
get: function () {
|
42
|
+
return this._datepicker.isShown;
|
43
|
+
},
|
44
|
+
set: function (value) {
|
45
|
+
if (value) {
|
46
|
+
this.show();
|
47
|
+
}
|
48
|
+
else {
|
49
|
+
this.hide();
|
50
|
+
}
|
51
|
+
},
|
52
|
+
enumerable: true,
|
53
|
+
configurable: true
|
54
|
+
});
|
55
|
+
Object.defineProperty(BsDaterangepickerComponent.prototype, "bsValue", {
|
56
|
+
/**
|
57
|
+
* Initial value of daterangepicker
|
58
|
+
*/
|
59
|
+
set: function (value) {
|
60
|
+
if (this._bsValue === value) {
|
61
|
+
return;
|
62
|
+
}
|
63
|
+
this._bsValue = value;
|
64
|
+
this.bsValueChange.emit(value);
|
65
|
+
},
|
66
|
+
enumerable: true,
|
67
|
+
configurable: true
|
68
|
+
});
|
69
|
+
BsDaterangepickerComponent.prototype.ngOnInit = function () {
|
70
|
+
var _this = this;
|
71
|
+
this._datepicker.listen({
|
72
|
+
outsideClick: this.outsideClick,
|
73
|
+
triggers: this.triggers,
|
74
|
+
show: function () { return _this.show(); }
|
75
|
+
});
|
76
|
+
};
|
77
|
+
BsDaterangepickerComponent.prototype.ngOnChanges = function (changes) {
|
78
|
+
if (!this._datepickerRef || !this._datepickerRef.instance) {
|
79
|
+
return;
|
80
|
+
}
|
81
|
+
if (changes.minDate) {
|
82
|
+
this._datepickerRef.instance.minDate = this.minDate;
|
83
|
+
}
|
84
|
+
if (changes.maxDate) {
|
85
|
+
this._datepickerRef.instance.maxDate = this.maxDate;
|
86
|
+
}
|
87
|
+
if (changes.isDisabled) {
|
88
|
+
this._datepickerRef.instance.isDisabled = this.isDisabled;
|
89
|
+
}
|
90
|
+
};
|
91
|
+
/**
|
92
|
+
* Opens an element’s datepicker. This is considered a “manual” triggering of
|
93
|
+
* the datepicker.
|
94
|
+
*/
|
95
|
+
BsDaterangepickerComponent.prototype.show = function () {
|
96
|
+
var _this = this;
|
97
|
+
if (this._datepicker.isShown) {
|
98
|
+
return;
|
99
|
+
}
|
100
|
+
this._config = Object.assign({}, this._config, { displayMonths: 2 }, this.bsConfig, {
|
101
|
+
value: this._bsValue,
|
102
|
+
isDisabled: this.isDisabled,
|
103
|
+
minDate: this.minDate || this._config.minDate,
|
104
|
+
maxDate: this.maxDate || this._config.maxDate
|
105
|
+
});
|
106
|
+
this._datepickerRef = this._datepicker
|
107
|
+
.provide({ provide: BsDatepickerConfig, useValue: this._config })
|
108
|
+
.attach(BsDaterangepickerContainerComponent)
|
109
|
+
.to(this.container)
|
110
|
+
.position({ attachment: this.placement })
|
111
|
+
.show({ placement: this.placement });
|
112
|
+
// if date changes from external source (model -> view)
|
113
|
+
this._subs.push(this.bsValueChange.subscribe(function (value) {
|
114
|
+
_this._datepickerRef.instance.value = value;
|
115
|
+
}));
|
116
|
+
// if date changes from picker (view -> model)
|
117
|
+
this._subs.push(this._datepickerRef.instance
|
118
|
+
.valueChange
|
119
|
+
.filter(function (range) { return range && range[0] && !!range[1]; })
|
120
|
+
.subscribe(function (value) {
|
121
|
+
_this.bsValue = value;
|
122
|
+
_this.hide();
|
123
|
+
}));
|
124
|
+
};
|
125
|
+
/**
|
126
|
+
* Closes an element’s datepicker. This is considered a “manual” triggering of
|
127
|
+
* the datepicker.
|
128
|
+
*/
|
129
|
+
BsDaterangepickerComponent.prototype.hide = function () {
|
130
|
+
if (this.isOpen) {
|
131
|
+
this._datepicker.hide();
|
132
|
+
}
|
133
|
+
for (var _i = 0, _a = this._subs; _i < _a.length; _i++) {
|
134
|
+
var sub = _a[_i];
|
135
|
+
sub.unsubscribe();
|
136
|
+
}
|
137
|
+
};
|
138
|
+
/**
|
139
|
+
* Toggles an element’s datepicker. This is considered a “manual” triggering of
|
140
|
+
* the datepicker.
|
141
|
+
*/
|
142
|
+
BsDaterangepickerComponent.prototype.toggle = function () {
|
143
|
+
if (this.isOpen) {
|
144
|
+
return this.hide();
|
145
|
+
}
|
146
|
+
this.show();
|
147
|
+
};
|
148
|
+
BsDaterangepickerComponent.prototype.ngOnDestroy = function () {
|
149
|
+
this._datepicker.dispose();
|
150
|
+
};
|
151
|
+
BsDaterangepickerComponent.decorators = [
|
152
|
+
{ type: Component, args: [{
|
153
|
+
selector: 'bs-daterangepicker,[bsDaterangepicker]',
|
154
|
+
exportAs: 'bsDaterangepicker',
|
155
|
+
template: ' '
|
156
|
+
},] },
|
157
|
+
];
|
158
|
+
/** @nocollapse */
|
159
|
+
BsDaterangepickerComponent.ctorParameters = function () { return [
|
160
|
+
{ type: BsDatepickerConfig, },
|
161
|
+
{ type: ElementRef, },
|
162
|
+
{ type: Renderer, },
|
163
|
+
{ type: ViewContainerRef, },
|
164
|
+
{ type: ComponentLoaderFactory, },
|
165
|
+
]; };
|
166
|
+
BsDaterangepickerComponent.propDecorators = {
|
167
|
+
'placement': [{ type: Input },],
|
168
|
+
'triggers': [{ type: Input },],
|
169
|
+
'outsideClick': [{ type: Input },],
|
170
|
+
'container': [{ type: Input },],
|
171
|
+
'isOpen': [{ type: Input },],
|
172
|
+
'onShown': [{ type: Output },],
|
173
|
+
'onHidden': [{ type: Output },],
|
174
|
+
'bsValue': [{ type: Input },],
|
175
|
+
'bsConfig': [{ type: Input },],
|
176
|
+
'isDisabled': [{ type: Input },],
|
177
|
+
'minDate': [{ type: Input },],
|
178
|
+
'maxDate': [{ type: Input },],
|
179
|
+
'bsValueChange': [{ type: Output },],
|
180
|
+
};
|
181
|
+
return BsDaterangepickerComponent;
|
182
|
+
}());
|
183
|
+
export { BsDaterangepickerComponent };
|
184
|
+
//# sourceMappingURL=bs-daterangepicker.component.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../.tmp/datepicker/bs-daterangepicker.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAAE,YAAA,EAAc,KAAA,EAA0B,MAAA,EAAsB,UAAA,EACzE,QAAQ,EACR,gBAAgB,EACjB,MAAM,eAAA,CAAgB;AACvB,OAAO,EAAE,mCAAA,EAAoC,MAAO,oDAAA,CAAqD;AAEzG,OAAO,EAAE,sBAAA,EAAuB,MAAO,8CAAA,CAA+C;AAEtF,OAAO,EAAE,kBAAA,EAAmB,MAAO,wBAAA,CAAyB;AAG5D;IA6EE,oCAAmB,OAA2B,EAClC,WAAuB,EACvB,SAAmB,EACnB,iBAAmC,EACnC,GAA2B;QAJpB,YAAO,GAAP,OAAO,CAAoB;QA5E9C;;WAEG;QACF,cAAS,GAAwC,QAAQ,CAAC;QAC3D;;;WAGG;QACF,aAAQ,GAAG,OAAO,CAAC;QACpB;;WAEG;QACF,iBAAY,GAAG,IAAI,CAAC;QACrB;;;WAGG;QACF,cAAS,GAAG,MAAM,CAAC;QAiDpB;;WAEG;QACF,kBAAa,GAAyB,IAAI,YAAY,EAAE,CAAC;QAEhD,UAAK,GAAmB,EAAE,CAAC;QAUnC,IAAI,CAAC,WAAW,GAAG,GAAG;aACnB,YAAY,CAAsC,WAAW,EAAE,iBAAiB,EAAE,SAAS,CAAC,CAAC;QAChG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,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QAC7B,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;KACnC,CAAC;IACF,iCAAC;CAvND,AAuNC,IAAA;SAvNY,0BAA0B","file":"bs-daterangepicker.component.js","sourceRoot":"","sourcesContent":["import {\n Component, EventEmitter, Input, OnDestroy, OnInit, Output, ComponentRef, ElementRef,\n Renderer,\n ViewContainerRef, SimpleChanges, OnChanges\n} from '@angular/core';\nimport { BsDaterangepickerContainerComponent } from './themes/bs/bs-daterangepicker-container.component';\nimport { Subscription } from 'rxjs/Subscription';\nimport { ComponentLoaderFactory } from '../component-loader/component-loader.factory';\nimport { ComponentLoader } from '../component-loader/component-loader.class';\nimport { BsDatepickerConfig } from './bs-datepicker.config';\n\n\nexport class BsDaterangepickerComponent implements OnInit, OnDestroy, OnChanges {\n /**\n * Placement of a daterangepicker. Accepts: \"top\", \"bottom\", \"left\", \"right\"\n */\n placement: 'top' | 'bottom' | 'left' | 'right' = 'bottom';\n /**\n * Specifies events that should trigger. Supports a space separated list of\n * event names.\n */\n triggers = 'click';\n /**\n * Close daterangepicker on outside click\n */\n outsideClick = true;\n /**\n * A selector specifying the element the daterangepicker should be appended to.\n * Currently only supports \"body\".\n */\n container = 'body';\n\n /**\n * Returns whether or not the daterangepicker is currently being shown\n */\n \n public get isOpen(): boolean {\n return this._datepicker.isShown;\n }\n\n public set isOpen(value: boolean) {\n if (value) { this.show(); } else { this.hide(); }\n }\n\n /**\n * Emits an event when the daterangepicker is shown\n */\n onShown: EventEmitter<any>;\n /**\n * Emits an event when the daterangepicker is hidden\n */\n onHidden: EventEmitter<any>;\n\n _bsValue: Date[];\n /**\n * Initial value of daterangepicker\n */\n \n set bsValue(value: Date[]) {\n if (this._bsValue === value) { return; }\n this._bsValue = value;\n this.bsValueChange.emit(value);\n }\n /**\n * Config object for daterangepicker\n */\n bsConfig: Partial<BsDatepickerConfig>;\n /**\n * Indicates whether daterangepicker is enabled or not\n */\n isDisabled: boolean;\n /**\n * Minimum date which is available for selection\n */\n minDate: Date;\n /**\n * Maximum date which is available for selection\n */\n maxDate: Date;\n /**\n * Emits when daterangepicker value has been changed\n */\n bsValueChange: EventEmitter<Date[]> = new EventEmitter();\n\n protected _subs: Subscription[] = [];\n\n private _datepicker: ComponentLoader<BsDaterangepickerContainerComponent>;\n private _datepickerRef: ComponentRef<BsDaterangepickerContainerComponent>;\n\n constructor(public _config: BsDatepickerConfig,\n _elementRef: ElementRef,\n _renderer: Renderer,\n _viewContainerRef: ViewContainerRef,\n cis: ComponentLoaderFactory) {\n this._datepicker = cis\n .createLoader<BsDaterangepickerContainerComponent>(_elementRef, _viewContainerRef, _renderer);\n Object.assign(this, _config);\n this.onShown = this._datepicker.onShown;\n this.onHidden = this._datepicker.onHidden;\n }\n\n ngOnInit(): any {\n this._datepicker.listen({\n outsideClick: this.outsideClick,\n triggers: this.triggers,\n show: () => this.show()\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (!this._datepickerRef || !this._datepickerRef.instance) {\n return;\n }\n\n if (changes.minDate) {\n this._datepickerRef.instance.minDate = this.minDate;\n }\n\n if (changes.maxDate) {\n this._datepickerRef.instance.maxDate = this.maxDate;\n }\n\n if (changes.isDisabled) {\n this._datepickerRef.instance.isDisabled = this.isDisabled;\n }\n }\n\n /**\n * Opens an element’s datepicker. This is considered a “manual” triggering of\n * the datepicker.\n */\n show(): void {\n if (this._datepicker.isShown) {\n return;\n }\n\n this._config = Object.assign({},\n this._config,\n {displayMonths: 2},\n this.bsConfig,\n {\n value: this._bsValue,\n isDisabled: this.isDisabled,\n minDate: this.minDate || this._config.minDate,\n maxDate: this.maxDate || this._config.maxDate\n });\n\n this._datepickerRef = this._datepicker\n .provide({provide: BsDatepickerConfig, useValue: this._config})\n .attach(BsDaterangepickerContainerComponent)\n .to(this.container)\n .position({attachment: this.placement})\n .show({placement: this.placement});\n\n // if date changes from external source (model -> view)\n this._subs.push(this.bsValueChange.subscribe((value: Date[]) => {\n this._datepickerRef.instance.value = value;\n }));\n\n // if date changes from picker (view -> model)\n this._subs.push(this._datepickerRef.instance\n .valueChange\n .filter((range: Date[]) => range && range[0] && !!range[1])\n .subscribe((value: Date[]) => {\n this.bsValue = value;\n this.hide();\n }));\n }\n\n /**\n * Closes an element’s datepicker. This is considered a “manual” triggering of\n * the datepicker.\n */\n hide(): void {\n if (this.isOpen) {\n this._datepicker.hide();\n }\n for (const sub of this._subs) {\n sub.unsubscribe();\n }\n }\n\n /**\n * Toggles an element’s datepicker. This is considered a “manual” triggering of\n * the datepicker.\n */\n toggle(): void {\n if (this.isOpen) {\n return this.hide();\n }\n\n this.show();\n }\n\n ngOnDestroy(): any {\n this._datepicker.dispose();\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'bs-daterangepicker,[bsDaterangepicker]',\n exportAs: 'bsDaterangepicker',\n template: ' '\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: BsDatepickerConfig, },\n{type: ElementRef, },\n{type: Renderer, },\n{type: ViewContainerRef, },\n{type: ComponentLoaderFactory, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'placement': [{ type: Input },],\n'triggers': [{ type: Input },],\n'outsideClick': [{ type: Input },],\n'container': [{ type: Input },],\n'isOpen': [{ type: Input },],\n'onShown': [{ type: Output },],\n'onHidden': [{ type: Output },],\n'bsValue': [{ type: Input },],\n'bsConfig': [{ type: Input },],\n'isDisabled': [{ type: Input },],\n'minDate': [{ type: Input },],\n'maxDate': [{ type: Input },],\n'bsValueChange': [{ type: Output },],\n};\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
[{"__symbolic":"module","version":3,"metadata":{"BsDaterangepickerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"bs-daterangepicker,[bsDaterangepicker]","exportAs":"bsDaterangepicker","template":" "}]}],"members":{"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"triggers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"outsideClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onShown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onHidden":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"bsValue":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bsConfig":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bsValueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./bs-datepicker.config","name":"BsDatepickerConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer"},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","module":"../component-loader/component-loader.factory","name":"ComponentLoaderFactory"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"BsDaterangepickerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"bs-daterangepicker,[bsDaterangepicker]","exportAs":"bsDaterangepicker","template":" "}]}],"members":{"placement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"triggers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"outsideClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onShown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"onHidden":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"bsValue":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bsConfig":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bsValueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./bs-datepicker.config","name":"BsDatepickerConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer"},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","module":"../component-loader/component-loader.factory","name":"ComponentLoaderFactory"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}]
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import { formatDate } from '../bs-moment/format';
|
2
|
+
var DateFormatter = (function () {
|
3
3
|
function DateFormatter() {
|
4
4
|
}
|
5
|
-
DateFormatter.prototype.format = function (date, format) {
|
6
|
-
return
|
5
|
+
DateFormatter.prototype.format = function (date, format, locale) {
|
6
|
+
return formatDate(date, format, locale);
|
7
7
|
};
|
8
8
|
return DateFormatter;
|
9
9
|
}());
|
10
|
+
export { DateFormatter };
|
10
11
|
//# sourceMappingURL=date-formatter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../.tmp/datepicker/date-formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;IAAA;IAIA,CAAC;IAHQ,8BAAM,GAAb,UAAc,IAAU,EAAE,MAAc,EAAE,MAAc;QACtD,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;IACH,oBAAC;AAAD,CAJA,AAIC,IAAA","file":"date-formatter.js","sourceRoot":"","sourcesContent":["import { formatDate } from '../bs-moment/format';\n\nexport class DateFormatter {\n public format(date: Date, format: string, locale: string): string {\n return formatDate(date, format, locale);\n }\n}\n"]}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
2
2
|
import { DateFormatter } from './date-formatter';
|
3
3
|
export declare class DatePickerInnerComponent implements OnInit, OnChanges {
|
4
|
+
locale: string;
|
4
5
|
datepickerMode: string;
|
5
6
|
startingDay: number;
|
6
7
|
yearRange: number;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* tslint:disable:max-file-line-count */
|
1
2
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
2
3
|
import { DateFormatter } from './date-formatter';
|
3
4
|
// const MIN_DATE:Date = void 0;
|
@@ -17,7 +18,7 @@ import { DateFormatter } from './date-formatter';
|
|
17
18
|
40: 'down'
|
18
19
|
};
|
19
20
|
*/
|
20
|
-
|
21
|
+
var DatePickerInnerComponent = (function () {
|
21
22
|
function DatePickerInnerComponent() {
|
22
23
|
this.selectionDone = new EventEmitter(undefined);
|
23
24
|
this.update = new EventEmitter(false);
|
@@ -115,7 +116,7 @@ export var DatePickerInnerComponent = (function () {
|
|
115
116
|
}
|
116
117
|
};
|
117
118
|
DatePickerInnerComponent.prototype.dateFilter = function (date, format) {
|
118
|
-
return this.dateFormatter.format(date, format);
|
119
|
+
return this.dateFormatter.format(date, format, this.locale);
|
119
120
|
};
|
120
121
|
DatePickerInnerComponent.prototype.isActive = function (dateObject) {
|
121
122
|
if (this.compare(dateObject.date, this.activeDate) === 0) {
|
@@ -250,6 +251,7 @@ export var DatePickerInnerComponent = (function () {
|
|
250
251
|
/** @nocollapse */
|
251
252
|
DatePickerInnerComponent.ctorParameters = function () { return []; };
|
252
253
|
DatePickerInnerComponent.propDecorators = {
|
254
|
+
'locale': [{ type: Input },],
|
253
255
|
'datepickerMode': [{ type: Input },],
|
254
256
|
'startingDay': [{ type: Input },],
|
255
257
|
'yearRange': [{ type: Input },],
|
@@ -278,4 +280,5 @@ export var DatePickerInnerComponent = (function () {
|
|
278
280
|
};
|
279
281
|
return DatePickerInnerComponent;
|
280
282
|
}());
|
283
|
+
export { DatePickerInnerComponent };
|
281
284
|
//# sourceMappingURL=datepicker-inner.component.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"datepicker-inner.component.js","sourceRoot":"","sources":["../../src/datepicker/datepicker-inner.component.ts"],"names":[],"mappings":"OACO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAqB,MAAM,EAAiB,MAAM,eAAe;OAEjG,EAAE,aAAa,EAAE,MAAM,kBAAkB;AAEhD,gCAAgC;AAChC,gCAAgC;AAChC,0EAA0E;AAE1E;;;;;;;;;;;;;GAaG;AAGH;IAAA;QAwBU,kBAAa,GAAuB,IAAI,YAAY,CAAO,SAAS,CAAC,CAAC;QAEtE,WAAM,GAAuB,IAAI,YAAY,CAAO,KAAK,CAAC,CAAC;QAE3D,qBAAgB,GAAuB,IAAI,YAAY,CAAO,SAAS,CAAC,CAAC;QAE1E,YAAO,GAAQ,EAAE,CAAC;QAClB,cAAS,GAAQ,EAAE,CAAC;QACpB,aAAQ,GAAQ,EAAE,CAAC;QAEhB,UAAK,GAAa,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC3C,kBAAa,GAAkB,IAAI,aAAa,EAAE,CAAC;IA8S/D,CAAC;IAhSC,sBAAW,gDAAU;aAArB;YACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;QAC1B,CAAC;aAED,UAAsB,KAAW;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AI,EAAE,KAAK,EAAE,EAAE;QACtC,qBAAqB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACzC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACjC,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACnC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAClC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAClC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAC9B,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACpC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAC7B,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACvC,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;KAC/B,CAAC;IACF,+BAAC;AAAD,CAAC,AAjVD,IAiVC","sourcesContent":["/* tslint:disable:max-file-line-count */\nimport { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';\n\nimport { DateFormatter } from './date-formatter';\n\n// const MIN_DATE:Date = void 0;\n// const MAX_DATE:Date = void 0;\n// const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\n/*\n const KEYS = {\n 13: 'enter',\n 32: 'space',\n 33: 'pageup',\n 34: 'pagedown',\n 35: 'end',\n 36: 'home',\n 37: 'left',\n 38: 'up',\n 39: 'right',\n 40: 'down'\n };\n */\n\n\nexport class DatePickerInnerComponent implements OnInit, OnChanges {\n public datepickerMode: string;\n public startingDay: number;\n public yearRange: number;\n\n public minDate: Date;\n public maxDate: Date;\n public minMode: string;\n public maxMode: string;\n public showWeeks: boolean;\n public formatDay: string;\n public formatMonth: string;\n public formatYear: string;\n public formatDayHeader: string;\n public formatDayTitle: string;\n public formatMonthTitle: string;\n public onlyCurrentMonth: boolean;\n public shortcutPropagation: boolean;\n public customClass: { date: Date, mode: string, clazz: string }[];\n public monthColLimit: number;\n public yearColLimit: number;\n public dateDisabled: { date: Date, mode: string }[];\n public initDate: Date;\n\n public selectionDone: EventEmitter<Date> = new EventEmitter<Date>(undefined);\n\n public update: EventEmitter<Date> = new EventEmitter<Date>(false);\n\n public activeDateChange: EventEmitter<Date> = new EventEmitter<Date>(undefined);\n\n public stepDay: any = {};\n public stepMonth: any = {};\n public stepYear: any = {};\n\n protected modes: string[] = ['day', 'month', 'year'];\n protected dateFormatter: DateFormatter = new DateFormatter();\n protected uniqueId: string;\n protected _activeDate: Date;\n protected selectedDate: Date;\n protected activeDateId: string;\n\n protected refreshViewHandlerDay: Function;\n protected compareHandlerDay: Function;\n protected refreshViewHandlerMonth: Function;\n protected compareHandlerMonth: Function;\n protected refreshViewHandlerYear: Function;\n protected compareHandlerYear: Function;\n\n \n public get activeDate(): Date {\n return this._activeDate;\n }\n\n public set activeDate(value: Date) {\n this._activeDate = value;\n }\n\n // todo: add formatter value to Date object\n public ngOnInit(): void {\n // todo: use date for unique value\n this.uniqueId = 'datepicker-' + '-' + Math.floor(Math.random() * 10000);\n\n if (this.initDate) {\n this.activeDate = this.initDate;\n this.selectedDate = new Date(this.activeDate.valueOf() as number);\n this.update.emit(this.activeDate);\n } else if (this.activeDate === undefined) {\n this.activeDate = new Date();\n }\n }\n\n // this.refreshView should be called here to reflect the changes on the fly\n // tslint:disable-next-line:no-unused-variable\n public ngOnChanges(changes: SimpleChanges): void {\n this.refreshView();\n this.checkIfActiveDateGotUpdated(changes['activeDate']);\n }\n\n // Check if activeDate has been update and then emit the activeDateChange with the new date\n private checkIfActiveDateGotUpdated(activeDate: any): void {\n\t\tif (activeDate && !activeDate.firstChange) {\n\t\t\tlet previousValue = activeDate.previousValue;\n\t\t\tif (previousValue && previousValue instanceof Date && previousValue.getTime() !== activeDate.currentValue.getTime()) {\n\t\t\t\tthis.activeDateChange.emit(this.activeDate);\n\t\t\t}\n\t\t}\n }\n\n public setCompareHandler(handler: Function, type: string): void {\n if (type === 'day') {\n this.compareHandlerDay = handler;\n }\n\n if (type === 'month') {\n this.compareHandlerMonth = handler;\n }\n\n if (type === 'year') {\n this.compareHandlerYear = handler;\n }\n }\n\n public compare(date1: Date, date2: Date): number | undefined {\n if (date1 === undefined || date2 === undefined) {\n return undefined;\n }\n\n if (this.datepickerMode === 'day' && this.compareHandlerDay) {\n return this.compareHandlerDay(date1, date2);\n }\n\n if (this.datepickerMode === 'month' && this.compareHandlerMonth) {\n return this.compareHandlerMonth(date1, date2);\n }\n\n if (this.datepickerMode === 'year' && this.compareHandlerYear) {\n return this.compareHandlerYear(date1, date2);\n }\n\n return void 0;\n }\n\n public setRefreshViewHandler(handler: Function, type: string): void {\n if (type === 'day') {\n this.refreshViewHandlerDay = handler;\n }\n\n if (type === 'month') {\n this.refreshViewHandlerMonth = handler;\n }\n\n if (type === 'year') {\n this.refreshViewHandlerYear = handler;\n }\n }\n\n public refreshView(): void {\n if (this.datepickerMode === 'day' && this.refreshViewHandlerDay) {\n this.refreshViewHandlerDay();\n }\n\n if (this.datepickerMode === 'month' && this.refreshViewHandlerMonth) {\n this.refreshViewHandlerMonth();\n }\n\n if (this.datepickerMode === 'year' && this.refreshViewHandlerYear) {\n this.refreshViewHandlerYear();\n }\n }\n\n public dateFilter(date: Date, format: string): string {\n return this.dateFormatter.format(date, format);\n }\n\n public isActive(dateObject: any): boolean {\n if (this.compare(dateObject.date, this.activeDate) === 0) {\n this.activeDateId = dateObject.uid;\n return true;\n }\n\n return false;\n }\n\n public createDateObject(date: Date, format: string): any {\n let dateObject: any = {};\n dateObject.date = new Date(date.getFullYear(), date.getMonth(), date.getDate());\n dateObject.label = this.dateFilter(date, format);\n dateObject.selected = this.compare(date, this.selectedDate) === 0;\n dateObject.disabled = this.isDisabled(date);\n dateObject.current = this.compare(date, new Date()) === 0;\n dateObject.customClass = this.getCustomClassForDate(dateObject.date);\n return dateObject;\n }\n\n public split(arr: any[], size: number): any[] {\n let arrays: any[] = [];\n while (arr.length > 0) {\n arrays.push(arr.splice(0, size));\n }\n return arrays;\n }\n\n // Fix a hard-reproducible bug with timezones\n // The bug depends on OS, browser, current timezone and current date\n // i.e.\n // var date = new Date(2014, 0, 1);\n // console.log(date.getFullYear(), date.getMonth(), date.getDate(),\n // date.getHours()); can result in \"2013 11 31 23\" because of the bug.\n public fixTimeZone(date: Date): Date {\n let hours = date.getHours();\n return new Date(date.getFullYear(), date.getMonth(), date.getDate(), hours === 23 ? hours + 2 : 0);\n }\n\n public select(date: Date, isManual: boolean = true): void {\n if (this.datepickerMode === this.minMode) {\n if (!this.activeDate) {\n this.activeDate = new Date(0, 0, 0, 0, 0, 0, 0);\n }\n\n this.activeDate = new Date(date.getFullYear(), date.getMonth(), date.getDate());\n if (isManual) {\n this.selectionDone.emit(this.activeDate);\n }\n } else {\n this.activeDate = new Date(date.getFullYear(), date.getMonth(), date.getDate());\n if (isManual) {\n this.datepickerMode = this.modes[this.modes.indexOf(this.datepickerMode) - 1];\n }\n }\n\n this.selectedDate = new Date(this.activeDate.valueOf() as number);\n this.update.emit(this.activeDate);\n this.refreshView();\n }\n\n public move(direction: number): void {\n let expectedStep: any;\n if (this.datepickerMode === 'day') {\n expectedStep = this.stepDay;\n }\n\n if (this.datepickerMode === 'month') {\n expectedStep = this.stepMonth;\n }\n\n if (this.datepickerMode === 'year') {\n expectedStep = this.stepYear;\n }\n\n if (expectedStep) {\n let year = this.activeDate.getFullYear() + direction * (expectedStep.years || 0);\n let month = this.activeDate.getMonth() + direction * (expectedStep.months || 0);\n this.activeDate = new Date(year, month, 1);\n\n this.refreshView();\n this.activeDateChange.emit(this.activeDate);\n }\n }\n\n public toggleMode(direction: number): void {\n direction = direction || 1;\n\n if ((this.datepickerMode === this.maxMode && direction === 1) ||\n (this.datepickerMode === this.minMode && direction === -1)) {\n return;\n }\n\n this.datepickerMode = this.modes[this.modes.indexOf(this.datepickerMode) + direction];\n this.refreshView();\n }\n\n protected getCustomClassForDate(date: Date): string {\n if (!this.customClass) {\n return '';\n }\n // todo: build a hash of custom classes, it will work faster\n const customClassObject: { date: Date, mode: string, clazz: string } = this.customClass\n .find((customClass: any) => {\n return customClass.date.valueOf() === date.valueOf() &&\n customClass.mode === this.datepickerMode;\n }, this);\n return customClassObject === undefined ? '' : customClassObject.clazz;\n }\n\n protected compareDateDisabled(date1Disabled: { date: Date, mode: string }, date2: Date): number {\n if (date1Disabled === undefined || date2 === undefined) {\n return undefined;\n }\n\n if (date1Disabled.mode === 'day' && this.compareHandlerDay) {\n return this.compareHandlerDay(date1Disabled.date, date2);\n }\n\n if (date1Disabled.mode === 'month' && this.compareHandlerMonth) {\n return this.compareHandlerMonth(date1Disabled.date, date2);\n }\n\n if (date1Disabled.mode === 'year' && this.compareHandlerYear) {\n return this.compareHandlerYear(date1Disabled.date, date2);\n }\n\n return undefined;\n }\n\n protected isDisabled(date: Date): boolean {\n let isDateDisabled: boolean = false;\n if (this.dateDisabled) {\n this.dateDisabled.forEach((disabledDate: { date: Date, mode: string }) => {\n if (this.compareDateDisabled(disabledDate, date) === 0) {\n isDateDisabled = true;\n }\n });\n }\n\n return (isDateDisabled || (this.minDate && this.compare(date, this.minDate) < 0) ||\n (this.maxDate && this.compare(date, this.maxDate) > 0));\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'datepicker-inner',\n template: `\n <div *ngIf=\"datepickerMode\" class=\"well well-sm bg-faded p-a card\" role=\"application\" ><!--<!–ng-keydown=\"keydown($event)\"–>-->\n <ng-content></ng-content>\n </div>\n `\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'datepickerMode': [{ type: Input },],\n'startingDay': [{ type: Input },],\n'yearRange': [{ type: Input },],\n'minDate': [{ type: Input },],\n'maxDate': [{ type: Input },],\n'minMode': [{ type: Input },],\n'maxMode': [{ type: Input },],\n'showWeeks': [{ type: Input },],\n'formatDay': [{ type: Input },],\n'formatMonth': [{ type: Input },],\n'formatYear': [{ type: Input },],\n'formatDayHeader': [{ type: Input },],\n'formatDayTitle': [{ type: Input },],\n'formatMonthTitle': [{ type: Input },],\n'onlyCurrentMonth': [{ type: Input },],\n'shortcutPropagation': [{ type: Input },],\n'customClass': [{ type: Input },],\n'monthColLimit': [{ type: Input },],\n'yearColLimit': [{ type: Input },],\n'dateDisabled': [{ type: Input },],\n'initDate': [{ type: Input },],\n'selectionDone': [{ type: Output },],\n'update': [{ type: Output },],\n'activeDateChange': [{ type: Output },],\n'activeDate': [{ type: Input },],\n};\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
1
|
+
{"version":3,"sources":["../../.tmp/datepicker/datepicker-inner.component.ts"],"names":[],"mappings":"AAAA,wCAAC;AACD,OAAO,EAAE,SAAA,EAAW,YAAA,EAAc,KAAA,EAA0B,MAAA,EAAsB,MAAO,eAAA,CAAgB;AAEzG,OAAO,EAAE,aAAA,EAAc,MAAO,kBAAA,CAAmB;AAEjD,gCAAgC;AAChC,gCAAgC;AAChC,0EAA0E;AAE1E;;;;;;;;;;;;;GAaG;AAGH;IAAA;QAyBU,kBAAa,GAAuB,IAAI,YAAY,CAAO,SAAS,CAAC,CAAC;QAEtE,WAAM,GAAuB,IAAI,YAAY,CAAO,KAAK,CAAC,CAAC;QAE3D,qBAAgB,GAAuB,IAAI,YAAY,CAAO,SAAS,CAAC,CAAC;QAE1E,YAAO,GAAQ,EAAE,CAAC;QAClB,cAAS,GAAQ,EAAE,CAAC;QACpB,aAAQ,GAAQ,EAAE,CAAC;QAEhB,UAAK,GAAa,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC3C,kBAAa,GAAkB,IAAI,aAAa,EAAE,C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E,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACrC,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACpC,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACtC,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACtC,qBAAqB,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACzC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACjC,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACnC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAClC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAClC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAC9B,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACpC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAC7B,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QACvC,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;KAC/B,CAAC;IACF,+BAAC;CAnVD,AAmVC,IAAA;SAnVY,wBAAwB","file":"datepicker-inner.component.js","sourceRoot":"","sourcesContent":["/* tslint:disable:max-file-line-count */\nimport { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';\n\nimport { DateFormatter } from './date-formatter';\n\n// const MIN_DATE:Date = void 0;\n// const MAX_DATE:Date = void 0;\n// const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\n/*\n const KEYS = {\n 13: 'enter',\n 32: 'space',\n 33: 'pageup',\n 34: 'pagedown',\n 35: 'end',\n 36: 'home',\n 37: 'left',\n 38: 'up',\n 39: 'right',\n 40: 'down'\n };\n */\n\n\nexport class DatePickerInnerComponent implements OnInit, OnChanges {\n locale: string;\n public datepickerMode: string;\n public startingDay: number;\n public yearRange: number;\n\n public minDate: Date;\n public maxDate: Date;\n public minMode: string;\n public maxMode: string;\n public showWeeks: boolean;\n public formatDay: string;\n public formatMonth: string;\n public formatYear: string;\n public formatDayHeader: string;\n public formatDayTitle: string;\n public formatMonthTitle: string;\n public onlyCurrentMonth: boolean;\n public shortcutPropagation: boolean;\n public customClass: { date: Date, mode: string, clazz: string }[];\n public monthColLimit: number;\n public yearColLimit: number;\n public dateDisabled: { date: Date, mode: string }[];\n public initDate: Date;\n\n public selectionDone: EventEmitter<Date> = new EventEmitter<Date>(undefined);\n\n public update: EventEmitter<Date> = new EventEmitter<Date>(false);\n\n public activeDateChange: EventEmitter<Date> = new EventEmitter<Date>(undefined);\n\n public stepDay: any = {};\n public stepMonth: any = {};\n public stepYear: any = {};\n\n protected modes: string[] = ['day', 'month', 'year'];\n protected dateFormatter: DateFormatter = new DateFormatter();\n protected uniqueId: string;\n protected _activeDate: Date;\n protected selectedDate: Date;\n protected activeDateId: string;\n\n protected refreshViewHandlerDay: Function;\n protected compareHandlerDay: Function;\n protected refreshViewHandlerMonth: Function;\n protected compareHandlerMonth: Function;\n protected refreshViewHandlerYear: Function;\n protected compareHandlerYear: Function;\n\n \n public get activeDate(): Date {\n return this._activeDate;\n }\n\n public set activeDate(value: Date) {\n this._activeDate = value;\n }\n\n // todo: add formatter value to Date object\n public ngOnInit(): void {\n // todo: use date for unique value\n this.uniqueId = 'datepicker-' + '-' + Math.floor(Math.random() * 10000);\n\n if (this.initDate) {\n this.activeDate = this.initDate;\n this.selectedDate = new Date(this.activeDate.valueOf() as number);\n this.update.emit(this.activeDate);\n } else if (this.activeDate === undefined) {\n this.activeDate = new Date();\n }\n }\n\n // this.refreshView should be called here to reflect the changes on the fly\n // tslint:disable-next-line:no-unused-variable\n public ngOnChanges(changes: SimpleChanges): void {\n this.refreshView();\n this.checkIfActiveDateGotUpdated(changes['activeDate']);\n }\n\n // Check if activeDate has been update and then emit the activeDateChange with the new date\n private checkIfActiveDateGotUpdated(activeDate: any): void {\n\t\tif (activeDate && !activeDate.firstChange) {\n\t\t\tlet previousValue = activeDate.previousValue;\n\t\t\tif (previousValue && previousValue instanceof Date && previousValue.getTime() !== activeDate.currentValue.getTime()) {\n\t\t\t\tthis.activeDateChange.emit(this.activeDate);\n\t\t\t}\n\t\t}\n }\n\n public setCompareHandler(handler: Function, type: string): void {\n if (type === 'day') {\n this.compareHandlerDay = handler;\n }\n\n if (type === 'month') {\n this.compareHandlerMonth = handler;\n }\n\n if (type === 'year') {\n this.compareHandlerYear = handler;\n }\n }\n\n public compare(date1: Date, date2: Date): number | undefined {\n if (date1 === undefined || date2 === undefined) {\n return undefined;\n }\n\n if (this.datepickerMode === 'day' && this.compareHandlerDay) {\n return this.compareHandlerDay(date1, date2);\n }\n\n if (this.datepickerMode === 'month' && this.compareHandlerMonth) {\n return this.compareHandlerMonth(date1, date2);\n }\n\n if (this.datepickerMode === 'year' && this.compareHandlerYear) {\n return this.compareHandlerYear(date1, date2);\n }\n\n return void 0;\n }\n\n public setRefreshViewHandler(handler: Function, type: string): void {\n if (type === 'day') {\n this.refreshViewHandlerDay = handler;\n }\n\n if (type === 'month') {\n this.refreshViewHandlerMonth = handler;\n }\n\n if (type === 'year') {\n this.refreshViewHandlerYear = handler;\n }\n }\n\n public refreshView(): void {\n if (this.datepickerMode === 'day' && this.refreshViewHandlerDay) {\n this.refreshViewHandlerDay();\n }\n\n if (this.datepickerMode === 'month' && this.refreshViewHandlerMonth) {\n this.refreshViewHandlerMonth();\n }\n\n if (this.datepickerMode === 'year' && this.refreshViewHandlerYear) {\n this.refreshViewHandlerYear();\n }\n }\n\n public dateFilter(date: Date, format: string): string {\n return this.dateFormatter.format(date, format, this.locale);\n }\n\n public isActive(dateObject: any): boolean {\n if (this.compare(dateObject.date, this.activeDate) === 0) {\n this.activeDateId = dateObject.uid;\n return true;\n }\n\n return false;\n }\n\n public createDateObject(date: Date, format: string): any {\n let dateObject: any = {};\n dateObject.date = new Date(date.getFullYear(), date.getMonth(), date.getDate());\n dateObject.label = this.dateFilter(date, format);\n dateObject.selected = this.compare(date, this.selectedDate) === 0;\n dateObject.disabled = this.isDisabled(date);\n dateObject.current = this.compare(date, new Date()) === 0;\n dateObject.customClass = this.getCustomClassForDate(dateObject.date);\n return dateObject;\n }\n\n public split(arr: any[], size: number): any[] {\n let arrays: any[] = [];\n while (arr.length > 0) {\n arrays.push(arr.splice(0, size));\n }\n return arrays;\n }\n\n // Fix a hard-reproducible bug with timezones\n // The bug depends on OS, browser, current timezone and current date\n // i.e.\n // var date = new Date(2014, 0, 1);\n // console.log(date.getFullYear(), date.getMonth(), date.getDate(),\n // date.getHours()); can result in \"2013 11 31 23\" because of the bug.\n public fixTimeZone(date: Date): Date {\n let hours = date.getHours();\n return new Date(date.getFullYear(), date.getMonth(), date.getDate(), hours === 23 ? hours + 2 : 0);\n }\n\n public select(date: Date, isManual: boolean = true): void {\n if (this.datepickerMode === this.minMode) {\n if (!this.activeDate) {\n this.activeDate = new Date(0, 0, 0, 0, 0, 0, 0);\n }\n\n this.activeDate = new Date(date.getFullYear(), date.getMonth(), date.getDate());\n if (isManual) {\n this.selectionDone.emit(this.activeDate);\n }\n } else {\n this.activeDate = new Date(date.getFullYear(), date.getMonth(), date.getDate());\n if (isManual) {\n this.datepickerMode = this.modes[this.modes.indexOf(this.datepickerMode) - 1];\n }\n }\n\n this.selectedDate = new Date(this.activeDate.valueOf() as number);\n this.update.emit(this.activeDate);\n this.refreshView();\n }\n\n public move(direction: number): void {\n let expectedStep: any;\n if (this.datepickerMode === 'day') {\n expectedStep = this.stepDay;\n }\n\n if (this.datepickerMode === 'month') {\n expectedStep = this.stepMonth;\n }\n\n if (this.datepickerMode === 'year') {\n expectedStep = this.stepYear;\n }\n\n if (expectedStep) {\n let year = this.activeDate.getFullYear() + direction * (expectedStep.years || 0);\n let month = this.activeDate.getMonth() + direction * (expectedStep.months || 0);\n this.activeDate = new Date(year, month, 1);\n\n this.refreshView();\n this.activeDateChange.emit(this.activeDate);\n }\n }\n\n public toggleMode(direction: number): void {\n direction = direction || 1;\n\n if ((this.datepickerMode === this.maxMode && direction === 1) ||\n (this.datepickerMode === this.minMode && direction === -1)) {\n return;\n }\n\n this.datepickerMode = this.modes[this.modes.indexOf(this.datepickerMode) + direction];\n this.refreshView();\n }\n\n protected getCustomClassForDate(date: Date): string {\n if (!this.customClass) {\n return '';\n }\n // todo: build a hash of custom classes, it will work faster\n const customClassObject: { date: Date, mode: string, clazz: string } = this.customClass\n .find((customClass: any) => {\n return customClass.date.valueOf() === date.valueOf() &&\n customClass.mode === this.datepickerMode;\n }, this);\n return customClassObject === undefined ? '' : customClassObject.clazz;\n }\n\n protected compareDateDisabled(date1Disabled: { date: Date, mode: string }, date2: Date): number {\n if (date1Disabled === undefined || date2 === undefined) {\n return undefined;\n }\n\n if (date1Disabled.mode === 'day' && this.compareHandlerDay) {\n return this.compareHandlerDay(date1Disabled.date, date2);\n }\n\n if (date1Disabled.mode === 'month' && this.compareHandlerMonth) {\n return this.compareHandlerMonth(date1Disabled.date, date2);\n }\n\n if (date1Disabled.mode === 'year' && this.compareHandlerYear) {\n return this.compareHandlerYear(date1Disabled.date, date2);\n }\n\n return undefined;\n }\n\n protected isDisabled(date: Date): boolean {\n let isDateDisabled: boolean = false;\n if (this.dateDisabled) {\n this.dateDisabled.forEach((disabledDate: { date: Date, mode: string }) => {\n if (this.compareDateDisabled(disabledDate, date) === 0) {\n isDateDisabled = true;\n }\n });\n }\n\n return (isDateDisabled || (this.minDate && this.compare(date, this.minDate) < 0) ||\n (this.maxDate && this.compare(date, this.maxDate) > 0));\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'datepicker-inner',\n template: `\n <div *ngIf=\"datepickerMode\" class=\"well well-sm bg-faded p-a card\" role=\"application\" ><!--<!–ng-keydown=\"keydown($event)\"–>-->\n <ng-content></ng-content>\n </div>\n `\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'locale': [{ type: Input },],\n'datepickerMode': [{ type: Input },],\n'startingDay': [{ type: Input },],\n'yearRange': [{ type: Input },],\n'minDate': [{ type: Input },],\n'maxDate': [{ type: Input },],\n'minMode': [{ type: Input },],\n'maxMode': [{ type: Input },],\n'showWeeks': [{ type: Input },],\n'formatDay': [{ type: Input },],\n'formatMonth': [{ type: Input },],\n'formatYear': [{ type: Input },],\n'formatDayHeader': [{ type: Input },],\n'formatDayTitle': [{ type: Input },],\n'formatMonthTitle': [{ type: Input },],\n'onlyCurrentMonth': [{ type: Input },],\n'shortcutPropagation': [{ type: Input },],\n'customClass': [{ type: Input },],\n'monthColLimit': [{ type: Input },],\n'yearColLimit': [{ type: Input },],\n'dateDisabled': [{ type: Input },],\n'initDate': [{ type: Input },],\n'selectionDone': [{ type: Output },],\n'update': [{ type: Output },],\n'activeDateChange': [{ type: Output },],\n'activeDate': [{ type: Input },],\n};\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
[{"__symbolic":"module","version":3,"metadata":{"DatePickerInnerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datepicker-inner","template":"\n <div *ngIf=\"datepickerMode\" class=\"well well-sm bg-faded p-a card\" role=\"application\" ><!--<!–ng-keydown=\"keydown($event)\"–>-->\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"datepickerMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"startingDay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"yearRange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeeks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatYear":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDayHeader":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDayTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatMonthTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onlyCurrentMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"shortcutPropagation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"customClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"monthColLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"yearColLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dateDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"initDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectionDone":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"activeDateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"activeDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"checkIfActiveDateGotUpdated":[{"__symbolic":"method"}],"setCompareHandler":[{"__symbolic":"method"}],"compare":[{"__symbolic":"method"}],"setRefreshViewHandler":[{"__symbolic":"method"}],"refreshView":[{"__symbolic":"method"}],"dateFilter":[{"__symbolic":"method"}],"isActive":[{"__symbolic":"method"}],"createDateObject":[{"__symbolic":"method"}],"split":[{"__symbolic":"method"}],"fixTimeZone":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"move":[{"__symbolic":"method"}],"toggleMode":[{"__symbolic":"method"}],"getCustomClassForDate":[{"__symbolic":"method"}],"compareDateDisabled":[{"__symbolic":"method"}],"isDisabled":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DatePickerInnerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datepicker-inner","template":"\n <div *ngIf=\"datepickerMode\" class=\"well well-sm bg-faded p-a card\" role=\"application\" ><!--<!–ng-keydown=\"keydown($event)\"–>-->\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"datepickerMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"startingDay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"yearRange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeeks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatYear":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDayHeader":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDayTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatMonthTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onlyCurrentMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"shortcutPropagation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"customClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"monthColLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"yearColLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dateDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"initDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectionDone":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"activeDateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"activeDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"checkIfActiveDateGotUpdated":[{"__symbolic":"method"}],"setCompareHandler":[{"__symbolic":"method"}],"compare":[{"__symbolic":"method"}],"setRefreshViewHandler":[{"__symbolic":"method"}],"refreshView":[{"__symbolic":"method"}],"dateFilter":[{"__symbolic":"method"}],"isActive":[{"__symbolic":"method"}],"createDateObject":[{"__symbolic":"method"}],"split":[{"__symbolic":"method"}],"fixTimeZone":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"move":[{"__symbolic":"method"}],"toggleMode":[{"__symbolic":"method"}],"getCustomClassForDate":[{"__symbolic":"method"}],"compareDateDisabled":[{"__symbolic":"method"}],"isDisabled":[{"__symbolic":"method"}]}}}}]
|
1
|
+
[{"__symbolic":"module","version":3,"metadata":{"DatePickerInnerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datepicker-inner","template":"\n <div *ngIf=\"datepickerMode\" class=\"well well-sm bg-faded p-a card\" role=\"application\" ><!--<!–ng-keydown=\"keydown($event)\"–>-->\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"locale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"datepickerMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"startingDay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"yearRange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeeks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatYear":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDayHeader":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDayTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatMonthTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onlyCurrentMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"shortcutPropagation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"customClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"monthColLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"yearColLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dateDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"initDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectionDone":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"activeDateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"activeDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"checkIfActiveDateGotUpdated":[{"__symbolic":"method"}],"setCompareHandler":[{"__symbolic":"method"}],"compare":[{"__symbolic":"method"}],"setRefreshViewHandler":[{"__symbolic":"method"}],"refreshView":[{"__symbolic":"method"}],"dateFilter":[{"__symbolic":"method"}],"isActive":[{"__symbolic":"method"}],"createDateObject":[{"__symbolic":"method"}],"split":[{"__symbolic":"method"}],"fixTimeZone":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"move":[{"__symbolic":"method"}],"toggleMode":[{"__symbolic":"method"}],"getCustomClassForDate":[{"__symbolic":"method"}],"compareDateDisabled":[{"__symbolic":"method"}],"isDisabled":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DatePickerInnerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datepicker-inner","template":"\n <div *ngIf=\"datepickerMode\" class=\"well well-sm bg-faded p-a card\" role=\"application\" ><!--<!–ng-keydown=\"keydown($event)\"–>-->\n <ng-content></ng-content>\n </div>\n "}]}],"members":{"locale":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"datepickerMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"startingDay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"yearRange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxMode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeeks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatYear":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDayHeader":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatDayTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"formatMonthTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onlyCurrentMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"shortcutPropagation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"customClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"monthColLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"yearColLimit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dateDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"initDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectionDone":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"activeDateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"activeDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"checkIfActiveDateGotUpdated":[{"__symbolic":"method"}],"setCompareHandler":[{"__symbolic":"method"}],"compare":[{"__symbolic":"method"}],"setRefreshViewHandler":[{"__symbolic":"method"}],"refreshView":[{"__symbolic":"method"}],"dateFilter":[{"__symbolic":"method"}],"isActive":[{"__symbolic":"method"}],"createDateObject":[{"__symbolic":"method"}],"split":[{"__symbolic":"method"}],"fixTimeZone":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"move":[{"__symbolic":"method"}],"toggleMode":[{"__symbolic":"method"}],"getCustomClassForDate":[{"__symbolic":"method"}],"compareDateDisabled":[{"__symbolic":"method"}],"isDisabled":[{"__symbolic":"method"}]}}}}]
|
@@ -61,9 +61,9 @@ export declare class DatePickerComponent implements ControlValueAccessor {
|
|
61
61
|
_datePicker: DatePickerInnerComponent;
|
62
62
|
onChange: any;
|
63
63
|
onTouched: any;
|
64
|
+
config: DatepickerConfig;
|
64
65
|
protected _now: Date;
|
65
66
|
protected _activeDate: Date;
|
66
|
-
protected config: DatepickerConfig;
|
67
67
|
constructor(config: DatepickerConfig);
|
68
68
|
configureOptions(): void;
|
69
69
|
onUpdate(event: any): void;
|