@platform-mesh/portal-ui-lib 0.44.60 → 0.45.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"platform-mesh-portal-ui-lib-models.mjs","sources":["../../projects/lib/models/constants/constants.ts","../../projects/lib/models/models/resource.ts","../../projects/lib/models/platform-mesh-portal-ui-lib-models.ts"],"sourcesContent":["export const ALL_NAMESPACE = '-all-';\nexport const kcpRootOrgsPath = 'root:orgs';\n","import {\n FieldDefinition,\n GenericResource,\n UIDefinition,\n} from './ui-definition';\nimport { Condition, ObjectMeta } from 'kubernetes-types/meta/v1';\n\nexport interface ResourceStatus {\n conditions: Condition[];\n}\n\nexport interface ResourceSpec extends Record<string, any> {\n type: string;\n description?: string;\n displayName?: string;\n}\n\nexport interface ResourceMeta extends ObjectMeta {\n name: string;\n}\n\nexport interface Resource extends GenericResource {\n metadata: ResourceMeta;\n spec?: ResourceSpec;\n status?: ResourceStatus;\n __typename?: string;\n data?: Record<string, any>;\n ready?: boolean;\n isAvailable?: boolean;\n accessibleName?: string;\n}\n\nexport interface ResourceDefinition {\n apiGroup?: string;\n version: string;\n entityCollection: string;\n entity: string;\n name?: string;\n scope?: KubernetesScope;\n namespace?: string;\n readyCondition?: FieldDefinition;\n ui?: UIDefinition;\n}\n\nexport const ResourceOperationTypeMap = {\n ADDED: 'ADDED',\n MODIFIED: 'MODIFIED',\n DELETED: 'DELETED',\n} as const;\n\nexport type ResourceOperationType =\n (typeof ResourceOperationTypeMap)[keyof typeof ResourceOperationTypeMap];\n\nexport interface ResourceSubscriptionResult {\n type: ResourceOperationType;\n object: Resource;\n}\n\nexport interface ResourcePagination {\n limit: number | undefined;\n continue: string | undefined;\n}\n\nexport interface ResourceListResult {\n resourceVersion: string;\n items: Resource[];\n continue: string | undefined;\n remainingItemCount?: number;\n}\n\nexport type KubernetesScope = 'Cluster' | 'Namespaced';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAO,MAAM,aAAa,GAAG;AACtB,MAAM,eAAe,GAAG;;AC2CxB,MAAM,wBAAwB,GAAG;AACtC,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,OAAO,EAAE,SAAS;;;AC/CpB;;AAEG;;;;"}
1
+ {"version":3,"file":"platform-mesh-portal-ui-lib-models.mjs","sources":["../../projects/lib/models/constants/constants.ts","../../projects/lib/models/models/resource.ts","../../projects/lib/models/platform-mesh-portal-ui-lib-models.ts"],"sourcesContent":["export const ALL_NAMESPACE = '-all-';\nexport const kcpRootOrgsPath = 'root:orgs';\n","import { UIDefinition } from './ui-definition';\nimport { FieldDefinition, GenericResource } from '@openmfp/ngx';\nimport { Condition, ObjectMeta } from 'kubernetes-types/meta/v1';\n\nexport interface ResourceStatus {\n conditions: Condition[];\n}\n\nexport interface ResourceSpec extends Record<string, any> {\n type: string;\n description?: string;\n displayName?: string;\n}\n\nexport interface ResourceMeta extends ObjectMeta {\n name: string;\n}\n\nexport interface Resource extends GenericResource {\n metadata: ResourceMeta;\n spec?: ResourceSpec;\n status?: ResourceStatus;\n __typename?: string;\n data?: Record<string, any>;\n ready?: boolean;\n isAvailable?: boolean;\n accessibleName?: string;\n}\n\nexport interface ResourceDefinition {\n apiGroup?: string;\n version: string;\n entityCollection: string;\n entity: string;\n name?: string;\n scope?: KubernetesScope;\n namespace?: string;\n readyCondition?: FieldDefinition;\n ui?: UIDefinition;\n}\n\nexport const ResourceOperationTypeMap = {\n ADDED: 'ADDED',\n MODIFIED: 'MODIFIED',\n DELETED: 'DELETED',\n} as const;\n\nexport type ResourceOperationType =\n (typeof ResourceOperationTypeMap)[keyof typeof ResourceOperationTypeMap];\n\nexport interface ResourceSubscriptionResult {\n type: ResourceOperationType;\n object: Resource;\n}\n\nexport interface ResourcePagination {\n limit: number | undefined;\n continue: string | undefined;\n}\n\nexport interface ResourceListResult {\n resourceVersion: string;\n items: Resource[];\n continue: string | undefined;\n remainingItemCount?: number;\n}\n\nexport type KubernetesScope = 'Cluster' | 'Namespaced';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAO,MAAM,aAAa,GAAG;AACtB,MAAM,eAAe,GAAG;;ACwCxB,MAAM,wBAAwB,GAAG;AACtC,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,OAAO,EAAE,SAAS;;;AC5CpB;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-mesh/portal-ui-lib",
3
- "version": "0.44.60",
3
+ "version": "0.45.0",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/platform-mesh/portal-ui-lib.git"
6
6
  },
@@ -12,7 +12,8 @@
12
12
  "tslib": "2.8.1"
13
13
  },
14
14
  "peerDependencies": {
15
- "@openmfp/portal-ui-lib": "^0.189.0 || ^0.191.0 || ^0.192.0"
15
+ "@openmfp/portal-ui-lib": "^0.189.0 || ^0.191.0 || ^0.192.0",
16
+ "@openmfp/ngx": "^0.7.0"
16
17
  },
17
18
  "files": [
18
19
  "assets/**",
@@ -1,75 +1,18 @@
1
+ import { TableFieldDefinition, FormFieldDefinition, GenericResource, FieldDefinition as FieldDefinition$1 } from '@openmfp/ngx';
2
+ export { ButtonSettings, CssRule, CssRuleCondition, GenericResource, ModalSettings, PropertyField, TransformType, UiSettings, ValueCellButtonClickEvent } from '@openmfp/ngx';
1
3
  import { ObjectMeta, Condition } from 'kubernetes-types/meta/v1';
2
4
 
3
5
  declare const ALL_NAMESPACE = "-all-";
4
6
  declare const kcpRootOrgsPath = "root:orgs";
5
7
 
6
- type TransformType = 'uppercase' | 'lowercase' | 'capitalize' | 'decode' | 'encode';
7
- interface PropertyField {
8
- key: string;
9
- transform?: TransformType[];
10
- }
11
- interface UiSettings {
12
- labelDisplay?: boolean;
13
- displayAs?: 'secret' | 'boolIcon' | 'link' | 'tooltip' | 'alert' | 'img' | 'button';
14
- buttonSettings?: ButtonSettings;
15
- tooltipIcon?: string;
16
- withCopyButton?: boolean;
17
- cssCustomization?: Partial<CSSStyleDeclaration>;
18
- cssRules?: CssRule[];
19
- }
20
- interface ButtonSettings {
21
- text?: string;
22
- icon?: string;
23
- endIcon?: string;
24
- design?: 'Default' | 'Positive' | 'Negative' | 'Transparent' | 'Emphasized' | 'Attention';
25
- tooltip?: string;
26
- action: 'openInModal' | 'navigate';
27
- modalSettings?: ModalSettings;
28
- }
29
- interface ModalSettings {
30
- title?: string;
31
- size?: 'fullscreen' | 'l' | 'm' | 's';
32
- width?: string;
33
- height?: string;
34
- }
35
- type CssRuleCondition = 'equals' | 'notEquals' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual' | 'contains';
36
- interface CssRule {
37
- if: {
38
- condition: CssRuleCondition;
39
- value: string;
40
- };
41
- styles: Partial<CSSStyleDeclaration>;
42
- }
43
- interface GenericResource extends Record<string, any> {
44
- isAvailable?: boolean;
45
- }
46
- interface ValueCellButtonClickEvent<T extends GenericResource> {
47
- event: MouseEvent;
48
- field: FieldDefinition;
49
- resource: T | undefined;
50
- }
51
- interface FieldDefinition {
52
- label?: string;
53
- property?: string | string[];
54
- propertyField?: PropertyField;
55
- jsonPathExpression?: string;
56
- required?: boolean;
57
- values?: string[];
58
- value?: string;
59
- group?: {
60
- name: string;
61
- label?: string;
62
- delimiter?: string;
63
- multiline?: boolean;
64
- };
65
- uiSettings?: UiSettings;
8
+ type FieldDefinition = TableFieldDefinition & Omit<FormFieldDefinition, 'name'> & {
66
9
  dynamicValuesDefinition?: {
67
10
  operation: string;
68
11
  gqlQuery: string;
69
12
  value: string;
70
13
  key: string;
71
14
  };
72
- }
15
+ };
73
16
  interface UiView {
74
17
  actions?: FieldDefinition[];
75
18
  fields?: FieldDefinition[];
@@ -115,7 +58,7 @@ interface ResourceDefinition {
115
58
  name?: string;
116
59
  scope?: KubernetesScope;
117
60
  namespace?: string;
118
- readyCondition?: FieldDefinition;
61
+ readyCondition?: FieldDefinition$1;
119
62
  ui?: UIDefinition;
120
63
  }
121
64
  declare const ResourceOperationTypeMap: {
@@ -171,4 +114,4 @@ interface LogicalCluster {
171
114
  }
172
115
 
173
116
  export { ALL_NAMESPACE, ResourceOperationTypeMap, kcpRootOrgsPath };
174
- export type { AccountInfo, ButtonSettings, CssRule, CssRuleCondition, DetailView, FieldDefinition, GenericResource, KubernetesScope, LogicalCluster, ModalSettings, PropertyField, Resource, ResourceDefinition, ResourceListResult, ResourceMeta, ResourceOperationType, ResourcePagination, ResourceSpec, ResourceStatus, ResourceSubscriptionResult, TransformType, UIDefinition, UiSettings, UiView, ValueCellButtonClickEvent };
117
+ export type { AccountInfo, DetailView, FieldDefinition, KubernetesScope, LogicalCluster, Resource, ResourceDefinition, ResourceListResult, ResourceMeta, ResourceOperationType, ResourcePagination, ResourceSpec, ResourceStatus, ResourceSubscriptionResult, UIDefinition, UiView };
package/assets/621.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[621],{9621(ee,R,l){l.d(R,{default:()=>k});var O=l(8431);function p(n,u,e,t){return n.replaceAll(new RegExp((n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(u),(t?"i":"")+"g"),e)}var I=l(1934),g=l(1642),H=l(6136),f=l(6981),r=l(1892),_=l(9574);function F(){return(0,r.Y)("div",{part:"content",id:"content",class:"ui5-li-content",children:(0,r.FD)("div",{class:"ui5-li-text-wrapper",children:[(0,r.Y)("span",{part:"title",className:"ui5-li-title",dangerouslySetInnerHTML:{__html:this.markupText}}),this.additionalText&&(0,r.Y)("span",{part:"additional-text",class:"ui5-li-additional-text",children:this.additionalText})]})})}var v=l(467),S=l(8923),M=l(303),Y=l(5444);(0,S.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,v.A)(function*(){return M.A})),(0,S.Rh)("@ui5/webcomponents","sap_horizon",(0,v.A)(function*(){return Y.A}),"host");var d=function(n,u,e,t){var o,i=arguments.length,s=i<3?u:null===t?t=Object.getOwnPropertyDescriptor(u,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,u,e,t);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(i<3?o(s):i>3?o(u,e,s):o(u,e))||s);return i>3&&s&&Object.defineProperty(u,e,s),s};let c=class extends f.A{constructor(){super(...arguments),this.markupText=""}onEnterDOM(){(0,H.xl)()&&this.setAttribute("desktop","")}get _effectiveTabIndex(){return-1}};d([(0,g.A)()],c.prototype,"text",void 0),d([(0,g.A)()],c.prototype,"additionalText",void 0),d([(0,g.A)()],c.prototype,"markupText",void 0),c=d([(0,I.A)({tag:"ui5-suggestion-item",template:function V(){return[_.A.call(this,{listItemContent:F},{role:"option"})]},styles:[f.A.styles,":host([ui5-suggestion-item]){height:auto;min-height:var(--_ui5_list_item_base_height)}:host([ui5-suggestion-item]) .ui5-li-root{min-height:var(--_ui5_list_item_base_height)}:host([ui5-suggestion-item]) .ui5-li-content{padding-bottom:.5rem;padding-top:.5rem;box-sizing:border-box}\n"]})],c),c.define();var w=l(6993),E=l(6374),$=l(45),B=l(7601),z=l(897);function W(){return(0,r.Y)("slot",{})}var x=function(n,u,e,t){var o,i=arguments.length,s=i<3?u:null===t?t=Object.getOwnPropertyDescriptor(u,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,u,e,t);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(i<3?o(s):i>3?o(u,e,s):o(u,e))||s);return i>3&&s&&Object.defineProperty(u,e,s),s};let m=class extends E.A{};x([(0,w.A)({default:!0,invalidateOnChildChange:!0,type:HTMLElement})],m.prototype,"items",void 0),m=x([(0,I.A)({tag:"ui5-suggestion-item-group",template:function j(n){const u=n?.items||W;return(0,r.FD)("ul",{role:"group",class:"ui5-group-li-root",onDragEnter:this._ondragenter,onDragOver:this._ondragover,onDrop:this._ondrop,onDragLeave:this._ondragleave,children:[this.hasHeader&&(0,r.Y)($.A,{focused:this.focused,part:"header",accessibleRole:z.A.Group,wrappingType:this.getGroupHeaderWrapping(),children:this.hasFormattedHeader?(0,r.Y)("slot",{name:"header"}):this.headerText}),u.call(this),(0,r.Y)(B.A,{orientation:"Horizontal",ownerReference:this})]})}})],m),m.define();var A=l(6745),T=l(8731),U=l(6157),K=l(2920),C=l(7778),X=l(9698),J=l(6983);function Q(n){const u=n?.suggestionsList||Z,e=n?.mobileHeader,t=n?.valueStateMessage,i=n?.valueStateMessageInputIcon;return(0,r.FD)(K.A,{class:this.classes.popover,hideArrow:!0,preventFocusRestore:!0,preventInitialFocus:!0,placement:"Bottom",horizontalAlign:"Start",tabindex:-1,style:this.styles.suggestionsPopover,onOpen:this._afterOpenPicker,onClose:this._afterClosePicker,onScroll:this._scroll,open:this.open,opener:this,accessibleName:this._popupLabel,children:[this._isPhone&&(0,r.Y)(r.FK,{children:(0,r.FD)("div",{slot:"header",class:"ui5-responsive-popover-header",children:[(0,r.Y)("div",{class:"row",children:(0,r.Y)(J.A,{level:"H1",wrappingType:"None",class:"ui5-responsive-popover-header-text",children:this._headerTitleText})}),(0,r.Y)("div",{class:"row",children:(0,r.FD)("div",{class:"input-root-phone native-input-wrapper",children:[(0,r.Y)(A.A,{class:"ui5-input-inner-phone",type:this.inputType,value:this.value,showClearIcon:this.showClearIcon,placeholder:this.placeholder,onInput:this._handleInput}),e?.call(this)]})}),this.hasValueStateMessage&&(0,r.FD)("div",{class:this.classes.popoverValueState,style:this.styles.suggestionPopoverHeader,children:[(0,r.Y)(T.A,{class:"ui5-input-value-state-message-icon",name:i?.call(this)}),this.open&&t?.call(this)]})]})}),!this._isPhone&&this.hasValueStateMessage&&(0,r.FD)("div",{slot:"header",class:{"ui5-responsive-popover-header":!0,...this.classes.popoverValueState},style:this.styles.suggestionPopoverHeader,children:[(0,r.Y)(T.A,{class:"ui5-input-value-state-message-icon",name:i?.call(this)}),this.open&&t?.call(this)]}),this.showSuggestions&&u.call(this),this._isPhone&&(0,r.FD)("div",{slot:"footer",class:"ui5-responsive-popover-footer",children:[(0,r.Y)(C.A,{design:"Emphasized",onClick:this._confirmMobileValue,children:this._suggestionsOkButtonText}),(0,r.Y)(C.A,{class:"ui5-responsive-popover-close-btn",design:"Transparent",onClick:this._cancelMobileValue,children:this._suggestionsCancelButtonText})]})]})}function Z(){return(0,r.Y)(U.A,{accessibleRole:X.A.ListBox,separators:this.suggestionSeparators,selectionMode:"Single",onMouseDown:this.onItemMouseDown,onItemClick:this._handleSuggestionItemPress,onSelectionChange:this._handleSelectionChange,children:(0,r.Y)("slot",{})})}var P=l(5166);let b=(()=>{class n{get template(){return Q}constructor(e,t,i,s){this.component=e,this.slotName=t,this.handleFocus=s,this.highlight=i,this.selectedItemIndex=-1}onUp(e,t){return e.preventDefault(),this._handleItemNavigation(!1,!this.isOpened&&this._hasValueState&&-1===t?0:t),!0}onDown(e,t){return e.preventDefault(),this._handleItemNavigation(!0,!this.isOpened&&this._hasValueState&&-1===t?0:t),!0}onSpace(e){return!!this._isItemOnTarget()&&(e.preventDefault(),this.onItemSelected(this._selectedItem,!0),!0)}onEnter(e){return this._isGroupItem?(e.preventDefault(),!1):!!this._isItemOnTarget()&&(this.onItemSelected(this._selectedItem,!0),!0)}onPageUp(e){return e.preventDefault(),this._moveItemSelection(this.selectedItemIndex,this.selectedItemIndex-10>-1?this.selectedItemIndex-=10:this.selectedItemIndex=0),!0}onPageDown(e){e.preventDefault();const t=this.visibleItems;if(!t)return!0;const i=t.length-1;return this._moveItemSelection(this.selectedItemIndex,this.selectedItemIndex+10<=i?this.selectedItemIndex+=10:this.selectedItemIndex=i),!0}onHome(e){return e.preventDefault(),this._moveItemSelection(this.selectedItemIndex,this.selectedItemIndex=0),!0}onEnd(e){e.preventDefault();const t=this._getItems().length-1;return t&&this._moveItemSelection(this.selectedItemIndex,this.selectedItemIndex=t),!0}onTab(){return!!this._isItemOnTarget()&&(this.onItemSelected(this._selectedItem,!0),!0)}toggle(e,t){(void 0!==e?e:!this.isOpened())?this._getComponent().open=!0:this.close(t.preventFocusRestore)}get _selectedItem(){return this._getNonGroupItems().find(e=>e.selected)}_isScrollable(){const e=this._getScrollContainer();return e.offsetHeight<e.scrollHeight}close(e=!1){const t=this._getItems()&&this._getItems()[this.selectedItemIndex];this._getComponent().open=!1;const i=this._getPicker();i.preventFocusRestore=e,i.open=!1,t&&t.focused&&(t.focused=!1)}updateSelectedItemPosition(e){this.selectedItemIndex=e}onItemSelected(e,t){const i=e,s=this._getNonGroupItems();i&&(this.accInfo={isGroup:i.hasAttribute("ui5-suggestion-item-group"),currentPos:s.indexOf(i)+1,listSize:s.length,itemText:i.text||"",additionalText:i.additionalText},this._getComponent().onItemSelected(i,t),this._getComponent().open=!1)}onItemSelect(e){this._getComponent().onItemSelect(e)}onItemPress(e){let t;const i="ui5-item-click"===e.type;i&&!e.detail.item.selected||this._handledPress&&!i||(i&&e.detail.item.selected?(t=e.detail.item,this._handledPress=!0):t=e.detail.selectedItems[0],this.onItemSelected(t,!1))}_onClose(){this._handledPress=!1}_isItemOnTarget(){return this.isOpened()&&null!==this.selectedItemIndex&&-1!==this.selectedItemIndex&&!this._isGroupItem}get _isGroupItem(){const e=this._getItems();return!(!e||!e[this.selectedItemIndex])&&e[this.selectedItemIndex].hasAttribute("ui5-suggestion-item-group")}isOpened(){return!!this._getPicker()?.open}_handleItemNavigation(e,t){this.selectedItemIndex=t,this._getItems().length&&(e?this._selectNextItem():this._selectPreviousItem())}_selectNextItem(){const e=this._getItems().length,t=this.selectedItemIndex;-1!==t&&t+1>e-1||this._moveItemSelection(t,++this.selectedItemIndex)}_selectPreviousItem(){const e=this.visibleItems,t=this.selectedItemIndex;if(-1!==t&&null!==t){if(t-1<0)return(e[t].hasAttribute("ui5-suggestion-item")||e[t].hasAttribute("ui5-suggestion-item-custom"))&&(e[t].selected=!1),e[t].focused=!1,this.component.focused=!0,this.component.hasSuggestionItemSelected=!1,this.component.value=this.component.typedInValue,void(this.selectedItemIndex-=1);this._moveItemSelection(t,--this.selectedItemIndex)}}get visibleItems(){return this._getItems().filter(e=>!e.hidden)}_moveItemSelection(e,t){const i=this.visibleItems,s=i[t],o=i[e],a=this._getNonGroupItems(),h=s?.hasAttribute("ui5-suggestion-item-group");if(!s)return;this.component.focused=!1;const D=this.visibleItems[this.selectedItemIndex];if(this.accInfo={isGroup:h,currentPos:i.indexOf(s)+1,itemText:(h?D.headerText:D.text)||""},(s.hasAttribute("ui5-suggestion-item")||s.hasAttribute("ui5-suggestion-item-custom"))&&(this.accInfo.additionalText=s.additionalText||"",this.accInfo.currentPos=a.indexOf(s)+1,this.accInfo.listSize=a.length),o&&(o.focused=!1),(o?.hasAttribute("ui5-suggestion-item")||o?.hasAttribute("ui5-suggestion-item-custom"))&&(o.selected=!1),s&&(s.focused=!0,h||(s.selected=!0),this.handleFocus&&s.focus()),this.component.hasSuggestionItemSelected=!0,this.onItemSelect(s),!this._isItemIntoView(s)){const q=this._isGroupItem?s.shadowRoot.querySelector("[ui5-li-group-header]"):s;this._scrollItemIntoView(q)}}_deselectItems(){this._getItems().forEach(t=>{(t.hasAttribute("ui5-suggestion-item")||t.hasAttribute("ui5-suggestion-item-custom"))&&(t.selected=!1),t.focused=!1})}_clearItemFocus(){const e=this._getItems().find(t=>t.focused);e&&(e.focused=!1)}_isItemIntoView(e){const t=e.getDomRef().getBoundingClientRect(),i=this._getComponent().getDomRef().getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight;let o=0;return this._hasValueState&&(o=this._getPicker().querySelector("[slot=header]").getBoundingClientRect().height),t.top+n.SCROLL_STEP<=s&&t.top>=i.top+o}_scrollItemIntoView(e){e.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}_getScrollContainer(){return this._scrollContainer||(this._scrollContainer=this._getPicker().shadowRoot.querySelector(".ui5-popup-content")),this._scrollContainer}_getItems(){return this._getComponent().getSlottedNodes("suggestionItems").flatMap(t=>t.hasAttribute("ui5-suggestion-item-group")?[t,...t.items]:[t])}_getNonGroupItems(){return this._getItems().filter(e=>!e.hasAttribute("ui5-suggestion-item-group"))}_getComponent(){return this.component}_getList(){return this._getPicker().querySelector("[ui5-list]")}_getListWidth(){return this._getList()?.offsetWidth}_getPicker(){return this._getComponent().shadowRoot.querySelector("[ui5-responsive-popover]")}get itemSelectionAnnounce(){if(!this.accInfo)return"";if(this.accInfo.isGroup)return`${n.i18nBundle.getText(P.Fr3)} ${this.accInfo.itemText}`;const e=n.i18nBundle.getText(P.piN,this.accInfo.currentPos||0,this.accInfo.listSize||0);return`${this.accInfo.additionalText} ${e}`.trim()}hightlightInput(e,t){return function G(n,u){if(!n||!u)return n;const e=o=>{const[a,h]=o.split("");for(;n.indexOf(o)>=0||u.indexOf(o)>=0;)o=`${a}${o}${h}`;return o},t=e("12"),i=e("34");let s=(0,O.A)(p(n,u,o=>`${t}${o}${i}`,!0));return[[t,"<b>"],[i,"</b>"]].forEach(([o,a])=>{s=p(s,o,a,!1)}),s}(e,t)}get _hasValueState(){return this.component.hasValueStateMessage}_clearSelectedSuggestionAndaccInfo(){this.accInfo=void 0,this.selectedItemIndex=0}}return n.SCROLL_STEP=60,n})();A.A.SuggestionsClass=b;const k=b}}]);