mis-crystal-design-system 2.3.21 → 2.4.2
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/bundles/mis-crystal-design-system-datepicker_v2.umd.js +31 -13
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.js.map +1 -1
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js +2 -2
- package/bundles/mis-crystal-design-system-datepicker_v2.umd.min.js.map +1 -1
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js +772 -0
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.js.map +1 -0
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js +16 -0
- package/bundles/mis-crystal-design-system-daterangepicker_v2.umd.min.js.map +1 -0
- package/datepicker_v2/mis-crystal-design-system-datepicker_v2.metadata.json +1 -1
- package/datepicker_v2/models/dp-config.model.d.ts +1 -0
- package/datepicker_v2/tz-datepicker.directive.d.ts +4 -3
- package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +3 -0
- package/daterangepicker_v2/daterangepicker-constants.d.ts +4 -0
- package/daterangepicker_v2/daterangepicker.module.d.ts +2 -0
- package/{datepicker → daterangepicker_v2}/index.d.ts +0 -0
- package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.d.ts +7 -0
- package/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.metadata.json +1 -0
- package/daterangepicker_v2/models/drp-config.model.d.ts +37 -0
- package/daterangepicker_v2/package.json +11 -0
- package/daterangepicker_v2/public_api.d.ts +3 -0
- package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +29 -0
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +32 -0
- package/daterangepicker_v2/utils/index.d.ts +2 -0
- package/esm2015/datepicker_v2/datepicker.module.js +3 -2
- package/esm2015/datepicker_v2/models/dp-config.model.js +1 -1
- package/esm2015/datepicker_v2/tz-datepicker.directive.js +9 -7
- package/esm2015/datepicker_v2/tz-dp-container/tz-dp-container.component.js +19 -4
- package/esm2015/daterangepicker_v2/daterangepicker-constants.js +5 -0
- package/esm2015/daterangepicker_v2/daterangepicker.module.js +17 -0
- package/esm2015/daterangepicker_v2/index.js +2 -0
- package/esm2015/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.js +7 -0
- package/esm2015/daterangepicker_v2/models/drp-config.model.js +2 -0
- package/esm2015/daterangepicker_v2/public_api.js +3 -0
- package/esm2015/daterangepicker_v2/tz-daterangepicker.directive.js +131 -0
- package/esm2015/daterangepicker_v2/tz-drp-container/tz-drp-container.component.js +228 -0
- package/esm2015/daterangepicker_v2/utils/index.js +45 -0
- package/fesm2015/mis-crystal-design-system-datepicker_v2.js +28 -10
- package/fesm2015/mis-crystal-design-system-datepicker_v2.js.map +1 -1
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js +423 -0
- package/fesm2015/mis-crystal-design-system-daterangepicker_v2.js.map +1 -0
- package/package.json +1 -1
- package/bundles/mis-crystal-design-system-datepicker.umd.js +0 -13916
- package/bundles/mis-crystal-design-system-datepicker.umd.js.map +0 -1
- package/bundles/mis-crystal-design-system-datepicker.umd.min.js +0 -68
- package/bundles/mis-crystal-design-system-datepicker.umd.min.js.map +0 -1
- package/datepicker/base/bs-datepicker-container.d.ts +0 -44
- package/datepicker/bs-datepicker-inline.component.d.ts +0 -61
- package/datepicker/bs-datepicker-inline.config.d.ts +0 -3
- package/datepicker/bs-datepicker-input.directive.d.ts +0 -30
- package/datepicker/bs-datepicker.component.d.ts +0 -123
- package/datepicker/bs-datepicker.config.d.ts +0 -140
- package/datepicker/bs-datepicker.module.d.ts +0 -4
- package/datepicker/bs-daterangepicker-inline.component.d.ts +0 -61
- package/datepicker/bs-daterangepicker-inline.config.d.ts +0 -6
- package/datepicker/bs-daterangepicker-input.directive.d.ts +0 -30
- package/datepicker/bs-daterangepicker.component.d.ts +0 -115
- package/datepicker/bs-daterangepicker.config.d.ts +0 -4
- package/datepicker/bs-locale.service.d.ts +0 -10
- package/datepicker/date-formatter.d.ts +0 -3
- package/datepicker/datepicker-animations.d.ts +0 -3
- package/datepicker/datepicker-inner.component.d.ts +0 -75
- package/datepicker/datepicker.component.d.ts +0 -78
- package/datepicker/datepicker.config.d.ts +0 -19
- package/datepicker/datepicker.module.d.ts +0 -4
- package/datepicker/daypicker.component.d.ts +0 -14
- package/datepicker/engine/calc-days-calendar.d.ts +0 -2
- package/datepicker/engine/flag-days-calendar.d.ts +0 -17
- package/datepicker/engine/flag-months-calendar.d.ts +0 -12
- package/datepicker/engine/flag-years-calendar.d.ts +0 -12
- package/datepicker/engine/format-days-calendar.d.ts +0 -4
- package/datepicker/engine/format-months-calendar.d.ts +0 -2
- package/datepicker/engine/format-years-calendar.d.ts +0 -4
- package/datepicker/engine/view-mode.d.ts +0 -2
- package/datepicker/mis-crystal-design-system-datepicker.d.ts +0 -24
- package/datepicker/mis-crystal-design-system-datepicker.metadata.json +0 -1
- package/datepicker/models/index.d.ts +0 -102
- package/datepicker/monthpicker.component.d.ts +0 -11
- package/datepicker/package.json +0 -11
- package/datepicker/public_api.d.ts +0 -26
- package/datepicker/reducer/_defaults.d.ts +0 -2
- package/datepicker/reducer/bs-datepicker.actions.d.ts +0 -43
- package/datepicker/reducer/bs-datepicker.effects.d.ts +0 -38
- package/datepicker/reducer/bs-datepicker.reducer.d.ts +0 -3
- package/datepicker/reducer/bs-datepicker.state.d.ts +0 -43
- package/datepicker/reducer/bs-datepicker.store.d.ts +0 -5
- package/datepicker/sub-components/chronos/create/check-overflow.d.ts +0 -2
- package/datepicker/sub-components/chronos/create/clone.d.ts +0 -1
- package/datepicker/sub-components/chronos/create/date-from-array.d.ts +0 -2
- package/datepicker/sub-components/chronos/create/from-anything.d.ts +0 -4
- package/datepicker/sub-components/chronos/create/from-array.d.ts +0 -2
- package/datepicker/sub-components/chronos/create/from-object.d.ts +0 -2
- package/datepicker/sub-components/chronos/create/from-string-and-array.d.ts +0 -2
- package/datepicker/sub-components/chronos/create/from-string-and-format.d.ts +0 -4
- package/datepicker/sub-components/chronos/create/from-string.d.ts +0 -4
- package/datepicker/sub-components/chronos/create/local.d.ts +0 -3
- package/datepicker/sub-components/chronos/create/parsing-flags.d.ts +0 -2
- package/datepicker/sub-components/chronos/create/parsing.types.d.ts +0 -64
- package/datepicker/sub-components/chronos/create/valid.d.ts +0 -6
- package/datepicker/sub-components/chronos/duration/bubble.d.ts +0 -4
- package/datepicker/sub-components/chronos/duration/constructor.d.ts +0 -21
- package/datepicker/sub-components/chronos/duration/create.d.ts +0 -8
- package/datepicker/sub-components/chronos/duration/humanize.d.ts +0 -5
- package/datepicker/sub-components/chronos/duration/valid.d.ts +0 -2
- package/datepicker/sub-components/chronos/format/format.d.ts +0 -11
- package/datepicker/sub-components/chronos/format.d.ts +0 -5
- package/datepicker/sub-components/chronos/i18n/ar.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/bg.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/ca.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/cs.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/da.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/de.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/en-gb.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/es-do.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/es-us.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/es.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/et.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/fi.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/fr.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/gl.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/he.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/hi.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/hr.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/hu.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/id.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/it.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/ja.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/ka.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/kk.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/ko.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/lt.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/lv.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/mn.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/nb.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/nl-be.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/nl.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/pl.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/pt-br.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/ro.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/ru.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/sk.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/sl.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/sq.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/sv.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/th-be.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/th.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/tr.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/uk.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/vi.d.ts +0 -2
- package/datepicker/sub-components/chronos/i18n/zh-cn.d.ts +0 -2
- package/datepicker/sub-components/chronos/index.d.ts +0 -1
- package/datepicker/sub-components/chronos/locale/calendar.d.ts +0 -8
- package/datepicker/sub-components/chronos/locale/locale.class.d.ts +0 -143
- package/datepicker/sub-components/chronos/locale/locale.defaults.d.ts +0 -11
- package/datepicker/sub-components/chronos/locale/locales.d.ts +0 -7
- package/datepicker/sub-components/chronos/moment/add-subtract.d.ts +0 -5
- package/datepicker/sub-components/chronos/moment/calendar.d.ts +0 -15
- package/datepicker/sub-components/chronos/moment/diff.d.ts +0 -3
- package/datepicker/sub-components/chronos/moment/min-max.d.ts +0 -2
- package/datepicker/sub-components/chronos/parse/regex.d.ts +0 -22
- package/datepicker/sub-components/chronos/parse/token.d.ts +0 -5
- package/datepicker/sub-components/chronos/public_api.d.ts +0 -57
- package/datepicker/sub-components/chronos/test/chain.d.ts +0 -214
- package/datepicker/sub-components/chronos/types.d.ts +0 -36
- package/datepicker/sub-components/chronos/units/aliases.d.ts +0 -7
- package/datepicker/sub-components/chronos/units/constants.d.ts +0 -9
- package/datepicker/sub-components/chronos/units/day-of-month.d.ts +0 -1
- package/datepicker/sub-components/chronos/units/day-of-week.d.ts +0 -20
- package/datepicker/sub-components/chronos/units/day-of-year.d.ts +0 -3
- package/datepicker/sub-components/chronos/units/hour.d.ts +0 -1
- package/datepicker/sub-components/chronos/units/index.d.ts +0 -18
- package/datepicker/sub-components/chronos/units/millisecond.d.ts +0 -1
- package/datepicker/sub-components/chronos/units/minute.d.ts +0 -1
- package/datepicker/sub-components/chronos/units/month.d.ts +0 -2
- package/datepicker/sub-components/chronos/units/offset.d.ts +0 -10
- package/datepicker/sub-components/chronos/units/priorities.d.ts +0 -1
- package/datepicker/sub-components/chronos/units/quarter.d.ts +0 -3
- package/datepicker/sub-components/chronos/units/second.d.ts +0 -1
- package/datepicker/sub-components/chronos/units/timestamp.d.ts +0 -1
- package/datepicker/sub-components/chronos/units/timezone.d.ts +0 -3
- package/datepicker/sub-components/chronos/units/week-calendar-utils.d.ts +0 -9
- package/datepicker/sub-components/chronos/units/week-year.d.ts +0 -8
- package/datepicker/sub-components/chronos/units/week.d.ts +0 -6
- package/datepicker/sub-components/chronos/units/year.d.ts +0 -4
- package/datepicker/sub-components/chronos/utils/abs-ceil.d.ts +0 -1
- package/datepicker/sub-components/chronos/utils/abs-round.d.ts +0 -1
- package/datepicker/sub-components/chronos/utils/compare-arrays.d.ts +0 -1
- package/datepicker/sub-components/chronos/utils/date-compare.d.ts +0 -9
- package/datepicker/sub-components/chronos/utils/date-getters.d.ts +0 -18
- package/datepicker/sub-components/chronos/utils/date-setters.d.ts +0 -12
- package/datepicker/sub-components/chronos/utils/defaults.d.ts +0 -1
- package/datepicker/sub-components/chronos/utils/start-end-of.d.ts +0 -3
- package/datepicker/sub-components/chronos/utils/type-checks.d.ts +0 -12
- package/datepicker/sub-components/chronos/utils/zero-fill.d.ts +0 -1
- package/datepicker/sub-components/chronos/utils.d.ts +0 -2
- package/datepicker/sub-components/component-loader/bs-component-ref.class.d.ts +0 -5
- package/datepicker/sub-components/component-loader/component-loader.class.d.ts +0 -75
- package/datepicker/sub-components/component-loader/component-loader.factory.d.ts +0 -18
- package/datepicker/sub-components/component-loader/content-ref.class.d.ts +0 -7
- package/datepicker/sub-components/component-loader/index.d.ts +0 -1
- package/datepicker/sub-components/component-loader/listen-options.model.d.ts +0 -11
- package/datepicker/sub-components/component-loader/public_api.d.ts +0 -4
- package/datepicker/sub-components/mini-ngrx/index.d.ts +0 -1
- package/datepicker/sub-components/mini-ngrx/public_api.d.ts +0 -7
- package/datepicker/sub-components/mini-ngrx/state.class.d.ts +0 -8
- package/datepicker/sub-components/mini-ngrx/store.class.d.ts +0 -16
- package/datepicker/sub-components/positioning/index.d.ts +0 -1
- package/datepicker/sub-components/positioning/models/index.d.ts +0 -41
- package/datepicker/sub-components/positioning/modifiers/arrow.d.ts +0 -2
- package/datepicker/sub-components/positioning/modifiers/flip.d.ts +0 -2
- package/datepicker/sub-components/positioning/modifiers/index.d.ts +0 -5
- package/datepicker/sub-components/positioning/modifiers/initData.d.ts +0 -2
- package/datepicker/sub-components/positioning/modifiers/preventOverflow.d.ts +0 -2
- package/datepicker/sub-components/positioning/modifiers/shift.d.ts +0 -2
- package/datepicker/sub-components/positioning/ng-positioning.d.ts +0 -8
- package/datepicker/sub-components/positioning/positioning.service.d.ts +0 -45
- package/datepicker/sub-components/positioning/public_api.d.ts +0 -2
- package/datepicker/sub-components/positioning/utils/computeAutoPlacement.d.ts +0 -2
- package/datepicker/sub-components/positioning/utils/findCommonOffsetParent.d.ts +0 -1
- package/datepicker/sub-components/positioning/utils/getBordersSize.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/getBoundaries.d.ts +0 -1
- package/datepicker/sub-components/positioning/utils/getBoundingClientRect.d.ts +0 -2
- package/datepicker/sub-components/positioning/utils/getClientRect.d.ts +0 -5
- package/datepicker/sub-components/positioning/utils/getFixedPositionOffsetParent.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/getOffsetParent.d.ts +0 -1
- package/datepicker/sub-components/positioning/utils/getOffsetRectRelativeToArbitraryNode.d.ts +0 -2
- package/datepicker/sub-components/positioning/utils/getOffsets.d.ts +0 -2
- package/datepicker/sub-components/positioning/utils/getOppositePlacement.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/getOppositeVariation.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/getOuterSizes.d.ts +0 -7
- package/datepicker/sub-components/positioning/utils/getParentNode.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/getReferenceOffsets.d.ts +0 -2
- package/datepicker/sub-components/positioning/utils/getRoot.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/getScroll.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/getScrollParent.d.ts +0 -1
- package/datepicker/sub-components/positioning/utils/getStyleComputedProperty.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/getTargetOffsets.d.ts +0 -2
- package/datepicker/sub-components/positioning/utils/getViewportOffsetRectRelativeToArtbitraryNode.d.ts +0 -2
- package/datepicker/sub-components/positioning/utils/getWindowSizes.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/includeScroll.d.ts +0 -2
- package/datepicker/sub-components/positioning/utils/index.d.ts +0 -23
- package/datepicker/sub-components/positioning/utils/isBrowser.d.ts +0 -1
- package/datepicker/sub-components/positioning/utils/isFixed.d.ts +0 -1
- package/datepicker/sub-components/positioning/utils/isIE.d.ts +0 -1
- package/datepicker/sub-components/positioning/utils/isModifierEnabled.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/isNumeric.d.ts +0 -4
- package/datepicker/sub-components/positioning/utils/isOffsetContainer.d.ts +0 -1
- package/datepicker/sub-components/positioning/utils/setStyles.d.ts +0 -5
- package/datepicker/sub-components/positioning/utils/updateContainerClass.d.ts +0 -6
- package/datepicker/sub-components/tooltip/index.d.ts +0 -1
- package/datepicker/sub-components/tooltip/public_api.d.ts +0 -4
- package/datepicker/sub-components/tooltip/tooltip-container.component.d.ts +0 -14
- package/datepicker/sub-components/tooltip/tooltip.config.d.ts +0 -13
- package/datepicker/sub-components/tooltip/tooltip.directive.d.ts +0 -109
- package/datepicker/sub-components/tooltip/tooltip.module.d.ts +0 -4
- package/datepicker/sub-components/utils/decorators.d.ts +0 -1
- package/datepicker/sub-components/utils/facade/browser.d.ts +0 -23
- package/datepicker/sub-components/utils/index.d.ts +0 -1
- package/datepicker/sub-components/utils/linked-list.class.d.ts +0 -26
- package/datepicker/sub-components/utils/public_api.d.ts +0 -10
- package/datepicker/sub-components/utils/theme-provider.d.ts +0 -2
- package/datepicker/sub-components/utils/trigger.class.d.ts +0 -6
- package/datepicker/sub-components/utils/triggers.d.ts +0 -18
- package/datepicker/sub-components/utils/utils.class.d.ts +0 -4
- package/datepicker/sub-components/utils/warn-once.d.ts +0 -1
- package/datepicker/themes/bs/bs-calendar-layout.component.d.ts +0 -2
- package/datepicker/themes/bs/bs-current-date-view.component.d.ts +0 -3
- package/datepicker/themes/bs/bs-custom-dates-view.component.d.ts +0 -14
- package/datepicker/themes/bs/bs-datepicker-container.component.d.ts +0 -33
- package/datepicker/themes/bs/bs-datepicker-day-decorator.directive.d.ts +0 -11
- package/datepicker/themes/bs/bs-datepicker-inline-container.component.d.ts +0 -10
- package/datepicker/themes/bs/bs-datepicker-navigation-view.component.d.ts +0 -9
- package/datepicker/themes/bs/bs-daterangepicker-container.component.d.ts +0 -37
- package/datepicker/themes/bs/bs-daterangepicker-inline-container.component.d.ts +0 -10
- package/datepicker/themes/bs/bs-days-calendar-view.component.d.ts +0 -23
- package/datepicker/themes/bs/bs-months-calendar-view.component.d.ts +0 -13
- package/datepicker/themes/bs/bs-timepicker-view.component.d.ts +0 -5
- package/datepicker/themes/bs/bs-years-calendar-view.component.d.ts +0 -13
- package/datepicker/utils/bs-calendar-utils.d.ts +0 -10
- package/datepicker/utils/matrix-utils.d.ts +0 -9
- package/datepicker/yearpicker.component.d.ts +0 -11
- package/esm2015/datepicker/base/bs-datepicker-container.js +0 -47
- package/esm2015/datepicker/bs-datepicker-inline.component.js +0 -132
- package/esm2015/datepicker/bs-datepicker-inline.config.js +0 -12
- package/esm2015/datepicker/bs-datepicker-input.directive.js +0 -159
- package/esm2015/datepicker/bs-datepicker.component.js +0 -238
- package/esm2015/datepicker/bs-datepicker.config.js +0 -85
- package/esm2015/datepicker/bs-datepicker.module.js +0 -101
- package/esm2015/datepicker/bs-daterangepicker-inline.component.js +0 -129
- package/esm2015/datepicker/bs-daterangepicker-inline.config.js +0 -19
- package/esm2015/datepicker/bs-daterangepicker-input.directive.js +0 -191
- package/esm2015/datepicker/bs-daterangepicker.component.js +0 -227
- package/esm2015/datepicker/bs-daterangepicker.config.js +0 -17
- package/esm2015/datepicker/bs-locale.service.js +0 -28
- package/esm2015/datepicker/date-formatter.js +0 -7
- package/esm2015/datepicker/datepicker-animations.js +0 -16
- package/esm2015/datepicker/datepicker-inner.component.js +0 -282
- package/esm2015/datepicker/datepicker.component.js +0 -140
- package/esm2015/datepicker/datepicker.config.js +0 -30
- package/esm2015/datepicker/datepicker.module.js +0 -35
- package/esm2015/datepicker/daypicker.component.js +0 -174
- package/esm2015/datepicker/engine/calc-days-calendar.js +0 -19
- package/esm2015/datepicker/engine/flag-days-calendar.js +0 -91
- package/esm2015/datepicker/engine/flag-months-calendar.js +0 -41
- package/esm2015/datepicker/engine/flag-years-calendar.js +0 -39
- package/esm2015/datepicker/engine/format-days-calendar.js +0 -29
- package/esm2015/datepicker/engine/format-months-calendar.js +0 -19
- package/esm2015/datepicker/engine/format-years-calendar.js +0 -35
- package/esm2015/datepicker/engine/view-mode.js +0 -4
- package/esm2015/datepicker/index.js +0 -2
- package/esm2015/datepicker/mis-crystal-design-system-datepicker.js +0 -25
- package/esm2015/datepicker/models/index.js +0 -9
- package/esm2015/datepicker/monthpicker.component.js +0 -87
- package/esm2015/datepicker/public_api.js +0 -26
- package/esm2015/datepicker/reducer/_defaults.js +0 -5
- package/esm2015/datepicker/reducer/bs-datepicker.actions.js +0 -132
- package/esm2015/datepicker/reducer/bs-datepicker.effects.js +0 -170
- package/esm2015/datepicker/reducer/bs-datepicker.reducer.js +0 -302
- package/esm2015/datepicker/reducer/bs-datepicker.state.js +0 -12
- package/esm2015/datepicker/reducer/bs-datepicker.store.js +0 -19
- package/esm2015/datepicker/sub-components/chronos/create/check-overflow.js +0 -30
- package/esm2015/datepicker/sub-components/chronos/create/clone.js +0 -6
- package/esm2015/datepicker/sub-components/chronos/create/date-from-array.js +0 -17
- package/esm2015/datepicker/sub-components/chronos/create/from-anything.js +0 -107
- package/esm2015/datepicker/sub-components/chronos/create/from-array.js +0 -136
- package/esm2015/datepicker/sub-components/chronos/create/from-object.js +0 -17
- package/esm2015/datepicker/sub-components/chronos/create/from-string-and-array.js +0 -38
- package/esm2015/datepicker/sub-components/chronos/create/from-string-and-format.js +0 -106
- package/esm2015/datepicker/sub-components/chronos/create/from-string.js +0 -227
- package/esm2015/datepicker/sub-components/chronos/create/local.js +0 -16
- package/esm2015/datepicker/sub-components/chronos/create/parsing-flags.js +0 -26
- package/esm2015/datepicker/sub-components/chronos/create/parsing.types.js +0 -2
- package/esm2015/datepicker/sub-components/chronos/create/valid.js +0 -42
- package/esm2015/datepicker/sub-components/chronos/duration/bubble.js +0 -47
- package/esm2015/datepicker/sub-components/chronos/duration/constructor.js +0 -130
- package/esm2015/datepicker/sub-components/chronos/duration/create.js +0 -113
- package/esm2015/datepicker/sub-components/chronos/duration/humanize.js +0 -80
- package/esm2015/datepicker/sub-components/chronos/duration/valid.js +0 -45
- package/esm2015/datepicker/sub-components/chronos/format/format.js +0 -51
- package/esm2015/datepicker/sub-components/chronos/format.js +0 -46
- package/esm2015/datepicker/sub-components/chronos/i18n/ar.js +0 -131
- package/esm2015/datepicker/sub-components/chronos/i18n/bg.js +0 -96
- package/esm2015/datepicker/sub-components/chronos/i18n/ca.js +0 -91
- package/esm2015/datepicker/sub-components/chronos/i18n/cs.js +0 -181
- package/esm2015/datepicker/sub-components/chronos/i18n/da.js +0 -50
- package/esm2015/datepicker/sub-components/chronos/i18n/de.js +0 -72
- package/esm2015/datepicker/sub-components/chronos/i18n/en-gb.js +0 -61
- package/esm2015/datepicker/sub-components/chronos/i18n/es-do.js +0 -85
- package/esm2015/datepicker/sub-components/chronos/i18n/es-us.js +0 -79
- package/esm2015/datepicker/sub-components/chronos/i18n/es.js +0 -84
- package/esm2015/datepicker/sub-components/chronos/i18n/et.js +0 -75
- package/esm2015/datepicker/sub-components/chronos/i18n/fi.js +0 -100
- package/esm2015/datepicker/sub-components/chronos/i18n/fr.js +0 -76
- package/esm2015/datepicker/sub-components/chronos/i18n/gl.js +0 -84
- package/esm2015/datepicker/sub-components/chronos/i18n/he.js +0 -98
- package/esm2015/datepicker/sub-components/chronos/i18n/hi.js +0 -124
- package/esm2015/datepicker/sub-components/chronos/i18n/hr.js +0 -62
- package/esm2015/datepicker/sub-components/chronos/i18n/hu.js +0 -104
- package/esm2015/datepicker/sub-components/chronos/i18n/id.js +0 -83
- package/esm2015/datepicker/sub-components/chronos/i18n/it.js +0 -65
- package/esm2015/datepicker/sub-components/chronos/i18n/ja.js +0 -75
- package/esm2015/datepicker/sub-components/chronos/i18n/ka.js +0 -87
- package/esm2015/datepicker/sub-components/chronos/i18n/kk.js +0 -76
- package/esm2015/datepicker/sub-components/chronos/i18n/ko.js +0 -77
- package/esm2015/datepicker/sub-components/chronos/i18n/lt.js +0 -116
- package/esm2015/datepicker/sub-components/chronos/i18n/lv.js +0 -56
- package/esm2015/datepicker/sub-components/chronos/i18n/mn.js +0 -99
- package/esm2015/datepicker/sub-components/chronos/i18n/nb.js +0 -53
- package/esm2015/datepicker/sub-components/chronos/i18n/nl-be.js +0 -81
- package/esm2015/datepicker/sub-components/chronos/i18n/nl.js +0 -80
- package/esm2015/datepicker/sub-components/chronos/i18n/pl.js +0 -126
- package/esm2015/datepicker/sub-components/chronos/i18n/pt-br.js +0 -56
- package/esm2015/datepicker/sub-components/chronos/i18n/ro.js +0 -66
- package/esm2015/datepicker/sub-components/chronos/i18n/ru.js +0 -181
- package/esm2015/datepicker/sub-components/chronos/i18n/sk.js +0 -157
- package/esm2015/datepicker/sub-components/chronos/i18n/sl.js +0 -184
- package/esm2015/datepicker/sub-components/chronos/i18n/sq.js +0 -54
- package/esm2015/datepicker/sub-components/chronos/i18n/sv.js +0 -63
- package/esm2015/datepicker/sub-components/chronos/i18n/th-be.js +0 -74
- package/esm2015/datepicker/sub-components/chronos/i18n/th.js +0 -59
- package/esm2015/datepicker/sub-components/chronos/i18n/tr.js +0 -82
- package/esm2015/datepicker/sub-components/chronos/i18n/uk.js +0 -147
- package/esm2015/datepicker/sub-components/chronos/i18n/vi.js +0 -74
- package/esm2015/datepicker/sub-components/chronos/i18n/zh-cn.js +0 -114
- package/esm2015/datepicker/sub-components/chronos/index.js +0 -2
- package/esm2015/datepicker/sub-components/chronos/locale/calendar.js +0 -9
- package/esm2015/datepicker/sub-components/chronos/locale/locale.class.js +0 -532
- package/esm2015/datepicker/sub-components/chronos/locale/locale.defaults.js +0 -40
- package/esm2015/datepicker/sub-components/chronos/locale/locales.js +0 -229
- package/esm2015/datepicker/sub-components/chronos/moment/add-subtract.js +0 -35
- package/esm2015/datepicker/sub-components/chronos/moment/calendar.js +0 -41
- package/esm2015/datepicker/sub-components/chronos/moment/diff.js +0 -70
- package/esm2015/datepicker/sub-components/chronos/moment/min-max.js +0 -38
- package/esm2015/datepicker/sub-components/chronos/parse/regex.js +0 -49
- package/esm2015/datepicker/sub-components/chronos/parse/token.js +0 -32
- package/esm2015/datepicker/sub-components/chronos/public_api.js +0 -56
- package/esm2015/datepicker/sub-components/chronos/test/chain.js +0 -711
- package/esm2015/datepicker/sub-components/chronos/types.js +0 -2
- package/esm2015/datepicker/sub-components/chronos/units/aliases.js +0 -35
- package/esm2015/datepicker/sub-components/chronos/units/constants.js +0 -11
- package/esm2015/datepicker/sub-components/chronos/units/day-of-month.js +0 -31
- package/esm2015/datepicker/sub-components/chronos/units/day-of-week.js +0 -129
- package/esm2015/datepicker/sub-components/chronos/units/day-of-year.js +0 -37
- package/esm2015/datepicker/sub-components/chronos/units/hour.js +0 -127
- package/esm2015/datepicker/sub-components/chronos/units/index.js +0 -19
- package/esm2015/datepicker/sub-components/chronos/units/millisecond.js +0 -60
- package/esm2015/datepicker/sub-components/chronos/units/minute.js +0 -23
- package/esm2015/datepicker/sub-components/chronos/units/month.js +0 -63
- package/esm2015/datepicker/sub-components/chronos/units/offset.js +0 -210
- package/esm2015/datepicker/sub-components/chronos/units/priorities.js +0 -21
- package/esm2015/datepicker/sub-components/chronos/units/quarter.js +0 -39
- package/esm2015/datepicker/sub-components/chronos/units/second.js +0 -23
- package/esm2015/datepicker/sub-components/chronos/units/timestamp.js +0 -28
- package/esm2015/datepicker/sub-components/chronos/units/timezone.js +0 -19
- package/esm2015/datepicker/sub-components/chronos/units/week-calendar-utils.js +0 -70
- package/esm2015/datepicker/sub-components/chronos/units/week-year.js +0 -101
- package/esm2015/datepicker/sub-components/chronos/units/week.js +0 -58
- package/esm2015/datepicker/sub-components/chronos/units/year.js +0 -60
- package/esm2015/datepicker/sub-components/chronos/utils/abs-ceil.js +0 -4
- package/esm2015/datepicker/sub-components/chronos/utils/abs-round.js +0 -4
- package/esm2015/datepicker/sub-components/chronos/utils/compare-arrays.js +0 -16
- package/esm2015/datepicker/sub-components/chronos/utils/date-compare.js +0 -55
- package/esm2015/datepicker/sub-components/chronos/utils/date-getters.js +0 -67
- package/esm2015/datepicker/sub-components/chronos/utils/date-setters.js +0 -75
- package/esm2015/datepicker/sub-components/chronos/utils/defaults.js +0 -11
- package/esm2015/datepicker/sub-components/chronos/utils/start-end-of.js +0 -57
- package/esm2015/datepicker/sub-components/chronos/utils/type-checks.js +0 -56
- package/esm2015/datepicker/sub-components/chronos/utils/zero-fill.js +0 -10
- package/esm2015/datepicker/sub-components/chronos/utils.js +0 -7
- package/esm2015/datepicker/sub-components/component-loader/bs-component-ref.class.js +0 -3
- package/esm2015/datepicker/sub-components/component-loader/component-loader.class.js +0 -272
- package/esm2015/datepicker/sub-components/component-loader/component-loader.factory.js +0 -32
- package/esm2015/datepicker/sub-components/component-loader/content-ref.class.js +0 -12
- package/esm2015/datepicker/sub-components/component-loader/index.js +0 -2
- package/esm2015/datepicker/sub-components/component-loader/listen-options.model.js +0 -2
- package/esm2015/datepicker/sub-components/component-loader/public_api.js +0 -5
- package/esm2015/datepicker/sub-components/mini-ngrx/index.js +0 -2
- package/esm2015/datepicker/sub-components/mini-ngrx/public_api.js +0 -3
- package/esm2015/datepicker/sub-components/mini-ngrx/state.class.js +0 -16
- package/esm2015/datepicker/sub-components/mini-ngrx/store.class.js +0 -43
- package/esm2015/datepicker/sub-components/positioning/index.js +0 -2
- package/esm2015/datepicker/sub-components/positioning/models/index.js +0 -2
- package/esm2015/datepicker/sub-components/positioning/modifiers/arrow.js +0 -56
- package/esm2015/datepicker/sub-components/positioning/modifiers/flip.js +0 -60
- package/esm2015/datepicker/sub-components/positioning/modifiers/index.js +0 -6
- package/esm2015/datepicker/sub-components/positioning/modifiers/initData.js +0 -42
- package/esm2015/datepicker/sub-components/positioning/modifiers/preventOverflow.js +0 -56
- package/esm2015/datepicker/sub-components/positioning/modifiers/shift.js +0 -22
- package/esm2015/datepicker/sub-components/positioning/ng-positioning.js +0 -30
- package/esm2015/datepicker/sub-components/positioning/positioning.service.js +0 -71
- package/esm2015/datepicker/sub-components/positioning/public_api.js +0 -3
- package/esm2015/datepicker/sub-components/positioning/utils/computeAutoPlacement.js +0 -53
- package/esm2015/datepicker/sub-components/positioning/utils/findCommonOffsetParent.js +0 -40
- package/esm2015/datepicker/sub-components/positioning/utils/getBordersSize.js +0 -10
- package/esm2015/datepicker/sub-components/positioning/utils/getBoundaries.js +0 -56
- package/esm2015/datepicker/sub-components/positioning/utils/getBoundingClientRect.js +0 -55
- package/esm2015/datepicker/sub-components/positioning/utils/getClientRect.js +0 -4
- package/esm2015/datepicker/sub-components/positioning/utils/getFixedPositionOffsetParent.js +0 -17
- package/esm2015/datepicker/sub-components/positioning/utils/getOffsetParent.js +0 -32
- package/esm2015/datepicker/sub-components/positioning/utils/getOffsetRectRelativeToArbitraryNode.js +0 -51
- package/esm2015/datepicker/sub-components/positioning/utils/getOffsets.js +0 -11
- package/esm2015/datepicker/sub-components/positioning/utils/getOppositePlacement.js +0 -8
- package/esm2015/datepicker/sub-components/positioning/utils/getOppositeVariation.js +0 -13
- package/esm2015/datepicker/sub-components/positioning/utils/getOuterSizes.js +0 -14
- package/esm2015/datepicker/sub-components/positioning/utils/getParentNode.js +0 -10
- package/esm2015/datepicker/sub-components/positioning/utils/getReferenceOffsets.js +0 -13
- package/esm2015/datepicker/sub-components/positioning/utils/getRoot.js +0 -10
- package/esm2015/datepicker/sub-components/positioning/utils/getScroll.js +0 -14
- package/esm2015/datepicker/sub-components/positioning/utils/getScrollParent.js +0 -26
- package/esm2015/datepicker/sub-components/positioning/utils/getStyleComputedProperty.js +0 -13
- package/esm2015/datepicker/sub-components/positioning/utils/getTargetOffsets.js +0 -30
- package/esm2015/datepicker/sub-components/positioning/utils/getViewportOffsetRectRelativeToArtbitraryNode.js +0 -19
- package/esm2015/datepicker/sub-components/positioning/utils/getWindowSizes.js +0 -18
- package/esm2015/datepicker/sub-components/positioning/utils/includeScroll.js +0 -15
- package/esm2015/datepicker/sub-components/positioning/utils/index.js +0 -24
- package/esm2015/datepicker/sub-components/positioning/utils/isBrowser.js +0 -2
- package/esm2015/datepicker/sub-components/positioning/utils/isFixed.js +0 -16
- package/esm2015/datepicker/sub-components/positioning/utils/isIE.js +0 -16
- package/esm2015/datepicker/sub-components/positioning/utils/isModifierEnabled.js +0 -10
- package/esm2015/datepicker/sub-components/positioning/utils/isNumeric.js +0 -7
- package/esm2015/datepicker/sub-components/positioning/utils/isOffsetContainer.js +0 -9
- package/esm2015/datepicker/sub-components/positioning/utils/setStyles.js +0 -17
- package/esm2015/datepicker/sub-components/positioning/utils/updateContainerClass.js +0 -22
- package/esm2015/datepicker/sub-components/tooltip/index.js +0 -2
- package/esm2015/datepicker/sub-components/tooltip/public_api.js +0 -5
- package/esm2015/datepicker/sub-components/tooltip/tooltip-container.component.js +0 -63
- package/esm2015/datepicker/sub-components/tooltip/tooltip.config.js +0 -22
- package/esm2015/datepicker/sub-components/tooltip/tooltip.directive.js +0 -282
- package/esm2015/datepicker/sub-components/tooltip/tooltip.module.js +0 -23
- package/esm2015/datepicker/sub-components/utils/decorators.js +0 -25
- package/esm2015/datepicker/sub-components/utils/facade/browser.js +0 -24
- package/esm2015/datepicker/sub-components/utils/index.js +0 -2
- package/esm2015/datepicker/sub-components/utils/linked-list.class.js +0 -240
- package/esm2015/datepicker/sub-components/utils/public_api.js +0 -11
- package/esm2015/datepicker/sub-components/utils/theme-provider.js +0 -35
- package/esm2015/datepicker/sub-components/utils/trigger.class.js +0 -10
- package/esm2015/datepicker/sub-components/utils/triggers.js +0 -110
- package/esm2015/datepicker/sub-components/utils/utils.class.js +0 -21
- package/esm2015/datepicker/sub-components/utils/warn-once.js +0 -12
- package/esm2015/datepicker/themes/bs/bs-calendar-layout.component.js +0 -25
- package/esm2015/datepicker/themes/bs/bs-current-date-view.component.js +0 -13
- package/esm2015/datepicker/themes/bs/bs-custom-dates-view.component.js +0 -44
- package/esm2015/datepicker/themes/bs/bs-datepicker-container.component.js +0 -152
- package/esm2015/datepicker/themes/bs/bs-datepicker-day-decorator.directive.js +0 -47
- package/esm2015/datepicker/themes/bs/bs-datepicker-inline-container.component.js +0 -36
- package/esm2015/datepicker/themes/bs/bs-datepicker-navigation-view.component.js +0 -63
- package/esm2015/datepicker/themes/bs/bs-daterangepicker-container.component.js +0 -195
- package/esm2015/datepicker/themes/bs/bs-daterangepicker-inline-container.component.js +0 -36
- package/esm2015/datepicker/themes/bs/bs-days-calendar-view.component.js +0 -162
- package/esm2015/datepicker/themes/bs/bs-months-calendar-view.component.js +0 -60
- package/esm2015/datepicker/themes/bs/bs-timepicker-view.component.js +0 -34
- package/esm2015/datepicker/themes/bs/bs-years-calendar-view.component.js +0 -61
- package/esm2015/datepicker/utils/bs-calendar-utils.js +0 -43
- package/esm2015/datepicker/utils/matrix-utils.js +0 -14
- package/esm2015/datepicker/yearpicker.component.js +0 -90
- package/fesm2015/mis-crystal-design-system-datepicker.js +0 -13512
- package/fesm2015/mis-crystal-design-system-datepicker.js.map +0 -1
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import { InjectionToken, Component, Inject, EventEmitter, Injector, Directive, Self, Optional, ElementRef, ViewContainerRef, Input, Output, HostListener, NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { parseZone } from 'moment-timezone';
|
|
4
|
+
import { ToastService, ToastModule } from 'mis-crystal-design-system/toast';
|
|
5
|
+
import { OverlayConfig, ConnectionPositionPair, Overlay } from '@angular/cdk/overlay';
|
|
6
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
7
|
+
import { NgControl } from '@angular/forms';
|
|
8
|
+
import { take } from 'rxjs/operators';
|
|
9
|
+
import { ButtonModule } from 'mis-crystal-design-system/button';
|
|
10
|
+
|
|
11
|
+
/** @format */
|
|
12
|
+
const CONTAINER_DATA = new InjectionToken('CONTAINER_DATA');
|
|
13
|
+
const DATE_FORMAT = "DD-MM-YYYY";
|
|
14
|
+
|
|
15
|
+
const getMonth = (index) => {
|
|
16
|
+
let month;
|
|
17
|
+
switch (index) {
|
|
18
|
+
case 0:
|
|
19
|
+
month = 'January';
|
|
20
|
+
break;
|
|
21
|
+
case 1:
|
|
22
|
+
month = 'February';
|
|
23
|
+
break;
|
|
24
|
+
case 2:
|
|
25
|
+
month = 'March';
|
|
26
|
+
break;
|
|
27
|
+
case 3:
|
|
28
|
+
month = 'April';
|
|
29
|
+
break;
|
|
30
|
+
case 4:
|
|
31
|
+
month = 'May';
|
|
32
|
+
break;
|
|
33
|
+
case 5:
|
|
34
|
+
month = 'June';
|
|
35
|
+
break;
|
|
36
|
+
case 6:
|
|
37
|
+
month = 'July';
|
|
38
|
+
break;
|
|
39
|
+
case 7:
|
|
40
|
+
month = 'August';
|
|
41
|
+
break;
|
|
42
|
+
case 8:
|
|
43
|
+
month = 'September';
|
|
44
|
+
break;
|
|
45
|
+
case 9:
|
|
46
|
+
month = 'October';
|
|
47
|
+
break;
|
|
48
|
+
case 10:
|
|
49
|
+
month = 'November';
|
|
50
|
+
break;
|
|
51
|
+
case 11:
|
|
52
|
+
month = 'December';
|
|
53
|
+
break;
|
|
54
|
+
default:
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
return month;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
class TzDrpContainerComponent {
|
|
61
|
+
constructor(data, toast) {
|
|
62
|
+
var _a, _b, _c, _d;
|
|
63
|
+
this.toast = toast;
|
|
64
|
+
this.parseZoneInstance = (...args) => {
|
|
65
|
+
return parseZone(...args);
|
|
66
|
+
};
|
|
67
|
+
this.rawWeekDays = [
|
|
68
|
+
"SUN",
|
|
69
|
+
"MON",
|
|
70
|
+
"TUE",
|
|
71
|
+
"WED",
|
|
72
|
+
"THU",
|
|
73
|
+
"FRI",
|
|
74
|
+
"SAT",
|
|
75
|
+
];
|
|
76
|
+
this.weekDays = [];
|
|
77
|
+
this.currentMonthDates = [];
|
|
78
|
+
this.nextMonthDates = [];
|
|
79
|
+
this.isPreviousMonthDisabled = false;
|
|
80
|
+
this.isNextMonthDisabled = false;
|
|
81
|
+
this.selectionStarted = false;
|
|
82
|
+
this.isDatesValid = false;
|
|
83
|
+
this.data = data;
|
|
84
|
+
this.localSelectedDates = this.data.dates;
|
|
85
|
+
this.isDatesValid = false;
|
|
86
|
+
if (this.localSelectedDates.startDate && this.localSelectedDates.endDate) {
|
|
87
|
+
this.isDatesValid = true;
|
|
88
|
+
}
|
|
89
|
+
if ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.dpConfig) === null || _b === void 0 ? void 0 : _b.timezone) {
|
|
90
|
+
this.parseZoneInstance = (...args) => {
|
|
91
|
+
return parseZone(...args).tz(this.data.dpConfig.timezone);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
this.currentMonthNumber = this.parseZoneInstance().month();
|
|
95
|
+
this.nextMonthNumber = this.parseZoneInstance().add(1, "month").month();
|
|
96
|
+
this.currentMonth = getMonth(this.currentMonthNumber);
|
|
97
|
+
this.nextMonth = getMonth(this.nextMonthNumber);
|
|
98
|
+
this.currentYearNumber = this.parseZoneInstance().year();
|
|
99
|
+
this.nextYearNumber = this.parseZoneInstance().add(1, "month").year();
|
|
100
|
+
this.weekDays = this.rawWeekDays.map((day, index) => ({
|
|
101
|
+
label: `${day[0]}${day.slice(1).toLowerCase()}`,
|
|
102
|
+
isCurrentDay: this.parseZoneInstance().day() === index,
|
|
103
|
+
}));
|
|
104
|
+
if (!((_d = (_c = this.data) === null || _c === void 0 ? void 0 : _c.dpConfig) === null || _d === void 0 ? void 0 : _d.format)) {
|
|
105
|
+
this.data.dpConfig = Object.assign(Object.assign({}, this.data.dpConfig), { format: DATE_FORMAT });
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
ngOnInit() {
|
|
109
|
+
this.currentDateInstance();
|
|
110
|
+
this.calculateMinMaxDays();
|
|
111
|
+
}
|
|
112
|
+
currentDateInstance() {
|
|
113
|
+
var _a, _b;
|
|
114
|
+
if (!((_a = this.localSelectedDates) === null || _a === void 0 ? void 0 : _a.startDate)) {
|
|
115
|
+
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
116
|
+
this.nextMonthDates = this.generateDates(this.nextMonthNumber, this.nextYearNumber);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const selectedStartDate = this.parseZoneInstance((_b = this.localSelectedDates) === null || _b === void 0 ? void 0 : _b.startDate, this.data.dpConfig.format);
|
|
120
|
+
if (selectedStartDate.isValid()) {
|
|
121
|
+
this.currentYearNumber = selectedStartDate.year();
|
|
122
|
+
this.nextYearNumber = selectedStartDate.add(1, "month").year();
|
|
123
|
+
this.currentMonthNumber = selectedStartDate.get("month") - 1;
|
|
124
|
+
this.nextMonthNumber = selectedStartDate.add(1, "month").month() - 1;
|
|
125
|
+
this.currentMonth = getMonth(this.currentMonthNumber);
|
|
126
|
+
this.nextMonth = getMonth(this.nextMonthNumber);
|
|
127
|
+
}
|
|
128
|
+
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
129
|
+
this.nextMonthDates = this.generateDates(this.nextMonthNumber, this.nextYearNumber);
|
|
130
|
+
}
|
|
131
|
+
calculateMinMaxDays() {
|
|
132
|
+
const currentInstance = this.parseZoneInstance()
|
|
133
|
+
.year(this.currentYearNumber)
|
|
134
|
+
.month(this.currentMonthNumber);
|
|
135
|
+
const minDate = this.parseZoneInstance(this.data.dpConfig.minDate, this.data.dpConfig.format);
|
|
136
|
+
if (minDate.isValid()) {
|
|
137
|
+
this.isPreviousMonthDisabled = minDate.isSameOrAfter(currentInstance, "month");
|
|
138
|
+
}
|
|
139
|
+
const maxDate = this.parseZoneInstance(this.data.dpConfig.maxDate, this.data.dpConfig.format);
|
|
140
|
+
if (maxDate.isValid()) {
|
|
141
|
+
this.isNextMonthDisabled = maxDate.isSameOrBefore(currentInstance, "month");
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
navigateMonth(direction) {
|
|
145
|
+
let thisMonth = parseZone()
|
|
146
|
+
.year(this.currentYearNumber)
|
|
147
|
+
.month(this.currentMonthNumber);
|
|
148
|
+
if (direction === "NEXT") {
|
|
149
|
+
thisMonth = thisMonth.add(1, "month");
|
|
150
|
+
}
|
|
151
|
+
else if (direction === "PREVIOUS") {
|
|
152
|
+
thisMonth = thisMonth.subtract(1, "month");
|
|
153
|
+
}
|
|
154
|
+
this.currentMonthNumber = thisMonth.month();
|
|
155
|
+
this.nextMonthNumber = thisMonth.add(1, "month").month();
|
|
156
|
+
this.currentMonth = getMonth(this.currentMonthNumber);
|
|
157
|
+
this.nextMonth = getMonth(this.nextMonthNumber);
|
|
158
|
+
this.currentYearNumber = thisMonth.year();
|
|
159
|
+
this.nextYearNumber = thisMonth.add(1, "month").year();
|
|
160
|
+
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
161
|
+
this.nextMonthDates = this.generateDates(this.nextMonthNumber, this.nextYearNumber);
|
|
162
|
+
this.calculateMinMaxDays();
|
|
163
|
+
}
|
|
164
|
+
generateDates(month, currentYearNumber) {
|
|
165
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
166
|
+
let dates = [];
|
|
167
|
+
const daysInMonth = parseZone()
|
|
168
|
+
.year(currentYearNumber)
|
|
169
|
+
.month(month)
|
|
170
|
+
.daysInMonth();
|
|
171
|
+
for (let currentDate = 1; currentDate <= daysInMonth; currentDate++) {
|
|
172
|
+
const date = this.parseZoneInstance()
|
|
173
|
+
.year(currentYearNumber)
|
|
174
|
+
.month(month)
|
|
175
|
+
.date(currentDate);
|
|
176
|
+
const dateString = date.format(this.data.dpConfig.format);
|
|
177
|
+
let isDisabledDay = this.data.datesDisabled.some((d) => d === dateString);
|
|
178
|
+
const minDate = this.parseZoneInstance(this.data.dpConfig.minDate, this.data.dpConfig.format);
|
|
179
|
+
if (!isDisabledDay && minDate.isValid()) {
|
|
180
|
+
isDisabledDay = minDate.isAfter(date, "day");
|
|
181
|
+
}
|
|
182
|
+
const maxDate = this.parseZoneInstance(this.data.dpConfig.maxDate, this.data.dpConfig.format);
|
|
183
|
+
if (!isDisabledDay && maxDate.isValid()) {
|
|
184
|
+
isDisabledDay = maxDate.isBefore(date, "day");
|
|
185
|
+
}
|
|
186
|
+
const isCurrentDay = this.parseZoneInstance()
|
|
187
|
+
.year(currentYearNumber)
|
|
188
|
+
.month(month)
|
|
189
|
+
.date(currentDate)
|
|
190
|
+
.format(this.data.dpConfig.format) ===
|
|
191
|
+
this.parseZoneInstance().format(this.data.dpConfig.format);
|
|
192
|
+
const isSelectedStartDay = !isDisabledDay &&
|
|
193
|
+
((_b = (_a = this.localSelectedDates) === null || _a === void 0 ? void 0 : _a.startDate) !== null && _b !== void 0 ? _b : false) &&
|
|
194
|
+
date.format(this.data.dpConfig.format) === ((_c = this.localSelectedDates) === null || _c === void 0 ? void 0 : _c.startDate);
|
|
195
|
+
const isAfterSelectedStartDate = this.parseZoneInstance(date).isAfter(this.localSelectedDates.startDate, "day");
|
|
196
|
+
const isBeforeSelectedEndDate = this.parseZoneInstance(date).isBefore(parseZone(this.localSelectedDates.endDate), "day");
|
|
197
|
+
const inRangeDay = ((_d = this.localSelectedDates.startDate) !== null && _d !== void 0 ? _d : false) &&
|
|
198
|
+
((_e = this.localSelectedDates.endDate) !== null && _e !== void 0 ? _e : false) &&
|
|
199
|
+
isAfterSelectedStartDate &&
|
|
200
|
+
isBeforeSelectedEndDate;
|
|
201
|
+
const isSelectedEndDay = !isDisabledDay &&
|
|
202
|
+
((_h = (((_f = this.localSelectedDates) === null || _f === void 0 ? void 0 : _f.startDate) && ((_g = this.localSelectedDates) === null || _g === void 0 ? void 0 : _g.endDate))) !== null && _h !== void 0 ? _h : false) &&
|
|
203
|
+
date.format(this.data.dpConfig.format) === ((_j = this.localSelectedDates) === null || _j === void 0 ? void 0 : _j.endDate);
|
|
204
|
+
dates.push({
|
|
205
|
+
date: currentDate,
|
|
206
|
+
weekDay: date.day(),
|
|
207
|
+
isCurrentDay,
|
|
208
|
+
isSelectedStartDay,
|
|
209
|
+
isSelectedEndDay,
|
|
210
|
+
inRangeDay,
|
|
211
|
+
toastMessage: ((_k = this.data.messages.find((q) => date.format(this.data.dpConfig.format) === q.date)) === null || _k === void 0 ? void 0 : _k.message) || "",
|
|
212
|
+
isDisabledDay,
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
for (let i = dates[0].weekDay; i > 0; i--) {
|
|
216
|
+
dates.unshift({ date: 0, weekDay: i - 1 });
|
|
217
|
+
}
|
|
218
|
+
return dates;
|
|
219
|
+
}
|
|
220
|
+
selectDay(from, day) {
|
|
221
|
+
if (day.date <= 0)
|
|
222
|
+
return;
|
|
223
|
+
if (!day.isDisabledDay) {
|
|
224
|
+
if (this.selectionStarted) {
|
|
225
|
+
const momentDay = parseZone()
|
|
226
|
+
.year(from === "LEFT" ? this.currentYearNumber : this.nextYearNumber)
|
|
227
|
+
.month(from === "LEFT" ? this.currentMonthNumber : this.nextMonthNumber)
|
|
228
|
+
.date(day.date);
|
|
229
|
+
if (momentDay.isBefore(this.localSelectedDates.startDate, "day")) {
|
|
230
|
+
this.localSelectedDates = {
|
|
231
|
+
startDate: momentDay.format(this.data.dpConfig.format),
|
|
232
|
+
endDate: null,
|
|
233
|
+
};
|
|
234
|
+
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
235
|
+
this.nextMonthDates = this.generateDates(this.nextMonthNumber, this.nextYearNumber);
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
this.selectionStarted = false;
|
|
239
|
+
this.localSelectedDates = Object.assign(Object.assign({}, this.localSelectedDates), { endDate: momentDay.format(this.data.dpConfig.format) });
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
this.selectionStarted = true;
|
|
243
|
+
this.localSelectedDates = {
|
|
244
|
+
startDate: parseZone()
|
|
245
|
+
.year(from === "LEFT" ? this.currentYearNumber : this.nextYearNumber)
|
|
246
|
+
.month(from === "LEFT" ? this.currentMonthNumber : this.nextMonthNumber)
|
|
247
|
+
.date(day.date)
|
|
248
|
+
.format(this.data.dpConfig.format),
|
|
249
|
+
endDate: null,
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
253
|
+
this.nextMonthDates = this.generateDates(this.nextMonthNumber, this.nextYearNumber);
|
|
254
|
+
this.isDatesValid = false;
|
|
255
|
+
if (this.localSelectedDates.startDate &&
|
|
256
|
+
this.localSelectedDates.endDate) {
|
|
257
|
+
this.isDatesValid = true;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
if (day.toastMessage) {
|
|
261
|
+
this.toast.displayMsg(day.toastMessage, 4000);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
applyDates() {
|
|
265
|
+
this.data.dateChange(this.localSelectedDates);
|
|
266
|
+
}
|
|
267
|
+
cancelDatePicker() {
|
|
268
|
+
this.data.close();
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
TzDrpContainerComponent.decorators = [
|
|
272
|
+
{ type: Component, args: [{
|
|
273
|
+
selector: "mis-tz-drp",
|
|
274
|
+
template: "<div class=\"daterangepicker-container\">\n <div class=\"daterangepicker-container__view\">\n <div class=\"datepicker__left\">\n <div class=\"daterangepicker-container__header__prabu\">\n <div\n class=\"daterangepicker-container__arrow__icon\"\n (click)=\"!isPreviousMonthDisabled && navigateMonth('PREVIOUS')\"\n [ngClass]=\"{\n 'disabled-month': isPreviousMonthDisabled\n }\"\n >\n <svg\n width=\"20\"\n height=\"16\"\n viewBox=\"0 0 20 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z\"\n fill=\"#181F33\"\n ></path>\n </svg>\n </div>\n <span> {{ currentMonth }} {{ currentYearNumber }} </span>\n <div></div>\n </div>\n <div class=\"daterangepicker-container__body\">\n <div class=\"daterangepicker-container__weekdays\">\n <div\n class=\"daterangepicker-container__weekday\"\n *ngFor=\"let weekDay of weekDays\"\n >\n <span>{{ weekDay.label }}</span>\n </div>\n </div>\n <div class=\"daterangepicker-container__days\">\n <div\n class=\"daterangepicker-container__day\"\n [ngClass]=\"{\n 'selected-start-day': day.isSelectedStartDay,\n 'selected-end-day': day.isSelectedEndDay,\n 'disabled-day': day.isDisabledDay,\n 'in-range-day': day.inRangeDay,\n 'is-valid-date':\n day.date > 0 &&\n !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n *ngFor=\"let day of currentMonthDates\"\n (click)=\"selectDay('LEFT', day)\"\n >\n <span *ngIf=\"day.date > 0\">\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"datepicker__right\">\n <div class=\"daterangepicker-container__header__prabu\">\n <div></div>\n <span> {{ nextMonth }} {{ nextYearNumber }} </span>\n <div\n class=\"daterangepicker-container__arrow__icon\"\n (click)=\"!isNextMonthDisabled && navigateMonth('NEXT')\"\n [ngClass]=\"{\n 'disabled-month': isNextMonthDisabled\n }\"\n >\n <svg\n width=\"20\"\n height=\"16\"\n viewBox=\"0 0 20 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z\"\n fill=\"#181F33\"\n ></path>\n </svg>\n </div>\n </div>\n <div class=\"daterangepicker-container__body\">\n <div class=\"daterangepicker-container__weekdays\">\n <div\n class=\"daterangepicker-container__weekday\"\n *ngFor=\"let weekDay of weekDays\"\n >\n <span>{{ weekDay.label }}</span>\n </div>\n </div>\n <div class=\"daterangepicker-container__days\">\n <div\n class=\"daterangepicker-container__day\"\n [ngClass]=\"{\n 'selected-start-day': day.isSelectedStartDay,\n 'selected-end-day': day.isSelectedEndDay,\n 'disabled-day': day.isDisabledDay,\n 'in-range-day': day.inRangeDay,\n 'is-valid-date':\n day.date > 0 &&\n !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n *ngFor=\"let day of nextMonthDates\"\n (click)=\"selectDay('RIGHT', day)\"\n >\n <span *ngIf=\"day.date > 0\">\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"daterangepicker__footer\">\n <button mis-button size=\"md\" type=\"none\" (click)=\"cancelDatePicker()\">\n Cancel\n </button>\n <button\n mis-button\n size=\"md\"\n type=\"primary\"\n (click)=\"applyDates()\"\n [disabled]=\"!isDatesValid\"\n >\n Apply\n </button>\n </div>\n</div>\n",
|
|
275
|
+
styles: [".daterangepicker-container{background:#fff;border:1px solid #e0e0e0;box-shadow:0 12px 24px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.12);border-radius:12px;display:flex;flex-direction:column;font-family:Lato;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.daterangepicker-container .daterangepicker-container__view{display:flex;gap:24px;padding:16px}.daterangepicker-container .daterangepicker-container__view .datepicker__left,.daterangepicker-container .daterangepicker-container__view .datepicker__right{display:flex;flex-direction:column}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu{display:flex;height:32px;justify-content:space-between;align-items:center;width:100%;padding-bottom:16px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu span{font-size:16px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:.2px;text-align:center}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon{height:20px;width:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon.disabled-month{opacity:.5;cursor:not-allowed}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon:not(.disabled-month):hover{cursor:pointer;background-color:#cbddfb}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon:first-child{transform:rotate(180deg)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body{height:100%;width:252px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays{width:100%;display:flex;padding-bottom:10px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday{width:36px;height:18px;text-align:center}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday span{font-size:12px;font-style:normal;font-weight:400;line-height:18px;letter-spacing:.2px;text-align:center;color:#6a737d}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday span.current-day{font-weight:700;letter-spacing:.25px;color:#181f33}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days{display:flex;flex-wrap:wrap}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day{width:36px;height:36px;display:flex;align-items:center;justify-content:center}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day:not(.in-range-day):not(.selected-start-day):not(.selected-end-day){border-radius:4px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.disabled-day{cursor:default}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.disabled-day:hover{background-color:transparent}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.disabled-day>span{color:#6a737d}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-start-day):not(.selected-end-day)>span{color:#181f33}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-start-day):not(.selected-end-day):hover{background-color:#cbddfb;cursor:pointer}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span{font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.2px;text-align:center;color:#181f33}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.current-day{font-weight:700;letter-spacing:.25px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.selected-day{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.disabled-day{color:#6a737d}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-start-day{background-color:#0937b2;border-radius:20px 4px 4px 20px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-start-day>span{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day{background-color:#0937b2;border-radius:0 20px 20px 0}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day>span{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .in-range-day:not(.disabled-day){background-color:#cbddfb}.daterangepicker-container .daterangepicker__footer{display:flex;justify-content:flex-end;border-top:1px solid #e0e0e0;padding:16px 24px;gap:24px}"]
|
|
276
|
+
},] }
|
|
277
|
+
];
|
|
278
|
+
TzDrpContainerComponent.ctorParameters = () => [
|
|
279
|
+
{ type: undefined, decorators: [{ type: Inject, args: [CONTAINER_DATA,] }] },
|
|
280
|
+
{ type: ToastService }
|
|
281
|
+
];
|
|
282
|
+
|
|
283
|
+
class TzDaterangepickerDirective {
|
|
284
|
+
constructor(control, element, overlay, viewContainerRef) {
|
|
285
|
+
this.control = control;
|
|
286
|
+
this.element = element;
|
|
287
|
+
this.overlay = overlay;
|
|
288
|
+
this.viewContainerRef = viewContainerRef;
|
|
289
|
+
this.dpConfig = {
|
|
290
|
+
format: DATE_FORMAT,
|
|
291
|
+
minDate: "",
|
|
292
|
+
maxDate: "",
|
|
293
|
+
};
|
|
294
|
+
this.dateMessages = [];
|
|
295
|
+
this.positionX = "center";
|
|
296
|
+
this.positionY = "bottom";
|
|
297
|
+
this.offsetX = 0;
|
|
298
|
+
this.offsetY = 0;
|
|
299
|
+
this.dateChange = new EventEmitter(true);
|
|
300
|
+
this.isOpen = false;
|
|
301
|
+
this.dpDisabledDates = [];
|
|
302
|
+
}
|
|
303
|
+
// dd-mm-yyyy 01-12-2022
|
|
304
|
+
set selectedDates(dates) {
|
|
305
|
+
this.dates = Object.assign({ startDate: null, endDate: null }, dates);
|
|
306
|
+
}
|
|
307
|
+
set datesDisabled(dates) {
|
|
308
|
+
this.dpDisabledDates = dates;
|
|
309
|
+
}
|
|
310
|
+
toggleDatePicker() {
|
|
311
|
+
if (this.isOpen) {
|
|
312
|
+
this.close();
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
this.open();
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
open() {
|
|
319
|
+
var _a;
|
|
320
|
+
this.isOpen = true;
|
|
321
|
+
const positionStrategy = this.overlay
|
|
322
|
+
.position()
|
|
323
|
+
.flexibleConnectedTo(this.element)
|
|
324
|
+
.withPositions(this.genPositionPairs())
|
|
325
|
+
.withPush(true);
|
|
326
|
+
const config = new OverlayConfig({
|
|
327
|
+
hasBackdrop: true,
|
|
328
|
+
positionStrategy,
|
|
329
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
330
|
+
backdropClass: "cdk-overlay-transparent-backdrop",
|
|
331
|
+
});
|
|
332
|
+
this.overlayRef = this.overlay.create(config);
|
|
333
|
+
const tempRef = new ComponentPortal(TzDrpContainerComponent, this.viewContainerRef, Injector.create({
|
|
334
|
+
providers: [
|
|
335
|
+
{
|
|
336
|
+
provide: CONTAINER_DATA,
|
|
337
|
+
useValue: {
|
|
338
|
+
messages: this.dateMessages,
|
|
339
|
+
dates: ((_a = this.control) === null || _a === void 0 ? void 0 : _a.control.value) || this.dates,
|
|
340
|
+
dpConfig: this.dpConfig,
|
|
341
|
+
datesDisabled: this.dpDisabledDates,
|
|
342
|
+
dateChange: this.applyDate.bind(this),
|
|
343
|
+
close: this.close.bind(this),
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
],
|
|
347
|
+
}));
|
|
348
|
+
this.overlayRef.attach(tempRef);
|
|
349
|
+
this.overlayRef
|
|
350
|
+
.backdropClick()
|
|
351
|
+
.pipe(take(1))
|
|
352
|
+
.subscribe(() => {
|
|
353
|
+
this.close();
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
applyDate(dates) {
|
|
357
|
+
var _a;
|
|
358
|
+
this.dateChange.emit(dates);
|
|
359
|
+
(_a = this.control) === null || _a === void 0 ? void 0 : _a.control.patchValue(dates);
|
|
360
|
+
this.dates = dates;
|
|
361
|
+
this.close();
|
|
362
|
+
}
|
|
363
|
+
close() {
|
|
364
|
+
this.isOpen = false;
|
|
365
|
+
this.overlayRef.detach();
|
|
366
|
+
this.overlayRef.dispose();
|
|
367
|
+
}
|
|
368
|
+
genPositionPairs() {
|
|
369
|
+
return [
|
|
370
|
+
new ConnectionPositionPair({ originX: this.positionX, originY: this.positionY }, {
|
|
371
|
+
overlayX: this.positionX,
|
|
372
|
+
overlayY: this.positionY === "bottom" ? "top" : "bottom",
|
|
373
|
+
}, this.offsetX, this.offsetY),
|
|
374
|
+
new ConnectionPositionPair({ originX: "center", originY: "bottom" }, { overlayX: "center", overlayY: "top" }),
|
|
375
|
+
new ConnectionPositionPair({ originX: "center", originY: "top" }, { overlayX: "center", overlayY: "bottom" }),
|
|
376
|
+
new ConnectionPositionPair({ originX: "start", originY: "bottom" }, { overlayX: "start", overlayY: "top" }),
|
|
377
|
+
new ConnectionPositionPair({ originX: "start", originY: "top" }, { overlayX: "start", overlayY: "bottom" }),
|
|
378
|
+
new ConnectionPositionPair({ originX: "end", originY: "bottom" }, { overlayX: "end", overlayY: "top" }),
|
|
379
|
+
new ConnectionPositionPair({ originX: "end", originY: "top" }, { overlayX: "end", overlayY: "bottom" }),
|
|
380
|
+
];
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
TzDaterangepickerDirective.decorators = [
|
|
384
|
+
{ type: Directive, args: [{
|
|
385
|
+
selector: "input[misTzDrp]",
|
|
386
|
+
},] }
|
|
387
|
+
];
|
|
388
|
+
TzDaterangepickerDirective.ctorParameters = () => [
|
|
389
|
+
{ type: NgControl, decorators: [{ type: Self }, { type: Optional }] },
|
|
390
|
+
{ type: ElementRef },
|
|
391
|
+
{ type: Overlay },
|
|
392
|
+
{ type: ViewContainerRef }
|
|
393
|
+
];
|
|
394
|
+
TzDaterangepickerDirective.propDecorators = {
|
|
395
|
+
dpConfig: [{ type: Input }],
|
|
396
|
+
selectedDates: [{ type: Input }],
|
|
397
|
+
datesDisabled: [{ type: Input }],
|
|
398
|
+
dateMessages: [{ type: Input }],
|
|
399
|
+
positionX: [{ type: Input }],
|
|
400
|
+
positionY: [{ type: Input }],
|
|
401
|
+
offsetX: [{ type: Input }],
|
|
402
|
+
offsetY: [{ type: Input }],
|
|
403
|
+
dateChange: [{ type: Output }],
|
|
404
|
+
toggleDatePicker: [{ type: HostListener, args: ["click",] }]
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
class DateRangepickerModuleV2 {
|
|
408
|
+
}
|
|
409
|
+
DateRangepickerModuleV2.decorators = [
|
|
410
|
+
{ type: NgModule, args: [{
|
|
411
|
+
declarations: [TzDrpContainerComponent, TzDaterangepickerDirective],
|
|
412
|
+
imports: [CommonModule, ToastModule.forRoot(), ButtonModule.forRoot()],
|
|
413
|
+
exports: [TzDrpContainerComponent, TzDaterangepickerDirective],
|
|
414
|
+
entryComponents: [TzDrpContainerComponent],
|
|
415
|
+
},] }
|
|
416
|
+
];
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Generated bundle index. Do not edit.
|
|
420
|
+
*/
|
|
421
|
+
|
|
422
|
+
export { DateRangepickerModuleV2, TzDaterangepickerDirective, TzDrpContainerComponent as ɵb, CONTAINER_DATA as ɵc };
|
|
423
|
+
//# sourceMappingURL=mis-crystal-design-system-daterangepicker_v2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mis-crystal-design-system-daterangepicker_v2.js","sources":["../../../projects/mis-components/daterangepicker_v2/daterangepicker-constants.ts","../../../projects/mis-components/daterangepicker_v2/utils/index.ts","../../../projects/mis-components/daterangepicker_v2/tz-drp-container/tz-drp-container.component.ts","../../../projects/mis-components/daterangepicker_v2/tz-daterangepicker.directive.ts","../../../projects/mis-components/daterangepicker_v2/daterangepicker.module.ts","../../../projects/mis-components/daterangepicker_v2/mis-crystal-design-system-daterangepicker_v2.ts"],"sourcesContent":["/** @format */\n\nimport { InjectionToken } from \"@angular/core\";\n\nexport const CONTAINER_DATA = new InjectionToken<{}>('CONTAINER_DATA');\nexport const DATE_FORMAT = \"DD-MM-YYYY\";","import { ICurrentMonth } from \"../models/drp-config.model\";\n\nexport const getMonth = (index: number): ICurrentMonth => {\n let month;\n switch (index) {\n case 0:\n month = 'January'\n break;\n case 1:\n month = 'February'\n break;\n case 2:\n month = 'March'\n break;\n case 3:\n month = 'April'\n break;\n case 4:\n month = 'May'\n break;\n case 5:\n month = 'June'\n break;\n case 6:\n month = 'July'\n break;\n case 7:\n month = 'August'\n break;\n case 8:\n month = 'September'\n break;\n case 9:\n month = 'October'\n break;\n case 10:\n month = 'November'\n break;\n case 11:\n month = 'December'\n break;\n default:\n break;\n }\n return month;\n}","import { Component, Inject, OnInit } from \"@angular/core\";\nimport { CONTAINER_DATA, DATE_FORMAT } from \"../daterangepicker-constants\";\nimport {\n ICurrentMonth,\n ICurrentMonthDates,\n IDatePickerData,\n IWeekDay,\n ISelectedDatesConfig,\n} from \"../models/drp-config.model\";\nimport { parseZone, Moment } from \"moment-timezone\";\nimport { getMonth } from \"../utils\";\nimport { ToastService } from \"mis-crystal-design-system/toast\";\n\n@Component({\n selector: \"mis-tz-drp\",\n templateUrl: \"./tz-drp-container.component.html\",\n styleUrls: [\"./tz-drp-container.component.scss\"],\n})\nexport class TzDrpContainerComponent implements OnInit {\n data: IDatePickerData;\n private parseZoneInstance = (...args) => {\n return parseZone(...args);\n };\n private rawWeekDays: string[] = [\n \"SUN\",\n \"MON\",\n \"TUE\",\n \"WED\",\n \"THU\",\n \"FRI\",\n \"SAT\",\n ];\n weekDays: IWeekDay[] = [];\n currentMonthNumber: number;\n currentMonth: ICurrentMonth;\n currentYearNumber: number;\n currentMonthDates: ICurrentMonthDates[] = [];\n nextMonthNumber: number;\n nextMonth: ICurrentMonth;\n nextYearNumber: number;\n nextMonthDates: ICurrentMonthDates[] = [];\n isPreviousMonthDisabled: boolean = false;\n isNextMonthDisabled: boolean = false;\n selectionStarted = false;\n localSelectedDates: ISelectedDatesConfig;\n isDatesValid = false;\n\n constructor(\n @Inject(CONTAINER_DATA) data: IDatePickerData,\n private toast: ToastService\n ) {\n this.data = data;\n this.localSelectedDates = this.data.dates;\n this.isDatesValid = false;\n if (this.localSelectedDates.startDate && this.localSelectedDates.endDate) {\n this.isDatesValid = true;\n }\n if (this.data?.dpConfig?.timezone) {\n this.parseZoneInstance = (...args) => {\n return parseZone(...args).tz(this.data.dpConfig.timezone);\n };\n }\n this.currentMonthNumber = this.parseZoneInstance().month();\n this.nextMonthNumber = this.parseZoneInstance().add(1, \"month\").month();\n this.currentMonth = getMonth(this.currentMonthNumber);\n this.nextMonth = getMonth(this.nextMonthNumber);\n this.currentYearNumber = this.parseZoneInstance().year();\n this.nextYearNumber = this.parseZoneInstance().add(1, \"month\").year();\n this.weekDays = this.rawWeekDays.map((day, index) => ({\n label: `${day[0]}${day.slice(1).toLowerCase()}`,\n isCurrentDay: this.parseZoneInstance().day() === index,\n }));\n if (!this.data?.dpConfig?.format) {\n this.data.dpConfig = {\n ...this.data.dpConfig,\n format: DATE_FORMAT,\n };\n }\n }\n\n ngOnInit(): void {\n this.currentDateInstance();\n this.calculateMinMaxDays();\n }\n\n private currentDateInstance(): void {\n if (!this.localSelectedDates?.startDate) {\n this.currentMonthDates = this.generateDates(\n this.currentMonthNumber,\n this.currentYearNumber\n );\n this.nextMonthDates = this.generateDates(\n this.nextMonthNumber,\n this.nextYearNumber\n );\n return;\n }\n const selectedStartDate = this.parseZoneInstance(\n this.localSelectedDates?.startDate,\n this.data.dpConfig.format\n );\n if (selectedStartDate.isValid()) {\n this.currentYearNumber = selectedStartDate.year();\n this.nextYearNumber = selectedStartDate.add(1, \"month\").year();\n this.currentMonthNumber = selectedStartDate.get(\"month\") - 1;\n this.nextMonthNumber = selectedStartDate.add(1, \"month\").month() - 1;\n this.currentMonth = getMonth(this.currentMonthNumber);\n this.nextMonth = getMonth(this.nextMonthNumber);\n }\n this.currentMonthDates = this.generateDates(\n this.currentMonthNumber,\n this.currentYearNumber\n );\n this.nextMonthDates = this.generateDates(\n this.nextMonthNumber,\n this.nextYearNumber\n );\n }\n\n private calculateMinMaxDays() {\n const currentInstance = this.parseZoneInstance()\n .year(this.currentYearNumber)\n .month(this.currentMonthNumber);\n const minDate = this.parseZoneInstance(\n this.data.dpConfig.minDate,\n this.data.dpConfig.format\n );\n if (minDate.isValid()) {\n this.isPreviousMonthDisabled = minDate.isSameOrAfter(\n currentInstance,\n \"month\"\n );\n }\n const maxDate = this.parseZoneInstance(\n this.data.dpConfig.maxDate,\n this.data.dpConfig.format\n );\n if (maxDate.isValid()) {\n this.isNextMonthDisabled = maxDate.isSameOrBefore(\n currentInstance,\n \"month\"\n );\n }\n }\n\n navigateMonth(direction: \"NEXT\" | \"PREVIOUS\"): void {\n let thisMonth: Moment = parseZone()\n .year(this.currentYearNumber)\n .month(this.currentMonthNumber);\n if (direction === \"NEXT\") {\n thisMonth = thisMonth.add(1, \"month\");\n } else if (direction === \"PREVIOUS\") {\n thisMonth = thisMonth.subtract(1, \"month\");\n }\n this.currentMonthNumber = thisMonth.month();\n this.nextMonthNumber = thisMonth.add(1, \"month\").month();\n this.currentMonth = getMonth(this.currentMonthNumber);\n this.nextMonth = getMonth(this.nextMonthNumber);\n this.currentYearNumber = thisMonth.year();\n this.nextYearNumber = thisMonth.add(1, \"month\").year();\n this.currentMonthDates = this.generateDates(\n this.currentMonthNumber,\n this.currentYearNumber\n );\n this.nextMonthDates = this.generateDates(\n this.nextMonthNumber,\n this.nextYearNumber\n );\n this.calculateMinMaxDays();\n }\n\n private generateDates(\n month: number,\n currentYearNumber: number\n ): ICurrentMonthDates[] {\n let dates: ICurrentMonthDates[] = [];\n const daysInMonth = parseZone()\n .year(currentYearNumber)\n .month(month)\n .daysInMonth();\n for (let currentDate = 1; currentDate <= daysInMonth; currentDate++) {\n const date = this.parseZoneInstance()\n .year(currentYearNumber)\n .month(month)\n .date(currentDate);\n const dateString = date.format(this.data.dpConfig.format);\n let isDisabledDay = this.data.datesDisabled.some((d) => d === dateString);\n const minDate = this.parseZoneInstance(\n this.data.dpConfig.minDate,\n this.data.dpConfig.format\n );\n if (!isDisabledDay && minDate.isValid()) {\n isDisabledDay = minDate.isAfter(date, \"day\");\n }\n const maxDate = this.parseZoneInstance(\n this.data.dpConfig.maxDate,\n this.data.dpConfig.format\n );\n if (!isDisabledDay && maxDate.isValid()) {\n isDisabledDay = maxDate.isBefore(date, \"day\");\n }\n const isCurrentDay =\n this.parseZoneInstance()\n .year(currentYearNumber)\n .month(month)\n .date(currentDate)\n .format(this.data.dpConfig.format) ===\n this.parseZoneInstance().format(this.data.dpConfig.format);\n const isSelectedStartDay =\n !isDisabledDay &&\n (this.localSelectedDates?.startDate ?? false) &&\n date.format(this.data.dpConfig.format) ===\n this.localSelectedDates?.startDate;\n const isAfterSelectedStartDate = this.parseZoneInstance(date).isAfter(\n this.localSelectedDates.startDate,\n \"day\"\n );\n const isBeforeSelectedEndDate = this.parseZoneInstance(date).isBefore(\n parseZone(this.localSelectedDates.endDate),\n \"day\"\n );\n const inRangeDay =\n (this.localSelectedDates.startDate ?? false) &&\n (this.localSelectedDates.endDate ?? false) &&\n isAfterSelectedStartDate &&\n isBeforeSelectedEndDate;\n\n const isSelectedEndDay =\n !isDisabledDay &&\n ((this.localSelectedDates?.startDate &&\n this.localSelectedDates?.endDate) ??\n false) &&\n date.format(this.data.dpConfig.format) ===\n this.localSelectedDates?.endDate;\n dates.push({\n date: currentDate,\n weekDay: date.day(),\n isCurrentDay,\n isSelectedStartDay,\n isSelectedEndDay,\n inRangeDay,\n toastMessage:\n this.data.messages.find(\n (q) => date.format(this.data.dpConfig.format) === q.date\n )?.message || \"\",\n isDisabledDay,\n });\n }\n for (let i = dates[0].weekDay; i > 0; i--) {\n dates.unshift({ date: 0, weekDay: i - 1 });\n }\n return dates;\n }\n\n selectDay(from: \"LEFT\" | \"RIGHT\", day: ICurrentMonthDates) {\n if (day.date <= 0) return;\n if (!day.isDisabledDay) {\n if (this.selectionStarted) {\n const momentDay = parseZone()\n .year(from === \"LEFT\" ? this.currentYearNumber : this.nextYearNumber)\n .month(\n from === \"LEFT\" ? this.currentMonthNumber : this.nextMonthNumber\n )\n .date(day.date);\n if (momentDay.isBefore(this.localSelectedDates.startDate, \"day\")) {\n this.localSelectedDates = {\n startDate: momentDay.format(this.data.dpConfig.format),\n endDate: null,\n };\n this.currentMonthDates = this.generateDates(\n this.currentMonthNumber,\n this.currentYearNumber\n );\n this.nextMonthDates = this.generateDates(\n this.nextMonthNumber,\n this.nextYearNumber\n );\n return;\n }\n this.selectionStarted = false;\n this.localSelectedDates = {\n ...this.localSelectedDates,\n endDate: momentDay.format(this.data.dpConfig.format),\n };\n } else {\n this.selectionStarted = true;\n this.localSelectedDates = {\n startDate: parseZone()\n .year(\n from === \"LEFT\" ? this.currentYearNumber : this.nextYearNumber\n )\n .month(\n from === \"LEFT\" ? this.currentMonthNumber : this.nextMonthNumber\n )\n .date(day.date)\n .format(this.data.dpConfig.format),\n endDate: null,\n };\n }\n this.currentMonthDates = this.generateDates(\n this.currentMonthNumber,\n this.currentYearNumber\n );\n this.nextMonthDates = this.generateDates(\n this.nextMonthNumber,\n this.nextYearNumber\n );\n this.isDatesValid = false;\n if (\n this.localSelectedDates.startDate &&\n this.localSelectedDates.endDate\n ) {\n this.isDatesValid = true;\n }\n }\n if (day.toastMessage) {\n this.toast.displayMsg(day.toastMessage, 4000);\n }\n }\n applyDates() {\n this.data.dateChange(this.localSelectedDates);\n }\n cancelDatePicker() {\n this.data.close();\n }\n}\n","import {\n ConnectionPositionPair,\n Overlay,\n OverlayConfig,\n OverlayRef,\n PositionStrategy,\n} from \"@angular/cdk/overlay\";\nimport { ComponentPortal } from \"@angular/cdk/portal\";\nimport {\n Directive,\n ElementRef,\n EventEmitter,\n HostListener,\n Injector,\n Input,\n Optional,\n Output,\n Self,\n ViewContainerRef,\n} from \"@angular/core\";\nimport { NgControl } from \"@angular/forms\";\nimport { take } from \"rxjs/operators\";\nimport { CONTAINER_DATA, DATE_FORMAT } from \"./daterangepicker-constants\";\nimport {\n IDatePickerConfig,\n IDatePickerToastText,\n ISelectedDatesConfig,\n} from \"./models/drp-config.model\";\nimport { TzDrpContainerComponent } from \"./tz-drp-container/tz-drp-container.component\";\n\n@Directive({\n selector: \"input[misTzDrp]\",\n})\nexport class TzDaterangepickerDirective {\n @Input() dpConfig: Partial<IDatePickerConfig> = {\n format: DATE_FORMAT,\n minDate: \"\",\n maxDate: \"\",\n };\n // dd-mm-yyyy 01-12-2022\n @Input() set selectedDates(dates: ISelectedDatesConfig) {\n this.dates = { startDate: null, endDate: null, ...dates };\n }\n @Input() set datesDisabled(dates: string[]) {\n this.dpDisabledDates = dates;\n }\n @Input() dateMessages: IDatePickerToastText[] = [];\n @Input() positionX: \"start\" | \"center\" | \"end\" = \"center\";\n @Input() positionY: \"top\" | \"center\" | \"bottom\" = \"bottom\";\n @Input() offsetX: number = 0;\n @Input() offsetY: number = 0;\n private overlayRef: OverlayRef;\n @Output() dateChange = new EventEmitter<ISelectedDatesConfig>(true);\n private isOpen = false;\n dates: ISelectedDatesConfig;\n\n private dpDisabledDates: string[] = [];\n\n constructor(\n @Self() @Optional() private control: NgControl,\n private element: ElementRef,\n private overlay: Overlay,\n private viewContainerRef: ViewContainerRef\n ) {}\n\n @HostListener(\"click\")\n toggleDatePicker() {\n if (this.isOpen) {\n this.close();\n } else {\n this.open();\n }\n }\n\n private open() {\n this.isOpen = true;\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.element)\n .withPositions(this.genPositionPairs())\n .withPush(true);\n const config = new OverlayConfig({\n hasBackdrop: true,\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n backdropClass: \"cdk-overlay-transparent-backdrop\",\n });\n this.overlayRef = this.overlay.create(config);\n const tempRef = new ComponentPortal(\n TzDrpContainerComponent,\n this.viewContainerRef,\n Injector.create({\n providers: [\n {\n provide: CONTAINER_DATA,\n useValue: {\n messages: this.dateMessages,\n dates: this.control?.control.value || this.dates,\n dpConfig: this.dpConfig,\n datesDisabled: this.dpDisabledDates,\n dateChange: this.applyDate.bind(this),\n close: this.close.bind(this),\n },\n },\n ],\n })\n );\n this.overlayRef.attach(tempRef);\n this.overlayRef\n .backdropClick()\n .pipe(take(1))\n .subscribe(() => {\n this.close();\n });\n }\n\n applyDate(dates: ISelectedDatesConfig) {\n this.dateChange.emit(dates);\n this.control?.control.patchValue(dates);\n this.dates = dates;\n this.close();\n }\n\n close() {\n this.isOpen = false;\n this.overlayRef.detach();\n this.overlayRef.dispose();\n }\n\n private genPositionPairs(): ConnectionPositionPair[] {\n return [\n new ConnectionPositionPair(\n { originX: this.positionX, originY: this.positionY },\n {\n overlayX: this.positionX,\n overlayY: this.positionY === \"bottom\" ? \"top\" : \"bottom\",\n },\n this.offsetX,\n this.offsetY\n ),\n new ConnectionPositionPair(\n { originX: \"center\", originY: \"bottom\" },\n { overlayX: \"center\", overlayY: \"top\" }\n ),\n new ConnectionPositionPair(\n { originX: \"center\", originY: \"top\" },\n { overlayX: \"center\", overlayY: \"bottom\" }\n ),\n new ConnectionPositionPair(\n { originX: \"start\", originY: \"bottom\" },\n { overlayX: \"start\", overlayY: \"top\" }\n ),\n new ConnectionPositionPair(\n { originX: \"start\", originY: \"top\" },\n { overlayX: \"start\", overlayY: \"bottom\" }\n ),\n new ConnectionPositionPair(\n { originX: \"end\", originY: \"bottom\" },\n { overlayX: \"end\", overlayY: \"top\" }\n ),\n new ConnectionPositionPair(\n { originX: \"end\", originY: \"top\" },\n { overlayX: \"end\", overlayY: \"bottom\" }\n ),\n ];\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { TzDrpContainerComponent } from \"./tz-drp-container/tz-drp-container.component\";\nimport { TzDaterangepickerDirective } from \"./tz-daterangepicker.directive\";\nimport { ToastModule } from \"mis-crystal-design-system/toast\";\nimport { ButtonModule } from \"mis-crystal-design-system/button\";\n\n@NgModule({\n declarations: [TzDrpContainerComponent, TzDaterangepickerDirective],\n imports: [CommonModule, ToastModule.forRoot(), ButtonModule.forRoot()],\n exports: [TzDrpContainerComponent, TzDaterangepickerDirective],\n entryComponents: [TzDrpContainerComponent],\n})\nexport class DateRangepickerModuleV2 {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {CONTAINER_DATA as ɵc} from './daterangepicker-constants';\nexport {IDatePickerData as ɵa} from './models/drp-config.model';\nexport {TzDrpContainerComponent as ɵb} from './tz-drp-container/tz-drp-container.component';"],"names":[],"mappings":";;;;;;;;;;AAAA;MAIa,cAAc,GAAG,IAAI,cAAc,CAAK,gBAAgB,EAAE;AAChE,MAAM,WAAW,GAAG,YAAY;;ACHhC,MAAM,QAAQ,GAAG,CAAC,KAAa;IAClC,IAAI,KAAK,CAAC;IACV,QAAQ,KAAK;QACT,KAAK,CAAC;YACF,KAAK,GAAG,SAAS,CAAA;YACjB,MAAM;QACV,KAAK,CAAC;YACF,KAAK,GAAG,UAAU,CAAA;YAClB,MAAM;QACV,KAAK,CAAC;YACF,KAAK,GAAG,OAAO,CAAA;YACf,MAAM;QACV,KAAK,CAAC;YACF,KAAK,GAAG,OAAO,CAAA;YACf,MAAM;QACV,KAAK,CAAC;YACF,KAAK,GAAG,KAAK,CAAA;YACb,MAAM;QACV,KAAK,CAAC;YACF,KAAK,GAAG,MAAM,CAAA;YACd,MAAM;QACV,KAAK,CAAC;YACF,KAAK,GAAG,MAAM,CAAA;YACd,MAAM;QACV,KAAK,CAAC;YACF,KAAK,GAAG,QAAQ,CAAA;YAChB,MAAM;QACV,KAAK,CAAC;YACF,KAAK,GAAG,WAAW,CAAA;YACnB,MAAM;QACV,KAAK,CAAC;YACF,KAAK,GAAG,SAAS,CAAA;YACjB,MAAM;QACV,KAAK,EAAE;YACH,KAAK,GAAG,UAAU,CAAA;YAClB,MAAM;QACV,KAAK,EAAE;YACH,KAAK,GAAG,UAAU,CAAA;YAClB,MAAM;QACV;YACI,MAAM;KACb;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;;MC3BY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