@sapudex/web-components 0.231.12 → 0.231.13

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.
@@ -78,7 +78,6 @@ let UDExDatePicker = UDExDatePicker_1 = class UDExDatePicker extends DateCompone
78
78
  this.responsivePopover && this.responsivePopover.onClose();
79
79
  }
80
80
  async _openRespPopover() {
81
- this._dropdownTrigger.active = true;
82
81
  this.responsivePopover = await this._getResponsePopover();
83
82
  this.responsivePopover?.onOpen(this._dropdownTrigger._inputHolder);
84
83
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../src/DatePicker.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,iBAAiB,MAAM,8CAA8C,CAAC;AAC7E,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,2BAA2B;AAC3B,OAAO,QAAoD,MAAM,qCAAqC,CAAC;AACvG,OAAO,qBAAqB,MAAM,yCAAyC,CAAC;AAC5E,OAAO,iCAAiC,CAAC;AACzC,OAAO,gDAAgD,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAE/F,WAAW;AACX,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,iBAAiB,MAAM,wDAAwD,CAAC;AAEvF,SAAS;AACT,OAAO,aAAa,MAAM,mCAAmC,CAAC;AAC9D,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAC3C,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAC/E,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,UAAU,MAA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;QACvB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,kBAAkB;QAC5B,kBAAkB,EAAE,iBAAiB;QACrC,gBAAgB,EAAE,CAAC,oBAAoB,CAAC;QACxC,YAAY,EAAE,CAAC,qBAAqB,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,CAAC;KAChG,CAAC;IACF;;;;;;;OAOG;;IACF,KAAK,CAAuC,kBAAkB,EAAE;QAC/D,MAAM,EAAE;YACN;;eAEG;YACH,aAAa,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;YAC9B;;eAEG;YACH,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;YAE/B,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC5B;KACF,CAAC;GACI,cAAc,CAwcnB;AAED,cAAc,CAAC,MAAM,EAAE,CAAC;AAExB,eAAe,cAAc,CAAC","sourcesContent":["import DateComponentBase from \"@ui5/webcomponents/dist/DateComponentBase.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\n// eslint-disable-next-line\nimport Calendar, { CalendarSelectedDatesChangeEventDetail } from \"@ui5/webcomponents/dist/Calendar.js\";\nimport CalendarDateComponent from \"@ui5/webcomponents/dist/CalendarDate.js\";\nimport \"@ui5/webcomponents/dist/Icon.js\";\nimport \"@ui5/webcomponents-icons/dist/appointment-2.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { CALENDAR_ICON, DATEPICKER_DATE_DESCRIPTION } from \"./generated/i18n/i18n-defaults.js\";\n\n// Template\nimport DatePickerTemplate from \"./generated/templates/DatePickerTemplate.lit.js\";\nimport DatePickerPopover from \"./generated/templates/DatePickerPopoverTemplate.lit.js\";\n\n// Styles\nimport DatePickerCss from \"./generated/themes/DatePicker.css\";\nimport UDExTextField from \"./TextField.js\";\nimport UDExDropdown from \"./Dropdown.js\";\nimport DatePickerPopoverCss from \"./generated/themes/DatePickerPopover.css.js\";\nimport UDExStatusMessage from \"./StatusMessage.js\";\nimport ValueState from \"./types/common.js\";\n\nexport enum UDExDatePickerSelectionMode {\n Single = \"Single\",\n Range = \"Range\",\n}\n\nexport type DatePickerSelectionChangeEventDetail = {\n selectedValues: Array<string>;\n selectedDates: Array<number | undefined>;\n timestamp: number | undefined;\n};\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n *\n * <h3>Usage</h3>\n *\n * For the <code>udex-date-picker</code>\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@sapudex/web-components/dist/DatePicker.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @extends DateComponentBase\n * @tagname udex-date-picker\n * @public\n */\n@customElement({\n tag: \"udex-date-picker\",\n renderer: litRender,\n styles: DatePickerCss,\n template: DatePickerTemplate,\n staticAreaTemplate: DatePickerPopover,\n staticAreaStyles: [DatePickerPopoverCss],\n dependencies: [CalendarDateComponent, Calendar, UDExTextField, UDExDropdown, UDExStatusMessage],\n})\n/**\n * Fired when the selected dates change.\n *\n * @allowPreventDefault\n * @param {Array<string>} selectedValues The selected dates\n * @param {Array<number>} selectedDates The selected dates as UTC timestamps\n * @public\n */\n@event<DatePickerSelectionChangeEventDetail>(\"selection-change\", {\n detail: {\n /**\n * @public\n */\n selectedDates: { type: Array },\n /**\n * @public\n */\n selectedValues: { type: Array },\n\n timestamp: { type: Number },\n },\n})\nclass UDExDatePicker extends DateComponentBase {\n /**\n * Defines selection mode of the calendar component.\n *\n * @default \"Single\"\n * @public\n */\n @property({ type: UDExDatePickerSelectionMode, defaultValue: \"Single\" })\n selectionMode?: `${UDExDatePickerSelectionMode}`;\n\n /**\n * Defines whether the component is read-only.\n * <br><br>\n * <b>Note:</b> A read-only component is not editable,\n * but still provides visual feedback upon user interaction.\n *\n * @default false\n * @public\n */\n @property({ type: Boolean })\n readonly!: boolean;\n\n /**\n * Defines whether the component is required.\n *\n * @default false\n * @public\n */\n @property({ type: Boolean })\n required!: boolean;\n\n /**\n * Defines whether the component is in disabled state.\n * <br><br>\n * <b>Note:</b> A disabled component is completely noninteractive.\n *\n * @default false\n * @public\n */\n @property({ type: Boolean })\n disabled!: boolean;\n\n /**\n * Defines supporting text under the input field.\n *\n * @default \"\"\n * @public\n */\n @property({ type: String })\n supportingText!: string;\n\n /**\n * Defines the value of the input.\n *\n * @default \"\"\n * @public\n */\n @property({ type: String, defaultValue: \"\" })\n value!: string;\n\n /**\n * Sets the accessible ARIA name of the component.\n *\n * @default \"\"\n * @public\n */\n @property({ type: String, defaultValue: \"\" })\n accessibleName!: string;\n\n /**\n * Receives id (or many ids) of the elements that label the component.\n * @default \"\"\n * @public\n */\n @property({ defaultValue: \"\" })\n accessibleNameRef!: string;\n\n /**\n * Defines label text for the input field.\n *\n * @default \"\"\n * @public\n */\n @property({ type: String, defaultValue: \"\" })\n label!: string;\n\n /**\n * Defines selected dates values.\n *\n * @default \"\"\n * @private\n */\n @property({ type: String, noAttribute: true, defaultValue: \"\" })\n selectedDates!: string;\n\n /**\n * Defines the value state of the component.\n *\n * @default \"Standard\"\n * @public\n */\n @property({ type: ValueState, defaultValue: \"Standard\" })\n valueState!: \"Standard\" | \"Warning\" | \"Error\" | \"Success\";\n\n /**\n * Defines the date format pattern (e.g., \\\"MMM dd, yyyy\\\" or \\\"MM/dd/yyyy\\\").\n * @default \"MMM dd, yyyy\"\n * @public\n */\n @property({ type: String, defaultValue: \"MMM dd, yyyy\" })\n formatPattern!: string;\n\n /**\n * The first date in the range during selection (this is a temporary value, not the first date in the value range)\n * @private\n */\n @property()\n _tempValue!: string;\n\n responsivePopover?: UDExDropdown;\n\n static i18nBundle: I18nBundle;\n\n private _prevDelimiter!: string | null;\n\n static async onDefine(): Promise<void> {\n UDExDatePicker.i18nBundle = await getI18nBundle(\"@sapudex/web-components\");\n }\n\n async _getResponsePopover(): Promise<UDExDropdown> {\n const staticAreaItem = await this.getStaticAreaItemDomRef();\n return staticAreaItem!.querySelector<UDExDropdown>(`#udex-${this.__id!}-calendar__popover`)!;\n }\n\n /**\n * Getter for the interactive element that opens the overflow\n * @private\n */\n get _dropdownTrigger(): UDExTextField {\n return this.shadowRoot!.querySelector<UDExTextField>(\"[udex-text-field]\")!;\n }\n\n _afterDropdownClose(): void {\n this._dropdownTrigger.active = false;\n this._dropdownTrigger.shadowRoot?.querySelector(\"input\")?.blur();\n this._tempValue = \"\";\n }\n\n _afterDropdownOpen(): void {\n this._dropdownTrigger.active = true;\n }\n\n _closeRespPopover(): void {\n this.responsivePopover && this.responsivePopover.onClose();\n }\n\n async _openRespPopover(): Promise<void> {\n this._dropdownTrigger.active = true;\n this.responsivePopover = await this._getResponsePopover();\n this.responsivePopover?.onOpen(this._dropdownTrigger._inputHolder);\n }\n\n hideCalendar(): void {\n this._closeRespPopover();\n }\n\n showCalendar(): void {\n this._openRespPopover();\n }\n\n handleCalendarChange(e: CustomEvent<CalendarSelectedDatesChangeEventDetail>): void {\n e.preventDefault();\n if (this.selectionMode === UDExDatePickerSelectionMode.Single) {\n const newValue = e.detail.values && e.detail.values[0];\n this._updateValueAndFireEvents(newValue, true, e);\n }\n\n if (this.selectionMode === UDExDatePickerSelectionMode.Range) {\n const values = e.detail.values;\n\n if (values.length === 0) {\n return;\n }\n\n if (values.length === 1) { // Do nothing until the user selects 2 dates, we don't change any state at all for one date\n this._tempValue = values[0];\n return;\n }\n\n const newValue = this._buildValue(e.detail.dates[0], e.detail.dates[1]);\n this._updateValueAndFireEvents(newValue, true, e);\n }\n\n this.hideCalendar();\n }\n\n get _effectiveDelimiter(): string {\n return \"-\";\n }\n\n _getInput(): HTMLInputElement | null | undefined {\n return this._dropdownTrigger.shadowRoot?.querySelector(\"input\");\n }\n\n _splitValueByDelimiter(value: string) {\n const valuesArray: Array<string> = [];\n const partsArray = value.split(this._prevDelimiter || this._effectiveDelimiter);\n\n // if format successfully parse the value, the value contains only single date\n if (this.getFormat().parse(value)) {\n valuesArray[0] = partsArray.join(this._effectiveDelimiter);\n valuesArray[1] = \"\";\n\n return valuesArray;\n }\n\n valuesArray[0] = partsArray.slice(0, partsArray.length / 2).join(this._effectiveDelimiter);\n valuesArray[1] = partsArray.slice(partsArray.length / 2).join(this._effectiveDelimiter);\n\n return valuesArray;\n }\n\n /**\n * Returns a UTC timestamp, representing the last date in the value string or undefined if the value is empty or there is just one date\n * @private\n */\n _extractLastTimestamp(value: string) {\n if (!value || !this._checkValueValidity(value)) {\n return undefined;\n }\n\n const dateStrings = this._splitValueByDelimiter(value);\n if (dateStrings[1]) {\n const parsedDate = this.getFormat().parse(dateStrings[1], true) as Date;\n return parsedDate.getTime() / 1000;\n }\n\n return undefined;\n }\n\n /**\n * Returns a UTC timestamp, representing the first date in the value string or undefined if the value is empty\n * @private\n */\n _extractFirstTimestamp(value: string) {\n if (!value || !this._checkValueValidity(value)) {\n return undefined;\n }\n\n const dateStrings = this._splitValueByDelimiter(value); // at least one item guaranteed due to the checks above (non-empty and valid)\n\n const parsedDate = this.getFormat().parse(dateStrings[0], true) as Date;\n return parsedDate.getTime() / 1000;\n }\n\n /**\n * Checks if a value is valid against the current date format of the DatePicker.\n * @public\n * @param value A value to be tested against the current date format\n */\n isValid(value: string): boolean {\n if (value === \"\" || value === undefined) {\n return true;\n }\n\n return !!this.getFormat().parse(value);\n }\n\n isValidRange(value: string): boolean {\n const parts = this._splitValueByDelimiter(value);\n return parts.length <= 2 && parts.every(dateString => this.isValid(dateString)); // must be at most 2 dates and each must be valid\n }\n\n isInValidRange(value: string): boolean {\n if (value === \"\" || value === undefined) {\n return true;\n }\n\n const calendarDate = this._getCalendarDateFromString(value);\n\n if (!calendarDate || !this._minDate || !this._maxDate) {\n return false;\n }\n\n return calendarDate.valueOf() >= this._minDate.valueOf() && calendarDate.valueOf() <= this._maxDate.valueOf();\n }\n\n /**\n * Checks if a date is between the minimum and maximum date.\n * @public\n * @param value A value to be checked\n */\n isInValidRangeRange(value: string): boolean {\n return this._splitValueByDelimiter(value).every(dateString => this.isInValidRange(dateString));\n }\n\n _checkValueValidity(value: string): boolean {\n let result = false;\n if (value === \"\") {\n return true;\n }\n if (this.selectionMode === UDExDatePickerSelectionMode.Single) {\n result = this.isValid(value) && this.isInValidRange(value);\n }\n if (this.selectionMode === UDExDatePickerSelectionMode.Range) {\n result = this.isValidRange(value) && this.isInValidRangeRange(value);\n }\n return result;\n }\n\n /**\n * Builds a string value out of two UTC timestamps - this method is the counterpart to _extractFirstTimestamp/_extractLastTimestamp\n * @private\n */\n _buildValue(firstDateTimestamp: number | undefined, lastDateTimestamp: number | undefined) {\n this._prevDelimiter = this._effectiveDelimiter;\n if (firstDateTimestamp) {\n const firstDateString = this._getStringFromTimestamp(firstDateTimestamp * 1000);\n\n if (!lastDateTimestamp) {\n return firstDateString;\n }\n\n const lastDateString = this._getStringFromTimestamp(lastDateTimestamp * 1000);\n return `${firstDateString} ${this._effectiveDelimiter} ${lastDateString}`;\n }\n\n return \"\";\n }\n\n /**\n * The parser understands many formats, but we need one format OR extract both dates as timestamps, flip if necessary, and build (which will use the desired format so we enforce the format too)\n * @protected\n */\n normalizeValue(value: string) {\n let result = \"\";\n if (this.selectionMode === UDExDatePickerSelectionMode.Single) {\n if (value === \"\") {\n return value;\n }\n result = this.getFormat().format(this.getFormat().parse(value, true), true); // it is important to both parse and format the date as UTC\n }\n if (this.selectionMode === UDExDatePickerSelectionMode.Range) {\n const firstDateTimestamp = this._extractFirstTimestamp(value);\n const lastDateTimestamp = this._extractLastTimestamp(value);\n if (firstDateTimestamp && lastDateTimestamp && firstDateTimestamp > lastDateTimestamp) { // if both are timestamps (not undefined), flip if necessary\n return this._buildValue(lastDateTimestamp, firstDateTimestamp);\n }\n result = this._buildValue(firstDateTimestamp, lastDateTimestamp);\n }\n return result;\n }\n\n _updateValueState() {\n const valid = this._checkValueValidity(this.value);\n const previousValueState = this.valueState;\n\n this.valueState = valid ? ValueState.Standard : ValueState.Error;\n\n const eventPrevented = !this.fireEvent(\"value-state-change\", { valueState: this.valueState, valid });\n\n if (eventPrevented) {\n this.valueState = previousValueState;\n }\n }\n\n _buildEventData(value: string): DatePickerSelectionChangeEventDetail {\n if (this.selectionMode === UDExDatePickerSelectionMode.Range) {\n return {\n selectedDates: [this._extractFirstTimestamp(value), this._extractLastTimestamp(value)],\n selectedValues: this._splitValueByDelimiter(this.value),\n timestamp: this._extractLastTimestamp(value),\n };\n }\n return {\n selectedDates: [this._extractFirstTimestamp(value)],\n selectedValues: [value],\n timestamp: this._extractFirstTimestamp(value),\n };\n }\n\n _updateValueAndFireEvents(value: string, normalizeValue: boolean, e?: CustomEvent<CalendarSelectedDatesChangeEventDetail> | null) {\n const valid = this._checkValueValidity(value);\n\n if (valid && normalizeValue) {\n value = this.normalizeValue(value); // transform valid values (in any format) to the correct format\n }\n\n this.value = value;\n this._updateValueState(); // Change the value state to Error/None, but only if needed\n\n if (!valid) { return; }\n\n if (e) {\n const { dates, timestamp, values } = e.detail;\n\n this.fireEvent(\n \"selection-change\",\n {\n timestamp,\n selectedDates: [...dates],\n selectedValues: values,\n },\n true,\n );\n } else {\n this.fireEvent(\n \"selection-change\",\n this._buildEventData(value),\n true,\n );\n }\n }\n\n _onInputChange(e: Event) {\n this._updateValueAndFireEvents((e.target as UDExDatePicker).value, true);\n }\n\n handleInputClick(e: Event | KeyboardEvent): void {\n e.preventDefault();\n\n if (this.disabled || this.readonly) {\n return;\n }\n\n if (this.responsivePopover?.open) {\n this.hideCalendar();\n } else {\n this.showCalendar();\n }\n }\n\n /**\n * Used to provide selectedDates to the calendar based on the component's state\n * Override in derivatives to provide different rules for setting the calendar's selected dates\n * @protected\n */\n get _calendarSelectedDates(): Array<string> {\n if (this._tempValue) {\n return [this._tempValue];\n }\n\n if (this.value && this._checkValueValidity(this.value)) {\n return this.value.split(\" - \");\n }\n\n return [];\n }\n\n get accessibleIconName(): string {\n return UDExDatePicker.i18nBundle.getText(CALENDAR_ICON);\n }\n\n get dateAccessibleName(): string {\n return this.accessibleName || UDExDatePicker.i18nBundle.getText(DATEPICKER_DATE_DESCRIPTION);\n }\n}\n\nUDExDatePicker.define();\n\nexport default UDExDatePicker;\n"]}
1
+ {"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../src/DatePicker.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,iBAAiB,MAAM,8CAA8C,CAAC;AAC7E,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,2BAA2B;AAC3B,OAAO,QAAoD,MAAM,qCAAqC,CAAC;AACvG,OAAO,qBAAqB,MAAM,yCAAyC,CAAC;AAC5E,OAAO,iCAAiC,CAAC;AACzC,OAAO,gDAAgD,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAE/F,WAAW;AACX,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,iBAAiB,MAAM,wDAAwD,CAAC;AAEvF,SAAS;AACT,OAAO,aAAa,MAAM,mCAAmC,CAAC;AAC9D,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAC3C,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAC/E,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAE3C,MAAM,CAAN,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,gDAAiB,CAAA;IACjB,8C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YAAY,EAAE,CAAC,qBAAqB,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,CAAC;KAChG,CAAC;IACF;;;;;;;OAOG;;IACF,KAAK,CAAuC,kBAAkB,EAAE;QAC/D,MAAM,EAAE;YACN;;eAEG;YACH,aAAa,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;YAC9B;;eAEG;YACH,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;YAE/B,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC5B;KACF,CAAC;GACI,cAAc,CAucnB;AAED,cAAc,CAAC,MAAM,EAAE,CAAC;AAExB,eAAe,cAAc,CAAC","sourcesContent":["import DateComponentBase from \"@ui5/webcomponents/dist/DateComponentBase.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\n// eslint-disable-next-line\nimport Calendar, { CalendarSelectedDatesChangeEventDetail } from \"@ui5/webcomponents/dist/Calendar.js\";\nimport CalendarDateComponent from \"@ui5/webcomponents/dist/CalendarDate.js\";\nimport \"@ui5/webcomponents/dist/Icon.js\";\nimport \"@ui5/webcomponents-icons/dist/appointment-2.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { CALENDAR_ICON, DATEPICKER_DATE_DESCRIPTION } from \"./generated/i18n/i18n-defaults.js\";\n\n// Template\nimport DatePickerTemplate from \"./generated/templates/DatePickerTemplate.lit.js\";\nimport DatePickerPopover from \"./generated/templates/DatePickerPopoverTemplate.lit.js\";\n\n// Styles\nimport DatePickerCss from \"./generated/themes/DatePicker.css\";\nimport UDExTextField from \"./TextField.js\";\nimport UDExDropdown from \"./Dropdown.js\";\nimport DatePickerPopoverCss from \"./generated/themes/DatePickerPopover.css.js\";\nimport UDExStatusMessage from \"./StatusMessage.js\";\nimport ValueState from \"./types/common.js\";\n\nexport enum UDExDatePickerSelectionMode {\n Single = \"Single\",\n Range = \"Range\",\n}\n\nexport type DatePickerSelectionChangeEventDetail = {\n selectedValues: Array<string>;\n selectedDates: Array<number | undefined>;\n timestamp: number | undefined;\n};\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n *\n * <h3>Usage</h3>\n *\n * For the <code>udex-date-picker</code>\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@sapudex/web-components/dist/DatePicker.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @extends DateComponentBase\n * @tagname udex-date-picker\n * @public\n */\n@customElement({\n tag: \"udex-date-picker\",\n renderer: litRender,\n styles: DatePickerCss,\n template: DatePickerTemplate,\n staticAreaTemplate: DatePickerPopover,\n staticAreaStyles: [DatePickerPopoverCss],\n dependencies: [CalendarDateComponent, Calendar, UDExTextField, UDExDropdown, UDExStatusMessage],\n})\n/**\n * Fired when the selected dates change.\n *\n * @allowPreventDefault\n * @param {Array<string>} selectedValues The selected dates\n * @param {Array<number>} selectedDates The selected dates as UTC timestamps\n * @public\n */\n@event<DatePickerSelectionChangeEventDetail>(\"selection-change\", {\n detail: {\n /**\n * @public\n */\n selectedDates: { type: Array },\n /**\n * @public\n */\n selectedValues: { type: Array },\n\n timestamp: { type: Number },\n },\n})\nclass UDExDatePicker extends DateComponentBase {\n /**\n * Defines selection mode of the calendar component.\n *\n * @default \"Single\"\n * @public\n */\n @property({ type: UDExDatePickerSelectionMode, defaultValue: \"Single\" })\n selectionMode?: `${UDExDatePickerSelectionMode}`;\n\n /**\n * Defines whether the component is read-only.\n * <br><br>\n * <b>Note:</b> A read-only component is not editable,\n * but still provides visual feedback upon user interaction.\n *\n * @default false\n * @public\n */\n @property({ type: Boolean })\n readonly!: boolean;\n\n /**\n * Defines whether the component is required.\n *\n * @default false\n * @public\n */\n @property({ type: Boolean })\n required!: boolean;\n\n /**\n * Defines whether the component is in disabled state.\n * <br><br>\n * <b>Note:</b> A disabled component is completely noninteractive.\n *\n * @default false\n * @public\n */\n @property({ type: Boolean })\n disabled!: boolean;\n\n /**\n * Defines supporting text under the input field.\n *\n * @default \"\"\n * @public\n */\n @property({ type: String })\n supportingText!: string;\n\n /**\n * Defines the value of the input.\n *\n * @default \"\"\n * @public\n */\n @property({ type: String, defaultValue: \"\" })\n value!: string;\n\n /**\n * Sets the accessible ARIA name of the component.\n *\n * @default \"\"\n * @public\n */\n @property({ type: String, defaultValue: \"\" })\n accessibleName!: string;\n\n /**\n * Receives id (or many ids) of the elements that label the component.\n * @default \"\"\n * @public\n */\n @property({ defaultValue: \"\" })\n accessibleNameRef!: string;\n\n /**\n * Defines label text for the input field.\n *\n * @default \"\"\n * @public\n */\n @property({ type: String, defaultValue: \"\" })\n label!: string;\n\n /**\n * Defines selected dates values.\n *\n * @default \"\"\n * @private\n */\n @property({ type: String, noAttribute: true, defaultValue: \"\" })\n selectedDates!: string;\n\n /**\n * Defines the value state of the component.\n *\n * @default \"Standard\"\n * @public\n */\n @property({ type: ValueState, defaultValue: \"Standard\" })\n valueState!: \"Standard\" | \"Warning\" | \"Error\" | \"Success\";\n\n /**\n * Defines the date format pattern (e.g., \\\"MMM dd, yyyy\\\" or \\\"MM/dd/yyyy\\\").\n * @default \"MMM dd, yyyy\"\n * @public\n */\n @property({ type: String, defaultValue: \"MMM dd, yyyy\" })\n formatPattern!: string;\n\n /**\n * The first date in the range during selection (this is a temporary value, not the first date in the value range)\n * @private\n */\n @property()\n _tempValue!: string;\n\n responsivePopover?: UDExDropdown;\n\n static i18nBundle: I18nBundle;\n\n private _prevDelimiter!: string | null;\n\n static async onDefine(): Promise<void> {\n UDExDatePicker.i18nBundle = await getI18nBundle(\"@sapudex/web-components\");\n }\n\n async _getResponsePopover(): Promise<UDExDropdown> {\n const staticAreaItem = await this.getStaticAreaItemDomRef();\n return staticAreaItem!.querySelector<UDExDropdown>(`#udex-${this.__id!}-calendar__popover`)!;\n }\n\n /**\n * Getter for the interactive element that opens the overflow\n * @private\n */\n get _dropdownTrigger(): UDExTextField {\n return this.shadowRoot!.querySelector<UDExTextField>(\"[udex-text-field]\")!;\n }\n\n _afterDropdownClose(): void {\n this._dropdownTrigger.active = false;\n this._dropdownTrigger.shadowRoot?.querySelector(\"input\")?.blur();\n this._tempValue = \"\";\n }\n\n _afterDropdownOpen(): void {\n this._dropdownTrigger.active = true;\n }\n\n _closeRespPopover(): void {\n this.responsivePopover && this.responsivePopover.onClose();\n }\n\n async _openRespPopover(): Promise<void> {\n this.responsivePopover = await this._getResponsePopover();\n this.responsivePopover?.onOpen(this._dropdownTrigger._inputHolder);\n }\n\n hideCalendar(): void {\n this._closeRespPopover();\n }\n\n showCalendar(): void {\n this._openRespPopover();\n }\n\n handleCalendarChange(e: CustomEvent<CalendarSelectedDatesChangeEventDetail>): void {\n e.preventDefault();\n if (this.selectionMode === UDExDatePickerSelectionMode.Single) {\n const newValue = e.detail.values && e.detail.values[0];\n this._updateValueAndFireEvents(newValue, true, e);\n }\n\n if (this.selectionMode === UDExDatePickerSelectionMode.Range) {\n const values = e.detail.values;\n\n if (values.length === 0) {\n return;\n }\n\n if (values.length === 1) { // Do nothing until the user selects 2 dates, we don't change any state at all for one date\n this._tempValue = values[0];\n return;\n }\n\n const newValue = this._buildValue(e.detail.dates[0], e.detail.dates[1]);\n this._updateValueAndFireEvents(newValue, true, e);\n }\n\n this.hideCalendar();\n }\n\n get _effectiveDelimiter(): string {\n return \"-\";\n }\n\n _getInput(): HTMLInputElement | null | undefined {\n return this._dropdownTrigger.shadowRoot?.querySelector(\"input\");\n }\n\n _splitValueByDelimiter(value: string) {\n const valuesArray: Array<string> = [];\n const partsArray = value.split(this._prevDelimiter || this._effectiveDelimiter);\n\n // if format successfully parse the value, the value contains only single date\n if (this.getFormat().parse(value)) {\n valuesArray[0] = partsArray.join(this._effectiveDelimiter);\n valuesArray[1] = \"\";\n\n return valuesArray;\n }\n\n valuesArray[0] = partsArray.slice(0, partsArray.length / 2).join(this._effectiveDelimiter);\n valuesArray[1] = partsArray.slice(partsArray.length / 2).join(this._effectiveDelimiter);\n\n return valuesArray;\n }\n\n /**\n * Returns a UTC timestamp, representing the last date in the value string or undefined if the value is empty or there is just one date\n * @private\n */\n _extractLastTimestamp(value: string) {\n if (!value || !this._checkValueValidity(value)) {\n return undefined;\n }\n\n const dateStrings = this._splitValueByDelimiter(value);\n if (dateStrings[1]) {\n const parsedDate = this.getFormat().parse(dateStrings[1], true) as Date;\n return parsedDate.getTime() / 1000;\n }\n\n return undefined;\n }\n\n /**\n * Returns a UTC timestamp, representing the first date in the value string or undefined if the value is empty\n * @private\n */\n _extractFirstTimestamp(value: string) {\n if (!value || !this._checkValueValidity(value)) {\n return undefined;\n }\n\n const dateStrings = this._splitValueByDelimiter(value); // at least one item guaranteed due to the checks above (non-empty and valid)\n\n const parsedDate = this.getFormat().parse(dateStrings[0], true) as Date;\n return parsedDate.getTime() / 1000;\n }\n\n /**\n * Checks if a value is valid against the current date format of the DatePicker.\n * @public\n * @param value A value to be tested against the current date format\n */\n isValid(value: string): boolean {\n if (value === \"\" || value === undefined) {\n return true;\n }\n\n return !!this.getFormat().parse(value);\n }\n\n isValidRange(value: string): boolean {\n const parts = this._splitValueByDelimiter(value);\n return parts.length <= 2 && parts.every(dateString => this.isValid(dateString)); // must be at most 2 dates and each must be valid\n }\n\n isInValidRange(value: string): boolean {\n if (value === \"\" || value === undefined) {\n return true;\n }\n\n const calendarDate = this._getCalendarDateFromString(value);\n\n if (!calendarDate || !this._minDate || !this._maxDate) {\n return false;\n }\n\n return calendarDate.valueOf() >= this._minDate.valueOf() && calendarDate.valueOf() <= this._maxDate.valueOf();\n }\n\n /**\n * Checks if a date is between the minimum and maximum date.\n * @public\n * @param value A value to be checked\n */\n isInValidRangeRange(value: string): boolean {\n return this._splitValueByDelimiter(value).every(dateString => this.isInValidRange(dateString));\n }\n\n _checkValueValidity(value: string): boolean {\n let result = false;\n if (value === \"\") {\n return true;\n }\n if (this.selectionMode === UDExDatePickerSelectionMode.Single) {\n result = this.isValid(value) && this.isInValidRange(value);\n }\n if (this.selectionMode === UDExDatePickerSelectionMode.Range) {\n result = this.isValidRange(value) && this.isInValidRangeRange(value);\n }\n return result;\n }\n\n /**\n * Builds a string value out of two UTC timestamps - this method is the counterpart to _extractFirstTimestamp/_extractLastTimestamp\n * @private\n */\n _buildValue(firstDateTimestamp: number | undefined, lastDateTimestamp: number | undefined) {\n this._prevDelimiter = this._effectiveDelimiter;\n if (firstDateTimestamp) {\n const firstDateString = this._getStringFromTimestamp(firstDateTimestamp * 1000);\n\n if (!lastDateTimestamp) {\n return firstDateString;\n }\n\n const lastDateString = this._getStringFromTimestamp(lastDateTimestamp * 1000);\n return `${firstDateString} ${this._effectiveDelimiter} ${lastDateString}`;\n }\n\n return \"\";\n }\n\n /**\n * The parser understands many formats, but we need one format OR extract both dates as timestamps, flip if necessary, and build (which will use the desired format so we enforce the format too)\n * @protected\n */\n normalizeValue(value: string) {\n let result = \"\";\n if (this.selectionMode === UDExDatePickerSelectionMode.Single) {\n if (value === \"\") {\n return value;\n }\n result = this.getFormat().format(this.getFormat().parse(value, true), true); // it is important to both parse and format the date as UTC\n }\n if (this.selectionMode === UDExDatePickerSelectionMode.Range) {\n const firstDateTimestamp = this._extractFirstTimestamp(value);\n const lastDateTimestamp = this._extractLastTimestamp(value);\n if (firstDateTimestamp && lastDateTimestamp && firstDateTimestamp > lastDateTimestamp) { // if both are timestamps (not undefined), flip if necessary\n return this._buildValue(lastDateTimestamp, firstDateTimestamp);\n }\n result = this._buildValue(firstDateTimestamp, lastDateTimestamp);\n }\n return result;\n }\n\n _updateValueState() {\n const valid = this._checkValueValidity(this.value);\n const previousValueState = this.valueState;\n\n this.valueState = valid ? ValueState.Standard : ValueState.Error;\n\n const eventPrevented = !this.fireEvent(\"value-state-change\", { valueState: this.valueState, valid });\n\n if (eventPrevented) {\n this.valueState = previousValueState;\n }\n }\n\n _buildEventData(value: string): DatePickerSelectionChangeEventDetail {\n if (this.selectionMode === UDExDatePickerSelectionMode.Range) {\n return {\n selectedDates: [this._extractFirstTimestamp(value), this._extractLastTimestamp(value)],\n selectedValues: this._splitValueByDelimiter(this.value),\n timestamp: this._extractLastTimestamp(value),\n };\n }\n return {\n selectedDates: [this._extractFirstTimestamp(value)],\n selectedValues: [value],\n timestamp: this._extractFirstTimestamp(value),\n };\n }\n\n _updateValueAndFireEvents(value: string, normalizeValue: boolean, e?: CustomEvent<CalendarSelectedDatesChangeEventDetail> | null) {\n const valid = this._checkValueValidity(value);\n\n if (valid && normalizeValue) {\n value = this.normalizeValue(value); // transform valid values (in any format) to the correct format\n }\n\n this.value = value;\n this._updateValueState(); // Change the value state to Error/None, but only if needed\n\n if (!valid) { return; }\n\n if (e) {\n const { dates, timestamp, values } = e.detail;\n\n this.fireEvent(\n \"selection-change\",\n {\n timestamp,\n selectedDates: [...dates],\n selectedValues: values,\n },\n true,\n );\n } else {\n this.fireEvent(\n \"selection-change\",\n this._buildEventData(value),\n true,\n );\n }\n }\n\n _onInputChange(e: Event) {\n this._updateValueAndFireEvents((e.target as UDExDatePicker).value, true);\n }\n\n handleInputClick(e: Event | KeyboardEvent): void {\n e.preventDefault();\n\n if (this.disabled || this.readonly) {\n return;\n }\n\n if (this.responsivePopover?.open) {\n this.hideCalendar();\n } else {\n this.showCalendar();\n }\n }\n\n /**\n * Used to provide selectedDates to the calendar based on the component's state\n * Override in derivatives to provide different rules for setting the calendar's selected dates\n * @protected\n */\n get _calendarSelectedDates(): Array<string> {\n if (this._tempValue) {\n return [this._tempValue];\n }\n\n if (this.value && this._checkValueValidity(this.value)) {\n return this.value.split(\" - \");\n }\n\n return [];\n }\n\n get accessibleIconName(): string {\n return UDExDatePicker.i18nBundle.getText(CALENDAR_ICON);\n }\n\n get dateAccessibleName(): string {\n return this.accessibleName || UDExDatePicker.i18nBundle.getText(DATEPICKER_DATE_DESCRIPTION);\n }\n}\n\nUDExDatePicker.define();\n\nexport default UDExDatePicker;\n"]}
@@ -199,7 +199,7 @@ or import '@sapudex/design-tokens/dist/themes/sap_glow/css_variables.css'`)};doc
199
199
  */var lg=re.extend("sap.ui.core.date.Gregorian",{constructor:function(){this.oDate=this.createDate(Date,arguments),this.sCalendarType=Xo.Gregorian}});lg.UTC=function(){return Date.UTC.apply(Date,arguments)};lg.now=function(){return Date.now()};U2.set(Xo.Gregorian,lg);function IL(i,e,t){return t?d`<div class="ui5-cal-root" @keydown=${this._onkeydown}><div id="${r(this._id)}-content" class="ui5-cal-content"><${u("ui5-daypicker",e,t)} id="${r(this._id)}-daypicker" ?hidden="${this._isDayPickerHidden}" format-pattern="${r(this._formatPattern)}" .selectedDates="${r(this._selectedDatesTimestamps)}" .specialCalendarDates="${r(this._specialCalendarDates)}" ._hidden="${r(this._isDayPickerHidden)}" .primaryCalendarType="${r(this._primaryCalendarType)}" .secondaryCalendarType="${r(this._secondaryCalendarType)}" .selectionMode="${r(this.selectionMode)}" .minDate="${r(this.minDate)}" .maxDate="${r(this.maxDate)}" timestamp="${r(this._timestamp)}" ?hide-week-numbers="${this.hideWeekNumbers}" @ui5-change="${r(this.onSelectedDatesChange)}" @ui5-navigate="${r(this.onNavigate)}"></${u("ui5-daypicker",e,t)}><${u("ui5-monthpicker",e,t)} id="${r(this._id)}-MP" ?hidden="${this._isMonthPickerHidden}" format-pattern="${r(this._formatPattern)}" .selectedDates="${r(this._selectedDatesTimestamps)}" ._hidden="${r(this._isMonthPickerHidden)}" .primaryCalendarType="${r(this._primaryCalendarType)}" .secondaryCalendarType="${r(this._secondaryCalendarType)}" .minDate="${r(this.minDate)}" .maxDate="${r(this.maxDate)}" timestamp="${r(this._timestamp)}" @ui5-change="${r(this.onSelectedMonthChange)}" @ui5-navigate="${r(this.onNavigate)}"></${u("ui5-monthpicker",e,t)}><${u("ui5-yearpicker",e,t)} id="${r(this._id)}-YP" ?hidden="${this._isYearPickerHidden}" format-pattern="${r(this._formatPattern)}" .selectedDates="${r(this._selectedDatesTimestamps)}" ._hidden="${r(this._isYearPickerHidden)}" .primaryCalendarType="${r(this._primaryCalendarType)}" .secondaryCalendarType="${r(this._secondaryCalendarType)}" .minDate="${r(this.minDate)}" .maxDate="${r(this.maxDate)}" timestamp="${r(this._timestamp)}" @ui5-change="${r(this.onSelectedYearChange)}" @ui5-navigate="${r(this.onNavigate)}"></${u("ui5-yearpicker",e,t)}></div><${u("ui5-calendar-header",e,t)} id="${r(this._id)}-head" .primaryCalendarType="${r(this._primaryCalendarType)}" .secondaryCalendarType="${r(this._secondaryCalendarType)}" .buttonTextForSecondaryCalendarType="${r(this.secondaryCalendarTypeButtonText)}" timestamp="${r(this._timestamp)}" .isPrevButtonDisabled="${r(this._previousButtonDisabled)}" .isNextButtonDisabled="${r(this._nextButtonDisabled)}" .isMonthButtonHidden="${r(this._isHeaderMonthButtonHidden)}" .isYearButtonHidden="${r(this._isHeaderYearButtonHidden)}" ._monthButtonText="${r(this._headerMonthButtonText)}" ._yearButtonText="${r(this._headerYearButtonText)}" ._yearButtonTextSecType="${r(this._headerYearButtonTextSecType)}" @ui5-previous-press="${r(this.onHeaderPreviousPress)}" @ui5-next-press="${r(this.onHeaderNextPress)}" @ui5-show-month-view="${r(this.onHeaderShowMonthPress)}" @ui5-show-year-view="${r(this.onHeaderShowYearPress)}"></${u("ui5-calendar-header",e,t)}></div><div @ui5-_calendar-legend-selection-change=${r(this._onCalendarLegendSelectionChange)} @ui5-_calendar-legend-focus-out=${r(this._onLegendFocusOut)}><slot name="calendarLegend"></slot></div>`:d`<div class="ui5-cal-root" @keydown=${this._onkeydown}><div id="${r(this._id)}-content" class="ui5-cal-content"><ui5-daypicker id="${r(this._id)}-daypicker" ?hidden="${this._isDayPickerHidden}" format-pattern="${r(this._formatPattern)}" .selectedDates="${r(this._selectedDatesTimestamps)}" .specialCalendarDates="${r(this._specialCalendarDates)}" ._hidden="${r(this._isDayPickerHidden)}" .primaryCalendarType="${r(this._primaryCalendarType)}" .secondaryCalendarType="${r(this._secondaryCalendarType)}" .selectionMode="${r(this.selectionMode)}" .minDate="${r(this.minDate)}" .maxDate="${r(this.maxDate)}" timestamp="${r(this._timestamp)}" ?hide-week-numbers="${this.hideWeekNumbers}" @ui5-change="${r(this.onSelectedDatesChange)}" @ui5-navigate="${r(this.onNavigate)}"></ui5-daypicker><ui5-monthpicker id="${r(this._id)}-MP" ?hidden="${this._isMonthPickerHidden}" format-pattern="${r(this._formatPattern)}" .selectedDates="${r(this._selectedDatesTimestamps)}" ._hidden="${r(this._isMonthPickerHidden)}" .primaryCalendarType="${r(this._primaryCalendarType)}" .secondaryCalendarType="${r(this._secondaryCalendarType)}" .minDate="${r(this.minDate)}" .maxDate="${r(this.maxDate)}" timestamp="${r(this._timestamp)}" @ui5-change="${r(this.onSelectedMonthChange)}" @ui5-navigate="${r(this.onNavigate)}"></ui5-monthpicker><ui5-yearpicker id="${r(this._id)}-YP" ?hidden="${this._isYearPickerHidden}" format-pattern="${r(this._formatPattern)}" .selectedDates="${r(this._selectedDatesTimestamps)}" ._hidden="${r(this._isYearPickerHidden)}" .primaryCalendarType="${r(this._primaryCalendarType)}" .secondaryCalendarType="${r(this._secondaryCalendarType)}" .minDate="${r(this.minDate)}" .maxDate="${r(this.maxDate)}" timestamp="${r(this._timestamp)}" @ui5-change="${r(this.onSelectedYearChange)}" @ui5-navigate="${r(this.onNavigate)}"></ui5-yearpicker></div><ui5-calendar-header id="${r(this._id)}-head" .primaryCalendarType="${r(this._primaryCalendarType)}" .secondaryCalendarType="${r(this._secondaryCalendarType)}" .buttonTextForSecondaryCalendarType="${r(this.secondaryCalendarTypeButtonText)}" timestamp="${r(this._timestamp)}" .isPrevButtonDisabled="${r(this._previousButtonDisabled)}" .isNextButtonDisabled="${r(this._nextButtonDisabled)}" .isMonthButtonHidden="${r(this._isHeaderMonthButtonHidden)}" .isYearButtonHidden="${r(this._isHeaderYearButtonHidden)}" ._monthButtonText="${r(this._headerMonthButtonText)}" ._yearButtonText="${r(this._headerYearButtonText)}" ._yearButtonTextSecType="${r(this._headerYearButtonTextSecType)}" @ui5-previous-press="${r(this.onHeaderPreviousPress)}" @ui5-next-press="${r(this.onHeaderNextPress)}" @ui5-show-month-view="${r(this.onHeaderShowMonthPress)}" @ui5-show-year-view="${r(this.onHeaderShowYearPress)}"></ui5-calendar-header></div><div @ui5-_calendar-legend-selection-change=${r(this._onCalendarLegendSelectionChange)} @ui5-_calendar-legend-focus-out=${r(this._onLegendFocusOut)}><slot name="calendarLegend"></slot></div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@ui5/webcomponents","sap_horizon",async()=>Z);const BL={packageName:"@ui5/webcomponents",fileName:"themes/Calendar.css.ts",content:`:host(:not([hidden])){display:inline-block}.ui5-cal-root{background:var(--sapList_Background);box-sizing:border-box;height:var(--_ui5-v1-24-23_calendar_height);width:var(--_ui5-v1-24-23_calendar_width);padding:var(--_ui5-v1-24-23_calendar_top_bottom_padding) var(--_ui5-v1-24-23_calendar_left_right_padding) 0;display:flex;flex-direction:column-reverse;justify-content:flex-end;overflow:hidden}.ui5-cal-root [ui5-calendar-header]{height:var(--_ui5-v1-24-23_calendar_header_height);font-family:var(--_ui5-v1-24-23_button_fontFamily)}.ui5-cal-root .ui5-cal-content{padding:0 var(--_ui5-v1-24-23_calendar_left_right_padding) var(--_ui5-v1-24-23_calendar_top_bottom_padding)}
200
200
  `};var Mi=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let Ft=class extends xh{get _selectedDatesTimestamps(){return this.dates.map(e=>{const t=e.value;return t&&!!this.getFormat().parse(t)?this._getTimeStampFromString(t)/1e3:void 0}).filter(e=>!!e)}constructor(){super(),this._valueIsProcessed=!1}_setSelectedDates(e){const t=e.map(a=>this.getFormat().format(new Date(a*1e3),!0)),o=[...this.dates].map(a=>a.value);this.dates.filter(a=>!t.includes(a.value)).forEach(a=>{this.removeChild(a)}),t.filter(a=>!o.includes(a)).forEach(a=>{const n=document.createElement(bh.getMetadata().getTag());n.value=a,this.appendChild(n)})}_isValidCalendarDate(e){return!!this.getFormat().parse(e)}get _specialCalendarDates(){const e=this._specialDates.some(n=>n.type===this._selectedItemType),t=this._specialDates.filter(n=>{const s=n.type,l=n.value;return(e?s===this._selectedItemType||s==="Working"||s==="NonWorking":!0)&&l&&this._isValidCalendarDate(l)}),o=new Set,a=[];return t.forEach(n=>{const s=this.getFormat().parse(n.value),l=s.getTime();if(!o.has(l)){o.add(l);const h=_e.fromLocalJSDate(s).valueOf()/1e3,p=n.type;a.push({specialDateTimestamp:h,type:p})}}),a}_onCalendarLegendSelectionChange(e){const t=["Working","NonWorking","Selected","Today"];this._selectedItemType=e.detail.item.type,t.includes(this._selectedItemType)&&(this._selectedItemType="None"),this._currentPickerDOM._autoFocus=!1}_normalizeCurrentPicker(){this._currentPicker==="day"&&this._pickersMode!==bn.DAY_MONTH_YEAR&&(this._currentPicker="month"),this._currentPicker==="month"&&this._pickersMode===bn.YEAR&&(this._currentPicker="year")}onBeforeRendering(){this._normalizeCurrentPicker(),this._valueIsProcessed||(this._selectedDatesTimestamps&&(this.timestamp=this._selectedDatesTimestamps[0]),this._valueIsProcessed=!0)}async onAfterRendering(){await qo(),this._previousButtonDisabled=!this._currentPickerDOM._hasPreviousPage(),this._nextButtonDisabled=!this._currentPickerDOM._hasNextPage();const e=Er.getDateInstance({format:"y",calendarType:this.primaryCalendarType}),t=Tn(Rt());if(this._headerMonthButtonText=t.getMonthsStandAlone("wide",this.primaryCalendarType)[this._calendarDate.getMonth()],this._currentPicker==="year"){const o=new _e(this._calendarDate,this._primaryCalendarType),a=new _e(this._calendarDate,this._primaryCalendarType);o.setYear(this._currentPickerDOM._firstYear),a.setYear(this._currentPickerDOM._lastYear),this._headerYearButtonText=`${e.format(o.toLocalJSDate(),!0)} - ${e.format(a.toLocalJSDate(),!0)}`}else this._headerYearButtonText=String(e.format(this._localDate,!0));this._secondaryCalendarType&&this._setSecondaryCalendarTypeButtonText()}onInvalidation(e){e.reason==="childchange"&&(this._valueIsProcessed=!1)}onHeaderShowMonthPress(e){this._currentPickerDOM._autoFocus=!1,this._currentPicker="month",this.fireEvent("show-month-view",e)}onHeaderShowYearPress(e){this._currentPickerDOM._autoFocus=!1,this._currentPicker="year",this.fireEvent("show-year-view",e)}get _currentPickerDOM(){return this.shadowRoot.querySelector(`[ui5-${this._currentPicker}picker]`)}onHeaderPreviousPress(){this._currentPickerDOM._showPreviousPage(),this.calendarLegend&&(this._currentPickerDOM._autoFocus=!0)}onHeaderNextPress(){this._currentPickerDOM._showNextPage(),this.calendarLegend&&(this._currentPickerDOM._autoFocus=!0)}_setSecondaryCalendarTypeButtonText(){const e=Er.getDateInstance({format:"y",calendarType:this._secondaryCalendarType});if(this._currentPicker==="year"){const t=new _e(this._calendarDate,this._primaryCalendarType),o=new _e(this._calendarDate,this._primaryCalendarType);t.setYear(this._currentPickerDOM._firstYear),o.setYear(this._currentPickerDOM._lastYear);const a=Yl(this.primaryCalendarType,this._secondaryCalendarType,t.valueOf()/1e3,!0).firstDate,n=Yl(this.primaryCalendarType,this._secondaryCalendarType,o.valueOf()/1e3,!0).lastDate;this._headerYearButtonTextSecType=`${e.format(a.toLocalJSDate(),!0)} - ${e.format(n.toLocalJSDate(),!0)}`}else this._headerYearButtonTextSecType=String(e.format(this._localDate,!0))}get secondaryCalendarTypeButtonText(){if(!this.hasSecondaryCalendarType)return;const e=new Date(this._timestamp*1e3),t=Er.getDateInstance({format:"y",calendarType:this._secondaryCalendarType}),o=Yl(this._primaryCalendarType,this._secondaryCalendarType,this._timestamp),a=e0(o.firstDate.getMonth(),o.lastDate.getMonth(),this._secondaryCalendarType);return{yearButtonText:t.format(e,!0),monthButtonText:a.text,monthButtonInfo:a.textInfo}}get _isHeaderMonthButtonHidden(){return this._currentPicker==="month"||this._currentPicker==="year"}get _isHeaderYearButtonHidden(){return this._currentPicker==="year"}get _isDayPickerHidden(){return this._currentPicker!=="day"}get _isMonthPickerHidden(){return this._currentPicker!=="month"}get _isYearPickerHidden(){return this._currentPicker!=="year"}_fireEventAndUpdateSelectedDates(e){const t=e.map(a=>{const n=_e.fromTimestamp(a*1e3,this._primaryCalendarType);return this.getFormat().format(n.toUTCJSDate(),!0)});!this.fireEvent("selected-dates-change",{timestamp:this.timestamp,dates:[...e],values:t},!0)||this._setSelectedDates(e)}onSelectedDatesChange(e){this.timestamp=e.detail.timestamp,this._fireEventAndUpdateSelectedDates(e.detail.dates)}onSelectedMonthChange(e){this.timestamp=e.detail.timestamp,this._pickersMode===bn.DAY_MONTH_YEAR?this._currentPicker="day":this._fireEventAndUpdateSelectedDates([this.timestamp]),this._currentPickerDOM._autoFocus=!0}onSelectedYearChange(e){this.timestamp=e.detail.timestamp,this._pickersMode===bn.DAY_MONTH_YEAR?this._currentPicker="day":this._pickersMode===bn.MONTH_YEAR?this._currentPicker="month":this._fireEventAndUpdateSelectedDates([this.timestamp]),this._currentPickerDOM._autoFocus=!0}onNavigate(e){this.timestamp=e.detail.timestamp}_onkeydown(e){JT(e)&&this._currentPicker!=="month"&&(this._currentPicker="month",this.fireEvent("show-month-view",e)),eC(e)&&this._currentPicker!=="year"&&(this._currentPicker="year",this.fireEvent("show-year-view",e))}_onLegendFocusOut(){this._selectedItemType="None"}get _specialDates(){return this.getSlottedNodes("specialDates")}get selectedDates(){return this._selectedDatesTimestamps}set selectedDates(e){this._setSelectedDates(e)}};Mi([c({type:jo,defaultValue:jo.Single})],Ft.prototype,"selectionMode",void 0);Mi([c({type:Boolean})],Ft.prototype,"hideWeekNumbers",void 0);Mi([c({defaultValue:"day"})],Ft.prototype,"_currentPicker",void 0);Mi([c({type:Boolean})],Ft.prototype,"_previousButtonDisabled",void 0);Mi([c({type:Boolean})],Ft.prototype,"_nextButtonDisabled",void 0);Mi([c()],Ft.prototype,"_headerMonthButtonText",void 0);Mi([c()],Ft.prototype,"_headerYearButtonText",void 0);Mi([c()],Ft.prototype,"_headerYearButtonTextSecType",void 0);Mi([c({type:bn,defaultValue:bn.DAY_MONTH_YEAR,noAttribute:!0})],Ft.prototype,"_pickersMode",void 0);Mi([$({type:HTMLElement})],Ft.prototype,"calendarLegend",void 0);Mi([$({type:HTMLElement,invalidateOnChildChange:!0,default:!0})],Ft.prototype,"dates",void 0);Mi([$({type:HTMLElement,invalidateOnChildChange:!0})],Ft.prototype,"specialDates",void 0);Mi([c({type:Ti,defaultValue:Ti.None})],Ft.prototype,"_selectedItemType",void 0);Ft=Mi([y({tag:"ui5-calendar",fastNavigation:!0,template:IL,styles:BL,dependencies:[bh,W8,sL,pL,bL,CL]}),f("selected-dates-change",{detail:{dates:{type:Array},values:{type:Array},timestamp:{type:Number}}}),f("show-month-view"),f("show-year-view")],Ft);Ft.define();const EL=Ft,AL="appointment-2",a0="M32 481V65q0-14 9.5-23T64 33h64V1h32v32h192V1h32v32h64q14 0 23 9t9 23v416q0 14-9 23t-23 9H64q-13 0-22.5-9T32 481zm416 0V129H64v352h384zM256 193q14 0 23 9t9 23-9 23-23 9-23-9-9-23 9-23 23-9zM128 321q14 0 23 9t9 23-9 23-23 9-23-9-9-23 9-23 23-9zm256-128q14 0 23 9t9 23-9 23-23 9-23-9-9-23 9-23 23-9zm0 128q14 0 23 9t9 23-9 23-23 9-23-9-9-23 9-23 23-9zm-128 0q14 0 23 9t9 23-9 23-23 9-23-9-9-23 9-23 23-9zM96 225q0-14 9-23t23-9 23 9 9 23-9 23-23 9-23-9-9-23zM384 97V65h-32v32h32zM128 65v32h32V65h-32z",DL=!1,PL="SAP-icons-v4",NL="@ui5/webcomponents-icons";D(AL,{pathData:a0,ltr:DL,collection:PL,packageName:NL});const RL="appointment-2",r0="M403 64q32 0 54.5 22.5T480 141v294q0 32-22.5 54.5T403 512H109q-32 0-54.5-22.5T32 435V141q0-32 22.5-54.5T109 64h25V26q0-11 7.5-18.5T160 0t18.5 7.5T186 26v38h140V26q0-11 7.5-18.5T352 0t18.5 7.5T378 26v38h25zm-294 51q-11 0-18.5 7.5T83 141v64h346v-64q0-11-7.5-18.5T403 115h-25v19q0 11-7.5 18.5T352 160t-18.5-7.5T326 134v-19H186v19q0 11-7.5 18.5T160 160t-18.5-7.5T134 134v-19h-25zm294 346q11 0 18.5-7.5T429 435V256H83v179q0 11 7.5 18.5T109 461h294zM160 320q14 0 23 9t9 23-9 23-23 9-23-9-9-23 9-23 23-9zm96 0q14 0 23 9t9 23-9 23-23 9-23-9-9-23 9-23 23-9zm96 0q14 0 23 9t9 23-9 23-23 9-23-9-9-23 9-23 23-9z",LL=!1,jL="SAP-icons-v5",ML="@ui5/webcomponents-icons";D(RL,{pathData:r0,ltr:LL,collection:jL,packageName:ML});oe();function OL(i,e,t){return t?d`<${u("udex-text-field",e,t)} value="${r(this.value)}" @ui5-change="${r(this._onInputChange)}" class="udex-date-picker__input" label="${r(this.label)}" accessible-name="${r(this.dateAccessibleName)}" accessible-name-ref="${r(this.accessibleNameRef)}" accessible-icon-name="${r(this.accessibleIconName)}" _aria-has-popup="grid" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly}" icon="appointment-2" @ui5-click-icon="${r(this.handleInputClick)}" value-state="${r(this.valueState)}" supporting-text="${r(this.supportingText)}"></${u("udex-text-field",e,t)}>`:d`<udex-text-field value="${r(this.value)}" @ui5-change="${r(this._onInputChange)}" class="udex-date-picker__input" label="${r(this.label)}" accessible-name="${r(this.dateAccessibleName)}" accessible-name-ref="${r(this.accessibleNameRef)}" accessible-icon-name="${r(this.accessibleIconName)}" _aria-has-popup="grid" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly}" icon="appointment-2" @ui5-click-icon="${r(this.handleInputClick)}" value-state="${r(this.valueState)}" supporting-text="${r(this.supportingText)}"></udex-text-field>`}function zL(i,e,t){return t?d`<${u("udex-dropdown",e,t)} id="udex-${r(this._id)}-calendar__popover" class="udex-date-picker__popover" placement-type="Bottom" horizontal-align="Left" @ui5-after-close="${r(this._afterDropdownClose)}" @ui5-after-open="${r(this._afterDropdownOpen)}"><${u("ui5-calendar",e,t)} class="udex-date-picker__calendar" @ui5-selected-dates-change="${r(this.handleCalendarChange)}" selection-mode="${r(this.selectionMode)}" min-date="${r(this.minDate)}" max-date="${r(this.maxDate)}" format-pattern="${r(this.formatPattern)}">${T(this._calendarSelectedDates,(o,a)=>o._id||a,(o,a)=>pf.call(this,i,e,t,o,a))}</${u("ui5-calendar",e,t)}></${u("udex-dropdown",e,t)}>`:d`<udex-dropdown id="udex-${r(this._id)}-calendar__popover" class="udex-date-picker__popover" placement-type="Bottom" horizontal-align="Left" @ui5-after-close="${r(this._afterDropdownClose)}" @ui5-after-open="${r(this._afterDropdownOpen)}"><ui5-calendar class="udex-date-picker__calendar" @ui5-selected-dates-change="${r(this.handleCalendarChange)}" selection-mode="${r(this.selectionMode)}" min-date="${r(this.minDate)}" max-date="${r(this.maxDate)}" format-pattern="${r(this.formatPattern)}">${T(this._calendarSelectedDates,(o,a)=>o._id||a,(o,a)=>pf.call(this,i,e,t,o,a))}</ui5-calendar></udex-dropdown>`}function pf(i,e,t,o,a){return t?d`<${u("ui5-date",e,t)} value="${r(o)}"></${u("ui5-date",e,t)}>`:d`<ui5-date value="${r(o)}"></ui5-date>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const FL={packageName:"@sapudex/web-components",fileName:"themes/DatePicker.css.ts",content:`:host{--udex-date-picker-width: 354px;position:relative;font-family:var(--sapFontFamily)}.udex-date-picker__calendar{min-width:var(--udex-date-picker-width);background-color:var(--udexNeutralColorWhite, #ffffff);border-radius:8px;box-shadow:0 2px 8px #2236494d;position:absolute;top:42px;z-index:100}.udex-date-picker__input{--udex-input-padding: 9px 48px 9px 12px}
201
201
  `};v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const XL={packageName:"@sapudex/web-components",fileName:"themes/DatePickerPopover.css.ts",content:`.udex-date-picker__popover{--udex-dropdown-border-width: 0;--udex-dropdown-pane-max-width: fit-content}@media (width < 640px){.udex-date-picker__popover{--udex-dropdown-pane-min-width-xs: fit-content;--udex-dropdown-pane-max-width-xs: fit-content}}
202
- `};var Oi=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},jl,ha;(function(i){i.Single="Single",i.Range="Range"})(ha||(ha={}));let ti=jl=class extends J2{static async onDefine(){jl.i18nBundle=await M("@sapudex/web-components")}async _getResponsePopover(){return(await this.getStaticAreaItemDomRef()).querySelector(`#udex-${this.__id}-calendar__popover`)}get _dropdownTrigger(){return this.shadowRoot.querySelector("[udex-text-field]")}_afterDropdownClose(){var e,t;this._dropdownTrigger.active=!1,(t=(e=this._dropdownTrigger.shadowRoot)==null?void 0:e.querySelector("input"))==null||t.blur(),this._tempValue=""}_afterDropdownOpen(){this._dropdownTrigger.active=!0}_closeRespPopover(){this.responsivePopover&&this.responsivePopover.onClose()}async _openRespPopover(){var e;this._dropdownTrigger.active=!0,this.responsivePopover=await this._getResponsePopover(),(e=this.responsivePopover)==null||e.onOpen(this._dropdownTrigger._inputHolder)}hideCalendar(){this._closeRespPopover()}showCalendar(){this._openRespPopover()}handleCalendarChange(e){if(e.preventDefault(),this.selectionMode===ha.Single){const t=e.detail.values&&e.detail.values[0];this._updateValueAndFireEvents(t,!0,e)}if(this.selectionMode===ha.Range){const t=e.detail.values;if(t.length===0)return;if(t.length===1){this._tempValue=t[0];return}const o=this._buildValue(e.detail.dates[0],e.detail.dates[1]);this._updateValueAndFireEvents(o,!0,e)}this.hideCalendar()}get _effectiveDelimiter(){return"-"}_getInput(){var e;return(e=this._dropdownTrigger.shadowRoot)==null?void 0:e.querySelector("input")}_splitValueByDelimiter(e){const t=[],o=e.split(this._prevDelimiter||this._effectiveDelimiter);return this.getFormat().parse(e)?(t[0]=o.join(this._effectiveDelimiter),t[1]="",t):(t[0]=o.slice(0,o.length/2).join(this._effectiveDelimiter),t[1]=o.slice(o.length/2).join(this._effectiveDelimiter),t)}_extractLastTimestamp(e){if(!e||!this._checkValueValidity(e))return;const t=this._splitValueByDelimiter(e);if(t[1])return this.getFormat().parse(t[1],!0).getTime()/1e3}_extractFirstTimestamp(e){if(!e||!this._checkValueValidity(e))return;const t=this._splitValueByDelimiter(e);return this.getFormat().parse(t[0],!0).getTime()/1e3}isValid(e){return e===""||e===void 0?!0:!!this.getFormat().parse(e)}isValidRange(e){const t=this._splitValueByDelimiter(e);return t.length<=2&&t.every(o=>this.isValid(o))}isInValidRange(e){if(e===""||e===void 0)return!0;const t=this._getCalendarDateFromString(e);return!t||!this._minDate||!this._maxDate?!1:t.valueOf()>=this._minDate.valueOf()&&t.valueOf()<=this._maxDate.valueOf()}isInValidRangeRange(e){return this._splitValueByDelimiter(e).every(t=>this.isInValidRange(t))}_checkValueValidity(e){let t=!1;return e===""?!0:(this.selectionMode===ha.Single&&(t=this.isValid(e)&&this.isInValidRange(e)),this.selectionMode===ha.Range&&(t=this.isValidRange(e)&&this.isInValidRangeRange(e)),t)}_buildValue(e,t){if(this._prevDelimiter=this._effectiveDelimiter,e){const o=this._getStringFromTimestamp(e*1e3);if(!t)return o;const a=this._getStringFromTimestamp(t*1e3);return`${o} ${this._effectiveDelimiter} ${a}`}return""}normalizeValue(e){let t="";if(this.selectionMode===ha.Single){if(e==="")return e;t=this.getFormat().format(this.getFormat().parse(e,!0),!0)}if(this.selectionMode===ha.Range){const o=this._extractFirstTimestamp(e),a=this._extractLastTimestamp(e);if(o&&a&&o>a)return this._buildValue(a,o);t=this._buildValue(o,a)}return t}_updateValueState(){const e=this._checkValueValidity(this.value),t=this.valueState;this.valueState=e?Be.Standard:Be.Error,!this.fireEvent("value-state-change",{valueState:this.valueState,valid:e})&&(this.valueState=t)}_buildEventData(e){return this.selectionMode===ha.Range?{selectedDates:[this._extractFirstTimestamp(e),this._extractLastTimestamp(e)],selectedValues:this._splitValueByDelimiter(this.value),timestamp:this._extractLastTimestamp(e)}:{selectedDates:[this._extractFirstTimestamp(e)],selectedValues:[e],timestamp:this._extractFirstTimestamp(e)}}_updateValueAndFireEvents(e,t,o){const a=this._checkValueValidity(e);if(a&&t&&(e=this.normalizeValue(e)),this.value=e,this._updateValueState(),!!a)if(o){const{dates:n,timestamp:s,values:l}=o.detail;this.fireEvent("selection-change",{timestamp:s,selectedDates:[...n],selectedValues:l},!0)}else this.fireEvent("selection-change",this._buildEventData(e),!0)}_onInputChange(e){this._updateValueAndFireEvents(e.target.value,!0)}handleInputClick(e){var t;e.preventDefault(),!(this.disabled||this.readonly)&&((t=this.responsivePopover)!=null&&t.open?this.hideCalendar():this.showCalendar())}get _calendarSelectedDates(){return this._tempValue?[this._tempValue]:this.value&&this._checkValueValidity(this.value)?this.value.split(" - "):[]}get accessibleIconName(){return jl.i18nBundle.getText(C3)}get dateAccessibleName(){return this.accessibleName||jl.i18nBundle.getText(I3)}};Oi([c({type:ha,defaultValue:"Single"})],ti.prototype,"selectionMode",void 0);Oi([c({type:Boolean})],ti.prototype,"readonly",void 0);Oi([c({type:Boolean})],ti.prototype,"required",void 0);Oi([c({type:Boolean})],ti.prototype,"disabled",void 0);Oi([c({type:String})],ti.prototype,"supportingText",void 0);Oi([c({type:String,defaultValue:""})],ti.prototype,"value",void 0);Oi([c({type:String,defaultValue:""})],ti.prototype,"accessibleName",void 0);Oi([c({defaultValue:""})],ti.prototype,"accessibleNameRef",void 0);Oi([c({type:String,defaultValue:""})],ti.prototype,"label",void 0);Oi([c({type:String,noAttribute:!0,defaultValue:""})],ti.prototype,"selectedDates",void 0);Oi([c({type:Be,defaultValue:"Standard"})],ti.prototype,"valueState",void 0);Oi([c({type:String,defaultValue:"MMM dd, yyyy"})],ti.prototype,"formatPattern",void 0);Oi([c()],ti.prototype,"_tempValue",void 0);ti=jl=Oi([y({tag:"udex-date-picker",renderer:k,styles:FL,template:OL,staticAreaTemplate:zL,staticAreaStyles:[XL],dependencies:[bh,EL,mh,ec,Gn]}),f("selection-change",{detail:{selectedDates:{type:Array},selectedValues:{type:Array},timestamp:{type:Number}}})],ti);ti.define();function HL(i,e,t){return d`<div class="udex-divider-wrapper" role="${r(this.effectiveAccRole)}"><span class="udex-divider"></span></div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const qL={packageName:"@sapudex/web-components",fileName:"themes/Divider.css.ts",content:`:host{--udex-divider-color: var(--udexCoreDividerLight, #D5DADD)}.udex-divider{border-top:1px solid var(--udex-divider-color);display:block}.udex-divider-wrapper{padding:var(--udexSpacer2) 0}
202
+ `};var Oi=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},jl,ha;(function(i){i.Single="Single",i.Range="Range"})(ha||(ha={}));let ti=jl=class extends J2{static async onDefine(){jl.i18nBundle=await M("@sapudex/web-components")}async _getResponsePopover(){return(await this.getStaticAreaItemDomRef()).querySelector(`#udex-${this.__id}-calendar__popover`)}get _dropdownTrigger(){return this.shadowRoot.querySelector("[udex-text-field]")}_afterDropdownClose(){var e,t;this._dropdownTrigger.active=!1,(t=(e=this._dropdownTrigger.shadowRoot)==null?void 0:e.querySelector("input"))==null||t.blur(),this._tempValue=""}_afterDropdownOpen(){this._dropdownTrigger.active=!0}_closeRespPopover(){this.responsivePopover&&this.responsivePopover.onClose()}async _openRespPopover(){var e;this.responsivePopover=await this._getResponsePopover(),(e=this.responsivePopover)==null||e.onOpen(this._dropdownTrigger._inputHolder)}hideCalendar(){this._closeRespPopover()}showCalendar(){this._openRespPopover()}handleCalendarChange(e){if(e.preventDefault(),this.selectionMode===ha.Single){const t=e.detail.values&&e.detail.values[0];this._updateValueAndFireEvents(t,!0,e)}if(this.selectionMode===ha.Range){const t=e.detail.values;if(t.length===0)return;if(t.length===1){this._tempValue=t[0];return}const o=this._buildValue(e.detail.dates[0],e.detail.dates[1]);this._updateValueAndFireEvents(o,!0,e)}this.hideCalendar()}get _effectiveDelimiter(){return"-"}_getInput(){var e;return(e=this._dropdownTrigger.shadowRoot)==null?void 0:e.querySelector("input")}_splitValueByDelimiter(e){const t=[],o=e.split(this._prevDelimiter||this._effectiveDelimiter);return this.getFormat().parse(e)?(t[0]=o.join(this._effectiveDelimiter),t[1]="",t):(t[0]=o.slice(0,o.length/2).join(this._effectiveDelimiter),t[1]=o.slice(o.length/2).join(this._effectiveDelimiter),t)}_extractLastTimestamp(e){if(!e||!this._checkValueValidity(e))return;const t=this._splitValueByDelimiter(e);if(t[1])return this.getFormat().parse(t[1],!0).getTime()/1e3}_extractFirstTimestamp(e){if(!e||!this._checkValueValidity(e))return;const t=this._splitValueByDelimiter(e);return this.getFormat().parse(t[0],!0).getTime()/1e3}isValid(e){return e===""||e===void 0?!0:!!this.getFormat().parse(e)}isValidRange(e){const t=this._splitValueByDelimiter(e);return t.length<=2&&t.every(o=>this.isValid(o))}isInValidRange(e){if(e===""||e===void 0)return!0;const t=this._getCalendarDateFromString(e);return!t||!this._minDate||!this._maxDate?!1:t.valueOf()>=this._minDate.valueOf()&&t.valueOf()<=this._maxDate.valueOf()}isInValidRangeRange(e){return this._splitValueByDelimiter(e).every(t=>this.isInValidRange(t))}_checkValueValidity(e){let t=!1;return e===""?!0:(this.selectionMode===ha.Single&&(t=this.isValid(e)&&this.isInValidRange(e)),this.selectionMode===ha.Range&&(t=this.isValidRange(e)&&this.isInValidRangeRange(e)),t)}_buildValue(e,t){if(this._prevDelimiter=this._effectiveDelimiter,e){const o=this._getStringFromTimestamp(e*1e3);if(!t)return o;const a=this._getStringFromTimestamp(t*1e3);return`${o} ${this._effectiveDelimiter} ${a}`}return""}normalizeValue(e){let t="";if(this.selectionMode===ha.Single){if(e==="")return e;t=this.getFormat().format(this.getFormat().parse(e,!0),!0)}if(this.selectionMode===ha.Range){const o=this._extractFirstTimestamp(e),a=this._extractLastTimestamp(e);if(o&&a&&o>a)return this._buildValue(a,o);t=this._buildValue(o,a)}return t}_updateValueState(){const e=this._checkValueValidity(this.value),t=this.valueState;this.valueState=e?Be.Standard:Be.Error,!this.fireEvent("value-state-change",{valueState:this.valueState,valid:e})&&(this.valueState=t)}_buildEventData(e){return this.selectionMode===ha.Range?{selectedDates:[this._extractFirstTimestamp(e),this._extractLastTimestamp(e)],selectedValues:this._splitValueByDelimiter(this.value),timestamp:this._extractLastTimestamp(e)}:{selectedDates:[this._extractFirstTimestamp(e)],selectedValues:[e],timestamp:this._extractFirstTimestamp(e)}}_updateValueAndFireEvents(e,t,o){const a=this._checkValueValidity(e);if(a&&t&&(e=this.normalizeValue(e)),this.value=e,this._updateValueState(),!!a)if(o){const{dates:n,timestamp:s,values:l}=o.detail;this.fireEvent("selection-change",{timestamp:s,selectedDates:[...n],selectedValues:l},!0)}else this.fireEvent("selection-change",this._buildEventData(e),!0)}_onInputChange(e){this._updateValueAndFireEvents(e.target.value,!0)}handleInputClick(e){var t;e.preventDefault(),!(this.disabled||this.readonly)&&((t=this.responsivePopover)!=null&&t.open?this.hideCalendar():this.showCalendar())}get _calendarSelectedDates(){return this._tempValue?[this._tempValue]:this.value&&this._checkValueValidity(this.value)?this.value.split(" - "):[]}get accessibleIconName(){return jl.i18nBundle.getText(C3)}get dateAccessibleName(){return this.accessibleName||jl.i18nBundle.getText(I3)}};Oi([c({type:ha,defaultValue:"Single"})],ti.prototype,"selectionMode",void 0);Oi([c({type:Boolean})],ti.prototype,"readonly",void 0);Oi([c({type:Boolean})],ti.prototype,"required",void 0);Oi([c({type:Boolean})],ti.prototype,"disabled",void 0);Oi([c({type:String})],ti.prototype,"supportingText",void 0);Oi([c({type:String,defaultValue:""})],ti.prototype,"value",void 0);Oi([c({type:String,defaultValue:""})],ti.prototype,"accessibleName",void 0);Oi([c({defaultValue:""})],ti.prototype,"accessibleNameRef",void 0);Oi([c({type:String,defaultValue:""})],ti.prototype,"label",void 0);Oi([c({type:String,noAttribute:!0,defaultValue:""})],ti.prototype,"selectedDates",void 0);Oi([c({type:Be,defaultValue:"Standard"})],ti.prototype,"valueState",void 0);Oi([c({type:String,defaultValue:"MMM dd, yyyy"})],ti.prototype,"formatPattern",void 0);Oi([c()],ti.prototype,"_tempValue",void 0);ti=jl=Oi([y({tag:"udex-date-picker",renderer:k,styles:FL,template:OL,staticAreaTemplate:zL,staticAreaStyles:[XL],dependencies:[bh,EL,mh,ec,Gn]}),f("selection-change",{detail:{selectedDates:{type:Array},selectedValues:{type:Array},timestamp:{type:Number}}})],ti);ti.define();function HL(i,e,t){return d`<div class="udex-divider-wrapper" role="${r(this.effectiveAccRole)}"><span class="udex-divider"></span></div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const qL={packageName:"@sapudex/web-components",fileName:"themes/Divider.css.ts",content:`:host{--udex-divider-color: var(--udexCoreDividerLight, #D5DADD)}.udex-divider{border-top:1px solid var(--udex-divider-color);display:block}.udex-divider-wrapper{padding:var(--udexSpacer2) 0}
203
203
  `};var n0=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let gd=class extends E{get effectiveAccRole(){return this.accessibleRole.toLowerCase()}};n0([c({type:String,defaultValue:"separator"})],gd.prototype,"accessibleRole",void 0);gd=n0([y({tag:"udex-divider",renderer:k,styles:qL,template:HL})],gd);gd.define();const s0=gd;var L_;(function(i){i.Small="Small",i.Medium="Medium",i.Large="Large"})(L_||(L_={}));const _f=L_;var j_;(function(i){i.Top="Top",i.Bottom="Bottom"})(j_||(j_={}));const Eu=j_;function VL(i,e,t){return d`<div class="${z(this.classes.root)}">${this._isBusy?UL.call(this,i,e,t):void 0}<slot></slot>${this._isBusy?ZL.call(this,i,e,t):void 0}</div> `}function UL(i,e,t){return d`<div class="ui5-busy-indicator-busy-area" title="${r(this.ariaTitle)}" tabindex="0" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuetext="Busy" aria-labelledby="${r(this.labelId)}" data-sap-focus-ref>${this.textPosition.top?WL.call(this,i,e,t):void 0}<div class="ui5-busy-indicator-circles-wrapper"><div class="ui5-busy-indicator-circle circle-animation-0"></div><div class="ui5-busy-indicator-circle circle-animation-1"></div><div class="ui5-busy-indicator-circle circle-animation-2"></div></div>${this.textPosition.bottom?YL.call(this,i,e,t):void 0}</div>`}function WL(i,e,t){return d`${this.text?GL.call(this,i,e,t):void 0}`}function GL(i,e,t){return t?d`<${u("ui5-label",e,t)} id="${r(this._id)}-label" class="ui5-busy-indicator-text" wrapping-type="Normal">${r(this.text)}</${u("ui5-label",e,t)}>`:d`<ui5-label id="${r(this._id)}-label" class="ui5-busy-indicator-text" wrapping-type="Normal">${r(this.text)}</ui5-label>`}function YL(i,e,t){return d`${this.text?KL.call(this,i,e,t):void 0}`}function KL(i,e,t){return t?d`<${u("ui5-label",e,t)} id="${r(this._id)}-label" class="ui5-busy-indicator-text" wrapping-type="Normal">${r(this.text)}</${u("ui5-label",e,t)}>`:d`<ui5-label id="${r(this._id)}-label" class="ui5-busy-indicator-text" wrapping-type="Normal">${r(this.text)}</ui5-label>`}function ZL(i,e,t){return d`<span data-ui5-focus-redirect tabindex="0" @focusin="${this._redirectFocus}"></span>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@ui5/webcomponents","sap_horizon",async()=>Z);const QL={packageName:"@ui5/webcomponents",fileName:"themes/BusyIndicator.css.ts",content:`:host(:not([hidden])){display:inline-block}:host([_is-busy]){color:var(--_ui5-v1-24-23_busy_indicator_color)}:host([size="Small"]) .ui5-busy-indicator-root{min-width:1.625rem;min-height:.5rem}:host([size="Small"][text]:not([text=""])) .ui5-busy-indicator-root{min-height:1.75rem}:host([size="Small"]) .ui5-busy-indicator-circle{width:.5rem;height:.5rem}:host([size="Small"]) .ui5-busy-indicator-circle:first-child,:host([size="Small"]) .ui5-busy-indicator-circle:nth-child(2){margin-inline-end:.0625rem}:host(:not([size])) .ui5-busy-indicator-root,:host([size="Medium"]) .ui5-busy-indicator-root{min-width:3.375rem;min-height:1rem}:host([size="Medium"]) .ui5-busy-indicator-circle:first-child,:host([size="Medium"]) .ui5-busy-indicator-circle:nth-child(2){margin-inline-end:.1875rem}:host(:not([size])[text]:not([text=""])) .ui5-busy-indicator-root,:host([size="Medium"][text]:not([text=""])) .ui5-busy-indicator-root{min-height:2.25rem}:host(:not([size])) .ui5-busy-indicator-circle,:host([size="Medium"]) .ui5-busy-indicator-circle{width:1rem;height:1rem}:host([size="Large"]) .ui5-busy-indicator-root{min-width:6.5rem;min-height:2rem}:host([size="Large"]) .ui5-busy-indicator-circle:first-child,:host([size="Large"]) .ui5-busy-indicator-circle:nth-child(2){margin-inline-end:.25rem}:host([size="Large"][text]:not([text=""])) .ui5-busy-indicator-root{min-height:3.25rem}:host([size="Large"]) .ui5-busy-indicator-circle{width:2rem;height:2rem}.ui5-busy-indicator-root{display:flex;justify-content:center;align-items:center;position:relative;background-color:inherit;height:inherit}.ui5-busy-indicator-busy-area{position:absolute;z-index:99;inset:0;display:flex;justify-content:center;align-items:center;background-color:inherit;flex-direction:column}:host(:not(:empty)) .ui5-busy-indicator-busy-area{background-color:var(--_ui5-v1-24-23_busy_indicator_block_layer)}.ui5-busy-indicator-busy-area:focus{outline:var(--_ui5-v1-24-23_busy_indicator_focus_outline);outline-offset:-2px;border-radius:var(--_ui5-v1-24-23_busy_indicator_focus_border_radius)}.ui5-busy-indicator-circles-wrapper{line-height:0}.ui5-busy-indicator-circle{display:inline-block;background-color:currentColor;border-radius:50%}.ui5-busy-indicator-circle:before{content:"";width:100%;height:100%;border-radius:100%}.circle-animation-0{animation:grow 1.6s infinite cubic-bezier(.32,.06,.85,1.11)}.circle-animation-1{animation:grow 1.6s infinite cubic-bezier(.32,.06,.85,1.11);animation-delay:.2s}.circle-animation-2{animation:grow 1.6s infinite cubic-bezier(.32,.06,.85,1.11);animation-delay:.4s}.ui5-busy-indicator-text{width:100%;text-align:center}:host([text-placement="Top"]) .ui5-busy-indicator-text{margin-bottom:.5rem}:host(:not([text-placement])) .ui5-busy-indicator-text,:host([text-placement="Bottom"]) .ui5-busy-indicator-text{margin-top:.5rem}@keyframes grow{0%,50%,to{-webkit-transform:scale(.5);-moz-transform:scale(.5);transform:scale(.5)}25%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}}
204
204
  `};var Kn=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},zc;let xa=zc=class extends E{constructor(){super(),this._keydownHandler=this._handleKeydown.bind(this),this._preventEventHandler=this._preventEvent.bind(this)}onEnterDOM(){this.addEventListener("keydown",this._keydownHandler,{capture:!0}),this.addEventListener("keyup",this._preventEventHandler,{capture:!0})}onExitDOM(){this._busyTimeoutId&&(clearTimeout(this._busyTimeoutId),delete this._busyTimeoutId),this.removeEventListener("keydown",this._keydownHandler,!0),this.removeEventListener("keyup",this._preventEventHandler,!0)}static async onDefine(){zc.i18nBundle=await M("@ui5/webcomponents")}get ariaTitle(){return zc.i18nBundle.getText(c4)}get labelId(){return this.text?`${this._id}-label`:void 0}get classes(){return{root:{"ui5-busy-indicator-root":!0}}}get textPosition(){return{top:this.text&&this.textPlacement===Eu.Top,bottom:this.text&&this.textPlacement===Eu.Bottom}}onBeforeRendering(){this.active?!this._isBusy&&!this._busyTimeoutId&&(this._busyTimeoutId=setTimeout(()=>{delete this._busyTimeoutId,this._isBusy=!0},Math.max(0,this.delay))):(this._busyTimeoutId&&(clearTimeout(this._busyTimeoutId),delete this._busyTimeoutId),this._isBusy=!1)}_handleKeydown(e){this._isBusy&&(e.stopImmediatePropagation(),Lt(e)&&(this.focusForward=!0,this.shadowRoot.querySelector("[data-ui5-focus-redirect]").focus(),this.focusForward=!1))}_preventEvent(e){this._isBusy&&e.stopImmediatePropagation()}_redirectFocus(e){this.focusForward||(e.preventDefault(),this.shadowRoot.querySelector(".ui5-busy-indicator-busy-area").focus())}};Kn([c()],xa.prototype,"text",void 0);Kn([c({type:_f,defaultValue:_f.Medium})],xa.prototype,"size",void 0);Kn([c({type:Boolean})],xa.prototype,"active",void 0);Kn([c({validator:q,defaultValue:1e3})],xa.prototype,"delay",void 0);Kn([c({type:Eu,defaultValue:Eu.Bottom})],xa.prototype,"textPlacement",void 0);Kn([c({type:Boolean})],xa.prototype,"_isBusy",void 0);xa=zc=Kn([y({tag:"ui5-busy-indicator",languageAware:!0,styles:QL,renderer:k,template:VL,dependencies:[_h]})],xa);xa.define();const Sh=xa;var $h=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};const vf="udex-list__group-header";let zs=class extends nl{handleSelectionGroupState(){if(!this.isAnyEnabledOption())return;const t=this.isAllSelected(),o=this.indeterminate;t?this.processGroupDeselectAll():o?this.toggleIndeterminateGroupState():this.processGroupSelectAll()}processGroupDeselectAll(){const e=this.isAnySelectedOptionDisabled();this.setAllItems(!1),e?this.activateHeaderIndeterminate():this.deactivateHeader()}toggleIndeterminateGroupState(){this.isEachEnabledOptionSelected()?this.processGroupDeselectAll():this.processGroupSelectAll()}processGroupSelectAll(){const e=this.isAnyNotSelectedOptionDisabled();this.setAllItems(!0),e?this.activateHeaderIndeterminate():this.activateHeader()}handleHeaderState(){const e=this.isAllSelected();if(this.isAllDeselected()){this.deactivateHeader();return}if(e){this.activateHeader();return}this.activateHeaderIndeterminate()}activateHeaderIndeterminate(){this.selected=!0,this.indeterminate=!0}activateHeader(){this.indeterminate=!1,this.selected=!0}deactivateHeader(){this.selected=!1,this.indeterminate=!1}setAllItems(e){this.getItems().forEach(t=>{t.disabled||(t.selected=e)})}isAllSelected(){return this.getItems().every(({selected:e})=>e)}isAllDeselected(){return this.getItems().every(({selected:e})=>!e)}isEachEnabledOptionSelected(){return this.getItems().every(e=>e.disabled||e.selected)}isAnyNotSelectedOptionDisabled(){return this.getItems().some(e=>!e.selected&&e.disabled)}isAnySelected(){return this.getItems().some(e=>e.selected)}isAnySelectedOptionDisabled(){return this.getItems().some(({disabled:e,selected:t})=>e&&t)}isAnyEnabledOption(){return this.getItems().some(({disabled:e})=>!e)}getItems(){return this.getSlottedNodes("items")}get isGroup(){return!0}get isSelectAllHeader(){return!1}get isFilterMenuSelectAllHeader(){return!1}get isNonActiveHeader(){return this.nonInteractive||this.modeRadioGroup}get className(){const e=this.controlled?`${vf}_controlled`:"";return`${vf} ${this._additionalClassName} ${e}`}};$h([c({type:Boolean})],zs.prototype,"nonInteractive",void 0);$h([c({type:String})],zs.prototype,"_additionalClassName",void 0);$h([$({type:nl,default:!0})],zs.prototype,"items",void 0);zs=$h([y({languageAware:!0,renderer:k})],zs);const dl=zs;function JL(i,e,t){return d`<li part="item" class="udex-list__group" role="group" aria-labelledby="group-heading"><ul role="group" class="udex-list__group-list" @ui5-item-press="${r(this.getHandleGroupItemsClick)}">${this.modeMultiSelectOrRadioGroup?ej.call(this,i,e,t):aj.call(this,i,e,t)}<slot></slot></ul></li> `}function ej(i,e,t){return d`${this.isNonActiveHeader?tj.call(this,i,e,t):oj.call(this,i,e,t)}`}function tj(i,e,t){return d`<header id="group-heading" class="udex-list__inactive-header"><span class="udex-list__header-title">${r(this.label)}</span>${this.supportingText?ij.call(this,i,e,t):void 0}</header>`}function ij(i,e,t){return d`<span class="udex-list__supporting-text ">${r(this.supportingText)}</span>`}function oj(i,e,t){return t?d`<${u("udex-list-item",e,t)} id="group-heading" _additional-class-name="${r(this._additionalClassName)}" ?selected="${this.selected}" _tab-index="${r(this._effectiveTabIndex)}" ?indeterminate="${this.indeterminate}" part="group-item" role="none" class="${r(this.className)}" mode="${r(this.mode)}" ?controlled="${this.controlled}" supporting-text="${r(this.supportingText)}" @click="${this.handleHeaderPress}" @keydown="${this.handleKeyDownPress}" type="${r(this.type)}" label="${r(this.label)}" _icon="${r(this._icon)}" size="${r(this.size)}"></${u("udex-list-item",e,t)}>`:d`<udex-list-item id="group-heading" _additional-class-name="${r(this._additionalClassName)}" ?selected="${this.selected}" _tab-index="${r(this._effectiveTabIndex)}" ?indeterminate="${this.indeterminate}" part="group-item" role="none" class="${r(this.className)}" mode="${r(this.mode)}" ?controlled="${this.controlled}" supporting-text="${r(this.supportingText)}" @click="${this.handleHeaderPress}" @keydown="${this.handleKeyDownPress}" type="${r(this.type)}" label="${r(this.label)}" _icon="${r(this._icon)}" size="${r(this.size)}"></udex-list-item>`}function aj(i,e,t){return d`<div class="udex-list__group-content ${r(this.sizeClass)}" part="group-item">${this.typeNumber?rj.call(this,i,e,t):void 0}${this.typeCircle?nj.call(this,i,e,t):void 0}${this.typeIcon?sj.call(this,i,e,t):void 0}<div class="udex-list__header"><span id="group-heading" class="udex-list__header-title">${r(this.label)}</span>${this.supportingText?lj.call(this,i,e,t):void 0}</div></div>`}function rj(i,e,t){return d`<span class="udex-list__number">${r(this.numberOfItem)}.</span>`}function nj(i,e,t){return d`<span class="udex-list__circle">&#x2022;</span>`}function sj(i,e,t){return t?d`<${u("ui5-icon",e,t)} class="udex-list__icon" name="${r(this._icon)}" accessible-role="presentation" aria-hidden="true" part="icon"></${u("ui5-icon",e,t)}>`:d`<ui5-icon class="udex-list__icon" name="${r(this._icon)}" accessible-role="presentation" aria-hidden="true" part="icon"></ui5-icon>`}function lj(i,e,t){return d`<span class="udex-list__supporting-text ${r(this.sizeClass)}">${r(this.supportingText)}</span>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const dj={packageName:"@sapudex/web-components",fileName:"themes/ListGroupHeader.css.ts",content:`:host{--udex-list-item-group-header-padding-vertical: var(--udexSpacer8, 8px);--udex-list-item-group-header-padding-horizontal: var(--udexSpacer12, 12px);--udex-list-item-group-header-supporting-text-color: var(--sapContent_LabelColor, #223548);--udex-list-item-group-header-border-color: var(--sapList_BorderColor, #A9B4BE)}.udex-list__header{font-weight:var(--udexTypographyFontWeightMedium, 500);display:flex;flex-direction:column}.udex-list__supporting-text{font-family:var(--sapFontFamily, sans-serif);font-size:var(--udexTypographyBodyXSFontSize, 14px);line-height:var(--udexTypographyBodyLineHeight, 21px);font-weight:var(--udexTypographyFontWeightRegular, 400);color:var(--udex-list-item-group-header-supporting-text-color);padding-top:var(--udexSpacer8, 8px)}.udex-list__group-list{list-style-type:none;padding:0;margin:0}.udex-list__header,.udex-list__group-header{font-weight:var(--udexTypographyFontWeightMedium, 500)}.udex-list__group-list.udex-list__sticky{padding-top:59px}.udex-list__group-content{display:flex;border-bottom:1px solid var(--udex-list-item-group-header-border-color);padding:var(--udex-list-item-group-header-padding-vertical) var(--udex-list-item-group-header-padding-horizontal)}.udex-list__number{margin-inline-end:var(--udexSpacer8, 8px)}.udex-list__circle{display:block;min-width:20px;height:22px;position:relative}:host([mode="SingleContent"])::part(group-item){padding:var(--udexSpacer4, 4px) 0}:host([mode="MultiSelect"]) .udex-list__group-header{border-bottom:1px solid var(--udex-list-item-group-header-border-color)}.udex-list__group_large{font-size:var(--udexTypographyBodyLFontSize, 20px);line-height:var(--udexTypographyHeadingLineHeight, 22px);font-weight:var(--udexTypographyFontWeightMedium, 500)}.udex-list__group_large.udex-list__supporting-text{font-size:var(--udexTypographyBodySFontSize, 16px);line-height:var(--udexTypographyBodyLineHeight, 24px);font-weight:var(--udexTypographyFontWeightRegular, 400)}.udex-list__icon{margin-inline-end:var(--udexSpacer8, 8px);padding-top:2px;min-width:18px;height:18px}.udex-list__inactive-header{font-family:var(--sapFontFamily, sans-serif);font-size:var(--udexTypographyBodySFontSize, 16px);line-height:var(--udexTypographyBodyLineHeight, 24px);font-weight:var(--udexTypographyFontWeightMedium, 500);padding:var(--udexSpacer8, 8px) var(--udexSpacer20, 20px);border-bottom:1px solid var(--sapList_BorderColor, #A9B4BE);display:flex;flex-direction:column}
205
205
  `};var cj=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};const uj="udex-list__group_large";let Au=class extends dl{handleHeaderPress(){this.controlled||this.handleSelectionGroupState(),this.fireHeaderPress()}handleKeyDownPress(e){F(e)&&e.preventDefault(),(F(e)||K(e))&&this.handleHeaderPress()}fireHeaderPress(){this.fireEvent("header-press",{item:this})}getHandleGroupItemsClick(){return this.modeMultiSelect&&!this.controlled?this.handleHeaderState():void 0}get sizeClass(){return this.size===Ms.Large?uj:""}};Au=cj([y({tag:"udex-list-group-header",renderer:k,styles:dj,template:JL,dependencies:[U]}),f("header-press",{detail:{item:{type:HTMLElement}}})],Au);Au.define();const l0=Au;var d0=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let md=class extends nl{};d0([c({type:Boolean})],md.prototype,"_isFilterSelectAllItem",void 0);md=d0([y({tag:"udex-filter-menu-item",renderer:k})],md);md.define();const c0=md;var u0=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let fd=class extends dl{getItems(){return this.getSlottedNodes("items")}};u0([$({type:c0,default:!0})],fd.prototype,"items",void 0);fd=u0([y({tag:"udex-filter-menu-group-header",renderer:k})],fd);fd.define();const hj=fd;var pj=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let Du=class extends dl{get isSelectAllHeader(){return!0}get isFilterMenuSelectAllHeader(){return!0}};Du=pj([y({tag:"udex-filter-menu-select-all",renderer:k})],Du);Du.define();const _j=Du;function vj(i,e,t){return t?d`<ul class="udex-list__group-list"><li part="item" class="udex-list__group"><ul class="${r(this.groupListClassName)}" @ui5-item-press="${r(this.handleSelectAllGroupItemsPress)}"><${u("udex-list-item",e,t)} _tab-index="${r(this._effectiveTabIndex)}" role="list" _additional-class-name="${r(this.additionalClassName)}" class="${r(this.className)}" ?selected="${this.selected}" aria-current="${r(this.selected)}" ?indeterminate="${this.indeterminate}" mode="${r(this.multiselectMode)}" part="group-item" @click="${this.handleSelectAllPress}" ?controlled="${this.controlled}" supporting-text="${r(this.supportingText)}" @keydown="${this.handleKeyDownPress}" divider>${r(this.selectAllLabel)}</${u("udex-list-item",e,t)}><slot></slot></ul></li></ul>`:d`<ul class="udex-list__group-list"><li part="item" class="udex-list__group"><ul class="${r(this.groupListClassName)}" @ui5-item-press="${r(this.handleSelectAllGroupItemsPress)}"><udex-list-item _tab-index="${r(this._effectiveTabIndex)}" role="list" _additional-class-name="${r(this.additionalClassName)}" class="${r(this.className)}" ?selected="${this.selected}" aria-current="${r(this.selected)}" ?indeterminate="${this.indeterminate}" mode="${r(this.multiselectMode)}" part="group-item" @click="${this.handleSelectAllPress}" ?controlled="${this.controlled}" supporting-text="${r(this.supportingText)}" @keydown="${this.handleKeyDownPress}" divider>${r(this.selectAllLabel)}</udex-list-item><slot></slot></ul></li></ul>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const gj={packageName:"@sapudex/web-components",fileName:"themes/ListGroupHeader.css.ts",content:`:host{--udex-list-item-group-header-padding-vertical: var(--udexSpacer8, 8px);--udex-list-item-group-header-padding-horizontal: var(--udexSpacer12, 12px);--udex-list-item-group-header-supporting-text-color: var(--sapContent_LabelColor, #223548);--udex-list-item-group-header-border-color: var(--sapList_BorderColor, #A9B4BE)}.udex-list__header{font-weight:var(--udexTypographyFontWeightMedium, 500);display:flex;flex-direction:column}.udex-list__supporting-text{font-family:var(--sapFontFamily, sans-serif);font-size:var(--udexTypographyBodyXSFontSize, 14px);line-height:var(--udexTypographyBodyLineHeight, 21px);font-weight:var(--udexTypographyFontWeightRegular, 400);color:var(--udex-list-item-group-header-supporting-text-color);padding-top:var(--udexSpacer8, 8px)}.udex-list__group-list{list-style-type:none;padding:0;margin:0}.udex-list__header,.udex-list__group-header{font-weight:var(--udexTypographyFontWeightMedium, 500)}.udex-list__group-list.udex-list__sticky{padding-top:59px}.udex-list__group-content{display:flex;border-bottom:1px solid var(--udex-list-item-group-header-border-color);padding:var(--udex-list-item-group-header-padding-vertical) var(--udex-list-item-group-header-padding-horizontal)}.udex-list__number{margin-inline-end:var(--udexSpacer8, 8px)}.udex-list__circle{display:block;min-width:20px;height:22px;position:relative}:host([mode="SingleContent"])::part(group-item){padding:var(--udexSpacer4, 4px) 0}:host([mode="MultiSelect"]) .udex-list__group-header{border-bottom:1px solid var(--udex-list-item-group-header-border-color)}.udex-list__group_large{font-size:var(--udexTypographyBodyLFontSize, 20px);line-height:var(--udexTypographyHeadingLineHeight, 22px);font-weight:var(--udexTypographyFontWeightMedium, 500)}.udex-list__group_large.udex-list__supporting-text{font-size:var(--udexTypographyBodySFontSize, 16px);line-height:var(--udexTypographyBodyLineHeight, 24px);font-weight:var(--udexTypographyFontWeightRegular, 400)}.udex-list__icon{margin-inline-end:var(--udexSpacer8, 8px);padding-top:2px;min-width:18px;height:18px}.udex-list__inactive-header{font-family:var(--sapFontFamily, sans-serif);font-size:var(--udexTypographyBodySFontSize, 16px);line-height:var(--udexTypographyBodyLineHeight, 24px);font-weight:var(--udexTypographyFontWeightMedium, 500);padding:var(--udexSpacer8, 8px) var(--udexSpacer20, 20px);border-bottom:1px solid var(--sapList_BorderColor, #A9B4BE);display:flex;flex-direction:column}
@@ -242,10 +242,10 @@ or import '@sapudex/design-tokens/dist/themes/sap_glow/css_variables.css'`)};doc
242
242
  `};var DF=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let zu=class extends lw{};zu=DF([y({tag:"udex-progress-bar",renderer:k,styles:[lw.styles,AF]})],zu);zu.define();const PF=zu;function NF(i,e,t){return d`<div class="udex-quote__container"><div class="udex-quote__image-container">${this.image?RF.call(this,i,e,t):void 0}</div><div class="udex-quote__content-container"><div class="content-container__text-container"><p class="content-container__text"><slot></slot></p></div>${this.author?LF.call(this,i,e,t):void 0}${this.link?jF.call(this,i,e,t):void 0}</div></div>`}function RF(i,e,t){return d`<slot name="image" slot="image"></slot>`}function LF(i,e,t){return d`<slot slot="author" name="author"></slot>`}function jF(i,e,t){return d`<slot slot="link" name="link"></slot>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const MF={packageName:"@sapudex/web-components",fileName:"themes/Quote.css.ts",content:`:host{display:block;width:100%;container-type:inline-size}.udex-quote__container{display:flex;flex-direction:row;width:100%;text-align:left;gap:24px}:host([image-size="small"]) .udex-quote__container,:host([text-size="small"]) .udex-quote__container{gap:16px}.content-container__text,::slotted([slot="author"]),::slotted([slot="link"]){padding:0 40px}::slotted([slot="image"]){display:block;width:120px;height:120px}:host([mask="rectangle"]) ::slotted([slot="image"]){display:block;width:200px;height:100px;background-color:transparent;object-fit:contain}:host([image-size="small"]) ::slotted([slot="image"]){width:64px;height:64px}:host([image-size="small"][mask="rectangle"]) ::slotted([slot="image"]){width:160px;height:80px}.content-container__text-container{position:relative}.content-container__text{margin:0 0 16px;font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyBodyXLFontSize, 24px);line-height:var(--udexTypographyBodyLineHeight, 1.5);color:var(--udexQuoteColorText, #354A5F)}.content-container__text ::slotted(*){margin:0}.content-container__text-container:before,.content-container__text-container:after{font-family:var(--sapFontFamily);position:absolute;display:inline-block;font-size:84px;line-height:84px;height:58px;width:34px;color:var(--udexQuoteColorText, #354A5F);margin-top:-9px}.content-container__text-container:before{content:open-quote;top:0;left:0}.content-container__text-container:after{content:close-quote;top:0;right:0}:host([text-size="small"]) .content-container__text-container:after,:host([text-size="small"]) .content-container__text-container:before{font-size:72px;line-height:72px;height:50px;width:26px;margin-top:-12px}::slotted([slot="author"]){display:block;margin-bottom:16px;font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyHeadingRegularXXSFontSize, 20px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--udexQuoteColorText, #354A5F)}::slotted([slot="link"]){text-decoration:none;font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyBodySFontSize, 16px);line-height:var(--udexTypographyBodyLineHeight, 1.5);color:var(--udexLinksColorDefault, #0070F2)}:host([text-size="small"]) .content-container__text{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyBodySFontSize, 16px);line-height:var(--udexTypographyBodyLineHeight, 1.5)}:host([text-size="small"]) ::slotted([slot="author"]){font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1)}@media screen and (max-width: 1279px){.udex-quote__container{gap:16px}::slotted([slot="image"]){width:64px;height:64px}:host([mask="rectangle"]) ::slotted([slot="image"]){width:160px;height:80px}.content-container__text-container:after,.content-container__text-container:before{font-size:72px;line-height:72px;height:50px;width:26px;margin-top:-12px}.content-container__text{font-size:var(--udexTypographyBodySFontSize, 16px);line-height:var(--udexTypographyBodyLineHeight, 1.5)}::slotted([slot="author"]){font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1)}}@container (max-width: 545px){.udex-quote__container{flex-direction:column;gap:16px}::slotted([slot="image"]){margin:0 auto}}
243
243
  `};var Jr=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},Fu;(function(i){i.small="small",i.large="large"})(Fu||(Fu={}));var G_;(function(i){i.avatar="avatar",i.rectangle="rectangle"})(G_||(G_={}));let ka=class extends E{};Jr([$({type:HTMLElement,default:!0})],ka.prototype,"content",void 0);Jr([$()],ka.prototype,"link",void 0);Jr([$()],ka.prototype,"author",void 0);Jr([$()],ka.prototype,"image",void 0);Jr([c({type:Fu,defaultValue:"large"})],ka.prototype,"imageSize",void 0);Jr([c({type:Fu,defaultValue:"large"})],ka.prototype,"textSize",void 0);Jr([c({type:G_,defaultValue:"avatar"})],ka.prototype,"mask",void 0);ka=Jr([y({tag:"udex-quote",renderer:k,styles:MF,template:NF})],ka);ka.define();const OF="direction-arrows",dw="M507 244q5 5 5 12 0 6-5 11L394 379q-5 5-12 5-6 0-11-5t-5-11V144q0-12 10-15 2-1 6-1 8 0 12 4zM135 129q10 3 10 15v224q0 6-4.5 11t-11.5 5q-6 0-11-5L5 267q-5-5-5-11 0-7 5-12l113-112q4-4 11-4 4 0 6 1z",zF=!1,FF="SAP-icons-v4",XF="@ui5/webcomponents-icons";D(OF,{pathData:dw,ltr:zF,collection:FF,packageName:XF});const HF="direction-arrows",cw="M135 128q11 0 18 7.5t7 18.5v204q0 11-8 18.5t-18 7.5-17-7L8 275q-8-8-8-19t8-19l109-102q7-7 18-7zm369 109q8 8 8 19t-8 19L395 377q-7 7-17 7t-18-7.5-8-18.5V154q0-12 8-19t19-7q9 0 16 7z",qF=!1,VF="SAP-icons-v5",UF="@ui5/webcomponents-icons";D(HF,{pathData:cw,ltr:qF,collection:VF,packageName:UF});oe();v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@ui5/webcomponents","sap_horizon",async()=>Z);const WF={packageName:"@ui5/webcomponents",fileName:"themes/SliderBase.css.ts",content:`.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host([disabled]){opacity:var(--_ui5-v1-24-23_slider_disabled_opacity);cursor:default;pointer-events:none}:host{box-sizing:border-box;cursor:pointer;vertical-align:top;width:100%}:host(:not([hidden])){display:inline-block}.ui5-slider-root{box-sizing:border-box;height:3.3125rem;outline:none;padding:var(--_ui5-v1-24-23_slider_padding);touch-action:none}.ui5-slider-inner{background-repeat:no-repeat;position:relative;min-width:var(--_ui5-v1-24-23_slider_inner_min_width);height:100%}.ui5-slider-progress-container{width:100%;background:var(--_ui5-v1-24-23_slider_progress_container_background);border:var(--_ui5-v1-24-23_slider_progress_border);border-radius:var(--_ui5-v1-24-23_slider_progress_border_radius);height:var(--_ui5-v1-24-23_slider_inner_height);position:relative;box-sizing:var(--_ui5-v1-24-23_slider_progress_box_sizing);top:var(--_ui5-v1-24-23_slider_progress_container_top)}.ui5-slider-progress-container:before,.ui5-slider-progress-container:after{display:var(--_ui5-v1-24-23_slider_progress_container_dot_display);content:"";position:absolute;border-radius:50%;width:var(--_ui5-v1-24-23_slider_start_end_point_size);height:var(--_ui5-v1-24-23_slider_start_end_point_size);top:var(--_ui5-v1-24-23_slider_start_end_point_top)}.ui5-slider-progress-container:before{inset-inline-start:var(--_ui5-v1-24-23_slider_start_end_point_left);background-color:var(--_ui5-v1-24-23_slider_progress_before_background);border:var(--_ui5-v1-24-23_slider_progress_before_border)}.ui5-slider-progress-container:after{inset-inline-end:var(--_ui5-v1-24-23_slider_start_end_point_left);background-color:var(--_ui5-v1-24-23_slider_progress_after_background);border:var(--_ui5-v1-24-23_slider_progress_after_border)}.ui5-slider-progress{background:var(--_ui5-v1-24-23_slider_progress_background);border-radius:var(--_ui5-v1-24-23_slider_progress_border_radius);height:var(--_ui5-v1-24-23_slider_progress_height);position:relative;outline:none;box-sizing:border-box;border:var(--_ui5-v1-24-23_slider_active_progress_border);left:var(--_ui5-v1-24-23_slider_active_progress_left);top:var(--_ui5-v1-24-23_slider_active_progress_top)}.ui5-slider-tickmarks{list-style:none;padding:0;margin:0;top:var(--_ui5-v1-24-23_slider_tickmark_top);display:flex;box-sizing:border-box;width:100%;justify-content:space-between;position:absolute;z-index:1}.ui5-slider-tickmarks li{height:var(--_ui5-v1-24-23_slider_tickmark_height);border-inline-start:1px solid var(--_ui5-v1-24-23_slider_tickmark_bg)}.ui5-slider-handle{background:var(--_ui5-v1-24-23_slider_handle_background);border:var(--_ui5-v1-24-23_slider_handle_border);border-radius:var(--_ui5-v1-24-23_slider_handle_border_radius);margin-inline-start:calc(-1 * var(--_ui5-v1-24-23_slider_handle_width) / 2);top:var(--_ui5-v1-24-23_slider_handle_top);position:absolute;outline:none;height:var(--_ui5-v1-24-23_slider_handle_height);width:var(--_ui5-v1-24-23_slider_handle_width);box-sizing:var(--_ui5-v1-24-23_slider_handle_box_sizing);display:flex;justify-content:center;align-items:center;z-index:2}[slider-icon]{display:var(--_ui5-v1-24-23_slider_handle_icon_display);color:var(--sapContent_Selected_ForegroundColor);width:var(--_ui5-v1-24-23_slider_handle_icon_size);height:var(--_ui5-v1-24-23_slider_handle_icon_size)}.ui5-slider-root .ui5-slider-handle:focus [slider-icon]{display:var(--_ui5-v1-24-23_range_slider_active_handle_icon_display)}.ui5-slider-progress-container:hover~.ui5-slider-handle:not(:focus),.ui5-slider-handle:hover{background:var(--_ui5-v1-24-23_slider_handle_hover_background);border:var(--_ui5-v1-24-23_slider_handle_hover_border)}.ui5-slider-root:focus .ui5-slider-inner .ui5-slider-handle,.ui5-slider-handle:focus{outline:var(--_ui5-v1-24-23_slider_handle_outline);outline-offset:var(--_ui5-v1-24-23_slider_handle_outline_offset);border:var(--_ui5-v1-24-23_slider_handle_focus_border);background:var(--_ui5-v1-24-23_slider_handle_background_focus)}.ui5-slider-handle.ui5-slider-handle--start:focus,.ui5-slider-handle--end:focus{border:var(--_ui5-v1-24-23_slider_handle_focus_border)}.ui5-slider-root:focus:hover .ui5-slider-handle,.ui5-slider-handle:focus:hover{border:var(--_ui5-v1-24-23_slider_handle_focus_border)}.ui5-slider-tooltip{display:flex;justify-content:center;align-items:center;visibility:hidden;pointer-events:none;line-height:1rem;position:absolute;left:50%;transform:translate(-50%);bottom:var(--_ui5-v1-24-23_slider_tooltip_bottom);background:var(--_ui5-v1-24-23_slider_tooltip_background);border:var(--_ui5-v1-24-23_slider_tooltip_border);border-radius:var(--_ui5-v1-24-23_slider_tooltip_border_radius);box-shadow:var(--_ui5-v1-24-23_slider_tooltip_box_shadow);font-size:var(--_ui5-v1-24-23_slider_tooltip_fontsize);color:var(--_ui5-v1-24-23_slider_tooltip_color);height:var(--_ui5-v1-24-23_slider_tooltip_height);min-width:var(--_ui5-v1-24-23_slider_tooltip_min_width);padding:var(--_ui5-v1-24-23_slider_tooltip_padding);box-sizing:var(--_ui5-v1-24-23_slider_tooltip_border_box)}.ui5-slider-tooltip-value{position:relative;display:flex;justify-content:center;align-items:center}.ui5-slider-labels{position:absolute;top:1.25rem;margin:0;padding:0;white-space:nowrap}.ui5-slider-labels li{position:relative;list-style:none;padding-top:.3125rem;height:1rem;margin:0;text-align:center;display:inline-block;color:var(--_ui5-v1-24-23_slider_label_color);font-size:var(--_ui5-v1-24-23_slider_label_fontsize);padding-top:0;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;vertical-align:top}.ui5-slider-hidden-labels li:not(:first-child):not(:last-child){visibility:hidden}.ui5-slider-handle:focus .ui5-slider-tooltip{bottom:var(--_ui5-v1-24-23_slider_handle_focused_tooltip_distance)}.ui5-slider-tickmarks li.ui5-slider-tickmark-in-range{border-inline-start:1px solid var(--_ui5-v1-24-23_slider_tickmark_in_range_bg)}:host([show-tickmarks]) .ui5-slider-progress{height:var(--_ui5-v1-24-23_slider_no_tickmarks_progress_height);border:var(--_ui5-v1-24-23_slider_no_tickmarks_active_progress_border);left:var(--_ui5-v1-24-23_slider_no_tickmarks_active_progress_left);top:var(--_ui5-v1-24-23_slider_no_tickmarks_active_progress_top)}:host([show-tickmarks]) .ui5-slider-progress-container{top:var(--_ui5-v1-24-23_slider_no_tickmarks_progress_container_top)}.ui5-slider-handle:focus:after{content:"";display:var(--_ui5-v1-24-23_slider_handle_focus_visibility);width:calc(100% + (var(--sapContent_FocusWidth) * 2) + 2px);height:calc(100% + (var(--sapContent_FocusWidth) * 2) + 2px);border:var(--sapContent_FocusWidth) dotted var(--sapContent_FocusColor);position:absolute;border-radius:var(--_ui5-v1-24-23_slider_handle_border_radius);pointer-events:none}
244
244
  `};var Eo=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},Ro;let Ai=Ro=class extends E{constructor(){super(),this.notResized=!1,this._isUserInteraction=!1,this._isInnerElementFocusing=!1,this._labelWidth=0,this._resizeHandler=this._handleResize.bind(this),this._moveHandler=this._handleMove.bind(this),this._upHandler=this._handleUp.bind(this),this._stateStorage={step:void 0,min:void 0,max:void 0,labelInterval:void 0};const e=t=>{this._onmousedown(t)};this._ontouchstart={handleEvent:e,passive:!0}}_handleMove(e){}_handleUp(){}_onmousedown(e){}_handleActionKeyPress(e){}static get ACTION_KEYS(){return[ke,be,Ee,Te,Bc,Wl,xs,rd,up,QT,rt,jt,Ua,An,Fe]}static get MIN_SPACE_BETWEEN_TICKMARKS(){return 8}static get TOOLTIP_VISIBILITY(){return{VISIBLE:"visible",HIDDEN:"hidden"}}static get render(){return k}static get styles(){return WF}get classes(){return{root:{"ui5-slider-root-phone":Pe()},labelContainer:{"ui5-slider-hidden-labels":this._labelsOverlapping}}}onEnterDOM(){J.register(this,this._resizeHandler)}onExitDOM(){J.deregister(this,this._resizeHandler)}onAfterRendering(){this.notResized&&this._resizeHandler()}_onmouseover(){this.showTooltip&&(this._tooltipVisibility=Ro.TOOLTIP_VISIBILITY.VISIBLE)}_onmouseout(){this.showTooltip&&!this.shadowRoot.activeElement&&(this._tooltipVisibility=Ro.TOOLTIP_VISIBILITY.HIDDEN)}_onkeydown(e){this.disabled||this._effectiveStep===0||Ro._isActionKey(e)&&(e.preventDefault(),this._isUserInteraction=!0,this._handleActionKeyPress(e))}_onkeyup(){this.disabled||(this._isUserInteraction=!1)}_preserveFocus(e){this._isInnerElementFocusing=e}_isFocusing(){return this._isInnerElementFocusing}_preventFocusOut(){this.focusInnerElement()}focusInnerElement(){this.focus()}_handleResize(){if(!this.showTickmarks||(this.notResized=!1,this._spaceBetweenTickmarks()<Ro.MIN_SPACE_BETWEEN_TICKMARKS?(this._hiddenTickmarks=!0,this._labelsOverlapping=!0):this._hiddenTickmarks=!1,this.labelInterval<=0||this._hiddenTickmarks))return;const t=this.shadowRoot.querySelectorAll(".ui5-slider-labels li");this._labelsOverlapping=[...t].some(o=>o.scrollWidth>o.clientWidth)}handleDownBase(e){const t=this._effectiveMin,o=this._effectiveMax,a=this.getBoundingClientRect(),n=this.directionStart,s=this._effectiveStep,l=Ro.getValueFromInteraction(e,s,t,o,a,n);return this._isUserInteraction=!0,window.addEventListener("mouseup",this._upHandler),window.addEventListener("touchend",this._upHandler),Jl()&&e instanceof TouchEvent?window.addEventListener("touchmove",this._moveHandler):window.addEventListener("mousemove",this._moveHandler),this._handleFocusOnMouseDown(e),l}_handleFocusOnMouseDown(e){const t=this.shadowRoot.activeElement;(!t||t!==e.target)&&(this._preserveFocus(!0),this.focusInnerElement())}handleUpBase(){window.removeEventListener("mouseup",this._upHandler),window.removeEventListener("touchend",this._upHandler),window.removeEventListener("mousemove",this._moveHandler),window.removeEventListener("touchmove",this._moveHandler),this._isUserInteraction=!1,this._preserveFocus(!1)}updateStateStorageAndFireInputEvent(e){this.storePropertyState(e),this._isUserInteraction&&this.fireEvent("input")}static _isActionKey(e){return this.ACTION_KEYS.some(t=>t(e))}static clipValue(e,t,o){return e=Math.min(Math.max(e,t),o),e}static getValueFromInteraction(e,t,o,a,n,s){const l=this.getPageXValueFromEvent(e),h=this.computedValueFromPageX(l,o,a,n,s),p=this.getSteppedValue(h,t,o);return this.clipValue(p,o,a)}static getSteppedValue(e,t,o){const a=Math.abs((e-o)%t);if(t===0||a===0)return e;e=a*2>=t?e+t-a:e-a;const n=Ro._getDecimalPrecisionOfNumber(t);return Number(e.toFixed(n))}static getPageXValueFromEvent(e){return Jl()&&e instanceof TouchEvent?e.targetTouches&&e.targetTouches.length>0?e.targetTouches[0].pageX:0:e.pageX}static computedValueFromPageX(e,t,o,a,n){const l=(n==="left"?e-a[n]:a[n]-e)/a.width;return t+l*(o-t)}static _getDecimalPrecisionOfNumber(e){if(Number.isInteger(e))return 0;const t=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return!t||t.length<2?0:Math.max(0,(t[1]?t[1].length:0)-(t[2]?Number(t[2]):0))}isCurrentStateOutdated(){return Object.entries(this._stateStorage).some(([e,t])=>this[e]!==t)}getStoredPropertyState(e){return this._stateStorage[e]}isPropertyUpdated(...e){return e.some(t=>this.getStoredPropertyState(t)!==this[t])}storePropertyState(...e){e.forEach(t=>{this._stateStorage[t]=this[t]})}get directionStart(){return this.effectiveDir==="rtl"?"right":"left"}_createLabels(){if(!this.labelInterval||!this.showTickmarks)return;const e=this.labelInterval,t=this._effectiveStep,o=(this._effectiveMax-this._effectiveMin)/(t*e);if(o===this._oldNumberOfLabels&&this._oldMin===this._effectiveMin&&this._oldMax===this._effectiveMax)return;this._oldMin=this._effectiveMin,this._oldMax=this._effectiveMax,this._oldNumberOfLabels=o,this._labelWidth=100/o,this._labelValues=[];const a=Ro._getDecimalPrecisionOfNumber(t);for(let n=0;n<=o;n++){const s=(n*t*e+this._effectiveMin).toFixed(a);this._labelValues.push(s)}}_handleActionKeyPressBase(e,t){const o=Ro._isIncreaseValueAction(e,this.directionStart),a=Ro._isBigStepAction(e),n=this[t],s=this._effectiveMin,l=this._effectiveMax;let h=this._effectiveStep;return h=a&&(l-s)/h>10?(l-s)/10:h,jt(e)?l-n:rt(e)?(n-s)*-1:o?h:h*-1}static _isIncreaseValueAction(e,t){return t==="right"?Ee(e)||xs(e)||ke(e)||Bc(e)||up(e)||Ua(e):Ee(e)||xs(e)||be(e)||Wl(e)||up(e)||Ua(e)}static _isBigStepAction(e){return rd(e)||xs(e)||Bc(e)||Wl(e)||Ua(e)||An(e)}get _tickmarksCount(){return(this._effectiveMax-this._effectiveMin)/this._effectiveStep}_spaceBetweenTickmarks(){return this.getBoundingClientRect().width/this._tickmarksCount}_validateStep(e){e===0&&console.warn("The 'step' property must be a positive float number"),e<0&&console.warn("The 'step' property must be a positive float number. The provided negative number has been converted to its positve equivalent"),Number.isNaN(e)&&console.warn("The 'step' property must be a positive float number. It has been set to its default value of 1")}get _labels(){return this._labelValues||[]}get _effectiveStep(){let e=this.step;return e<0&&(e=Math.abs(e)),Number.isNaN(e)&&(e=1),e}get _effectiveMin(){return Math.min(this.min,this.max)}get _effectiveMax(){return Math.max(this.min,this.max)}get _tabIndex(){return this.disabled?"-1":"0"}get _ariaLabelledByHandleRefs(){return[`${this._id}-accName`,`${this._id}-sliderDesc`].join(" ").trim()}};Eo([c({validator:it,defaultValue:0})],Ai.prototype,"min",void 0);Eo([c({validator:it,defaultValue:100})],Ai.prototype,"max",void 0);Eo([c({validator:it,defaultValue:1})],Ai.prototype,"step",void 0);Eo([c({validator:q,defaultValue:0})],Ai.prototype,"labelInterval",void 0);Eo([c({type:Boolean})],Ai.prototype,"showTickmarks",void 0);Eo([c({type:Boolean})],Ai.prototype,"showTooltip",void 0);Eo([c({type:Boolean})],Ai.prototype,"disabled",void 0);Eo([c()],Ai.prototype,"accessibleName",void 0);Eo([c({defaultValue:"hidden"})],Ai.prototype,"_tooltipVisibility",void 0);Eo([c({type:Boolean})],Ai.prototype,"_labelsOverlapping",void 0);Eo([c({type:Boolean})],Ai.prototype,"_hiddenTickmarks",void 0);Ai=Ro=Eo([f("change"),f("input")],Ai);const vo=Ai;function GF(i,e,t){return t?d`<div class="ui5-slider-root ${z(this.classes.root)}" @mousedown="${this._onmousedown}" @touchstart="${this._ontouchstart}" @mouseover="${this._onmouseover}" @mouseout="${this._onmouseout}" @keydown="${this._onkeydown}" @keyup="${this._onkeyup}" part="root-container"><span id="${r(this._id)}-startHandleDesc" class="ui5-hidden-text">${r(this._ariaHandlesText.startHandleText)}</span><span id="${r(this._id)}-endHandleDesc" class="ui5-hidden-text">${r(this._ariaHandlesText.endHandleText)}</span><div class="ui5-slider-inner">${this.step?pb.call(this,i,e,t):void 0}<div class="ui5-slider-progress-container" part="progress-container"><div class="ui5-slider-progress" part="progress-bar" style="${H(this.styles.progress)}" @focusin="${this._onfocusin}" @focusout="${this._onfocusout}" role="slider" tabindex="${r(this._tabIndex)}" aria-orientation="horizontal" aria-valuemin="${r(this.min)}" aria-valuemax="${r(this.max)}" aria-valuenow="${r(this._ariaValueNow)}" aria-valuetext="From ${r(this.startValue)} to ${r(this.endValue)}" aria-labelledby="${r(this._ariaLabelledByProgressBarRefs)}" aria-disabled="${r(this._ariaDisabled)}"></div></div><div class="ui5-slider-handle ui5-slider-handle--start" part="handle" style="${H(this.styles.startHandle)}" @focusin="${this._onfocusin}" @focusout="${this._onfocusout}" role="slider" tabindex="${r(this._tabIndex)}" aria-orientation="horizontal" aria-valuemin="${r(this.min)}" aria-valuemax="${r(this.max)}" aria-valuenow="${r(this.startValue)}" aria-labelledby="${r(this._ariaLabelledByStartHandleRefs)}" aria-disabled="${r(this._ariaDisabled)}"><${u("ui5-icon",e,t)} name="direction-arrows" slider-icon></${u("ui5-icon",e,t)}>${this.showTooltip?_b.call(this,i,e,t):void 0}</div><div class="ui5-slider-handle ui5-slider-handle--end" part="handle" style="${H(this.styles.endHandle)}" @focusin="${this._onfocusin}" @focusout="${this._onfocusout}" role="slider" tabindex="${r(this._tabIndex)}" aria-orientation="horizontal" aria-valuemin="${r(this.min)}" aria-valuemax="${r(this.max)}" aria-valuenow="${r(this.endValue)}" aria-labelledby="${r(this._ariaLabelledByEndHandleRefs)}" aria-disabled="${r(this._ariaDisabled)}"><${u("ui5-icon",e,t)} name="direction-arrows" slider-icon></${u("ui5-icon",e,t)}>${this.showTooltip?vb.call(this,i,e,t):void 0}</div></div><span id="${r(this._id)}-accName" class="ui5-hidden-text">${r(this.accessibleName)}</span><span id="${r(this._id)}-sliderDesc" class="ui5-hidden-text">${r(this._ariaLabelledByText)}</span></div> `:d`<div class="ui5-slider-root ${z(this.classes.root)}" @mousedown="${this._onmousedown}" @touchstart="${this._ontouchstart}" @mouseover="${this._onmouseover}" @mouseout="${this._onmouseout}" @keydown="${this._onkeydown}" @keyup="${this._onkeyup}" part="root-container"><span id="${r(this._id)}-startHandleDesc" class="ui5-hidden-text">${r(this._ariaHandlesText.startHandleText)}</span><span id="${r(this._id)}-endHandleDesc" class="ui5-hidden-text">${r(this._ariaHandlesText.endHandleText)}</span><div class="ui5-slider-inner">${this.step?pb.call(this,i,e,t):void 0}<div class="ui5-slider-progress-container" part="progress-container"><div class="ui5-slider-progress" part="progress-bar" style="${H(this.styles.progress)}" @focusin="${this._onfocusin}" @focusout="${this._onfocusout}" role="slider" tabindex="${r(this._tabIndex)}" aria-orientation="horizontal" aria-valuemin="${r(this.min)}" aria-valuemax="${r(this.max)}" aria-valuenow="${r(this._ariaValueNow)}" aria-valuetext="From ${r(this.startValue)} to ${r(this.endValue)}" aria-labelledby="${r(this._ariaLabelledByProgressBarRefs)}" aria-disabled="${r(this._ariaDisabled)}"></div></div><div class="ui5-slider-handle ui5-slider-handle--start" part="handle" style="${H(this.styles.startHandle)}" @focusin="${this._onfocusin}" @focusout="${this._onfocusout}" role="slider" tabindex="${r(this._tabIndex)}" aria-orientation="horizontal" aria-valuemin="${r(this.min)}" aria-valuemax="${r(this.max)}" aria-valuenow="${r(this.startValue)}" aria-labelledby="${r(this._ariaLabelledByStartHandleRefs)}" aria-disabled="${r(this._ariaDisabled)}"><ui5-icon name="direction-arrows" slider-icon></ui5-icon>${this.showTooltip?_b.call(this,i,e,t):void 0}</div><div class="ui5-slider-handle ui5-slider-handle--end" part="handle" style="${H(this.styles.endHandle)}" @focusin="${this._onfocusin}" @focusout="${this._onfocusout}" role="slider" tabindex="${r(this._tabIndex)}" aria-orientation="horizontal" aria-valuemin="${r(this.min)}" aria-valuemax="${r(this.max)}" aria-valuenow="${r(this.endValue)}" aria-labelledby="${r(this._ariaLabelledByEndHandleRefs)}" aria-disabled="${r(this._ariaDisabled)}"><ui5-icon name="direction-arrows" slider-icon></ui5-icon>${this.showTooltip?vb.call(this,i,e,t):void 0}</div></div><span id="${r(this._id)}-accName" class="ui5-hidden-text">${r(this.accessibleName)}</span><span id="${r(this._id)}-sliderDesc" class="ui5-hidden-text">${r(this._ariaLabelledByText)}</span></div> `}function pb(i,e,t){return d`${this.showTickmarks?YF.call(this,i,e,t):void 0}`}function YF(i,e,t){return d`<ul class="ui5-slider-tickmarks">${T(this.tickmarksObject,(o,a)=>o._id||a,(o,a)=>KF.call(this,i,e,t,o,a))}</ul>${this.labelInterval?JF.call(this,i,e,t):void 0}`}function KF(i,e,t,o,a){return d`${o?ZF.call(this,i,e,t,o,a):QF.call(this,i,e,t,o,a)}`}function ZF(i,e,t,o,a){return d`<li class="ui5-slider-tickmark ui5-slider-tickmark-in-range"></li>`}function QF(i,e,t,o,a){return d`<li class="ui5-slider-tickmark"></li>`}function JF(i,e,t){return d`<ul class="ui5-slider-labels ${z(this.classes.labelContainer)}" style="${H(this.styles.labelContainer)}">${T(this._labels,(o,a)=>o._id||a,(o,a)=>eX.call(this,i,e,t,o,a))}</ul>`}function eX(i,e,t,o,a){return d`<li style="${H(this.styles.label)}">${r(o)}</li>`}function _b(i,e,t){return d`<div class="ui5-slider-tooltip ui5-slider-tooltip--start" style="${H(this.styles.tooltip)}"><span class="ui5-slider-tooltip-value">${r(this.tooltipStartValue)}</span></div>`}function vb(i,e,t){return d`<div class="ui5-slider-tooltip ui5-slider-tooltip--end" style="${H(this.styles.tooltip)}"><span class="ui5-slider-tooltip-value">${r(this.tooltipEndValue)}</span></div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@ui5/webcomponents","sap_horizon",async()=>Z);const uw={packageName:"@ui5/webcomponents",fileName:"themes/RangeSlider.css.ts",content:`:host([ui5-range-slider]) .ui5-slider-progress-container:before{background-color:var(--_ui5-v1-24-23_slider_progress_container_dot_background)}.ui5-slider-root:hover:active .ui5-slider-handle:not(:focus){background:var(--sapSlider_RangeHandleBackground)}:host([range-pressed]) .ui5-slider-root:active .ui5-slider-handle:not(:focus){background:var(--_ui5-v1-24-23_range_slider_handle_active_background);border:var(--_ui5-v1-24-23_slider_handle_focus_border);box-shadow:none}:host([range-pressed]) .ui5-slider-handle [slider-icon]{display:var(--_ui5-v1-24-23_range_slider_active_handle_icon_display)}.ui5-slider-root:not(.ui5-slider-root-phone):focus .ui5-slider-inner .ui5-slider-handle,.ui5-slider-root:not(.ui5-slider-root-phone) .ui5-slider-inner .ui5-slider-handle:focus{background:var(--_ui5-v1-24-23_range_slider_handle_background_focus)}.ui5-slider-root:not(.ui5-slider-root-phone) .ui5-slider-inner .ui5-slider-handle:focus [slider-icon]{display:none}.ui5-slider-root:not(.ui5-slider-root-phone) .ui5-slider-progress:focus:before{display:var(--_ui5-v1-24-23_range_slider_legacy_progress_focus_display);content:"";position:absolute;width:var(--_ui5-v1-24-23_range_slider_focus_outline_width);border:var(--_ui5-v1-24-23_slider_progress_outline);border-radius:var(--_ui5-v1-24-23_range_slider_focus_outline_radius);top:var(--_ui5-v1-24-23_slider_progress_outline_offset);height:var(--_ui5-v1-24-23_slider_outer_height);box-sizing:border-box;left:var(--_ui5-v1-24-23_slider_progress_outline_offset_left)}.ui5-slider-progress{position:relative}.ui5-slider-progress:focus:after{border:.125rem solid var(--sapContent_FocusColor);border-radius:.5rem;content:"";display:var(--_ui5-v1-24-23_range_slider_progress_focus_display);position:absolute;top:var(--_ui5-v1-24-23_range_slider_progress_focus_top);left:var(--_ui5-v1-24-23_range_slider_progress_focus_left);padding:var(--_ui5-v1-24-23_range_slider_progress_focus_padding);width:var(--_ui5-v1-24-23_range_slider_progress_focus_width);height:var(--_ui5-v1-24-23_range_slider_progress_focus_height);box-sizing:border-box}.ui5-slider-handle{background:var(--_ui5-v1-24-23_range_slider_handle_background)}.ui5-slider-progress-container:hover~.ui5-slider-handle:not(:focus),.ui5-slider-handle:hover{background:var(--_ui5-v1-24-23_range_slider_root_hover_handle_bg)}.ui5-slider-root:hover .ui5-slider-handle:not(:focus) [slider-icon]{display:var(--_ui5-v1-24-23_range_slider_root_hover_handle_icon_display)}:host([range-pressed]) .ui5-slider-root:active .ui5-slider-handle:not(:focus) [slider-icon]{display:var(--_ui5-v1-24-23_range_slider_root_active_handle_icon_display)}
245
- `};var Ih=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},br;let Mn=br=class extends vo{constructor(){super(),this._isPressInCurrentRange=!1,this._handeIsPressed=!1,this._reversedValues=!1,this._stateStorage.startValue=void 0,this._stateStorage.endValue=void 0}get tooltipStartValue(){const t=this.constructor._getDecimalPrecisionOfNumber(this._effectiveStep);return this.startValue.toFixed(t)}get tooltipEndValue(){const t=this.constructor._getDecimalPrecisionOfNumber(this._effectiveStep);return this.endValue.toFixed(t)}get _ariaDisabled(){return this.disabled||void 0}get _ariaLabelledByText(){return br.i18nBundle.getText(J4)}get _ariaHandlesText(){const e=this.effectiveDir==="rtl",t=this._areValuesReversed(),o={};return e&&!t||!e&&t?(o.startHandleText=br.i18nBundle.getText(Tm),o.endHandleText=br.i18nBundle.getText($m)):(o.startHandleText=br.i18nBundle.getText($m),o.endHandleText=br.i18nBundle.getText(Tm)),o}get _ariaValueNow(){return Math.abs(this.endValue-this.startValue)}onBeforeRendering(){if(this.startValue>this.endValue){const e=this._valueAffected==="startValue"?"endValue":"startValue";this._swapValues(),this._setAffectedValue(e),this.update(e,this.startValue,this.endValue)}this.isCurrentStateOutdated()&&(this.notResized=!0,this.syncUIAndState(),this._updateHandlesAndRange(0))}syncUIAndState(){if(this.isPropertyUpdated("step")&&(this._validateStep(this.step),this.storePropertyState("step")),this.isPropertyUpdated("min","max","startValue","endValue")){this.storePropertyState("min","max");const e=vo.clipValue(this.startValue,this._effectiveMin,this._effectiveMax);this.startValue=e,this.updateStateStorageAndFireInputEvent("startValue"),this.storePropertyState("startValue");const t=vo.clipValue(this.endValue,this._effectiveMin,this._effectiveMax);this.endValue=t,this.updateStateStorageAndFireInputEvent("endValue"),this.storePropertyState("endValue")}this.labelInterval&&this.showTickmarks&&this._createLabels(),this.isPropertyUpdated("labelInterval")&&this.storePropertyState("labelInterval")}_onfocusin(){this._endValueInitial||(this._startValueInitial=this.startValue,this._endValueInitial=this.endValue),this.showTooltip&&(this._tooltipVisibility=vo.TOOLTIP_VISIBILITY.VISIBLE)}_onfocusout(){if(this._isFocusing()){this._preventFocusOut();return}this._setAffectedValue(void 0),this._startValueInitial=void 0,this._endValueInitial=void 0,this.showTooltip&&(this._tooltipVisibility=vo.TOOLTIP_VISIBILITY.HIDDEN)}_onkeyup(){super._onkeyup(),this._setAffectedValue(void 0),(this.startValue!==this._startValueAtBeginningOfAction||this.endValue!==this._endValueAtBeginningOfAction)&&this.fireEvent("change"),this._startValueAtBeginningOfAction=void 0,this._endValueAtBeginningOfAction=void 0}_handleActionKeyPress(e){if(this._startValueAtBeginningOfAction=this.startValue,this._endValueAtBeginningOfAction=this.endValue,Fe(e)){this.update(void 0,this._startValueInitial,this._endValueInitial);return}this._setAffectedValueByFocusedElement();const t=this._effectiveMin,o=this._effectiveMax,a=this._valueAffected;if((jt(e)||rt(e))&&!a){this._homeEndForSelectedRange(e,rt(e)?"startValue":"endValue",t,o);return}const n=this._handleActionKeyPressBase(e,a);if(!n)return;const s=this.constructor;if(a&&!this._isPressInCurrentRange){const l=this[a],h=s.clipValue(n+l,t,o);this.update(a,h,void 0)}else if(n<0&&this.startValue>t||n>0&&this.endValue<o){const l=s.clipValue(n+this.startValue,t,o),h=s.clipValue(n+this.endValue,t,o);this.update(a,l,h)}}_setAffectedValueByFocusedElement(){this.shadowRoot.activeElement===this._startHandle&&this._setAffectedValue("startValue"),this.shadowRoot.activeElement===this._endHandle&&this._setAffectedValue("endValue"),this.shadowRoot.activeElement===this._progressBar&&this._setAffectedValue(void 0),this._setIsPressInCurrentRange(!this._valueAffected)}_homeEndForSelectedRange(e,t,o,a){const n=this._handleActionKeyPressBase(e,t),s=this.constructor,l=s.clipValue(n+this.startValue,o,a),h=s.clipValue(n+this.endValue,o,a);this.update(void 0,l,h)}update(e,t,o){if(!e)this.startValue=t,this.updateStateStorageAndFireInputEvent("startValue"),this.endValue=o,this.updateStateStorageAndFireInputEvent("endValue"),this._updateHandlesAndRange(0);else{const a=o&&e==="endValue"?o:t;this._updateHandlesAndRange(a||0),e==="startValue"&&(this.startValue=a,this.updateStateStorageAndFireInputEvent("startValue")),e==="endValue"&&(this.endValue=a,this.updateStateStorageAndFireInputEvent("endValue"))}}_onmousedown(e){if(this.disabled||this._effectiveStep===0)return;const t=this.handleDownBase(e);if(this._saveInteractionStartData(e,t),this.rangePressed=this._isPressInCurrentRange,this._isPressInCurrentRange||this._handeIsPressed){this._handeIsPressed=!1;return}this.update(this._valueAffected,t,void 0)}_saveInteractionStartData(e,t){const o=this.shadowRoot.querySelector(".ui5-slider-progress").getBoundingClientRect();this._startValueAtBeginningOfAction=this.startValue,this._endValueAtBeginningOfAction=this.endValue;const a=this.constructor;this._initialPageXPosition=a.getPageXValueFromEvent(e),this._pressTargetAndAffectedValue(this._initialPageXPosition,t),this._initialStartHandlePageX=this.directionStart==="left"?o.left:o.right}_handleMove(e){if(e.preventDefault(),!(this.disabled||this._effectiveStep===0)){if(!this._isPressInCurrentRange){this._updateValueOnHandleDrag(e);return}this._updateValueOnRangeDrag(e)}}_updateValueOnHandleDrag(e){const o=this.constructor.getValueFromInteraction(e,this._effectiveStep,this._effectiveMin,this._effectiveMax,this.getBoundingClientRect(),this.directionStart);this.update(this._valueAffected,o,void 0)}_updateValueOnRangeDrag(e){const o=this.constructor.getPageXValueFromEvent(e),a=this._calculateRangeOffset(o,this._initialStartHandlePageX);this._setAffectedValue(void 0),this.update(void 0,a[0],a[1])}_handleUp(){this._setAffectedValueByFocusedElement(),this._setAffectedValue(void 0),(this.startValue!==this._startValueAtBeginningOfAction||this.endValue!==this._endValueAtBeginningOfAction)&&this.fireEvent("change"),this._setIsPressInCurrentRange(!1),this.handleUpBase(),this.rangePressed=!1,this._startValueAtBeginningOfAction=void 0,this._endValueAtBeginningOfAction=void 0}_pressTargetAndAffectedValue(e,t){const o=this.shadowRoot.querySelector(".ui5-slider-handle--start"),a=this.shadowRoot.querySelector(".ui5-slider-handle--end"),n=o.getBoundingClientRect(),s=a.getBoundingClientRect(),l=e>=n.left&&e<=n.right,h=e>=s.left&&e<=s.right;(h||l)&&(this._handeIsPressed=!0),(h||t>this.endValue)&&this._setAffectedValue("endValue"),(l||t<this.startValue)&&this._setAffectedValue("startValue");const p=this._startValueAtBeginningOfAction!==void 0&&this._endValueAtBeginningOfAction!==void 0&&t>=this._startValueAtBeginningOfAction&&t<=this._endValueAtBeginningOfAction;this._setIsPressInCurrentRange(this._valueAffected||this._handeIsPressed?!1:p)}_setAffectedValue(e){this._valueAffected=e,this._areValuesReversed()&&this._setValuesAreReversed()}_setIsPressInCurrentRange(e){this._isPressInCurrentRange=e}focusInnerElement(){const e=this._areValuesReversed(),t=this._valueAffected;(this._isPressInCurrentRange||!t)&&this._progressBar.focus(),(t==="startValue"&&!e||t==="endValue"&&e)&&this._startHandle.focus(),(t==="endValue"&&!e||t==="startValue"&&e)&&this._endHandle.focus()}_calculateRangeOffset(e,t){if(this._initialPageXPosition===e)return[this.startValue,this.endValue];const o=this._effectiveMin,a=this._effectiveMax,n=this.endValue-this.startValue;let s=this._calculateStartValueByOffset(e,t);return s=this.constructor.clipValue(s,o,a-n),[s,s+n]}_calculateStartValueByOffset(e,t){const o=this._effectiveMin,a=this._effectiveMax,n=this._effectiveStep,s=this.getBoundingClientRect();let l,h,p;const _=this.constructor;return e>this._initialPageXPosition?(p=e-this._initialPageXPosition,h=t+p,l=_.computedValueFromPageX(h,o,a,s,this.directionStart),l=_.getSteppedValue(l,n,o)):(p=this._initialPageXPosition-e,h=t-p,l=_.computedValueFromPageX(h,o,a,s,this.directionStart),l=_.getSteppedValue(l,n,o)),l}_updateHandlesAndRange(e){const t=this._effectiveMax,o=this._effectiveMin,a=this.getStoredPropertyState("startValue")||0,n=this.getStoredPropertyState("endValue")||0,s=this._valueAffected;s==="startValue"?(this._selectedRange=(n-e)/(t-o),this._firstHandlePositionFromStart=(e-o)/(t-o)*100):s==="endValue"?(this._selectedRange=(e-a)/(t-o),this._secondHandlePositionFromStart=(e-o)/(t-o)*100):(this._selectedRange=(this.endValue-this.startValue)/(t-o),this._firstHandlePositionFromStart=(this.startValue-o)/(t-o)*100,this._secondHandlePositionFromStart=(this.endValue-o)/(t-o)*100)}_swapValues(){const e=this._valueAffected;if(e){if(e==="startValue"&&this.startValue>this.endValue){const t=this.endValue;this.endValue=this.startValue,this.startValue=t}if(e==="endValue"&&this.endValue<this.startValue){const t=this.startValue;this.startValue=this.endValue,this.endValue=t}this._setValuesAreReversed(),this._updateHandlesAndRange(this[e]),this.focusInnerElement(),this.syncUIAndState()}}_setValuesAreReversed(){this._reversedValues=!this._reversedValues}_areValuesReversed(){return this._reversedValues}get tickmarksObject(){const e=this._tickmarksCount,t=[];if(this._hiddenTickmarks)return[!1,!1];for(let o=0;o<=e;o++){const a=this._effectiveMin+o*this.step>=this.startValue,n=this._effectiveMin+o*this.step<=this.endValue;t.push(a&&n)}return t}get _startHandle(){return this.shadowRoot.querySelector(".ui5-slider-handle--start")}get _endHandle(){return this.shadowRoot.querySelector(".ui5-slider-handle--end")}get _progressBar(){return this.shadowRoot.querySelector(".ui5-slider-progress")}get _ariaLabelledByStartHandleRefs(){return[`${this._id}-accName`,`${this._id}-startHandleDesc`].join(" ").trim()}get _ariaLabelledByEndHandleRefs(){return[`${this._id}-accName`,`${this._id}-endHandleDesc`].join(" ").trim()}get _ariaLabelledByProgressBarRefs(){return[`${this._id}-accName`,`${this._id}-sliderDesc`].join(" ").trim()}get styles(){return{progress:{width:`${this._selectedRange*100}%`,"transform-origin":`${this.directionStart} top`,[this.directionStart]:`${this._firstHandlePositionFromStart}%`},startHandle:{[this.directionStart]:`${this._firstHandlePositionFromStart}%`},endHandle:{[this.directionStart]:`${this._secondHandlePositionFromStart}%`},label:{width:`${this._labelWidth}%`},labelContainer:{width:"100%",[this.directionStart]:`-${this._labelWidth/2}%`},tooltip:{visibility:`${this._tooltipVisibility}`}}}static async onDefine(){br.i18nBundle=await M("@ui5/webcomponents")}};Ih([c({validator:it,defaultValue:0})],Mn.prototype,"startValue",void 0);Ih([c({validator:it,defaultValue:100})],Mn.prototype,"endValue",void 0);Ih([c({type:Boolean})],Mn.prototype,"rangePressed",void 0);Mn=br=Ih([y({tag:"ui5-range-slider",languageAware:!0,template:GF,dependencies:[U],styles:[vo.styles,uw]})],Mn);Mn.define();const tX=Mn;v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const hw={packageName:"@sapudex/web-components",fileName:"themes/Slider.css.ts",content:`:host{--udex-slider-color-track-start-point: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-track-active: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-handle-focus-range: var( --sapSlider_Selected_BorderColor, #0070f2 );--udex-slider-color-handle-active-background: var( --sapSlider_Active_HandleBackground, #ffffff );--udex-slider-color-handle-default-icon: var( --sapContent_Selected_ForegroundColor, #0040b0 );--udex-slider-radius-range-size: var(---udexRadiusM, .5rem)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-231-12_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}
245
+ `};var Ih=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},br;let Mn=br=class extends vo{constructor(){super(),this._isPressInCurrentRange=!1,this._handeIsPressed=!1,this._reversedValues=!1,this._stateStorage.startValue=void 0,this._stateStorage.endValue=void 0}get tooltipStartValue(){const t=this.constructor._getDecimalPrecisionOfNumber(this._effectiveStep);return this.startValue.toFixed(t)}get tooltipEndValue(){const t=this.constructor._getDecimalPrecisionOfNumber(this._effectiveStep);return this.endValue.toFixed(t)}get _ariaDisabled(){return this.disabled||void 0}get _ariaLabelledByText(){return br.i18nBundle.getText(J4)}get _ariaHandlesText(){const e=this.effectiveDir==="rtl",t=this._areValuesReversed(),o={};return e&&!t||!e&&t?(o.startHandleText=br.i18nBundle.getText(Tm),o.endHandleText=br.i18nBundle.getText($m)):(o.startHandleText=br.i18nBundle.getText($m),o.endHandleText=br.i18nBundle.getText(Tm)),o}get _ariaValueNow(){return Math.abs(this.endValue-this.startValue)}onBeforeRendering(){if(this.startValue>this.endValue){const e=this._valueAffected==="startValue"?"endValue":"startValue";this._swapValues(),this._setAffectedValue(e),this.update(e,this.startValue,this.endValue)}this.isCurrentStateOutdated()&&(this.notResized=!0,this.syncUIAndState(),this._updateHandlesAndRange(0))}syncUIAndState(){if(this.isPropertyUpdated("step")&&(this._validateStep(this.step),this.storePropertyState("step")),this.isPropertyUpdated("min","max","startValue","endValue")){this.storePropertyState("min","max");const e=vo.clipValue(this.startValue,this._effectiveMin,this._effectiveMax);this.startValue=e,this.updateStateStorageAndFireInputEvent("startValue"),this.storePropertyState("startValue");const t=vo.clipValue(this.endValue,this._effectiveMin,this._effectiveMax);this.endValue=t,this.updateStateStorageAndFireInputEvent("endValue"),this.storePropertyState("endValue")}this.labelInterval&&this.showTickmarks&&this._createLabels(),this.isPropertyUpdated("labelInterval")&&this.storePropertyState("labelInterval")}_onfocusin(){this._endValueInitial||(this._startValueInitial=this.startValue,this._endValueInitial=this.endValue),this.showTooltip&&(this._tooltipVisibility=vo.TOOLTIP_VISIBILITY.VISIBLE)}_onfocusout(){if(this._isFocusing()){this._preventFocusOut();return}this._setAffectedValue(void 0),this._startValueInitial=void 0,this._endValueInitial=void 0,this.showTooltip&&(this._tooltipVisibility=vo.TOOLTIP_VISIBILITY.HIDDEN)}_onkeyup(){super._onkeyup(),this._setAffectedValue(void 0),(this.startValue!==this._startValueAtBeginningOfAction||this.endValue!==this._endValueAtBeginningOfAction)&&this.fireEvent("change"),this._startValueAtBeginningOfAction=void 0,this._endValueAtBeginningOfAction=void 0}_handleActionKeyPress(e){if(this._startValueAtBeginningOfAction=this.startValue,this._endValueAtBeginningOfAction=this.endValue,Fe(e)){this.update(void 0,this._startValueInitial,this._endValueInitial);return}this._setAffectedValueByFocusedElement();const t=this._effectiveMin,o=this._effectiveMax,a=this._valueAffected;if((jt(e)||rt(e))&&!a){this._homeEndForSelectedRange(e,rt(e)?"startValue":"endValue",t,o);return}const n=this._handleActionKeyPressBase(e,a);if(!n)return;const s=this.constructor;if(a&&!this._isPressInCurrentRange){const l=this[a],h=s.clipValue(n+l,t,o);this.update(a,h,void 0)}else if(n<0&&this.startValue>t||n>0&&this.endValue<o){const l=s.clipValue(n+this.startValue,t,o),h=s.clipValue(n+this.endValue,t,o);this.update(a,l,h)}}_setAffectedValueByFocusedElement(){this.shadowRoot.activeElement===this._startHandle&&this._setAffectedValue("startValue"),this.shadowRoot.activeElement===this._endHandle&&this._setAffectedValue("endValue"),this.shadowRoot.activeElement===this._progressBar&&this._setAffectedValue(void 0),this._setIsPressInCurrentRange(!this._valueAffected)}_homeEndForSelectedRange(e,t,o,a){const n=this._handleActionKeyPressBase(e,t),s=this.constructor,l=s.clipValue(n+this.startValue,o,a),h=s.clipValue(n+this.endValue,o,a);this.update(void 0,l,h)}update(e,t,o){if(!e)this.startValue=t,this.updateStateStorageAndFireInputEvent("startValue"),this.endValue=o,this.updateStateStorageAndFireInputEvent("endValue"),this._updateHandlesAndRange(0);else{const a=o&&e==="endValue"?o:t;this._updateHandlesAndRange(a||0),e==="startValue"&&(this.startValue=a,this.updateStateStorageAndFireInputEvent("startValue")),e==="endValue"&&(this.endValue=a,this.updateStateStorageAndFireInputEvent("endValue"))}}_onmousedown(e){if(this.disabled||this._effectiveStep===0)return;const t=this.handleDownBase(e);if(this._saveInteractionStartData(e,t),this.rangePressed=this._isPressInCurrentRange,this._isPressInCurrentRange||this._handeIsPressed){this._handeIsPressed=!1;return}this.update(this._valueAffected,t,void 0)}_saveInteractionStartData(e,t){const o=this.shadowRoot.querySelector(".ui5-slider-progress").getBoundingClientRect();this._startValueAtBeginningOfAction=this.startValue,this._endValueAtBeginningOfAction=this.endValue;const a=this.constructor;this._initialPageXPosition=a.getPageXValueFromEvent(e),this._pressTargetAndAffectedValue(this._initialPageXPosition,t),this._initialStartHandlePageX=this.directionStart==="left"?o.left:o.right}_handleMove(e){if(e.preventDefault(),!(this.disabled||this._effectiveStep===0)){if(!this._isPressInCurrentRange){this._updateValueOnHandleDrag(e);return}this._updateValueOnRangeDrag(e)}}_updateValueOnHandleDrag(e){const o=this.constructor.getValueFromInteraction(e,this._effectiveStep,this._effectiveMin,this._effectiveMax,this.getBoundingClientRect(),this.directionStart);this.update(this._valueAffected,o,void 0)}_updateValueOnRangeDrag(e){const o=this.constructor.getPageXValueFromEvent(e),a=this._calculateRangeOffset(o,this._initialStartHandlePageX);this._setAffectedValue(void 0),this.update(void 0,a[0],a[1])}_handleUp(){this._setAffectedValueByFocusedElement(),this._setAffectedValue(void 0),(this.startValue!==this._startValueAtBeginningOfAction||this.endValue!==this._endValueAtBeginningOfAction)&&this.fireEvent("change"),this._setIsPressInCurrentRange(!1),this.handleUpBase(),this.rangePressed=!1,this._startValueAtBeginningOfAction=void 0,this._endValueAtBeginningOfAction=void 0}_pressTargetAndAffectedValue(e,t){const o=this.shadowRoot.querySelector(".ui5-slider-handle--start"),a=this.shadowRoot.querySelector(".ui5-slider-handle--end"),n=o.getBoundingClientRect(),s=a.getBoundingClientRect(),l=e>=n.left&&e<=n.right,h=e>=s.left&&e<=s.right;(h||l)&&(this._handeIsPressed=!0),(h||t>this.endValue)&&this._setAffectedValue("endValue"),(l||t<this.startValue)&&this._setAffectedValue("startValue");const p=this._startValueAtBeginningOfAction!==void 0&&this._endValueAtBeginningOfAction!==void 0&&t>=this._startValueAtBeginningOfAction&&t<=this._endValueAtBeginningOfAction;this._setIsPressInCurrentRange(this._valueAffected||this._handeIsPressed?!1:p)}_setAffectedValue(e){this._valueAffected=e,this._areValuesReversed()&&this._setValuesAreReversed()}_setIsPressInCurrentRange(e){this._isPressInCurrentRange=e}focusInnerElement(){const e=this._areValuesReversed(),t=this._valueAffected;(this._isPressInCurrentRange||!t)&&this._progressBar.focus(),(t==="startValue"&&!e||t==="endValue"&&e)&&this._startHandle.focus(),(t==="endValue"&&!e||t==="startValue"&&e)&&this._endHandle.focus()}_calculateRangeOffset(e,t){if(this._initialPageXPosition===e)return[this.startValue,this.endValue];const o=this._effectiveMin,a=this._effectiveMax,n=this.endValue-this.startValue;let s=this._calculateStartValueByOffset(e,t);return s=this.constructor.clipValue(s,o,a-n),[s,s+n]}_calculateStartValueByOffset(e,t){const o=this._effectiveMin,a=this._effectiveMax,n=this._effectiveStep,s=this.getBoundingClientRect();let l,h,p;const _=this.constructor;return e>this._initialPageXPosition?(p=e-this._initialPageXPosition,h=t+p,l=_.computedValueFromPageX(h,o,a,s,this.directionStart),l=_.getSteppedValue(l,n,o)):(p=this._initialPageXPosition-e,h=t-p,l=_.computedValueFromPageX(h,o,a,s,this.directionStart),l=_.getSteppedValue(l,n,o)),l}_updateHandlesAndRange(e){const t=this._effectiveMax,o=this._effectiveMin,a=this.getStoredPropertyState("startValue")||0,n=this.getStoredPropertyState("endValue")||0,s=this._valueAffected;s==="startValue"?(this._selectedRange=(n-e)/(t-o),this._firstHandlePositionFromStart=(e-o)/(t-o)*100):s==="endValue"?(this._selectedRange=(e-a)/(t-o),this._secondHandlePositionFromStart=(e-o)/(t-o)*100):(this._selectedRange=(this.endValue-this.startValue)/(t-o),this._firstHandlePositionFromStart=(this.startValue-o)/(t-o)*100,this._secondHandlePositionFromStart=(this.endValue-o)/(t-o)*100)}_swapValues(){const e=this._valueAffected;if(e){if(e==="startValue"&&this.startValue>this.endValue){const t=this.endValue;this.endValue=this.startValue,this.startValue=t}if(e==="endValue"&&this.endValue<this.startValue){const t=this.startValue;this.startValue=this.endValue,this.endValue=t}this._setValuesAreReversed(),this._updateHandlesAndRange(this[e]),this.focusInnerElement(),this.syncUIAndState()}}_setValuesAreReversed(){this._reversedValues=!this._reversedValues}_areValuesReversed(){return this._reversedValues}get tickmarksObject(){const e=this._tickmarksCount,t=[];if(this._hiddenTickmarks)return[!1,!1];for(let o=0;o<=e;o++){const a=this._effectiveMin+o*this.step>=this.startValue,n=this._effectiveMin+o*this.step<=this.endValue;t.push(a&&n)}return t}get _startHandle(){return this.shadowRoot.querySelector(".ui5-slider-handle--start")}get _endHandle(){return this.shadowRoot.querySelector(".ui5-slider-handle--end")}get _progressBar(){return this.shadowRoot.querySelector(".ui5-slider-progress")}get _ariaLabelledByStartHandleRefs(){return[`${this._id}-accName`,`${this._id}-startHandleDesc`].join(" ").trim()}get _ariaLabelledByEndHandleRefs(){return[`${this._id}-accName`,`${this._id}-endHandleDesc`].join(" ").trim()}get _ariaLabelledByProgressBarRefs(){return[`${this._id}-accName`,`${this._id}-sliderDesc`].join(" ").trim()}get styles(){return{progress:{width:`${this._selectedRange*100}%`,"transform-origin":`${this.directionStart} top`,[this.directionStart]:`${this._firstHandlePositionFromStart}%`},startHandle:{[this.directionStart]:`${this._firstHandlePositionFromStart}%`},endHandle:{[this.directionStart]:`${this._secondHandlePositionFromStart}%`},label:{width:`${this._labelWidth}%`},labelContainer:{width:"100%",[this.directionStart]:`-${this._labelWidth/2}%`},tooltip:{visibility:`${this._tooltipVisibility}`}}}static async onDefine(){br.i18nBundle=await M("@ui5/webcomponents")}};Ih([c({validator:it,defaultValue:0})],Mn.prototype,"startValue",void 0);Ih([c({validator:it,defaultValue:100})],Mn.prototype,"endValue",void 0);Ih([c({type:Boolean})],Mn.prototype,"rangePressed",void 0);Mn=br=Ih([y({tag:"ui5-range-slider",languageAware:!0,template:GF,dependencies:[U],styles:[vo.styles,uw]})],Mn);Mn.define();const tX=Mn;v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const hw={packageName:"@sapudex/web-components",fileName:"themes/Slider.css.ts",content:`:host{--udex-slider-color-track-start-point: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-track-active: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-handle-focus-range: var( --sapSlider_Selected_BorderColor, #0070f2 );--udex-slider-color-handle-active-background: var( --sapSlider_Active_HandleBackground, #ffffff );--udex-slider-color-handle-default-icon: var( --sapContent_Selected_ForegroundColor, #0040b0 );--udex-slider-radius-range-size: var(---udexRadiusM, .5rem)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-231-13_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}
246
246
  `};var iX=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let Y_=class extends tX{onEnterDOM(){ge()&&this.setAttribute("desktop","")}};Y_=iX([y({tag:"udex-range-slider",renderer:k,styles:[vo.styles,uw,hw]})],Y_);Y_.define();function oX(i,e,t){return t?d`<div class="udex-rating-bar__container"><div aria-hidden="true" class="udex-rating-bar__rating">${r(this.validatedRating)}</div><${u("ui5-icon",e,t)} role="img" aria-labelledby="ratingDescription" name="favorite" class="udex-rating__icon"></${u("ui5-icon",e,t)}><div class="udex-rating-bar__track"><div class="udex-rating-bar__progress"></div></div>${this.showPercentage?gb.call(this,i,e,t):void 0}<span id="ratingDescription" class="hidden-text">${r(this._ratingDescription)}</span></div>`:d`<div class="udex-rating-bar__container"><div aria-hidden="true" class="udex-rating-bar__rating">${r(this.validatedRating)}</div><ui5-icon role="img" aria-labelledby="ratingDescription" name="favorite" class="udex-rating__icon"></ui5-icon><div class="udex-rating-bar__track"><div class="udex-rating-bar__progress"></div></div>${this.showPercentage?gb.call(this,i,e,t):void 0}<span id="ratingDescription" class="hidden-text">${r(this._ratingDescription)}</span></div>`}function gb(i,e,t){return d`<div role="note" class="udex-rating-bar__percentage" aria-label="${r(this.validatedPercentage)}">${r(this.validatedPercentage)}</div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const aX={packageName:"@sapudex/web-components",fileName:"themes/RatingBar.css.ts",content:`:host{--udex-rating-bar-progress-color: var(--udexColorMango6);--udex-rating-bar-progress-track-color: var(--udexColorGrey1);--udex-rating-bar-text-color: var(--udexColorGrey7);--udex-rating-bar-container-height: 1.5rem;--udex-rating-bar-progress: 100%;--udex-rating-bar-track-height: .75rem;--udex-rating-bar-progress-radius: var(---udexRadiusM, .5rem)}.udex-rating-bar__container{display:flex;flex-direction:row;align-items:center;gap:var(--udexSpacer4);height:var(--udex-rating-bar-container-height);font-family:var(--sapFontFamily, sans-serif)}.udex-rating-bar__percentage,.udex-rating-bar__rating{color:var(--udex-rating-bar-text-color);font-size:var(--udexTypographyBodySFontSize);font-weight:var(--udexTypographyFontWeightRegular);line-height:var(--udexTypographyBodyLineHeight)}.udex-rating-bar__track{width:100%;height:var(--udex-rating-bar-track-height);background-color:var(--udex-rating-bar-progress-track-color);border:none;overflow:hidden;border-radius:var(--udex-rating-bar-progress-radius)}.udex-rating-bar__progress{width:var(--udex-rating-bar-progress);height:100%;background-color:var(--udex-rating-bar-progress-color);border:none;border-radius:var(--udex-rating-bar-progress-radius)}.udex-rating__icon{height:.875rem;width:.875rem;color:var(--udexColorMango6)}.hidden-text{display:none}
247
247
  `};var Bh=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},Kc;let On=Kc=class extends E{constructor(){super(...arguments),this._minRating=0,this._maxRating=5,this._minPercentage=0,this._maxPercentage=100}static async onDefine(){Kc.i18nBundle=await M("@sapudex/web-components")}onBeforeRendering(){this.style.setProperty("--udex-rating-bar-progress",`${this.percentage}%`)}get validatedRating(){return this.rating>this._maxRating?(console.warn("UDEx RatingBar: The rating shouldn't be more than 5."),this._maxRating):this.rating<this._minRating?(console.warn("UDEx RatingBar: The rating shouldn't be less than 0."),this._minRating):this.rating}get validatedPercentage(){return this.percentage>this._maxPercentage?(console.warn("UDEx RatingBar: The percentage shouldn't be more than 100."),`${this._maxPercentage}%`):this.percentage<this._minPercentage?(console.warn("UDEx RatingBar: The percentage shouldn't be less than 0."),`${this._minPercentage}%`):`${this.percentage}%`}get _ratingDescription(){return`${this.validatedRating} ${Kc.i18nBundle.getText(Qy)}`}};Bh([c({type:Number,defaultValue:0,validator:q})],On.prototype,"rating",void 0);Bh([c({type:Number,defaultValue:0,validator:q})],On.prototype,"percentage",void 0);Bh([c({type:Boolean})],On.prototype,"showPercentage",void 0);On=Kc=Bh([y({tag:"udex-rating-bar",renderer:k,styles:aX,template:oX,dependencies:[U]})],On);On.define();const pw=On;function rX(i,e,t){return d`<div class="ui5-rating-indicator-root" role="slider" aria-roledescription="${r(this._ariaRoleDescription)}" aria-valuemin="0" aria-valuenow="${r(this.value)}" aria-valuemax="${r(this.max)}" aria-valuetext="${r(this.value)} of ${r(this.max)}" aria-orientation="horizontal" aria-disabled="${r(this._ariaDisabled)}" aria-readonly="${r(this.ariaReadonly)}" aria-description="${r(this._ariaDescription)}" tabindex="${r(this.effectiveTabIndex)}" @focusin="${this._onfocusin}" @focusout="${this._onfocusout}" @click="${this._onclick}" @keydown="${this._onkeydown}" title="${r(this.ratingTooltip)}" aria-label="${r(this._ariaLabel)}"><ul class="ui5-rating-indicator-list" aria-hidden="true">${T(this._stars,(o,a)=>o._id||a,(o,a)=>nX.call(this,i,e,t,o,a))}</ul></div>`}function nX(i,e,t,o,a){return d`${o.selected?sX.call(this,i,e,t,o,a):lX.call(this,i,e,t,o,a)}`}function sX(i,e,t,o,a){return t?d`<li data-ui5-value="${r(o.index)}" class="ui5-rating-indicator-item ui5-rating-indicator-item-sel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="favorite"></${u("ui5-icon",e,t)}></li>`:d`<li data-ui5-value="${r(o.index)}" class="ui5-rating-indicator-item ui5-rating-indicator-item-sel"><ui5-icon data-ui5-value="${r(o.index)}" name="favorite"></ui5-icon></li>`}function lX(i,e,t,o,a){return d`${o.halfStar?dX.call(this,i,e,t,o,a):cX.call(this,i,e,t,o,a)}`}function dX(i,e,t,o,a){return t?d`<li class="ui5-rating-indicator-item ui5-rating-indicator-item-half"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="unfavorite"></${u("ui5-icon",e,t)}><div class="ui5-rating-indicator-half-icon-wrapper"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="favorite" class="ui5-rating-indicator-half-icon"></${u("ui5-icon",e,t)}></div></li>`:d`<li class="ui5-rating-indicator-item ui5-rating-indicator-item-half"><ui5-icon data-ui5-value="${r(o.index)}" name="unfavorite"></ui5-icon><div class="ui5-rating-indicator-half-icon-wrapper"><ui5-icon data-ui5-value="${r(o.index)}" name="favorite" class="ui5-rating-indicator-half-icon"></ui5-icon></div></li>`}function cX(i,e,t,o,a){return d`${this.readonly?uX.call(this,i,e,t,o,a):hX.call(this,i,e,t,o,a)}`}function uX(i,e,t,o,a){return t?d`<li class="ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="favorite"></${u("ui5-icon",e,t)}></li>`:d`<li class="ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><ui5-icon data-ui5-value="${r(o.index)}" name="favorite"></ui5-icon></li>`}function hX(i,e,t,o,a){return d`${this.disabled?pX.call(this,i,e,t,o,a):_X.call(this,i,e,t,o,a)}`}function pX(i,e,t,o,a){return t?d`<li class="ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="favorite"></${u("ui5-icon",e,t)}></li>`:d`<li class="ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><ui5-icon data-ui5-value="${r(o.index)}" name="favorite"></ui5-icon></li>`}function _X(i,e,t,o,a){return t?d`<li data-ui5-value="${r(o.index)}" class="ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="unfavorite"></${u("ui5-icon",e,t)}></li>`:d`<li data-ui5-value="${r(o.index)}" class="ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><ui5-icon data-ui5-value="${r(o.index)}" name="unfavorite"></ui5-icon></li>`}const vX="favorite",_w="M378.36 297.834q-5.996 3.998-2.998 8.995l71.96 193.892q1.999 4.997-2.499 8.995t-9.494.999l-174.903-123.93q-4.997-3-8.995 0L76.53 510.714q-4.997 2.998-9.495-1t-2.499-8.994l71.96-193.892q2-5.997-2.998-8.995L3.569 205.885q-4.997-2.998-2.998-8.495t6.996-5.497h165.908q4.997 0 7.995-4.997L248.433 4.997Q250.432 0 255.929 0t7.495 4.997l66.963 181.899q1.999 4.997 7.996 4.997H503.29q5.996 0 7.995 5.497t-2.998 8.495z",gX=!1,mX="SAP-icons-v4",fX="@ui5/webcomponents-icons";D(vX,{pathData:_w,ltr:gX,collection:mX,packageName:fX});const bX="favorite",vw="M0 198q0-9 6.5-16t15.5-9l148-21 63-137q7-15 23-15t23 15l64 137 147 21q10 2 16 9t6 16q0 11-7 18L399 328l26 154q1 2 1 5 0 10-7.5 17.5T400 512q-6 0-12-3l-132-74-132 74q-4 3-12 3-11 0-18.5-7.5T86 487q0-2 .5-2.5t.5-2.5l26-154L7 216q-7-7-7-18z",xX=!1,yX="SAP-icons-v5",wX="@ui5/webcomponents-icons";D(bX,{pathData:vw,ltr:xX,collection:yX,packageName:wX});oe();const kX="unfavorite",gw="M8.569 191.946h164.954q5.998 0 7.998-4.998l66.981-181.95Q250.502 0 256.5 0q4.998 0 6.998 4.999l66.981 181.949q2 4.998 7.998 4.998h165.954q4.998 0 6.998 5.499t-3 8.498l-129.963 91.974q-4 2.999-3 8.997l71.98 193.946q2 4.999-1 7.998t-6.997 3q-3 0-4-1L260.5 386.891q-1-1-4-1-3.998 0-4.998 1L76.551 510.857q-1 1-4 1-3.999 0-6.998-2.999t-1-7.998l71.98-193.946q2-5.998-2.999-8.997L3.57 205.943q-4.998-3-2.999-8.498t7.998-5.499zm143.96 79.978q10.997 7.998 14.996 20.494t-1 25.493l-44.987 121.966L233.506 360.9q9.997-6.998 22.994-6.998 11.996 0 21.994 5.999l111.968 79.977-44.987-121.966q-4.999-12.996-1-25.493t14.996-20.494l68.98-47.986h-89.974q-26.992 0-37.99-25.993L256.5 76.979l-44.988 120.966q-10.997 25.993-37.989 25.993H84.548z",SX=!1,$X="SAP-icons-v4",TX="@ui5/webcomponents-icons";D(kX,{pathData:gw,ltr:SX,collection:$X,packageName:TX});const CX="unfavorite",mw="M400 510q-7 0-12-3l-132-74-131 74q-6 3-13 3-11 0-18.5-7T86 485q0-2 .5-2.5t.5-1.5l26-155L7 214q-7-7-7-17t6.5-17 15.5-9l148-21 63-137q7-15 23-15t23 15l64 137 147 21q10 2 16 9t6 17q0 11-7 17L399 326l26 155q1 1 1 4 0 11-7.5 18t-18.5 7zM256 379q7 0 13 3l97 54-20-114q0-7 1-12t6-10l81-85-112-16q-13-1-20-15l-46-99-46 99q-5 13-19 15L78 215l81 85q5 5 6 10t1 12l-20 114 98-54q5-3 12-3z",IX=!1,BX="SAP-icons-v5",EX="@ui5/webcomponents-icons";D(CX,{pathData:mw,ltr:IX,collection:BX,packageName:EX});oe();v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@ui5/webcomponents","sap_horizon",async()=>Z);const AX={packageName:"@ui5/webcomponents",fileName:"themes/RatingIndicator.css.ts",content:`:host(:not([hidden])){display:inline-block;font-size:24px;margin:var(--_ui5-v1-24-23_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:.4;cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .ui5-rating-indicator-item-unsel,:host([readonly]) .ui5-rating-indicator-item-unsel{padding-inline:var(--_ui5-v1-24-23_rating_indicator_readonly_item_spacing);width:var(--_ui5-v1-24-23_rating_indicator_readonly_item_width);height:var(--_ui5-v1-24-23_rating_indicator_readonly_item_height)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:.9}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:var(--_ui5-v1-24-23_rating_indicator_outline_offset);border-radius:var(--_ui5-v1-24-23_rating_indicator_border_radius)}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.ui5-rating-indicator-root{outline:none;position:relative}.ui5-rating-indicator-list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.ui5-rating-indicator-item{position:relative;width:var(--_ui5-v1-24-23_rating_indicator_item_width);height:var(--_ui5-v1-24-23_rating_indicator_item_height)}.ui5-rating-indicator-item:not(:last-child){margin-inline-end:.1875rem}.ui5-rating-indicator-item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.ui5-rating-indicator-item.ui5-rating-indicator-item-sel{color:var(--sapContent_RatedColor)}.ui5-rating-indicator-item.ui5-rating-indicator-item-unsel,.ui5-rating-indicator-item.ui5-rating-indicator-item-half{color:var(--sapContent_UnratedColor)}.ui5-rating-indicator-item [ui5-icon].ui5-rating-indicator-half-icon{position:absolute;inset-inline-start:50%;color:var(--sapContent_RatedColor)}.ui5-rating-indicator-half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}
248
- `};var ta=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},_s;let Di=_s=class extends E{static async onDefine(){_s.i18nBundle=await M("@ui5/webcomponents")}constructor(){super()}onBeforeRendering(){this.calcState()}calcState(){this._stars=[];for(let e=1;e<this.max+1;e++){const t=Math.round((this.value-Math.floor(this.value))*10);let o=!1,a=this.value;Math.floor(this.value)+1===e&&t>2&&t<8?o=!0:t<=2?a=Math.floor(this.value):t>=8&&(a=Math.ceil(this.value)),this._stars.push({selected:e<=a,index:e,halfStar:o})}}_onclick(e){const t=e.target;if(!(t instanceof HTMLElement)||this.disabled||this.readonly)return;const o=t.getAttribute("data-ui5-value");o!==null&&(this.value=parseInt(o),this.value===1&&this._liveValue===1&&(this.value=0),this._liveValue!==this.value&&(this.fireEvent("change"),this._liveValue=this.value))}_onkeydown(e){if(this.disabled||this.readonly)return;const t=Te(e)||ke(e),o=be(e)||Ee(e),a=F(e)||K(e),n=rt(e),s=jt(e),l=e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105;if(t||o||a||n||s||l){if(e.preventDefault(),t&&this.value>0)this.value=Math.round(this.value-1);else if(o&&this.value<this.max)this.value=Math.round(this.value+1);else if(a){const h=Math.round(this.value+1);this.value=h>this.max?0:h}else if(n)this.value=0;else if(s)this.value=this.max;else if(l){const h=parseInt(e.key);this.value=h>this.max?this.max:h}this.fireEvent("change")}}_onfocusin(){this.disabled||(this._focused=!0,this._liveValue=this.value)}_onfocusout(){this._focused=!1}get effectiveTabIndex(){const e=this.getAttribute("tabindex");return this.disabled?"-1":e||"0"}get ratingTooltip(){return this.tooltip?this.tooltip:Yp()?this.defaultTooltip:void 0}get defaultTooltip(){return _s.i18nBundle.getText(eI)}get _ariaRoleDescription(){return _s.i18nBundle.getText(tI)}get _ariaDisabled(){return this.disabled||void 0}get _ariaLabel(){return Ia(this)}get _ariaDescription(){return this.required?_s.i18nBundle.getText(iI):void 0}get ariaReadonly(){return this.readonly?"true":void 0}};ta([c({validator:it,defaultValue:0})],Di.prototype,"value",void 0);ta([c({validator:q,defaultValue:5})],Di.prototype,"max",void 0);ta([c({type:Boolean})],Di.prototype,"disabled",void 0);ta([c({type:Boolean})],Di.prototype,"readonly",void 0);ta([c()],Di.prototype,"accessibleName",void 0);ta([c({defaultValue:""})],Di.prototype,"accessibleNameRef",void 0);ta([c({type:Boolean})],Di.prototype,"required",void 0);ta([c()],Di.prototype,"tooltip",void 0);ta([c({type:Object,multiple:!0})],Di.prototype,"_stars",void 0);ta([c({type:Boolean})],Di.prototype,"_focused",void 0);Di=_s=ta([y({tag:"ui5-rating-indicator",languageAware:!0,renderer:k,styles:AX,template:rX,dependencies:[U]}),f("change")],Di);Di.define();const K_=Di;function DX(i,e,t){return d`<div class="udex-rating-indicator ui5-rating-indicator-root ${r(this.classNames)}" role="slider" aria-roledescription="${r(this._ariaRoleDescription)}" aria-valuemin="0" aria-valuenow="${r(this.value)}" aria-valuemax="${r(this.max)}" aria-valuetext="${r(this.value)} of ${r(this.max)}" aria-orientation="horizontal" aria-disabled="${r(this._ariaDisabled)}" aria-readonly="${r(this.ariaReadonly)}" aria-description="${r(this._ariaDescription)}" tabindex="${r(this.effectiveTabIndex)}" @focusin="${this._onfocusin}" @focusout="${this._onfocusout}" @click="${this._onclick}" @keydown="${this._onkeydown}" title="${r(this.ratingTooltip)}" aria-label="${r(this._ariaLabel)}"><ul class="udex-rating-indicator__list ui5-rating-indicator-list" aria-hidden="true">${T(this._stars,(o,a)=>o._id||a,(o,a)=>PX.call(this,i,e,t,o,a))}</ul>${this.totalCount?XX.call(this,i,e,t):void 0}</div>`}function PX(i,e,t,o,a){return d`${o.selected?NX.call(this,i,e,t,o,a):RX.call(this,i,e,t,o,a)}`}function NX(i,e,t,o,a){return t?d`<li data-ui5-value="${r(o.index)}" class="udex-rating-indicator__item udex-rating-indicator__item-sel ui5-rating-indicator-item ui5-rating-indicator-item-sel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="favorite"></${u("ui5-icon",e,t)}></li>`:d`<li data-ui5-value="${r(o.index)}" class="udex-rating-indicator__item udex-rating-indicator__item-sel ui5-rating-indicator-item ui5-rating-indicator-item-sel"><ui5-icon data-ui5-value="${r(o.index)}" name="favorite"></ui5-icon></li>`}function RX(i,e,t,o,a){return d`${o.halfStar?LX.call(this,i,e,t,o,a):jX.call(this,i,e,t,o,a)}`}function LX(i,e,t,o,a){return t?d`<li class="udex-rating-indicator__item udex-rating-indicator__item-half ui5-rating-indicator-item ui5-rating-indicator-item-half"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="unfavorite"></${u("ui5-icon",e,t)}><div class="udex-rating-indicator__half-icon-wrapper ui5-rating-indicator-half-icon-wrapper"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="favorite" class="udex-rating-indicator__half-icon ui5-rating-indicator-half-icon"></${u("ui5-icon",e,t)}></div></li>`:d`<li class="udex-rating-indicator__item udex-rating-indicator__item-half ui5-rating-indicator-item ui5-rating-indicator-item-half"><ui5-icon data-ui5-value="${r(o.index)}" name="unfavorite"></ui5-icon><div class="udex-rating-indicator__half-icon-wrapper ui5-rating-indicator-half-icon-wrapper"><ui5-icon data-ui5-value="${r(o.index)}" name="favorite" class="udex-rating-indicator__half-icon ui5-rating-indicator-half-icon"></ui5-icon></div></li>`}function jX(i,e,t,o,a){return d`${this.readonly?MX.call(this,i,e,t,o,a):OX.call(this,i,e,t,o,a)}`}function MX(i,e,t,o,a){return t?d`<li class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="unfavorite"></${u("ui5-icon",e,t)}></li>`:d`<li class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><ui5-icon data-ui5-value="${r(o.index)}" name="unfavorite"></ui5-icon></li>`}function OX(i,e,t,o,a){return d`${this.disabled?zX.call(this,i,e,t,o,a):FX.call(this,i,e,t,o,a)}`}function zX(i,e,t,o,a){return t?d`<li class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="unfavorite"></${u("ui5-icon",e,t)}></li>`:d`<li class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><ui5-icon data-ui5-value="${r(o.index)}" name="unfavorite"></ui5-icon></li>`}function FX(i,e,t,o,a){return t?d`<li data-ui5-value="${r(o.index)}" class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="unfavorite"></${u("ui5-icon",e,t)}></li>`:d`<li data-ui5-value="${r(o.index)}" class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><ui5-icon data-ui5-value="${r(o.index)}" name="unfavorite"></ui5-icon></li>`}function XX(i,e,t){return d`<div class="udex-rating-indicator__total">&#40;${r(this.totalCount)}&#41;</div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const HX={packageName:"@sapudex/web-components",fileName:"themes/RatingIndicator.css.ts",content:`:host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-231-12_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}
248
+ `};var ta=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},_s;let Di=_s=class extends E{static async onDefine(){_s.i18nBundle=await M("@ui5/webcomponents")}constructor(){super()}onBeforeRendering(){this.calcState()}calcState(){this._stars=[];for(let e=1;e<this.max+1;e++){const t=Math.round((this.value-Math.floor(this.value))*10);let o=!1,a=this.value;Math.floor(this.value)+1===e&&t>2&&t<8?o=!0:t<=2?a=Math.floor(this.value):t>=8&&(a=Math.ceil(this.value)),this._stars.push({selected:e<=a,index:e,halfStar:o})}}_onclick(e){const t=e.target;if(!(t instanceof HTMLElement)||this.disabled||this.readonly)return;const o=t.getAttribute("data-ui5-value");o!==null&&(this.value=parseInt(o),this.value===1&&this._liveValue===1&&(this.value=0),this._liveValue!==this.value&&(this.fireEvent("change"),this._liveValue=this.value))}_onkeydown(e){if(this.disabled||this.readonly)return;const t=Te(e)||ke(e),o=be(e)||Ee(e),a=F(e)||K(e),n=rt(e),s=jt(e),l=e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105;if(t||o||a||n||s||l){if(e.preventDefault(),t&&this.value>0)this.value=Math.round(this.value-1);else if(o&&this.value<this.max)this.value=Math.round(this.value+1);else if(a){const h=Math.round(this.value+1);this.value=h>this.max?0:h}else if(n)this.value=0;else if(s)this.value=this.max;else if(l){const h=parseInt(e.key);this.value=h>this.max?this.max:h}this.fireEvent("change")}}_onfocusin(){this.disabled||(this._focused=!0,this._liveValue=this.value)}_onfocusout(){this._focused=!1}get effectiveTabIndex(){const e=this.getAttribute("tabindex");return this.disabled?"-1":e||"0"}get ratingTooltip(){return this.tooltip?this.tooltip:Yp()?this.defaultTooltip:void 0}get defaultTooltip(){return _s.i18nBundle.getText(eI)}get _ariaRoleDescription(){return _s.i18nBundle.getText(tI)}get _ariaDisabled(){return this.disabled||void 0}get _ariaLabel(){return Ia(this)}get _ariaDescription(){return this.required?_s.i18nBundle.getText(iI):void 0}get ariaReadonly(){return this.readonly?"true":void 0}};ta([c({validator:it,defaultValue:0})],Di.prototype,"value",void 0);ta([c({validator:q,defaultValue:5})],Di.prototype,"max",void 0);ta([c({type:Boolean})],Di.prototype,"disabled",void 0);ta([c({type:Boolean})],Di.prototype,"readonly",void 0);ta([c()],Di.prototype,"accessibleName",void 0);ta([c({defaultValue:""})],Di.prototype,"accessibleNameRef",void 0);ta([c({type:Boolean})],Di.prototype,"required",void 0);ta([c()],Di.prototype,"tooltip",void 0);ta([c({type:Object,multiple:!0})],Di.prototype,"_stars",void 0);ta([c({type:Boolean})],Di.prototype,"_focused",void 0);Di=_s=ta([y({tag:"ui5-rating-indicator",languageAware:!0,renderer:k,styles:AX,template:rX,dependencies:[U]}),f("change")],Di);Di.define();const K_=Di;function DX(i,e,t){return d`<div class="udex-rating-indicator ui5-rating-indicator-root ${r(this.classNames)}" role="slider" aria-roledescription="${r(this._ariaRoleDescription)}" aria-valuemin="0" aria-valuenow="${r(this.value)}" aria-valuemax="${r(this.max)}" aria-valuetext="${r(this.value)} of ${r(this.max)}" aria-orientation="horizontal" aria-disabled="${r(this._ariaDisabled)}" aria-readonly="${r(this.ariaReadonly)}" aria-description="${r(this._ariaDescription)}" tabindex="${r(this.effectiveTabIndex)}" @focusin="${this._onfocusin}" @focusout="${this._onfocusout}" @click="${this._onclick}" @keydown="${this._onkeydown}" title="${r(this.ratingTooltip)}" aria-label="${r(this._ariaLabel)}"><ul class="udex-rating-indicator__list ui5-rating-indicator-list" aria-hidden="true">${T(this._stars,(o,a)=>o._id||a,(o,a)=>PX.call(this,i,e,t,o,a))}</ul>${this.totalCount?XX.call(this,i,e,t):void 0}</div>`}function PX(i,e,t,o,a){return d`${o.selected?NX.call(this,i,e,t,o,a):RX.call(this,i,e,t,o,a)}`}function NX(i,e,t,o,a){return t?d`<li data-ui5-value="${r(o.index)}" class="udex-rating-indicator__item udex-rating-indicator__item-sel ui5-rating-indicator-item ui5-rating-indicator-item-sel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="favorite"></${u("ui5-icon",e,t)}></li>`:d`<li data-ui5-value="${r(o.index)}" class="udex-rating-indicator__item udex-rating-indicator__item-sel ui5-rating-indicator-item ui5-rating-indicator-item-sel"><ui5-icon data-ui5-value="${r(o.index)}" name="favorite"></ui5-icon></li>`}function RX(i,e,t,o,a){return d`${o.halfStar?LX.call(this,i,e,t,o,a):jX.call(this,i,e,t,o,a)}`}function LX(i,e,t,o,a){return t?d`<li class="udex-rating-indicator__item udex-rating-indicator__item-half ui5-rating-indicator-item ui5-rating-indicator-item-half"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="unfavorite"></${u("ui5-icon",e,t)}><div class="udex-rating-indicator__half-icon-wrapper ui5-rating-indicator-half-icon-wrapper"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="favorite" class="udex-rating-indicator__half-icon ui5-rating-indicator-half-icon"></${u("ui5-icon",e,t)}></div></li>`:d`<li class="udex-rating-indicator__item udex-rating-indicator__item-half ui5-rating-indicator-item ui5-rating-indicator-item-half"><ui5-icon data-ui5-value="${r(o.index)}" name="unfavorite"></ui5-icon><div class="udex-rating-indicator__half-icon-wrapper ui5-rating-indicator-half-icon-wrapper"><ui5-icon data-ui5-value="${r(o.index)}" name="favorite" class="udex-rating-indicator__half-icon ui5-rating-indicator-half-icon"></ui5-icon></div></li>`}function jX(i,e,t,o,a){return d`${this.readonly?MX.call(this,i,e,t,o,a):OX.call(this,i,e,t,o,a)}`}function MX(i,e,t,o,a){return t?d`<li class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="unfavorite"></${u("ui5-icon",e,t)}></li>`:d`<li class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><ui5-icon data-ui5-value="${r(o.index)}" name="unfavorite"></ui5-icon></li>`}function OX(i,e,t,o,a){return d`${this.disabled?zX.call(this,i,e,t,o,a):FX.call(this,i,e,t,o,a)}`}function zX(i,e,t,o,a){return t?d`<li class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="unfavorite"></${u("ui5-icon",e,t)}></li>`:d`<li class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><ui5-icon data-ui5-value="${r(o.index)}" name="unfavorite"></ui5-icon></li>`}function FX(i,e,t,o,a){return t?d`<li data-ui5-value="${r(o.index)}" class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><${u("ui5-icon",e,t)} data-ui5-value="${r(o.index)}" name="unfavorite"></${u("ui5-icon",e,t)}></li>`:d`<li data-ui5-value="${r(o.index)}" class="udex-rating-indicator__item udex-rating-indicator__item-unsel ui5-rating-indicator-item ui5-rating-indicator-item-unsel"><ui5-icon data-ui5-value="${r(o.index)}" name="unfavorite"></ui5-icon></li>`}function XX(i,e,t){return d`<div class="udex-rating-indicator__total">&#40;${r(this.totalCount)}&#41;</div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const HX={packageName:"@sapudex/web-components",fileName:"themes/RatingIndicator.css.ts",content:`:host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-231-13_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}
249
249
  `};var hg=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},Z_;(function(i){i.Desktop="Desktop",i.Mobile="Mobile"})(Z_||(Z_={}));let Xs=class extends K_{get classNames(){return`udex-rating-indicator--${this.display.toLowerCase()}`}get _ariaLabel(){const e=Ia(this);return this.totalCount?`${e?`${e}, `:""}${K_.i18nBundle.getText($C)} ${this.totalCount}`:e}};hg([c({defaultValue:Z_.Desktop})],Xs.prototype,"display",void 0);hg([c()],Xs.prototype,"totalCount",void 0);Xs=hg([y({tag:"udex-rating-indicator",renderer:k,styles:[K_.styles,HX],template:DX,dependencies:[U]})],Xs);Xs.define();const fw=Xs;function qX(i,e,t){return d`${this.isEmpty?VX.call(this,i,e,t):UX.call(this,i,e,t)}`}function VX(i,e,t){return d`<div class="udex-review__empty-container"><slot class="udex-review__default-text" name="defaultText"></slot><slot name="reviewButton"></slot></div>`}function UX(i,e,t){return d`${this.withoutBreakdown?WX.call(this,i,e,t):GX.call(this,i,e,t)}`}function WX(i,e,t){return t?d`<div class="udex-review__container-without-breakdown"><div class="udex-review__content-without-breakdown"><div aria-level="2" role="heading" aria-hidden="true" class="udex-review__rating">${r(this.validatedRating)}</div><div class="udex-review__rating-info-without-breakdown"><${u("udex-rating-indicator",e,t)} readonly value="${r(this.validatedRating)}" max="${r(this._maxRating)}"></${u("udex-rating-indicator",e,t)}><div class="udex-review__reviews-text">${r(this.reviewsText)}</div></div></div><div class="udex-review__additional-content-without-breakdown"><slot class="udex-review__default-text" name="defaultText"></slot><slot name="reviewButton"></slot></div></div>`:d`<div class="udex-review__container-without-breakdown"><div class="udex-review__content-without-breakdown"><div aria-level="2" role="heading" aria-hidden="true" class="udex-review__rating">${r(this.validatedRating)}</div><div class="udex-review__rating-info-without-breakdown"><udex-rating-indicator readonly value="${r(this.validatedRating)}" max="${r(this._maxRating)}"></udex-rating-indicator><div class="udex-review__reviews-text">${r(this.reviewsText)}</div></div></div><div class="udex-review__additional-content-without-breakdown"><slot class="udex-review__default-text" name="defaultText"></slot><slot name="reviewButton"></slot></div></div>`}function GX(i,e,t){return t?d`<div class="udex-review__container"><div class="udex-review__content"><div class="udex-review__rating-info"><div aria-level="2" role="heading" aria-hidden="true" class="udex-review__rating">${r(this.validatedRating)}</div><${u("ui5-icon",e,t)} aria-labelledby="ratingDescription" role="img" name="favorite" class="udex-review__icon"></${u("ui5-icon",e,t)}></div><div class="udex-review__reviews-text">${r(this.reviewsText)}</div><slot name="reviewButton"></slot></div><div class="udex-review__additional-content">${T(this.validatedRatingBars,(o,a)=>o._id||a,(o,a)=>mb.call(this,i,e,t,o,a))}</div></div><span id="ratingDescription" class="hidden-text">${r(this._ratingDescription)}</span>`:d`<div class="udex-review__container"><div class="udex-review__content"><div class="udex-review__rating-info"><div aria-level="2" role="heading" aria-hidden="true" class="udex-review__rating">${r(this.validatedRating)}</div><ui5-icon aria-labelledby="ratingDescription" role="img" name="favorite" class="udex-review__icon"></ui5-icon></div><div class="udex-review__reviews-text">${r(this.reviewsText)}</div><slot name="reviewButton"></slot></div><div class="udex-review__additional-content">${T(this.validatedRatingBars,(o,a)=>o._id||a,(o,a)=>mb.call(this,i,e,t,o,a))}</div></div><span id="ratingDescription" class="hidden-text">${r(this._ratingDescription)}</span>`}function mb(i,e,t,o,a){return d`<slot name="${r(o._individualSlot)}"></slot>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const YX={packageName:"@sapudex/web-components",fileName:"themes/Review.css.ts",content:`:host{--udex-review-container-vertical-padding: var(--udexSpacer32);--udex-review-container-vertical-padding-xs: var(--udexSpacer24);--udex-review-xs-gutter: var(--udexSpacer40)}.udex-review__container{width:100%;display:flex;flex-direction:row;align-items:center;padding:var(--udex-review-container-vertical-padding) var(--udexGridXLMargins);font-family:var(--sapFontFamily, sans-serif);box-sizing:border-box}.udex-review__container-without-breakdown{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--udex-review-container-vertical-padding) var(--udexGridXLMargins);font-family:var(--sapFontFamily, sans-serif);box-sizing:border-box}.udex-review__empty-container{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--udexSpacer12);padding:var(--udex-review-container-vertical-padding) 0;font-family:var(--sapFontFamily, sans-serif);box-sizing:border-box}.udex-review__rating{font-size:var(--udexTypographyDisplayBoldMFontSize);font-weight:var(--udexTypographyFontWeightBold)}.udex-review__content{font-size:var(--udexTypographyDisplayBoldMFontSize);font-weight:var(--udexTypographyFontWeightBold);display:flex;flex-direction:column;justify-content:center;align-items:center;margin-inline-end:var(--udexGridXLGutters);width:calc((100vw / var(--udexGridColumns) * 2) + var(--udexGridXLGutters))}.udex-review__content-without-breakdown{font-size:var(--udexTypographyDisplayBoldMFontSize);font-weight:var(--udexTypographyFontWeightBold);display:flex;flex-direction:row;align-items:center;margin-bottom:0}.udex-review__additional-content{display:flex;flex-direction:column;gap:var(--udexSpacer8);width:100%}.udex-review__additional-content-without-breakdown{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--udexSpacer12);margin-bottom:0}.udex-review__rating-info{display:flex;flex-direction:row;align-items:center;gap:var(--udexSpacer8)}.udex-review__rating-info-without-breakdown{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding-inline-start:var(--udexSpacer16);.udex-review__reviews-text{margin-bottom:0}}.udex-review__default-text{font-size:var(--udexTypographyBodySFontSize);font-weight:var(--udexTypographyFontWeightRegular);line-height:var(--udexTypographyBodyLineHeight);margin-bottom:var(--udexSpacer12);text-align:center}.udex-review__reviews-text{font-size:var(--udexTypographyBodyXSFontSize);font-weight:var(--udexTypographyFontWeightRegular);line-height:var(--udexTypographyBodyLineHeight);color:var(--udexColorGrey7);margin-top:var(--udexSpacer8);margin-bottom:var(--udexSpacer12)}@media (max-width: 1599px){.udex-review__container{padding:var(--udex-review-container-vertical-padding) var(--udexGridLMargins)}}@media (max-width: 1279px){.udex-review__container{padding:var(--udex-review-container-vertical-padding) var(--udexGridMMargins)}.udex-review__content{width:calc((100vw / var(--udexGridColumns) * 3) + 2 * var(--udexGridMGutters))}}@media (max-width: 979px){.udex-review__container-without-breakdown{flex-direction:column;align-items:center;padding:var(--udex-review-container-vertical-padding) var(--udexGridSMargins)}.udex-review__container{padding:var(--udex-review-container-vertical-padding) var(--udexGridSMargins)}.udex-review__content{margin-inline-end:var(--udexGridSGutters);width:calc((100vw / var(--udexGridColumns) * 4) + 3 * var(--udexGridSGutters))}.udex-review__default-text{font-size:var(--udexTypographyBodyXSFontSize)}.udex-review__content-without-breakdown{margin-bottom:var(--udexSpacer16)}.udex-review__additional-content-without-breakdown{justify-content:space-between;gap:var(--udexSpacer16)}}@media (max-width: 639px){.udex-review__container{padding:var(--udex-review-container-vertical-padding-xs) var(--udexGridXSMargins);flex-direction:column;align-items:center}.udex-review__container-without-breakdown{padding:var(--udex-review-container-vertical-padding-xs) var(--udexGridXSMargins)}.udex-review__empty-container{padding:var(--udex-review-container-vertical-padding-xs) 0}.udex-review__content{margin-bottom:var(--udex-review-xs-gutter);margin-inline-end:0}}.udex-review__icon{height:1.5rem;width:1.5rem;color:var(--udexColorMango6)}[udex-rating-indicator]{--udex-rating_indicator_read-only-unrated_color: var(--udexColorMango6) }.hidden-text{display:none}
250
250
  `};var _l=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},Zc;let Vr=Zc=class extends E{constructor(){super(...arguments),this._minRating=0,this._maxRating=5,this._maxRatingBars=5}static async onDefine(){Zc.i18nBundle=await M("@sapudex/web-components")}get reviewsText(){return`${this.reviews} ${Zc.i18nBundle.getText(SC)}`}get withoutBreakdown(){return this.bars.length===0}get isEmpty(){return this.reviews===0&&this.rating===0}get validatedRating(){return this.rating>this._maxRating?(console.warn("UDEx Review: The rating shouldn't be more than 5."),this._maxRating):this.rating<this._minRating?(console.warn("UDEx Review: The rating shouldn't be less than 0."),this._minRating):this.rating}get validatedRatingBars(){return this.bars.length>this._maxRatingBars?(console.warn("UDEx Review: There shouldn't be more than 5 RatingBars."),this.bars.slice(-this._maxRatingBars)):this.bars}get _ratingDescription(){return`${this.validatedRating} ${pw.i18nBundle.getText(Qy)}`}};_l([c({type:Number,defaultValue:0,validator:it})],Vr.prototype,"rating",void 0);_l([c({type:Number,defaultValue:0,validator:q})],Vr.prototype,"reviews",void 0);_l([$({type:HTMLElement})],Vr.prototype,"reviewButton",void 0);_l([$({type:HTMLElement})],Vr.prototype,"defaultText",void 0);_l([$({type:HTMLElement,default:!0,individualSlots:!0})],Vr.prototype,"bars",void 0);Vr=Zc=_l([y({tag:"udex-review",renderer:k,styles:YX,template:qX,dependencies:[pw,fw,U]})],Vr);Vr.define();function KX(i,e,t){return t?d`<div class="${r(this.reviewItemClasses)}"><div class="udex-review-item__rating-container"><${u("udex-rating-indicator",e,t)} value="${r(this.validatedRating)}" max="${r(this._maxRating)}" readonly></${u("udex-rating-indicator",e,t)}>${this.date?fb.call(this,i,e,t):void 0}</div><div class="udex-review-item__text-container"><div class="udex-review-item__title">${r(this.reviewTitle)}</div><div class="udex-review-item__text-wrapper"><p class="udex-review-item__text" id="udex-review-item__text">${r(this._completeText)}</p>${this._showTextExpander?bb.call(this,i,e,t):void 0}</div>${this.author?xb.call(this,i,e,t):void 0}</div></div>`:d`<div class="${r(this.reviewItemClasses)}"><div class="udex-review-item__rating-container"><udex-rating-indicator value="${r(this.validatedRating)}" max="${r(this._maxRating)}" readonly></udex-rating-indicator>${this.date?fb.call(this,i,e,t):void 0}</div><div class="udex-review-item__text-container"><div class="udex-review-item__title">${r(this.reviewTitle)}</div><div class="udex-review-item__text-wrapper"><p class="udex-review-item__text" id="udex-review-item__text">${r(this._completeText)}</p>${this._showTextExpander?bb.call(this,i,e,t):void 0}</div>${this.author?xb.call(this,i,e,t):void 0}</div></div>`}function fb(i,e,t){return d`<slot slot="date" name="date" class="udex-review-item__date"></slot>`}function bb(i,e,t){return t?d`<${u("udex-button",e,t)} id="reviewExpander" class="udex-review-item__text-expander" design="Invisible" size="Large" @click="${this._toggleText}">${r(this.buttonText)}</${u("udex-button",e,t)}>`:d`<udex-button id="reviewExpander" class="udex-review-item__text-expander" design="Invisible" size="Large" @click="${this._toggleText}">${r(this.buttonText)}</udex-button>`}function xb(i,e,t){return d`<slot slot="author" name="author" class="udex-review-item__author"></slot>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const ZX={packageName:"@sapudex/web-components",fileName:"themes/ReviewItem.css.ts",content:`:host{--udex-review-item-column-space-xl: var(--udexSpacer84, 84px);--udex-review-item-column-space-l-m: var(--udexSpacer72, 72px);--udex-review-item-column-space-s-xs: var(--udexSpacer24, 24px);--udex-review-item-underline-color: var(--udexColorGrey1);--udex-review-item-text-and-title-color: var(--udexColorGrey9);--udex-review-item-date-and-author-color: var(--udexColorGrey6);--udex-review-item-max-text-height: 48px}.udex-review-item{display:flex;flex-direction:row;width:100%;text-align:left;gap:calc((100vw - (11 * var(--udex-review-item-column-space-xl))) / 12);padding:var(--udexSpacer24) 0;border-bottom:1px solid var(--udex-review-item-underline-color);font-family:var(--sapFontFamily, sans-serif)}.udex-review-item:dir(rtl){text-align:right}.udex-review-item__rating-top{display:flex;gap:var(--udexSpacer24);flex-direction:column}.udex-review-item__rating-top .udex-review-item__rating-container{display:flex;flex-direction:row;justify-content:space-between}.udex-review-item__rating-container,.udex-review-item__text-container{display:flex;flex-direction:column;gap:var(--udexSpacer16)}.udex-review-item__title{font-size:var(--udexTypographyHeadingMediumXXSFontSize);font-weight:var(--udexTypographyFontWeightMedium);line-height:var(--udexTypographyHeadingLineHeight);color:var(--udex-review-item-text-and-title-color);padding:0;margin:0}.udex-review-item__date{font-size:var(--udexTypographyBodyXSFontSize);font-weight:var(--udexTypographyFontWeightRegular);line-height:var(--udexTypographyBodyLineHeight);color:var(--udex-review-item-date-and-author-color)}.udex-review-item__text-wrapper{display:flex;flex-direction:column;align-items:flex-start;gap:var(--udexSpacer8)}.udex-review-item__text-expander{font-size:var(--udexTypographyBodySFontSize);font-weight:var(--udexTypographyFontWeightRegular)}.udex-review-item__text{font-size:var(--udexTypographyBodySFontSize);font-weight:var(--udexTypographyFontWeightRegular);line-height:var(--udexTypographyBodyLineHeight);color:var(--udex-review-item-text-and-title-color);white-space:pre-wrap;padding:0;margin:0;max-height:var(--udex-review-item-max-text-height);overflow:hidden}.udex-review-item__text-expanded{max-height:none}.udex-review-item__author{font-size:var(--udexTypographyNavigationRegularMFontSize);font-weight:var(--udexTypographyFontWeightRegular);line-height:var(--udexTypographyNavigationLineHeight);color:var(--udex-review-item-date-and-author-color);padding:0;margin:0}@media (max-width: 1599px){.udex-review-item{gap:calc((100vw - (11 * var(--udex-review-item-column-space-l-m))) / 12)}}@media (max-width: 979px){.udex-review-item{display:flex;gap:var(--udex-review-item-column-space-s-xs);flex-direction:column}.udex-review-item__rating-container{display:flex;flex-direction:row;justify-content:space-between}}[udex-rating-indicator]{--udex-rating_indicator_read-only-unrated_color: var(--udexColorMango6) }
251
251
  `};var ia=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},zl;let eo=zl=class extends E{_toggleText(){this._textExpanded=!this._textExpanded,this._textExpanded?(this._completeText=this.text,this._textElement.classList.add("udex-review-item__text-expanded")):(this._textElement.classList.remove("udex-review-item__text-expanded"),this._completeText=this._visibleText)}static async onDefine(){zl.i18nBundle=await M("@sapudex/web-components")}constructor(){super(),this._maxHeight=48,this._maxRating=5,this._minRating=0,this._handleResizeBound=this._checkTextOverflow.bind(this)}onEnterDOM(){this._maxHeight=48,this._completeText=this.text,J.register(this,this._handleResizeBound)}onExitDOM(){J.deregister(this,this._handleResizeBound)}onAfterRendering(){this._textElement=this.getTextElement(),this._checkTextOverflow()}_checkTextOverflow(){const e=this.text.split(" "),o=document.createElement("canvas").getContext("2d");o.font="16px sans-serif";let a=0,n="";e.forEach(s=>{const l=o.measureText(`${s} `).width;a+l<=2*this._textElement.offsetWidth&&(n+=`${s} `,a+=l)}),this._visibleText=n,this._textExpanded||(this._completeText=n),this._showTextExpander=!this._textExpanded&&this._completeText.length<this.text.length||this._textExpanded&&n.length<this.text.length}get buttonText(){return this._textExpanded?zl.i18nBundle.getText(e5):zl.i18nBundle.getText(Jy)}get reviewItemClasses(){return`udex-review-item${this.showRatingTop?" udex-review-item__rating-top":""}`}get validatedRating(){return this.rating>this._maxRating?(console.warn("UDEx Review: The rating shouldn't be more than 5."),this._maxRating):this.rating<this._minRating?(console.warn("UDEx Review: The rating shouldn't be less than 0."),this._minRating):this.rating}getTextElement(){var t;return(t=this.shadowRoot)==null?void 0:t.getElementById("udex-review-item__text")}};ia([c({type:Boolean})],eo.prototype,"showRatingTop",void 0);ia([c({type:Number,defaultValue:0,validator:q})],eo.prototype,"rating",void 0);ia([c({type:String})],eo.prototype,"reviewTitle",void 0);ia([c({type:String})],eo.prototype,"text",void 0);ia([c({type:Number,defaultValue:2,validator:q})],eo.prototype,"_textLineLimit",void 0);ia([c({type:Boolean})],eo.prototype,"_textExpanded",void 0);ia([c({type:Boolean})],eo.prototype,"_showTextExpander",void 0);ia([c({type:String})],eo.prototype,"_completeText",void 0);ia([$()],eo.prototype,"author",void 0);ia([$()],eo.prototype,"date",void 0);eo=zl=ia([y({tag:"udex-review-item",renderer:k,styles:ZX,template:KX,dependencies:[fw,Wt]})],eo);eo.define();class QX{constructor(e){this._focusHandler=new w2,this.component=e,this._getSuggestionPopover(),this.selectedItemIndex=-1}_getComponent(){return this.component}async _getSuggestionPopover(){if(this.popover)return this.popover;const e=await this._getComponent().getStaticAreaItemDomRef();return this.popover=e.querySelector("[ui5-popover]"),this.popover}_getItems(){var e;return this.popover?[...(e=this.popover)==null?void 0:e.querySelectorAll("[ui5-button]")]:[]}open(){this._getComponent().open=!0,this.popover.opener=this._getComponent(),this.popover.open=!0,this.initLists(),this._focusHandler._focusableListItems=this._getItems(),this._focusHandler.resetMatchingItems()}handleKeyPress(e){const t=e.key;m2(t)&&(e.preventDefault(),e.stopPropagation(),this._focusHandler.focusMatchingListItem(t))}initLists(){var t,o;const e=(t=this.popover)!=null&&t.querySelectorAll(".udex-search-suggestions__list")?(o=this.popover)==null?void 0:o.querySelectorAll(".udex-search-suggestions__list"):[];this.lists=Array.from(e)}close(){this._getComponent().open=!1,this.popover.open=!1,this.selectedItemIndex=-1}resetFocusState(){this.lists=[],this.selectedItemIndex=-1,this.focusabledList=void 0}onFocusInput(){var e,t;(t=(e=this.component.shadowRoot)==null?void 0:e.querySelector("input"))==null||t.focus()}onEnter(e){var t;e.preventDefault(),this.selectedItemIndex>=0&&(this.component.value=(t=this._getItems()[this.selectedItemIndex].getAttribute("title"))==null?void 0:t.replace(/<[^>]*>?/gm,""))}onTab(e){var t;if((t=this.lists)!=null&&t.length&&this._getComponent().open){if(e.preventDefault(),this.focusabledList&&this.selectedItemIndex===-1)return this.focusabledList.focus(),!0;if(this.focusabledList&&this.selectedItemIndex>=0)return this.getFocusableItems()[this.selectedItemIndex].focus(),!0;this.focusabledList=this.lists[0],this.focusabledList.focus()}}getFocusableItems(){var t,o;const e=(t=this.focusabledList)!=null&&t.children?(o=this.focusabledList)==null?void 0:o.querySelectorAll("[ui5-button]"):[];return Array.from(e)}onEscape(e){e.preventDefault(),this.close(),this.onFocusInput()}onKeyTabList(e){var t,o,a,n,s,l;e.preventDefault(),((t=this.lists)==null?void 0:t.length)===2&&(this.focusabledList===this.lists[1]&&(((a=(o=this.component)==null?void 0:o.shadowRoot)==null?void 0:a.querySelector("[ui5-button]")).focus(),this.close()),this.focusabledList===this.lists[0]&&(this.focusabledList=this.lists[1],this.focusabledList.focus(),this.selectedItemIndex=-1)),((n=this.lists)==null?void 0:n.length)===1&&(((l=(s=this.component)==null?void 0:s.shadowRoot)==null?void 0:l.querySelector("[ui5-button]")).focus(),this.close())}onPrevKeyTabList(e){var t,o;e.preventDefault(),((t=this.lists)==null?void 0:t.length)===2&&(this.focusabledList===this.lists[0]&&this.onFocusInput(),this.focusabledList===this.lists[1]&&(this.focusabledList=this.lists[0],this.focusabledList.focus(),this.selectedItemIndex=-1)),((o=this.lists)==null?void 0:o.length)===1&&this.onFocusInput()}onKeyDown(e){var n,s,l,h;e.preventDefault();const t=this.selectedItemIndex,o=this.getFocusableItems(),a=o.length-1;if((n=this.lists)!=null&&n.length){if(t===-1){const p=o[0];return p.setAttribute("aria-selected","true"),p.focus(),this.selectedItemIndex=0,(s=this.focusabledList)==null||s.setAttribute("aria-activedescendant",p.id),!0}if(t>=0&&t!==a){const p=o[t+1];return o[t].removeAttribute("aria-selected"),p.setAttribute("aria-selected","true"),p.focus(),this.selectedItemIndex=t+1,(l=this.focusabledList)==null||l.setAttribute("aria-activedescendant",p.id),!0}if(t===a&&this.focusabledList===this.lists[0]&&this.lists.length===2)return o[t].removeAttribute("aria-selected"),(h=this.focusabledList)==null||h.removeAttribute("aria-activedescendant"),this.focusabledList=this.lists[1],this.focusabledList.focus(),this.selectedItemIndex=-1,!0}}onKeyUp(e){var n,s,l,h;e.preventDefault();const t=this.getFocusableItems(),o=t.length-1,a=this.selectedItemIndex;if((n=this.lists)!=null&&n.length){if(a===-1){const p=t[0];return p.setAttribute("aria-selected","true"),p.focus(),this.selectedItemIndex=0,(s=this.focusabledList)==null||s.setAttribute("aria-activedescendant",p.id),!0}if(a>0&&a<=o){const p=t[a-1];return t[a].removeAttribute("aria-selected"),p.setAttribute("aria-selected","true"),p.focus(),this.selectedItemIndex=a-1,(l=this.focusabledList)==null||l.setAttribute("aria-activedescendant",p.id),!0}if(a===0&&this.lists.length===2&&this.focusabledList===this.lists[1])return t[a].removeAttribute("aria-selected"),(h=this.focusabledList)==null||h.removeAttribute("aria-activedescendant"),this.focusabledList=this.lists[0],this.focusabledList.focus(),this.selectedItemIndex=-1,!0}}handlePrevTabReset(e){var t;e.preventDefault(),(t=this.focusabledList)==null||t.focus()}static get dependencies(){return[Yi,Ut]}}oh("SearchInputSuggestion",QX);function JX(i,e){var l;const t=parseFloat(getComputedStyle(document.documentElement).fontSize),o=((l=e.parentElement)==null?void 0:l.offsetHeight)??window.innerHeight,a=parseFloat(getComputedStyle(e).fontSize),n=parseFloat(i);switch(i.replace(`${n}`,"").trim()){case"vh":return n/100*window.innerHeight;case"vw":return n/100*window.innerWidth;case"rem":return n*t;case"em":return n*a;case"%":return n/100*o;case"px":case"":return n;default:return n}}var Da=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let yo=class extends E{constructor(){super(),this._isMobileView=this.isMobile,this._handleResizeBound=this._handleResize.bind(this)}_handleResize(){this._isMobileView=this.isMobile}onEnterDOM(){ge()&&this.setAttribute("desktop",""),J.register(this,this._handleResizeBound)}onExitDOM(){J.deregister(this,this._handleResizeBound)}getActiveSubItem(e){let t;const o=a=>{a.forEach(n=>{if(n.active===!0){t=n;return}n.items&&o(n.items)})};return o(e),t}get itemLabel(){return this._isMobileView?this.mobileLinkTitle||this.label:this.label}get isMobile(){return Ja.isAtMost("S")}get ariaCurrent(){return this.active?"page":null}};Da([c({type:String})],yo.prototype,"mobileLinkTitle",void 0);Da([c({type:Boolean})],yo.prototype,"active",void 0);Da([c({type:String})],yo.prototype,"path",void 0);Da([c({type:Ki,defaultValue:Ki._self})],yo.prototype,"target",void 0);Da([c({type:String})],yo.prototype,"subTitle",void 0);Da([c({type:String})],yo.prototype,"label",void 0);Da([c({validator:q})],yo.prototype,"index",void 0);Da([c({type:Boolean})],yo.prototype,"_isMobileView",void 0);Da([c({type:String,defaultValue:"-1"})],yo.prototype,"_tabIndex",void 0);yo=Da([y({renderer:k})],yo);const bw=yo;function eH(i,e,t){return d`${this.isBack?tH.call(this,i,e,t):iH.call(this,i,e,t)} `}function tH(i,e,t){return t?d`<button tabindex="${r(this._tabIndex)}" @click="${this.onBackItemClick}" role="menuitem" aria-label="${r(this.backButtonAriaLabel)}" aria-haspopup="true" is-back class="udex-secondary-navigation__dropdown-item"><${u("ui5-icon",e,t)} class="udex-secondary-navigation__dropdown-icon udex-secondary-navigation__dropdown-icon_back" name="slim-arrow-left"></${u("ui5-icon",e,t)}>${r(this.itemLabel)}</button>`:d`<button tabindex="${r(this._tabIndex)}" @click="${this.onBackItemClick}" role="menuitem" aria-label="${r(this.backButtonAriaLabel)}" aria-haspopup="true" is-back class="udex-secondary-navigation__dropdown-item"><ui5-icon class="udex-secondary-navigation__dropdown-icon udex-secondary-navigation__dropdown-icon_back" name="slim-arrow-left"></ui5-icon>${r(this.itemLabel)}</button>`}function iH(i,e,t){return d`${this.isButton?oH.call(this,i,e,t):rH.call(this,i,e,t)}`}function oH(i,e,t){return d`<button tabindex="${r(this._tabIndex)}" @click="${this.onItemClick}" role="menuitem" aria-haspopup="${r(this.hasItems)}" ?sub-active="${this.isSubItemActive}" aria-label="${r(this.label)}" ?active="${this.active}" aria-current="${r(this.ariaCurrent)}" class="udex-secondary-navigation__dropdown-item">${r(this.itemLabel)}${this.hasItems?aH.call(this,i,e,t):void 0}</button>`}function aH(i,e,t){return t?d`<${u("ui5-icon",e,t)} class="udex-secondary-navigation__dropdown-icon" name="slim-arrow-right"></${u("ui5-icon",e,t)}>`:d`<ui5-icon class="udex-secondary-navigation__dropdown-icon" name="slim-arrow-right"></ui5-icon>`}function rH(i,e,t){return d`<a tabindex="${r(this._tabIndex)}" @click="${this.onItemClick}" role="menuitem" href="${r(this.path)}" target="${r(this.target)}" ?active="${this.active}" aria-current="${r(this.ariaCurrent)}" class="udex-secondary-navigation__dropdown-item">${r(this.itemLabel)}</a>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const nH={packageName:"@sapudex/web-components",fileName:"themes/SecondaryNavigationSubItem.css.ts",content:`:host{--udex-secondary-navigation-sub-item-font-size: var(--udexTypographyBodyXSFontSize, 14px);--udex-secondary-navigation-sub-item-line-height: 1.125rem;--udex-secondary-navigation-sub-item-color: var(--udexColorGrey9, #223548);--udex-secondary-navigation-sub-item-hover-color: var(--udexColorBlue7, #0070f2);--udex-secondary-navigation-sub-item-hover-background: var(--udexColorGrey1, #F5F6F7);--udex-secondary-navigation-sub-item-active-background: var(--udexColorGrey2, #EAECEE);--udex-secondary-navigation-sub-item-active-border-color: var(--udexColorBlue7, #0070f2)}.udex-secondary-navigation__dropdown-item{padding:var(--udexSpacer12) var(--udexSpacer16);font-family:var(--sapFontFamily);font-size:var(--udex-secondary-navigation-sub-item-font-size);line-height:var(--udex-secondary-navigation-sub-item-line-height);color:var(--udex-secondary-navigation-sub-item-color);display:flex;text-decoration:none;position:relative;cursor:pointer}button.udex-secondary-navigation__dropdown-item{border:0;width:100%;background:none;justify-content:space-between;align-items:center;text-align:left}.udex-secondary-navigation__dropdown-item:focus{outline:none}:host([desktop]) .udex-secondary-navigation__dropdown-item:focus,.udex-secondary-navigation__dropdown-item:focus-visible{outline:var(--udexRadiusXXS) solid var(--udexColorBlue10);border-radius:var(--udexRadiusXXS);outline-offset:calc(var(--udexSpacer4) * -1)}[active].udex-secondary-navigation__dropdown-item:before,[sub-active].udex-secondary-navigation__dropdown-item:before{background:var(--udex-secondary-navigation-sub-item-active-border-color);border-radius:0 var(--udexRadiusXXS) var(--udexRadiusXXS) 0;content:"";position:absolute;top:0;bottom:0;left:0;height:100%;width:3px}[active].udex-secondary-navigation__dropdown-item:dir(rtl):before,[sub-active].udex-secondary-navigation__dropdown-item:dir(rtl):before{left:auto;right:0}[is-back].udex-secondary-navigation__dropdown-item{justify-content:normal}.udex-secondary-navigation__item:hover .udex-secondary-navigation__item-icon,.udex-secondary-navigation__item:hover{color:var(--udex-secondary-navigation-sub-item-hover-color)}.udex-secondary-navigation__dropdown-item:hover{background:var(--udex-secondary-navigation-sub-item-hover-background)}.udex-secondary-navigation__dropdown-item:active{background:var(--udex-secondary-navigation-sub-item-active-background)}.udex-secondary-navigation__dropdown:dir(rtl){left:auto;right:calc(var(--udexSpacer16) * -1)}.udex-secondary-navigation__dropdown-icon{min-width:14px;height:14px}.udex-secondary-navigation__dropdown-icon_back{margin-inline-end:var(--udexSpacer4)}@media (max-width: 979px){.udex-secondary-navigation__dropdown-item{padding:var(--udexSpacer12) var(--udexSpacer48)}.udex-secondary-navigation__dropdown-item:hover .udex-secondary-navigation__dropdown-icon,.udex-secondary-navigation__dropdown-item:hover{background:none}:host([desktop]) .udex-secondary-navigation__dropdown-item:focus{outline:none}:host([desktop]) .udex-secondary-navigation__dropdown-item:focus-visible{outline:var(--udexRadiusXXS) solid var(--udexColorBlue10);border-radius:var(--udexRadiusXXS);outline-offset:calc(var(--udexSpacer4) * -1)}}@media (max-width: 639px){.udex-secondary-navigation__dropdown-item{padding:var(--udexSpacer12) var(--udexSpacer24)}}
@@ -305,7 +305,7 @@ or import '@sapudex/design-tokens/dist/themes/sap_glow/css_variables.css'`)};doc
305
305
  `};var Cg=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let Nd=class extends E{onEnterDOM(){this.setAttribute("role","row")}};Cg([$({type:HTMLElement,default:!0,individualSlots:!0})],Nd.prototype,"cells",void 0);Cg([c({validator:q})],Nd.prototype,"_index",void 0);Nd=Cg([y({renderer:k,styles:uK,dependencies:[ak]})],Nd);const Rd=Nd;function hK(i,e,t){return d`${T(this.cells,(o,a)=>o._id||a,(o,a)=>pK.call(this,i,e,t,o,a))} `}function pK(i,e,t,o,a){return d`<slot name="${r(o._individualSlot)}"></slot>`}var _K=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let Ju=class extends Rd{get isGroup(){return!1}};Ju=_K([y({tag:"udex-table-header-row",renderer:k,styles:[Rd.styles],template:hK,dependencies:[sK]})],Ju);Ju.define();const vK=Ju;function gK(i,e,t){return d`${T(this.cells,(o,a)=>o._id||a,(o,a)=>mK.call(this,i,e,t,o,a))} `}function mK(i,e,t,o,a){return d`<slot name="${r(o._individualSlot)}"></slot>`}var rk=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let Ld=class extends Rd{get isGroup(){return!1}};rk([c({type:Boolean})],Ld.prototype,"interactive",void 0);Ld=rk([y({tag:"udex-table-row",renderer:k,styles:[Rd.styles],template:gK,dependencies:[...Rd.dependencies]})],Ld);Ld.define();const nk=Ld;function fK(i,e,t){return d`${this.collapsible?bK.call(this,i,e,t):xK.call(this,i,e,t)}<div class="udex-table-grow-rows" @keydown="${this.handleEscapeKey}"><slot></slot></div>`}function bK(i,e,t){return t?d`<button id="udex-table-group-opener" class="udex-table-grow-btn" aria-expanded="${r(this.expanded)}" @click="${this.toggleExpanded}"><span class="udex-table-grow"><${u("ui5-icon",e,t)} class="udex-table-grow__icon" name="slim-arrow-right"></${u("ui5-icon",e,t)}>${r(this.groupTitle)}</span></button>`:d`<button id="udex-table-group-opener" class="udex-table-grow-btn" aria-expanded="${r(this.expanded)}" @click="${this.toggleExpanded}"><span class="udex-table-grow"><ui5-icon class="udex-table-grow__icon" name="slim-arrow-right"></ui5-icon>${r(this.groupTitle)}</span></button>`}function xK(i,e,t){return d`<div class="udex-table-grow-btn"><span class="udex-table-grow">${r(this.groupTitle)}</span></div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const yK={packageName:"@sapudex/web-components",fileName:"themes/TableGroupRow.css.ts",content:`:host{--udex-table-group-row-title-color: var(--udexColorGrey9, #223548);--udex-table-group-row-title-padding: var(--udexSpacer8, 8px) var(--udexSpacer16, 16px);--udex-table-group-row-border-color: var(--sapList_BorderColor, var(--udexColorGrey4, #a9b4be ));--udex-table-group-row-border-background: var(--udexColorGrey1, #F5F6F7);--udex-table-group-row-hover-background: var(--udexColorGrey2, #EAECEE);--udex-table-group-row-outline-border-color: var(--udexColorBlue10, #002A86);--udex-table-group-row-line-height: 18px;--udex-table-group-icon-width: 14px;--udex-table-group-icon-height: 14px}:host,.udex-table-grow-rows{display:grid;grid-template-columns:subgrid;grid-column:1 / -1}.udex-table-grow-btn{grid-column:1 / -1;padding:var(--udex-table-group-row-title-padding);border-bottom:1px solid var(--udex-table-group-row-border-color);border-top:none;border-left:none;border-right:none;background:var(--udex-table-group-row-border-background);font-family:var(--sapFontFamily);font-size:var(--udexTypographyBodySFontSize);line-height:var(--udex-table-group-row-line-height);font-weight:var(--udexTypographyFontWeightMedium);color:var(--udex-table-group-row-title-color);position:relative}:host([collapsible]) .udex-table-grow-btn{cursor:pointer}:host([collapsible]) .udex-table-grow-btn:focus{outline:none}:host([collapsible]) .udex-table-grow-btn:focus:before{content:"";position:absolute;inset:0;outline:var(--udexRadiusXXS) solid var(--udex-table-group-row-outline-border-color);outline-offset:-4px;border-radius:var(--udexRadiusM, 8px)}:host([collapsible]) .udex-table-grow-btn:hover{background:var(--udex-table-group-row-hover-background)}:host([collapsible]) .udex-table-grow-rows{visibility:hidden;height:0;overflow:hidden}:host([collapsible][expanded]) .udex-table-grow-rows{visibility:visible;height:auto}:host([collapsible][expanded]) .udex-table-grow__icon{transform:rotate(90deg)}:host([collapsible][expanded]:dir(rtl)) .udex-table-grow__icon{transform:rotate(-90deg)}:host([collapsible]) .udex-table-grow{display:flex;align-items:center;gap:var(--udexSpacer4)}.udex-table-grow__icon{width:var(--udex-table-group-icon-width);height:var(--udex-table-group-icon-height)}
306
306
  `};var es=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let Ta=class extends E{constructor(){super(...arguments),this._isOpen=!0}onAfterRendering(){this.setIndexToRows(),this.collapsible&&!this.expanded&&(this._isOpen=!1)}onEnterDOM(){this.setAttribute("role","rowgroup")}toggleExpanded(){this.collapsible&&(this.expanded=!this.expanded,this._isOpen=!this._isOpen)}handleEscapeKey(e){var t;if(Fe(e)){const o=(t=this.shadowRoot)==null?void 0:t.querySelector(".udex-table-grow-btn");this.toggleExpanded(),o.focus()}}setIndexToRows(){this.rows.forEach((e,t)=>{e._index=t})}get isGroup(){return!0}};es([c({type:Boolean})],Ta.prototype,"collapsible",void 0);es([c({type:String})],Ta.prototype,"groupTitle",void 0);es([$({type:HTMLElement,default:!0})],Ta.prototype,"rows",void 0);es([c({type:Boolean})],Ta.prototype,"expanded",void 0);es([c({validator:q})],Ta.prototype,"_index",void 0);es([c({type:Boolean})],Ta.prototype,"_isOpen",void 0);Ta=es([y({tag:"udex-table-group-row",renderer:k,styles:yK,template:fK,dependencies:[nk,U]})],Ta);Ta.define();const au=Ta;function wK(i,e,t){return d`${this._hasToolbar?kK.call(this,i,e,t):void 0}<div id="table" class="udex-table" role="grid" aria-label="${r(this.accessibleName)}" @scroll="${this._onScroll}" @keydown="${this._handleKeyDown}" style="${H(this._styles.table)}"><div class="udex-table__header-holder"><slot name="headerRow"></slot></div><slot></slot>${this.rows.length?void 0:SK.call(this,i,e,t)}${this.loading?$K.call(this,i,e,t):void 0}</div>${this.footnotes.length?TK.call(this,i,e,t):void 0} `}function kK(i,e,t){return d`<div class="udex-table-toolbar"><span class="udex-table-toolbar__title">${r(this.heading)}</span><div class="udex-table-toolbar__actions"><slot name="actions"></slot></div></div>`}function SK(i,e,t){return t?d`<${u("udex-table-row",e,t)}><${u("udex-table-cell",e,t)} class="udex-table__no-data">${this.noData.length?l1.call(this,i,e,t):d1.call(this,i,e,t)}</${u("udex-table-cell",e,t)}></${u("udex-table-row",e,t)}>`:d`<udex-table-row><udex-table-cell class="udex-table__no-data">${this.noData.length?l1.call(this,i,e,t):d1.call(this,i,e,t)}</udex-table-cell></udex-table-row>`}function l1(i,e,t){return d`<slot name="noData"></slot>`}function d1(i,e,t){return d`${r(this._effectiveNoDataText)}`}function $K(i,e,t){return t?d`<${u("ui5-busy-indicator",e,t)} class="udex-table__loading" delay="${r(this.loadingDelay)}" data-sap-focus-ref active></${u("ui5-busy-indicator",e,t)}>`:d`<ui5-busy-indicator class="udex-table__loading" delay="${r(this.loadingDelay)}" data-sap-focus-ref active></ui5-busy-indicator>`}function TK(i,e,t){return d`<div class="udex-table-footnotes"><slot name="footnotes"></slot></div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const CK={packageName:"@sapudex/web-components",fileName:"themes/Table.css.ts",content:`:host{--udex-table-toolbar-color: var(--sapList_TableGroupHeaderTextColor, var(--udexCoreTextDark, #223548));--udex-table-toolbar-border-color: var(--sapList_TableGroupHeaderBorderColor, var(--udexColorGrey4, #a9b4be));--udex-table-toolbar-background:var(--sapList_TableGroupHeaderBackground, var(--udexCoreBase, #fff));--udex-table-loading-opacity: var(--sapContent_DisabledOpacity, .4);--udex-table-loading-background: var(--udexCoreBase, #fff);--udex-table-header-sticky-z-index: 3;--udex-table-header-sticky-shadow: 0 8px 8px -8px rgba(34,54,73,.3);--udex-table-header-footnotes-color: var(--udexColorGrey7, #475e75);--udex-table-header-footnotes-font-size: var(--udexTypographyBodyXXSFontSize, 12px);--udex-table-header-footnotes-line-height:var(--udexTypographyBodyLineHeight)}:host{display:block}:host([sticky-header]) .udex-table__header-holder{position:sticky;top:0;z-index:var( --udex-table-header-sticky-z-index)}:host([loading]) .udex-table:after{content:"";inset:0;position:absolute;background:var(--udex-table-loading-background);opacity:var(--udex-table-loading-opacity)}:host([_vertical-offset]) .udex-table__header-holder{box-shadow:var(--udex-table-header-sticky-shadow)}.udex-table-toolbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--udex-table-toolbar-border-color);padding:var(--udexSpacer16);background:var(--udex-table-toolbar-background)}.udex-table-toolbar__actions{display:flex;gap:var(--udexSpacer8);padding-inline-start:var(--udexSpacer32)}.udex-table-toolbar__title{font-family:var(--sapFontFamily);font-size:var(--udexTypographyHeadingBoldXXXSFontSize);line-height:var(--udexTypographyHeadingLineHeight);font-weight:var(--udexTypographyFontWeightBold);color:var(--udex-table-toolbar-color)}.udex-table{display:grid;overflow:auto;position:relative}.udex-table__header-holder{display:grid;grid-template-columns:subgrid;grid-column:1 / -1}.udex-table__no-data{grid-column:1 / -1;justify-content:center;padding:var(--udexSpacer16);--horizontal-align-default-1: center}.udex-table__loading{position:absolute;z-index:5;inset:0;display:flex;align-items:center;justify-content:center}.udex-table__loading:after{content:"";inset:0;position:absolute;background:var(--udex-table-loading-background);opacity:var(--udex-table-loading-opacity)}.udex-table-footnotes{padding-top:var(--udexSpacer24);color:var(--udex-table-header-footnotes-color);font-size:var(--udex-table-header-footnotes-font-size);line-height:var(--udex-table-header-footnotes-line-height)}@media (max-width: 639px){.udex-table-toolbar{flex-direction:column;align-items:flex-start}.udex-table-toolbar__actions{padding-inline-start:0;padding-top:var(--udexSpacer8)}}
307
307
  `};var ni=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},ru;let Bt=ru=class extends E{static async onDefine(){ru.i18nBundle=await M("@sapudex/web-components")}onAfterRendering(){this.stickyColumn&&this._setStickyAttrToCells(),this._setIndexToCells(),this.headerRow&&this._setCellsHighlighter()}_handleKeyDown(e){this.handleUpArrow(e),this.handleDownArrow(e),this.handleLeftArrow(e),this.handleRightArrow(e)}handleUpArrow(e){Ee(e)&&(e.preventDefault(),this.navigateRows(-1))}handleDownArrow(e){Te(e)&&(e.preventDefault(),this.navigateRows(1))}handleRightArrow(e){be(e)&&(e.preventDefault(),this.navigateCells(1))}handleLeftArrow(e){ke(e)&&(e.preventDefault(),this.navigateCells(-1))}navigateRows(e){var s;const t=this.getKeyboardNavigationItems(),o=t.find(l=>l.id===this.getParentRow()._id),a=t.indexOf(o),n=t[a+e];(s=n==null?void 0:n.elements[0])==null||s.focus()}navigateCells(e){var o;const t=this.getParentRow();if(!t.isGroup){const a=this.getInteractiveElements(t),s=a.indexOf(document.activeElement)+e;s>=0&&s<a.length&&((o=a[s])==null||o.focus())}}_onScroll(){const{scrollLeft:e,scrollTop:t}=this._tableHolder;this.stickyHeader&&(this._verticalOffset=t>0),this.stickyColumn&&this._setHorizontalOffsetToCells(e)}_setCellsHighlighter(){const e=this.headerRow.flatMap(t=>t.cells.filter(o=>o.highlighted===!0).map(o=>o._individualSlot));this.rows.forEach(t=>{t instanceof au||t.cells.forEach(o=>{e.includes(o._individualSlot)&&o.setAttribute("_highlighted","")})})}_setStickyAttrToCells(){[...this.headerRow,...this.rows].forEach(e=>{e instanceof au||(e.cells[0]._sticky=!0)})}_setIndexToCells(){[...this.headerRow,...this.rows].forEach((e,t)=>{e._index=t})}_setHorizontalOffsetToCells(e){[...this.headerRow,...this.rows].forEach(t=>{t instanceof au||(t.cells[0]._horizontalOffset=e>0)})}getParentRow(){return document.activeElement.closest("[udex-table-row], [udex-table-header-row], [udex-table-group-row]")}getKeyboardNavigationItems(){const e=[],t=(a,n)=>{var s;n&&e.push({id:a._id,elements:[(s=a.shadowRoot)==null?void 0:s.querySelector("button")]}),a.rows.forEach(l=>{e.push({id:l._id,group:!0,elements:this.getInteractiveElements(l)})})},o=a=>{var n;e.push({id:a._id,group:!1,elements:a.isGroup?[(n=a.shadowRoot)==null?void 0:n.querySelector("button")]:this.getInteractiveElements(a)})};return[...this.headerRow,...this.rows].forEach(a=>{const{isGroup:n,_isOpen:s,collapsible:l}=a;n&&s?t(a,l):o(a)}),e.filter(({elements:a})=>a.length)}getInteractiveElements(e){return e.cells.flatMap(t=>Array.from(t.querySelectorAll("button, a, [udex-button], [udex-link], [udex-rating-indicator]")))}get _effectiveNoDataText(){return this.noDataText||ru.i18nBundle.getText(B3)}get _hasToolbar(){return this.heading.length>0||this.actions.length>0}get _tableMaxHeight(){return this.maxHeight?this.maxHeight:"auto"}get _tableHolder(){var e;return(e=this.shadowRoot)==null?void 0:e.getElementById("table")}get _gridTemplateColumns(){var t,o,a;return`repeat(${((o=(t=this.headerRow)==null?void 0:t[0])==null?void 0:o.cells.length)||((a=this.rows)==null?void 0:a[0]).cells.length}, auto)`}get _styles(){var t,o,a;const e=(a=(o=(t=this.headerRow)==null?void 0:t[0])==null?void 0:o.cells)==null?void 0:a.reduce((n,s)=>(s.horizontalAlign!==void 0&&(n[`--horizontal-align-${s._individualSlot}`]=s.horizontalAlign),n),{});return{table:{"grid-template-columns":this.customColumns||this._gridTemplateColumns,"max-height":this._tableMaxHeight,...e}}}};ni([c()],Bt.prototype,"maxHeight",void 0);ni([c({type:String})],Bt.prototype,"accessibleName",void 0);ni([c({type:String})],Bt.prototype,"heading",void 0);ni([c()],Bt.prototype,"noDataText",void 0);ni([c({type:String})],Bt.prototype,"loading",void 0);ni([c({defaultValue:1e3,type:q})],Bt.prototype,"loadingDelay",void 0);ni([c({type:Boolean})],Bt.prototype,"stickyHeader",void 0);ni([c({type:Boolean})],Bt.prototype,"stickyColumn",void 0);ni([$({type:HTMLElement,default:!0})],Bt.prototype,"rows",void 0);ni([$({type:HTMLElement})],Bt.prototype,"headerRow",void 0);ni([$({type:HTMLElement})],Bt.prototype,"actions",void 0);ni([$()],Bt.prototype,"noData",void 0);ni([$()],Bt.prototype,"footnotes",void 0);ni([c({type:String})],Bt.prototype,"customColumns",void 0);ni([c({type:Boolean})],Bt.prototype,"_verticalOffset",void 0);Bt=ru=ni([y({tag:"udex-table",renderer:k,styles:[CK,Ba()],template:wK,dependencies:[Sh,vK,nk,ak,au]})],Bt);Bt.define();function IK(i,e,t){return d`<div class="udex-textarea"><div class="udex-textarea__wrapper">${this.label?BK.call(this,i,e,t):AK.call(this,i,e,t)}<textarea id="textarea" class="udex-textarea__field" part="textarea" .value="${r(this.value)}" maxlength="${r(this.maxlength)}" rows="${r(this.rows)}" ?disabled="${this.disabled}" ?readonly="${this.isInputReadonly}" ?required="${this.required}" ?aria-label="${this.accessibleName}" ?aria-describedby="${this.ariaDescribedBy}" ?aria-labelledby="${this.accessibleNameRef}" aria-required="${r(this.required)}" aria-readonly="${r(this.isInputReadonly)}" aria-invalid="${r(this.ariaInvalid)}" @input="${this.handleInput}" @focus="${this.handleFocus}" @click="${this.handleClick}" @blur="${this.handleBlur}" @change="${this.handleChange}"></textarea></div>${this._supportingText?DK.call(this,i,e,t):void 0}${this.hasValueState?PK.call(this,i,e,t):void 0}${this.readonly?NK.call(this,i,e,t):void 0}</div>`}function BK(i,e,t){return d`<label class="${r(this.labelClasses)}" for="textarea" part="label">${r(this.label)}${this.required?EK.call(this,i,e,t):void 0}</label>`}function EK(i,e,t){return d` * `}function AK(i,e,t){return d`<label for="textarea" class="hidden-label">${r(this.textHiddenLabel)}</label>`}function DK(i,e,t){return t?d`<${u("udex-status-message",e,t)} supporting-text-alignment="Right" ?disabled="${this.disabled}" supporting-text="${r(this._supportingText)}" value-state="${r(this.fieldState)}"></${u("udex-status-message",e,t)}><span id="${r(this._id)}-supportingTextDesc" class="hidden-text">${r(this._supportingText)}</span>`:d`<udex-status-message supporting-text-alignment="Right" ?disabled="${this.disabled}" supporting-text="${r(this._supportingText)}" value-state="${r(this.fieldState)}"></udex-status-message><span id="${r(this._id)}-supportingTextDesc" class="hidden-text">${r(this._supportingText)}</span>`}function PK(i,e,t){return d`<span id="${r(this._id)}-valueStateDesc" class="hidden-text">${r(this.ariaValueStateHiddenText)}</span>`}function NK(i,e,t){return d`<span id="${r(this._id)}-readonlyDesc" class="hidden-text">${r(this.readOnlyText)}</span>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const RK={packageName:"@sapudex/web-components",fileName:"themes/TextArea.css.ts",content:`:host{--udex-textarea-color-standard-default-background: var(--sapField_Background, #fff);--udex-textarea-color-standard-default-border: var(--sapField_BorderColor, #5b738b);--udex-textarea-color-standard-default-text: var(--sapField_TextColor, #223548);--udex-textarea-color-standard-default-label: var(--sapField_PlaceholderTextColor, #475e75);--udex-textarea-color-standard-hover-border: var(--sapField_Hover_BorderColor, #1b90ff);--udex-textarea-color-standard-actives-border: var(--sapField_Active_BorderColor, #0040b0);--udex-textarea-color-warning-default-background: var(--sapField_WarningBackground, #fff);--udex-textarea-color-warning-default-border: var(--udexCoreSemanticWarning6, #e76500);--udex-textarea-color-warning-hover-border: var(--sapField_WarningColor, #c35500);--udex-textarea-color-warning-actives-border: var(--sapWarningColor, #8d2a00);--udex-textarea-color-error-default-background: var(--sapField_InvalidBackground, #fff);--udex-textarea-color-error-default-border: var(--udexCoreSemanticError6, #ee3939);--udex-textarea-color-error-hover-border: var(--sapField_InvalidColor, #d20a0a);--udex-textarea-color-error-actives-border: var(--udexCoreSemanticError9, #840606);--udex-textarea-color-success-default-background: var(--sapField_SuccessBackground, #fff);--udex-textarea-color-success-default-border: var(--udexCoreSemanticSuccess6, #36a41d);--udex-textarea-color-success-hover-border: var(--sapField_SuccessColor, #188918);--udex-textarea-color-success-actives-border: var(--sapSuccessColor, #1e592f);--udex-textarea-color-disabled-default-background: var(--sapField_Background, #fff);--udex-textarea-color-disabled-default-border: var(--sapNeutralElementColor, #5b738b);--udex-textarea-color-readonly-default-background: var(--sapField_ReadOnly_Background, #eaecee);--udex-textarea-color-readonly-default-border: var(--sapNeutralElementColor, #5b738b);--udex-textarea-active-lable-font-size: var(--sapFontSmallSize, 12px);--udex-textarea-color-label-background: var(--sapField_Background, #fff);--udex-textarea-paddings: 9px var(--udexSpacer12, 12px) 15px;--udex-textarea-radius: var(--udexRadiusXS, 4px);--udex-textarea-height: 50px;--udex-textarea-border-width: 1px;--sapScrollBar_Dimension: 16px;font-family:var(--sapFontFamily, sans-serif);font-size:var(--sapFontSize, 16px);color:var(--udex-textarea-color-standard-default-text)}.udex-textarea{position:relative}.udex-textarea__label{font-weight:var(--udexTypographyFontWeightRegular, 400);position:absolute;top:10px;margin-inline-start:9px;padding:0 var(--udexSpacer4, 4px);color:var(--udex-textarea-color-standard-default-label);line-height:24px;transition:top .15s ease-out,font-size .15s ease-out}.udex-textarea__label--active{top:-11px;font-size:var(--udex-textarea-active-lable-font-size);line-height:1.5;z-index:2;background:linear-gradient(var(--udex-textarea-color-label-background) 65%,var(--udex-textarea-color-standard-default-background) 35%)}:host [ui5-icon]{color:inherit;vertical-align:top;margin-inline-end:var(--udexSpacer4, 4px)}.udex-textarea__field{display:block;box-sizing:border-box;width:100%;height:var(--udex-textarea-height);max-height:94vh;margin:0;padding:var(--udex-textarea-paddings);background:var(--udex-textarea-color-standard-default-background);border-radius:var(--udex-textarea-radius);border:var(--udex-textarea-border-width) solid var(--udex-textarea-color-standard-default-border);font-weight:var(--udexTypographyFontWeightRegular, 400);outline:none;color:inherit;font-size:inherit;font-family:inherit;font-style:inherit;-webkit-appearance:none;-moz-appearance:textfield;overflow:auto;resize:none;line-height:24px;letter-spacing:inherit;word-spacing:inherit}.udex-textarea__field:hover{border-color:var(--udex-textarea-color-standard-hover-border)}.udex-textarea__field:focus{border-color:var(--udex-textarea-color-standard-actives-border)}.udex-textarea__wrapper{position:relative}:host(:not([_is-touched])[active]) .udex-textarea__wrapper:before{content:"";position:absolute;z-index:-1;inset:-5px;border:2px solid var(--udexColorBlue10);border-radius:var(--udexRadiusS, 6px)}:host([field-state="Warning"]) .udex-textarea__field{background-color:var(--udex-textarea-color-warning-default-background);border-color:var(--udex-textarea-color-warning-default-border)}:host([field-state="Warning"]) .udex-textarea__label--active{background:linear-gradient(var(--udex-textarea-color-label-background) 65%,var(--udex-textarea-color-warning-default-background) 35%)}:host([field-state="Warning"]) .udex-textarea__field:hover{border-color:var(--udex-textarea-color-warning-hover-border)}:host([field-state="Warning"]) .udex-textarea__field:focus{border-color:var(--udex-textarea-color-warning-actives-border)}:host([field-state="Error"]) .udex-textarea__field{background-color:var(--udex-textarea-color-error-default-background);border-color:var(--udex-textarea-color-error-default-border)}:host([field-state="Error"]) .udex-textarea__label--active{background:linear-gradient(var(--udex-textarea-color-label-background) 65%,var(--udex-textarea-color-error-default-background) 35%)}:host([field-state="Error"]) .udex-textarea__field:hover{border-color:var(--udex-textarea-color-error-hover-border)}:host([field-state="Error"]) .udex-textarea__field:focus{border-color:var(--udex-textarea-color-error-actives-border)}:host([field-state="Success"]) .udex-textarea__field{background-color:var(--udex-textarea-color-success-default-background);border-color:var(--udex-textarea-color-success-default-border)}:host([field-state="Success"]) .udex-textarea__label--active{background:linear-gradient(var(--udex-textarea-color-label-background) 65%,var(--udex-textarea-color-success-default-background) 35%)}:host([field-state="Success"]) .udex-textarea__field:hover{border-color:var(--udex-textarea-color-success-hover-border)}:host([field-state="Success"]) .udex-textarea__field:focus{border-color:var(--udex-textarea-color-success-actives-border)}:host([disabled]) .udex-textarea{opacity:.4}:host([disabled]) .udex-textarea__field,:host([disabled]) .udex-textarea__field:hover{background-color:var(--udex-textarea-color-disabled-default-background);border-color:var(--udex-textarea-color-disabled-default-border)}:host([disabled]) .udex-textarea__label--active{background:linear-gradient(var(--udex-textarea-color-label-background) 65%,var(--udex-textarea-color-disabled-default-background) 35%)}:host([readonly]) .udex-textarea,:host([displayonly]) .udex-textarea{opacity:1}:host([readonly]) .udex-textarea__field,:host([readonly]) .udex-textarea__field:hover,:host([readonly]) .udex-textarea__field:focus{background-color:var(--udex-textarea-color-readonly-default-background);border-color:var(--udex-textarea-color-readonly-default-border)}:host([readonly]) .udex-textarea__label--active{background:linear-gradient(var(--udex-textarea-color-label-background) 65%,var(--udex-textarea-color-readonly-default-background) 35%)}:host([displayonly]) .udex-textarea__field,:host([displayonly]) .udex-textarea__field:hover,:host([displayonly]) .udex-textarea__field:focus{background-color:transparent;border-color:transparent}:host([displayonly]) .udex-textarea__label--active{background:transparent}:host([rows]) .udex-textarea__field{height:auto}:host([rows="1"]) .udex-textarea__field{height:var(--udex-textarea-height)}.udex-textarea__field::-webkit-scrollbar-thumb{border:2px solid var(--udex-textarea-color-standard-default-background)}:host([field-state="Warning"]) .udex-textarea__field::-webkit-scrollbar-thumb{border:2px solid var(--udex-textarea-color-warning-default-background)}:host([field-state="Error"]) .udex-textarea__field::-webkit-scrollbar-thumb{border:2px solid var(--udex-textarea-color-error-default-background)}:host([field-state="Success"]) .udex-textarea__field::-webkit-scrollbar-thumb{border:2px solid var(--udex-textarea-color-success-default-background)}:host([disabled]) .udex-textarea__field::-webkit-scrollbar-thumb{border:2px solid var(--udex-textarea-color-disabled-default-background)}:host([readonly]) .udex-textarea__field::-webkit-scrollbar-thumb{border:2px solid var(--udex-textarea-color-readonly-default-background)}:host([displayonly]) .udex-textarea__field::-webkit-scrollbar-thumb{border:2px solid transparent}.hidden-text{display:none}.hidden-label{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}
308
- `};var ht=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},da;let et=da=class extends E{constructor(){super(...arguments),this._labelActiveClassName="udex-textarea__label--active",this.handleInput=e=>{var t;this.value=(t=e.target)==null?void 0:t.value},this.handleChange=()=>{this.fireEvent("change")},this.handleGrowing=()=>{if(this.growing){const e=this.getInputDomRef();if(this.rows||(this.rows=1),e.style.height="auto",e.style.height=`${e.scrollHeight+2}px`,this.growingMaxLines){const t=getComputedStyle(e),o=parseInt(t.lineHeight),a=parseInt(t.paddingTop),n=parseInt(t.paddingBottom),s=this.growingMaxLines>this.rows?this.growingMaxLines:this.rows,l=o*s+a+n;e.style.maxHeight=`${l+2}px`}}},this.handleFocus=()=>{!this.disabled&&!this.readonly&&!this.displayonly&&(this.active=!0,this.labelActiveClass=this._labelActiveClassName)},this.handleBlur=()=>{this._isTouched=!1,this.value?this.labelActiveClass=this._labelActiveClassName:this.labelActiveClass="",this.active=!1}}static async onDefine(){da.i18nBundle=await M("@sapudex/web-components")}onBeforeRendering(){this.value&&this.labelActiveClass===""&&(this.labelActiveClass=this._labelActiveClassName),this.isInputReadonly=this.readonly||this.displayonly,this.labelClasses=`udex-textarea__label ${this.labelActiveClass}`}onAfterRendering(){this.handleGrowing()}handleClick(){ge()||(this._isTouched=!0)}getInputDomRef(){return this.getDomRef().querySelector("textarea")}get hasValueState(){return this.fieldState===Be.Error||this.fieldState===Be.Warning||this.fieldState===Be.Success}get fieldStateTypeMappings(){return{Success:da.i18nBundle.getText(FC),Standard:da.i18nBundle.getText(XC),Error:da.i18nBundle.getText(OC),Warning:da.i18nBundle.getText(zC)}}get ariaValueStateHiddenText(){if(this.hasValueState&&this.fieldState!==Be.Standard)return`${this.fieldStateTypeMappings[this.fieldState]}`}get readOnlyText(){return da.i18nBundle.getText(Gv)}get ariaDescribedBy(){const e=this.hasValueState?`${this._id}-valueStateDesc`:"",t=this.readonly?`${this._id}-readonlyDesc`:"",o=this._supportingText?`${this._id}-supportingTextDesc`:"";if(!(!e&&!o&&!t))return`${e} ${o} ${t}`}get _supportingText(){if(this.supportingText.length)return this.supportingText;const e=this.maxlength;if(e!=null){const t=e-this.value.length;if(t>=0)return da.i18nBundle.getText(MC,t)}}get ariaInvalid(){return this.fieldState===Be.Error?"true":null}get textHiddenLabel(){return da.i18nBundle.getText(HC)}};ht([c({type:String})],et.prototype,"label",void 0);ht([c({type:String})],et.prototype,"value",void 0);ht([c({validator:q})],et.prototype,"rows",void 0);ht([c({type:Boolean})],et.prototype,"growing",void 0);ht([c({validator:q,defaultValue:0})],et.prototype,"growingMaxLines",void 0);ht([c({type:String})],et.prototype,"supportingText",void 0);ht([c({validator:q})],et.prototype,"maxlength",void 0);ht([c({type:Be,defaultValue:Be.Standard})],et.prototype,"fieldState",void 0);ht([c({type:Boolean})],et.prototype,"required",void 0);ht([c({type:Boolean})],et.prototype,"disabled",void 0);ht([c({type:Boolean})],et.prototype,"readonly",void 0);ht([c({type:Boolean})],et.prototype,"displayonly",void 0);ht([c({type:Boolean,noAttribute:!0})],et.prototype,"isInputReadonly",void 0);ht([c({type:String,noAttribute:!0})],et.prototype,"labelClasses",void 0);ht([c({type:String,noAttribute:!0})],et.prototype,"labelActiveClass",void 0);ht([c()],et.prototype,"accessibleName",void 0);ht([c({type:String})],et.prototype,"accessibleNameRef",void 0);ht([c({type:Boolean})],et.prototype,"active",void 0);ht([c({type:Boolean})],et.prototype,"_isTouched",void 0);et=da=ht([y({tag:"udex-textarea",renderer:k,styles:[RK,Ba()],template:IK,dependencies:[Gn]})],et);et.define();function LK(i,e,t){return d`${this.interactive?jK.call(this,i,e,t):MK.call(this,i,e,t)}`}function jK(i,e,t){return d`<span class="hidden" id="tileDescription">${r(this.accessibleName)}</span><a class="udex-tile" part="tile" href="${r(this.href)}" target="${r(this.target)}" role="link" aria-describedby="tileDescription" @keydown="${this._onkeydown}" @click="${this._onclick}"><slot></slot></a>`}function MK(i,e,t){return d`<div class="udex-tile" part="tile" @click="${this._onclick}"><slot></slot></div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const OK={packageName:"@sapudex/web-components",fileName:"themes/Tile.css.ts",content:`:host{--udex-tile-color-clickable-default-background: var(--sapTile_Background, #fff);--udex-tile-color-clickable-hover-background: var(--sapTile_Hover_Background, #fff);--udex-tile-color-clickable-focus-background: var(--sapTile_Active_Background, #fff);--udex-tile-color-clickable-default-border: var(--sapTile_BorderColor, #EAECEE);--udex-tile-color-clickable-hover-border: var(--sapTile_Interactive_BorderColor, #1B90FF);--udex-tile-color-clickable-focus-border: var(--udexColorBlue7, #0070f2);--udex-tile-color-generic-default-background: var(--sapTile_Background, #fff);--udex-tile-color-generic-hover-background: var(--sapTile_Hover_Background, #fff);--udex-tile-color-generic-focus-background: var(--sapTile_Active_Background, #fff);--udex-tile-box-shadow-generic-default: var(--sapContent_Shadow0, "0 2px 4px 0 rgba(34, 54, 73, 0.20)");--udex-tile-box-shadow-generic-hover: var(--sapContent_Shadow1, "0 2px 8px 0 rgba(34, 54, 73, 0.30)");--udex-tile-content-padding-vertical: var(--udexSpacer24, 24px);--udex-tile-content-padding-horizontal: var(--udexSpacer20, 20px);--udex-tile-radius: var(--udexRadiusL, 12px)}.udex-tile{border-radius:var(--udex-tile-radius);background:var(--udex-tile-color-generic-default-background);padding:var(--udex-tile-content-padding-vertical) var(--udex-tile-content-padding-horizontal);box-shadow:var(--udex-tile-box-shadow-generic-default)}:host([interactive]) .udex-tile{display:block;color:inherit;text-decoration:inherit;outline:1px solid var(--udex-tile-color-clickable-default-border);background:var(--udex-tile-color-clickable-default-background)}.udex-tile:hover{box-shadow:var(--udex-tile-box-shadow-generic-hover);background:var(--udex-tile-color-generic-hover-background)}:host([interactive]) .udex-tile:hover{outline:1px solid var(--udex-tile-color-clickable-hover-border);background:var(--udex-tile-color-clickable-hover-background)}:host([desktop]) .udex-tile:focus,.udex-tile:focus-visible,:host .udex-tile:active{background:var(--udex-tile-color-generic-focus-background)}:host([interactive][desktop]) .udex-tile:focus,:host([interactive]) .udex-tile:focus-visible,:host([interactive]) .udex-tile:active{outline:2px solid var(--udex-tile-color-clickable-focus-border);box-shadow:var(--udex-tile-box-shadow-generic-default);background:var(--udex-tile-color-clickable-focus-background)}:host([hide-shadow]) .udex-tile{box-shadow:none}.hidden{display:none}
308
+ `};var ht=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},da;let et=da=class extends E{constructor(){super(...arguments),this._labelActiveClassName="udex-textarea__label--active",this.handleInput=e=>{var t;this.value=(t=e.target)==null?void 0:t.value},this.handleChange=()=>{this.fireEvent("change")},this.handleGrowing=()=>{if(this.growing){const e=this.getInputDomRef();if(this.rows||(this.rows=1),e.style.height="auto",e.style.height=`${e.scrollHeight+2}px`,this.growingMaxLines){const t=getComputedStyle(e),o=parseInt(t.lineHeight),a=parseInt(t.paddingTop),n=parseInt(t.paddingBottom),s=this.growingMaxLines>this.rows?this.growingMaxLines:this.rows,l=o*s+a+n;e.style.maxHeight=`${l+2}px`}}},this.handleFocus=()=>{!this.disabled&&!this.readonly&&!this.displayonly&&(this.active=!0,this.labelActiveClass=this._labelActiveClassName)},this.handleBlur=()=>{this._isTouched=!1,this.value?this.labelActiveClass=this._labelActiveClassName:this.labelActiveClass="",this.active=!1}}static async onDefine(){da.i18nBundle=await M("@sapudex/web-components")}onBeforeRendering(){this.value&&this.labelActiveClass===""&&(this.labelActiveClass=this._labelActiveClassName),this.isInputReadonly=this.readonly||this.displayonly,this.labelClasses=`udex-textarea__label ${this.labelActiveClass}`}onAfterRendering(){this.handleGrowing()}handleClick(){ge()||(this._isTouched=!0)}getInputDomRef(){return this.getDomRef().querySelector("textarea")}get hasValueState(){return this.fieldState===Be.Error||this.fieldState===Be.Warning||this.fieldState===Be.Success}get fieldStateTypeMappings(){return{Success:da.i18nBundle.getText(FC),Standard:da.i18nBundle.getText(XC),Error:da.i18nBundle.getText(OC),Warning:da.i18nBundle.getText(zC)}}get ariaValueStateHiddenText(){if(this.hasValueState&&this.fieldState!==Be.Standard)return`${this.fieldStateTypeMappings[this.fieldState]}`}get readOnlyText(){return da.i18nBundle.getText(Gv)}get ariaDescribedBy(){const e=this.hasValueState?`${this._id}-valueStateDesc`:"",t=this.readonly?`${this._id}-readonlyDesc`:"",o=this._supportingText?`${this._id}-supportingTextDesc`:"";if(!(!e&&!o&&!t))return`${e} ${o} ${t}`}get _supportingText(){if(this.supportingText.length)return this.supportingText;const e=this.maxlength;if(e!=null){const t=e-this.value.length;if(t>=0)return da.i18nBundle.getText(MC,t)}}get ariaInvalid(){return this.fieldState===Be.Error?"true":null}get textHiddenLabel(){return da.i18nBundle.getText(HC)}};ht([c({type:String})],et.prototype,"label",void 0);ht([c({type:String})],et.prototype,"value",void 0);ht([c({validator:q})],et.prototype,"rows",void 0);ht([c({type:Boolean})],et.prototype,"growing",void 0);ht([c({validator:q,defaultValue:0})],et.prototype,"growingMaxLines",void 0);ht([c({type:String})],et.prototype,"supportingText",void 0);ht([c({validator:q})],et.prototype,"maxlength",void 0);ht([c({type:Be,defaultValue:Be.Standard})],et.prototype,"fieldState",void 0);ht([c({type:Boolean})],et.prototype,"required",void 0);ht([c({type:Boolean})],et.prototype,"disabled",void 0);ht([c({type:Boolean})],et.prototype,"readonly",void 0);ht([c({type:Boolean})],et.prototype,"displayonly",void 0);ht([c({type:Boolean,noAttribute:!0})],et.prototype,"isInputReadonly",void 0);ht([c({type:String,noAttribute:!0})],et.prototype,"labelClasses",void 0);ht([c({type:String,noAttribute:!0})],et.prototype,"labelActiveClass",void 0);ht([c()],et.prototype,"accessibleName",void 0);ht([c({type:String})],et.prototype,"accessibleNameRef",void 0);ht([c({type:Boolean})],et.prototype,"active",void 0);ht([c({type:Boolean})],et.prototype,"_isTouched",void 0);et=da=ht([y({tag:"udex-textarea",renderer:k,styles:[RK,Ba()],template:IK,dependencies:[Gn]})],et);et.define();function LK(i,e,t){return d`${this.interactive?jK.call(this,i,e,t):MK.call(this,i,e,t)}`}function jK(i,e,t){return d`<span class="hidden" id="tileDescription">${r(this.accessibleName)}</span><a class="udex-tile" part="tile" href="${r(this.href)}" target="${r(this.target)}" tabindex="0" role="link" aria-describedby="tileDescription" @keydown="${this._onkeydown}" @click="${this._onclick}"><slot></slot></a>`}function MK(i,e,t){return d`<div class="udex-tile" part="tile" @click="${this._onclick}"><slot></slot></div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const OK={packageName:"@sapudex/web-components",fileName:"themes/Tile.css.ts",content:`:host{--udex-tile-color-clickable-default-background: var(--sapTile_Background, #fff);--udex-tile-color-clickable-hover-background: var(--sapTile_Hover_Background, #fff);--udex-tile-color-clickable-focus-background: var(--sapTile_Active_Background, #fff);--udex-tile-color-clickable-default-border: var(--sapTile_BorderColor, #EAECEE);--udex-tile-color-clickable-hover-border: var(--sapTile_Interactive_BorderColor, #1B90FF);--udex-tile-color-clickable-focus-border: var(--udexColorBlue7, #0070f2);--udex-tile-color-generic-default-background: var(--sapTile_Background, #fff);--udex-tile-color-generic-hover-background: var(--sapTile_Hover_Background, #fff);--udex-tile-color-generic-focus-background: var(--sapTile_Active_Background, #fff);--udex-tile-box-shadow-generic-default: var(--sapContent_Shadow0, "0 2px 4px 0 rgba(34, 54, 73, 0.20)");--udex-tile-box-shadow-generic-hover: var(--sapContent_Shadow1, "0 2px 8px 0 rgba(34, 54, 73, 0.30)");--udex-tile-content-padding-vertical: var(--udexSpacer24, 24px);--udex-tile-content-padding-horizontal: var(--udexSpacer20, 20px);--udex-tile-radius: var(--udexRadiusL, 12px)}.udex-tile{border-radius:var(--udex-tile-radius);background:var(--udex-tile-color-generic-default-background);padding:var(--udex-tile-content-padding-vertical) var(--udex-tile-content-padding-horizontal);box-shadow:var(--udex-tile-box-shadow-generic-default)}:host([interactive]) .udex-tile{display:block;color:inherit;text-decoration:inherit;outline:1px solid var(--udex-tile-color-clickable-default-border);background:var(--udex-tile-color-clickable-default-background)}.udex-tile:hover{box-shadow:var(--udex-tile-box-shadow-generic-hover);background:var(--udex-tile-color-generic-hover-background)}:host([interactive]) .udex-tile:hover{outline:1px solid var(--udex-tile-color-clickable-hover-border);background:var(--udex-tile-color-clickable-hover-background)}:host([desktop]) .udex-tile:focus,.udex-tile:focus-visible,:host .udex-tile:active{background:var(--udex-tile-color-generic-focus-background)}:host([interactive][desktop]) .udex-tile:focus,:host([interactive]) .udex-tile:focus-visible,:host([interactive]) .udex-tile:active{outline:2px solid var(--udex-tile-color-clickable-focus-border);box-shadow:var(--udex-tile-box-shadow-generic-default);background:var(--udex-tile-color-clickable-focus-background)}:host([hide-shadow]) .udex-tile{box-shadow:none}.hidden{display:none}
309
309
  `};var ts=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};let ir=class extends E{onEnterDOM(){ge()&&this.setAttribute("desktop","")}_onkeydown(e){var t;if(F(e)){const o=(t=this.shadowRoot)==null?void 0:t.querySelector("a.udex-tile");o&&(e.preventDefault(),o.click())}}_onclick(e){e.stopImmediatePropagation(),this.interactive&&this.fireEvent("click",{originalEvent:e},!0)}};ts([c({type:Boolean})],ir.prototype,"hideShadow",void 0);ts([c({type:Boolean})],ir.prototype,"interactive",void 0);ts([c({type:String})],ir.prototype,"href",void 0);ts([c({type:String})],ir.prototype,"target",void 0);ts([c({type:String})],ir.prototype,"accessibleName",void 0);ts([$({type:Node})],ir.prototype,"default",void 0);ir=ts([y({tag:"udex-tile",renderer:k,styles:OK,template:LK}),f("click",{detail:{originalEvent:{type:Event}}})],ir);ir.define();var xv;(function(i){i.TopStart="TopStart",i.TopCenter="TopCenter",i.TopEnd="TopEnd",i.MiddleStart="MiddleStart",i.MiddleCenter="MiddleCenter",i.MiddleEnd="MiddleEnd",i.BottomStart="BottomStart",i.BottomCenter="BottomCenter",i.BottomEnd="BottomEnd"})(xv||(xv={}));const c1=xv;function zK(i,e,t){return d`${this.domRendered?FK.call(this,i,e,t):void 0} `}function FK(i,e,t){return d`<div class="ui5-toast-root" role="alert" tabindex="${r(this._tabindex)}"><bdi><slot></slot></bdi></div>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@ui5/webcomponents","sap_horizon",async()=>Z);const XK={packageName:"@ui5/webcomponents",fileName:"themes/Toast.css.ts",content:`:host{font-family:"72override",var(--sapFontFamily);color:var(--sapList_TextColor);font-size:var(--sapFontSize);position:fixed;display:none;box-sizing:border-box;max-width:15rem;overflow:hidden;background:var(--_ui5-v1-24-23_toast_background);box-shadow:var(--_ui5-v1-24-23_toast_shadow);border-radius:var(--sapElement_BorderCornerRadius);transition-property:opacity;opacity:1;word-wrap:break-word;text-align:center;text-overflow:ellipsis;white-space:pre-line;padding:1rem}.ui5-toast-root{height:100%;width:100%;padding:0;outline:none;box-sizing:border-box}:host([open]){display:block}:host(:not([placement])){bottom:var(--_ui5-v1-24-23_toast_vertical_offset);left:50%;transform:translate(-50%)}:host([placement="TopStart"]){top:var(--_ui5-v1-24-23_toast_vertical_offset);left:var(--_ui5-v1-24-23_toast_horizontal_offset)}:host([placement="MiddleStart"]){left:var(--_ui5-v1-24-23_toast_horizontal_offset);top:50%;transform:translateY(-50%)}:host([placement="BottomStart"]){left:var(--_ui5-v1-24-23_toast_horizontal_offset);bottom:var(--_ui5-v1-24-23_toast_vertical_offset)}:host([placement="TopCenter"]){top:var(--_ui5-v1-24-23_toast_vertical_offset);left:50%;transform:translate(-50%)}:host([placement="MiddleCenter"]){left:50%;top:50%;transform:translate(-50%,-50%)}:host([placement="BottomCenter"]){bottom:var(--_ui5-v1-24-23_toast_vertical_offset);left:50%;transform:translate(-50%)}:host([placement="TopEnd"]){right:var(--_ui5-v1-24-23_toast_horizontal_offset);top:var(--_ui5-v1-24-23_toast_vertical_offset)}:host([placement="MiddleEnd"]){right:var(--_ui5-v1-24-23_toast_horizontal_offset);top:50%;transform:translateY(-50%)}:host([placement="BottomEnd"]){right:var(--_ui5-v1-24-23_toast_horizontal_offset);bottom:var(--_ui5-v1-24-23_toast_vertical_offset)}:host([focused]){outline-width:var(--sapContent_FocusWidth);outline-style:var(--sapContent_FocusStyle);outline-color:var(--sapContent_FocusColor);outline-offset:var(--_ui5-v1-24-23_toast_offset_width)}
310
310
  `};var on=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n};const u1=500,HK=1e3,xn=[];let kn,h1=!1;const qK=i=>{const e=i.metaKey||!yS()&&i.ctrlKey,t=i.key&&i.key.toLowerCase()==="m",o=e&&i.shiftKey&&t,a=xn.length;o&&(i.preventDefault(),a&&(xn[0].focusable=!0,xn[0].focused?(xn[0].focused=!1,kn==null||kn.focus()):(kn=document.activeElement,xn[0].focus())))};let Ko=class extends E{constructor(){super(),this._reopen=!1,this.addEventListener("focusin",this._onfocusin.bind(this)),this.addEventListener("focusout",this._onfocusout.bind(this)),this.addEventListener("keydown",this._onkeydown.bind(this)),this.addEventListener("mouseover",this._onmouseover.bind(this)),this.addEventListener("mouseleave",this._onmouseleave.bind(this)),this.addEventListener("transitionend",this._ontransitionend.bind(this))}onBeforeRendering(){const e=Math.min(this.effectiveDuration/3,HK);this.style.transitionDuration=this.open?`${e}ms`:"",this.style.transitionDelay=this.open?`${this.effectiveDuration-e}ms`:"",this.style.opacity=this.open&&!this.hover&&!this.focused?"0":"",this.style.zIndex=`${Zv()}`,h1||(document.addEventListener("keydown",qK),h1=!0)}onAfterRendering(){this._reopen&&(this._reopen=!1,this._initiateOpening())}show(){this.open?(this._reopen=!0,this.open=!1):this._initiateOpening()}_onfocusin(){this.focusable&&(this.focused=!0)}_onfocusout(){this.focused=!1}get effectiveDuration(){return this.duration<u1?u1:this.duration}_initiateOpening(){this.domRendered=!0,requestAnimationFrame(()=>{this.open=!0,xn.pop(),xn.push(this)})}_ontransitionend(){this.hover||this.focused||(this.domRendered=!1,this.open=!1,this.focusable=!1,this.focused=!1)}_onmouseover(){this.hover=!0}_onmouseleave(){this.hover=!1}_onkeydown(e){Fe(e)&&(this.focused=!1,kn==null||kn.focus())}get _tabindex(){return this.focused?"0":"-1"}};on([c({validator:q,defaultValue:3e3})],Ko.prototype,"duration",void 0);on([c({type:c1,defaultValue:c1.BottomCenter})],Ko.prototype,"placement",void 0);on([c({type:Boolean})],Ko.prototype,"open",void 0);on([c({type:Boolean})],Ko.prototype,"hover",void 0);on([c({type:Boolean})],Ko.prototype,"domRendered",void 0);on([c({type:Boolean})],Ko.prototype,"focusable",void 0);on([c({type:Boolean})],Ko.prototype,"focused",void 0);Ko=on([y({tag:"ui5-toast",renderer:k,styles:XK,template:zK})],Ko);Ko.define();const sk=Ko;function VK(i,e,t){return d`${this.open?UK.call(this,i,e,t):void 0} `}function UK(i,e,t){return d`<div class="ui5-toast-root udex-toast" role="alert" tabindex="0">${this.withIcon?WK.call(this,i,e,t):void 0}<bdi><slot></slot></bdi>${this.showCloseIcon?GK.call(this,i,e,t):void 0}</div>`}function WK(i,e,t){return t?d`<${u("ui5-icon",e,t)} class="udex-toast__icon" name="${r(this.iconName)}" design="${r(this.iconDesign)}" ui5-icon=""></${u("ui5-icon",e,t)}>`:d`<ui5-icon class="udex-toast__icon" name="${r(this.iconName)}" design="${r(this.iconDesign)}" ui5-icon=""></ui5-icon>`}function GK(i,e,t){return t?d`<${u("udex-button",e,t)} class="udex-toast__button" size="Small" icon="decline" design="Tertiary" accessible-name="close" @click="${this.closeToast}"></${u("udex-button",e,t)}>`:d`<udex-button class="udex-toast__button" size="Small" icon="decline" design="Tertiary" accessible-name="close" @click="${this.closeToast}"></udex-button>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const YK={packageName:"@sapudex/web-components",fileName:"themes/Toast.css.ts",content:`:host{--udex-toast-font-size: var(--udexTypographyBodyXSFontSize, 14px);--udex-toast-color: var(--udexColorGrey9, #223548);--udex-toast-text-line-height: 1.313rem;--udex-toast-border-width: 1px;--udex-toast-border-color: var(--udexColorGrey3, #D5DADD);--udex-toast-close-icon-color: var(--udexColorGrey7, #475E75);--udex-toast-status-icon-size: var(--udexCoreSizeIconInput, 18px);border:var(--udex-toast-border-width) solid var(--udex-toast-border-color);padding:0}:host([desktop]) .udex-toast:focus,.udex-toast:focus-visible{outline:var(--udexSpacer2, 2px) solid var(--udexColorBlue9, #0040B0);outline-offset:-2px}.udex-toast{display:flex;align-items:center;padding:var(--udexSpacer16);border-radius:inherit;line-height:var(--udex-toast-text-line-height);font-size:var(--udexTypographyBodyXSFontSize, 14px);--sapFontSize: var(--udex-toast-font-size)}.udex-toast .udex-toast__icon:dir(ltr){margin-right:var(--udexSpacer16)}.udex-toast .udex-toast__icon{min-width:1rem}.udex-toast .udex-toast__icon:dir(rtl){margin-left:var(--udexSpacer16)}.udex-toast .udex-toast__button{height:var(--udex-toast-text-line-height);--udex-button-color-tertiary-standard-default-text-and-icon: var(--udex-toast-close-icon-color)}.udex-toast .udex-toast__button:dir(ltr){margin:0 0 0 9px}.udex-toast .udex-toast__button:dir(rtl){margin:0 9px 0 0}
311
311
  `};var zh=globalThis&&globalThis.__decorate||function(i,e,t,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var l=i.length-1;l>=0;l--)(s=i[l])&&(n=(a<3?s(n):a>3?s(e,t,n):s(e,t))||n);return a>3&&n&&Object.defineProperty(e,t,n),n},Oo;(function(i){i.Action="Action",i.Success="Success",i.Warning="Warning",i.Error="Error"})(Oo||(Oo={}));let Zs=class extends sk{constructor(){super(...arguments),this.open=!1}onEnterDOM(){ge()&&this.setAttribute("desktop","")}get withIcon(){return this.valueState!==Oo.Action}get iconName(){switch(this.valueState){case Oo.Success:return"sys-enter-2";case Oo.Error:return"error";case Oo.Warning:return"alert";default:return""}}get iconDesign(){switch(this.valueState){case Oo.Success:return"Positive";case Oo.Error:return"Negative";case Oo.Warning:return"Critical";default:return"Default"}}closeToast(){this.open=!1,this.fireEvent("close")}};zh([c({type:Oo,defaultValue:Oo.Action})],Zs.prototype,"valueState",void 0);zh([c()],Zs.prototype,"showCloseIcon",void 0);zh([c({type:Boolean})],Zs.prototype,"open",void 0);Zs=zh([y({tag:"udex-toast",renderer:k,styles:[sk.styles,YK],template:VK,dependencies:[U,Wt]}),f("close")],Zs);Zs.define();function KK(i,e,t){return t?d`<p class="udex-truncated-text"><span class="udex-truncated-text__visible-text">${r(this.visibleText)}</span><${u("udex-button",e,t)} id="toggleButton" design="Tertiary" size="Small" class="udex-truncated-text__toggle-button" @click="${this.onToggleClick}">${r(this.buttonLabel)}</${u("udex-button",e,t)}></p>`:d`<p class="udex-truncated-text"><span class="udex-truncated-text__visible-text">${r(this.visibleText)}</span><udex-button id="toggleButton" design="Tertiary" size="Small" class="udex-truncated-text__toggle-button" @click="${this.onToggleClick}">${r(this.buttonLabel)}</udex-button></p>`}v("@ui5/webcomponents-theming","sap_horizon",async()=>w);v("@sapudex/web-components","sap_horizon",async()=>N);const ZK={packageName:"@sapudex/web-components",fileName:"themes/TruncatedText.css.ts",content:`:host{--udex-truncated-text-font-size: var(--udexTypographyBodySFontSize, 16px);--udex-truncated-text-line-height: var(--udexTypographyBodyLineHeight, 24px)}.udex-truncated-text{font-family:var(--sapFontFamily);font-size:var(--udex-truncated-text-font-size);line-height:var(--udex-truncated-text-line-height);font-weight:var(--udexTypographyFontWeightRegular)}.udex-truncated-text__visible-text{vertical-align:middle}.udex-truncated-text__toggle-button{--udex-button-color-tertiary-standard-hover-background: transparent;--udex-button-color-tertiary-standard-hover-border: transparent;--udex-button-color-tertiary-standard-default-text-and-icon: var(--udexColorBlue7);--udex-button-color-tertiary-standard-active-border: transparent;--udex-button-color-tertiary-standard-default-border: transparent;--udex-button-padding-small: 0 3px;--udexTypographyFontWeightMedium: 400;display:inline-block}
@@ -1 +1 @@
1
- :host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-231-12_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}
1
+ :host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-231-13_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}
@@ -1 +1 @@
1
- :host{--udex-slider-color-track-start-point: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-track-active: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-handle-focus-range: var( --sapSlider_Selected_BorderColor, #0070f2 );--udex-slider-color-handle-active-background: var( --sapSlider_Active_HandleBackground, #ffffff );--udex-slider-color-handle-default-icon: var( --sapContent_Selected_ForegroundColor, #0040b0 );--udex-slider-radius-range-size: var(---udexRadiusM, .5rem)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-231-12_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}
1
+ :host{--udex-slider-color-track-start-point: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-track-active: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-handle-focus-range: var( --sapSlider_Selected_BorderColor, #0070f2 );--udex-slider-color-handle-active-background: var( --sapSlider_Active_HandleBackground, #ffffff );--udex-slider-color-handle-default-icon: var( --sapContent_Selected_ForegroundColor, #0040b0 );--udex-slider-radius-range-size: var(---udexRadiusM, .5rem)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-231-13_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}
@@ -1,7 +1,7 @@
1
1
  /* eslint no-unused-vars: 0 */
2
2
  import { html, ifDefined } from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
3
3
  function block0(context, tags, suffix) { return html `${this.interactive ? block1.call(this, context, tags, suffix) : block2.call(this, context, tags, suffix)}`; }
4
- function block1(context, tags, suffix) { return html `<span class="hidden" id="tileDescription">${ifDefined(this.accessibleName)}</span><a class="udex-tile" part="tile" href="${ifDefined(this.href)}" target="${ifDefined(this.target)}" role="link" aria-describedby="tileDescription" @keydown="${this._onkeydown}" @click="${this._onclick}"><slot></slot></a>`; }
4
+ function block1(context, tags, suffix) { return html `<span class="hidden" id="tileDescription">${ifDefined(this.accessibleName)}</span><a class="udex-tile" part="tile" href="${ifDefined(this.href)}" target="${ifDefined(this.target)}" tabindex="0" role="link" aria-describedby="tileDescription" @keydown="${this._onkeydown}" @click="${this._onclick}"><slot></slot></a>`; }
5
5
  function block2(context, tags, suffix) { return html `<div class="udex-tile" part="tile" @click="${this._onclick}"><slot></slot></div>`; }
6
6
  export default block0;
7
7
  //# sourceMappingURL=TileTemplate.lit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TileTemplate.lit.js","sourceRoot":"","sources":["../../../src/generated/templates/TileTemplate.lit.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,IAAI,EAAmC,SAAS,EAAwB,MAAM,sDAAsD,CAAC;AAK9I,SAAS,MAAM,CAAc,OAAmB,EAAE,IAAc,EAAE,MAA0B,IAAI,OAAO,IAAI,CAAA,GAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAE,EAAE,CAAC,CAAA,CAAC;AAC1N,SAAS,MAAM,CAAc,OAAmB,EAAE,IAAc,EAAE,MAA0B,IAAI,OAAO,IAAI,CAAA,6CAA6C,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,iDAAiD,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,8DAA8D,IAAI,CAAC,UAAU,aAAa,IAAI,CAAC,QAAQ,qBAAqB,CAAC,CAAA,CAAC;AAC5Z,SAAS,MAAM,CAAc,OAAmB,EAAE,IAAc,EAAE,MAA0B,IAAI,OAAO,IAAI,CAAA,8CAA8C,IAAI,CAAC,QAAQ,uBAAuB,CAAC,CAAA,CAAC;AAG/L,eAAe,MAAM,CAAC","sourcesContent":["/* eslint no-unused-vars: 0 */\nimport { html, svg, repeat, classMap, styleMap, ifDefined, unsafeHTML, scopeTag } from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport type UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\n\timport type Tile from \"../../Tile.js\";\n\timport type { ClassMapValue } from \"@ui5/webcomponents-base/dist/types.js\";\n\t\nfunction block0 (this: Tile, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.interactive ? block1.call(this, context, tags, suffix) : block2.call(this, context, tags, suffix) }`;}\nfunction block1 (this: Tile, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class=\"hidden\" id=\"tileDescription\">${ifDefined(this.accessibleName)}</span><a class=\"udex-tile\" part=\"tile\" href=\"${ifDefined(this.href)}\" target=\"${ifDefined(this.target)}\" role=\"link\" aria-describedby=\"tileDescription\" @keydown=\"${this._onkeydown}\" @click=\"${this._onclick}\"><slot></slot></a>`;}\nfunction block2 (this: Tile, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class=\"udex-tile\" part=\"tile\" @click=\"${this._onclick}\"><slot></slot></div>`;}\n\n\nexport default block0;"]}
1
+ {"version":3,"file":"TileTemplate.lit.js","sourceRoot":"","sources":["../../../src/generated/templates/TileTemplate.lit.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,IAAI,EAAmC,SAAS,EAAwB,MAAM,sDAAsD,CAAC;AAK9I,SAAS,MAAM,CAAc,OAAmB,EAAE,IAAc,EAAE,MAA0B,IAAI,OAAO,IAAI,CAAA,GAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAE,EAAE,CAAC,CAAA,CAAC;AAC1N,SAAS,MAAM,CAAc,OAAmB,EAAE,IAAc,EAAE,MAA0B,IAAI,OAAO,IAAI,CAAA,6CAA6C,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,iDAAiD,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,2EAA2E,IAAI,CAAC,UAAU,aAAa,IAAI,CAAC,QAAQ,qBAAqB,CAAC,CAAA,CAAC;AACza,SAAS,MAAM,CAAc,OAAmB,EAAE,IAAc,EAAE,MAA0B,IAAI,OAAO,IAAI,CAAA,8CAA8C,IAAI,CAAC,QAAQ,uBAAuB,CAAC,CAAA,CAAC;AAG/L,eAAe,MAAM,CAAC","sourcesContent":["/* eslint no-unused-vars: 0 */\nimport { html, svg, repeat, classMap, styleMap, ifDefined, unsafeHTML, scopeTag } from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport type UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\n\timport type Tile from \"../../Tile.js\";\n\timport type { ClassMapValue } from \"@ui5/webcomponents-base/dist/types.js\";\n\t\nfunction block0 (this: Tile, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.interactive ? block1.call(this, context, tags, suffix) : block2.call(this, context, tags, suffix) }`;}\nfunction block1 (this: Tile, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class=\"hidden\" id=\"tileDescription\">${ifDefined(this.accessibleName)}</span><a class=\"udex-tile\" part=\"tile\" href=\"${ifDefined(this.href)}\" target=\"${ifDefined(this.target)}\" tabindex=\"0\" role=\"link\" aria-describedby=\"tileDescription\" @keydown=\"${this._onkeydown}\" @click=\"${this._onclick}\"><slot></slot></a>`;}\nfunction block2 (this: Tile, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class=\"udex-tile\" part=\"tile\" @click=\"${this._onclick}\"><slot></slot></div>`;}\n\n\nexport default block0;"]}
@@ -3,7 +3,7 @@ import defaultThemeBase from "@ui5/webcomponents-theming/dist/generated/themes/s
3
3
  import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
4
4
  registerThemePropertiesLoader("@ui5/webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
5
5
  registerThemePropertiesLoader("@sapudex/web-components", "sap_horizon", async () => defaultTheme);
6
- const styleData = { packageName: "@sapudex/web-components", fileName: "themes/RatingIndicator.css.ts", content: `:host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-231-12_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}
6
+ const styleData = { packageName: "@sapudex/web-components", fileName: "themes/RatingIndicator.css.ts", content: `:host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-231-13_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}
7
7
  ` };
8
8
  export default styleData;
9
9
  //# sourceMappingURL=RatingIndicator.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RatingIndicator.css.js","sourceRoot":"","sources":["../../../src/generated/themes/RatingIndicator.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,yBAAyB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAElG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,yBAAyB,EAAC,QAAQ,EAAC,+BAA+B,EAAC,OAAO,EAAC;CACpH,EAAC,CAAC;AACH,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { registerThemePropertiesLoader } from \"@ui5/webcomponents-base/dist/asset-registries/Themes.js\";\n\nimport defaultThemeBase from \"@ui5/webcomponents-theming/dist/generated/themes/sap_horizon/parameters-bundle.css.js\";\nimport defaultTheme from \"./sap_horizon/parameters-bundle.css.js\";\n\nregisterThemePropertiesLoader(\"@ui5/webcomponents-theming\", \"sap_horizon\", async () => defaultThemeBase);\nregisterThemePropertiesLoader(\"@sapudex/web-components\", \"sap_horizon\", async () => defaultTheme);\n\nconst styleData: StyleData = {packageName:\"@sapudex/web-components\",fileName:\"themes/RatingIndicator.css.ts\",content:`:host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-231-12_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}\n`};\nexport default styleData;\n\t"]}
1
+ {"version":3,"file":"RatingIndicator.css.js","sourceRoot":"","sources":["../../../src/generated/themes/RatingIndicator.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,yBAAyB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAElG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,yBAAyB,EAAC,QAAQ,EAAC,+BAA+B,EAAC,OAAO,EAAC;CACpH,EAAC,CAAC;AACH,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { registerThemePropertiesLoader } from \"@ui5/webcomponents-base/dist/asset-registries/Themes.js\";\n\nimport defaultThemeBase from \"@ui5/webcomponents-theming/dist/generated/themes/sap_horizon/parameters-bundle.css.js\";\nimport defaultTheme from \"./sap_horizon/parameters-bundle.css.js\";\n\nregisterThemePropertiesLoader(\"@ui5/webcomponents-theming\", \"sap_horizon\", async () => defaultThemeBase);\nregisterThemePropertiesLoader(\"@sapudex/web-components\", \"sap_horizon\", async () => defaultTheme);\n\nconst styleData: StyleData = {packageName:\"@sapudex/web-components\",fileName:\"themes/RatingIndicator.css.ts\",content:`:host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-231-13_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}\n`};\nexport default styleData;\n\t"]}
@@ -3,7 +3,7 @@ import defaultThemeBase from "@ui5/webcomponents-theming/dist/generated/themes/s
3
3
  import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
4
4
  registerThemePropertiesLoader("@ui5/webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
5
5
  registerThemePropertiesLoader("@sapudex/web-components", "sap_horizon", async () => defaultTheme);
6
- const styleData = { packageName: "@sapudex/web-components", fileName: "themes/Slider.css.ts", content: `:host{--udex-slider-color-track-start-point: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-track-active: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-handle-focus-range: var( --sapSlider_Selected_BorderColor, #0070f2 );--udex-slider-color-handle-active-background: var( --sapSlider_Active_HandleBackground, #ffffff );--udex-slider-color-handle-default-icon: var( --sapContent_Selected_ForegroundColor, #0040b0 );--udex-slider-radius-range-size: var(---udexRadiusM, .5rem)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-231-12_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}
6
+ const styleData = { packageName: "@sapudex/web-components", fileName: "themes/Slider.css.ts", content: `:host{--udex-slider-color-track-start-point: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-track-active: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-handle-focus-range: var( --sapSlider_Selected_BorderColor, #0070f2 );--udex-slider-color-handle-active-background: var( --sapSlider_Active_HandleBackground, #ffffff );--udex-slider-color-handle-default-icon: var( --sapContent_Selected_ForegroundColor, #0040b0 );--udex-slider-radius-range-size: var(---udexRadiusM, .5rem)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-231-13_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}
7
7
  ` };
8
8
  export default styleData;
9
9
  //# sourceMappingURL=Slider.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Slider.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,yBAAyB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAElG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,yBAAyB,EAAC,QAAQ,EAAC,sBAAsB,EAAC,OAAO,EAAC;CAC3G,EAAC,CAAC;AACH,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { registerThemePropertiesLoader } from \"@ui5/webcomponents-base/dist/asset-registries/Themes.js\";\n\nimport defaultThemeBase from \"@ui5/webcomponents-theming/dist/generated/themes/sap_horizon/parameters-bundle.css.js\";\nimport defaultTheme from \"./sap_horizon/parameters-bundle.css.js\";\n\nregisterThemePropertiesLoader(\"@ui5/webcomponents-theming\", \"sap_horizon\", async () => defaultThemeBase);\nregisterThemePropertiesLoader(\"@sapudex/web-components\", \"sap_horizon\", async () => defaultTheme);\n\nconst styleData: StyleData = {packageName:\"@sapudex/web-components\",fileName:\"themes/Slider.css.ts\",content:`:host{--udex-slider-color-track-start-point: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-track-active: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-handle-focus-range: var( --sapSlider_Selected_BorderColor, #0070f2 );--udex-slider-color-handle-active-background: var( --sapSlider_Active_HandleBackground, #ffffff );--udex-slider-color-handle-default-icon: var( --sapContent_Selected_ForegroundColor, #0040b0 );--udex-slider-radius-range-size: var(---udexRadiusM, .5rem)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-231-12_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}\n`};\nexport default styleData;\n\t"]}
1
+ {"version":3,"file":"Slider.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Slider.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,yBAAyB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAElG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,yBAAyB,EAAC,QAAQ,EAAC,sBAAsB,EAAC,OAAO,EAAC;CAC3G,EAAC,CAAC;AACH,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { registerThemePropertiesLoader } from \"@ui5/webcomponents-base/dist/asset-registries/Themes.js\";\n\nimport defaultThemeBase from \"@ui5/webcomponents-theming/dist/generated/themes/sap_horizon/parameters-bundle.css.js\";\nimport defaultTheme from \"./sap_horizon/parameters-bundle.css.js\";\n\nregisterThemePropertiesLoader(\"@ui5/webcomponents-theming\", \"sap_horizon\", async () => defaultThemeBase);\nregisterThemePropertiesLoader(\"@sapudex/web-components\", \"sap_horizon\", async () => defaultTheme);\n\nconst styleData: StyleData = {packageName:\"@sapudex/web-components\",fileName:\"themes/Slider.css.ts\",content:`:host{--udex-slider-color-track-start-point: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-track-active: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-handle-focus-range: var( --sapSlider_Selected_BorderColor, #0070f2 );--udex-slider-color-handle-active-background: var( --sapSlider_Active_HandleBackground, #ffffff );--udex-slider-color-handle-default-icon: var( --sapContent_Selected_ForegroundColor, #0040b0 );--udex-slider-radius-range-size: var(---udexRadiusM, .5rem)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-231-13_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}\n`};\nexport default styleData;\n\t"]}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@sapudex/web-components",
4
- "version": "0.231.12",
4
+ "version": "0.231.13",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapudex/web-components",
3
- "version": "0.231.12",
3
+ "version": "0.231.13",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
package/src/DatePicker.ts CHANGED
@@ -242,7 +242,6 @@ class UDExDatePicker extends DateComponentBase {
242
242
  }
243
243
 
244
244
  async _openRespPopover(): Promise<void> {
245
- this._dropdownTrigger.active = true;
246
245
  this.responsivePopover = await this._getResponsePopover();
247
246
  this.responsivePopover?.onOpen(this._dropdownTrigger._inputHolder);
248
247
  }
package/src/Tile.hbs CHANGED
@@ -5,6 +5,7 @@
5
5
  part="tile"
6
6
  href="{{href}}"
7
7
  target="{{target}}"
8
+ tabindex="0"
8
9
  role="link"
9
10
  aria-describedby="tileDescription"
10
11
  @keydown="{{_onkeydown}}"
@@ -5,7 +5,7 @@ import type UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
5
5
  import type { ClassMapValue } from "@ui5/webcomponents-base/dist/types.js";
6
6
 
7
7
  function block0 (this: Tile, context: UI5Element, tags: string[], suffix: string | undefined) { return html`${ this.interactive ? block1.call(this, context, tags, suffix) : block2.call(this, context, tags, suffix) }`;}
8
- function block1 (this: Tile, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class="hidden" id="tileDescription">${ifDefined(this.accessibleName)}</span><a class="udex-tile" part="tile" href="${ifDefined(this.href)}" target="${ifDefined(this.target)}" role="link" aria-describedby="tileDescription" @keydown="${this._onkeydown}" @click="${this._onclick}"><slot></slot></a>`;}
8
+ function block1 (this: Tile, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<span class="hidden" id="tileDescription">${ifDefined(this.accessibleName)}</span><a class="udex-tile" part="tile" href="${ifDefined(this.href)}" target="${ifDefined(this.target)}" tabindex="0" role="link" aria-describedby="tileDescription" @keydown="${this._onkeydown}" @click="${this._onclick}"><slot></slot></a>`;}
9
9
  function block2 (this: Tile, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class="udex-tile" part="tile" @click="${this._onclick}"><slot></slot></div>`;}
10
10
 
11
11
 
@@ -7,7 +7,7 @@ import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
7
7
  registerThemePropertiesLoader("@ui5/webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
8
8
  registerThemePropertiesLoader("@sapudex/web-components", "sap_horizon", async () => defaultTheme);
9
9
 
10
- const styleData: StyleData = {packageName:"@sapudex/web-components",fileName:"themes/RatingIndicator.css.ts",content:`:host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-231-12_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}
10
+ const styleData: StyleData = {packageName:"@sapudex/web-components",fileName:"themes/RatingIndicator.css.ts",content:`:host{--udex_rating_indicator_readonly_item_width: 1.5rem;--udex_rating_indicator_readonly_item_height: 1.5rem;--udex_rating_indicator_item_width: 1.5rem;--udex_rating_indicator_item_height: 1.5rem;--udex_rating_indicator_mobile_item_padding: 10px;--udex_rating_indicator_disabled_opacity: .4;--udex-rating_indicator_items_gap: 8px;--udex-rating_indicator_mobile_items_gap: 8px;--udex-rating_indicator_rated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_unrated_color: var(--sapContent_RatedColor, #E76500);--udex-rating_indicator_read-only-unrated_color: var(--udexColorGrey6 ,#5B738B);--udex-rating_indicator_disabled-unrated_color: var(--udexColorMango6, #E76500);--udex-rating_indicator_rated_hover_color: var(--udexColorMango7, #C35500);--udex-rating_indicator_unrated_hover_color: var(--udexColorMango7, #C35500)}.udex-rating-indicator{font-family:var(--sapFontFamily);font-size:var(--sapFontSize, 16px)}:host(:not([hidden])){display:inline-flex;margin:var(--_ui5-v0-231-13_rating_indicator_component_spacing);cursor:pointer}:host([disabled]){opacity:var(--udex_rating_indicator_disabled_opacity);cursor:initial;outline:none}:host([readonly]){cursor:initial}:host([disabled]) .udex-rating-indicator__item-unsel,:host([readonly]) .udex-rating-indicator__item-unsel{width:var(--udex_rating_indicator_readonly_item_width);height:var(--udex_rating_indicator_readonly_item_height);padding-inline:0}:host([disabled]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_disabled-unrated_color)}:host([readonly]) .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_read-only-unrated_color)}:host([_focused]){outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:.125rem;border-radius:.25rem}[ui5-icon]{display:flex;text-shadow:var(--sapContent_TextShadow)}.udex-rating-indicator{outline:none;position:relative;display:inline-flex;gap:12px;align-items:center}.udex-rating-indicator__total{color:var(--udexColorGrey6);line-height:24px}.udex-rating-indicator__list{list-style-type:none;display:flex;align-items:center;margin:0;padding:0}.udex-rating-indicator__item{position:relative;width:var(--udex_rating_indicator_item_width);height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_items_gap)}.udex-rating-indicator__item [ui5-icon]{width:100%;height:100%;color:inherit;user-select:none}.udex-rating-indicator__item.udex-rating-indicator__item-sel{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_color)}.udex-rating-indicator__item.udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_color)}.udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{position:absolute;inset-inline-start:50%;color:var(--udex-rating_indicator_rated_color)}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-sel,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__half-icon,:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-half{color:var(--udex-rating_indicator_rated_hover_color)}:host(:not([readonly]):not([disabled])) .ui5-rating-indicator-root:hover{opacity:1}:host(:not([readonly]):not([disabled])) .udex-rating-indicator:hover .udex-rating-indicator__item-unsel{color:var(--udex-rating_indicator_unrated_hover_color)}.udex-rating-indicator__half-icon-wrapper{width:100%;height:100%;position:absolute;inset-inline-start:-50%;top:0;z-index:32;overflow:hidden}.udex-rating-indicator--mobile .udex-rating-indicator__half-icon-wrapper{top:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item [ui5-icon].udex-rating-indicator__half-icon{height:var(--udex_rating_indicator_item_height)}.udex-rating-indicator--mobile .udex-rating-indicator__item{padding:var(--udex_rating_indicator_mobile_item_padding)}:host([readonly]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel,:host([disabled]) .udex-rating-indicator--mobile .udex-rating-indicator__item-unsel{padding-left:var(--udex_rating_indicator_mobile_item_padding);padding-right:var(--udex_rating_indicator_mobile_item_padding)}.udex-rating-indicator--mobile .udex-rating-indicator__item:not(:last-child){margin-inline-end:var(--udex-rating_indicator_mobile_items_gap)}
11
11
  `};
12
12
  export default styleData;
13
13
 
@@ -7,7 +7,7 @@ import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
7
7
  registerThemePropertiesLoader("@ui5/webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
8
8
  registerThemePropertiesLoader("@sapudex/web-components", "sap_horizon", async () => defaultTheme);
9
9
 
10
- const styleData: StyleData = {packageName:"@sapudex/web-components",fileName:"themes/Slider.css.ts",content:`:host{--udex-slider-color-track-start-point: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-track-active: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-handle-focus-range: var( --sapSlider_Selected_BorderColor, #0070f2 );--udex-slider-color-handle-active-background: var( --sapSlider_Active_HandleBackground, #ffffff );--udex-slider-color-handle-default-icon: var( --sapContent_Selected_ForegroundColor, #0040b0 );--udex-slider-radius-range-size: var(---udexRadiusM, .5rem)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-231-12_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}
10
+ const styleData: StyleData = {packageName:"@sapudex/web-components",fileName:"themes/Slider.css.ts",content:`:host{--udex-slider-color-track-start-point: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-track-active: var( --sapSlider_Selected_Background, #0070f2 );--udex-slider-color-handle-focus-range: var( --sapSlider_Selected_BorderColor, #0070f2 );--udex-slider-color-handle-active-background: var( --sapSlider_Active_HandleBackground, #ffffff );--udex-slider-color-handle-default-icon: var( --sapContent_Selected_ForegroundColor, #0040b0 );--udex-slider-radius-range-size: var(---udexRadiusM, .5rem)}:host{font-family:var(--sapFontFamily);font-weight:var(--udexTypographyFontWeightRegular, 400);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px);line-height:var(--udexTypographyHeadingLineHeight, 1.1);color:var(--sapContent_MeasureIndicatorColor, #5b738b);height:74px}.ui5-slider-progress-container:before{background-color:var(--udex-slider-color-track-start-point)}.ui5-slider-progress{background-color:var(--udex-slider-color-track-active)}.ui5-slider-progress:focus:after{border:2px solid var(--udex-slider-color-handle-focus-range);border-radius:var(--udex-slider-radius-range-size)}:host([desktop]) .ui5-slider-handle:focus,.ui5-slider-handle:focus-visible{background-color:var(--_ui5-v0-231-13_range_slider_handle_background_focus)}:host .ui5-slider-inner .ui5-slider-labels{top:34px}:host .ui5-slider-inner .ui5-slider-labels li{height:1.375rem;font-family:var(--sapFontFamily);font-size:var(--udexTypographyNavigationRegularMFontSize, 14px)}[slider-icon]{color:var(--udex-slider-color-handle-default-icon)}
11
11
  `};
12
12
  export default styleData;
13
13