ids-enterprise-wc 1.15.9-patch.3 → 1.15.9-patch.4

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.
Files changed (42) hide show
  1. package/chunks/{ids-chunk-PLPR5GKJ-full.js → ids-chunk-INOASOWB-full.js} +2 -2
  2. package/chunks/{ids-chunk-FBSXIEML-full.js → ids-chunk-LBCYQLZV-full.js} +2 -2
  3. package/chunks/{ids-chunk-FBSXIEML-full.js.map → ids-chunk-LBCYQLZV-full.js.map} +2 -2
  4. package/chunks/{ids-chunk-TUTTQTPT-full.js → ids-chunk-LFAI3KCS-full.js} +16 -5
  5. package/chunks/{ids-chunk-TUTTQTPT-full.js.map → ids-chunk-LFAI3KCS-full.js.map} +2 -2
  6. package/chunks/{ids-chunk-YNW5W3PP-full.js → ids-chunk-PNETRNHG-full.js} +35 -12
  7. package/chunks/ids-chunk-PNETRNHG-full.js.map +7 -0
  8. package/chunks/{ids-chunk-GLMW7DMU-full.js → ids-chunk-TJ35QP4Y-full.js} +4 -3
  9. package/chunks/{ids-chunk-GLMW7DMU-full.js.map → ids-chunk-TJ35QP4Y-full.js.map} +2 -2
  10. package/components/ids-accordion/ids-accordion.css +156 -8
  11. package/components/ids-calendar/ids-calendar.js +4 -4
  12. package/components/ids-card/ids-card.css +4 -344
  13. package/components/ids-data-grid/ids-data-grid-editors.js +3 -3
  14. package/components/ids-data-grid/ids-data-grid-filters.js +2 -2
  15. package/components/ids-data-grid/ids-data-grid.js +4 -4
  16. package/components/ids-date-picker/ids-date-picker-popup.js +2 -2
  17. package/components/ids-date-picker/ids-date-picker.css +389 -31
  18. package/components/ids-date-picker/ids-date-picker.d.ts +5 -0
  19. package/components/ids-date-picker/ids-date-picker.js +3 -3
  20. package/components/ids-hierarchy/ids-hierarchy.css +117 -14
  21. package/components/ids-hyperlink/ids-hyperlink.css +15 -188
  22. package/components/ids-layout-flex/ids-layout-flex.css +69 -6
  23. package/components/ids-layout-grid/ids-layout-grid.css +10 -21300
  24. package/components/ids-list-view/ids-list-view.css +112 -15
  25. package/components/ids-menu/ids-menu.css +11 -7
  26. package/components/ids-modal/ids-modal.css +23 -94
  27. package/components/ids-module-nav/ids-module-nav.css +1 -182
  28. package/components/ids-month-view/ids-month-view.js +1 -1
  29. package/components/ids-pager/ids-pager.css +28 -25
  30. package/components/ids-swappable/ids-swappable.css +84 -19
  31. package/components/ids-tabs/ids-tabs.css +542 -11
  32. package/components/ids-tag/ids-tag.css +8 -152
  33. package/components/ids-time-picker/ids-time-picker.css +49 -67
  34. package/components/ids-week-view/ids-week-view.js +3 -3
  35. package/custom-elements.json +964 -942
  36. package/enterprise-wc.all.iife.js +53 -18
  37. package/enterprise-wc.all.iife.js.map +3 -3
  38. package/enterprise-wc.js +5 -5
  39. package/package.json +1 -1
  40. package/vscode.html-custom-data.json +1 -1
  41. package/chunks/ids-chunk-YNW5W3PP-full.js.map +0 -7
  42. /package/chunks/{ids-chunk-PLPR5GKJ-full.js.map → ids-chunk-INOASOWB-full.js.map} +0 -0
@@ -821,7 +821,8 @@ var IdsDatePickerPopup = class extends Base {
821
821
  attachEventListeners() {
822
822
  this.offEvent("dayselected.date-picker-calendar");
823
823
  this.onEvent("dayselected.date-picker-calendar", this.monthView, (e) => {
824
- if (!this.showApply) this.handleDaySelectedEvent(e);
824
+ this.handleDaySelectedEvent(e);
825
+ e.stopPropagation();
825
826
  });
826
827
  this.offEvent("datechange");
827
828
  this.onEvent("datechange", this.monthView, (e) => {
@@ -1006,7 +1007,7 @@ var IdsDatePickerPopup = class extends Base {
1006
1007
  this.day = e.detail.date.getDate();
1007
1008
  e.detail.date = fixedDate;
1008
1009
  e.detail.value = this.value;
1009
- if (!this.showApply) this.hide(true);
1010
+ this.hide(true);
1010
1011
  this.triggerSelectedEvent(e);
1011
1012
  }
1012
1013
  }
@@ -1396,4 +1397,4 @@ var ids_date_picker_popup_default2 = IdsDatePickerPopup;
1396
1397
  export {
1397
1398
  ids_date_picker_popup_default2 as ids_date_picker_popup_default
1398
1399
  };
1399
- //# sourceMappingURL=ids-chunk-GLMW7DMU-full.js.map
1400
+ //# sourceMappingURL=ids-chunk-TJ35QP4Y-full.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/ids-date-picker/ids-date-picker-popup.scss", "../../../../src/components/ids-date-picker/ids-date-picker-popup.ts"],
4
- "sourcesContent": ["export default `ids-popup::part(popup) {\n padding-block: 0;\n}\n\nids-popup[visible][animated] {\n transition: none;\n}\n\n.ids-date-picker-popup .ids-popup.menu {\n padding-block: 0;\n}\n\nids-month-view {\n width: 100%;\n}\n\n#month-year-view-trigger {\n margin: 4px;\n}\n\n.ids-date-picker-popup {\n min-width: 350px;\n}\n.ids-date-picker-popup:not(.has-time) ids-month-view::part(table-container) {\n margin-bottom: 10px;\n}\n.ids-date-picker-popup ids-popup::part(popup) {\n padding-block: 0;\n}\n.ids-date-picker-popup .popup-footer:not(.hidden) {\n border-top: 1px solid var(--ids-date-picker-popup-footer-color-border);\n display: flex;\n}\n.ids-date-picker-popup .popup-footer:not(.hidden) ids-modal-button:not([hidden]) + ids-modal-button,\n.ids-date-picker-popup .popup-footer:not(.hidden) .ids-modal-button:not([hidden]) + .ids-modal-button {\n border-left: 1px solid;\n border-left-color: var(--ids-date-picker-popup-footer-color-border);\n}\n.ids-date-picker-popup .popup-btn {\n width: 100%;\n}\n\n.ids-date-picker-content {\n position: relative;\n}\n\nids-expandable-area {\n display: block;\n}\n\nids-expandable-area:not([expanded]),\nids-expandable-area[expanded=false] {\n pointer-events: none;\n}\n\nids-expandable-area::part(container) {\n margin: 0;\n padding: 0;\n height: 100%;\n position: absolute;\n z-index: 3;\n border: none;\n left: 0;\n width: 100%;\n}\n\nids-expandable-area::part(header) {\n display: none;\n}\n\nids-expandable-area::part(pane) {\n background-color: var(--ids-date-picker-color-background);\n}\n\nids-expandable-area::part(footer) {\n display: none;\n}\n\nids-expandable-area::part(pane-content) {\n margin-top: 0;\n height: 100%;\n}\n\nids-time-picker-popup {\n display: flex;\n justify-content: center;\n}\nids-time-picker-popup[hidden] {\n display: none;\n}\nids-time-picker-popup[embeddable] {\n margin-top: -18px;\n}\n\n.btn-today {\n margin-right: -7px;\n}\n.btn-today::part(button) {\n padding: 8px;\n margin: 3px;\n}\n\n.btn-today-text {\n color: var(--ids-date-picker-popup-button-today-color-text);\n}\n\n.btn-previous,\n.btn-next {\n padding-inline-start: 0;\n margin: 3px;\n}\n.btn-previous::part(button),\n.btn-next::part(button) {\n padding: 0;\n width: 38px;\n height: 38px;\n}\n\n.btn-next {\n margin: 3px 3px 3px -5px;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL2J1aWxkcy9pbmZvci1kZXNpZ24vZW50ZXJwcmlzZS13Yy9zcmMvY29tcG9uZW50cy9pZHMtZGF0ZS1waWNrZXIiLCJzb3VyY2VzIjpbImlkcy1kYXRlLXBpY2tlci1wb3B1cC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBO0VBQ0U7OztBQUlGO0VBQ0U7OztBQUdGO0VBQ0U7OztBQUdGO0VBQ0U7OztBQUdGO0VBQ0U7OztBQUdGO0VBQ0U7O0FBRUE7RUFDRTs7QUFHRjtFQUNFOztBQUdGO0VBQ0U7RUFDQTs7QUFFQTtBQUFBO0VBRUU7RUFDQTs7QUFJSjtFQUNFOzs7QUFJSjtFQUNFOzs7QUFNRjtFQUNFOzs7QUFHRjtBQUFBO0VBRUU7OztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7O0FBR0Y7RUFDRTs7O0FBR0Y7RUFDRTs7O0FBR0Y7RUFDRTs7O0FBR0Y7RUFDRTtFQUNBOzs7QUFNRjtFQUNFO0VBQ0E7O0FBRUE7RUFDRTs7QUFHRjtFQUNFOzs7QUFPSjtFQUNFO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WR0aDogMzhweDtcbiAgICBoZWlnaHQ6IDM4cHg7XG4gIH1cbn1cblxuLmJ0bi1uZXh0IHtcbiAgbWFyZ2luOiAzcHggM3B4IDNweCAtNXB4O1xufVxuIl19 */`;\n", "import { attributes, htmlAttributes } from '../../core/ids-attributes';\nimport { customElement, scss } from '../../core/ids-decorators';\nimport IdsMonthViewAttributeMixin from '../ids-month-view/ids-month-view-attribute-mixin';\nimport IdsDateAttributeMixin from '../../mixins/ids-date-attribute-mixin/ids-date-attribute-mixin';\nimport IdsLocaleMixin from '../../mixins/ids-locale-mixin/ids-locale-mixin';\nimport IdsPickerPopup from '../ids-popup/ids-picker-popup';\n\nimport {\n subtractDate, isValidDate, hoursTo24, removeDateRange\n} from '../../utils/ids-date-utils/ids-date-utils';\nimport { stringToBool, stringToNumber } from '../../utils/ids-string-utils/ids-string-utils';\nimport {\n IdsDatePickerCommonAttributes,\n} from './ids-date-picker-common';\n\n// Components\nimport './ids-month-year-picklist';\nimport '../ids-button/ids-button';\nimport '../ids-modal/ids-modal-button';\nimport '../ids-expandable-area/ids-expandable-area';\nimport '../ids-month-view/ids-month-view';\nimport '../ids-time-picker/ids-time-picker-popup';\nimport '../ids-toggle-button/ids-toggle-button';\nimport '../ids-toolbar/ids-toolbar';\nimport '../ids-toolbar/ids-toolbar-section';\n// Types\nimport type IdsElement from '../../core/ids-element';\nimport type IdsButton from '../ids-button/ids-button';\nimport type IdsExpandableArea from '../ids-expandable-area/ids-expandable-area';\nimport type IdsLocale from '../ids-locale/ids-locale';\nimport type IdsModalButton from '../ids-modal/ids-modal-button';\nimport type IdsMonthView from '../ids-month-view/ids-month-view';\nimport type IdsMonthYearPicklist from './ids-month-year-picklist';\n\nimport type {\n IdsRangeSettings,\n IdsRangeSettingsInterface,\n IdsLegendSettings,\n IdsDisableSettings\n} from '../ids-month-view/ids-month-view-common';\n\nimport type { IdsDayselectedEvent } from '../ids-month-view/ids-month-view';\nimport type IdsTimePickerPopup from '../ids-time-picker/ids-time-picker-popup';\nimport type IdsToggleButton from '../ids-toggle-button/ids-toggle-button';\nimport type IdsToolbar from '../ids-toolbar/ids-toolbar';\nimport type IdsToolbarSection from '../ids-toolbar/ids-toolbar-section';\n\nimport styles from './ids-date-picker-popup.scss';\nimport IdsText from '../ids-text/ids-text';\nimport { getClosest } from '../../utils/ids-dom-utils/ids-dom-utils';\nimport IdsButtonGroup from '../ids-button/ids-button-group';\n\ntype IdsDatePickerPopupButton = IdsToggleButton | IdsModalButton | IdsButton;\n\nconst Base = IdsMonthViewAttributeMixin(\n IdsDateAttributeMixin(\n IdsLocaleMixin(\n IdsPickerPopup\n )\n )\n);\n\n/**\n * IDS Date Picker Popup Component\n * @type {IdsDatePickerPopup}\n * @inherits IdsPickerPopup\n * @mixes IdsDateAttributeMixin\n * @mixes IdsLocaleMixin\n * @mixes IdsMonthViewAttributeMixin\n */\n@customElement('ids-date-picker-popup')\n@scss(styles)\nclass IdsDatePickerPopup extends Base implements IdsRangeSettingsInterface {\n constructor() {\n super();\n }\n\n protected expandableArea: IdsExpandableArea | null | undefined;\n\n protected monthView: IdsMonthView | null | undefined;\n\n protected monthYearPicklist: IdsMonthYearPicklist | null | undefined;\n\n protected timepicker: IdsTimePickerPopup | null | undefined;\n\n protected toolbar: IdsToolbar | null | undefined;\n\n protected buttonSet: IdsButtonGroup | null | undefined;\n\n connectedCallback() {\n super.connectedCallback();\n this.configureComponents();\n this.attachEventListeners();\n this.attachExpandedListener();\n this.configurePopup();\n this.buttonSet = null;\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback?.();\n this.removeEventListeners();\n this.expandableArea = null;\n this.monthView = null;\n this.monthYearPicklist = null;\n this.timepicker = null;\n this.toolbar = null;\n this.buttonSet = null;\n }\n\n static get attributes(): Array<string> {\n return [\n ...super.attributes,\n ...IdsDatePickerCommonAttributes,\n attributes.EXPANDED,\n attributes.POSITION_STYLE,\n attributes.SHOW_TODAY,\n attributes.SHOW_APPLY,\n attributes.SHOW_CANCEL,\n attributes.SHOW_CLEAR\n ];\n }\n\n /**\n * Inner template contents\n * @returns {string} The template\n */\n template(): string {\n const isBtnGroupVisible = this.showCancel || this.showClear || this.showApply || (this.useRange || this.expanded);\n return `<ids-popup class=\"ids-date-picker-popup\" type=\"menu\" align=\"bottom, left\" arrow=\"bottom\" tabIndex=\"-1\" animated position-style=\"fixed\">\n <slot slot=\"content\" name=\"toolbar\">\n ${this.toolbarTemplate()}\n </slot>\n <div class=\"ids-date-picker-content\" slot=\"content\">\n <ids-expandable-area\n expand-style=\"fill\"\n expanded=\"${this.expanded}\"\n class=\"ids-date-picker-expandable\"\n >\n <ids-month-year-picklist\n slot=\"pane\"\n ${this.showPicklistYear ? 'show-picklist-year=\"true\"' : ''}></ids-month-year-picklist>\n </ids-expandable-area>\n <ids-month-view\n compact=\"true\"\n is-date-picker=\"true\"\n show-week-numbers=\"${this.showWeekNumbers}\"\n show-today=${this.showToday}\n ${this.showApply ? `show-apply=${this.showApply}` : ''}\n first-day-of-week=\"${this.firstDayOfWeek}\"\n year=\"${this.year}\"\n month=\"${this.month}\"\n day=\"${this.day}\"\n use-range=\"${this.useRange}\"\n ></ids-month-view>\n ${this.timepickerTemplate()}\n </div>\n <ids-button-group slot=\"content\" class=\"popup-footer${isBtnGroupVisible ? '' : ' hidden'}\" part=\"footer\" ${isBtnGroupVisible ? '' : ' hidden'} compact=\"true\">\n <ids-button-group-section gap=\"8\">\n <ids-button appearance=\"secondary\" class=\"popup-btn popup-btn-cancel\" cancel ${this.showCancel ? '' : ' hidden'}>\n <span>Cancel</span>\n </ids-button>\n <ids-button appearance=\"secondary\" class=\"popup-btn popup-btn-clear\" part=\"btn-clear\" ${this.showClear ? '' : ' hidden'}>\n <span>Clear</span>\n </ids-button>\n <ids-button appearance=\"primary\" class=\"popup-btn popup-btn-apply\"${this.useRange || this.showApply || this.expanded ? ' disabled' : ' hidden'} part=\"btn-apply\">\n <span>Apply</span>\n </ids-button>\n </ids-button-group-section>\n </ids-button-group>\n </ids-popup>`;\n }\n\n /**\n * @returns {string} containing the inner Timepicker's template\n */\n private timepickerTemplate(): string {\n if (!this.hasTime()) {\n return '';\n }\n return `\n <ids-time-picker-popup\n ${!this.hasTime() ? 'hidden' : ''}\n minute-interval=\"${this.minuteInterval}\"\n second-interval=\"${this.secondInterval}\"\n use-current-time=\"${this.useCurrentTime}\"\n embeddable=\"true\"\n autoupdate=\"true\"\n format=\"${this.format}\"\n value=\"${this.value}\"\n ></ids-time-picker-popup>\n `;\n }\n\n /**\n * @returns {string} containing the inner Toolbar's template\n */\n private toolbarTemplate(): string {\n const prevNextBtn = `<ids-button class=\"btn-previous\">\n <ids-text audible=\"true\" translate-text=\"true\">PreviousMonth</ids-text>\n <ids-icon icon=\"chevron-left\"></ids-icon>\n </ids-button>\n <ids-button class=\"btn-next\">\n <ids-text audible=\"true\" translate-text=\"true\">NextMonth</ids-text>\n <ids-icon icon=\"chevron-right\"></ids-icon>\n </ids-button>`;\n const todayBtn = this.showToday ? `<ids-button css-class=\"no-padding\" class=\"btn-today\">\n <ids-text\n class=\"btn-today-text\"\n font-size=\"16\"\n translate-text=\"true\"\n font-weight=\"semi-bold\"\n >Today</ids-text>\n </ids-button>` : '';\n\n return `<ids-toolbar class=\"month-view-header\" tabbable=\"true\">\n <ids-toolbar-section favor>\n <ids-toggle-button id=\"month-year-view-trigger\" icon-off=\"dropdown\" icon-on=\"dropdown\" icon=\"dropdown\" icon-align=\"end\" no-padding class=\"dropdown-btn\">\n <ids-text audible=\"true\" translate-text=\"true\">DatePickerTriggerButton</ids-text>\n <ids-text class=\"dropdown-btn-text\" font-size=\"20\" aria-live=\"polite\">${this.formatMonthText()}</ids-text>\n <ids-icon icon=\"dropdown\" class=\"dropdown-btn-icon\"></ids-icon>\n </ids-toggle-button>\n </ids-toolbar-section>\n <ids-toolbar-section class=\"toolbar-buttonset monthview-nav\" align=\"end\" type=\"fluid\"${this.expanded ? ' inactive' : ''}>\n ${todayBtn}\n ${prevNextBtn}\n </ids-toolbar-section>\n </ids-toolbar>`;\n }\n\n /**\n * @returns {Array<string>} Date Picker vetoable events\n */\n vetoableEventTypes: Array<string> = ['beforeshow'];\n\n /**\n * @readonly\n * @returns {NodeList<IdsDatePickerPopupButton>} containing all buttons in the Date Picker Popup\n */\n get buttons() {\n return this.container?.querySelectorAll<IdsDatePickerPopupButton>('ids-button, ids-modal-button, ids-toggle-button');\n }\n\n /**\n * show-today attribute\n * @returns {boolean} showToday param converted to boolean from attribute value\n */\n get showToday(): boolean {\n const attrVal = this.getAttribute(attributes.SHOW_TODAY);\n\n // true by default if no attribute\n return attrVal !== null ? stringToBool(attrVal) : true;\n }\n\n /**\n * Set whether or not month view today button should be show\n * @param {string|boolean|null} val show-today attribute value\n */\n set showToday(val: string | boolean | null) {\n const doShow = stringToBool(val);\n if (doShow) {\n this.setAttribute(attributes.SHOW_TODAY, 'true');\n this.todayBtnEl?.removeAttribute(attributes.HIDDEN);\n } else {\n this.setAttribute(attributes.SHOW_TODAY, 'false');\n this.todayBtnEl?.setAttribute(attributes.HIDDEN, 'true');\n }\n }\n\n /**\n * Handle changes to the first day of week setting\n * @param {number} newValue - The new first day of week value (0-6, where 0 is Sunday)\n */\n onFirstDayOfWeekChange(newValue: number) {\n this.monthView?.setAttribute(attributes.FIRST_DAY_OF_WEEK, `${newValue}`);\n this.monthYearPicklist?.setAttribute(attributes.FIRST_DAY_OF_WEEK, `${newValue}`);\n }\n\n onMonthChange(newValue: number, isValid: boolean) {\n if (isValid) {\n this.monthView?.setAttribute(attributes.MONTH, `${newValue}`);\n this.monthYearPicklist?.setAttribute(attributes.MONTH, `${newValue}`);\n } else {\n this.monthView?.removeAttribute(attributes.MONTH);\n this.monthYearPicklist?.removeAttribute(attributes.MONTH);\n }\n }\n\n onYearChange(newValue: number, isValid: boolean) {\n if (isValid) {\n this.monthView?.setAttribute(attributes.YEAR, `${newValue}`);\n this.monthYearPicklist?.setAttribute(attributes.MONTH, `${newValue}`);\n } else {\n this.monthView?.removeAttribute(attributes.YEAR);\n this.monthYearPicklist?.removeAttribute(attributes.YEAR);\n }\n }\n\n onDayChange(newValue: number, isValid: boolean) {\n if (isValid) {\n this.monthView?.setAttribute(attributes.DAY, `${newValue}`);\n this.monthYearPicklist?.setAttribute(attributes.DAY, `${newValue}`);\n } else {\n this.monthView?.removeAttribute(attributes.DAY);\n this.monthYearPicklist?.removeAttribute(attributes.DAY);\n }\n }\n\n onFormatChange() {\n this.configureComponents();\n if (this.monthView) this.monthView.setAttribute('format', this.format);\n\n if (this.timepicker) {\n this.timepicker.setAttribute('format', this.format);\n\n if (this.hasTime()) {\n this.timepicker.setAttribute('value', this.value);\n this.timepicker.removeAttribute(attributes.HIDDEN);\n } else {\n this.timepicker.setAttribute(attributes.HIDDEN, '');\n }\n }\n this.updateTimepickerDisplay();\n }\n\n /**\n * @param {IdsLocale} locale the new locale object\n */\n onLocaleChange = (locale: IdsLocale | undefined) => {\n this.updateMonthYearPickerTriggerDisplay(locale);\n if (this.monthYearPicklist) {\n this.monthYearPicklist.locale = this.locale;\n this.monthYearPicklist.language = this.language.name;\n }\n if (this.monthView) {\n this.monthView.locale = this.locale;\n this.monthView.language = this.language.name;\n }\n this.shadowRoot?.querySelectorAll('[translate-text]').forEach((textElem: Element) => {\n (textElem as IdsText).language = this.language.name;\n });\n };\n\n get applyBtnEl(): IdsModalButton | null | undefined {\n return this.container?.querySelector<IdsModalButton>('.popup-btn-apply');\n }\n\n get cancelBtnEl(): IdsModalButton | null | undefined {\n return this.container?.querySelector<IdsModalButton>('.popup-btn-cancel');\n }\n\n get todayBtnEl(): IdsButton | null | undefined {\n return this.container?.querySelector<IdsButton>('.btn-today');\n }\n\n get clearBtnEl(): IdsButton | null | undefined {\n return this.container?.querySelector<IdsButton>('.popup-btn-clear');\n }\n\n /**\n * expanded attribute\n * @returns {boolean} whether the month/year picker expanded or not\n */\n get expanded(): boolean {\n return stringToBool(this.getAttribute(attributes.EXPANDED));\n }\n\n /**\n * Set whether or not the month/year picker should be expanded\n * @param {string|boolean|null} val expanded attribute value\n */\n set expanded(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n if (boolVal) {\n this.setAttribute(attributes.EXPANDED, `${boolVal}`);\n this.expandableArea?.setAttribute(attributes.EXPANDED, `${boolVal}`);\n this.toolbar?.querySelector<IdsToolbarSection>('.monthview-nav')?.setAttribute(attributes.INACTIVE, 'true');\n } else {\n this.removeAttribute(attributes.EXPANDED);\n this.expandableArea?.removeAttribute(attributes.EXPANDED);\n this.toolbar?.querySelector<IdsToolbarSection>('.monthview-nav')?.removeAttribute(attributes.INACTIVE);\n }\n }\n\n onDisableSettingsChange(val: IdsDisableSettings) {\n if (this.monthView) this.monthView.disableSettings = val;\n }\n\n onLegendSettingsChange(val: IdsLegendSettings) {\n if (this.monthView) this.monthView.legend = val;\n }\n\n /**\n * Defer to the inner IdsMonthView for getting `rangeSettings` if possible\n * @returns {IdsRangeSettings} month view range settings\n */\n getRangeSettings(): IdsRangeSettings {\n return this.monthView?.rangeSettings || this.rangeSettings;\n }\n\n /**\n * Defer to the inner IdsMonthView for storing `rangeSettings` if possible\n * @param {IdsRangeSettings} val incoming range settings\n */\n setRangeSettings(val: IdsRangeSettings) {\n this.monthView!.rangeSettings = val;\n }\n\n onRangeSettingsChange(val: IdsRangeSettings) {\n if (this.monthView) {\n const btnApply = this.applyBtnEl;\n this.setRangeSettings(val);\n\n if (val?.start && val?.end) {\n const formattedStart = this.localeAPI.formatDate(this.setTime(val.start), { pattern: this.format });\n const formattedEnd = this.localeAPI.formatDate(this.setTime(val.end), { pattern: this.format });\n this.value = `${formattedStart}${val.separator}${formattedEnd}`;\n if (!val.selectWeek) btnApply?.removeAttribute(attributes.DISABLED);\n } else {\n if (val?.separator && this.value.indexOf(val?.separator) > -1) {\n this.value = removeDateRange(this.value, val?.separator);\n }\n if (!this.showApply) btnApply?.setAttribute(attributes.DISABLED, 'true');\n }\n\n if (val?.selectWeek) {\n btnApply?.setAttribute(attributes.HIDDEN, 'true');\n }\n }\n }\n\n /**\n * Minute Interval attribute\n * @returns {number} minuteInterval value\n */\n get minuteInterval(): number {\n return stringToNumber(this.getAttribute(attributes.MINUTE_INTERVAL));\n }\n\n /**\n * Set interval in minutes dropdown\n * @param {string|number|null} val minute-interval attribute value\n */\n set minuteInterval(val: string | number | null) {\n const numberVal = stringToNumber(val);\n\n if (numberVal) {\n this.setAttribute(attributes.MINUTE_INTERVAL, `${numberVal}`);\n this.timepicker?.setAttribute(attributes.MINUTE_INTERVAL, `${numberVal}`);\n } else {\n this.removeAttribute(attributes.MINUTE_INTERVAL);\n this.timepicker?.removeAttribute(attributes.MINUTE_INTERVAL);\n }\n }\n\n /**\n * second-interval attribute\n * @returns {number} secondInterval value\n */\n get secondInterval(): number {\n return stringToNumber(this.getAttribute(attributes.SECOND_INTERVAL));\n }\n\n /**\n * Set interval in seconds dropdown\n * @param {string|number|null} val second-interval attribute value\n */\n set secondInterval(val: string | number | null) {\n const numberVal = stringToNumber(val);\n\n if (numberVal) {\n this.setAttribute(attributes.SECOND_INTERVAL, `${numberVal}`);\n this.timepicker?.setAttribute(attributes.SECOND_INTERVAL, `${numberVal}`);\n } else {\n this.removeAttribute(attributes.SECOND_INTERVAL);\n this.timepicker?.removeAttribute(attributes.SECOND_INTERVAL);\n }\n }\n\n /**\n * show-clear attribute\n * @returns {boolean} showClear param converted to boolean from attribute value\n */\n get showClear(): boolean {\n return stringToBool(this.getAttribute(attributes.SHOW_CLEAR));\n }\n\n /**\n * Set whether or not to show clear button in the calendar popup\n * @param {string|boolean|null} val show-clear attribute value\n */\n set showClear(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n const btn = this.container?.querySelector('.popup-btn-clear');\n\n if (boolVal) {\n this.setAttribute(attributes.SHOW_CLEAR, boolVal.toString());\n btn?.removeAttribute(attributes.HIDDEN);\n } else {\n this.removeAttribute(attributes.SHOW_CLEAR);\n btn?.setAttribute(attributes.HIDDEN, (!boolVal).toString());\n }\n }\n\n /**\n * show-cancel attribute\n * @returns {boolean} showCancel param converted to boolean from attribute value\n */\n get showCancel(): boolean {\n return stringToBool(this.getAttribute(attributes.SHOW_CANCEL));\n }\n\n /**\n * Set whether or not to show cancel button when the picker is expanded\n * @param {string|boolean|null} val show-cancel attribute value\n */\n set showCancel(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n const btn = this.container?.querySelector('.popup-btn-cancel');\n\n if (boolVal) {\n this.setAttribute(attributes.SHOW_CANCEL, String(boolVal));\n btn?.removeAttribute(attributes.HIDDEN);\n } else {\n this.removeAttribute(attributes.SHOW_CANCEL);\n btn?.setAttribute(attributes.HIDDEN, (!boolVal).toString());\n }\n }\n\n /**\n * show-apply attribute\n * @returns {boolean} showCancel param converted to boolean from attribute value\n */\n get showApply(): boolean {\n return stringToBool(this.getAttribute(attributes.SHOW_APPLY));\n }\n\n /**\n * Set whether or not to show cancel button when the picker is expanded\n * @param {string|boolean|null} val show-cancel attribute value\n */\n set showApply(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n const btn = this.container?.querySelector('.popup-btn-apply');\n\n if (boolVal) {\n this.setAttribute(attributes.SHOW_APPLY, String(boolVal));\n btn?.removeAttribute(attributes.HIDDEN);\n this.buttonSet?.removeAttribute(attributes.HIDDEN);\n this.buttonSet?.classList.remove('hidden');\n if (this.monthView) this.monthView.showApply = true;\n } else {\n this.removeAttribute(attributes.SHOW_APPLY);\n btn?.setAttribute(attributes.HIDDEN, (!boolVal).toString());\n this.buttonSet?.setAttribute(attributes.HIDDEN, (!boolVal).toString());\n this.buttonSet?.classList.add('hidden');\n if (this.monthView) this.monthView.showApply = false;\n }\n }\n\n /**\n * show-picklist-year attribute, default is true\n * @returns {boolean} showPicklistYear param converted to boolean from attribute value\n */\n get showPicklistYear(): boolean {\n const attrVal = this.getAttribute(attributes.SHOW_PICKLIST_YEAR);\n\n if (attrVal) {\n return stringToBool(attrVal);\n }\n\n return true;\n }\n\n /**\n * Whether or not to show a list of years in the picklist\n * @param {string | boolean | null} val value to be set as show-picklist-year attribute converted to boolean\n */\n set showPicklistYear(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n\n this.setAttribute(attributes.SHOW_PICKLIST_YEAR, String(boolVal));\n this.monthYearPicklist?.setAttribute(attributes.SHOW_PICKLIST_YEAR, String(boolVal));\n }\n\n /**\n * show-picklist-month attribute, default is true\n * @returns {boolean} showPicklistMonth param converted to boolean from attribute value\n */\n get showPicklistMonth(): boolean {\n const attrVal = this.getAttribute(attributes.SHOW_PICKLIST_MONTH);\n\n if (attrVal) {\n return stringToBool(attrVal);\n }\n\n return true;\n }\n\n /**\n * Whether or not to show a list of months in the picklist\n * @param {string | boolean | null} val value to be set as show-picklist-month attribute converted to boolean\n */\n set showPicklistMonth(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n\n this.setAttribute(attributes.SHOW_PICKLIST_MONTH, String(boolVal));\n this.monthYearPicklist?.setAttribute(attributes.SHOW_PICKLIST_MONTH, String(boolVal));\n }\n\n /**\n * show-picklist-week attribute\n * @returns {boolean} showPicklistWeek param converted to boolean from attribute value\n */\n get showPicklistWeek(): boolean {\n return stringToBool(this.getAttribute(attributes.SHOW_PICKLIST_WEEK));\n }\n\n /**\n * Whether or not to show week numbers in the picklist\n * @param {string | boolean | null} val value to be set as show-picklist-week attribute converted to boolean\n */\n set showPicklistWeek(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n\n if (boolVal) {\n this.setAttribute(attributes.SHOW_PICKLIST_WEEK, String(boolVal));\n this.monthYearPicklist?.setAttribute(attributes.SHOW_PICKLIST_WEEK, String(boolVal));\n } else {\n this.removeAttribute(attributes.SHOW_PICKLIST_WEEK);\n this.monthYearPicklist?.removeAttribute(attributes.SHOW_PICKLIST_WEEK);\n }\n }\n\n /**\n * use-current-time attribute\n * @returns {number} useCurrentTime param converted to boolean from attribute value\n */\n get useCurrentTime(): boolean {\n return stringToBool(this.getAttribute(attributes.USE_CURRENT_TIME));\n }\n\n /**\n * Set whether or not to show current time in the time picker\n * @param {string|boolean|null} val useCurrentTime param value\n */\n set useCurrentTime(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n\n if (boolVal) {\n this.setAttribute(attributes.USE_CURRENT_TIME, String(boolVal));\n this.timepicker?.setAttribute(attributes.USE_CURRENT_TIME, String(boolVal));\n } else {\n this.removeAttribute(attributes.USE_CURRENT_TIME);\n this.timepicker?.removeAttribute(attributes.USE_CURRENT_TIME);\n }\n }\n\n onUseRangeChange(val: boolean) {\n const btnApply = this.applyBtnEl;\n if (val) {\n this.monthView?.setAttribute(attributes.USE_RANGE, String(val));\n btnApply?.removeAttribute(attributes.HIDDEN);\n\n if (this.monthView) {\n if (this.monthView.rangeSettings.start === undefined && this.monthView.rangeSettings.end === undefined) {\n btnApply?.setAttribute(attributes.DISABLED, 'true');\n }\n } else {\n btnApply?.setAttribute(attributes.DISABLED, 'true');\n }\n } else {\n this.monthView?.removeAttribute(attributes.USE_RANGE);\n if (!this.expanded && !this.showApply) btnApply?.setAttribute(attributes.HIDDEN, 'true');\n btnApply?.removeAttribute(attributes.DISABLED);\n }\n }\n\n /**\n * value attribute\n * @returns {string} value param\n */\n get value(): string {\n return this.getAttribute(attributes.VALUE) || '';\n }\n\n /**\n * Set Date Picker Popup's stored value. Should parse a date from the value.\n * @param {string|null} val value param\n */\n set value(val: string | null) {\n if (!val) {\n this.dateValue = null;\n this.removeAttribute(attributes.VALUE);\n return;\n }\n\n let newDate = this.getDateValue(val);\n\n if (this.useRange) {\n const rangeSettings = this.getRangeSettings();\n const separator = rangeSettings.separator;\n const [start] = val.split(separator);\n newDate = this.getDateValue(start.trim());\n }\n\n const setDateAttributes = () => {\n this.setAttribute(attributes.VALUE, val);\n this.timepicker?.setAttribute(attributes.VALUE, val);\n };\n\n if (newDate && isValidDate(newDate)) {\n this.dateValue = newDate;\n\n // must set first before the sync\n setDateAttributes();\n this.syncDateAttributes(newDate);\n } else {\n setDateAttributes();\n }\n }\n\n private onPicklistExpand() {\n const btnApply = this.applyBtnEl;\n const btnCancel = this.cancelBtnEl;\n const btnClear = this.clearBtnEl;\n\n this.monthYearPicklist?.activatePicklist();\n btnApply?.removeAttribute(attributes.HIDDEN);\n btnApply?.removeAttribute(attributes.DISABLED);\n\n if (this.showCancel) {\n btnCancel?.removeAttribute(attributes.HIDDEN);\n }\n\n if (this.showClear) {\n btnClear?.setAttribute(attributes.HIDDEN, 'true');\n }\n\n // temporariy fix need to call the place function twice\n this.popup?.place(true);\n this.popup?.place(true);\n }\n\n private onPicklistCollapse() {\n if (this.monthYearPicklist?.deactivatePicklist) this.monthYearPicklist?.deactivatePicklist();\n this.updateActionButtonStateOnShow();\n\n if (this.showClear) {\n this.clearBtnEl?.removeAttribute(attributes.HIDDEN);\n }\n\n // temporariy fix need to call the place function twice\n this.popup?.place(true);\n this.popup?.place(true);\n }\n\n /**\n * Checks internal component refs based on settings\n */\n configureComponents() {\n // ensure trigger field is set as target when popup is a datagrid filter\n const popupTriggerField = this?.parentElement?.querySelector<IdsElement>('ids-trigger-field');\n if (!this.target && this.getAttribute('data-filter-type') === 'date' && popupTriggerField) {\n this.target = popupTriggerField;\n }\n\n this.expandableArea = this.container?.querySelector<IdsExpandableArea>('ids-expandable-area');\n this.monthView = this.container?.querySelector<IdsMonthView>('ids-month-view');\n this.monthYearPicklist = this.container?.querySelector<IdsMonthYearPicklist>('ids-month-year-picklist');\n\n if (this.hasTime()) {\n this.timepicker = this.container?.querySelector<IdsTimePickerPopup>('ids-time-picker-popup');\n if (this.useCurrentTime) this.setCurrentTime();\n // Initialize time picker with default values if no value is set\n if (!this.value && this.timepicker) {\n this.timepicker.syncTimeAttributes(null);\n }\n } else {\n this.timepicker?.remove();\n this.timepicker = null;\n }\n\n this.toolbar = this.container?.querySelector<IdsToolbar>('ids-toolbar');\n this.buttonSet = this.container?.querySelector<IdsButtonGroup>('ids-button-group');\n }\n\n /**\n * Defers `activeDate` to the inner MonthView's `activeDate` attribute,\n * otherwise fallback to the one generated by this one's date props\n * @returns {Date} activeDate from the inner monthView component\n */\n getActiveDate() {\n return this.monthView?.activeDate || this.activeDate;\n }\n\n /**\n * Expanded/Collapsed event for Month/Year Picklist\n */\n private attachExpandedListener() {\n if (this.expandableArea) {\n this.offEvent('afterexpand');\n this.onEvent('afterexpand', this.expandableArea, () => {\n this.onPicklistExpand();\n });\n\n this.offEvent('beforecollapse');\n this.onEvent('beforecollapse', this.expandableArea, () => {\n this.onPicklistCollapse();\n });\n }\n }\n\n private attachEventListeners() {\n // Selects day from the monthView (after user input)\n this.offEvent('dayselected.date-picker-calendar');\n this.onEvent('dayselected.date-picker-calendar', this.monthView, (e: CustomEvent) => {\n if (!this.showApply) this.handleDaySelectedEvent(e);\n });\n\n this.offEvent('datechange');\n this.onEvent('datechange', this.monthView, (e: CustomEvent) => {\n e.stopPropagation();\n this.updateMonthYearPickerTriggerDisplay();\n });\n\n // Handles input from header buttons\n this.offEvent('click.date-picker-header');\n if (this.toolbar) {\n this.onEvent('click.date-picker-header', this.toolbar, (e: Event) => {\n const target = e.target as HTMLElement;\n\n const dropdownBtn: IdsToggleButton | null = target.closest('.dropdown-btn');\n if (dropdownBtn) {\n if (!dropdownBtn.disabled) {\n this.expanded = !this.expanded;\n }\n return;\n }\n\n const navBtn: IdsButton | null = target.closest('.btn-previous, .btn-next, .btn-today');\n if (navBtn) {\n if (!navBtn.disabled) {\n if (navBtn.classList.contains('btn-next')) {\n this.monthView?.changeDate('next-month');\n } else if (navBtn.classList.contains('btn-previous')) {\n this.monthView?.changeDate('previous-month');\n } else if (navBtn.classList.contains('btn-today')) {\n this.handleTodayEvent();\n }\n }\n }\n });\n }\n\n // Handles input from footer buttons\n this.offEvent('click.date-picker-footer');\n this.onEvent('click.date-picker-footer', this.container?.querySelector('.popup-footer'), async (e: MouseEvent) => {\n const target = e.target as HTMLElement;\n if (!target) return;\n\n e.stopPropagation();\n\n if (target.closest('.popup-btn-apply')) {\n this.handleApplyEvent(e);\n return;\n }\n\n if (target.closest('.popup-btn-clear')) {\n this.clear();\n await this.hide(true);\n return;\n }\n\n if (target.closest('.popup-btn-cancel')) {\n this.expanded = false;\n await this.hide(true);\n }\n });\n\n // Input value change triggers component value change\n if (this.target) {\n this.offEvent('change.date-picker-input');\n this.onEvent('change.date-picker-input', this.target, (e: any) => {\n this.setAttribute(attributes.VALUE, e.detail.value);\n });\n }\n\n // Time picker value change triggers input value change\n if (this.hasTime()) {\n this.offEvent('timeselected.date-picker-time');\n this.onEvent('timeselected.date-picker-time', this.timepicker, () => {\n this.value = this.localeAPI.formatDate(\n this.setTime(this.getActiveDate()),\n { pattern: this.format }\n );\n this.triggerSelectedEvent();\n });\n }\n\n // Window resize handler\n this.offEvent('resize.date-picker-window');\n this.onEvent('resize.date-picker-window', window, () => {\n if (this.visible && this.popup) {\n this.#handleDatePickerPositioning();\n }\n });\n }\n\n private removeEventListeners() {\n this.offEvent('dayselected.date-picker-calendar');\n this.offEvent('datechange');\n this.offEvent('click.date-picker-header');\n this.offEvent('click.date-picker-footer');\n this.offEvent('change.date-picker-input');\n this.offEvent('resize.date-picker-window', window);\n }\n\n /**\n * Click to apply button event handler\n * @param {MouseEvent} e click event\n */\n private handleApplyEvent(e: MouseEvent): void {\n e.stopPropagation();\n if (this.expanded) {\n this.captureValueFromPicklist();\n this.updateMonthYearPickerTriggerDisplay();\n this.expanded = false;\n return;\n }\n\n const rangeSettings = this.getRangeSettings();\n if (this.useRange) {\n if (rangeSettings.end || (rangeSettings.start && !rangeSettings.end)) {\n if (rangeSettings.minDays && (rangeSettings.start === rangeSettings.end)) {\n rangeSettings.start = subtractDate(rangeSettings.start, rangeSettings.minDays, 'days');\n this.setRangeSettings(rangeSettings);\n }\n\n this.value = [\n this.localeAPI.formatDate(this.setTime(rangeSettings.start), { pattern: this.format }),\n rangeSettings.separator,\n this.localeAPI.formatDate(\n this.setTime(rangeSettings.end ?? this.getActiveDate()),\n { pattern: this.format }\n ),\n ].filter(Boolean).join('');\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide(true);\n this.triggerSelectedEvent();\n } else {\n this.value = this.localeAPI.formatDate(\n this.setTime(rangeSettings.start ?? this.getActiveDate()),\n { pattern: this.format }\n );\n rangeSettings.start = this.getActiveDate();\n this.setRangeSettings(rangeSettings);\n }\n\n return;\n }\n\n if (this.target) {\n this.value = this.localeAPI.formatDate(\n this.setTime(this.getActiveDate()),\n { pattern: this.format }\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide(true);\n this.triggerSelectedEvent();\n }\n\n /**\n * Clears the contents of the Date Picker Popup and its corresponding target, if applicable\n * @returns {void}\n */\n clear() {\n this.expanded = false;\n this.resetRangeSettings();\n this.value = '';\n this.triggerSelectedEvent();\n }\n\n /**\n * Selected event handler\n * @param {IdsDayselectedEvent} e event from the calendar day selection\n */\n private handleDaySelectedEvent(e: CustomEvent): void {\n const currentDate = this.dateValue;\n\n // Clear action\n // Deselect the selected date by clicking to the selected date\n if (currentDate instanceof Date && isValidDate(currentDate) && currentDate.getTime() === e.detail.date.getTime()) {\n this.value = '';\n this.monthView?.selectDay();\n this.triggerSelectedEvent(e);\n\n return;\n }\n\n if (this.useRange) {\n const rangeSettings = this.getRangeSettings();\n if (rangeSettings.selectWeek) {\n const fixedDate = this.setTime(e.detail.rangeStart as Date);\n this.value = [\n this.localeAPI.formatDate(fixedDate, { pattern: this.format }),\n rangeSettings.separator,\n e.detail.rangeEnd && this.localeAPI.formatDate(this.setTime(e.detail.rangeEnd), { pattern: this.format })\n ].filter(Boolean).join('');\n\n e.detail.date = fixedDate;\n e.detail.value = this.value;\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide(true);\n this.triggerSelectedEvent(e);\n\n return;\n }\n\n e.stopPropagation();\n const btnApply = this.applyBtnEl;\n if (e.detail.rangeStart && e.detail.rangeEnd) {\n btnApply?.removeAttribute(attributes.DISABLED);\n } else {\n btnApply?.setAttribute(attributes.DISABLED, 'true');\n }\n } else {\n const fixedDate = this.setTime(e.detail.date);\n this.value = this.localeAPI.formatDate(\n fixedDate,\n { pattern: this.format }\n );\n this.year = e.detail.date.getFullYear();\n this.month = e.detail.date.getMonth();\n this.day = e.detail.date.getDate();\n\n e.detail.date = fixedDate;\n e.detail.value = this.value;\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n if (!this.showApply) this.hide(true);\n this.triggerSelectedEvent(e);\n }\n }\n\n /**\n * Click to Today button event handler\n * @returns {void}\n */\n handleTodayEvent(): void {\n if (!this.monthView) return;\n this.monthView.changeDate('today');\n\n // If range is enabled just set the start date to today\n if (this.useRange) {\n const rangeSettings = this.getRangeSettings();\n rangeSettings.start = this.getActiveDate();\n rangeSettings.end = null;\n this.setRangeSettings(rangeSettings);\n\n return;\n }\n\n this.value = this.localeAPI.formatDate(\n this.setTime(this.getActiveDate()),\n { pattern: this.format }\n );\n this.triggerSelectedEvent();\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide(true);\n }\n\n /**\n * Gets the value from the selected items in the Month/Year Picklist\n * and sets them in the Date Picker Popup\n * @returns {void}\n */\n private captureValueFromPicklist() {\n if (!this.monthYearPicklist) return;\n const { month, year } = this.monthYearPicklist;\n this.year = year;\n this.month = month;\n this.value = this.getFormattedDate(this.activeDate);\n }\n\n /**\n * Defines if the format has hours/minutes/seconds pattern to show time picker\n * @returns {boolean} whether or not to show time picker\n */\n hasTime(): boolean {\n if (!this.format) return false;\n return this.format.includes('h') || this.format.includes('m') || this.format.includes('s');\n }\n\n /**\n * Helper to set the date with time from time picker\n * @param {any} val date to add time values\n * @returns {Date} date with time values\n */\n private setTime(val: any): Date {\n const date = isValidDate(val) ? val : new Date(val);\n const timePicker = this.container?.querySelector<IdsTimePickerPopup>('ids-time-picker-popup');\n\n if (!this.hasTime() || !timePicker) return date;\n\n const hours: number = timePicker.hours ?? 0;\n const minutes: number = timePicker.minutes ?? 0;\n const seconds: number = timePicker.seconds ?? 0;\n const period: string = timePicker.period ?? '';\n const dayPeriodIndex = this.localeAPI?.calendar().dayPeriods?.indexOf(period);\n\n date.setHours(hoursTo24(hours, dayPeriodIndex), minutes, seconds);\n\n return date;\n }\n\n /**\n * Triggers the same `dayselected` event on the Popup's target element that came from the internal IdsMonthView\n * @param {IdsDayselectedEvent} [e] optional event handler to pass arguments\n * @returns {void}\n */\n private triggerSelectedEvent(e?: IdsDayselectedEvent): void {\n let args: any;\n if (e) args = e;\n else {\n const rangeSettings = this.getRangeSettings();\n args = {\n bubbles: true,\n detail: {\n elem: this,\n date: this.getActiveDate(),\n useRange: this.useRange,\n rangeStart: this.useRange && rangeSettings.start ? new Date(rangeSettings.start as string) : null,\n rangeEnd: this.useRange && rangeSettings.end ? new Date(rangeSettings.end as string) : null,\n value: this.value\n }\n };\n }\n\n if (this.target) {\n this.triggerEvent('dayselected', this.target, args);\n }\n }\n\n /**\n * Renders or removes an embedded IdsTimePicker component\n */\n private updateTimepickerDisplay() {\n const hasTime = this.hasTime();\n this.container?.classList.toggle('has-time', hasTime);\n if (hasTime) {\n if (!this.timepicker) {\n this.monthView?.insertAdjacentHTML('afterend', this.timepickerTemplate());\n this.timepicker = this.container?.querySelector('ids-time-picker-popup');\n }\n } else {\n this.timepicker?.remove();\n this.timepicker = null;\n }\n }\n\n /**\n * Takes a string containing a date, or an actual Date object, and syncs its values\n * to the correct properties provided by IdsDateAttributeMixin\n * @param {string | Date} val incoming date string/object\n */\n public syncDateAttributes(val: string | Date) {\n let usableValue = val;\n const rangeSettings = this.getRangeSettings();\n\n if (typeof val === 'string' && this.useRange && rangeSettings.separator) {\n usableValue = removeDateRange(val, rangeSettings.separator);\n }\n\n const date = new Date(usableValue);\n const month = date.getMonth();\n const year = date.getFullYear();\n const day = date.getDate();\n\n if (this.year !== year) this.year = year;\n if (this.month !== month) this.month = month;\n if (this.day !== day) this.day = day;\n\n if (this.hasTime()) {\n if (this.timepicker) this.timepicker.value = this.value;\n }\n\n if (this.monthView) {\n if (typeof this.monthView.selectDayFromValue === 'function') {\n this.monthView.selectDayFromValue(`${usableValue}`);\n }\n }\n\n this.updateMonthYearPickerTriggerDisplay();\n }\n\n private setCurrentTime() {\n if (this.timepicker) {\n this.timepicker.value = this.localeAPI.formatDate(new Date(), { pattern: this.format });\n }\n }\n\n /**\n * Helper to format datepicker text in the toolbar\n * @param {IdsLocale} [locale] an optional, provided IdsLocale object\n * @param {Date} [date] an optional, provided Date object (defaults to `this.getActiveDate()`)\n * @returns {string} locale formatted month year\n */\n private formatMonthText(locale?: IdsLocale, date?: Date): string {\n const targetLocale = locale || this.localeAPI;\n const targetDate = date || this.getActiveDate();\n\n if (!targetLocale) return '';\n\n const monthKeys = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n const month = targetLocale?.translate(`MonthWide${monthKeys[targetDate.getMonth()]}`);\n\n return `${month} ${targetDate.getFullYear()}`;\n }\n\n /**\n * Updates the text contents of the Month/Year Picker's trigger button to reflect current state\n * @param {IdsLocale} [locale] incoming IdsLocale object, if applicable\n * @param {Date} [date] an optional, provided Date object (defaults to `this.getActiveDate()`)\n * @returns {void}\n */\n updateMonthYearPickerTriggerDisplay(locale?: IdsLocale, date?: Date) {\n const formattedDate = this.formatMonthText(locale, date) || '';\n const toggleBtnText = this.container?.querySelector<IdsToggleButton>('.dropdown-btn-text');\n\n if (toggleBtnText) {\n toggleBtnText.innerText = formattedDate;\n } else {\n const toggleBtn = this.container?.querySelector<IdsToggleButton>('ids-toggle-button');\n toggleBtn?.insertAdjacentHTML('afterbegin', `<ids-text ids-text class=\"dropdown-btn-text\" font-size=\"20\" aria-live=\"polite\">${formattedDate}<ids-text>`);\n }\n }\n\n /**\n * Runs when this picker component hides\n * @returns {void}\n */\n onHide() {\n this.container?.setAttribute(htmlAttributes.TABINDEX, '-1');\n this.expanded = false;\n }\n\n /**\n * Runs when this picker component shows\n * @returns {void}\n */\n onShow(): void {\n this.attachEventListeners();\n this.updateActionButtonStateOnShow();\n this.container?.removeAttribute(htmlAttributes.TABINDEX);\n // Update time if using current time\n if (this.hasTime() && this.useCurrentTime && !this.value) this.setCurrentTime();\n this.#handleDatePickerPositioning();\n this.updateMonthYearPickerTriggerDisplay();\n this.focus();\n }\n\n /**\n * Updates the Popup's Modal button states\n */\n private updateActionButtonStateOnShow() {\n const btnApply = this.applyBtnEl;\n const rangeSettings = this.getRangeSettings();\n const hasPartialRangeSelected = !(rangeSettings.start && rangeSettings.end);\n\n if (!this.useRange) {\n if (btnApply && !this.showApply) {\n btnApply.setAttribute(attributes.HIDDEN, 'true');\n btnApply.setAttribute(attributes.DISABLED, `${hasPartialRangeSelected}`);\n }\n if (this.showCancel) {\n const btnCancel = this.cancelBtnEl;\n btnCancel?.removeAttribute(attributes.HIDDEN);\n }\n } else if (!rangeSettings.selectWeek) {\n btnApply?.removeAttribute(attributes.HIDDEN);\n btnApply?.setAttribute(attributes.DISABLED, `${hasPartialRangeSelected}`);\n } else {\n btnApply?.setAttribute(attributes.HIDDEN, 'true');\n }\n }\n\n /**\n * Passes through to IdsMonthView to check if a specified date is disabled (not available for choosing)\n * @param {Date} date the date to check\n * @returns {boolean} wheter or not the date is disabled\n */\n isDisabledByDate(date: Date) {\n return this.monthView?.isDisabledByDate(date);\n }\n\n /**\n * Passes focus to the inner MonthView component\n */\n focus() {\n if (this.expanded) {\n this.monthYearPicklist?.focus();\n } else {\n this.monthView?.focus();\n }\n }\n\n configurePopup(setX: boolean = true) {\n const isInActionPanel = getClosest(this, 'ids-action-panel');\n if (this.popup && (this.positionStyle === 'fixed' || isInActionPanel)) {\n const modalParent = getClosest(this.popup, 'ids-action-panel, ids-modal');\n this.popup.setAttribute(attributes.POSITION_STYLE, 'fixed');\n const input = (this.parentNode?.querySelector('ids-trigger-field')?.shadowRoot?.querySelector('.field-container') as HTMLDivElement);\n let y = (input?.getBoundingClientRect().bottom || 0) - 1;\n const x = setX ? (input?.getBoundingClientRect().x || 0) : 0;\n\n this.popup.onPlace = (popupRect: any, domElement: HTMLElement) => {\n if (modalParent) {\n popupRect.x = 'unset';\n domElement.style.marginLeft = 'unset';\n domElement.style.marginRight = 'unset';\n domElement.style.marginTop = 'unset';\n const popupWidth = (this.popup as HTMLElement).offsetWidth;\n const popupHeight = (this.popup as HTMLElement).offsetHeight;\n\n const triggerRect = this.triggerElem!.getBoundingClientRect();\n const modalRect = modalParent.container?.querySelector('.ids-modal-container')?.getBoundingClientRect() || modalParent.getBoundingClientRect();\n const arrowClassList = this.popup!.arrowEl!.classList[1];\n const scrollTop = modalParent.container?.querySelector('.ids-modal-content')?.scrollTop || 0;\n let targetWidth = (this.popup?.alignTarget as HTMLElement)?.offsetWidth;\n const parentRect = this.parentElement?.getBoundingClientRect();\n\n // Check if this is a data grid filter\n const isDataGridFilter = this.getAttribute(attributes.DATA_FILTER_TYPE) === 'date';\n if (isDataGridFilter) {\n const spaceRight = modalRect.right - triggerRect.right;\n const spaceLeft = triggerRect.left - modalRect.left;\n\n if (spaceRight < popupWidth && spaceLeft < popupWidth) {\n popupRect.x = (modalRect.width - popupWidth) / 2;\n popupRect.y = (triggerRect.bottom - modalRect.y) + 3;\n } else if (spaceRight < popupWidth) {\n popupRect.x = (triggerRect.right - modalRect.x) - popupWidth + 1;\n popupRect.y = (triggerRect.bottom - modalRect.y) + 3;\n } else {\n popupRect.x = (triggerRect.x - modalRect.x);\n popupRect.y = (triggerRect.bottom - modalRect.y) + 3;\n }\n return popupRect;\n }\n\n switch (arrowClassList) {\n case 'left':\n popupRect.x = ((triggerRect.x || 0) - modalRect.x) - popupWidth;\n popupRect.x -= 7;\n break;\n case 'top':\n popupRect.y = ((triggerRect.y || 0) - modalRect.y) - popupHeight;\n popupRect.y -= 7;\n break;\n case 'right':\n popupRect.x = ((triggerRect.right || 0) - modalRect.x);\n popupRect.x += 7;\n break;\n default:\n if (scrollTop && scrollTop > 0) domElement.style.marginTop = `-${17 + scrollTop}px`;\n else domElement.style.marginTop = '-10px';\n\n // Adjust to wider field sizes and datagrid sizes\n if (this.popup?.alignTarget?.nodeName === 'IDS-TRIGGER-BUTTON') targetWidth = (this.popup?.alignTarget.parentElement as HTMLElement)?.offsetWidth;\n\n if (targetWidth > popupWidth && !this.localeAPI.isRTL()) {\n domElement.style.marginLeft = `${targetWidth - popupWidth}px`;\n }\n if (targetWidth > popupWidth && this.localeAPI.isRTL()) {\n domElement.style.marginRight = `${targetWidth - popupWidth + 4}px`;\n const arrowLeft = parseInt((domElement as any)?.arrowEl?.style.marginLeft);\n requestAnimationFrame(() => {\n (domElement as any)!.arrowEl!.style.marginLeft = `${arrowLeft + 6}px`;\n });\n }\n if ((parentRect?.left || 0) + popupWidth > (window.visualViewport?.width || 0)) {\n popupRect.x = (window.visualViewport?.width || 0) - popupWidth;\n } else {\n popupRect.x = 'unset';\n }\n popupRect.y = 'unset';\n }\n return popupRect;\n }\n popupRect.y = y;\n popupRect.x = x;\n\n // Flip it up\n if (y + Number(this.popup?.offsetHeight)\n > Number(document.body?.scrollHeight)) {\n y = (input?.getBoundingClientRect().top || 0) - Number(this.popup?.offsetHeight) + 1;\n popupRect.y = y;\n this.popup?.container?.classList.add('flipped');\n }\n return popupRect;\n };\n\n this.popup.setPosition(x, y, false, true);\n }\n }\n\n /**\n * Handle viewport positioning for the date picker popup\n * @private\n */\n #handleDatePickerPositioning(): void {\n if (!this.popup || !this.popup.alignTarget) return;\n\n const contentWrapper = this.popup.wrapper;\n const viewportWidth = window.visualViewport?.width || window.innerWidth;\n const viewportHeight = window.innerHeight;\n const initialPopupRect = this.popup.getBoundingClientRect();\n const targetRect = this.popup.alignTarget.getBoundingClientRect();\n const spaceRight = viewportWidth - targetRect.right;\n const spaceBottom = viewportHeight - targetRect.bottom;\n const spaceTop = targetRect.top;\n const fitsRight = spaceRight >= initialPopupRect.width;\n const fitsBottom = spaceBottom >= initialPopupRect.height;\n const fitsTop = spaceTop >= initialPopupRect.height;\n\n if (!fitsRight) {\n let spaceValue = spaceBottom;\n let fitValue = fitsBottom;\n\n if (spaceBottom >= spaceTop) {\n this.popup.setAttribute(attributes.ALIGN, attributes.BOTTOM);\n this.popup.setAttribute(attributes.ARROW, attributes.BOTTOM);\n } else {\n this.popup.setAttribute(attributes.ALIGN, attributes.TOP);\n this.popup.setAttribute(attributes.ARROW, attributes.TOP);\n spaceValue = spaceTop;\n fitValue = fitsTop;\n }\n\n if (!fitValue && contentWrapper) {\n const maxHeight = Math.max(spaceValue - 20, 200);\n contentWrapper.style.maxHeight = `${maxHeight}px`;\n contentWrapper.style.overflowY = 'auto';\n }\n }\n }\n\n set positionStyle(val: 'fixed' | 'absolute' | null) {\n this.setAttribute(attributes.POSITION_STYLE, val === 'fixed' ? 'fixed' : 'absolute');\n this.configurePopup(false);\n }\n\n get positionStyle(): 'fixed' | 'absolute' {\n return this.getAttribute(attributes.POSITION_STYLE) === 'fixed' ? 'fixed' : 'absolute';\n }\n\n set showWeekNumbers(val: boolean | null) {\n if (stringToBool(val)) {\n this.setAttribute(attributes.SHOW_WEEK_NUMBERS, '');\n } else {\n this.removeAttribute(attributes.SHOW_WEEK_NUMBERS);\n }\n }\n\n get showWeekNumbers(): boolean {\n return stringToBool(this.getAttribute(attributes.SHOW_WEEK_NUMBERS));\n }\n\n /**\n * Resets the date picker calendar view to today's date\n * Used when the input is cleared to ensure the popup shows the current month\n * @returns {void}\n */\n resetPopupToToday() {\n if (!this.monthView) {\n return;\n }\n\n this.monthView.changeDate('today');\n }\n}\n\nexport default IdsDatePickerPopup;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAO,gCAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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ACnC,MAAI,CAAC,KAAK,SAAS,CAAC,KAAK,MAAM,YAAa;AAE5C,QAAM,iBAAiB,KAAK,MAAM;AAClC,QAAM,gBAAgB,OAAO,gBAAgB,SAAS,OAAO;AAC7D,QAAM,iBAAiB,OAAO;AAC9B,QAAM,mBAAmB,KAAK,MAAM,sBAAsB;AAC1D,QAAM,aAAa,KAAK,MAAM,YAAY,sBAAsB;AAChE,QAAM,aAAa,gBAAgB,WAAW;AAC9C,QAAM,cAAc,iBAAiB,WAAW;AAChD,QAAM,WAAW,WAAW;AAC5B,QAAM,YAAY,cAAc,iBAAiB;AACjD,QAAM,aAAa,eAAe,iBAAiB;AACnD,QAAM,UAAU,YAAY,iBAAiB;AAE7C,MAAI,CAAC,WAAW;AACd,QAAI,aAAa;AACjB,QAAI,WAAW;AAEf,QAAI,eAAe,UAAU;AAC3B,WAAK,MAAM,aAAa,WAAW,OAAO,WAAW,MAAM;AAC3D,WAAK,MAAM,aAAa,WAAW,OAAO,WAAW,MAAM;AAAA,IAC7D,OAAO;AACL,WAAK,MAAM,aAAa,WAAW,OAAO,WAAW,GAAG;AACxD,WAAK,MAAM,aAAa,WAAW,OAAO,WAAW,GAAG;AACxD,mBAAa;AACb,iBAAW;AAAA,IACb;AAEA,QAAI,CAAC,YAAY,gBAAgB;AAC/B,YAAM,YAAY,KAAK,IAAI,aAAa,IAAI,GAAG;AAC/C,qBAAe,MAAM,YAAY,GAAG,SAAS;AAC7C,qBAAe,MAAM,YAAY;AAAA,IACnC;AAAA,EACF;AACF;AAj2CI,qBAAN;AAAA,EAFC,cAAc,uBAAuB;AAAA,EACrC,KAAK,6BAAM;AAAA,GACN;AAs4CN,IAAOA,iCAAQ;",
4
+ "sourcesContent": ["export default `ids-popup::part(popup) {\n padding-block: 0;\n}\n\nids-popup[visible][animated] {\n transition: none;\n}\n\n.ids-date-picker-popup .ids-popup.menu {\n padding-block: 0;\n}\n\nids-month-view {\n width: 100%;\n}\n\n#month-year-view-trigger {\n margin: 4px;\n}\n\n.ids-date-picker-popup {\n min-width: 350px;\n}\n.ids-date-picker-popup:not(.has-time) ids-month-view::part(table-container) {\n margin-bottom: 10px;\n}\n.ids-date-picker-popup ids-popup::part(popup) {\n padding-block: 0;\n}\n.ids-date-picker-popup .popup-footer:not(.hidden) {\n border-top: 1px solid var(--ids-date-picker-popup-footer-color-border);\n display: flex;\n}\n.ids-date-picker-popup .popup-footer:not(.hidden) ids-modal-button:not([hidden]) + ids-modal-button,\n.ids-date-picker-popup .popup-footer:not(.hidden) .ids-modal-button:not([hidden]) + .ids-modal-button {\n border-left: 1px solid;\n border-left-color: var(--ids-date-picker-popup-footer-color-border);\n}\n.ids-date-picker-popup .popup-btn {\n width: 100%;\n}\n\n.ids-date-picker-content {\n position: relative;\n}\n\nids-expandable-area {\n display: block;\n}\n\nids-expandable-area:not([expanded]),\nids-expandable-area[expanded=false] {\n pointer-events: none;\n}\n\nids-expandable-area::part(container) {\n margin: 0;\n padding: 0;\n height: 100%;\n position: absolute;\n z-index: 3;\n border: none;\n left: 0;\n width: 100%;\n}\n\nids-expandable-area::part(header) {\n display: none;\n}\n\nids-expandable-area::part(pane) {\n background-color: var(--ids-date-picker-color-background);\n}\n\nids-expandable-area::part(footer) {\n display: none;\n}\n\nids-expandable-area::part(pane-content) {\n margin-top: 0;\n height: 100%;\n}\n\nids-time-picker-popup {\n display: flex;\n justify-content: center;\n}\nids-time-picker-popup[hidden] {\n display: none;\n}\nids-time-picker-popup[embeddable] {\n margin-top: -18px;\n}\n\n.btn-today {\n margin-right: -7px;\n}\n.btn-today::part(button) {\n padding: 8px;\n margin: 3px;\n}\n\n.btn-today-text {\n color: var(--ids-date-picker-popup-button-today-color-text);\n}\n\n.btn-previous,\n.btn-next {\n padding-inline-start: 0;\n margin: 3px;\n}\n.btn-previous::part(button),\n.btn-next::part(button) {\n padding: 0;\n width: 38px;\n height: 38px;\n}\n\n.btn-next {\n margin: 3px 3px 3px -5px;\n}\n/*# sourceMappingURL=data:application/json;charset=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G9wdXAge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcblxuICAmW2hpZGRlbl0ge1xuICAgIGRpc3BsYXk6IG5vbmU7XG4gIH1cblxuICAmW2VtYmVkZGFibGVdIHtcbiAgICBtYXJnaW4tdG9wOiAtMThweDtcbiAgfVxufVxuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBGb290ZXIgYnV0dG9uc1xuXG4uYnRuLXRvZGF5IHtcbiAgbWFyZ2luLXJpZ2h0OiAtN3B4O1xuXG4gICY6OnBhcnQoYnV0dG9uKSB7XG4gICAgcGFkZGluZzogOHB4O1xuICAgIG1hcmdpbjogM3B4O1xuICB9XG59XG5cbi5idG4tdG9kYXktdGV4dCB7XG4gIGNvbG9yOiB2YXIoLS1pZHMtZGF0ZS1waWNrZXItcG9wdXAtYnV0dG9uLXRvZGF5LWNvbG9yLXRleHQpO1xufVxuXG4uYnRuLXByZXZpb3VzLFxuLmJ0bi1uZXh0IHtcbiAgcGFkZGluZy1pbmxpbmUtc3RhcnQ6IDA7XG4gIG1hcmdpbjogM3B4O1xuXG4gICY6OnBhcnQoYnV0dG9uKSB7XG4gICAgcGFkZGluZzogMDtcbiAgICB3aWR0aDogMzhweDtcbiAgICBoZWlnaHQ6IDM4cHg7XG4gIH1cbn1cblxuLmJ0bi1uZXh0IHtcbiAgbWFyZ2luOiAzcHggM3B4IDNweCAtNXB4O1xufVxuIl19 */`;\n", "import { attributes, htmlAttributes } from '../../core/ids-attributes';\nimport { customElement, scss } from '../../core/ids-decorators';\nimport IdsMonthViewAttributeMixin from '../ids-month-view/ids-month-view-attribute-mixin';\nimport IdsDateAttributeMixin from '../../mixins/ids-date-attribute-mixin/ids-date-attribute-mixin';\nimport IdsLocaleMixin from '../../mixins/ids-locale-mixin/ids-locale-mixin';\nimport IdsPickerPopup from '../ids-popup/ids-picker-popup';\n\nimport {\n subtractDate, isValidDate, hoursTo24, removeDateRange\n} from '../../utils/ids-date-utils/ids-date-utils';\nimport { stringToBool, stringToNumber } from '../../utils/ids-string-utils/ids-string-utils';\nimport {\n IdsDatePickerCommonAttributes,\n} from './ids-date-picker-common';\n\n// Components\nimport './ids-month-year-picklist';\nimport '../ids-button/ids-button';\nimport '../ids-modal/ids-modal-button';\nimport '../ids-expandable-area/ids-expandable-area';\nimport '../ids-month-view/ids-month-view';\nimport '../ids-time-picker/ids-time-picker-popup';\nimport '../ids-toggle-button/ids-toggle-button';\nimport '../ids-toolbar/ids-toolbar';\nimport '../ids-toolbar/ids-toolbar-section';\n// Types\nimport type IdsElement from '../../core/ids-element';\nimport type IdsButton from '../ids-button/ids-button';\nimport type IdsExpandableArea from '../ids-expandable-area/ids-expandable-area';\nimport type IdsLocale from '../ids-locale/ids-locale';\nimport type IdsModalButton from '../ids-modal/ids-modal-button';\nimport type IdsMonthView from '../ids-month-view/ids-month-view';\nimport type IdsMonthYearPicklist from './ids-month-year-picklist';\n\nimport type {\n IdsRangeSettings,\n IdsRangeSettingsInterface,\n IdsLegendSettings,\n IdsDisableSettings\n} from '../ids-month-view/ids-month-view-common';\n\nimport type { IdsDayselectedEvent } from '../ids-month-view/ids-month-view';\nimport type IdsTimePickerPopup from '../ids-time-picker/ids-time-picker-popup';\nimport type IdsToggleButton from '../ids-toggle-button/ids-toggle-button';\nimport type IdsToolbar from '../ids-toolbar/ids-toolbar';\nimport type IdsToolbarSection from '../ids-toolbar/ids-toolbar-section';\n\nimport styles from './ids-date-picker-popup.scss';\nimport IdsText from '../ids-text/ids-text';\nimport { getClosest } from '../../utils/ids-dom-utils/ids-dom-utils';\nimport IdsButtonGroup from '../ids-button/ids-button-group';\n\ntype IdsDatePickerPopupButton = IdsToggleButton | IdsModalButton | IdsButton;\n\nconst Base = IdsMonthViewAttributeMixin(\n IdsDateAttributeMixin(\n IdsLocaleMixin(\n IdsPickerPopup\n )\n )\n);\n\n/**\n * IDS Date Picker Popup Component\n * @type {IdsDatePickerPopup}\n * @inherits IdsPickerPopup\n * @mixes IdsDateAttributeMixin\n * @mixes IdsLocaleMixin\n * @mixes IdsMonthViewAttributeMixin\n */\n@customElement('ids-date-picker-popup')\n@scss(styles)\nclass IdsDatePickerPopup extends Base implements IdsRangeSettingsInterface {\n constructor() {\n super();\n }\n\n protected expandableArea: IdsExpandableArea | null | undefined;\n\n protected monthView: IdsMonthView | null | undefined;\n\n protected monthYearPicklist: IdsMonthYearPicklist | null | undefined;\n\n protected timepicker: IdsTimePickerPopup | null | undefined;\n\n protected toolbar: IdsToolbar | null | undefined;\n\n protected buttonSet: IdsButtonGroup | null | undefined;\n\n connectedCallback() {\n super.connectedCallback();\n this.configureComponents();\n this.attachEventListeners();\n this.attachExpandedListener();\n this.configurePopup();\n this.buttonSet = null;\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback?.();\n this.removeEventListeners();\n this.expandableArea = null;\n this.monthView = null;\n this.monthYearPicklist = null;\n this.timepicker = null;\n this.toolbar = null;\n this.buttonSet = null;\n }\n\n static get attributes(): Array<string> {\n return [\n ...super.attributes,\n ...IdsDatePickerCommonAttributes,\n attributes.EXPANDED,\n attributes.POSITION_STYLE,\n attributes.SHOW_TODAY,\n attributes.SHOW_APPLY,\n attributes.SHOW_CANCEL,\n attributes.SHOW_CLEAR\n ];\n }\n\n /**\n * Inner template contents\n * @returns {string} The template\n */\n template(): string {\n const isBtnGroupVisible = this.showCancel || this.showClear || this.showApply || (this.useRange || this.expanded);\n return `<ids-popup class=\"ids-date-picker-popup\" type=\"menu\" align=\"bottom, left\" arrow=\"bottom\" tabIndex=\"-1\" animated position-style=\"fixed\">\n <slot slot=\"content\" name=\"toolbar\">\n ${this.toolbarTemplate()}\n </slot>\n <div class=\"ids-date-picker-content\" slot=\"content\">\n <ids-expandable-area\n expand-style=\"fill\"\n expanded=\"${this.expanded}\"\n class=\"ids-date-picker-expandable\"\n >\n <ids-month-year-picklist\n slot=\"pane\"\n ${this.showPicklistYear ? 'show-picklist-year=\"true\"' : ''}></ids-month-year-picklist>\n </ids-expandable-area>\n <ids-month-view\n compact=\"true\"\n is-date-picker=\"true\"\n show-week-numbers=\"${this.showWeekNumbers}\"\n show-today=${this.showToday}\n ${this.showApply ? `show-apply=${this.showApply}` : ''}\n first-day-of-week=\"${this.firstDayOfWeek}\"\n year=\"${this.year}\"\n month=\"${this.month}\"\n day=\"${this.day}\"\n use-range=\"${this.useRange}\"\n ></ids-month-view>\n ${this.timepickerTemplate()}\n </div>\n <ids-button-group slot=\"content\" class=\"popup-footer${isBtnGroupVisible ? '' : ' hidden'}\" part=\"footer\" ${isBtnGroupVisible ? '' : ' hidden'} compact=\"true\">\n <ids-button-group-section gap=\"8\">\n <ids-button appearance=\"secondary\" class=\"popup-btn popup-btn-cancel\" cancel ${this.showCancel ? '' : ' hidden'}>\n <span>Cancel</span>\n </ids-button>\n <ids-button appearance=\"secondary\" class=\"popup-btn popup-btn-clear\" part=\"btn-clear\" ${this.showClear ? '' : ' hidden'}>\n <span>Clear</span>\n </ids-button>\n <ids-button appearance=\"primary\" class=\"popup-btn popup-btn-apply\"${this.useRange || this.showApply || this.expanded ? ' disabled' : ' hidden'} part=\"btn-apply\">\n <span>Apply</span>\n </ids-button>\n </ids-button-group-section>\n </ids-button-group>\n </ids-popup>`;\n }\n\n /**\n * @returns {string} containing the inner Timepicker's template\n */\n private timepickerTemplate(): string {\n if (!this.hasTime()) {\n return '';\n }\n return `\n <ids-time-picker-popup\n ${!this.hasTime() ? 'hidden' : ''}\n minute-interval=\"${this.minuteInterval}\"\n second-interval=\"${this.secondInterval}\"\n use-current-time=\"${this.useCurrentTime}\"\n embeddable=\"true\"\n autoupdate=\"true\"\n format=\"${this.format}\"\n value=\"${this.value}\"\n ></ids-time-picker-popup>\n `;\n }\n\n /**\n * @returns {string} containing the inner Toolbar's template\n */\n private toolbarTemplate(): string {\n const prevNextBtn = `<ids-button class=\"btn-previous\">\n <ids-text audible=\"true\" translate-text=\"true\">PreviousMonth</ids-text>\n <ids-icon icon=\"chevron-left\"></ids-icon>\n </ids-button>\n <ids-button class=\"btn-next\">\n <ids-text audible=\"true\" translate-text=\"true\">NextMonth</ids-text>\n <ids-icon icon=\"chevron-right\"></ids-icon>\n </ids-button>`;\n const todayBtn = this.showToday ? `<ids-button css-class=\"no-padding\" class=\"btn-today\">\n <ids-text\n class=\"btn-today-text\"\n font-size=\"16\"\n translate-text=\"true\"\n font-weight=\"semi-bold\"\n >Today</ids-text>\n </ids-button>` : '';\n\n return `<ids-toolbar class=\"month-view-header\" tabbable=\"true\">\n <ids-toolbar-section favor>\n <ids-toggle-button id=\"month-year-view-trigger\" icon-off=\"dropdown\" icon-on=\"dropdown\" icon=\"dropdown\" icon-align=\"end\" no-padding class=\"dropdown-btn\">\n <ids-text audible=\"true\" translate-text=\"true\">DatePickerTriggerButton</ids-text>\n <ids-text class=\"dropdown-btn-text\" font-size=\"20\" aria-live=\"polite\">${this.formatMonthText()}</ids-text>\n <ids-icon icon=\"dropdown\" class=\"dropdown-btn-icon\"></ids-icon>\n </ids-toggle-button>\n </ids-toolbar-section>\n <ids-toolbar-section class=\"toolbar-buttonset monthview-nav\" align=\"end\" type=\"fluid\"${this.expanded ? ' inactive' : ''}>\n ${todayBtn}\n ${prevNextBtn}\n </ids-toolbar-section>\n </ids-toolbar>`;\n }\n\n /**\n * @returns {Array<string>} Date Picker vetoable events\n */\n vetoableEventTypes: Array<string> = ['beforeshow'];\n\n /**\n * @readonly\n * @returns {NodeList<IdsDatePickerPopupButton>} containing all buttons in the Date Picker Popup\n */\n get buttons() {\n return this.container?.querySelectorAll<IdsDatePickerPopupButton>('ids-button, ids-modal-button, ids-toggle-button');\n }\n\n /**\n * show-today attribute\n * @returns {boolean} showToday param converted to boolean from attribute value\n */\n get showToday(): boolean {\n const attrVal = this.getAttribute(attributes.SHOW_TODAY);\n\n // true by default if no attribute\n return attrVal !== null ? stringToBool(attrVal) : true;\n }\n\n /**\n * Set whether or not month view today button should be show\n * @param {string|boolean|null} val show-today attribute value\n */\n set showToday(val: string | boolean | null) {\n const doShow = stringToBool(val);\n if (doShow) {\n this.setAttribute(attributes.SHOW_TODAY, 'true');\n this.todayBtnEl?.removeAttribute(attributes.HIDDEN);\n } else {\n this.setAttribute(attributes.SHOW_TODAY, 'false');\n this.todayBtnEl?.setAttribute(attributes.HIDDEN, 'true');\n }\n }\n\n /**\n * Handle changes to the first day of week setting\n * @param {number} newValue - The new first day of week value (0-6, where 0 is Sunday)\n */\n onFirstDayOfWeekChange(newValue: number) {\n this.monthView?.setAttribute(attributes.FIRST_DAY_OF_WEEK, `${newValue}`);\n this.monthYearPicklist?.setAttribute(attributes.FIRST_DAY_OF_WEEK, `${newValue}`);\n }\n\n onMonthChange(newValue: number, isValid: boolean) {\n if (isValid) {\n this.monthView?.setAttribute(attributes.MONTH, `${newValue}`);\n this.monthYearPicklist?.setAttribute(attributes.MONTH, `${newValue}`);\n } else {\n this.monthView?.removeAttribute(attributes.MONTH);\n this.monthYearPicklist?.removeAttribute(attributes.MONTH);\n }\n }\n\n onYearChange(newValue: number, isValid: boolean) {\n if (isValid) {\n this.monthView?.setAttribute(attributes.YEAR, `${newValue}`);\n this.monthYearPicklist?.setAttribute(attributes.MONTH, `${newValue}`);\n } else {\n this.monthView?.removeAttribute(attributes.YEAR);\n this.monthYearPicklist?.removeAttribute(attributes.YEAR);\n }\n }\n\n onDayChange(newValue: number, isValid: boolean) {\n if (isValid) {\n this.monthView?.setAttribute(attributes.DAY, `${newValue}`);\n this.monthYearPicklist?.setAttribute(attributes.DAY, `${newValue}`);\n } else {\n this.monthView?.removeAttribute(attributes.DAY);\n this.monthYearPicklist?.removeAttribute(attributes.DAY);\n }\n }\n\n onFormatChange() {\n this.configureComponents();\n if (this.monthView) this.monthView.setAttribute('format', this.format);\n\n if (this.timepicker) {\n this.timepicker.setAttribute('format', this.format);\n\n if (this.hasTime()) {\n this.timepicker.setAttribute('value', this.value);\n this.timepicker.removeAttribute(attributes.HIDDEN);\n } else {\n this.timepicker.setAttribute(attributes.HIDDEN, '');\n }\n }\n this.updateTimepickerDisplay();\n }\n\n /**\n * @param {IdsLocale} locale the new locale object\n */\n onLocaleChange = (locale: IdsLocale | undefined) => {\n this.updateMonthYearPickerTriggerDisplay(locale);\n if (this.monthYearPicklist) {\n this.monthYearPicklist.locale = this.locale;\n this.monthYearPicklist.language = this.language.name;\n }\n if (this.monthView) {\n this.monthView.locale = this.locale;\n this.monthView.language = this.language.name;\n }\n this.shadowRoot?.querySelectorAll('[translate-text]').forEach((textElem: Element) => {\n (textElem as IdsText).language = this.language.name;\n });\n };\n\n get applyBtnEl(): IdsModalButton | null | undefined {\n return this.container?.querySelector<IdsModalButton>('.popup-btn-apply');\n }\n\n get cancelBtnEl(): IdsModalButton | null | undefined {\n return this.container?.querySelector<IdsModalButton>('.popup-btn-cancel');\n }\n\n get todayBtnEl(): IdsButton | null | undefined {\n return this.container?.querySelector<IdsButton>('.btn-today');\n }\n\n get clearBtnEl(): IdsButton | null | undefined {\n return this.container?.querySelector<IdsButton>('.popup-btn-clear');\n }\n\n /**\n * expanded attribute\n * @returns {boolean} whether the month/year picker expanded or not\n */\n get expanded(): boolean {\n return stringToBool(this.getAttribute(attributes.EXPANDED));\n }\n\n /**\n * Set whether or not the month/year picker should be expanded\n * @param {string|boolean|null} val expanded attribute value\n */\n set expanded(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n if (boolVal) {\n this.setAttribute(attributes.EXPANDED, `${boolVal}`);\n this.expandableArea?.setAttribute(attributes.EXPANDED, `${boolVal}`);\n this.toolbar?.querySelector<IdsToolbarSection>('.monthview-nav')?.setAttribute(attributes.INACTIVE, 'true');\n } else {\n this.removeAttribute(attributes.EXPANDED);\n this.expandableArea?.removeAttribute(attributes.EXPANDED);\n this.toolbar?.querySelector<IdsToolbarSection>('.monthview-nav')?.removeAttribute(attributes.INACTIVE);\n }\n }\n\n onDisableSettingsChange(val: IdsDisableSettings) {\n if (this.monthView) this.monthView.disableSettings = val;\n }\n\n onLegendSettingsChange(val: IdsLegendSettings) {\n if (this.monthView) this.monthView.legend = val;\n }\n\n /**\n * Defer to the inner IdsMonthView for getting `rangeSettings` if possible\n * @returns {IdsRangeSettings} month view range settings\n */\n getRangeSettings(): IdsRangeSettings {\n return this.monthView?.rangeSettings || this.rangeSettings;\n }\n\n /**\n * Defer to the inner IdsMonthView for storing `rangeSettings` if possible\n * @param {IdsRangeSettings} val incoming range settings\n */\n setRangeSettings(val: IdsRangeSettings) {\n this.monthView!.rangeSettings = val;\n }\n\n onRangeSettingsChange(val: IdsRangeSettings) {\n if (this.monthView) {\n const btnApply = this.applyBtnEl;\n this.setRangeSettings(val);\n\n if (val?.start && val?.end) {\n const formattedStart = this.localeAPI.formatDate(this.setTime(val.start), { pattern: this.format });\n const formattedEnd = this.localeAPI.formatDate(this.setTime(val.end), { pattern: this.format });\n this.value = `${formattedStart}${val.separator}${formattedEnd}`;\n if (!val.selectWeek) btnApply?.removeAttribute(attributes.DISABLED);\n } else {\n if (val?.separator && this.value.indexOf(val?.separator) > -1) {\n this.value = removeDateRange(this.value, val?.separator);\n }\n if (!this.showApply) btnApply?.setAttribute(attributes.DISABLED, 'true');\n }\n\n if (val?.selectWeek) {\n btnApply?.setAttribute(attributes.HIDDEN, 'true');\n }\n }\n }\n\n /**\n * Minute Interval attribute\n * @returns {number} minuteInterval value\n */\n get minuteInterval(): number {\n return stringToNumber(this.getAttribute(attributes.MINUTE_INTERVAL));\n }\n\n /**\n * Set interval in minutes dropdown\n * @param {string|number|null} val minute-interval attribute value\n */\n set minuteInterval(val: string | number | null) {\n const numberVal = stringToNumber(val);\n\n if (numberVal) {\n this.setAttribute(attributes.MINUTE_INTERVAL, `${numberVal}`);\n this.timepicker?.setAttribute(attributes.MINUTE_INTERVAL, `${numberVal}`);\n } else {\n this.removeAttribute(attributes.MINUTE_INTERVAL);\n this.timepicker?.removeAttribute(attributes.MINUTE_INTERVAL);\n }\n }\n\n /**\n * second-interval attribute\n * @returns {number} secondInterval value\n */\n get secondInterval(): number {\n return stringToNumber(this.getAttribute(attributes.SECOND_INTERVAL));\n }\n\n /**\n * Set interval in seconds dropdown\n * @param {string|number|null} val second-interval attribute value\n */\n set secondInterval(val: string | number | null) {\n const numberVal = stringToNumber(val);\n\n if (numberVal) {\n this.setAttribute(attributes.SECOND_INTERVAL, `${numberVal}`);\n this.timepicker?.setAttribute(attributes.SECOND_INTERVAL, `${numberVal}`);\n } else {\n this.removeAttribute(attributes.SECOND_INTERVAL);\n this.timepicker?.removeAttribute(attributes.SECOND_INTERVAL);\n }\n }\n\n /**\n * show-clear attribute\n * @returns {boolean} showClear param converted to boolean from attribute value\n */\n get showClear(): boolean {\n return stringToBool(this.getAttribute(attributes.SHOW_CLEAR));\n }\n\n /**\n * Set whether or not to show clear button in the calendar popup\n * @param {string|boolean|null} val show-clear attribute value\n */\n set showClear(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n const btn = this.container?.querySelector('.popup-btn-clear');\n\n if (boolVal) {\n this.setAttribute(attributes.SHOW_CLEAR, boolVal.toString());\n btn?.removeAttribute(attributes.HIDDEN);\n } else {\n this.removeAttribute(attributes.SHOW_CLEAR);\n btn?.setAttribute(attributes.HIDDEN, (!boolVal).toString());\n }\n }\n\n /**\n * show-cancel attribute\n * @returns {boolean} showCancel param converted to boolean from attribute value\n */\n get showCancel(): boolean {\n return stringToBool(this.getAttribute(attributes.SHOW_CANCEL));\n }\n\n /**\n * Set whether or not to show cancel button when the picker is expanded\n * @param {string|boolean|null} val show-cancel attribute value\n */\n set showCancel(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n const btn = this.container?.querySelector('.popup-btn-cancel');\n\n if (boolVal) {\n this.setAttribute(attributes.SHOW_CANCEL, String(boolVal));\n btn?.removeAttribute(attributes.HIDDEN);\n } else {\n this.removeAttribute(attributes.SHOW_CANCEL);\n btn?.setAttribute(attributes.HIDDEN, (!boolVal).toString());\n }\n }\n\n /**\n * show-apply attribute\n * @returns {boolean} showCancel param converted to boolean from attribute value\n */\n get showApply(): boolean {\n return stringToBool(this.getAttribute(attributes.SHOW_APPLY));\n }\n\n /**\n * Set whether or not to show cancel button when the picker is expanded\n * @param {string|boolean|null} val show-cancel attribute value\n */\n set showApply(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n const btn = this.container?.querySelector('.popup-btn-apply');\n\n if (boolVal) {\n this.setAttribute(attributes.SHOW_APPLY, String(boolVal));\n btn?.removeAttribute(attributes.HIDDEN);\n this.buttonSet?.removeAttribute(attributes.HIDDEN);\n this.buttonSet?.classList.remove('hidden');\n if (this.monthView) this.monthView.showApply = true;\n } else {\n this.removeAttribute(attributes.SHOW_APPLY);\n btn?.setAttribute(attributes.HIDDEN, (!boolVal).toString());\n this.buttonSet?.setAttribute(attributes.HIDDEN, (!boolVal).toString());\n this.buttonSet?.classList.add('hidden');\n if (this.monthView) this.monthView.showApply = false;\n }\n }\n\n /**\n * show-picklist-year attribute, default is true\n * @returns {boolean} showPicklistYear param converted to boolean from attribute value\n */\n get showPicklistYear(): boolean {\n const attrVal = this.getAttribute(attributes.SHOW_PICKLIST_YEAR);\n\n if (attrVal) {\n return stringToBool(attrVal);\n }\n\n return true;\n }\n\n /**\n * Whether or not to show a list of years in the picklist\n * @param {string | boolean | null} val value to be set as show-picklist-year attribute converted to boolean\n */\n set showPicklistYear(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n\n this.setAttribute(attributes.SHOW_PICKLIST_YEAR, String(boolVal));\n this.monthYearPicklist?.setAttribute(attributes.SHOW_PICKLIST_YEAR, String(boolVal));\n }\n\n /**\n * show-picklist-month attribute, default is true\n * @returns {boolean} showPicklistMonth param converted to boolean from attribute value\n */\n get showPicklistMonth(): boolean {\n const attrVal = this.getAttribute(attributes.SHOW_PICKLIST_MONTH);\n\n if (attrVal) {\n return stringToBool(attrVal);\n }\n\n return true;\n }\n\n /**\n * Whether or not to show a list of months in the picklist\n * @param {string | boolean | null} val value to be set as show-picklist-month attribute converted to boolean\n */\n set showPicklistMonth(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n\n this.setAttribute(attributes.SHOW_PICKLIST_MONTH, String(boolVal));\n this.monthYearPicklist?.setAttribute(attributes.SHOW_PICKLIST_MONTH, String(boolVal));\n }\n\n /**\n * show-picklist-week attribute\n * @returns {boolean} showPicklistWeek param converted to boolean from attribute value\n */\n get showPicklistWeek(): boolean {\n return stringToBool(this.getAttribute(attributes.SHOW_PICKLIST_WEEK));\n }\n\n /**\n * Whether or not to show week numbers in the picklist\n * @param {string | boolean | null} val value to be set as show-picklist-week attribute converted to boolean\n */\n set showPicklistWeek(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n\n if (boolVal) {\n this.setAttribute(attributes.SHOW_PICKLIST_WEEK, String(boolVal));\n this.monthYearPicklist?.setAttribute(attributes.SHOW_PICKLIST_WEEK, String(boolVal));\n } else {\n this.removeAttribute(attributes.SHOW_PICKLIST_WEEK);\n this.monthYearPicklist?.removeAttribute(attributes.SHOW_PICKLIST_WEEK);\n }\n }\n\n /**\n * use-current-time attribute\n * @returns {number} useCurrentTime param converted to boolean from attribute value\n */\n get useCurrentTime(): boolean {\n return stringToBool(this.getAttribute(attributes.USE_CURRENT_TIME));\n }\n\n /**\n * Set whether or not to show current time in the time picker\n * @param {string|boolean|null} val useCurrentTime param value\n */\n set useCurrentTime(val: string | boolean | null) {\n const boolVal = stringToBool(val);\n\n if (boolVal) {\n this.setAttribute(attributes.USE_CURRENT_TIME, String(boolVal));\n this.timepicker?.setAttribute(attributes.USE_CURRENT_TIME, String(boolVal));\n } else {\n this.removeAttribute(attributes.USE_CURRENT_TIME);\n this.timepicker?.removeAttribute(attributes.USE_CURRENT_TIME);\n }\n }\n\n onUseRangeChange(val: boolean) {\n const btnApply = this.applyBtnEl;\n if (val) {\n this.monthView?.setAttribute(attributes.USE_RANGE, String(val));\n btnApply?.removeAttribute(attributes.HIDDEN);\n\n if (this.monthView) {\n if (this.monthView.rangeSettings.start === undefined && this.monthView.rangeSettings.end === undefined) {\n btnApply?.setAttribute(attributes.DISABLED, 'true');\n }\n } else {\n btnApply?.setAttribute(attributes.DISABLED, 'true');\n }\n } else {\n this.monthView?.removeAttribute(attributes.USE_RANGE);\n if (!this.expanded && !this.showApply) btnApply?.setAttribute(attributes.HIDDEN, 'true');\n btnApply?.removeAttribute(attributes.DISABLED);\n }\n }\n\n /**\n * value attribute\n * @returns {string} value param\n */\n get value(): string {\n return this.getAttribute(attributes.VALUE) || '';\n }\n\n /**\n * Set Date Picker Popup's stored value. Should parse a date from the value.\n * @param {string|null} val value param\n */\n set value(val: string | null) {\n if (!val) {\n this.dateValue = null;\n this.removeAttribute(attributes.VALUE);\n return;\n }\n\n let newDate = this.getDateValue(val);\n\n if (this.useRange) {\n const rangeSettings = this.getRangeSettings();\n const separator = rangeSettings.separator;\n const [start] = val.split(separator);\n newDate = this.getDateValue(start.trim());\n }\n\n const setDateAttributes = () => {\n this.setAttribute(attributes.VALUE, val);\n this.timepicker?.setAttribute(attributes.VALUE, val);\n };\n\n if (newDate && isValidDate(newDate)) {\n this.dateValue = newDate;\n\n // must set first before the sync\n setDateAttributes();\n this.syncDateAttributes(newDate);\n } else {\n setDateAttributes();\n }\n }\n\n private onPicklistExpand() {\n const btnApply = this.applyBtnEl;\n const btnCancel = this.cancelBtnEl;\n const btnClear = this.clearBtnEl;\n\n this.monthYearPicklist?.activatePicklist();\n btnApply?.removeAttribute(attributes.HIDDEN);\n btnApply?.removeAttribute(attributes.DISABLED);\n\n if (this.showCancel) {\n btnCancel?.removeAttribute(attributes.HIDDEN);\n }\n\n if (this.showClear) {\n btnClear?.setAttribute(attributes.HIDDEN, 'true');\n }\n\n // temporariy fix need to call the place function twice\n this.popup?.place(true);\n this.popup?.place(true);\n }\n\n private onPicklistCollapse() {\n if (this.monthYearPicklist?.deactivatePicklist) this.monthYearPicklist?.deactivatePicklist();\n this.updateActionButtonStateOnShow();\n\n if (this.showClear) {\n this.clearBtnEl?.removeAttribute(attributes.HIDDEN);\n }\n\n // temporariy fix need to call the place function twice\n this.popup?.place(true);\n this.popup?.place(true);\n }\n\n /**\n * Checks internal component refs based on settings\n */\n configureComponents() {\n // ensure trigger field is set as target when popup is a datagrid filter\n const popupTriggerField = this?.parentElement?.querySelector<IdsElement>('ids-trigger-field');\n if (!this.target && this.getAttribute('data-filter-type') === 'date' && popupTriggerField) {\n this.target = popupTriggerField;\n }\n\n this.expandableArea = this.container?.querySelector<IdsExpandableArea>('ids-expandable-area');\n this.monthView = this.container?.querySelector<IdsMonthView>('ids-month-view');\n this.monthYearPicklist = this.container?.querySelector<IdsMonthYearPicklist>('ids-month-year-picklist');\n\n if (this.hasTime()) {\n this.timepicker = this.container?.querySelector<IdsTimePickerPopup>('ids-time-picker-popup');\n if (this.useCurrentTime) this.setCurrentTime();\n // Initialize time picker with default values if no value is set\n if (!this.value && this.timepicker) {\n this.timepicker.syncTimeAttributes(null);\n }\n } else {\n this.timepicker?.remove();\n this.timepicker = null;\n }\n\n this.toolbar = this.container?.querySelector<IdsToolbar>('ids-toolbar');\n this.buttonSet = this.container?.querySelector<IdsButtonGroup>('ids-button-group');\n }\n\n /**\n * Defers `activeDate` to the inner MonthView's `activeDate` attribute,\n * otherwise fallback to the one generated by this one's date props\n * @returns {Date} activeDate from the inner monthView component\n */\n getActiveDate() {\n return this.monthView?.activeDate || this.activeDate;\n }\n\n /**\n * Expanded/Collapsed event for Month/Year Picklist\n */\n private attachExpandedListener() {\n if (this.expandableArea) {\n this.offEvent('afterexpand');\n this.onEvent('afterexpand', this.expandableArea, () => {\n this.onPicklistExpand();\n });\n\n this.offEvent('beforecollapse');\n this.onEvent('beforecollapse', this.expandableArea, () => {\n this.onPicklistCollapse();\n });\n }\n }\n\n private attachEventListeners() {\n // Selects day from the monthView (after user input)\n this.offEvent('dayselected.date-picker-calendar');\n this.onEvent('dayselected.date-picker-calendar', this.monthView, (e: CustomEvent) => {\n this.handleDaySelectedEvent(e);\n e.stopPropagation();\n });\n\n this.offEvent('datechange');\n this.onEvent('datechange', this.monthView, (e: CustomEvent) => {\n e.stopPropagation();\n this.updateMonthYearPickerTriggerDisplay();\n });\n\n // Handles input from header buttons\n this.offEvent('click.date-picker-header');\n if (this.toolbar) {\n this.onEvent('click.date-picker-header', this.toolbar, (e: Event) => {\n const target = e.target as HTMLElement;\n\n const dropdownBtn: IdsToggleButton | null = target.closest('.dropdown-btn');\n if (dropdownBtn) {\n if (!dropdownBtn.disabled) {\n this.expanded = !this.expanded;\n }\n return;\n }\n\n const navBtn: IdsButton | null = target.closest('.btn-previous, .btn-next, .btn-today');\n if (navBtn) {\n if (!navBtn.disabled) {\n if (navBtn.classList.contains('btn-next')) {\n this.monthView?.changeDate('next-month');\n } else if (navBtn.classList.contains('btn-previous')) {\n this.monthView?.changeDate('previous-month');\n } else if (navBtn.classList.contains('btn-today')) {\n this.handleTodayEvent();\n }\n }\n }\n });\n }\n\n // Handles input from footer buttons\n this.offEvent('click.date-picker-footer');\n this.onEvent('click.date-picker-footer', this.container?.querySelector('.popup-footer'), async (e: MouseEvent) => {\n const target = e.target as HTMLElement;\n if (!target) return;\n\n e.stopPropagation();\n\n if (target.closest('.popup-btn-apply')) {\n this.handleApplyEvent(e);\n return;\n }\n\n if (target.closest('.popup-btn-clear')) {\n this.clear();\n await this.hide(true);\n return;\n }\n\n if (target.closest('.popup-btn-cancel')) {\n this.expanded = false;\n await this.hide(true);\n }\n });\n\n // Input value change triggers component value change\n if (this.target) {\n this.offEvent('change.date-picker-input');\n this.onEvent('change.date-picker-input', this.target, (e: any) => {\n this.setAttribute(attributes.VALUE, e.detail.value);\n });\n }\n\n // Time picker value change triggers input value change\n if (this.hasTime()) {\n this.offEvent('timeselected.date-picker-time');\n this.onEvent('timeselected.date-picker-time', this.timepicker, () => {\n this.value = this.localeAPI.formatDate(\n this.setTime(this.getActiveDate()),\n { pattern: this.format }\n );\n this.triggerSelectedEvent();\n });\n }\n\n // Window resize handler\n this.offEvent('resize.date-picker-window');\n this.onEvent('resize.date-picker-window', window, () => {\n if (this.visible && this.popup) {\n this.#handleDatePickerPositioning();\n }\n });\n }\n\n private removeEventListeners() {\n this.offEvent('dayselected.date-picker-calendar');\n this.offEvent('datechange');\n this.offEvent('click.date-picker-header');\n this.offEvent('click.date-picker-footer');\n this.offEvent('change.date-picker-input');\n this.offEvent('resize.date-picker-window', window);\n }\n\n /**\n * Click to apply button event handler\n * @param {MouseEvent} e click event\n */\n private handleApplyEvent(e: MouseEvent): void {\n e.stopPropagation();\n if (this.expanded) {\n this.captureValueFromPicklist();\n this.updateMonthYearPickerTriggerDisplay();\n this.expanded = false;\n return;\n }\n\n const rangeSettings = this.getRangeSettings();\n if (this.useRange) {\n if (rangeSettings.end || (rangeSettings.start && !rangeSettings.end)) {\n if (rangeSettings.minDays && (rangeSettings.start === rangeSettings.end)) {\n rangeSettings.start = subtractDate(rangeSettings.start, rangeSettings.minDays, 'days');\n this.setRangeSettings(rangeSettings);\n }\n\n this.value = [\n this.localeAPI.formatDate(this.setTime(rangeSettings.start), { pattern: this.format }),\n rangeSettings.separator,\n this.localeAPI.formatDate(\n this.setTime(rangeSettings.end ?? this.getActiveDate()),\n { pattern: this.format }\n ),\n ].filter(Boolean).join('');\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide(true);\n this.triggerSelectedEvent();\n } else {\n this.value = this.localeAPI.formatDate(\n this.setTime(rangeSettings.start ?? this.getActiveDate()),\n { pattern: this.format }\n );\n rangeSettings.start = this.getActiveDate();\n this.setRangeSettings(rangeSettings);\n }\n\n return;\n }\n\n if (this.target) {\n this.value = this.localeAPI.formatDate(\n this.setTime(this.getActiveDate()),\n { pattern: this.format }\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide(true);\n this.triggerSelectedEvent();\n }\n\n /**\n * Clears the contents of the Date Picker Popup and its corresponding target, if applicable\n * @returns {void}\n */\n clear() {\n this.expanded = false;\n this.resetRangeSettings();\n this.value = '';\n this.triggerSelectedEvent();\n }\n\n /**\n * Selected event handler\n * @param {IdsDayselectedEvent} e event from the calendar day selection\n */\n private handleDaySelectedEvent(e: CustomEvent): void {\n const currentDate = this.dateValue;\n\n // Clear action\n // Deselect the selected date by clicking to the selected date\n if (currentDate instanceof Date && isValidDate(currentDate) && currentDate.getTime() === e.detail.date.getTime()) {\n this.value = '';\n this.monthView?.selectDay();\n this.triggerSelectedEvent(e);\n\n return;\n }\n\n if (this.useRange) {\n const rangeSettings = this.getRangeSettings();\n if (rangeSettings.selectWeek) {\n const fixedDate = this.setTime(e.detail.rangeStart as Date);\n this.value = [\n this.localeAPI.formatDate(fixedDate, { pattern: this.format }),\n rangeSettings.separator,\n e.detail.rangeEnd && this.localeAPI.formatDate(this.setTime(e.detail.rangeEnd), { pattern: this.format })\n ].filter(Boolean).join('');\n\n e.detail.date = fixedDate;\n e.detail.value = this.value;\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide(true);\n this.triggerSelectedEvent(e);\n\n return;\n }\n\n e.stopPropagation();\n const btnApply = this.applyBtnEl;\n if (e.detail.rangeStart && e.detail.rangeEnd) {\n btnApply?.removeAttribute(attributes.DISABLED);\n } else {\n btnApply?.setAttribute(attributes.DISABLED, 'true');\n }\n } else {\n const fixedDate = this.setTime(e.detail.date);\n this.value = this.localeAPI.formatDate(\n fixedDate,\n { pattern: this.format }\n );\n this.year = e.detail.date.getFullYear();\n this.month = e.detail.date.getMonth();\n this.day = e.detail.date.getDate();\n\n e.detail.date = fixedDate;\n e.detail.value = this.value;\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide(true);\n this.triggerSelectedEvent(e);\n }\n }\n\n /**\n * Click to Today button event handler\n * @returns {void}\n */\n handleTodayEvent(): void {\n if (!this.monthView) return;\n this.monthView.changeDate('today');\n\n // If range is enabled just set the start date to today\n if (this.useRange) {\n const rangeSettings = this.getRangeSettings();\n rangeSettings.start = this.getActiveDate();\n rangeSettings.end = null;\n this.setRangeSettings(rangeSettings);\n\n return;\n }\n\n this.value = this.localeAPI.formatDate(\n this.setTime(this.getActiveDate()),\n { pattern: this.format }\n );\n this.triggerSelectedEvent();\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.hide(true);\n }\n\n /**\n * Gets the value from the selected items in the Month/Year Picklist\n * and sets them in the Date Picker Popup\n * @returns {void}\n */\n private captureValueFromPicklist() {\n if (!this.monthYearPicklist) return;\n const { month, year } = this.monthYearPicklist;\n this.year = year;\n this.month = month;\n this.value = this.getFormattedDate(this.activeDate);\n }\n\n /**\n * Defines if the format has hours/minutes/seconds pattern to show time picker\n * @returns {boolean} whether or not to show time picker\n */\n hasTime(): boolean {\n if (!this.format) return false;\n return this.format.includes('h') || this.format.includes('m') || this.format.includes('s');\n }\n\n /**\n * Helper to set the date with time from time picker\n * @param {any} val date to add time values\n * @returns {Date} date with time values\n */\n private setTime(val: any): Date {\n const date = isValidDate(val) ? val : new Date(val);\n const timePicker = this.container?.querySelector<IdsTimePickerPopup>('ids-time-picker-popup');\n\n if (!this.hasTime() || !timePicker) return date;\n\n const hours: number = timePicker.hours ?? 0;\n const minutes: number = timePicker.minutes ?? 0;\n const seconds: number = timePicker.seconds ?? 0;\n const period: string = timePicker.period ?? '';\n const dayPeriodIndex = this.localeAPI?.calendar().dayPeriods?.indexOf(period);\n\n date.setHours(hoursTo24(hours, dayPeriodIndex), minutes, seconds);\n\n return date;\n }\n\n /**\n * Triggers the same `dayselected` event on the Popup's target element that came from the internal IdsMonthView\n * @param {IdsDayselectedEvent} [e] optional event handler to pass arguments\n * @returns {void}\n */\n private triggerSelectedEvent(e?: IdsDayselectedEvent): void {\n let args: any;\n if (e) args = e;\n else {\n const rangeSettings = this.getRangeSettings();\n args = {\n bubbles: true,\n detail: {\n elem: this,\n date: this.getActiveDate(),\n useRange: this.useRange,\n rangeStart: this.useRange && rangeSettings.start ? new Date(rangeSettings.start as string) : null,\n rangeEnd: this.useRange && rangeSettings.end ? new Date(rangeSettings.end as string) : null,\n value: this.value\n }\n };\n }\n\n if (this.target) {\n this.triggerEvent('dayselected', this.target, args);\n }\n }\n\n /**\n * Renders or removes an embedded IdsTimePicker component\n */\n private updateTimepickerDisplay() {\n const hasTime = this.hasTime();\n this.container?.classList.toggle('has-time', hasTime);\n if (hasTime) {\n if (!this.timepicker) {\n this.monthView?.insertAdjacentHTML('afterend', this.timepickerTemplate());\n this.timepicker = this.container?.querySelector('ids-time-picker-popup');\n }\n } else {\n this.timepicker?.remove();\n this.timepicker = null;\n }\n }\n\n /**\n * Takes a string containing a date, or an actual Date object, and syncs its values\n * to the correct properties provided by IdsDateAttributeMixin\n * @param {string | Date} val incoming date string/object\n */\n public syncDateAttributes(val: string | Date) {\n let usableValue = val;\n const rangeSettings = this.getRangeSettings();\n\n if (typeof val === 'string' && this.useRange && rangeSettings.separator) {\n usableValue = removeDateRange(val, rangeSettings.separator);\n }\n\n const date = new Date(usableValue);\n const month = date.getMonth();\n const year = date.getFullYear();\n const day = date.getDate();\n\n if (this.year !== year) this.year = year;\n if (this.month !== month) this.month = month;\n if (this.day !== day) this.day = day;\n\n if (this.hasTime()) {\n if (this.timepicker) this.timepicker.value = this.value;\n }\n\n if (this.monthView) {\n if (typeof this.monthView.selectDayFromValue === 'function') {\n this.monthView.selectDayFromValue(`${usableValue}`);\n }\n }\n\n this.updateMonthYearPickerTriggerDisplay();\n }\n\n private setCurrentTime() {\n if (this.timepicker) {\n this.timepicker.value = this.localeAPI.formatDate(new Date(), { pattern: this.format });\n }\n }\n\n /**\n * Helper to format datepicker text in the toolbar\n * @param {IdsLocale} [locale] an optional, provided IdsLocale object\n * @param {Date} [date] an optional, provided Date object (defaults to `this.getActiveDate()`)\n * @returns {string} locale formatted month year\n */\n private formatMonthText(locale?: IdsLocale, date?: Date): string {\n const targetLocale = locale || this.localeAPI;\n const targetDate = date || this.getActiveDate();\n\n if (!targetLocale) return '';\n\n const monthKeys = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n const month = targetLocale?.translate(`MonthWide${monthKeys[targetDate.getMonth()]}`);\n\n return `${month} ${targetDate.getFullYear()}`;\n }\n\n /**\n * Updates the text contents of the Month/Year Picker's trigger button to reflect current state\n * @param {IdsLocale} [locale] incoming IdsLocale object, if applicable\n * @param {Date} [date] an optional, provided Date object (defaults to `this.getActiveDate()`)\n * @returns {void}\n */\n updateMonthYearPickerTriggerDisplay(locale?: IdsLocale, date?: Date) {\n const formattedDate = this.formatMonthText(locale, date) || '';\n const toggleBtnText = this.container?.querySelector<IdsToggleButton>('.dropdown-btn-text');\n\n if (toggleBtnText) {\n toggleBtnText.innerText = formattedDate;\n } else {\n const toggleBtn = this.container?.querySelector<IdsToggleButton>('ids-toggle-button');\n toggleBtn?.insertAdjacentHTML('afterbegin', `<ids-text ids-text class=\"dropdown-btn-text\" font-size=\"20\" aria-live=\"polite\">${formattedDate}<ids-text>`);\n }\n }\n\n /**\n * Runs when this picker component hides\n * @returns {void}\n */\n onHide() {\n this.container?.setAttribute(htmlAttributes.TABINDEX, '-1');\n this.expanded = false;\n }\n\n /**\n * Runs when this picker component shows\n * @returns {void}\n */\n onShow(): void {\n this.attachEventListeners();\n this.updateActionButtonStateOnShow();\n this.container?.removeAttribute(htmlAttributes.TABINDEX);\n // Update time if using current time\n if (this.hasTime() && this.useCurrentTime && !this.value) this.setCurrentTime();\n this.#handleDatePickerPositioning();\n this.updateMonthYearPickerTriggerDisplay();\n this.focus();\n }\n\n /**\n * Updates the Popup's Modal button states\n */\n private updateActionButtonStateOnShow() {\n const btnApply = this.applyBtnEl;\n const rangeSettings = this.getRangeSettings();\n const hasPartialRangeSelected = !(rangeSettings.start && rangeSettings.end);\n\n if (!this.useRange) {\n if (btnApply && !this.showApply) {\n btnApply.setAttribute(attributes.HIDDEN, 'true');\n btnApply.setAttribute(attributes.DISABLED, `${hasPartialRangeSelected}`);\n }\n if (this.showCancel) {\n const btnCancel = this.cancelBtnEl;\n btnCancel?.removeAttribute(attributes.HIDDEN);\n }\n } else if (!rangeSettings.selectWeek) {\n btnApply?.removeAttribute(attributes.HIDDEN);\n btnApply?.setAttribute(attributes.DISABLED, `${hasPartialRangeSelected}`);\n } else {\n btnApply?.setAttribute(attributes.HIDDEN, 'true');\n }\n }\n\n /**\n * Passes through to IdsMonthView to check if a specified date is disabled (not available for choosing)\n * @param {Date} date the date to check\n * @returns {boolean} wheter or not the date is disabled\n */\n isDisabledByDate(date: Date) {\n return this.monthView?.isDisabledByDate(date);\n }\n\n /**\n * Passes focus to the inner MonthView component\n */\n focus() {\n if (this.expanded) {\n this.monthYearPicklist?.focus();\n } else {\n this.monthView?.focus();\n }\n }\n\n configurePopup(setX: boolean = true) {\n const isInActionPanel = getClosest(this, 'ids-action-panel');\n if (this.popup && (this.positionStyle === 'fixed' || isInActionPanel)) {\n const modalParent = getClosest(this.popup, 'ids-action-panel, ids-modal');\n this.popup.setAttribute(attributes.POSITION_STYLE, 'fixed');\n const input = (this.parentNode?.querySelector('ids-trigger-field')?.shadowRoot?.querySelector('.field-container') as HTMLDivElement);\n let y = (input?.getBoundingClientRect().bottom || 0) - 1;\n const x = setX ? (input?.getBoundingClientRect().x || 0) : 0;\n\n this.popup.onPlace = (popupRect: any, domElement: HTMLElement) => {\n if (modalParent) {\n popupRect.x = 'unset';\n domElement.style.marginLeft = 'unset';\n domElement.style.marginRight = 'unset';\n domElement.style.marginTop = 'unset';\n const popupWidth = (this.popup as HTMLElement).offsetWidth;\n const popupHeight = (this.popup as HTMLElement).offsetHeight;\n\n const triggerRect = this.triggerElem!.getBoundingClientRect();\n const modalRect = modalParent.container?.querySelector('.ids-modal-container')?.getBoundingClientRect() || modalParent.getBoundingClientRect();\n const arrowClassList = this.popup!.arrowEl!.classList[1];\n const scrollTop = modalParent.container?.querySelector('.ids-modal-content')?.scrollTop || 0;\n let targetWidth = (this.popup?.alignTarget as HTMLElement)?.offsetWidth;\n const parentRect = this.parentElement?.getBoundingClientRect();\n\n // Check if this is a data grid filter\n const isDataGridFilter = this.getAttribute(attributes.DATA_FILTER_TYPE) === 'date';\n if (isDataGridFilter) {\n const spaceRight = modalRect.right - triggerRect.right;\n const spaceLeft = triggerRect.left - modalRect.left;\n\n if (spaceRight < popupWidth && spaceLeft < popupWidth) {\n popupRect.x = (modalRect.width - popupWidth) / 2;\n popupRect.y = (triggerRect.bottom - modalRect.y) + 3;\n } else if (spaceRight < popupWidth) {\n popupRect.x = (triggerRect.right - modalRect.x) - popupWidth + 1;\n popupRect.y = (triggerRect.bottom - modalRect.y) + 3;\n } else {\n popupRect.x = (triggerRect.x - modalRect.x);\n popupRect.y = (triggerRect.bottom - modalRect.y) + 3;\n }\n return popupRect;\n }\n\n switch (arrowClassList) {\n case 'left':\n popupRect.x = ((triggerRect.x || 0) - modalRect.x) - popupWidth;\n popupRect.x -= 7;\n break;\n case 'top':\n popupRect.y = ((triggerRect.y || 0) - modalRect.y) - popupHeight;\n popupRect.y -= 7;\n break;\n case 'right':\n popupRect.x = ((triggerRect.right || 0) - modalRect.x);\n popupRect.x += 7;\n break;\n default:\n if (scrollTop && scrollTop > 0) domElement.style.marginTop = `-${17 + scrollTop}px`;\n else domElement.style.marginTop = '-10px';\n\n // Adjust to wider field sizes and datagrid sizes\n if (this.popup?.alignTarget?.nodeName === 'IDS-TRIGGER-BUTTON') targetWidth = (this.popup?.alignTarget.parentElement as HTMLElement)?.offsetWidth;\n\n if (targetWidth > popupWidth && !this.localeAPI.isRTL()) {\n domElement.style.marginLeft = `${targetWidth - popupWidth}px`;\n }\n if (targetWidth > popupWidth && this.localeAPI.isRTL()) {\n domElement.style.marginRight = `${targetWidth - popupWidth + 4}px`;\n const arrowLeft = parseInt((domElement as any)?.arrowEl?.style.marginLeft);\n requestAnimationFrame(() => {\n (domElement as any)!.arrowEl!.style.marginLeft = `${arrowLeft + 6}px`;\n });\n }\n if ((parentRect?.left || 0) + popupWidth > (window.visualViewport?.width || 0)) {\n popupRect.x = (window.visualViewport?.width || 0) - popupWidth;\n } else {\n popupRect.x = 'unset';\n }\n popupRect.y = 'unset';\n }\n return popupRect;\n }\n popupRect.y = y;\n popupRect.x = x;\n\n // Flip it up\n if (y + Number(this.popup?.offsetHeight)\n > Number(document.body?.scrollHeight)) {\n y = (input?.getBoundingClientRect().top || 0) - Number(this.popup?.offsetHeight) + 1;\n popupRect.y = y;\n this.popup?.container?.classList.add('flipped');\n }\n return popupRect;\n };\n\n this.popup.setPosition(x, y, false, true);\n }\n }\n\n /**\n * Handle viewport positioning for the date picker popup\n * @private\n */\n #handleDatePickerPositioning(): void {\n if (!this.popup || !this.popup.alignTarget) return;\n\n const contentWrapper = this.popup.wrapper;\n const viewportWidth = window.visualViewport?.width || window.innerWidth;\n const viewportHeight = window.innerHeight;\n const initialPopupRect = this.popup.getBoundingClientRect();\n const targetRect = this.popup.alignTarget.getBoundingClientRect();\n const spaceRight = viewportWidth - targetRect.right;\n const spaceBottom = viewportHeight - targetRect.bottom;\n const spaceTop = targetRect.top;\n const fitsRight = spaceRight >= initialPopupRect.width;\n const fitsBottom = spaceBottom >= initialPopupRect.height;\n const fitsTop = spaceTop >= initialPopupRect.height;\n\n if (!fitsRight) {\n let spaceValue = spaceBottom;\n let fitValue = fitsBottom;\n\n if (spaceBottom >= spaceTop) {\n this.popup.setAttribute(attributes.ALIGN, attributes.BOTTOM);\n this.popup.setAttribute(attributes.ARROW, attributes.BOTTOM);\n } else {\n this.popup.setAttribute(attributes.ALIGN, attributes.TOP);\n this.popup.setAttribute(attributes.ARROW, attributes.TOP);\n spaceValue = spaceTop;\n fitValue = fitsTop;\n }\n\n if (!fitValue && contentWrapper) {\n const maxHeight = Math.max(spaceValue - 20, 200);\n contentWrapper.style.maxHeight = `${maxHeight}px`;\n contentWrapper.style.overflowY = 'auto';\n }\n }\n }\n\n set positionStyle(val: 'fixed' | 'absolute' | null) {\n this.setAttribute(attributes.POSITION_STYLE, val === 'fixed' ? 'fixed' : 'absolute');\n this.configurePopup(false);\n }\n\n get positionStyle(): 'fixed' | 'absolute' {\n return this.getAttribute(attributes.POSITION_STYLE) === 'fixed' ? 'fixed' : 'absolute';\n }\n\n set showWeekNumbers(val: boolean | null) {\n if (stringToBool(val)) {\n this.setAttribute(attributes.SHOW_WEEK_NUMBERS, '');\n } else {\n this.removeAttribute(attributes.SHOW_WEEK_NUMBERS);\n }\n }\n\n get showWeekNumbers(): boolean {\n return stringToBool(this.getAttribute(attributes.SHOW_WEEK_NUMBERS));\n }\n\n /**\n * Resets the date picker calendar view to today's date\n * Used when the input is cleared to ensure the popup shows the current month\n * @returns {void}\n */\n resetPopupToToday() {\n if (!this.monthView) {\n return;\n }\n\n this.monthView.changeDate('today');\n }\n}\n\nexport default IdsDatePickerPopup;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAO,gCAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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