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
package/timepicker/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../.tmp/timepicker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC","file":"index.js","sourceRoot":"","sourcesContent":["export { TimepickerComponent } from './timepicker.component';\nexport { TimepickerActions } from './reducer/timepicker.actions';\nexport { TimepickerStore } from './reducer/timepicker.store';\nexport { TimepickerConfig } from './timepicker.config';\nexport { TimepickerModule } from './timepicker.module';\n"]}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Injectable } from '@angular/core';
|
2
|
-
|
2
|
+
var TimepickerActions = (function () {
|
3
3
|
function TimepickerActions() {
|
4
4
|
}
|
5
5
|
TimepickerActions.prototype.writeValue = function (value) {
|
@@ -51,4 +51,5 @@ export var TimepickerActions = (function () {
|
|
51
51
|
TimepickerActions.ctorParameters = function () { return []; };
|
52
52
|
return TimepickerActions;
|
53
53
|
}());
|
54
|
+
export { TimepickerActions };
|
54
55
|
//# sourceMappingURL=timepicker.actions.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../.tmp/timepicker/reducer/timepicker.actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAA,EAAW,MAAO,eAAA,CAAgB;AAK3C;IAAA;IAuDA,CAAC;IA/CC,sCAAU,GAAV,UAAW,KAAoB;QAC7B,MAAM,CAAC;YACL,IAAI,EAAE,iBAAiB,CAAC,WAAW;YACnC,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;IAED,uCAAW,GAAX,UAAY,KAAsB;QAChC,MAAM,CAAC;YACL,IAAI,EAAE,iBAAiB,CAAC,YAAY;YACpC,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;IAED,yCAAa,GAAb,UAAc,KAAsB;QAClC,MAAM,CAAC;YACL,IAAI,EAAE,iBAAiB,CAAC,cAAc;YACtC,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;IAED,yCAAa,GAAb,UAAc,KAAsB;QAClC,MAAM,CAAC;YACL,IAAI,EAAE,iBAAiB,CAAC,cAAc;YACtC,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;IAED,mCAAO,GAAP,UAAQ,KAAW;QACjB,MAAM,CAAC;YACL,IAAI,EAAE,iBAAiB,CAAC,aAAa;YACrC,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;IAED,0CAAc,GAAd,UAAe,KAA+B;QAC5C,MAAM,CAAC;YACL,IAAI,EAAE,iBAAiB,CAAC,eAAe;YACvC,OAAO,EAAE,KAAK;SACf,CAAC;IACJ,CAAC;IA/Ce,6BAAW,GAAG,wCAAwC,CAAC;IACvD,8BAAY,GAAG,2BAA2B,CAAC;IAC3C,gCAAc,GAAG,6BAA6B,CAAC;IAC/C,gCAAc,GAAG,6BAA6B,CAAC;IAC/C,+BAAa,GAAG,4BAA4B,CAAC;IAC7C,iCAAe,GAAG,8BAA8B,CAAC;IA2C5D,4BAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,UAAU,EAAE;KACnB,CAAC;IACF,kBAAkB;IACX,gCAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;IACF,wBAAC;CAvDD,AAuDC,IAAA;SAvDY,iBAAiB","file":"timepicker.actions.js","sourceRoot":"","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Action } from '../../mini-ngrx/index';\nimport { TimeChangeEvent, TimepickerComponentState, Time } from '../timepicker.models';\n\n\nexport class TimepickerActions {\n static readonly WRITE_VALUE = '[timepicker] write value from ng model';\n static readonly CHANGE_HOURS = '[timepicker] change hours';\n static readonly CHANGE_MINUTES = '[timepicker] change minutes';\n static readonly CHANGE_SECONDS = '[timepicker] change seconds';\n static readonly SET_TIME_UNIT = '[timepicker] set time unit';\n static readonly UPDATE_CONTROLS = '[timepicker] update controls';\n\n writeValue(value: Date | string) {\n return {\n type: TimepickerActions.WRITE_VALUE,\n payload: value\n };\n }\n\n changeHours(event: TimeChangeEvent) {\n return {\n type: TimepickerActions.CHANGE_HOURS,\n payload: event\n };\n }\n\n changeMinutes(event: TimeChangeEvent) {\n return {\n type: TimepickerActions.CHANGE_MINUTES,\n payload: event\n };\n }\n\n changeSeconds(event: TimeChangeEvent): Action {\n return {\n type: TimepickerActions.CHANGE_SECONDS,\n payload: event\n };\n }\n\n setTime(value: Time): Action {\n return {\n type: TimepickerActions.SET_TIME_UNIT,\n payload: value\n };\n }\n\n updateControls(value: TimepickerComponentState): Action {\n return {\n type: TimepickerActions.UPDATE_CONTROLS,\n payload: value\n };\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
@@ -6,6 +6,4 @@ export declare class TimepickerState {
|
|
6
6
|
controls: TimepickerControls;
|
7
7
|
}
|
8
8
|
export declare const initialState: TimepickerState;
|
9
|
-
export declare function timepickerReducer(state: TimepickerState, action: Action):
|
10
|
-
value: any;
|
11
|
-
};
|
9
|
+
export declare function timepickerReducer(state: TimepickerState, action: Action): TimepickerState;
|
@@ -2,12 +2,14 @@ import { canChangeHours, canChangeMinutes, canChangeSeconds, canChangeValue, tim
|
|
2
2
|
import { TimepickerConfig } from '../timepicker.config';
|
3
3
|
import { changeTime, setTime } from '../timepicker.utils';
|
4
4
|
import { TimepickerActions } from './timepicker.actions';
|
5
|
-
|
5
|
+
var TimepickerState = (function () {
|
6
6
|
function TimepickerState() {
|
7
7
|
}
|
8
8
|
return TimepickerState;
|
9
9
|
}());
|
10
|
+
export { TimepickerState };
|
10
11
|
export var initialState = {
|
12
|
+
value: null,
|
11
13
|
config: new TimepickerConfig(),
|
12
14
|
controls: {
|
13
15
|
canIncrementHours: true,
|
@@ -57,10 +59,15 @@ export function timepickerReducer(state, action) {
|
|
57
59
|
}
|
58
60
|
case (TimepickerActions.UPDATE_CONTROLS): {
|
59
61
|
var _newControlsState = timepickerControls(state.value, action.payload);
|
60
|
-
|
62
|
+
var _newState = {
|
63
|
+
value: state.value,
|
61
64
|
config: action.payload,
|
62
65
|
controls: _newControlsState
|
63
|
-
}
|
66
|
+
};
|
67
|
+
if (state.config.showMeridian !== _newState.config.showMeridian) {
|
68
|
+
_newState.value = new Date(state.value);
|
69
|
+
}
|
70
|
+
return Object.assign({}, state, _newState);
|
64
71
|
}
|
65
72
|
default:
|
66
73
|
return state;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../.tmp/timepicker/reducer/timepicker.reducer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;IAAA;IAIA,CAAC;IAAD,sBAAC;AAAD,CAJA,AAIC,IAAA;;AAED,MAAM,CAAC,IAAM,YAAY,GAAoB;IAC3C,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI,gBAAgB,EAAE;IAC9B,QAAQ,EAAE;QACR,iBAAiB,EAAE,IAAI;QACvB,mBAAmB,EAAE,IAAI;QACzB,mBAAmB,EAAE,IAAI;QAEzB,iBAAiB,EAAE,IAAI;QACvB,mBAAmB,EAAE,IAAI;QACzB,mBAAmB,EAAE,IAAI;KAC1B;CACF,CAAC;AAEF,MAAM,4BAA4B,K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BACjC,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,MAAM,EAAE,MAAM,CAAC,OAAO;gBACtB,QAAQ,EAAE,iBAAiB;aAC5B,CAAC;YAEF,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,KAAK,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;gBAChE,SAAS,CAAC,KAAK,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC1C,CAAC;YAED,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;QAC7C,CAAC;QAED;YACE,MAAM,CAAC,KAAK,CAAC;IACjB,CAAC;AACH,CAAC","file":"timepicker.reducer.js","sourceRoot":"","sourcesContent":["import { Action } from '../../mini-ngrx/index';\nimport {\n canChangeHours,\n canChangeMinutes,\n canChangeSeconds,\n canChangeValue,\n timepickerControls\n} from '../timepicker-controls.util';\nimport { TimepickerConfig } from '../timepicker.config';\nimport { TimepickerComponentState, TimepickerControls } from '../timepicker.models';\nimport { changeTime, setTime } from '../timepicker.utils';\nimport { TimepickerActions } from './timepicker.actions';\n\nexport class TimepickerState {\n value: Date;\n config: TimepickerComponentState;\n controls: TimepickerControls;\n}\n\nexport const initialState: TimepickerState = {\n value: null,\n config: new TimepickerConfig(),\n controls: {\n canIncrementHours: true,\n canIncrementMinutes: true,\n canIncrementSeconds: true,\n\n canDecrementHours: true,\n canDecrementMinutes: true,\n canDecrementSeconds: true\n }\n};\n\nexport function timepickerReducer(state = initialState, action: Action) {\n switch (action.type) {\n case(TimepickerActions.WRITE_VALUE): {\n return Object.assign({}, state, {value: action.payload});\n }\n\n case (TimepickerActions.CHANGE_HOURS): {\n if (!canChangeValue(state.config, action.payload) ||\n !canChangeHours(action.payload, state.controls)) {\n return state;\n }\n\n const _newTime = changeTime(state.value, {hour: action.payload.step});\n\n return Object.assign({}, state, {value: _newTime});\n }\n\n case (TimepickerActions.CHANGE_MINUTES): {\n if (!canChangeValue(state.config, action.payload) ||\n !canChangeMinutes(action.payload, state.controls)) {\n return state;\n }\n\n const _newTime = changeTime(state.value, {minute: action.payload.step});\n\n return Object.assign({}, state, {value: _newTime});\n }\n\n case (TimepickerActions.CHANGE_SECONDS): {\n if (!canChangeValue(state.config, action.payload) ||\n !canChangeSeconds(action.payload, state.controls)) {\n return state;\n }\n\n const _newTime = changeTime(state.value, {seconds: action.payload.step});\n\n return Object.assign({}, state, {value: _newTime});\n }\n\n case (TimepickerActions.SET_TIME_UNIT): {\n if (!canChangeValue(state.config)) {\n return state;\n }\n\n const _newTime = setTime(state.value, action.payload);\n\n return Object.assign({}, state, {value: _newTime});\n }\n\n case (TimepickerActions.UPDATE_CONTROLS): {\n const _newControlsState = timepickerControls(state.value, action.payload);\n const _newState: TimepickerState = {\n value: state.value,\n config: action.payload,\n controls: _newControlsState\n };\n\n if (state.config.showMeridian !== _newState.config.showMeridian) {\n _newState.value = new Date(state.value);\n }\n\n return Object.assign({}, state, _newState);\n }\n\n default:\n return state;\n }\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
[{"__symbolic":"module","version":3,"metadata":{"TimepickerState":{"__symbolic":"class"},"initialState":{"__symbolic":"
|
1
|
+
[{"__symbolic":"module","version":3,"metadata":{"TimepickerState":{"__symbolic":"class"},"initialState":{"value":null,"config":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"../timepicker.config","name":"TimepickerConfig"}},"controls":{"canIncrementHours":true,"canIncrementMinutes":true,"canIncrementSeconds":true,"canDecrementHours":true,"canDecrementMinutes":true,"canDecrementSeconds":true}},"timepickerReducer":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"TimepickerState":{"__symbolic":"class"},"initialState":{"value":null,"config":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"../timepicker.config","name":"TimepickerConfig"}},"controls":{"canIncrementHours":true,"canIncrementMinutes":true,"canIncrementSeconds":true,"canDecrementHours":true,"canDecrementMinutes":true,"canDecrementSeconds":true}},"timepickerReducer":{"__symbolic":"function"}}}]
|
@@ -1,19 +1,26 @@
|
|
1
|
-
var __extends = (this && this.__extends) || function (
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
2
|
+
var extendStatics = Object.setPrototypeOf ||
|
3
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
4
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
5
|
+
return function (d, b) {
|
6
|
+
extendStatics(d, b);
|
7
|
+
function __() { this.constructor = d; }
|
8
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
9
|
+
};
|
10
|
+
})();
|
6
11
|
import { Injectable } from '@angular/core';
|
7
12
|
import { timepickerReducer, initialState } from './timepicker.reducer';
|
8
13
|
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
|
9
14
|
import { MiniStore } from '../../mini-ngrx/store.class';
|
10
15
|
import { MiniState } from '../../mini-ngrx/state.class';
|
11
|
-
|
16
|
+
var TimepickerStore = (function (_super) {
|
12
17
|
__extends(TimepickerStore, _super);
|
13
18
|
function TimepickerStore() {
|
19
|
+
var _this = this;
|
14
20
|
var _dispatcher = new BehaviorSubject({ type: '[mini-ngrx] dispatcher init' });
|
15
21
|
var state = new MiniState(initialState, _dispatcher, timepickerReducer);
|
16
|
-
_super.call(this, _dispatcher, timepickerReducer, state);
|
22
|
+
_this = _super.call(this, _dispatcher, timepickerReducer, state) || this;
|
23
|
+
return _this;
|
17
24
|
}
|
18
25
|
TimepickerStore.decorators = [
|
19
26
|
{ type: Injectable },
|
@@ -22,4 +29,5 @@ export var TimepickerStore = (function (_super) {
|
|
22
29
|
TimepickerStore.ctorParameters = function () { return []; };
|
23
30
|
return TimepickerStore;
|
24
31
|
}(MiniStore));
|
32
|
+
export { TimepickerStore };
|
25
33
|
//# sourceMappingURL=timepicker.store.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../.tmp/timepicker/reducer/timepicker.store.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,UAAA,EAAW,MAAO,eAAA,CAAgB;AAC3C,OAAO,EAAE,iBAAA,EAAoC,YAAA,EAAa,MAAO,sBAAA,CAAuB;AACxF,OAAO,EAAE,eAAA,EAAgB,MAAO,sBAAA,CAAuB;AAGvD,OAAO,EAAE,SAAA,EAAU,MAAO,6BAAA,CAA8B;AACxD,OAAO,EAAE,SAAA,EAAU,MAAO,6BAAA,CAA8B;AAGxD;IAAqC,mCAA0B;IAC7D;QAAA,iBAIC;QAHC,IAAM,WAAW,GAAG,IAAI,eAAe,CAAS,EAAC,IAAI,EAAE,6BAA6B,EAAC,CAAC,CAAC;QACvF,IAAM,KAAK,GAAG,IAAI,SAAS,CAAkB,YAAY,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC;QAC3F,QAAA,kBAAM,WAAW,EAAE,iBAAiB,EAAE,KAAK,CAAC,SAAC;;IAC/C,CAAC;IACI,0BAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,UAAU,EAAE;KACnB,CAAC;IACF,kBAAkB;IACX,8BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;IACF,sBAAC;CAZD,AAYC,CAZoC,SAAS,GAY7C;SAZY,eAAe","file":"timepicker.store.js","sourceRoot":"","sourcesContent":["import { Injectable } from '@angular/core';\nimport { timepickerReducer, TimepickerState, initialState } from './timepicker.reducer';\nimport { BehaviorSubject } from 'rxjs/BehaviorSubject';\n\nimport { Action } from '../../mini-ngrx/index';\nimport { MiniStore } from '../../mini-ngrx/store.class';\nimport { MiniState } from '../../mini-ngrx/state.class';\n\n\nexport class TimepickerStore extends MiniStore<TimepickerState> {\n constructor() {\n const _dispatcher = new BehaviorSubject<Action>({type: '[mini-ngrx] dispatcher init'});\n const state = new MiniState<TimepickerState>(initialState, _dispatcher, timepickerReducer);\n super(_dispatcher, timepickerReducer, state);\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../.tmp/timepicker/timepicker-controls.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,MAAM,oBAAoB,CAAC;AAGzD,MAAM,yBAAyB,KAA+B,EAAE,KAAuB;IACrF,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QACxB,MAAM,CAAC,KAAK,CAAC;IACf,CAAC;IAED,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACV,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,KAAK,CAAC;QACf,CAAC;QAED,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;YAC/C,MAAM,CAAC,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,MAAM,CAAC,IAAI,CAAC;AACd,CAAC;AAED,MAAM,yBAAyB,KAAsB,EAAE,QAA4B;IACjF,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QAChB,MAAM,CAAC,KAAK,CAAC;IACf,CAAC;IAED,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC;QAClD,MAAM,CAAC,KAAK,CAAC;IACf,CAAC;IAED,EAAE,CAAC,CAAC,KAAK,C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EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC;YAC7B,IAAM,WAAW,GAAG,UAAU,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;YAChE,GAAG,CAAC,mBAAmB,GAAG,GAAG,IAAI,WAAW,CAAC;QAC/C,CAAC;IACH,CAAC;IAED,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACR,IAAM,QAAQ,GAAG,UAAU,CAAC,KAAK,EAAE,EAAE,IAAI,EAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QACzD,GAAG,CAAC,iBAAiB,GAAG,GAAG,GAAG,QAAQ,CAAC;QAEvC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC;YAC3B,IAAM,WAAW,GAAG,UAAU,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,UAAU,EAAE,CAAC,CAAC;YAC/D,GAAG,CAAC,mBAAmB,GAAG,WAAW,GAAG,GAAG,GAAG,WAAW,GAAG,GAAG,IAAI,WAAW,CAAC;QACjF,CAAC;QAED,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC;YAC7B,IAAM,WAAW,GAAG,UAAU,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;YACjE,GAAG,CAAC,mBAAmB,GAAG,GAAG,IAAI,WAAW,CAAC;QAC/C,CAAC;IACH,CAAC;IAED,MAAM,CAAC,GAAG,CAAC;AACb,CAAC","file":"timepicker-controls.util.js","sourceRoot":"","sourcesContent":["import { changeTime, setTime } from './timepicker.utils';\nimport { TimeChangeEvent, TimepickerComponentState, TimepickerControls } from './timepicker.models';\n\nexport function canChangeValue(state: TimepickerComponentState, event?: TimeChangeEvent): boolean {\n if (state.readonlyInput) {\n return false;\n }\n\n if (event) {\n if (event.source === 'wheel' && !state.mousewheel) {\n return false;\n }\n\n if (event.source === 'key' && !state.arrowkeys) {\n return false;\n }\n }\n\n return true;\n}\n\nexport function canChangeHours(event: TimeChangeEvent, controls: TimepickerControls): boolean {\n if (!event.step) {\n return false;\n }\n\n if (event.step > 0 && !controls.canIncrementHours) {\n return false;\n }\n\n if (event.step < 0 && !controls.canDecrementHours) {\n return false;\n }\n\n return true;\n}\n\nexport function canChangeMinutes(event: TimeChangeEvent, controls: TimepickerControls): boolean {\n if (!event.step) {\n return false;\n }\n if (event.step > 0 && !controls.canIncrementMinutes) {\n return false;\n }\n if (event.step < 0 && !controls.canDecrementMinutes) {\n return false;\n }\n\n return true;\n}\n\nexport function canChangeSeconds(event: TimeChangeEvent, controls: TimepickerControls): boolean {\n if (!event.step) {\n return false;\n }\n if (event.step > 0 && !controls.canIncrementSeconds) {\n return false;\n }\n if (event.step < 0 && !controls.canDecrementSeconds) {\n return false;\n }\n\n return true;\n}\n\nexport function getControlsValue(state: TimepickerComponentState): TimepickerComponentState {\n const {\n hourStep, minuteStep, secondsStep,\n readonlyInput, mousewheel, arrowkeys,\n showSpinners, showMeridian, showSeconds,\n meridians, min, max\n } = state;\n return {\n hourStep, minuteStep, secondsStep,\n readonlyInput, mousewheel, arrowkeys,\n showSpinners, showMeridian, showSeconds,\n meridians, min, max\n };\n}\n\nexport function timepickerControls(value: Date, state: TimepickerComponentState): TimepickerControls {\n const {min, max, hourStep, minuteStep, secondsStep, showSeconds} = state;\n const res = {\n canIncrementHours: true,\n canIncrementMinutes: true,\n canIncrementSeconds: true,\n\n canDecrementHours: true,\n canDecrementMinutes: true,\n canDecrementSeconds: true\n } as TimepickerControls;\n\n if (!value) {\n return res;\n }\n\n// compare dates\n if (max) {\n const _newHour = changeTime(value, { hour: hourStep });\n res.canIncrementHours = max > _newHour;\n\n if (!res.canIncrementHours) {\n const _newMinutes = changeTime(value, { minute: minuteStep });\n res.canIncrementMinutes = showSeconds ? max > _newMinutes : max >= _newMinutes ;\n }\n\n if (!res.canIncrementMinutes) {\n const _newSeconds = changeTime(value, { seconds: secondsStep });\n res.canIncrementSeconds = max >= _newSeconds;\n }\n }\n\n if (min) {\n const _newHour = changeTime(value, { hour: -hourStep });\n res.canDecrementHours = min < _newHour;\n\n if (!res.canDecrementHours) {\n const _newMinutes = changeTime(value, { minute: -minuteStep });\n res.canDecrementMinutes = showSeconds ? min < _newMinutes : min <= _newMinutes;\n }\n\n if (!res.canDecrementMinutes) {\n const _newSeconds = changeTime(value, { seconds: -secondsStep });\n res.canDecrementSeconds = min <= _newSeconds;\n }\n }\n\n return res;\n}\n"]}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/* tslint:disable:no-forward-ref max-file-line-count */
|
1
2
|
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, forwardRef, Input, Output } from '@angular/core';
|
2
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
3
4
|
import { TimepickerActions } from './reducer/timepicker.actions';
|
@@ -11,7 +12,7 @@ export var TIMEPICKER_CONTROL_VALUE_ACCESSOR = {
|
|
11
12
|
useExisting: forwardRef(function () { return TimepickerComponent; }),
|
12
13
|
multi: true
|
13
14
|
};
|
14
|
-
|
15
|
+
var TimepickerComponent = (function () {
|
15
16
|
function TimepickerComponent(_config, _cd, _store, _timepickerActions) {
|
16
17
|
var _this = this;
|
17
18
|
this._cd = _cd;
|
@@ -164,7 +165,7 @@ export var TimepickerComponent = (function () {
|
|
164
165
|
selector: 'timepicker',
|
165
166
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
166
167
|
providers: [TIMEPICKER_CONTROL_VALUE_ACCESSOR, TimepickerStore],
|
167
|
-
template: "\n <table>\n <tbody>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- increment hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementHours\"\n (click)=\"changeHours(hourStep)\"
|
168
|
+
template: "\n <table>\n <tbody>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- increment hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementHours\"\n (click)=\"changeHours(hourStep)\"\n ><span class=\"glyphicon glyphicon-chevron-up\"></span></a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- increment minutes button -->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementMinutes\"\n (click)=\"changeMinutes(minuteStep)\"\n ><span class=\"glyphicon glyphicon-chevron-up\"></span></a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- increment seconds button -->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementSeconds\"\n (click)=\"changeSeconds(secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n <tr>\n <!-- hours -->\n <td class=\"form-group\" [class.has-error]=\"invalidHours\">\n <input type=\"text\" style=\"width:50px;\"\n class=\"form-control text-center\"\n placeholder=\"HH\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"hours\"\n (wheel)=\"prevDef($event);changeHours(hourStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeHours(hourStep, 'key')\"\n (keydown.ArrowDown)=\"changeHours(-hourStep, 'key')\"\n (change)=\"updateHours($event.target.value)\"></td>\n <!-- divider -->\n <td> : </td>\n <!-- minutes -->\n <td class=\"form-group\" [class.has-error]=\"invalidMinutes\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"MM\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"minutes\"\n (wheel)=\"prevDef($event);changeMinutes(minuteStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeMinutes(minuteStep, 'key')\"\n (keydown.ArrowDown)=\"changeMinutes(-minuteStep, 'key')\"\n (change)=\"updateMinutes($event.target.value)\">\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> : </td>\n <!-- seconds -->\n <td class=\"form-group\" *ngIf=\"showSeconds\" [class.has-error]=\"invalidSeconds\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"SS\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"seconds\"\n (wheel)=\"prevDef($event);changeSeconds(secondsStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeSeconds(secondsStep, 'key')\"\n (keydown.ArrowDown)=\"changeSeconds(-secondsStep, 'key')\"\n (change)=\"updateSeconds($event.target.value)\">\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian -->\n <td *ngIf=\"showMeridian\">\n <button type=\"button\" class=\"btn btn-default text-center\"\n [disabled]=\"readonlyInput\"\n [class.disabled]=\"readonlyInput\"\n (click)=\"toggleMeridian()\"\n >{{ meridian }}\n </button>\n </td>\n </tr>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- decrement hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementHours\" (click)=\"changeHours(-hourStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- decrement minutes button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementMinutes\" (click)=\"changeMinutes(-minuteStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- decrement seconds button-->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementSeconds\" (click)=\"changeSeconds(-secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n </tbody>\n </table>\n "
|
168
169
|
},] },
|
169
170
|
];
|
170
171
|
/** @nocollapse */
|
@@ -191,4 +192,5 @@ export var TimepickerComponent = (function () {
|
|
191
192
|
};
|
192
193
|
return TimepickerComponent;
|
193
194
|
}());
|
195
|
+
export { TimepickerComponent };
|
194
196
|
//# sourceMappingURL=timepicker.component.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"timepicker.component.js","sourceRoot":"","sources":["../../src/timepicker/timepicker.component.ts"],"names":[],"mappings":"OACO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EAAE,YAAY,EACvB,UAAU,EACV,KAAK,EACM,MAAM,EAElB,MAAM,eAAe;OACf,EAAwB,iBAAiB,EAAE,MAAM,gBAAgB;OAEjE,EAAE,iBAAiB,EAAE,MAAM,8BAA8B;OACzD,EAAE,eAAe,EAAE,MAAM,4BAA4B;OACrD,EAAE,gBAAgB,EAAE,MAAM,4BAA4B;OACtD,EAAE,gBAAgB,EAAE,MAAM,qBAAqB;OAE/C,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,oBAAoB;AAEpF,OAAO,IAAM,iCAAiC,GAAQ;IACpD,OAAO,EAAE,iBAAiB;IAC1B,2BAA2B;IAC3B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,mBAAmB,EAAnB,CAAmB,CAAC;IAClD,KAAK,EAAE,IAAI;CACZ,CAAC;AAGF;IAyDE,6BAAY,OAAyB,EACjB,GAAsB,EACtB,MAAuB,EACvB,kBAAqC;QA5D3D,iBAqWC;QA3SqB,QAAG,GAAH,GAAG,CAAmB;QACtB,WAAM,GAAN,MAAM,CAAiB;QACvB,uBAAkB,GAAlB,kBAAkB,CAAmB;QAlCzD,0CAA0C;QACzC,YAAO,GAA0B,IAAI,YAAY,EAAE,CAAC;QAYrD,sCAAsC;QACtC,iBAAY,GAAG,KAAK,CAAC;QACrB,mBAAc,GAAG,KAAK,CAAC;QACvB,mB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AAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACjC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAC/B,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACzB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACzB,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;KAC7B,CAAC;IACF,0BAAC;AAAD,CAAC,AArWD,IAqWC","sourcesContent":["/* tslint:disable:no-forward-ref max-file-line-count */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component, EventEmitter,\n forwardRef,\n Input,\n OnChanges, Output,\n SimpleChanges\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport { TimepickerActions } from './reducer/timepicker.actions';\nimport { TimepickerStore } from './reducer/timepicker.store';\nimport { getControlsValue } from './timepicker-controls.util';\nimport { TimepickerConfig } from './timepicker.config';\nimport { TimeChangeSource, TimepickerComponentState, TimepickerControls } from './timepicker.models';\nimport { isValidDate, padNumber, parseTime, isInputValid } from './timepicker.utils';\n\nexport const TIMEPICKER_CONTROL_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n // tslint:disable-next-line\n useExisting: forwardRef(() => TimepickerComponent),\n multi: true\n};\n\n\nexport class TimepickerComponent implements ControlValueAccessor, TimepickerComponentState, TimepickerControls, OnChanges {\n /** hours change step */\n hourStep: number;\n /** hours change step */\n minuteStep: number;\n /** seconds change step */\n secondsStep: number;\n /** if true hours and minutes fields will be readonly */\n readonlyInput: boolean;\n /** if true scroll inside hours and minutes inputs will change time */\n mousewheel: boolean;\n /** if true up/down arrowkeys inside hours and minutes inputs will change time */\n arrowkeys: boolean;\n /** if true spinner arrows above and below the inputs will be shown */\n showSpinners: boolean;\n showMeridian: boolean;\n showSeconds: boolean;\n\n /** meridian labels based on locale */\n meridians: string[];\n\n /** minimum time user can select */\n min: Date;\n /** maximum time user can select */\n max: Date;\n\n /** emits true if value is a valid date */\n isValid: EventEmitter<boolean> = new EventEmitter();\n\n // ui variables\n hours: string;\n minutes: string;\n seconds: string;\n meridian: string;\n\n get isSpinnersVisible(): boolean {\n return this.showSpinners && !this.readonlyInput;\n }\n\n // min\\max validation for input fields\n invalidHours = false;\n invalidMinutes = false;\n invalidSeconds = false;\n\n // time picker controls state\n canIncrementHours: boolean;\n canIncrementMinutes: boolean;\n canIncrementSeconds: boolean;\n\n canDecrementHours: boolean;\n canDecrementMinutes: boolean;\n canDecrementSeconds: boolean;\n\n // control value accessor methods\n onChange: any = Function.prototype;\n onTouched: any = Function.prototype;\n\n constructor(_config: TimepickerConfig,\n private _cd: ChangeDetectorRef,\n private _store: TimepickerStore,\n private _timepickerActions: TimepickerActions) {\n Object.assign(this, _config);\n // todo: add unsubscribe\n _store\n .select((state) => state.value)\n .subscribe((value) => {\n // update UI values if date changed\n this._renderTime(value);\n this.onChange(value);\n\n this._store.dispatch(this._timepickerActions.updateControls(getControlsValue(this)));\n });\n\n _store\n .select((state) => state.controls)\n .subscribe((controlsState) => {\n this.isValid.emit(isInputValid(this.hours, this.minutes, this.seconds, this.isPM()));\n Object.assign(this, controlsState);\n _cd.markForCheck();\n });\n }\n\n isPM(): boolean {\n return this.showMeridian && this.meridian === this.meridians[1];\n }\n\n prevDef($event: any) {\n $event.preventDefault();\n }\n\n wheelSign($event: any): number {\n return Math.sign($event.deltaY as number) * -1;\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this._store.dispatch(this._timepickerActions.updateControls(getControlsValue(this)));\n }\n\n changeHours(step: number, source: TimeChangeSource = ''): void {\n this._store.dispatch(this._timepickerActions.changeHours({step, source}));\n }\n\n changeMinutes(step: number, source: TimeChangeSource = ''): void {\n this._store.dispatch(this._timepickerActions.changeMinutes({step, source}));\n }\n\n changeSeconds(step: number, source: TimeChangeSource = ''): void {\n this._store.dispatch(this._timepickerActions.changeSeconds({step, source}));\n }\n\n updateHours(hours: string): void {\n this.hours = hours;\n this._updateTime();\n }\n\n updateMinutes(minutes: string) {\n this.minutes = minutes;\n this._updateTime();\n }\n\n updateSeconds(seconds: string) {\n this.seconds = seconds;\n this._updateTime();\n }\n\n _updateTime() {\n if (!isInputValid(this.hours, this.minutes, this.seconds, this.isPM())) {\n this.onChange(null);\n return;\n }\n this._store.dispatch(this._timepickerActions\n .setTime({\n hour: this.hours,\n minute: this.minutes,\n seconds: this.seconds,\n isPM: this.isPM()\n }));\n }\n\n toggleMeridian(): void {\n if (!this.showMeridian || this.readonlyInput) {\n return;\n }\n\n const _hoursPerDayHalf = 12;\n this._store.dispatch(this._timepickerActions.changeHours({step: _hoursPerDayHalf, source: ''}));\n }\n\n /**\n * Write a new value to the element.\n */\n writeValue(obj: any): void {\n if (isValidDate(obj)) {\n this._store.dispatch(this._timepickerActions.writeValue(parseTime(obj)));\n }\n }\n\n /**\n * Set the function to be called when the control receives a change event.\n */\n registerOnChange(fn: (_: any) => {}): void {\n this.onChange = fn;\n }\n\n /**\n * Set the function to be called when the control receives a touch event.\n */\n registerOnTouched(fn: () => {}): void {\n this.onTouched = fn;\n }\n\n /**\n * This function is called when the control status changes to or from \"DISABLED\".\n * Depending on the value, it will enable or disable the appropriate DOM element.\n *\n * @param isDisabled\n */\n setDisabledState(isDisabled: boolean): void {\n this.readonlyInput = isDisabled;\n }\n\n private _renderTime(value: string | Date): void {\n if (!isValidDate(value)) {\n this.hours = '';\n this.minutes = '';\n this.seconds = '';\n this.meridian = this.meridians[0];\n\n return;\n }\n\n const _value = parseTime(value);\n const _hoursPerDayHalf = 12;\n let _hours = _value.getHours();\n\n if (this.showMeridian) {\n this.meridian = this.meridians[_hours >= _hoursPerDayHalf ? 1 : 0];\n _hours = _hours % _hoursPerDayHalf;\n // should be 12 PM, not 00 PM\n if (_hours === 0) {\n _hours = _hoursPerDayHalf;\n }\n }\n\n this.hours = padNumber(_hours);\n this.minutes = padNumber(_value.getMinutes());\n this.seconds = padNumber(_value.getUTCSeconds());\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'timepicker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TIMEPICKER_CONTROL_VALUE_ACCESSOR, TimepickerStore],\n template: `\n <table>\n <tbody>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- increment hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementHours\"\n (click)=\"changeHours(hourStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- increment minutes button -->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementMinutes\"\n (click)=\"changeMinutes(minuteStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- increment seconds button -->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementSeconds\"\n (click)=\"changeSeconds(secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n <tr>\n <!-- hours -->\n <td class=\"form-group\" [class.has-error]=\"invalidHours\">\n <input type=\"text\" style=\"width:50px;\"\n class=\"form-control text-center\"\n placeholder=\"HH\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"hours\"\n (wheel)=\"prevDef($event);changeHours(hourStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeHours(hourStep, 'key')\"\n (keydown.ArrowDown)=\"changeHours(-hourStep, 'key')\"\n (change)=\"updateHours($event.target.value)\"></td>\n <!-- divider -->\n <td> : </td>\n <!-- minutes -->\n <td class=\"form-group\" [class.has-error]=\"invalidMinutes\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"MM\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"minutes\"\n (wheel)=\"prevDef($event);changeMinutes(minuteStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeMinutes(minuteStep, 'key')\"\n (keydown.ArrowDown)=\"changeMinutes(-minuteStep, 'key')\"\n (change)=\"updateMinutes($event.target.value)\">\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> : </td>\n <!-- seconds -->\n <td class=\"form-group\" *ngIf=\"showSeconds\" [class.has-error]=\"invalidSeconds\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"SS\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"seconds\"\n (wheel)=\"prevDef($event);changeSeconds(secondsStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeSeconds(secondsStep, 'key')\"\n (keydown.ArrowDown)=\"changeSeconds(-secondsStep, 'key')\"\n (change)=\"updateSeconds($event.target.value)\">\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian -->\n <td *ngIf=\"showMeridian\">\n <button type=\"button\" class=\"btn btn-default text-center\"\n [disabled]=\"readonlyInput\"\n [class.disabled]=\"readonlyInput\"\n (click)=\"toggleMeridian()\">\n {{meridian}}\n </button>\n </td>\n </tr>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- decrement hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementHours\" (click)=\"changeHours(-hourStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- decrement minutes button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementMinutes\" (click)=\"changeMinutes(-minuteStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- decrement seconds button-->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementSeconds\" (click)=\"changeSeconds(-secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n </tbody>\n </table>\n `\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: TimepickerConfig, },\n{type: ChangeDetectorRef, },\n{type: TimepickerStore, },\n{type: TimepickerActions, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'hourStep': [{ type: Input },],\n'minuteStep': [{ type: Input },],\n'secondsStep': [{ type: Input },],\n'readonlyInput': [{ type: Input },],\n'mousewheel': [{ type: Input },],\n'arrowkeys': [{ type: Input },],\n'showSpinners': [{ type: Input },],\n'showMeridian': [{ type: Input },],\n'showSeconds': [{ type: Input },],\n'meridians': [{ type: Input },],\n'min': [{ type: Input },],\n'max': [{ type: Input },],\n'isValid': [{ type: Output },],\n};\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
1
|
+
{"version":3,"sources":["../../.tmp/timepicker/timepicker.component.ts"],"names":[],"mappings":"AAAA,uDAAC;AACD,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EAAE,YAAA,EACX,UAAU,EACV,KAAK,EACM,MAAA,EAEZ,MAAM,eAAA,CAAgB;AACvB,OAAO,EAAwB,iBAAA,EAAkB,MAAO,gBAAA,CAAiB;AAEzE,OAAO,EAAE,iBAAA,EAAkB,MAAO,8BAAA,CAA+B;AACjE,OAAO,EAAE,eAAA,EAAgB,MAAO,4BAAA,CAA6B;AAC7D,OAAO,EAAE,gBAAA,EAAiB,MAAO,4BAAA,CAA6B;AAC9D,OAAO,EAAE,gBAAA,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QAC1B,EAAC,IAAI,EAAE,iBAAiB,GAAG;QAC3B,EAAC,IAAI,EAAE,eAAe,GAAG;QACzB,EAAC,IAAI,EAAE,iBAAiB,GAAG;KAC1B,EAL6F,CAK7F,CAAC;IACK,kCAAc,GAA2C;QAChE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAC9B,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAChC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACjC,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACnC,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAChC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAC/B,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAClC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAClC,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACjC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAC/B,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACzB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACzB,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;KAC7B,CAAC;IACF,0BAAC;CAnWD,AAmWC,IAAA;SAnWY,mBAAmB","file":"timepicker.component.js","sourceRoot":"","sourcesContent":["/* tslint:disable:no-forward-ref max-file-line-count */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component, EventEmitter,\n forwardRef,\n Input,\n OnChanges, Output,\n SimpleChanges\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport { TimepickerActions } from './reducer/timepicker.actions';\nimport { TimepickerStore } from './reducer/timepicker.store';\nimport { getControlsValue } from './timepicker-controls.util';\nimport { TimepickerConfig } from './timepicker.config';\nimport { TimeChangeSource, TimepickerComponentState, TimepickerControls } from './timepicker.models';\nimport { isValidDate, padNumber, parseTime, isInputValid } from './timepicker.utils';\n\nexport const TIMEPICKER_CONTROL_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n // tslint:disable-next-line\n useExisting: forwardRef(() => TimepickerComponent),\n multi: true\n};\n\n\nexport class TimepickerComponent implements ControlValueAccessor, TimepickerComponentState, TimepickerControls, OnChanges {\n /** hours change step */\n hourStep: number;\n /** hours change step */\n minuteStep: number;\n /** seconds change step */\n secondsStep: number;\n /** if true hours and minutes fields will be readonly */\n readonlyInput: boolean;\n /** if true scroll inside hours and minutes inputs will change time */\n mousewheel: boolean;\n /** if true up/down arrowkeys inside hours and minutes inputs will change time */\n arrowkeys: boolean;\n /** if true spinner arrows above and below the inputs will be shown */\n showSpinners: boolean;\n showMeridian: boolean;\n showSeconds: boolean;\n\n /** meridian labels based on locale */\n meridians: string[];\n\n /** minimum time user can select */\n min: Date;\n /** maximum time user can select */\n max: Date;\n\n /** emits true if value is a valid date */\n isValid: EventEmitter<boolean> = new EventEmitter();\n\n // ui variables\n hours: string;\n minutes: string;\n seconds: string;\n meridian: string;\n\n get isSpinnersVisible(): boolean {\n return this.showSpinners && !this.readonlyInput;\n }\n\n // min\\max validation for input fields\n invalidHours = false;\n invalidMinutes = false;\n invalidSeconds = false;\n\n // time picker controls state\n canIncrementHours: boolean;\n canIncrementMinutes: boolean;\n canIncrementSeconds: boolean;\n\n canDecrementHours: boolean;\n canDecrementMinutes: boolean;\n canDecrementSeconds: boolean;\n\n // control value accessor methods\n onChange: any = Function.prototype;\n onTouched: any = Function.prototype;\n\n constructor(_config: TimepickerConfig,\n private _cd: ChangeDetectorRef,\n private _store: TimepickerStore,\n private _timepickerActions: TimepickerActions) {\n Object.assign(this, _config);\n // todo: add unsubscribe\n _store\n .select((state) => state.value)\n .subscribe((value) => {\n // update UI values if date changed\n this._renderTime(value);\n this.onChange(value);\n\n this._store.dispatch(this._timepickerActions.updateControls(getControlsValue(this)));\n });\n\n _store\n .select((state) => state.controls)\n .subscribe((controlsState) => {\n this.isValid.emit(isInputValid(this.hours, this.minutes, this.seconds, this.isPM()));\n Object.assign(this, controlsState);\n _cd.markForCheck();\n });\n }\n\n isPM(): boolean {\n return this.showMeridian && this.meridian === this.meridians[1];\n }\n\n prevDef($event: any) {\n $event.preventDefault();\n }\n\n wheelSign($event: any): number {\n return Math.sign($event.deltaY as number) * -1;\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this._store.dispatch(this._timepickerActions.updateControls(getControlsValue(this)));\n }\n\n changeHours(step: number, source: TimeChangeSource = ''): void {\n this._store.dispatch(this._timepickerActions.changeHours({step, source}));\n }\n\n changeMinutes(step: number, source: TimeChangeSource = ''): void {\n this._store.dispatch(this._timepickerActions.changeMinutes({step, source}));\n }\n\n changeSeconds(step: number, source: TimeChangeSource = ''): void {\n this._store.dispatch(this._timepickerActions.changeSeconds({step, source}));\n }\n\n updateHours(hours: string): void {\n this.hours = hours;\n this._updateTime();\n }\n\n updateMinutes(minutes: string) {\n this.minutes = minutes;\n this._updateTime();\n }\n\n updateSeconds(seconds: string) {\n this.seconds = seconds;\n this._updateTime();\n }\n\n _updateTime() {\n if (!isInputValid(this.hours, this.minutes, this.seconds, this.isPM())) {\n this.onChange(null);\n return;\n }\n this._store.dispatch(this._timepickerActions\n .setTime({\n hour: this.hours,\n minute: this.minutes,\n seconds: this.seconds,\n isPM: this.isPM()\n }));\n }\n\n toggleMeridian(): void {\n if (!this.showMeridian || this.readonlyInput) {\n return;\n }\n\n const _hoursPerDayHalf = 12;\n this._store.dispatch(this._timepickerActions.changeHours({step: _hoursPerDayHalf, source: ''}));\n }\n\n /**\n * Write a new value to the element.\n */\n writeValue(obj: any): void {\n if (isValidDate(obj)) {\n this._store.dispatch(this._timepickerActions.writeValue(parseTime(obj)));\n }\n }\n\n /**\n * Set the function to be called when the control receives a change event.\n */\n registerOnChange(fn: (_: any) => {}): void {\n this.onChange = fn;\n }\n\n /**\n * Set the function to be called when the control receives a touch event.\n */\n registerOnTouched(fn: () => {}): void {\n this.onTouched = fn;\n }\n\n /**\n * This function is called when the control status changes to or from \"DISABLED\".\n * Depending on the value, it will enable or disable the appropriate DOM element.\n *\n * @param isDisabled\n */\n setDisabledState(isDisabled: boolean): void {\n this.readonlyInput = isDisabled;\n }\n\n private _renderTime(value: string | Date): void {\n if (!isValidDate(value)) {\n this.hours = '';\n this.minutes = '';\n this.seconds = '';\n this.meridian = this.meridians[0];\n\n return;\n }\n\n const _value = parseTime(value);\n const _hoursPerDayHalf = 12;\n let _hours = _value.getHours();\n\n if (this.showMeridian) {\n this.meridian = this.meridians[_hours >= _hoursPerDayHalf ? 1 : 0];\n _hours = _hours % _hoursPerDayHalf;\n // should be 12 PM, not 00 PM\n if (_hours === 0) {\n _hours = _hoursPerDayHalf;\n }\n }\n\n this.hours = padNumber(_hours);\n this.minutes = padNumber(_value.getMinutes());\n this.seconds = padNumber(_value.getUTCSeconds());\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n selector: 'timepicker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TIMEPICKER_CONTROL_VALUE_ACCESSOR, TimepickerStore],\n template: `\n <table>\n <tbody>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- increment hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementHours\"\n (click)=\"changeHours(hourStep)\"\n ><span class=\"glyphicon glyphicon-chevron-up\"></span></a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- increment minutes button -->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementMinutes\"\n (click)=\"changeMinutes(minuteStep)\"\n ><span class=\"glyphicon glyphicon-chevron-up\"></span></a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- increment seconds button -->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementSeconds\"\n (click)=\"changeSeconds(secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n <tr>\n <!-- hours -->\n <td class=\"form-group\" [class.has-error]=\"invalidHours\">\n <input type=\"text\" style=\"width:50px;\"\n class=\"form-control text-center\"\n placeholder=\"HH\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"hours\"\n (wheel)=\"prevDef($event);changeHours(hourStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeHours(hourStep, 'key')\"\n (keydown.ArrowDown)=\"changeHours(-hourStep, 'key')\"\n (change)=\"updateHours($event.target.value)\"></td>\n <!-- divider -->\n <td> : </td>\n <!-- minutes -->\n <td class=\"form-group\" [class.has-error]=\"invalidMinutes\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"MM\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"minutes\"\n (wheel)=\"prevDef($event);changeMinutes(minuteStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeMinutes(minuteStep, 'key')\"\n (keydown.ArrowDown)=\"changeMinutes(-minuteStep, 'key')\"\n (change)=\"updateMinutes($event.target.value)\">\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> : </td>\n <!-- seconds -->\n <td class=\"form-group\" *ngIf=\"showSeconds\" [class.has-error]=\"invalidSeconds\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"SS\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"seconds\"\n (wheel)=\"prevDef($event);changeSeconds(secondsStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeSeconds(secondsStep, 'key')\"\n (keydown.ArrowDown)=\"changeSeconds(-secondsStep, 'key')\"\n (change)=\"updateSeconds($event.target.value)\">\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian -->\n <td *ngIf=\"showMeridian\">\n <button type=\"button\" class=\"btn btn-default text-center\"\n [disabled]=\"readonlyInput\"\n [class.disabled]=\"readonlyInput\"\n (click)=\"toggleMeridian()\"\n >{{ meridian }}\n </button>\n </td>\n </tr>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- decrement hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementHours\" (click)=\"changeHours(-hourStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- decrement minutes button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementMinutes\" (click)=\"changeMinutes(-minuteStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- decrement seconds button-->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementSeconds\" (click)=\"changeSeconds(-secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n </tbody>\n </table>\n `\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: TimepickerConfig, },\n{type: ChangeDetectorRef, },\n{type: TimepickerStore, },\n{type: TimepickerActions, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'hourStep': [{ type: Input },],\n'minuteStep': [{ type: Input },],\n'secondsStep': [{ type: Input },],\n'readonlyInput': [{ type: Input },],\n'mousewheel': [{ type: Input },],\n'arrowkeys': [{ type: Input },],\n'showSpinners': [{ type: Input },],\n'showMeridian': [{ type: Input },],\n'showSeconds': [{ type: Input },],\n'meridians': [{ type: Input },],\n'min': [{ type: Input },],\n'max': [{ type: Input },],\n'isValid': [{ type: Output },],\n};\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
[{"__symbolic":"module","version":3,"metadata":{"TIMEPICKER_CONTROL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"TimepickerComponent"},"multi":true},"TimepickerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"timepicker","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"TIMEPICKER_CONTROL_VALUE_ACCESSOR"},{"__symbolic":"reference","module":"./reducer/timepicker.store","name":"TimepickerStore"}],"template":"\n <table>\n <tbody>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- increment hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementHours\"\n (click)=\"changeHours(hourStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- increment minutes button -->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementMinutes\"\n (click)=\"changeMinutes(minuteStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- increment seconds button -->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementSeconds\"\n (click)=\"changeSeconds(secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n <tr>\n <!-- hours -->\n <td class=\"form-group\" [class.has-error]=\"invalidHours\">\n <input type=\"text\" style=\"width:50px;\"\n class=\"form-control text-center\"\n placeholder=\"HH\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"hours\"\n (wheel)=\"prevDef($event);changeHours(hourStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeHours(hourStep, 'key')\"\n (keydown.ArrowDown)=\"changeHours(-hourStep, 'key')\"\n (change)=\"updateHours($event.target.value)\"></td>\n <!-- divider -->\n <td> : </td>\n <!-- minutes -->\n <td class=\"form-group\" [class.has-error]=\"invalidMinutes\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"MM\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"minutes\"\n (wheel)=\"prevDef($event);changeMinutes(minuteStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeMinutes(minuteStep, 'key')\"\n (keydown.ArrowDown)=\"changeMinutes(-minuteStep, 'key')\"\n (change)=\"updateMinutes($event.target.value)\">\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> : </td>\n <!-- seconds -->\n <td class=\"form-group\" *ngIf=\"showSeconds\" [class.has-error]=\"invalidSeconds\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"SS\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"seconds\"\n (wheel)=\"prevDef($event);changeSeconds(secondsStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeSeconds(secondsStep, 'key')\"\n (keydown.ArrowDown)=\"changeSeconds(-secondsStep, 'key')\"\n (change)=\"updateSeconds($event.target.value)\">\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian -->\n <td *ngIf=\"showMeridian\">\n <button type=\"button\" class=\"btn btn-default text-center\"\n [disabled]=\"readonlyInput\"\n [class.disabled]=\"readonlyInput\"\n (click)=\"toggleMeridian()\">\n {{meridian}}\n </button>\n </td>\n </tr>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- decrement hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementHours\" (click)=\"changeHours(-hourStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- decrement minutes button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementMinutes\" (click)=\"changeMinutes(-minuteStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- decrement seconds button-->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementSeconds\" (click)=\"changeSeconds(-secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n </tbody>\n </table>\n "}]}],"members":{"hourStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minuteStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"secondsStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"readonlyInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"mousewheel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"arrowkeys":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showSpinners":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showMeridian":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showSeconds":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"meridians":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isValid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./timepicker.config","name":"TimepickerConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"},{"__symbolic":"reference","module":"./reducer/timepicker.store","name":"TimepickerStore"},{"__symbolic":"reference","module":"./reducer/timepicker.actions","name":"TimepickerActions"}]}],"isPM":[{"__symbolic":"method"}],"prevDef":[{"__symbolic":"method"}],"wheelSign":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"changeHours":[{"__symbolic":"method"}],"changeMinutes":[{"__symbolic":"method"}],"changeSeconds":[{"__symbolic":"method"}],"updateHours":[{"__symbolic":"method"}],"updateMinutes":[{"__symbolic":"method"}],"updateSeconds":[{"__symbolic":"method"}],"_updateTime":[{"__symbolic":"method"}],"toggleMeridian":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"_renderTime":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"TIMEPICKER_CONTROL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"TimepickerComponent"},"multi":true},"TimepickerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"timepicker","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"TIMEPICKER_CONTROL_VALUE_ACCESSOR"},{"__symbolic":"reference","module":"./reducer/timepicker.store","name":"TimepickerStore"}],"template":"\n <table>\n <tbody>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- increment hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementHours\"\n (click)=\"changeHours(hourStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- increment minutes button -->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementMinutes\"\n (click)=\"changeMinutes(minuteStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- increment seconds button -->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementSeconds\"\n (click)=\"changeSeconds(secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n <tr>\n <!-- hours -->\n <td class=\"form-group\" [class.has-error]=\"invalidHours\">\n <input type=\"text\" style=\"width:50px;\"\n class=\"form-control text-center\"\n placeholder=\"HH\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"hours\"\n (wheel)=\"prevDef($event);changeHours(hourStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeHours(hourStep, 'key')\"\n (keydown.ArrowDown)=\"changeHours(-hourStep, 'key')\"\n (change)=\"updateHours($event.target.value)\"></td>\n <!-- divider -->\n <td> : </td>\n <!-- minutes -->\n <td class=\"form-group\" [class.has-error]=\"invalidMinutes\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"MM\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"minutes\"\n (wheel)=\"prevDef($event);changeMinutes(minuteStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeMinutes(minuteStep, 'key')\"\n (keydown.ArrowDown)=\"changeMinutes(-minuteStep, 'key')\"\n (change)=\"updateMinutes($event.target.value)\">\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> : </td>\n <!-- seconds -->\n <td class=\"form-group\" *ngIf=\"showSeconds\" [class.has-error]=\"invalidSeconds\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"SS\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"seconds\"\n (wheel)=\"prevDef($event);changeSeconds(secondsStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeSeconds(secondsStep, 'key')\"\n (keydown.ArrowDown)=\"changeSeconds(-secondsStep, 'key')\"\n (change)=\"updateSeconds($event.target.value)\">\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian -->\n <td *ngIf=\"showMeridian\">\n <button type=\"button\" class=\"btn btn-default text-center\"\n [disabled]=\"readonlyInput\"\n [class.disabled]=\"readonlyInput\"\n (click)=\"toggleMeridian()\">\n {{meridian}}\n </button>\n </td>\n </tr>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- decrement hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementHours\" (click)=\"changeHours(-hourStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- decrement minutes button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementMinutes\" (click)=\"changeMinutes(-minuteStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- decrement seconds button-->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementSeconds\" (click)=\"changeSeconds(-secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n </tbody>\n </table>\n "}]}],"members":{"hourStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minuteStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"secondsStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"readonlyInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"mousewheel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"arrowkeys":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showSpinners":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showMeridian":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showSeconds":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"meridians":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isValid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./timepicker.config","name":"TimepickerConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"},{"__symbolic":"reference","module":"./reducer/timepicker.store","name":"TimepickerStore"},{"__symbolic":"reference","module":"./reducer/timepicker.actions","name":"TimepickerActions"}]}],"isPM":[{"__symbolic":"method"}],"prevDef":[{"__symbolic":"method"}],"wheelSign":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"changeHours":[{"__symbolic":"method"}],"changeMinutes":[{"__symbolic":"method"}],"changeSeconds":[{"__symbolic":"method"}],"updateHours":[{"__symbolic":"method"}],"updateMinutes":[{"__symbolic":"method"}],"updateSeconds":[{"__symbolic":"method"}],"_updateTime":[{"__symbolic":"method"}],"toggleMeridian":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"_renderTime":[{"__symbolic":"method"}]}}}}]
|
1
|
+
[{"__symbolic":"module","version":3,"metadata":{"TIMEPICKER_CONTROL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"TimepickerComponent"},"multi":true},"TimepickerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"timepicker","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"TIMEPICKER_CONTROL_VALUE_ACCESSOR"},{"__symbolic":"reference","module":"./reducer/timepicker.store","name":"TimepickerStore"}],"template":"\n <table>\n <tbody>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- increment hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementHours\"\n (click)=\"changeHours(hourStep)\"\n ><span class=\"glyphicon glyphicon-chevron-up\"></span></a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- increment minutes button -->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementMinutes\"\n (click)=\"changeMinutes(minuteStep)\"\n ><span class=\"glyphicon glyphicon-chevron-up\"></span></a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- increment seconds button -->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementSeconds\"\n (click)=\"changeSeconds(secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n <tr>\n <!-- hours -->\n <td class=\"form-group\" [class.has-error]=\"invalidHours\">\n <input type=\"text\" style=\"width:50px;\"\n class=\"form-control text-center\"\n placeholder=\"HH\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"hours\"\n (wheel)=\"prevDef($event);changeHours(hourStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeHours(hourStep, 'key')\"\n (keydown.ArrowDown)=\"changeHours(-hourStep, 'key')\"\n (change)=\"updateHours($event.target.value)\"></td>\n <!-- divider -->\n <td> : </td>\n <!-- minutes -->\n <td class=\"form-group\" [class.has-error]=\"invalidMinutes\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"MM\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"minutes\"\n (wheel)=\"prevDef($event);changeMinutes(minuteStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeMinutes(minuteStep, 'key')\"\n (keydown.ArrowDown)=\"changeMinutes(-minuteStep, 'key')\"\n (change)=\"updateMinutes($event.target.value)\">\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> : </td>\n <!-- seconds -->\n <td class=\"form-group\" *ngIf=\"showSeconds\" [class.has-error]=\"invalidSeconds\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"SS\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"seconds\"\n (wheel)=\"prevDef($event);changeSeconds(secondsStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeSeconds(secondsStep, 'key')\"\n (keydown.ArrowDown)=\"changeSeconds(-secondsStep, 'key')\"\n (change)=\"updateSeconds($event.target.value)\">\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian -->\n <td *ngIf=\"showMeridian\">\n <button type=\"button\" class=\"btn btn-default text-center\"\n [disabled]=\"readonlyInput\"\n [class.disabled]=\"readonlyInput\"\n (click)=\"toggleMeridian()\"\n >{{ meridian }}\n </button>\n </td>\n </tr>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- decrement hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementHours\" (click)=\"changeHours(-hourStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- decrement minutes button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementMinutes\" (click)=\"changeMinutes(-minuteStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- decrement seconds button-->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementSeconds\" (click)=\"changeSeconds(-secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n </tbody>\n </table>\n "}]}],"members":{"hourStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minuteStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"secondsStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"readonlyInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"mousewheel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"arrowkeys":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showSpinners":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showMeridian":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showSeconds":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"meridians":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isValid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./timepicker.config","name":"TimepickerConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"},{"__symbolic":"reference","module":"./reducer/timepicker.store","name":"TimepickerStore"},{"__symbolic":"reference","module":"./reducer/timepicker.actions","name":"TimepickerActions"}]}],"isPM":[{"__symbolic":"method"}],"prevDef":[{"__symbolic":"method"}],"wheelSign":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"changeHours":[{"__symbolic":"method"}],"changeMinutes":[{"__symbolic":"method"}],"changeSeconds":[{"__symbolic":"method"}],"updateHours":[{"__symbolic":"method"}],"updateMinutes":[{"__symbolic":"method"}],"updateSeconds":[{"__symbolic":"method"}],"_updateTime":[{"__symbolic":"method"}],"toggleMeridian":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"_renderTime":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"TIMEPICKER_CONTROL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"TimepickerComponent"},"multi":true},"TimepickerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"timepicker","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"TIMEPICKER_CONTROL_VALUE_ACCESSOR"},{"__symbolic":"reference","module":"./reducer/timepicker.store","name":"TimepickerStore"}],"template":"\n <table>\n <tbody>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- increment hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementHours\"\n (click)=\"changeHours(hourStep)\"\n ><span class=\"glyphicon glyphicon-chevron-up\"></span></a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- increment minutes button -->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementMinutes\"\n (click)=\"changeMinutes(minuteStep)\"\n ><span class=\"glyphicon glyphicon-chevron-up\"></span></a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- increment seconds button -->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canIncrementSeconds\"\n (click)=\"changeSeconds(secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-up\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n <tr>\n <!-- hours -->\n <td class=\"form-group\" [class.has-error]=\"invalidHours\">\n <input type=\"text\" style=\"width:50px;\"\n class=\"form-control text-center\"\n placeholder=\"HH\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"hours\"\n (wheel)=\"prevDef($event);changeHours(hourStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeHours(hourStep, 'key')\"\n (keydown.ArrowDown)=\"changeHours(-hourStep, 'key')\"\n (change)=\"updateHours($event.target.value)\"></td>\n <!-- divider -->\n <td> : </td>\n <!-- minutes -->\n <td class=\"form-group\" [class.has-error]=\"invalidMinutes\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"MM\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"minutes\"\n (wheel)=\"prevDef($event);changeMinutes(minuteStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeMinutes(minuteStep, 'key')\"\n (keydown.ArrowDown)=\"changeMinutes(-minuteStep, 'key')\"\n (change)=\"updateMinutes($event.target.value)\">\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> : </td>\n <!-- seconds -->\n <td class=\"form-group\" *ngIf=\"showSeconds\" [class.has-error]=\"invalidSeconds\">\n <input style=\"width:50px;\" type=\"text\"\n class=\"form-control text-center\"\n placeholder=\"SS\"\n maxlength=\"2\"\n [readonly]=\"readonlyInput\"\n [value]=\"seconds\"\n (wheel)=\"prevDef($event);changeSeconds(secondsStep * wheelSign($event), 'wheel')\"\n (keydown.ArrowUp)=\"changeSeconds(secondsStep, 'key')\"\n (keydown.ArrowDown)=\"changeSeconds(-secondsStep, 'key')\"\n (change)=\"updateSeconds($event.target.value)\">\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian -->\n <td *ngIf=\"showMeridian\">\n <button type=\"button\" class=\"btn btn-default text-center\"\n [disabled]=\"readonlyInput\"\n [class.disabled]=\"readonlyInput\"\n (click)=\"toggleMeridian()\"\n >{{ meridian }}\n </button>\n </td>\n </tr>\n <tr class=\"text-center\" [class.hidden]=\"!isSpinnersVisible\">\n <!-- decrement hours button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementHours\" (click)=\"changeHours(-hourStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td> </td>\n <!-- decrement minutes button-->\n <td>\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementMinutes\" (click)=\"changeMinutes(-minuteStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- divider -->\n <td *ngIf=\"showSeconds\"> </td>\n <!-- decrement seconds button-->\n <td *ngIf=\"showSeconds\">\n <a class=\"btn btn-link\" [class.disabled]=\"!canDecrementSeconds\" (click)=\"changeSeconds(-secondsStep)\">\n <span class=\"glyphicon glyphicon-chevron-down\"></span>\n </a>\n </td>\n <!-- space between -->\n <td> </td>\n <!-- meridian placeholder-->\n <td *ngIf=\"showMeridian\"></td>\n </tr>\n </tbody>\n </table>\n "}]}],"members":{"hourStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"minuteStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"secondsStep":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"readonlyInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"mousewheel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"arrowkeys":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showSpinners":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showMeridian":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showSeconds":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"meridians":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isValid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./timepicker.config","name":"TimepickerConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"},{"__symbolic":"reference","module":"./reducer/timepicker.store","name":"TimepickerStore"},{"__symbolic":"reference","module":"./reducer/timepicker.actions","name":"TimepickerActions"}]}],"isPM":[{"__symbolic":"method"}],"prevDef":[{"__symbolic":"method"}],"wheelSign":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"changeHours":[{"__symbolic":"method"}],"changeMinutes":[{"__symbolic":"method"}],"changeSeconds":[{"__symbolic":"method"}],"updateHours":[{"__symbolic":"method"}],"updateMinutes":[{"__symbolic":"method"}],"updateSeconds":[{"__symbolic":"method"}],"_updateTime":[{"__symbolic":"method"}],"toggleMeridian":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"_renderTime":[{"__symbolic":"method"}]}}}}]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Injectable } from '@angular/core';
|
2
2
|
/** Provides default configuration values for timepicker */
|
3
|
-
|
3
|
+
var TimepickerConfig = (function () {
|
4
4
|
function TimepickerConfig() {
|
5
5
|
/** hours change step */
|
6
6
|
this.hourStep = 1;
|
@@ -30,4 +30,5 @@ export var TimepickerConfig = (function () {
|
|
30
30
|
TimepickerConfig.ctorParameters = function () { return []; };
|
31
31
|
return TimepickerConfig;
|
32
32
|
}());
|
33
|
+
export { TimepickerConfig };
|
33
34
|
//# sourceMappingURL=timepicker.config.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../.tmp/timepicker/timepicker.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAA,EAAW,MAAO,eAAA,CAAgB;AAE3C,2DAA2D;AAE3D;IAAA;QACE,wBAAwB;QACxB,aAAQ,GAAG,CAAC,CAAC;QACb,wBAAwB;QACxB,eAAU,GAAG,CAAC,CAAC;QACf,2BAA2B;QAC3B,gBAAW,GAAG,EAAE,CAAC;QACjB,+FAA+F;QAC/F,iBAAY,GAAG,IAAI,CAAC;QACpB,sCAAsC;QACtC,cAAS,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACzB,wDAAwD;QACxD,kBAAa,GAAG,KAAK,CAAC;QACtB,sEAAsE;QACtE,eAAU,GAAG,IAAI,CAAC;QAClB,iFAAiF;QACjF,cAAS,GAAG,IAAI,CAAC;QACjB,sEAAsE;QACtE,iBAAY,GAAG,IAAI,CAAC;QACpB,iCAAiC;QACjC,gBAAW,GAAG,KAAK,CAAC;IAWtB,CAAC;IANM,2BAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,UAAU,EAAE;KACnB,CAAC;IACF,kBAAkB;IACX,+BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;IACF,uBAAC;CA/BD,AA+BC,IAAA;SA/BY,gBAAgB","file":"timepicker.config.js","sourceRoot":"","sourcesContent":["import { Injectable } from '@angular/core';\n\n/** Provides default configuration values for timepicker */\n\nexport class TimepickerConfig {\n /** hours change step */\n hourStep = 1;\n /** hours change step */\n minuteStep = 5;\n /** seconds changes step */\n secondsStep = 10;\n /** if true works in 12H mode and displays AM/PM. If false works in 24H mode and hides AM/PM */\n showMeridian = true;\n /** meridian labels based on locale */\n meridians = ['AM', 'PM'];\n /** if true hours and minutes fields will be readonly */\n readonlyInput = false;\n /** if true scroll inside hours and minutes inputs will change time */\n mousewheel = true;\n /** if true up/down arrowkeys inside hours and minutes inputs will change time */\n arrowkeys = true;\n /** if true spinner arrows above and below the inputs will be shown */\n showSpinners = true;\n /** show seconds in timepicker */\n showSeconds = false;\n /** minimum time user can select */\n min: Date;\n /** maximum time user can select */\n max: Date;\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"timepicker.models.js","sourceRoot":"","sourcesContent":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
[{"__symbolic":"module","version":3,"metadata":{"Time":{"__symbolic":"interface"},"TimepickerControls":{"__symbolic":"interface"},"TimepickerComponentState":{"__symbolic":"interface"},"TimeChangeEvent":{"__symbolic":"interface"}}},{"__symbolic":"module","version":1,"metadata":{"Time":{"__symbolic":"interface"},"TimepickerControls":{"__symbolic":"interface"},"TimepickerComponentState":{"__symbolic":"interface"},"TimeChangeEvent":{"__symbolic":"interface"}}}]
|
@@ -4,7 +4,7 @@ import { TimepickerComponent } from './timepicker.component';
|
|
4
4
|
import { TimepickerActions } from './reducer/timepicker.actions';
|
5
5
|
import { TimepickerConfig } from './timepicker.config';
|
6
6
|
import { TimepickerStore } from './reducer/timepicker.store';
|
7
|
-
|
7
|
+
var TimepickerModule = (function () {
|
8
8
|
function TimepickerModule() {
|
9
9
|
}
|
10
10
|
TimepickerModule.forRoot = function () {
|
@@ -24,4 +24,5 @@ export var TimepickerModule = (function () {
|
|
24
24
|
TimepickerModule.ctorParameters = function () { return []; };
|
25
25
|
return TimepickerModule;
|
26
26
|
}());
|
27
|
+
export { TimepickerModule };
|
27
28
|
//# sourceMappingURL=timepicker.module.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../.tmp/timepicker/timepicker.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,QAAA,EAAS,MAAO,eAAA,CAAgB;AAC9D,OAAO,EAAE,YAAA,EAAa,MAAO,iBAAA,CAAkB;AAE/C,OAAO,EAAE,mBAAA,EAAoB,MAAO,wBAAA,CAAyB;AAC7D,OAAO,EAAE,iBAAA,EAAkB,MAAO,8BAAA,CAA+B;AACjE,OAAO,EAAE,gBAAA,EAAiB,MAAO,qBAAA,CAAsB;AACvD,OAAO,EAAE,eAAA,EAAgB,MAAO,4BAAA,CAA6B;AAG7D;IAAA;IAiBA,CAAC;IAhBQ,wBAAO,GAAd;QACE,MAAM,CAAC;YACL,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,CAAC;SAClE,CAAC;IACJ,CAAC;IACI,2BAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;oBACvB,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;iBAC/B,EAAG,EAAE;KACL,CAAC;IACF,kBAAkB;IACX,+BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;IACF,uBAAC;CAjBD,AAiBC,IAAA;SAjBY,gBAAgB","file":"timepicker.module.js","sourceRoot":"","sourcesContent":["import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TimepickerComponent } from './timepicker.component';\nimport { TimepickerActions } from './reducer/timepicker.actions';\nimport { TimepickerConfig } from './timepicker.config';\nimport { TimepickerStore } from './reducer/timepicker.store';\n\n\nexport class TimepickerModule {\n static forRoot(): ModuleWithProviders {\n return {\n ngModule: TimepickerModule,\n providers: [TimepickerConfig, TimepickerActions, TimepickerStore]\n };\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n imports: [CommonModule],\n declarations: [TimepickerComponent],\n exports: [TimepickerComponent]\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|