@ui5/webcomponents-base 2.27.2 → 2.28.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.
@@ -1096,115 +1096,115 @@
1096
1096
  },
1097
1097
  {
1098
1098
  "kind": "javascript-module",
1099
- "path": "dist/asset-registries/Icons.js",
1099
+ "path": "dist/config/AnimationMode.js",
1100
1100
  "declarations": [],
1101
1101
  "exports": []
1102
1102
  },
1103
1103
  {
1104
1104
  "kind": "javascript-module",
1105
- "path": "dist/asset-registries/Illustrations.js",
1105
+ "path": "dist/config/CalendarType.js",
1106
1106
  "declarations": [],
1107
1107
  "exports": []
1108
1108
  },
1109
1109
  {
1110
1110
  "kind": "javascript-module",
1111
- "path": "dist/asset-registries/LocaleData.js",
1111
+ "path": "dist/config/ConfigurationReset.js",
1112
1112
  "declarations": [],
1113
1113
  "exports": []
1114
1114
  },
1115
1115
  {
1116
1116
  "kind": "javascript-module",
1117
- "path": "dist/asset-registries/Themes.js",
1117
+ "path": "dist/config/ConfigurationSync.js",
1118
1118
  "declarations": [],
1119
1119
  "exports": []
1120
1120
  },
1121
1121
  {
1122
1122
  "kind": "javascript-module",
1123
- "path": "dist/asset-registries/i18n.js",
1123
+ "path": "dist/config/Fonts.js",
1124
1124
  "declarations": [],
1125
1125
  "exports": []
1126
1126
  },
1127
1127
  {
1128
1128
  "kind": "javascript-module",
1129
- "path": "dist/config/AnimationMode.js",
1129
+ "path": "dist/config/FormatSettings.js",
1130
1130
  "declarations": [],
1131
1131
  "exports": []
1132
1132
  },
1133
1133
  {
1134
1134
  "kind": "javascript-module",
1135
- "path": "dist/config/CalendarType.js",
1135
+ "path": "dist/config/Icons.js",
1136
1136
  "declarations": [],
1137
1137
  "exports": []
1138
1138
  },
1139
1139
  {
1140
1140
  "kind": "javascript-module",
1141
- "path": "dist/config/ConfigurationReset.js",
1141
+ "path": "dist/config/Language.js",
1142
1142
  "declarations": [],
1143
1143
  "exports": []
1144
1144
  },
1145
1145
  {
1146
1146
  "kind": "javascript-module",
1147
- "path": "dist/config/ConfigurationSync.js",
1147
+ "path": "dist/config/NoConflict.js",
1148
1148
  "declarations": [],
1149
1149
  "exports": []
1150
1150
  },
1151
1151
  {
1152
1152
  "kind": "javascript-module",
1153
- "path": "dist/config/Fonts.js",
1153
+ "path": "dist/config/Theme.js",
1154
1154
  "declarations": [],
1155
1155
  "exports": []
1156
1156
  },
1157
1157
  {
1158
1158
  "kind": "javascript-module",
1159
- "path": "dist/config/FormatSettings.js",
1159
+ "path": "dist/config/ThemeRoot.js",
1160
1160
  "declarations": [],
1161
1161
  "exports": []
1162
1162
  },
1163
1163
  {
1164
1164
  "kind": "javascript-module",
1165
- "path": "dist/config/Icons.js",
1165
+ "path": "dist/config/Timezone.js",
1166
1166
  "declarations": [],
1167
1167
  "exports": []
1168
1168
  },
1169
1169
  {
1170
1170
  "kind": "javascript-module",
1171
- "path": "dist/config/Language.js",
1171
+ "path": "dist/config/Tooltips.js",
1172
1172
  "declarations": [],
1173
1173
  "exports": []
1174
1174
  },
1175
1175
  {
1176
1176
  "kind": "javascript-module",
1177
- "path": "dist/config/NoConflict.js",
1177
+ "path": "dist/config/UrlParams.js",
1178
1178
  "declarations": [],
1179
1179
  "exports": []
1180
1180
  },
1181
1181
  {
1182
1182
  "kind": "javascript-module",
1183
- "path": "dist/config/Theme.js",
1183
+ "path": "dist/asset-registries/Icons.js",
1184
1184
  "declarations": [],
1185
1185
  "exports": []
1186
1186
  },
1187
1187
  {
1188
1188
  "kind": "javascript-module",
1189
- "path": "dist/config/ThemeRoot.js",
1189
+ "path": "dist/asset-registries/Illustrations.js",
1190
1190
  "declarations": [],
1191
1191
  "exports": []
1192
1192
  },
1193
1193
  {
1194
1194
  "kind": "javascript-module",
1195
- "path": "dist/config/Timezone.js",
1195
+ "path": "dist/asset-registries/LocaleData.js",
1196
1196
  "declarations": [],
1197
1197
  "exports": []
1198
1198
  },
1199
1199
  {
1200
1200
  "kind": "javascript-module",
1201
- "path": "dist/config/Tooltips.js",
1201
+ "path": "dist/asset-registries/Themes.js",
1202
1202
  "declarations": [],
1203
1203
  "exports": []
1204
1204
  },
1205
1205
  {
1206
1206
  "kind": "javascript-module",
1207
- "path": "dist/config/UrlParams.js",
1207
+ "path": "dist/asset-registries/i18n.js",
1208
1208
  "declarations": [],
1209
1209
  "exports": []
1210
1210
  },
@@ -1781,6 +1781,21 @@
1781
1781
  }
1782
1782
  ]
1783
1783
  },
1784
+ {
1785
+ "kind": "javascript-module",
1786
+ "path": "dist/react18/createReactComponent.js",
1787
+ "declarations": [],
1788
+ "exports": [
1789
+ {
1790
+ "kind": "js",
1791
+ "name": "default",
1792
+ "declaration": {
1793
+ "name": "createReactComponent",
1794
+ "module": "dist/react18/createReactComponent.js"
1795
+ }
1796
+ }
1797
+ ]
1798
+ },
1784
1799
  {
1785
1800
  "kind": "javascript-module",
1786
1801
  "path": "dist/renderer/JsxRenderer.js",
@@ -2802,6 +2817,21 @@
2802
2817
  }
2803
2818
  ]
2804
2819
  },
2820
+ {
2821
+ "kind": "javascript-module",
2822
+ "path": "dist/util/highlightText.js",
2823
+ "declarations": [],
2824
+ "exports": [
2825
+ {
2826
+ "kind": "js",
2827
+ "name": "default",
2828
+ "declaration": {
2829
+ "name": "highlightText",
2830
+ "module": "dist/util/highlightText.js"
2831
+ }
2832
+ }
2833
+ ]
2834
+ },
2805
2835
  {
2806
2836
  "kind": "javascript-module",
2807
2837
  "path": "dist/util/isElementClickable.js",
@@ -1078,115 +1078,115 @@
1078
1078
  },
1079
1079
  {
1080
1080
  "kind": "javascript-module",
1081
- "path": "dist/asset-registries/Icons.js",
1081
+ "path": "dist/config/AnimationMode.js",
1082
1082
  "declarations": [],
1083
1083
  "exports": []
1084
1084
  },
1085
1085
  {
1086
1086
  "kind": "javascript-module",
1087
- "path": "dist/asset-registries/Illustrations.js",
1087
+ "path": "dist/config/CalendarType.js",
1088
1088
  "declarations": [],
1089
1089
  "exports": []
1090
1090
  },
1091
1091
  {
1092
1092
  "kind": "javascript-module",
1093
- "path": "dist/asset-registries/LocaleData.js",
1093
+ "path": "dist/config/ConfigurationReset.js",
1094
1094
  "declarations": [],
1095
1095
  "exports": []
1096
1096
  },
1097
1097
  {
1098
1098
  "kind": "javascript-module",
1099
- "path": "dist/asset-registries/Themes.js",
1099
+ "path": "dist/config/ConfigurationSync.js",
1100
1100
  "declarations": [],
1101
1101
  "exports": []
1102
1102
  },
1103
1103
  {
1104
1104
  "kind": "javascript-module",
1105
- "path": "dist/asset-registries/i18n.js",
1105
+ "path": "dist/config/Fonts.js",
1106
1106
  "declarations": [],
1107
1107
  "exports": []
1108
1108
  },
1109
1109
  {
1110
1110
  "kind": "javascript-module",
1111
- "path": "dist/config/AnimationMode.js",
1111
+ "path": "dist/config/FormatSettings.js",
1112
1112
  "declarations": [],
1113
1113
  "exports": []
1114
1114
  },
1115
1115
  {
1116
1116
  "kind": "javascript-module",
1117
- "path": "dist/config/CalendarType.js",
1117
+ "path": "dist/config/Icons.js",
1118
1118
  "declarations": [],
1119
1119
  "exports": []
1120
1120
  },
1121
1121
  {
1122
1122
  "kind": "javascript-module",
1123
- "path": "dist/config/ConfigurationReset.js",
1123
+ "path": "dist/config/Language.js",
1124
1124
  "declarations": [],
1125
1125
  "exports": []
1126
1126
  },
1127
1127
  {
1128
1128
  "kind": "javascript-module",
1129
- "path": "dist/config/ConfigurationSync.js",
1129
+ "path": "dist/config/NoConflict.js",
1130
1130
  "declarations": [],
1131
1131
  "exports": []
1132
1132
  },
1133
1133
  {
1134
1134
  "kind": "javascript-module",
1135
- "path": "dist/config/Fonts.js",
1135
+ "path": "dist/config/Theme.js",
1136
1136
  "declarations": [],
1137
1137
  "exports": []
1138
1138
  },
1139
1139
  {
1140
1140
  "kind": "javascript-module",
1141
- "path": "dist/config/FormatSettings.js",
1141
+ "path": "dist/config/ThemeRoot.js",
1142
1142
  "declarations": [],
1143
1143
  "exports": []
1144
1144
  },
1145
1145
  {
1146
1146
  "kind": "javascript-module",
1147
- "path": "dist/config/Icons.js",
1147
+ "path": "dist/config/Timezone.js",
1148
1148
  "declarations": [],
1149
1149
  "exports": []
1150
1150
  },
1151
1151
  {
1152
1152
  "kind": "javascript-module",
1153
- "path": "dist/config/Language.js",
1153
+ "path": "dist/config/Tooltips.js",
1154
1154
  "declarations": [],
1155
1155
  "exports": []
1156
1156
  },
1157
1157
  {
1158
1158
  "kind": "javascript-module",
1159
- "path": "dist/config/NoConflict.js",
1159
+ "path": "dist/config/UrlParams.js",
1160
1160
  "declarations": [],
1161
1161
  "exports": []
1162
1162
  },
1163
1163
  {
1164
1164
  "kind": "javascript-module",
1165
- "path": "dist/config/Theme.js",
1165
+ "path": "dist/asset-registries/Icons.js",
1166
1166
  "declarations": [],
1167
1167
  "exports": []
1168
1168
  },
1169
1169
  {
1170
1170
  "kind": "javascript-module",
1171
- "path": "dist/config/ThemeRoot.js",
1171
+ "path": "dist/asset-registries/Illustrations.js",
1172
1172
  "declarations": [],
1173
1173
  "exports": []
1174
1174
  },
1175
1175
  {
1176
1176
  "kind": "javascript-module",
1177
- "path": "dist/config/Timezone.js",
1177
+ "path": "dist/asset-registries/LocaleData.js",
1178
1178
  "declarations": [],
1179
1179
  "exports": []
1180
1180
  },
1181
1181
  {
1182
1182
  "kind": "javascript-module",
1183
- "path": "dist/config/Tooltips.js",
1183
+ "path": "dist/asset-registries/Themes.js",
1184
1184
  "declarations": [],
1185
1185
  "exports": []
1186
1186
  },
1187
1187
  {
1188
1188
  "kind": "javascript-module",
1189
- "path": "dist/config/UrlParams.js",
1189
+ "path": "dist/asset-registries/i18n.js",
1190
1190
  "declarations": [],
1191
1191
  "exports": []
1192
1192
  },
@@ -1755,6 +1755,21 @@
1755
1755
  }
1756
1756
  ]
1757
1757
  },
1758
+ {
1759
+ "kind": "javascript-module",
1760
+ "path": "dist/react18/createReactComponent.js",
1761
+ "declarations": [],
1762
+ "exports": [
1763
+ {
1764
+ "kind": "js",
1765
+ "name": "default",
1766
+ "declaration": {
1767
+ "name": "createReactComponent",
1768
+ "module": "dist/react18/createReactComponent.js"
1769
+ }
1770
+ }
1771
+ ]
1772
+ },
1758
1773
  {
1759
1774
  "kind": "javascript-module",
1760
1775
  "path": "dist/renderer/JsxRenderer.js",
@@ -2499,6 +2514,21 @@
2499
2514
  }
2500
2515
  ]
2501
2516
  },
2517
+ {
2518
+ "kind": "javascript-module",
2519
+ "path": "dist/util/highlightText.js",
2520
+ "declarations": [],
2521
+ "exports": [
2522
+ {
2523
+ "kind": "js",
2524
+ "name": "default",
2525
+ "declaration": {
2526
+ "name": "highlightText",
2527
+ "module": "dist/util/highlightText.js"
2528
+ }
2529
+ }
2530
+ ]
2531
+ },
2502
2532
  {
2503
2533
  "kind": "javascript-module",
2504
2534
  "path": "dist/util/isElementClickable.js",
@@ -1,11 +1,11 @@
1
1
  const VersionInfo = {
2
- version: "2.27.2",
2
+ version: "2.28.0",
3
3
  major: 2,
4
- minor: 27,
5
- patch: 2,
4
+ minor: 28,
5
+ patch: 0,
6
6
  suffix: "",
7
7
  isNext: false,
8
- buildTime: 1790326694,
8
+ buildTime: 1792571276,
9
9
  };
10
10
  export default VersionInfo;
11
11
  //# sourceMappingURL=VersionInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"2.27.2\",\n\tmajor: 2,\n\tminor: 27,\n\tpatch: 2,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1790326694,\n};\nexport default VersionInfo;"]}
1
+ {"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"2.28.0\",\n\tmajor: 2,\n\tminor: 28,\n\tpatch: 0,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1792571276,\n};\nexport default VersionInfo;"]}
@@ -1,2 +1,2 @@
1
- declare const _default: ":root{--_ui5-cozy-size:var(--_ui5-f2d95f8);--_ui5-compact-size: ;--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5-cozy-size: ;--_ui5-compact-size:var(--_ui5-f2d95f8);--_ui5_content_density:compact}";
1
+ declare const _default: ":root{--_ui5-cozy-size:var(--_ui5-f2d95f8);--_ui5-compact-size: ;--ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5-cozy-size: ;--_ui5-compact-size:var(--_ui5-f2d95f8);--ui5_content_density:compact}";
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- export default `:root{--_ui5-cozy-size:var(--_ui5-f2d95f8);--_ui5-compact-size: ;--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5-cozy-size: ;--_ui5-compact-size:var(--_ui5-f2d95f8);--_ui5_content_density:compact}`;
1
+ export default `:root{--_ui5-cozy-size:var(--_ui5-f2d95f8);--_ui5-compact-size: ;--ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5-cozy-size: ;--_ui5-compact-size:var(--_ui5-f2d95f8);--ui5_content_density:compact}`;
2
2
  //# sourceMappingURL=SystemCSSVars.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SystemCSSVars.css.js","sourceRoot":"","sources":["../../../src/generated/css/SystemCSSVars.css.ts"],"names":[],"mappings":"AAAA,eAAe,gQAAgQ,CAAC","sourcesContent":["export default `:root{--_ui5-cozy-size:var(--_ui5-f2d95f8);--_ui5-compact-size: ;--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5-cozy-size: ;--_ui5-compact-size:var(--_ui5-f2d95f8);--_ui5_content_density:compact}`;"]}
1
+ {"version":3,"file":"SystemCSSVars.css.js","sourceRoot":"","sources":["../../../src/generated/css/SystemCSSVars.css.ts"],"names":[],"mappings":"AAAA,eAAe,8PAA8P,CAAC","sourcesContent":["export default `:root{--_ui5-cozy-size:var(--_ui5-f2d95f8);--_ui5-compact-size: ;--ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5-cozy-size: ;--_ui5-compact-size:var(--_ui5-f2d95f8);--ui5_content_density:compact}`;"]}
@@ -1,2 +1,2 @@
1
- "use strict";import"@ui5/webcomponents-base/dist/ssr-dom.js";import N from"./thirdparty/merge.js";import{boot as x}from"./Boot.js";import V from"./UI5ElementMetadata.js";import P from"./EventProvider.js";import j from"./updateShadowRoot.js";import{shouldIgnoreCustomElement as H}from"./IgnoreCustomElements.js";import{renderDeferred as $,renderImmediately as z,cancelRender as B,unregisterElement as q,registerElement as K}from"./Render.js";import{registerTag as W,isTagRegistered as X,recordTagRegistrationFailure as J}from"./CustomElementsRegistry.js";import{observeDOMNode as Y,unobserveDOMNode as G}from"./DOMObserver.js";import{skipOriginalEvent as Q}from"./config/NoConflict.js";import Z from"./locale/getEffectiveDir.js";import{kebabToCamelCase as g,camelToKebabCase as tt,kebabToPascalCase as w}from"./util/StringHelper.js";import T from"./util/isValidPropertyName.js";import{getSlotName as D,getSlottedNodesList as A}from"./util/SlotsHelper.js";import et from"./util/arraysAreEqual.js";import{markAsRtlAware as nt}from"./locale/RTLAwareRegistry.js";import st from"./renderer/executeTemplate.js";import{shouldScopeCustomElement as R}from"./CustomElementsScopeUtils.js";import{updateFormValue as ot,setFormValue as O}from"./features/InputElementsFormSupport.js";import{getI18nBundle as at}from"./i18nBundle.js";import{fetchCldr as it}from"./asset-registries/LocaleData.js";import C from"./locale/getLocale.js";import{getLanguageChangePending as M}from"./config/Language.js";import rt from"./util/createInstanceChecker.js";let lt=0;const L=new Map,S=new Map,U={fromAttribute(c,f){if(f===Boolean)return c!==null;if(f===Number)return c===null?void 0:parseFloat(c);if(f===Object||f===Array)try{return JSON.parse(c)}catch{return c}return c},toAttribute(c,f){return f===Boolean?c?"":null:f===Object||f===Array||c==null?null:String(c)}};function m(c){this._suppressInvalidation||this.constructor.getMetadata().isLanguageAware()&&M()||(this.onInvalidation(c),this._changedState.push(c),$(this),this._invalidationEventProvider.fireEvent("invalidate",{...c,target:this}))}function dt(c,f){do{const t=Object.getOwnPropertyDescriptor(c,f);if(t)return t;c=Object.getPrototypeOf(c)}while(c&&c!==HTMLElement.prototype)}class b extends HTMLElement{constructor(){super();this.__shouldHydrate=!1;this._rendered=!1;const t=this.constructor;this._changedState=[],this._suppressInvalidation=!0,this._inDOM=!1,this._fullyConnected=!1,this._childChangeListeners=new Map,this._slotChangeListeners=new Map,this._invalidationEventProvider=new P,this._componentStateFinalizedEventProvider=new P;let e;this._domRefReadyPromise=new Promise(n=>{e=n}),this._domRefReadyPromise._deferredResolve=e,this._doNotSyncAttributes=new Set,this._slotsAssignedNodes=new WeakMap,this._state={...t.getMetadata().getInitialState()},this.initializedProperties=new Map,this.constructor.getMetadata().getPropertiesList().forEach(n=>{if(this.hasOwnProperty(n)){const o=this[n];this.initializedProperties.set(n,o)}}),this._internals=this.attachInternals(),this._initShadowRoot()}_initShadowRoot(){const t=this.constructor;if(t._needsShadowDOM()){const e={mode:"open"};this.shadowRoot?this.__shouldHydrate=!0:this.attachShadow({...e,...t.getMetadata().getShadowRootOptions()}),t.getMetadata().slotsAreManaged()&&this.shadowRoot.addEventListener("slotchange",this._onShadowRootSlotChange.bind(this))}}_onShadowRootSlotChange(t){t.target?.getRootNode()===this.shadowRoot&&this._processChildren()}get _id(){return this.__id||(this.__id=`ui5wc_${++lt}`),this.__id}render(){const t=this.constructor.template;return st(t,this)}async connectedCallback(){const t=this.constructor;K(this),this.setAttribute(t.getMetadata().getPureTag(),""),t.getMetadata().supportsF6FastNavigation()&&!this.hasAttribute("data-sap-ui-fastnavgroup")&&this.setAttribute("data-sap-ui-fastnavgroup","true");const e=t.getMetadata().slotsAreManaged();this._inDOM=!0,e&&(this._startObservingDOMChildren(),await this._processChildren()),Object.prototype.hasOwnProperty.call(t,"asyncFinished")||await t._definePromise;const s=M();t.getMetadata().isLanguageAware()&&s&&await s,this._inDOM&&(this._rendered||z(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,this.onEnterDOM(),this.hasAttribute("autofocus")&&requestAnimationFrame(()=>{this.focus()}))}get definePromise(){const t=this.constructor;return!Object.prototype.hasOwnProperty.call(t,"asyncFinished")&&t._definePromise?t._definePromise:Promise.resolve()}disconnectedCallback(){const e=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!1,e&&this._stopObservingDOMChildren(),this._fullyConnected&&(this.onExitDOM(),this._fullyConnected=!1),this._domRefReadyPromise._deferredResolve(),B(this),q(this)}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}_startObservingDOMChildren(){const e=this.constructor.getMetadata();if(!e.hasSlots())return;const n=e.canSlotText(),o={childList:!0,subtree:n,characterData:n};Y(this,this._processChildren.bind(this),o)}_stopObservingDOMChildren(){G(this)}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots()}async _updateSlots(){const t=this.constructor,e=t.getMetadata().getSlots(),s=t.getMetadata().canSlotText(),n=Array.from(s?this.childNodes:this.children),o=new Map,a=new Map;for(const[l,h]of Object.entries(e)){const d=h.propertyName||l;a.set(d,l),o.set(d,[...this._state[d]]),this._clearSlot(l,h)}const r=new Map,i=new Map;n.forEach((l,h)=>{const d=D(l),p=e[d];if(p===void 0){if(d!=="default"){const I=Object.keys(e).join(", ");console.warn(`Unknown slotName: ${d}, ignoring`,l,`Valid values are: ${I}`)}return}const _=p.propertyName||d;i.has(_)?i.get(_).push({child:l,idx:h}):i.set(_,[{child:l,idx:h}])}),i.forEach((l,h)=>{this._state[h]=l.sort((d,p)=>d.idx-p.idx).map(d=>d.child),this._state[g(h)]=this._state[h]});const u=n.map(async l=>{const h=D(l),d=e[h];if(d!==void 0){if(d.individualSlots){const p=(r.get(h)||0)+1;r.set(h,p),l._individualSlot=`${h}-${p}`}if(l instanceof HTMLElement){const p=l.localName;if(p.includes("-")&&!H(p)){if(!customElements.get(p)){const k=customElements.whenDefined(p);let E=L.get(p);E||(E=new Promise(F=>setTimeout(F,1e3)),L.set(p,E)),await Promise.race([k,E])}customElements.upgrade(l)}}if(l=t.getMetadata().constructor.validateSlotValue(l,d),y(l)&&d.invalidateOnChildChange){const p=this._getChildChangeListener(h);l.attachInvalidate.call(l,p)}l instanceof HTMLSlotElement&&this._attachSlotChange(l,h,!!d.invalidateOnChildChange)}});await Promise.all(u);let v=!1;for(const[l,h]of Object.entries(e)){const d=h.propertyName||l;et(o.get(d),this._state[d])||(m.call(this,{type:"slot",name:a.get(d),reason:"children"}),v=!0,t.getMetadata().isFormAssociated()&&O(this))}v||m.call(this,{type:"slot",name:"default",reason:"textcontent"})}_clearSlot(t,e){const s=e.propertyName||t;this._state[s].forEach(o=>{if(y(o)){const a=this._getChildChangeListener(t);o.detachInvalidate.call(o,a)}o instanceof HTMLSlotElement&&this._detachSlotChange(o,t)}),this._state[s]=[],this._state[g(s)]=this._state[s]}attachInvalidate(t){this._invalidationEventProvider.attachEvent("invalidate",t)}detachInvalidate(t){this._invalidationEventProvider.detachEvent("invalidate",t)}_onChildChange(t,e){this.constructor.getMetadata().shouldInvalidateOnChildChange(t,e.type,e.name)&&m.call(this,{type:"slot",name:t,reason:"childchange",child:e.target})}attributeChangedCallback(t,e,s){let n;if(this._doNotSyncAttributes.has(t))return;const o=this.constructor.getMetadata().getProperties(),a=t.replace(/^ui5-/,""),r=g(a);if(o.hasOwnProperty(r)){const i=o[r];n=(i.converter??U).fromAttribute(s,i.type),this[r]=n}}formAssociatedCallback(){this.constructor.getMetadata().isFormAssociated()&&ot(this)}static get formAssociated(){return this.getMetadata().isFormAssociated()}_updateAttribute(t,e){const s=this.constructor;if(!s.getMetadata().hasAttribute(t))return;const o=s.getMetadata().getProperties()[t];if(o.type===Object||o.type===Array)return;const a=tt(t),i=(o.converter||U).toAttribute(e,o.type);this._doNotSyncAttributes.add(a),i==null?this.removeAttribute(a):this.setAttribute(a,i),this._doNotSyncAttributes.delete(a)}_getChildChangeListener(t){return this._childChangeListeners.has(t)||this._childChangeListeners.set(t,this._onChildChange.bind(this,t)),this._childChangeListeners.get(t)}_getSlotChangeListener(t){return this._slotChangeListeners.has(t)||this._slotChangeListeners.set(t,this._onSlotChange.bind(this,t)),this._slotChangeListeners.get(t)}_attachSlotChange(t,e,s){const n=this._getSlotChangeListener(e);t.addEventListener("slotchange",o=>{if(n.call(t,o),s){const a=this._slotsAssignedNodes.get(t);a&&a.forEach(i=>{if(y(i)){const u=this._getChildChangeListener(e);i.detachInvalidate.call(i,u)}});const r=A([t]);this._slotsAssignedNodes.set(t,r),r.forEach(i=>{if(y(i)){const u=this._getChildChangeListener(e);i.attachInvalidate.call(i,u)}})}})}_detachSlotChange(t,e){t.removeEventListener("slotchange",this._getSlotChangeListener(e))}_onSlotChange(t){m.call(this,{type:"slot",name:t,reason:"slotchange"})}onInvalidation(t){}updateAttributes(){const e=this.constructor.getMetadata().getProperties();for(const[s,n]of Object.entries(e))this._updateAttribute(s,this[s])}_render(){const t=this.constructor;if(t.getMetadata().isLanguageAware()&&M())return;const e=t.getMetadata().hasIndividualSlots();this.initializedProperties.size>0&&(Array.from(this.initializedProperties.entries()).forEach(([s,n])=>{delete this[s],this[s]=n}),this.initializedProperties.clear()),this._suppressInvalidation=!0;try{this.onBeforeRendering(),this._rendered||this.updateAttributes(),this._componentStateFinalizedEventProvider.fireEvent("componentStateFinalized")}finally{this._suppressInvalidation=!1}this._changedState=[],t._needsShadowDOM()&&j(this),this._rendered=!0,e&&this._assignIndividualSlotsToChildren(),this.onAfterRendering()}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach(e=>{e._individualSlot&&e.setAttribute("slot",e._individualSlot)})}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if(typeof this._getRealDomRef=="function")return this._getRealDomRef();if(!(!this.shadowRoot||this.shadowRoot.children.length===0))return this.shadowRoot.children[0]}getFocusDomRef(){const t=this.getDomRef();if(t)return t.querySelector("[data-sap-focus-ref]")||t}async getFocusDomRefAsync(){return await this._waitForDomRef(),this.getFocusDomRef()}async focus(t){await this._waitForDomRef();const e=this.getFocusDomRef();e===this||!this.isConnected?HTMLElement.prototype.focus.call(this,t):e&&typeof e.focus=="function"&&e.focus(t)}fireEvent(t,e,s=!1,n=!0){const o=this._fireEvent(t,e,s,n),a=w(t);return a!==t?o&&this._fireEvent(a,e,s,n):o}fireDecoratorEvent(t,e){const s=this.getEventData(t),n=s?s.cancelable:!1,o=s?s.bubbles:!1,a=this._fireEvent(t,e,n,o),r=w(t);return r!==t?a&&this._fireEvent(r,e,n,o):a}_fireEvent(t,e,s=!1,n=!0){const o=new CustomEvent(`ui5-${t}`,{detail:e,composed:!1,bubbles:n,cancelable:s}),a=this.dispatchEvent(o);if(Q(t))return a;const r=new CustomEvent(t,{detail:e,composed:!1,bubbles:n,cancelable:s});return this.dispatchEvent(r)&&a}getEventData(t){return this.constructor.getMetadata().getEvents()[t]}getSlottedNodes(t){return A(this[t])}attachComponentStateFinalized(t){this._componentStateFinalizedEventProvider.attachEvent("componentStateFinalized",t)}detachComponentStateFinalized(t){this._componentStateFinalizedEventProvider.detachEvent("componentStateFinalized",t)}get effectiveDir(){return nt(this.constructor),Z(this)}get isUI5Element(){return!0}get isUI5AbstractElement(){return!this.constructor._needsShadowDOM()}get classes(){return{}}get accessibilityInfo(){}static get observedAttributes(){return this.getMetadata().getAttributesList()}static get tagsToScope(){const t=this.getMetadata().getPureTag(),e=this.getUniqueDependencies().map(s=>s.getMetadata().getPureTag()).filter(R);return R(t)&&e.push(t),e}static _needsShadowDOM(){return!!this.template||Object.prototype.hasOwnProperty.call(this.prototype,"render")}static _generateAccessors(){const t=this.prototype,e=this.getMetadata().slotsAreManaged(),s=this.getMetadata().getProperties();for(const[n,o]of Object.entries(s)){T(n)||console.warn(`"${n}" is not a valid property name. Use a name that does not collide with DOM APIs`);const a=dt(t,n);let r;a?.set&&(r=a.set);let i;a?.get&&(i=a.get),Object.defineProperty(t,n,{get(){return i?i.call(this):this._state[n]},set(u){const v=this.constructor,l=i?i.call(this):this._state[n];if(l!==u){if(r?r.call(this,u):this._state[n]=u,m.call(this,{type:"property",name:n,newValue:u,oldValue:l}),this._rendered){const d=i?i.call(this):this._state[n];this._updateAttribute(n,d)}v.getMetadata().isFormAssociated()&&O(this)}}})}if(e){const n=this.getMetadata().getSlots();for(const[o,a]of Object.entries(n)){T(o)||console.warn(`"${o}" is not a valid property name. Use a name that does not collide with DOM APIs`);const r=a.propertyName||o,i={get(){return this._state[r]!==void 0?this._state[r]:[]},set(){throw new Error("Cannot set slot content directly, use the DOM APIs (appendChild, removeChild, etc...)")}};Object.defineProperty(t,r,i),r!==g(r)&&Object.defineProperty(t,g(r),i)}}}static{this.metadata={}}static{this.styles=""}static get dependencies(){return[]}static cacheUniqueDependencies(){const t=this.dependencies.filter((e,s,n)=>n.indexOf(e)===s);S.set(this,t)}static getUniqueDependencies(){return S.has(this)||this.cacheUniqueDependencies(),S.get(this)||[]}static async onDefine(){return Promise.resolve()}static fetchI18nBundles(){return Promise.all(Object.entries(this.getMetadata().getI18n()).map(t=>{const{bundleName:e}=t[1];return at(e)}))}static fetchCLDR(){return this.getMetadata().needsCLDR()?it(C().getLanguage(),C().getRegion(),C().getScript()):Promise.resolve()}static{this.i18nBundleStorage={}}static get i18nBundles(){return this.i18nBundleStorage}static define(){const t=async()=>{await x();const o=await Promise.all([this.fetchI18nBundles(),this.fetchCLDR(),this.onDefine()]),[a]=o;Object.entries(this.getMetadata().getI18n()).forEach((r,i)=>{const u=r[1].bundleName;this.i18nBundleStorage[u]=a[i]}),this.asyncFinished=!0};this._definePromise=t();const e=this.getMetadata().getTag(),s=X(e),n=customElements.get(e);return n&&!s?J(e):n||(this._generateAccessors(),W(e),customElements.define(e,this)),this}static getMetadata(){if(this.hasOwnProperty("_metadata"))return this._metadata;const t=[this.metadata];let e=this;for(;e!==b;)e=Object.getPrototypeOf(e),t.unshift(e.metadata);const s=N({},...t);return this._metadata=new V(s),this._metadata}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}}const y=rt("isUI5Element");export default b;export{y as instanceOfUI5Element};
1
+ "use strict";import"@ui5/webcomponents-base/dist/ssr-dom.js";import N from"./thirdparty/merge.js";import{boot as x}from"./Boot.js";import j from"./UI5ElementMetadata.js";import P from"./EventProvider.js";import V from"./updateShadowRoot.js";import{shouldIgnoreCustomElement as H}from"./IgnoreCustomElements.js";import{renderDeferred as $,renderImmediately as z,cancelRender as B,unregisterElement as q,registerElement as K}from"./Render.js";import{registerTag as W,isTagRegistered as X,recordTagRegistrationFailure as J}from"./CustomElementsRegistry.js";import{observeDOMNode as Y,unobserveDOMNode as G}from"./DOMObserver.js";import{skipOriginalEvent as Q}from"./config/NoConflict.js";import Z from"./locale/getEffectiveDir.js";import{kebabToCamelCase as g,camelToKebabCase as tt,kebabToPascalCase as w}from"./util/StringHelper.js";import T from"./util/isValidPropertyName.js";import{getSlotName as D,getSlottedNodesList as A}from"./util/SlotsHelper.js";import et from"./util/arraysAreEqual.js";import{markAsRtlAware as nt}from"./locale/RTLAwareRegistry.js";import st from"./renderer/executeTemplate.js";import{shouldScopeCustomElement as R}from"./CustomElementsScopeUtils.js";import{updateFormValue as ot,setFormValue as O}from"./features/InputElementsFormSupport.js";import{getI18nBundle as at}from"./i18nBundle.js";import{fetchCldr as it}from"./asset-registries/LocaleData.js";import C from"./locale/getLocale.js";import{getLanguageChangePending as M}from"./config/Language.js";import rt from"./util/createInstanceChecker.js";let lt=0;const L=new Map,S=new Map,U={fromAttribute(c,f){if(f===Boolean)return c!==null;if(f===Number)return c===null?void 0:parseFloat(c);if(f===Object||f===Array)try{return JSON.parse(c)}catch{return c}return c},toAttribute(c,f){return f===Boolean?c?"":null:f===Object||f===Array||c==null?null:String(c)}};function m(c){this._suppressInvalidation||this.constructor.getMetadata().isLanguageAware()&&M()||(this.onInvalidation(c),this._changedState.push(c),$(this),this._invalidationEventProvider.fireEvent("invalidate",{...c,target:this}))}function dt(c,f){do{const t=Object.getOwnPropertyDescriptor(c,f);if(t)return t;c=Object.getPrototypeOf(c)}while(c&&c!==HTMLElement.prototype)}class b extends HTMLElement{constructor(){super();this.__shouldHydrate=!1;this._rendered=!1;const t=this.constructor;this._changedState=[],this._suppressInvalidation=!0,this._inDOM=!1,this._fullyConnected=!1,this._childChangeListeners=new Map,this._slotChangeListeners=new Map,this._invalidationEventProvider=new P,this._componentStateFinalizedEventProvider=new P;let e;this._domRefReadyPromise=new Promise(n=>{e=n}),this._domRefReadyPromise._deferredResolve=e,this._doNotSyncAttributes=new Set,this._slotsAssignedNodes=new WeakMap,this._state={...t.getMetadata().getInitialState()},this.initializedProperties=new Map,this.constructor.getMetadata().getPropertiesList().forEach(n=>{if(this.hasOwnProperty(n)){const o=this[n];this.initializedProperties.set(n,o)}}),this._internals=this.attachInternals(),this._initShadowRoot()}_initShadowRoot(){const t=this.constructor;if(t._needsShadowDOM()){const e={mode:"open"};this.shadowRoot?this.__shouldHydrate=!0:this.attachShadow({...e,...t.getMetadata().getShadowRootOptions()}),t.getMetadata().slotsAreManaged()&&this.shadowRoot.addEventListener("slotchange",this._onShadowRootSlotChange.bind(this))}}_onShadowRootSlotChange(t){t.target?.getRootNode()===this.shadowRoot&&this._processChildren()}get _id(){return this.__id||(this.__id=`ui5wc_${++lt}`),this.__id}render(){const t=this.constructor.template;return st(t,this)}async connectedCallback(){const t=this.constructor;K(this),this.setAttribute(t.getMetadata().getPureTag(),""),t.getMetadata().supportsF6FastNavigation()&&!this.hasAttribute("data-sap-ui-fastnavgroup")&&this.setAttribute("data-sap-ui-fastnavgroup","true");const e=t.getMetadata().slotsAreManaged();this._inDOM=!0,e&&(this._startObservingDOMChildren(),await this._processChildren()),Object.prototype.hasOwnProperty.call(t,"asyncFinished")||await t._definePromise;const s=M();t.getMetadata().isLanguageAware()&&s&&await s,this._inDOM&&(this._rendered||z(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,this.onEnterDOM(),this.hasAttribute("autofocus")&&requestAnimationFrame(()=>{this.focus()}))}get definePromise(){const t=this.constructor;return!Object.prototype.hasOwnProperty.call(t,"asyncFinished")&&t._definePromise?t._definePromise:Promise.resolve()}disconnectedCallback(){const e=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!1,e&&this._stopObservingDOMChildren(),this._fullyConnected&&(this.onExitDOM(),this._fullyConnected=!1),this._domRefReadyPromise._deferredResolve(),B(this),q(this)}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}_startObservingDOMChildren(){const e=this.constructor.getMetadata();if(!e.hasSlots())return;const n=e.canSlotText(),o={childList:!0,subtree:n,characterData:n};Y(this,this._processChildren.bind(this),o)}_stopObservingDOMChildren(){G(this)}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots()}async _updateSlots(){const t=this.constructor,e=t.getMetadata().getSlots(),s=t.getMetadata().canSlotText(),n=Array.from(s?this.childNodes:this.children),o=new Map,a=new Map;for(const[l,h]of Object.entries(e)){const d=h.propertyName||l;a.set(d,l),o.set(d,[...this._state[d]]),this._clearSlot(l,h)}const r=new Map,i=new Map;n.forEach((l,h)=>{const d=D(l),p=e[d];if(p===void 0){if(d!=="default"){const I=Object.keys(e).join(", ");console.warn(`Unknown slotName: ${d}, ignoring`,l,`Valid values are: ${I}`)}return}const _=p.propertyName||d;i.has(_)?i.get(_).push({child:l,idx:h}):i.set(_,[{child:l,idx:h}])}),i.forEach((l,h)=>{this._state[h]=l.sort((d,p)=>d.idx-p.idx).map(d=>d.child),this._state[g(h)]=this._state[h]});const u=n.map(async l=>{const h=D(l),d=e[h];if(d!==void 0){if(d.individualSlots){const p=(r.get(h)||0)+1;r.set(h,p),l._individualSlot=`${h}-${p}`}if(l instanceof HTMLElement){const p=l.localName;if(p.includes("-")&&!H(p)){if(!customElements.get(p)){const F=customElements.whenDefined(p);let E=L.get(p);E||(E=new Promise(k=>setTimeout(k,1e3)),L.set(p,E)),await Promise.race([F,E])}customElements.upgrade(l)}}if(l=t.getMetadata().constructor.validateSlotValue(l,d),y(l)&&d.invalidateOnChildChange){const p=this._getChildChangeListener(h);l.attachInvalidate.call(l,p)}l instanceof HTMLSlotElement&&this._attachSlotChange(l,h,!!d.invalidateOnChildChange)}});await Promise.all(u);let v=!1;for(const[l,h]of Object.entries(e)){const d=h.propertyName||l;et(o.get(d),this._state[d])||(m.call(this,{type:"slot",name:a.get(d),reason:"children"}),v=!0,t.getMetadata().isFormAssociated()&&O(this))}v||m.call(this,{type:"slot",name:"default",reason:"textcontent"})}_clearSlot(t,e){const s=e.propertyName||t;this._state[s].forEach(o=>{if(y(o)){const a=this._getChildChangeListener(t);o.detachInvalidate.call(o,a)}o instanceof HTMLSlotElement&&this._detachSlotChange(o,t)}),this._state[s]=[],this._state[g(s)]=this._state[s]}attachInvalidate(t){this._invalidationEventProvider.attachEvent("invalidate",t)}detachInvalidate(t){this._invalidationEventProvider.detachEvent("invalidate",t)}_onChildChange(t,e){this.constructor.getMetadata().shouldInvalidateOnChildChange(t,e.type,e.name)&&m.call(this,{type:"slot",name:t,reason:"childchange",child:e.target})}attributeChangedCallback(t,e,s){let n;if(this._doNotSyncAttributes.has(t))return;const o=this.constructor.getMetadata().getProperties(),a=t.replace(/^ui5-/,""),r=g(a);if(o.hasOwnProperty(r)){const i=o[r];n=(i.converter??U).fromAttribute(s,i.type),this[r]=n}}formAssociatedCallback(){this.constructor.getMetadata().isFormAssociated()&&ot(this)}static get formAssociated(){return this.getMetadata().isFormAssociated()}_updateAttribute(t,e){const s=this.constructor;if(!s.getMetadata().hasAttribute(t))return;const o=s.getMetadata().getProperties()[t];if(o.type===Object||o.type===Array)return;const a=tt(t),i=(o.converter||U).toAttribute(e,o.type);this._doNotSyncAttributes.add(a),i==null?this.removeAttribute(a):this.setAttribute(a,i),this._doNotSyncAttributes.delete(a)}_getChildChangeListener(t){return this._childChangeListeners.has(t)||this._childChangeListeners.set(t,this._onChildChange.bind(this,t)),this._childChangeListeners.get(t)}_getSlotChangeListener(t){return this._slotChangeListeners.has(t)||this._slotChangeListeners.set(t,this._onSlotChange.bind(this,t)),this._slotChangeListeners.get(t)}_attachSlotChange(t,e,s){const n=this._getSlotChangeListener(e);t.addEventListener("slotchange",o=>{if(n.call(t,o),s){const a=this._slotsAssignedNodes.get(t);a&&a.forEach(i=>{if(y(i)){const u=this._getChildChangeListener(e);i.detachInvalidate.call(i,u)}});const r=A([t]);this._slotsAssignedNodes.set(t,r),r.forEach(i=>{if(y(i)){const u=this._getChildChangeListener(e);i.attachInvalidate.call(i,u)}})}})}_detachSlotChange(t,e){t.removeEventListener("slotchange",this._getSlotChangeListener(e))}_onSlotChange(t){m.call(this,{type:"slot",name:t,reason:"slotchange"})}onInvalidation(t){}updateAttributes(){const e=this.constructor.getMetadata().getProperties();for(const[s,n]of Object.entries(e))this._updateAttribute(s,this[s])}_render(){const t=this.constructor;if(t.getMetadata().isLanguageAware()&&M())return;const e=t.getMetadata().hasIndividualSlots();this.initializedProperties.size>0&&(Array.from(this.initializedProperties.entries()).forEach(([s,n])=>{delete this[s],this[s]=n}),this.initializedProperties.clear()),this._suppressInvalidation=!0;try{this.onBeforeRendering(),this._rendered||this.updateAttributes(),this._componentStateFinalizedEventProvider.fireEvent("componentStateFinalized")}finally{this._suppressInvalidation=!1}this._changedState=[],t._needsShadowDOM()&&V(this),this._rendered=!0,e&&this._assignIndividualSlotsToChildren(),this.onAfterRendering()}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach(e=>{e._individualSlot&&e.setAttribute("slot",e._individualSlot)})}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if(typeof this._getRealDomRef=="function")return this._getRealDomRef();if(!(!this.shadowRoot||this.shadowRoot.children.length===0))return this.shadowRoot.children[0]}getFocusDomRef(){const t=this.getDomRef();if(t)return t.querySelector("[data-sap-focus-ref]")||t}async getFocusDomRefAsync(){return await this._waitForDomRef(),this.getFocusDomRef()}async focus(t){await this._waitForDomRef();const e=this.getFocusDomRef();e===this||!this.isConnected?HTMLElement.prototype.focus.call(this,t):e&&typeof e.focus=="function"&&e.focus(t)}fireEvent(t,e,s=!1,n=!0){const o=this._fireEvent(t,e,s,n),a=w(t);return a!==t?o&&this._fireEvent(a,e,s,n):o}fireDecoratorEvent(t,e){const s=this.getEventData(t),n=s?s.cancelable:!1,o=s?s.bubbles:!1,a=this._fireEvent(t,e,n,o),r=w(t);return r!==t?a&&this._fireEvent(r,e,n,o):a}_fireEvent(t,e,s=!1,n=!0){const o=new CustomEvent(`ui5-${t}`,{detail:e,composed:!1,bubbles:n,cancelable:s}),a=this.dispatchEvent(o);if(Q(t))return a;const r=new CustomEvent(t,{detail:e,composed:!1,bubbles:n,cancelable:s});return this.dispatchEvent(r)&&a}getEventData(t){return this.constructor.getMetadata().getEvents()[t]}getSlottedNodes(t){return A(this._state[t]||[])}attachComponentStateFinalized(t){this._componentStateFinalizedEventProvider.attachEvent("componentStateFinalized",t)}detachComponentStateFinalized(t){this._componentStateFinalizedEventProvider.detachEvent("componentStateFinalized",t)}get effectiveDir(){return nt(this.constructor),Z(this)}get isUI5Element(){return!0}get isUI5AbstractElement(){return!this.constructor._needsShadowDOM()}get classes(){return{}}get accessibilityInfo(){}static get observedAttributes(){return this.getMetadata().getAttributesList()}static get tagsToScope(){const t=this.getMetadata().getPureTag(),e=this.getUniqueDependencies().map(s=>s.getMetadata().getPureTag()).filter(R);return R(t)&&e.push(t),e}static _needsShadowDOM(){return!!this.template||Object.prototype.hasOwnProperty.call(this.prototype,"render")}static _generateAccessors(){const t=this.prototype,e=this.getMetadata().slotsAreManaged(),s=this.getMetadata().getProperties();for(const[n,o]of Object.entries(s)){T(n)||console.warn(`"${n}" is not a valid property name. Use a name that does not collide with DOM APIs`);const a=dt(t,n);let r;a?.set&&(r=a.set);let i;a?.get&&(i=a.get),Object.defineProperty(t,n,{get(){return i?i.call(this):this._state[n]},set(u){const v=this.constructor,l=i?i.call(this):this._state[n];if(l!==u){if(r?r.call(this,u):this._state[n]=u,m.call(this,{type:"property",name:n,newValue:u,oldValue:l}),this._rendered){const d=i?i.call(this):this._state[n];this._updateAttribute(n,d)}v.getMetadata().isFormAssociated()&&O(this)}}})}if(e){const n=this.getMetadata().getSlots();for(const[o,a]of Object.entries(n)){T(o)||console.warn(`"${o}" is not a valid property name. Use a name that does not collide with DOM APIs`);const r=a.propertyName||o;if(Object.getOwnPropertyDescriptor(t,r))continue;const i={get(){return this._state[r]!==void 0?this._state[r]:[]},set(){throw new Error("Cannot set slot content directly, use the DOM APIs (appendChild, removeChild, etc...)")}};Object.defineProperty(t,r,i),r!==g(r)&&Object.defineProperty(t,g(r),i)}}}static{this.metadata={}}static{this.styles=""}static get dependencies(){return[]}static cacheUniqueDependencies(){const t=this.dependencies.filter((e,s,n)=>n.indexOf(e)===s);S.set(this,t)}static getUniqueDependencies(){return S.has(this)||this.cacheUniqueDependencies(),S.get(this)||[]}static async onDefine(){return Promise.resolve()}static fetchI18nBundles(){return Promise.all(Object.entries(this.getMetadata().getI18n()).map(t=>{const{bundleName:e}=t[1];return at(e)}))}static fetchCLDR(){return this.getMetadata().needsCLDR()?it(C().getLanguage(),C().getRegion(),C().getScript()):Promise.resolve()}static{this.i18nBundleStorage={}}static get i18nBundles(){return this.i18nBundleStorage}static define(){const t=async()=>{await x();const o=await Promise.all([this.fetchI18nBundles(),this.fetchCLDR(),this.onDefine()]),[a]=o;Object.entries(this.getMetadata().getI18n()).forEach((r,i)=>{const u=r[1].bundleName;this.i18nBundleStorage[u]=a[i]}),this.asyncFinished=!0};this._definePromise=t();const e=this.getMetadata().getTag(),s=X(e),n=customElements.get(e);return n&&!s?J(e):n||(this._generateAccessors(),W(e),customElements.define(e,this)),this}static getMetadata(){if(this.hasOwnProperty("_metadata"))return this._metadata;const t=[this.metadata];let e=this;for(;e!==b;)e=Object.getPrototypeOf(e),t.unshift(e.metadata);const s=N({},...t);return this._metadata=new j(s),this._metadata}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}}const y=rt("isUI5Element");export default b;export{y as instanceOfUI5Element};
2
2
  //# sourceMappingURL=UI5Element.js.map