diff --git a/packages/ui5-tooling-modules/lib/utils/WebComponentRegistry.js b/packages/ui5-tooling-modules/lib/utils/WebComponentRegistry.js index 7f801200..fedd731c 100644 --- a/packages/ui5-tooling-modules/lib/utils/WebComponentRegistry.js +++ b/packages/ui5-tooling-modules/lib/utils/WebComponentRegistry.js @@ -6,6 +6,10 @@ const camelize = (str) => { return str.replace(/-([a-z])/g, (g) => g[1].toUpperCase()); }; +// the class name of the base class of all control wrappers +// corresponds to the "sap.ui.core.webc.WebComponent" class at runtime. +const UI5_ELEMENT_CLASS_NAME = "UI5Element"; + const _registry = {}; const _classAliases = {}; @@ -44,6 +48,8 @@ class RegistryEntry { this.#connectSuperclass(classDef); // [3] create UI5 metadata for each classed based on the parsed custom elements metadata + // Note: The order is important! We need to connect the superclass and create its metadata first. + // We need a fully constructed parent chain later for ensuring UI5 defaults (refer to #ensureDefaults) this.#createUI5Metadata(classDef); }); @@ -107,7 +113,7 @@ class RegistryEntry { `The class '${this.namespace}/${classDef.name}' has an unknown superclass '${classDef.superclass.package}/${superclassName}' using default '@ui5/webcomponents-base/UI5Element'!`, ); const refPackage = WebComponentRegistry.getPackage("@ui5/webcomponents-base"); - let superclassRef = (refPackage || this).classes["UI5Element"]; + let superclassRef = (refPackage || this).classes[UI5_ELEMENT_CLASS_NAME]; classDef.superclass = superclassRef; } else { this.#connectSuperclass(superclassRef); @@ -420,9 +426,35 @@ class RegistryEntry { } } - #ensureDefaults(ui5metadata) { - // a text property must exist and be mapped to "textContent" - if (!ui5metadata.properties["text"]) { + /** + * Validates if the given property name is defined somewhere in the parent chain + * @param {string} className the starting class for which we will traverse the parent chain + * @param {string} propName the property to validate + */ + #ui5PropertyExistsInParentChain(classDef, propName) { + // we need to stop the recursion on the very top level + // The runtime base class does NOT provide any inherited properties! + if (classDef.name === UI5_ELEMENT_CLASS_NAME) { + return false; + } + // check self + const hasProp = !!classDef?._ui5metadata?.properties?.[propName]; + if (hasProp) { + return true; + } else { + // if we didn't find the property on this class, we go one step higher in the chain + if (classDef?.superclass) { + return this.#ui5PropertyExistsInParentChain(classDef.superclass, propName); + } else { + // finally nothing found + return false; + } + } + } + + #ensureDefaults(classDef, ui5metadata) { + if (!this.#ui5PropertyExistsInParentChain(classDef, "text")) { + // a text property must exist and be mapped to "textContent" ui5metadata.properties["text"] = { type: "string", mapping: "textContent", @@ -430,14 +462,14 @@ class RegistryEntry { } // cssProperties: [ "width", "height", "display" ] - if (!ui5metadata.properties["width"]) { + if (!this.#ui5PropertyExistsInParentChain(classDef, "width")) { ui5metadata.properties["width"] = { type: "sap.ui.core.CSSSize", mapping: "style", }; } - if (!ui5metadata.properties["height"]) { + if (!this.#ui5PropertyExistsInParentChain(classDef, "height")) { ui5metadata.properties["height"] = { type: "sap.ui.core.CSSSize", mapping: "style", @@ -551,7 +583,7 @@ class RegistryEntry { this.#processUI5Interfaces(classDef, ui5metadata); - this.#ensureDefaults(ui5metadata); + this.#ensureDefaults(classDef, ui5metadata); this.#patchUI5Specifics(classDef, ui5metadata); } diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListGroupItem.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListGroupItem.json index f61ab042..68472a08 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListGroupItem.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListGroupItem.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents-fiori","tag":"ui5-li-notification-group","interfaces":[],"properties":{"collapsed":{"type":"boolean","mapping":"property","defaultValue":false},"growing":{"type":"@ui5/webcomponents.NotificationListGrowingMode","mapping":"property","defaultValue":"None"},"titleText":{"type":"string","mapping":"property"},"read":{"type":"boolean","mapping":"property","defaultValue":false},"loading":{"type":"boolean","mapping":"property","defaultValue":false},"loadingDelay":{"type":"float","mapping":"property","defaultValue":1000},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"items":{"type":"@ui5/webcomponents-fiori.NotificationListItem","multiple":true}},"associations":{},"events":{"toggle":{},"loadMore":{}},"getters":[],"methods":[],"defaultAggregation":"items"} \ No newline at end of file +{"namespace":"@ui5/webcomponents-fiori","tag":"ui5-li-notification-group","interfaces":[],"properties":{"collapsed":{"type":"boolean","mapping":"property","defaultValue":false},"growing":{"type":"@ui5/webcomponents.NotificationListGrowingMode","mapping":"property","defaultValue":"None"},"titleText":{"type":"string","mapping":"property"},"read":{"type":"boolean","mapping":"property","defaultValue":false},"loading":{"type":"boolean","mapping":"property","defaultValue":false},"loadingDelay":{"type":"float","mapping":"property","defaultValue":1000}},"aggregations":{"items":{"type":"@ui5/webcomponents-fiori.NotificationListItem","multiple":true}},"associations":{},"events":{"toggle":{},"loadMore":{}},"getters":[],"methods":[],"defaultAggregation":"items"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListItem.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListItem.json index 090d3006..84e53d9d 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListItem.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListItem.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents-fiori","tag":"ui5-li-notification","interfaces":[],"properties":{"wrappingType":{"type":"@ui5/webcomponents.WrappingType","mapping":"property","defaultValue":"None"},"state":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"showClose":{"type":"boolean","mapping":"property","defaultValue":false},"importance":{"type":"@ui5/webcomponents-fiori.NotificationListItemImportance","mapping":"property","defaultValue":"Standard"},"titleText":{"type":"string","mapping":"property"},"read":{"type":"boolean","mapping":"property","defaultValue":false},"loading":{"type":"boolean","mapping":"property","defaultValue":false},"loadingDelay":{"type":"float","mapping":"property","defaultValue":1000},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"avatar":{"type":"sap.ui.core.Control","multiple":true,"slot":"avatar"},"menu":{"type":"sap.ui.core.Control","multiple":true,"slot":"menu"},"footnotes":{"type":"sap.ui.core.Control","multiple":true,"slot":"footnotes"},"description":{"type":"sap.ui.core.Control","multiple":true}},"associations":{},"events":{"close":{}},"getters":[],"methods":[],"defaultAggregation":"description"} \ No newline at end of file +{"namespace":"@ui5/webcomponents-fiori","tag":"ui5-li-notification","interfaces":[],"properties":{"wrappingType":{"type":"@ui5/webcomponents.WrappingType","mapping":"property","defaultValue":"None"},"state":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"showClose":{"type":"boolean","mapping":"property","defaultValue":false},"importance":{"type":"@ui5/webcomponents-fiori.NotificationListItemImportance","mapping":"property","defaultValue":"Standard"},"titleText":{"type":"string","mapping":"property"},"read":{"type":"boolean","mapping":"property","defaultValue":false},"loading":{"type":"boolean","mapping":"property","defaultValue":false},"loadingDelay":{"type":"float","mapping":"property","defaultValue":1000}},"aggregations":{"avatar":{"type":"sap.ui.core.Control","multiple":true,"slot":"avatar"},"menu":{"type":"sap.ui.core.Control","multiple":true,"slot":"menu"},"footnotes":{"type":"sap.ui.core.Control","multiple":true,"slot":"footnotes"},"description":{"type":"sap.ui.core.Control","multiple":true}},"associations":{},"events":{"close":{}},"getters":[],"methods":[],"defaultAggregation":"description"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListItemBase.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListItemBase.json index 444d634d..435a3d1f 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListItemBase.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/NotificationListItemBase.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents-fiori","interfaces":[],"properties":{"titleText":{"type":"string","mapping":"property"},"read":{"type":"boolean","mapping":"property","defaultValue":false},"loading":{"type":"boolean","mapping":"property","defaultValue":false},"loadingDelay":{"type":"float","mapping":"property","defaultValue":1000},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents-fiori","interfaces":[],"properties":{"titleText":{"type":"string","mapping":"property"},"read":{"type":"boolean","mapping":"property","defaultValue":false},"loading":{"type":"boolean","mapping":"property","defaultValue":false},"loadingDelay":{"type":"float","mapping":"property","defaultValue":1000}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/SideNavigationSelectableItemBase.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/SideNavigationSelectableItemBase.json index 2f2c35f1..44cda3ae 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/SideNavigationSelectableItemBase.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/SideNavigationSelectableItemBase.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents-fiori","interfaces":[],"properties":{"icon":{"type":"string","mapping":"property"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"href":{"type":"string","mapping":"property"},"target":{"type":"string","mapping":"property"},"text":{"type":"string","mapping":"property"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"tooltip":{"type":"string","mapping":"property"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{"click":{}},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents-fiori","interfaces":[],"properties":{"icon":{"type":"string","mapping":"property"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"href":{"type":"string","mapping":"property"},"target":{"type":"string","mapping":"property"},"text":{"type":"string","mapping":"property"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"tooltip":{"type":"string","mapping":"property"}},"aggregations":{},"associations":{},"events":{"click":{}},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/SideNavigationSubItem.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/SideNavigationSubItem.json index edbdeb53..cd2f9254 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/SideNavigationSubItem.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/SideNavigationSubItem.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents-fiori","tag":"ui5-side-navigation-sub-item","interfaces":[],"properties":{"icon":{"type":"string","mapping":"property"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"href":{"type":"string","mapping":"property"},"target":{"type":"string","mapping":"property"},"text":{"type":"string","mapping":"property"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"tooltip":{"type":"string","mapping":"property"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{"click":{}},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents-fiori","tag":"ui5-side-navigation-sub-item","interfaces":[],"properties":{"icon":{"type":"string","mapping":"property"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"href":{"type":"string","mapping":"property"},"target":{"type":"string","mapping":"property"},"text":{"type":"string","mapping":"property"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"tooltip":{"type":"string","mapping":"property"}},"aggregations":{},"associations":{},"events":{"click":{}},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/UploadCollectionItem.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/UploadCollectionItem.json index d3042ec2..6d01498a 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/UploadCollectionItem.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/UploadCollectionItem.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents-fiori","tag":"ui5-upload-collection-item","interfaces":[],"properties":{"file":{"type":"file","mapping":"property","defaultValue":"null"},"fileName":{"type":"string","mapping":"property","defaultValue":""},"fileNameClickable":{"type":"boolean","mapping":"property","defaultValue":false},"disableDeleteButton":{"type":"boolean","mapping":"property","defaultValue":false},"hideDeleteButton":{"type":"boolean","mapping":"property","defaultValue":false},"hideRetryButton":{"type":"boolean","mapping":"property","defaultValue":false},"hideTerminateButton":{"type":"boolean","mapping":"property","defaultValue":false},"progress":{"type":"float","mapping":"property","defaultValue":0},"uploadState":{"type":"@ui5/webcomponents-fiori.UploadState","mapping":"property","defaultValue":"Ready"},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true},"thumbnail":{"type":"sap.ui.core.Control","multiple":true,"slot":"thumbnail"}},"associations":{},"events":{"fileNameClick":{},"rename":{},"terminate":{},"retry":{}},"getters":[],"methods":[],"defaultAggregation":"content"} \ No newline at end of file +{"namespace":"@ui5/webcomponents-fiori","tag":"ui5-upload-collection-item","interfaces":[],"properties":{"file":{"type":"file","mapping":"property","defaultValue":"null"},"fileName":{"type":"string","mapping":"property","defaultValue":""},"fileNameClickable":{"type":"boolean","mapping":"property","defaultValue":false},"disableDeleteButton":{"type":"boolean","mapping":"property","defaultValue":false},"hideDeleteButton":{"type":"boolean","mapping":"property","defaultValue":false},"hideRetryButton":{"type":"boolean","mapping":"property","defaultValue":false},"hideTerminateButton":{"type":"boolean","mapping":"property","defaultValue":false},"progress":{"type":"float","mapping":"property","defaultValue":0},"uploadState":{"type":"@ui5/webcomponents-fiori.UploadState","mapping":"property","defaultValue":"Ready"}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true},"thumbnail":{"type":"sap.ui.core.Control","multiple":true,"slot":"thumbnail"}},"associations":{},"events":{"fileNameClick":{},"rename":{},"terminate":{},"retry":{}},"getters":[],"methods":[],"defaultAggregation":"content"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/UserMenuItem.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/UserMenuItem.json index 52ea055b..f084776a 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/UserMenuItem.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents-fiori/classes/UserMenuItem.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents-fiori","tag":"ui5-user-menu-item","interfaces":[],"properties":{"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"items":{"type":"@ui5/webcomponents-fiori.UserMenuItem","multiple":true}},"associations":{},"events":{},"getters":[],"methods":[],"defaultAggregation":"items"} \ No newline at end of file +{"namespace":"@ui5/webcomponents-fiori","tag":"ui5-user-menu-item","interfaces":[],"properties":{},"aggregations":{"items":{"type":"@ui5/webcomponents-fiori.UserMenuItem","multiple":true}},"associations":{},"events":{},"getters":[],"methods":[],"defaultAggregation":"items"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DatePicker.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DatePicker.json index 7c556636..c05f92ac 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DatePicker.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DatePicker.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-date-picker","interfaces":["sap.ui.core.IFormContent"],"properties":{"value":{"type":"string","mapping":"property","defaultValue":""},"valueState":{"type":"sap.ui.core.ValueState","mapping":{"formatter":"_mapValueState","parser":"_parseValueState"},"defaultValue":"None"},"required":{"type":"boolean","mapping":"property","defaultValue":false},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"readonly":{"type":"boolean","mapping":"property","defaultValue":false},"placeholder":{"type":"string","mapping":"property"},"name":{"type":"string","mapping":"property"},"hideWeekNumbers":{"type":"boolean","mapping":"property","defaultValue":false},"open":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"primaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"secondaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"formatPattern":{"type":"string","mapping":"property"},"minDate":{"type":"string","mapping":"property","defaultValue":""},"maxDate":{"type":"string","mapping":"property","defaultValue":""},"calendarWeekNumbering":{"type":"@ui5/webcomponents.CalendarWeekNumbering","mapping":"property","defaultValue":"Default"},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"},"valueStateText":{"name":"valueStateText","type":"string","defaultValue":"","mapping":{"type":"slot","slotName":"valueStateMessage","to":"div"}}},"aggregations":{},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"change":{},"input":{},"valueStateChange":{},"open":{},"close":{}},"getters":["dateValue"],"methods":["isValid","isInValidRange","formatValue"]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-date-picker","interfaces":["sap.ui.core.IFormContent"],"properties":{"value":{"type":"string","mapping":"property","defaultValue":""},"valueState":{"type":"sap.ui.core.ValueState","mapping":{"formatter":"_mapValueState","parser":"_parseValueState"},"defaultValue":"None"},"required":{"type":"boolean","mapping":"property","defaultValue":false},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"readonly":{"type":"boolean","mapping":"property","defaultValue":false},"placeholder":{"type":"string","mapping":"property"},"name":{"type":"string","mapping":"property"},"hideWeekNumbers":{"type":"boolean","mapping":"property","defaultValue":false},"open":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"primaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"secondaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"formatPattern":{"type":"string","mapping":"property"},"minDate":{"type":"string","mapping":"property","defaultValue":""},"maxDate":{"type":"string","mapping":"property","defaultValue":""},"calendarWeekNumbering":{"type":"@ui5/webcomponents.CalendarWeekNumbering","mapping":"property","defaultValue":"Default"},"valueStateText":{"name":"valueStateText","type":"string","defaultValue":"","mapping":{"type":"slot","slotName":"valueStateMessage","to":"div"}}},"aggregations":{},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"change":{},"input":{},"valueStateChange":{},"open":{},"close":{}},"getters":["dateValue"],"methods":["isValid","isInValidRange","formatValue"]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DateRangePicker.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DateRangePicker.json index 1938cdf1..e864a171 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DateRangePicker.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DateRangePicker.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-daterange-picker","interfaces":["sap.ui.core.IFormContent"],"properties":{"delimiter":{"type":"string","mapping":"property","defaultValue":"-"},"value":{"type":"string","mapping":"property","defaultValue":""},"valueState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"required":{"type":"boolean","mapping":"property","defaultValue":false},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"readonly":{"type":"boolean","mapping":"property","defaultValue":false},"placeholder":{"type":"string","mapping":"property"},"name":{"type":"string","mapping":"property"},"hideWeekNumbers":{"type":"boolean","mapping":"property","defaultValue":false},"open":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"primaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"secondaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"formatPattern":{"type":"string","mapping":"property"},"minDate":{"type":"string","mapping":"property","defaultValue":""},"maxDate":{"type":"string","mapping":"property","defaultValue":""},"calendarWeekNumbering":{"type":"@ui5/webcomponents.CalendarWeekNumbering","mapping":"property","defaultValue":"Default"},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"change":{},"input":{},"valueStateChange":{},"open":{},"close":{}},"getters":["dateValue","dateValueUTC","startDateValue","endDateValue"],"methods":["isValid","isInValidRange","formatValue"]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-daterange-picker","interfaces":["sap.ui.core.IFormContent"],"properties":{"delimiter":{"type":"string","mapping":"property","defaultValue":"-"},"value":{"type":"string","mapping":"property","defaultValue":""},"valueState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"required":{"type":"boolean","mapping":"property","defaultValue":false},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"readonly":{"type":"boolean","mapping":"property","defaultValue":false},"placeholder":{"type":"string","mapping":"property"},"name":{"type":"string","mapping":"property"},"hideWeekNumbers":{"type":"boolean","mapping":"property","defaultValue":false},"open":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"primaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"secondaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"formatPattern":{"type":"string","mapping":"property"},"minDate":{"type":"string","mapping":"property","defaultValue":""},"maxDate":{"type":"string","mapping":"property","defaultValue":""},"calendarWeekNumbering":{"type":"@ui5/webcomponents.CalendarWeekNumbering","mapping":"property","defaultValue":"Default"}},"aggregations":{},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"change":{},"input":{},"valueStateChange":{},"open":{},"close":{}},"getters":["dateValue","dateValueUTC","startDateValue","endDateValue"],"methods":["isValid","isInValidRange","formatValue"]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DateTimePicker.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DateTimePicker.json index ad30d6a0..616211d4 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DateTimePicker.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/DateTimePicker.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-datetime-picker","interfaces":["sap.ui.core.IFormContent"],"properties":{"value":{"type":"string","mapping":"property","defaultValue":""},"valueState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"required":{"type":"boolean","mapping":"property","defaultValue":false},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"readonly":{"type":"boolean","mapping":"property","defaultValue":false},"placeholder":{"type":"string","mapping":"property"},"name":{"type":"string","mapping":"property"},"hideWeekNumbers":{"type":"boolean","mapping":"property","defaultValue":false},"open":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"primaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"secondaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"formatPattern":{"type":"string","mapping":"property"},"minDate":{"type":"string","mapping":"property","defaultValue":""},"maxDate":{"type":"string","mapping":"property","defaultValue":""},"calendarWeekNumbering":{"type":"@ui5/webcomponents.CalendarWeekNumbering","mapping":"property","defaultValue":"Default"},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"change":{},"input":{},"valueStateChange":{},"open":{},"close":{}},"getters":["dateValue"],"methods":["isValid","isInValidRange","formatValue"]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-datetime-picker","interfaces":["sap.ui.core.IFormContent"],"properties":{"value":{"type":"string","mapping":"property","defaultValue":""},"valueState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"required":{"type":"boolean","mapping":"property","defaultValue":false},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"readonly":{"type":"boolean","mapping":"property","defaultValue":false},"placeholder":{"type":"string","mapping":"property"},"name":{"type":"string","mapping":"property"},"hideWeekNumbers":{"type":"boolean","mapping":"property","defaultValue":false},"open":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"primaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"secondaryCalendarType":{"type":"@ui5/webcomponents-base.CalendarType","mapping":"property"},"formatPattern":{"type":"string","mapping":"property"},"minDate":{"type":"string","mapping":"property","defaultValue":""},"maxDate":{"type":"string","mapping":"property","defaultValue":""},"calendarWeekNumbering":{"type":"@ui5/webcomponents.CalendarWeekNumbering","mapping":"property","defaultValue":"Default"}},"aggregations":{},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"change":{},"input":{},"valueStateChange":{},"open":{},"close":{}},"getters":["dateValue"],"methods":["isValid","isInValidRange","formatValue"]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ListItemCustom.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ListItemCustom.json index 20c46dd6..a4dbd65b 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ListItemCustom.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ListItemCustom.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-li-custom","interfaces":[],"properties":{"movable":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true}},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":[],"defaultAggregation":"content"} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-li-custom","interfaces":[],"properties":{"movable":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true}},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":[],"defaultAggregation":"content"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ListItemStandard.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ListItemStandard.json index e5205d78..5d2beff6 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ListItemStandard.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ListItemStandard.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-li","interfaces":[],"properties":{"description":{"type":"string","mapping":"property"},"icon":{"type":"string","mapping":"property"},"iconEnd":{"type":"boolean","mapping":"property","defaultValue":false},"additionalText":{"type":"string","mapping":"property"},"additionalTextState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"movable":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true},"image":{"type":"sap.ui.core.Control","multiple":true,"slot":"image"}},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":[],"defaultAggregation":"content"} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-li","interfaces":[],"properties":{"description":{"type":"string","mapping":"property"},"icon":{"type":"string","mapping":"property"},"iconEnd":{"type":"boolean","mapping":"property","defaultValue":false},"additionalText":{"type":"string","mapping":"property"},"additionalTextState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"movable":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true},"image":{"type":"sap.ui.core.Control","multiple":true,"slot":"image"}},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":[],"defaultAggregation":"content"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MenuItem.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MenuItem.json index 251053e4..56e21940 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MenuItem.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MenuItem.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-menu-item","interfaces":["@ui5/webcomponents.IMenuItem"],"properties":{"text":{"type":"string","mapping":"property"},"additionalText":{"type":"string","mapping":"property"},"icon":{"type":"string","mapping":"property"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"loading":{"type":"boolean","mapping":"property","defaultValue":false},"loadingDelay":{"type":"float","mapping":"property","defaultValue":1000},"accessibleName":{"type":"string","mapping":"property"},"tooltip":{"type":"string","mapping":"property"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"items":{"type":"@ui5/webcomponents.IMenuItem","multiple":true},"endContent":{"type":"sap.ui.core.Control","multiple":true,"slot":"endContent"}},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":[],"defaultAggregation":"items"} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-menu-item","interfaces":["@ui5/webcomponents.IMenuItem"],"properties":{"text":{"type":"string","mapping":"property"},"additionalText":{"type":"string","mapping":"property"},"icon":{"type":"string","mapping":"property"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"loading":{"type":"boolean","mapping":"property","defaultValue":false},"loadingDelay":{"type":"float","mapping":"property","defaultValue":1000},"accessibleName":{"type":"string","mapping":"property"},"tooltip":{"type":"string","mapping":"property"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{"items":{"type":"@ui5/webcomponents.IMenuItem","multiple":true},"endContent":{"type":"sap.ui.core.Control","multiple":true,"slot":"endContent"}},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":[],"defaultAggregation":"items"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MenuSeparator.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MenuSeparator.json index 615933ce..6cd9667a 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MenuSeparator.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MenuSeparator.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-menu-separator","interfaces":["@ui5/webcomponents.IMenuItem"],"properties":{"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-menu-separator","interfaces":["@ui5/webcomponents.IMenuItem"],"properties":{},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiComboBoxItem.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiComboBoxItem.json index 88a0961f..629182e6 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiComboBoxItem.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiComboBoxItem.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-mcb-item","interfaces":["@ui5/webcomponents.IMultiComboBoxItem"],"properties":{"selected":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"property"},"additionalText":{"type":"string","mapping":"property"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-mcb-item","interfaces":["@ui5/webcomponents.IMultiComboBoxItem"],"properties":{"selected":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"property"},"additionalText":{"type":"string","mapping":"property"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiComboBoxItemGroup.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiComboBoxItemGroup.json index 6290d6e7..b8ec7c6a 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiComboBoxItemGroup.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiComboBoxItemGroup.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-mcb-item-group","interfaces":["@ui5/webcomponents.IMultiComboBoxItem"],"properties":{"headerText":{"type":"string","mapping":"property"},"headerAccessibleName":{"type":"string","mapping":"property"},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"items":{"type":"@ui5/webcomponents.MultiComboBoxItem","multiple":true}},"associations":{},"events":{"moveOver":{},"move":{}},"getters":[],"methods":[],"defaultAggregation":"items"} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-mcb-item-group","interfaces":["@ui5/webcomponents.IMultiComboBoxItem"],"properties":{"headerText":{"type":"string","mapping":"property"},"headerAccessibleName":{"type":"string","mapping":"property"}},"aggregations":{"items":{"type":"@ui5/webcomponents.MultiComboBoxItem","multiple":true}},"associations":{},"events":{"moveOver":{},"move":{}},"getters":[],"methods":[],"defaultAggregation":"items"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiInput.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiInput.json index 2555cd50..b7353ee4 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiInput.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/MultiInput.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-multi-input","interfaces":["sap.ui.core.IFormContent","sap.ui.core.ISemanticFormContent"],"properties":{"showValueHelpIcon":{"type":"boolean","mapping":"property","defaultValue":false},"name":{"type":"string","mapping":"property"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"placeholder":{"type":"string","mapping":"property"},"readonly":{"type":"boolean","mapping":"property","defaultValue":false},"required":{"type":"boolean","mapping":"property","defaultValue":false},"noTypeahead":{"type":"boolean","mapping":"property","defaultValue":false},"type":{"type":"@ui5/webcomponents.InputType","mapping":"property","defaultValue":"Text"},"value":{"type":"string","mapping":"property","defaultValue":""},"valueState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"showSuggestions":{"type":"boolean","mapping":"property","defaultValue":false},"maxlength":{"type":"float","mapping":"property"},"accessibleName":{"type":"string","mapping":"property"},"showClearIcon":{"type":"boolean","mapping":"property","defaultValue":false},"open":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"tokens":{"type":"sap.ui.core.Control","multiple":true,"slot":"tokens"}},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"valueHelpTrigger":{},"tokenDelete":{},"change":{},"input":{},"select":{},"selectionChange":{},"open":{},"close":{}},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-multi-input","interfaces":["sap.ui.core.IFormContent","sap.ui.core.ISemanticFormContent"],"properties":{"showValueHelpIcon":{"type":"boolean","mapping":"property","defaultValue":false},"name":{"type":"string","mapping":"property"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"placeholder":{"type":"string","mapping":"property"},"readonly":{"type":"boolean","mapping":"property","defaultValue":false},"required":{"type":"boolean","mapping":"property","defaultValue":false},"noTypeahead":{"type":"boolean","mapping":"property","defaultValue":false},"type":{"type":"@ui5/webcomponents.InputType","mapping":"property","defaultValue":"Text"},"value":{"type":"string","mapping":"property","defaultValue":""},"valueState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"showSuggestions":{"type":"boolean","mapping":"property","defaultValue":false},"maxlength":{"type":"float","mapping":"property"},"accessibleName":{"type":"string","mapping":"property"},"showClearIcon":{"type":"boolean","mapping":"property","defaultValue":false},"open":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{"tokens":{"type":"sap.ui.core.Control","multiple":true,"slot":"tokens"}},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"valueHelpTrigger":{},"tokenDelete":{},"change":{},"input":{},"select":{},"selectionChange":{},"open":{},"close":{}},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/Option.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/Option.json index ab8206f0..10d8eac2 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/Option.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/Option.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-option","interfaces":["@ui5/webcomponents.IOption"],"properties":{"value":{"type":"string","mapping":"property"},"icon":{"type":"string","mapping":"property"},"additionalText":{"type":"string","mapping":"property"},"tooltip":{"type":"string","mapping":"property"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-option","interfaces":["@ui5/webcomponents.IOption"],"properties":{"value":{"type":"string","mapping":"property"},"icon":{"type":"string","mapping":"property"},"additionalText":{"type":"string","mapping":"property"},"tooltip":{"type":"string","mapping":"property"},"selected":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/OptionCustom.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/OptionCustom.json index df117e0b..e98f2114 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/OptionCustom.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/OptionCustom.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-option-custom","interfaces":["@ui5/webcomponents.IOption"],"properties":{"displayText":{"type":"string","mapping":"property"},"value":{"type":"string","mapping":"property"},"tooltip":{"type":"string","mapping":"property"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true}},"associations":{},"events":{},"getters":[],"methods":[],"defaultAggregation":"content"} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-option-custom","interfaces":["@ui5/webcomponents.IOption"],"properties":{"displayText":{"type":"string","mapping":"property"},"value":{"type":"string","mapping":"property"},"tooltip":{"type":"string","mapping":"property"},"selected":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true}},"associations":{},"events":{},"getters":[],"methods":[],"defaultAggregation":"content"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ResponsivePopover.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ResponsivePopover.json index 5f3e5e8c..aff60ec5 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ResponsivePopover.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ResponsivePopover.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-responsive-popover","interfaces":[],"properties":{"headerText":{"type":"string","mapping":"property"},"placement":{"type":"@ui5/webcomponents.PopoverPlacement","mapping":"property","defaultValue":"End"},"horizontalAlign":{"type":"@ui5/webcomponents.PopoverHorizontalAlign","mapping":"property","defaultValue":"Center"},"verticalAlign":{"type":"@ui5/webcomponents.PopoverVerticalAlign","mapping":"property","defaultValue":"Center"},"modal":{"type":"boolean","mapping":"property","defaultValue":false},"hideArrow":{"type":"boolean","mapping":"property","defaultValue":false},"allowTargetOverlap":{"type":"boolean","mapping":"property","defaultValue":false},"initialFocus":{"type":"string","mapping":"property"},"preventFocusRestore":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"accessibleRole":{"type":"@ui5/webcomponents.PopupAccessibleRole","mapping":"property","defaultValue":"Dialog"},"preventInitialFocus":{"type":"boolean","mapping":"property","defaultValue":false},"open":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{"opener":{"type":"sap.ui.core.Control","mapping":{"type":"property","to":"opener"}},"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"beforeOpen":{},"open":{},"beforeClose":{},"close":{}},"getters":[],"methods":["applyFocus"]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-responsive-popover","interfaces":[],"properties":{"headerText":{"type":"string","mapping":"property"},"placement":{"type":"@ui5/webcomponents.PopoverPlacement","mapping":"property","defaultValue":"End"},"horizontalAlign":{"type":"@ui5/webcomponents.PopoverHorizontalAlign","mapping":"property","defaultValue":"Center"},"verticalAlign":{"type":"@ui5/webcomponents.PopoverVerticalAlign","mapping":"property","defaultValue":"Center"},"modal":{"type":"boolean","mapping":"property","defaultValue":false},"hideArrow":{"type":"boolean","mapping":"property","defaultValue":false},"allowTargetOverlap":{"type":"boolean","mapping":"property","defaultValue":false},"initialFocus":{"type":"string","mapping":"property"},"preventFocusRestore":{"type":"boolean","mapping":"property","defaultValue":false},"accessibleName":{"type":"string","mapping":"property"},"accessibleRole":{"type":"@ui5/webcomponents.PopupAccessibleRole","mapping":"property","defaultValue":"Dialog"},"preventInitialFocus":{"type":"boolean","mapping":"property","defaultValue":false},"open":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{},"associations":{"opener":{"type":"sap.ui.core.Control","mapping":{"type":"property","to":"opener"}},"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"beforeOpen":{},"open":{},"beforeClose":{},"close":{}},"getters":[],"methods":["applyFocus"]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItem.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItem.json index 3dadf4e8..bf20bc0c 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItem.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItem.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-suggestion-item","interfaces":[],"properties":{"text":{"type":"string","mapping":"property"},"additionalText":{"type":"string","mapping":"property"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-suggestion-item","interfaces":[],"properties":{"text":{"type":"string","mapping":"property"},"additionalText":{"type":"string","mapping":"property"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItemCustom.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItemCustom.json index bcafeecb..95fb302f 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItemCustom.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItemCustom.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-suggestion-item-custom","interfaces":[],"properties":{"text":{"type":"string","mapping":"property"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true}},"associations":{},"events":{},"getters":[],"methods":[],"defaultAggregation":"content"} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-suggestion-item-custom","interfaces":[],"properties":{"text":{"type":"string","mapping":"property"}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true}},"associations":{},"events":{},"getters":[],"methods":[],"defaultAggregation":"content"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItemGroup.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItemGroup.json index 680c7658..0c594d14 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItemGroup.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/SuggestionItemGroup.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-suggestion-item-group","interfaces":[],"properties":{"headerText":{"type":"string","mapping":"property"},"headerAccessibleName":{"type":"string","mapping":"property"},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"items":{"type":"sap.ui.core.Control","multiple":true}},"associations":{},"events":{"moveOver":{},"move":{}},"getters":[],"methods":[],"defaultAggregation":"items"} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-suggestion-item-group","interfaces":[],"properties":{"headerText":{"type":"string","mapping":"property"},"headerAccessibleName":{"type":"string","mapping":"property"}},"aggregations":{"items":{"type":"sap.ui.core.Control","multiple":true}},"associations":{},"events":{"moveOver":{},"move":{}},"getters":[],"methods":[],"defaultAggregation":"items"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TableHeaderCell.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TableHeaderCell.json index 9029a9c9..655c531e 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TableHeaderCell.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TableHeaderCell.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-table-header-cell","interfaces":[],"properties":{"width":{"type":"string","mapping":"property","defaultValue":"auto"},"minWidth":{"type":"string","mapping":"property","defaultValue":"auto"},"maxWidth":{"type":"string","mapping":"property","defaultValue":"auto"},"importance":{"type":"float","mapping":"property","defaultValue":0},"horizontalAlign":{"type":"@ui5/webcomponents.TableCellHorizontalAlign","mapping":"property"},"text":{"type":"string","mapping":"textContent"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-table-header-cell","interfaces":[],"properties":{"width":{"type":"string","mapping":"property","defaultValue":"auto"},"minWidth":{"type":"string","mapping":"property","defaultValue":"auto"},"maxWidth":{"type":"string","mapping":"property","defaultValue":"auto"},"importance":{"type":"float","mapping":"property","defaultValue":0},"horizontalAlign":{"type":"@ui5/webcomponents.TableCellHorizontalAlign","mapping":"property"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToggleButton.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToggleButton.json index ed723c6c..66da30c6 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToggleButton.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToggleButton.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-toggle-button","interfaces":[],"properties":{"pressed":{"type":"boolean","mapping":"property","defaultValue":false},"design":{"type":"@ui5/webcomponents.ButtonDesign","mapping":"property","defaultValue":"Default"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"icon":{"type":"string","mapping":"property"},"endIcon":{"type":"string","mapping":"property"},"submits":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"accessibleName":{"type":"string","mapping":"property"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"accessibleDescription":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ButtonType","mapping":"property","defaultValue":"Button"},"accessibleRole":{"type":"@ui5/webcomponents.ButtonAccessibleRole","mapping":"property","defaultValue":"Button"},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"click":{}},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-toggle-button","interfaces":[],"properties":{"pressed":{"type":"boolean","mapping":"property","defaultValue":false},"design":{"type":"@ui5/webcomponents.ButtonDesign","mapping":"property","defaultValue":"Default"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"icon":{"type":"string","mapping":"property"},"endIcon":{"type":"string","mapping":"property"},"submits":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"accessibleName":{"type":"string","mapping":"property"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"accessibleDescription":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ButtonType","mapping":"property","defaultValue":"Button"},"accessibleRole":{"type":"@ui5/webcomponents.ButtonAccessibleRole","mapping":"property","defaultValue":"Button"}},"aggregations":{},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"click":{}},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSelect.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSelect.json index a0419f50..b1bf68c8 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSelect.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSelect.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-toolbar-select","interfaces":[],"properties":{"width":{"type":"string","mapping":"property"},"valueState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"accessibleName":{"type":"string","mapping":"property"},"overflowPriority":{"type":"@ui5/webcomponents.ToolbarItemOverflowBehavior","mapping":"property","defaultValue":"Default"},"preventOverflowClosing":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"options":{"type":"@ui5/webcomponents.ToolbarSelectOption","multiple":true}},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"change":{},"open":{},"close":{}},"getters":[],"methods":[],"defaultAggregation":"options"} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-toolbar-select","interfaces":[],"properties":{"width":{"type":"string","mapping":"property"},"valueState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"enabled":{"type":"boolean","defaultValue":"true","mapping":{"type":"property","to":"disabled","formatter":"_mapEnabled"}},"accessibleName":{"type":"string","mapping":"property"},"overflowPriority":{"type":"@ui5/webcomponents.ToolbarItemOverflowBehavior","mapping":"property","defaultValue":"Default"},"preventOverflowClosing":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{"options":{"type":"@ui5/webcomponents.ToolbarSelectOption","multiple":true}},"associations":{"ariaLabelledBy":{"type":"sap.ui.core.Control","multiple":true,"mapping":{"type":"property","to":"accessibleNameRef","formatter":"_getAriaLabelledByForRendering"}}},"events":{"change":{},"open":{},"close":{}},"getters":[],"methods":[],"defaultAggregation":"options"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSeparator.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSeparator.json index 8d1f50f1..a8b14416 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSeparator.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSeparator.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-toolbar-separator","interfaces":[],"properties":{"overflowPriority":{"type":"@ui5/webcomponents.ToolbarItemOverflowBehavior","mapping":"property","defaultValue":"Default"},"preventOverflowClosing":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-toolbar-separator","interfaces":[],"properties":{"overflowPriority":{"type":"@ui5/webcomponents.ToolbarItemOverflowBehavior","mapping":"property","defaultValue":"Default"},"preventOverflowClosing":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSpacer.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSpacer.json index c29ce921..cbaadced 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSpacer.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/ToolbarSpacer.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-toolbar-spacer","interfaces":[],"properties":{"width":{"type":"string","mapping":"property"},"overflowPriority":{"type":"@ui5/webcomponents.ToolbarItemOverflowBehavior","mapping":"property","defaultValue":"Default"},"preventOverflowClosing":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-toolbar-spacer","interfaces":[],"properties":{"width":{"type":"string","mapping":"property"},"overflowPriority":{"type":"@ui5/webcomponents.ToolbarItemOverflowBehavior","mapping":"property","defaultValue":"Default"},"preventOverflowClosing":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{},"associations":{},"events":{},"getters":[],"methods":[]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItem.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItem.json index 3e01399e..9343ef26 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItem.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItem.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-tree-item","interfaces":[],"properties":{"text":{"type":"string","mapping":"property"},"additionalText":{"type":"string","mapping":"property"},"icon":{"type":"string","mapping":"property"},"expanded":{"type":"boolean","mapping":"property","defaultValue":false},"movable":{"type":"boolean","mapping":"property","defaultValue":false},"indeterminate":{"type":"boolean","mapping":"property","defaultValue":false},"hasChildren":{"type":"boolean","mapping":"property","defaultValue":false},"additionalTextState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"accessibleName":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":["toggle"]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-tree-item","interfaces":[],"properties":{"text":{"type":"string","mapping":"property"},"additionalText":{"type":"string","mapping":"property"},"icon":{"type":"string","mapping":"property"},"expanded":{"type":"boolean","mapping":"property","defaultValue":false},"movable":{"type":"boolean","mapping":"property","defaultValue":false},"indeterminate":{"type":"boolean","mapping":"property","defaultValue":false},"hasChildren":{"type":"boolean","mapping":"property","defaultValue":false},"additionalTextState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"accessibleName":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":["toggle"]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItemBase.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItemBase.json index 10d4300f..3bf54160 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItemBase.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItemBase.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","interfaces":[],"properties":{"icon":{"type":"string","mapping":"property"},"expanded":{"type":"boolean","mapping":"property","defaultValue":false},"movable":{"type":"boolean","mapping":"property","defaultValue":false},"indeterminate":{"type":"boolean","mapping":"property","defaultValue":false},"hasChildren":{"type":"boolean","mapping":"property","defaultValue":false},"additionalTextState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"accessibleName":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"items":{"type":"@ui5/webcomponents.TreeItemBase","multiple":true}},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":["toggle"],"defaultAggregation":"items"} \ No newline at end of file +{"namespace":"@ui5/webcomponents","interfaces":[],"properties":{"icon":{"type":"string","mapping":"property"},"expanded":{"type":"boolean","mapping":"property","defaultValue":false},"movable":{"type":"boolean","mapping":"property","defaultValue":false},"indeterminate":{"type":"boolean","mapping":"property","defaultValue":false},"hasChildren":{"type":"boolean","mapping":"property","defaultValue":false},"additionalTextState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"accessibleName":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{"items":{"type":"@ui5/webcomponents.TreeItemBase","multiple":true}},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":["toggle"],"defaultAggregation":"items"} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItemCustom.json b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItemCustom.json index 88f7fe9f..2b4124d1 100644 --- a/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItemCustom.json +++ b/packages/ui5-tooling-modules/test/__fixtures__/@ui5/webcomponents/classes/TreeItemCustom.json @@ -1 +1 @@ -{"namespace":"@ui5/webcomponents","tag":"ui5-tree-item-custom","interfaces":[],"properties":{"hideSelectionElement":{"type":"boolean","mapping":"property","defaultValue":false},"icon":{"type":"string","mapping":"property"},"expanded":{"type":"boolean","mapping":"property","defaultValue":false},"movable":{"type":"boolean","mapping":"property","defaultValue":false},"indeterminate":{"type":"boolean","mapping":"property","defaultValue":false},"hasChildren":{"type":"boolean","mapping":"property","defaultValue":false},"additionalTextState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"accessibleName":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false},"text":{"type":"string","mapping":"textContent"},"width":{"type":"sap.ui.core.CSSSize","mapping":"style"},"height":{"type":"sap.ui.core.CSSSize","mapping":"style"}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true,"slot":"content"}},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":["toggle"]} \ No newline at end of file +{"namespace":"@ui5/webcomponents","tag":"ui5-tree-item-custom","interfaces":[],"properties":{"hideSelectionElement":{"type":"boolean","mapping":"property","defaultValue":false},"icon":{"type":"string","mapping":"property"},"expanded":{"type":"boolean","mapping":"property","defaultValue":false},"movable":{"type":"boolean","mapping":"property","defaultValue":false},"indeterminate":{"type":"boolean","mapping":"property","defaultValue":false},"hasChildren":{"type":"boolean","mapping":"property","defaultValue":false},"additionalTextState":{"type":"@ui5/webcomponents-base.ValueState","mapping":"property","defaultValue":"None"},"accessibleName":{"type":"string","mapping":"property"},"type":{"type":"@ui5/webcomponents.ListItemType","mapping":"property","defaultValue":"Active"},"accessibilityAttributes":{"type":"object","mapping":"property","defaultValue":{}},"navigated":{"type":"boolean","mapping":"property","defaultValue":false},"tooltip":{"type":"string","mapping":"property"},"highlight":{"type":"@ui5/webcomponents.Highlight","mapping":"property","defaultValue":"None"},"selected":{"type":"boolean","mapping":"property","defaultValue":false}},"aggregations":{"content":{"type":"sap.ui.core.Control","multiple":true,"slot":"content"}},"associations":{},"events":{"detailClick":{}},"getters":[],"methods":["toggle"]} \ No newline at end of file diff --git a/packages/ui5-tooling-modules/test/webc.test.js b/packages/ui5-tooling-modules/test/webc.test.js index 17fc86a8..0cf0da3e 100644 --- a/packages/ui5-tooling-modules/test/webc.test.js +++ b/packages/ui5-tooling-modules/test/webc.test.js @@ -63,7 +63,7 @@ test.serial("Verify ui5-metadata generation from 'custom-elements-internal.json' Object.keys(webcRegistryEntry.classes).forEach((className) => { const classJSON = JSON.stringify(webcRegistryEntry.classes[className]._ui5metadata); const classFixtureForComparisonJSON = readFileSync(path.join(fixtureBase, `classes/${className}.json`), { encoding: "utf-8" }); - t.is(classFixtureForComparisonJSON, classJSON, `Class ${className} JSON is equal to fixture`); + t.is(classFixtureForComparisonJSON, classJSON, `Class ${webcRegistryEntry.namespace}.${className} JSON is equal to fixture`); }); // compare enums diff --git a/showcases/ui5-tsapp-webc/webapp/control/HTMLElement.ts b/showcases/ui5-tsapp-webc/webapp/control/HTMLElement.ts index 644b2704..ee81fc82 100644 --- a/showcases/ui5-tsapp-webc/webapp/control/HTMLElement.ts +++ b/showcases/ui5-tsapp-webc/webapp/control/HTMLElement.ts @@ -1,6 +1,7 @@ import Control from "sap/ui/core/Control"; import RenderManager from "sap/ui/core/RenderManager"; import type { MetadataOptions } from "sap/ui/core/Element"; +import CustomData from "sap/ui/core/CustomData"; /** * @namespace ui5.ecosystem.demo.webctsapp.control @@ -38,6 +39,14 @@ export default class HTMLElement extends Control { } }); + control.getCustomData().forEach((cdata: CustomData) => { + const key = cdata.getKey(); + const value: string = cdata.getValue() as string; + if (value) { + rm.attr(key, value); + } + }); + rm.openEnd(); control.getChildren().forEach((child) => { diff --git a/showcases/ui5-tsapp-webc/webapp/controller/Main.controller.ts b/showcases/ui5-tsapp-webc/webapp/controller/Main.controller.ts index 4d5771af..192e9756 100644 --- a/showcases/ui5-tsapp-webc/webapp/controller/Main.controller.ts +++ b/showcases/ui5-tsapp-webc/webapp/controller/Main.controller.ts @@ -13,6 +13,8 @@ import Input from "@ui5/webcomponents/Input"; import { AvatarSize } from "@ui5/webcomponents"; import Token from "@ui5/webcomponents/Token"; +import UserMenu from "@ui5/webcomponents-fiori/UserMenu"; + // import icons import "@ui5/webcomponents-icons/dist/Assets.js"; import "@ui5/webcomponents-icons/dist/accept.js"; @@ -70,6 +72,11 @@ export default class Main extends Controller { this.getOwnerComponent().getRouter().navTo("ValueState"); } + public onProfileClick(evt: Event): void { + const um = this.getView()?.byId("userMenu") as UserMenu; + um?.setOpen(true); + } + public onBoo(): void { MessageToast.show(`👻`); } diff --git a/showcases/ui5-tsapp-webc/webapp/i18n/i18n.properties b/showcases/ui5-tsapp-webc/webapp/i18n/i18n.properties index 5a726ec2..459f67e2 100644 --- a/showcases/ui5-tsapp-webc/webapp/i18n/i18n.properties +++ b/showcases/ui5-tsapp-webc/webapp/i18n/i18n.properties @@ -1,2 +1,2 @@ -appTitle=TypeScript UI5 Application using UI5 Web Components +appTitle=TypeScript App using UI5 Web Components appDescription=A TypeScript UI5 Application using UI5 Web Components diff --git a/showcases/ui5-tsapp-webc/webapp/i18n/i18n_en.properties b/showcases/ui5-tsapp-webc/webapp/i18n/i18n_en.properties index 5a726ec2..459f67e2 100644 --- a/showcases/ui5-tsapp-webc/webapp/i18n/i18n_en.properties +++ b/showcases/ui5-tsapp-webc/webapp/i18n/i18n_en.properties @@ -1,2 +1,2 @@ -appTitle=TypeScript UI5 Application using UI5 Web Components +appTitle=TypeScript App using UI5 Web Components appDescription=A TypeScript UI5 Application using UI5 Web Components diff --git a/showcases/ui5-tsapp-webc/webapp/view/Main.view.xml b/showcases/ui5-tsapp-webc/webapp/view/Main.view.xml index d7851c17..d4c6a0c8 100644 --- a/showcases/ui5-tsapp-webc/webapp/view/Main.view.xml +++ b/showcases/ui5-tsapp-webc/webapp/view/Main.view.xml @@ -5,9 +5,12 @@ xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns:c="ui5.ecosystem.demo.webctsapp.control" + xmlns:ca="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1" xmlns:webc="@ui5/webcomponents" + xmlns:fiori="@ui5/webcomponents-fiori" core:require="{ Formatter: 'ui5/ecosystem/demo/webctsapp/model/Formatter', + iconUI5: '@ui5/webcomponents-icons/dist/sap-ui5', iconAI: '@ui5/webcomponents-icons/dist/ai', iconBiometric: '@ui5/webcomponents-icons/dist/biometric-face', iconBadge: '@ui5/webcomponents-icons/dist/badge', @@ -18,10 +21,59 @@ iconCopy: '@ui5/webcomponents-icons/dist/copy' }" > - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +