@ui5/webcomponents-fiori 1.21.1 → 1.22.0-rc.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.
Files changed (166) hide show
  1. package/CHANGELOG.md +5 -2
  2. package/dist/Bar.d.ts +6 -27
  3. package/dist/Bar.js +3 -14
  4. package/dist/Bar.js.map +1 -1
  5. package/dist/BarcodeScannerDialog.d.ts +2 -13
  6. package/dist/BarcodeScannerDialog.js +10 -12
  7. package/dist/BarcodeScannerDialog.js.map +1 -1
  8. package/dist/DynamicSideContent.d.ts +9 -35
  9. package/dist/DynamicSideContent.js +15 -7
  10. package/dist/DynamicSideContent.js.map +1 -1
  11. package/dist/FilterItem.d.ts +3 -14
  12. package/dist/FilterItem.js +1 -5
  13. package/dist/FilterItem.js.map +1 -1
  14. package/dist/FilterItemOption.d.ts +3 -11
  15. package/dist/FilterItemOption.js +1 -5
  16. package/dist/FilterItemOption.js.map +1 -1
  17. package/dist/FlexibleColumnLayout.d.ts +13 -51
  18. package/dist/FlexibleColumnLayout.js +28 -26
  19. package/dist/FlexibleColumnLayout.js.map +1 -1
  20. package/dist/IllustratedMessage.d.ts +9 -35
  21. package/dist/IllustratedMessage.js +1 -4
  22. package/dist/IllustratedMessage.js.map +1 -1
  23. package/dist/Interfaces.d.ts +28 -88
  24. package/dist/Interfaces.js +2 -113
  25. package/dist/Interfaces.js.map +1 -1
  26. package/dist/MediaGallery.d.ts +9 -26
  27. package/dist/MediaGallery.js +4 -8
  28. package/dist/MediaGallery.js.map +1 -1
  29. package/dist/MediaGalleryItem.d.ts +7 -22
  30. package/dist/MediaGalleryItem.js +2 -5
  31. package/dist/MediaGalleryItem.js.map +1 -1
  32. package/dist/NotificationAction.d.ts +7 -20
  33. package/dist/NotificationAction.js +3 -9
  34. package/dist/NotificationAction.js.map +1 -1
  35. package/dist/NotificationListGroupItem.d.ts +5 -27
  36. package/dist/NotificationListGroupItem.js +1 -16
  37. package/dist/NotificationListGroupItem.js.map +1 -1
  38. package/dist/NotificationListItem.d.ts +3 -27
  39. package/dist/NotificationListItem.js +2 -15
  40. package/dist/NotificationListItem.js.map +1 -1
  41. package/dist/NotificationListItemBase.d.ts +7 -32
  42. package/dist/NotificationListItemBase.js +15 -15
  43. package/dist/NotificationListItemBase.js.map +1 -1
  44. package/dist/Page.d.ts +7 -35
  45. package/dist/Page.js +2 -13
  46. package/dist/Page.js.map +1 -1
  47. package/dist/ProductSwitch.d.ts +3 -10
  48. package/dist/ProductSwitch.js +1 -5
  49. package/dist/ProductSwitch.js.map +1 -1
  50. package/dist/ProductSwitchItem.d.ts +9 -22
  51. package/dist/ProductSwitchItem.js +2 -7
  52. package/dist/ProductSwitchItem.js.map +1 -1
  53. package/dist/ShellBar.d.ts +30 -90
  54. package/dist/ShellBar.js +28 -41
  55. package/dist/ShellBar.js.map +1 -1
  56. package/dist/ShellBarItem.d.ts +9 -14
  57. package/dist/ShellBarItem.js +6 -6
  58. package/dist/ShellBarItem.js.map +1 -1
  59. package/dist/SideNavigation.d.ts +29 -17
  60. package/dist/SideNavigation.js +155 -9
  61. package/dist/SideNavigation.js.map +1 -1
  62. package/dist/SideNavigationItem.d.ts +4 -17
  63. package/dist/SideNavigationItem.js +1 -5
  64. package/dist/SideNavigationItem.js.map +1 -1
  65. package/dist/SideNavigationItemBase.d.ts +7 -36
  66. package/dist/SideNavigationItemBase.js +20 -12
  67. package/dist/SideNavigationItemBase.js.map +1 -1
  68. package/dist/SideNavigationSubItem.d.ts +1 -5
  69. package/dist/SideNavigationSubItem.js +1 -5
  70. package/dist/SideNavigationSubItem.js.map +1 -1
  71. package/dist/SortItem.d.ts +3 -11
  72. package/dist/SortItem.js +1 -5
  73. package/dist/SortItem.js.map +1 -1
  74. package/dist/Timeline.d.ts +5 -16
  75. package/dist/Timeline.js +1 -5
  76. package/dist/Timeline.js.map +1 -1
  77. package/dist/TimelineItem.d.ts +11 -34
  78. package/dist/TimelineItem.js +3 -15
  79. package/dist/TimelineItem.js.map +1 -1
  80. package/dist/UploadCollection.d.ts +11 -32
  81. package/dist/UploadCollection.js +7 -9
  82. package/dist/UploadCollection.js.map +1 -1
  83. package/dist/UploadCollectionItem.d.ts +16 -47
  84. package/dist/UploadCollectionItem.js +3 -10
  85. package/dist/UploadCollectionItem.js.map +1 -1
  86. package/dist/ViewSettingsDialog.d.ts +5 -28
  87. package/dist/ViewSettingsDialog.js +34 -18
  88. package/dist/ViewSettingsDialog.js.map +1 -1
  89. package/dist/Wizard.d.ts +15 -39
  90. package/dist/Wizard.js +23 -33
  91. package/dist/Wizard.js.map +1 -1
  92. package/dist/WizardStep.d.ts +8 -31
  93. package/dist/WizardStep.js +2 -5
  94. package/dist/WizardStep.js.map +1 -1
  95. package/dist/WizardTab.d.ts +20 -24
  96. package/dist/WizardTab.js +1 -5
  97. package/dist/WizardTab.js.map +1 -1
  98. package/dist/css/themes/SideNavigation.css +1 -1
  99. package/dist/custom-elements-internal.json +6682 -0
  100. package/dist/custom-elements.json +4098 -1
  101. package/dist/generated/i18n/i18n-defaults.d.ts +2 -1
  102. package/dist/generated/i18n/i18n-defaults.js +2 -1
  103. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  104. package/dist/generated/templates/SideNavigationPopoverTemplate.lit.js +6 -2
  105. package/dist/generated/templates/SideNavigationPopoverTemplate.lit.js.map +1 -1
  106. package/dist/generated/templates/SideNavigationTemplate.lit.js +1 -1
  107. package/dist/generated/templates/SideNavigationTemplate.lit.js.map +1 -1
  108. package/dist/generated/themes/SideNavigation.css.js +1 -1
  109. package/dist/generated/themes/SideNavigation.css.js.map +1 -1
  110. package/dist/types/BarDesign.d.ts +0 -8
  111. package/dist/types/BarDesign.js +0 -8
  112. package/dist/types/BarDesign.js.map +1 -1
  113. package/dist/types/FCLLayout.d.ts +0 -13
  114. package/dist/types/FCLLayout.js +0 -13
  115. package/dist/types/FCLLayout.js.map +1 -1
  116. package/dist/types/IllustrationMessageSize.d.ts +0 -9
  117. package/dist/types/IllustrationMessageSize.js +0 -9
  118. package/dist/types/IllustrationMessageSize.js.map +1 -1
  119. package/dist/types/IllustrationMessageType.d.ts +0 -107
  120. package/dist/types/IllustrationMessageType.js +0 -107
  121. package/dist/types/IllustrationMessageType.js.map +1 -1
  122. package/dist/types/MediaGalleryItemLayout.d.ts +0 -6
  123. package/dist/types/MediaGalleryItemLayout.js +0 -6
  124. package/dist/types/MediaGalleryItemLayout.js.map +1 -1
  125. package/dist/types/MediaGalleryLayout.d.ts +0 -7
  126. package/dist/types/MediaGalleryLayout.js +0 -7
  127. package/dist/types/MediaGalleryLayout.js.map +1 -1
  128. package/dist/types/MediaGalleryMenuHorizontalAlign.d.ts +0 -6
  129. package/dist/types/MediaGalleryMenuHorizontalAlign.js +0 -6
  130. package/dist/types/MediaGalleryMenuHorizontalAlign.js.map +1 -1
  131. package/dist/types/MediaGalleryMenuVerticalAlign.d.ts +0 -6
  132. package/dist/types/MediaGalleryMenuVerticalAlign.js +0 -6
  133. package/dist/types/MediaGalleryMenuVerticalAlign.js.map +1 -1
  134. package/dist/types/PageBackgroundDesign.d.ts +0 -7
  135. package/dist/types/PageBackgroundDesign.js +0 -7
  136. package/dist/types/PageBackgroundDesign.js.map +1 -1
  137. package/dist/types/SideContentFallDown.d.ts +0 -8
  138. package/dist/types/SideContentFallDown.js +0 -8
  139. package/dist/types/SideContentFallDown.js.map +1 -1
  140. package/dist/types/SideContentPosition.d.ts +0 -6
  141. package/dist/types/SideContentPosition.js +0 -6
  142. package/dist/types/SideContentPosition.js.map +1 -1
  143. package/dist/types/SideContentVisibility.d.ts +0 -9
  144. package/dist/types/SideContentVisibility.js +0 -9
  145. package/dist/types/SideContentVisibility.js.map +1 -1
  146. package/dist/types/TimelineLayout.d.ts +0 -6
  147. package/dist/types/TimelineLayout.js +0 -6
  148. package/dist/types/TimelineLayout.js.map +1 -1
  149. package/dist/types/UploadCollectionDnDMode.d.ts +0 -7
  150. package/dist/types/UploadCollectionDnDMode.js +0 -7
  151. package/dist/types/UploadCollectionDnDMode.js.map +1 -1
  152. package/dist/types/UploadState.d.ts +0 -8
  153. package/dist/types/UploadState.js +0 -8
  154. package/dist/types/UploadState.js.map +1 -1
  155. package/dist/types/ViewSettingsDialogMode.d.ts +0 -6
  156. package/dist/types/ViewSettingsDialogMode.js +0 -6
  157. package/dist/types/ViewSettingsDialogMode.js.map +1 -1
  158. package/dist/types/WizardContentLayout.d.ts +0 -6
  159. package/dist/types/WizardContentLayout.js +0 -6
  160. package/dist/types/WizardContentLayout.js.map +1 -1
  161. package/package.json +7 -7
  162. package/src/SideNavigation.hbs +21 -0
  163. package/src/SideNavigationPopover.hbs +61 -28
  164. package/src/i18n/messagebundle.properties +3 -0
  165. package/src/themes/SideNavigation.css +11 -1
  166. package/dist/api.json +0 -1
@@ -2,6 +2,7 @@ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
2
  import type { ResizeObserverCallback } from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
3
3
  import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
4
4
  import TitleLevel from "@ui5/webcomponents/dist/types/TitleLevel.js";
5
+ import type IButton from "@ui5/webcomponents/dist/Button.js";
5
6
  import IllustrationMessageSize from "./types/IllustrationMessageSize.js";
6
7
  import IllustrationMessageType from "./types/IllustrationMessageType.js";
7
8
  import "./illustrations/BeforeSearch.js";
@@ -45,10 +46,7 @@ import "./illustrations/BeforeSearch.js";
45
46
  * <code>import "@ui5/webcomponents-fiori/dist/IllustratedMessage.js";</code>
46
47
  *
47
48
  * @constructor
48
- * @author SAP SE
49
- * @alias sap.ui.webc.fiori.IllustratedMessage
50
- * @extends sap.ui.webc.base.UI5Element
51
- * @tagname ui5-illustrated-message
49
+ * @extends UI5Element
52
50
  * @public
53
51
  * @since 1.0.0-rc.15
54
52
  */
@@ -66,9 +64,7 @@ declare class IllustratedMessage extends UI5Element {
66
64
  * You can import them removing the <code>Tnt</code> prefix like this:
67
65
  * <br>
68
66
  * <code>import "@ui5/webcomponents-fiori/dist/illustrations/tnt/SessionExpired.js";</code>
69
- * @type {sap.ui.webc.fiori.types.IllustrationMessageType}
70
- * @defaultvalue "BeforeSearch"
71
- * @name sap.ui.webc.fiori.IllustratedMessage.prototype.name
67
+ * @default "BeforeSearch"
72
68
  * @public
73
69
  */
74
70
  name: `${IllustrationMessageType}`;
@@ -79,9 +75,7 @@ declare class IllustratedMessage extends UI5Element {
79
75
  * As <code>IllustratedMessage</code> adapts itself around the <code>Illustration</code>, the other
80
76
  * elements of the component are displayed differently on the different breakpoints/illustration sizes.
81
77
  *
82
- * @type {sap.ui.webc.fiori.types.IllustrationMessageSize}
83
- * @defaultvalue "Auto"
84
- * @name sap.ui.webc.fiori.IllustratedMessage.prototype.size
78
+ * @default "Auto"
85
79
  * @public
86
80
  * @since 1.5.0
87
81
  */
@@ -92,9 +86,7 @@ declare class IllustratedMessage extends UI5Element {
92
86
  * <b>Note:</b> Using this property, the default subtitle text of illustration will be overwritten.
93
87
  * <br><br>
94
88
  * <b>Note:</b> Using <code>subtitle</code> slot, the default of this property will be overwritten.
95
- * @type {string}
96
- * @defaultvalue ""
97
- * @name sap.ui.webc.fiori.IllustratedMessage.prototype.subtitleText
89
+ * @default ""
98
90
  * @public
99
91
  */
100
92
  subtitleText: string;
@@ -102,18 +94,14 @@ declare class IllustratedMessage extends UI5Element {
102
94
  * Defines the title of the component.
103
95
  * <br><br>
104
96
  * <b>Note:</b> Using this property, the default title text of illustration will be overwritten.
105
- * @type {string}
106
- * @defaultvalue ""
107
- * @name sap.ui.webc.fiori.IllustratedMessage.prototype.titleText
97
+ * @default ""
108
98
  * @public
109
99
  */
110
100
  titleText: string;
111
101
  /**
112
102
  * Receives id(or many ids) of the elements that label the component.
113
103
  *
114
- * @type {string}
115
- * @defaultvalue ""
116
- * @name sap.ui.webc.fiori.IllustratedMessage.prototype.accessibleNameRef
104
+ * @default ""
117
105
  * @public
118
106
  * @since 1.7.0
119
107
  */
@@ -123,9 +111,7 @@ declare class IllustratedMessage extends UI5Element {
123
111
  *
124
112
  * <b>Note:</b> Used for accessibility purposes only.
125
113
  *
126
- * @type {sap.ui.webc.main.types.TitleLevel}
127
- * @defaultvalue "H2"
128
- * @name sap.ui.webc.fiori.IllustratedMessage.prototype.titleLevel
114
+ * @default "H2"
129
115
  * @public
130
116
  * @since 1.20.0
131
117
  */
@@ -134,7 +120,6 @@ declare class IllustratedMessage extends UI5Element {
134
120
  * Illustration breakpoint variant for the <code>Spot</code> size.
135
121
  *
136
122
  * @private
137
- * @type {String}
138
123
  * @since 1.9.0
139
124
  */
140
125
  spotSvg: string;
@@ -142,7 +127,6 @@ declare class IllustratedMessage extends UI5Element {
142
127
  * Illustration breakpoint variant for the <code>Scene</code> size.
143
128
  *
144
129
  * @private
145
- * @type {String}
146
130
  * @since 1.9.0
147
131
  */
148
132
  sceneSvg: string;
@@ -150,7 +134,6 @@ declare class IllustratedMessage extends UI5Element {
150
134
  * Illustration breakpoint variant for the <code>Dialog</code> size.
151
135
  *
152
136
  * @private
153
- * @type {String}
154
137
  * @since 1.9.0
155
138
  */
156
139
  dialogSvg: string;
@@ -163,9 +146,6 @@ declare class IllustratedMessage extends UI5Element {
163
146
  * Defines the title of the component.
164
147
  * <br><br>
165
148
  * <b>Note:</b> Using this slot, the default title text of illustration and the value of <code>title</code> property will be overwritten.
166
- * @type {HTMLElement}
167
- * @slot title
168
- * @name sap.ui.webc.fiori.IllustratedMessage.prototype.title
169
149
  * @public
170
150
  * @since 1.7.0
171
151
  */
@@ -174,21 +154,15 @@ declare class IllustratedMessage extends UI5Element {
174
154
  * Defines the subtitle of the component.
175
155
  * <br><br>
176
156
  * <b>Note:</b> Using this slot, the default subtitle text of illustration and the value of <code>subtitleText</code> property will be overwritten.
177
- * @type {HTMLElement}
178
- * @slot subtitle
179
- * @name sap.ui.webc.fiori.IllustratedMessage.prototype.subtitle
180
157
  * @public
181
158
  * @since 1.0.0-rc.16
182
159
  */
183
160
  subtitle: Array<HTMLElement>;
184
161
  /**
185
162
  * Defines the component actions.
186
- * @type {sap.ui.webc.main.IButton[]}
187
- * @slot actions
188
- * @name sap.ui.webc.fiori.IllustratedMessage.prototype.default
189
163
  * @public
190
164
  */
191
- actions: Array<HTMLElement>;
165
+ actions: Array<IButton>;
192
166
  illustrationTitle?: string;
193
167
  illustrationSubtitle?: string;
194
168
  static i18nBundle: I18nBundle;
@@ -63,10 +63,7 @@ import IllustratedMessageTemplate from "./generated/templates/IllustratedMessage
63
63
  * <code>import "@ui5/webcomponents-fiori/dist/IllustratedMessage.js";</code>
64
64
  *
65
65
  * @constructor
66
- * @author SAP SE
67
- * @alias sap.ui.webc.fiori.IllustratedMessage
68
- * @extends sap.ui.webc.base.UI5Element
69
- * @tagname ui5-illustrated-message
66
+ * @extends UI5Element
70
67
  * @public
71
68
  * @since 1.0.0-rc.15
72
69
  */
@@ -1 +1 @@
1
- {"version":3,"file":"IllustratedMessage.js","sourceRoot":"","sources":["../src/IllustratedMessage.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,aAAa,MAAM,wDAAwD,CAAC;AAEnF,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,gEAAgE,CAAC;AAC9H,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,iCAAiC,CAAC;AAE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EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;qDACb;AAOnB;IADC,QAAQ,EAAE;iDACI;AAaf;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;iDACQ;AAapC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;oDACE;AAU9B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;mDAChB;AAjKxB,kBAAkB;IATvB,aAAa,CAAC;QACd,GAAG,EAAE,yBAAyB;QAC9B,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,qBAAqB;QAC7B,QAAQ,EAAE,0BAA0B;QACpC,YAAY,EAAE,CAAC,KAAK,CAAC;KACrB,CAAC;GACI,kBAAkB,CAoYvB;AAED,kBAAkB,CAAC,MAAM,EAAE,CAAC;AAE5B,eAAe,kBAAkB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport { getIllustrationDataSync, getIllustrationData } from \"@ui5/webcomponents-base/dist/asset-registries/Illustrations.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Title from \"@ui5/webcomponents/dist/Title.js\";\nimport TitleLevel from \"@ui5/webcomponents/dist/types/TitleLevel.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport IllustrationMessageSize from \"./types/IllustrationMessageSize.js\";\nimport IllustrationMessageType from \"./types/IllustrationMessageType.js\";\nimport \"./illustrations/BeforeSearch.js\";\n\n// Styles\nimport IllustratedMessageCss from \"./generated/themes/IllustratedMessage.css.js\";\n\n// Template\nimport IllustratedMessageTemplate from \"./generated/templates/IllustratedMessageTemplate.lit.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * An IllustratedMessage is a recommended combination of a solution-oriented message, an engaging\n * illustration, and conversational tone to better communicate an empty or a success state than just show\n * a message alone.\n *\n * Each illustration has default internationalised title and subtitle texts. Also they can be managed with\n * <code>titleText</code> and <code>subtitleText</code> properties.\n *\n * To display the desired illustration, use the <code>name</code> property, where you can find the list of all available illustrations.\n * <br><br>\n * <b>Note:</b> By default the “BeforeSearch” illustration is loaded. To use other illustrations, make sure you import them in addition, for example:\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/illustrations/NoData.js\"</code>\n * <br>\n * <b>Note:</b> Illustrations starting with the “Tnt” prefix are part of another illustration set. For example to use the “TntSuccess” illustration, add the following import::\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/illustrations/tnt/Success.js\"</code>\n *\n * <h3>Structure</h3>\n * The IllustratedMessage consists of the following elements, which are displayed below each other in the following order:\n * <br>\n * <ul>\n * <li>Illustration</li>\n * <li>Title</li>\n * <li>Subtitle</li>\n * <li>Actions</li>\n * </ul>\n *\n * <h3>Usage</h3>\n * <code>ui5-illustrated-message</code> is meant to be used inside container component, for example a <code>ui5-card</code>,\n * a <code>ui5-dialog</code> or a <code>ui5-page</code>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents-fiori/dist/IllustratedMessage.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.fiori.IllustratedMessage\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-illustrated-message\n * @public\n * @since 1.0.0-rc.15\n */\n\n@customElement({\n\ttag: \"ui5-illustrated-message\",\n\tlanguageAware: true,\n\tthemeAware: true,\n\trenderer: litRender,\n\tstyles: IllustratedMessageCss,\n\ttemplate: IllustratedMessageTemplate,\n\tdependencies: [Title],\n})\nclass IllustratedMessage extends UI5Element {\n\t/**\n\t* Defines the illustration name that will be displayed in the component.\n\t* <br><br>\n\t* <b>Note:</b> By default the <code>BeforeSearch</code> illustration is loaded.\n\t* <br>\n\t* When using an illustration type, other than the default, it should be loaded in addition:\n\t* <br>\n\t* <code>import \"@ui5/webcomponents-fiori/dist/illustrations/NoData.js\";</code>\n\t* <br><br>\n\t* <b>Note:</b> TNT illustrations cointain <code>Tnt</code> prefix in their name.\n\t* You can import them removing the <code>Tnt</code> prefix like this:\n\t* <br>\n\t* <code>import \"@ui5/webcomponents-fiori/dist/illustrations/tnt/SessionExpired.js\";</code>\n\t* @type {sap.ui.webc.fiori.types.IllustrationMessageType}\n\t* @defaultvalue \"BeforeSearch\"\n\t* @name sap.ui.webc.fiori.IllustratedMessage.prototype.name\n\t* @public\n\t*/\n\t@property({ type: IllustrationMessageType, defaultValue: IllustrationMessageType.BeforeSearch })\n\tname!: `${IllustrationMessageType}`;\n\n\t/**\n\t* Determines which illustration breakpoint variant is used.\n\t* <br><br>\n\t*\n\t* As <code>IllustratedMessage</code> adapts itself around the <code>Illustration</code>, the other\n\t* elements of the component are displayed differently on the different breakpoints/illustration sizes.\n\t*\n\t* @type {sap.ui.webc.fiori.types.IllustrationMessageSize}\n\t* @defaultvalue \"Auto\"\n\t* @name sap.ui.webc.fiori.IllustratedMessage.prototype.size\n\t* @public\n\t* @since 1.5.0\n\t*/\n\t@property({ type: IllustrationMessageSize, defaultValue: IllustrationMessageSize.Auto })\n\tsize!: `${IllustrationMessageSize}`;\n\n\t/**\n\t* Defines the subtitle of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this property, the default subtitle text of illustration will be overwritten.\n\t* <br><br>\n\t* <b>Note:</b> Using <code>subtitle</code> slot, the default of this property will be overwritten.\n\t* @type {string}\n\t* @defaultvalue \"\"\n\t* @name sap.ui.webc.fiori.IllustratedMessage.prototype.subtitleText\n\t* @public\n\t*/\n\t@property()\n\tsubtitleText!: string;\n\n\t/**\n\t* Defines the title of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this property, the default title text of illustration will be overwritten.\n\t* @type {string}\n\t* @defaultvalue \"\"\n\t* @name sap.ui.webc.fiori.IllustratedMessage.prototype.titleText\n\t* @public\n\t*/\n\t@property()\n\ttitleText!: string;\n\n\t/**\n\t* Receives id(or many ids) of the elements that label the component.\n\t*\n\t* @type {string}\n\t* @defaultvalue \"\"\n\t* @name sap.ui.webc.fiori.IllustratedMessage.prototype.accessibleNameRef\n\t* @public\n\t* @since 1.7.0\n\t*/\n\t@property({ defaultValue: \"\" })\n\taccessibleNameRef!: string;\n\n\t/**\n\t* Defines the semantic level of the title.\n\t*\n\t* <b>Note:</b> Used for accessibility purposes only.\n\t*\n\t* @type {sap.ui.webc.main.types.TitleLevel}\n\t* @defaultvalue \"H2\"\n\t* @name sap.ui.webc.fiori.IllustratedMessage.prototype.titleLevel\n\t* @public\n\t* @since 1.20.0\n\t*/\n\t@property({ type: TitleLevel, defaultValue: TitleLevel.H2 })\n\ttitleLevel!: `${TitleLevel}`;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Spot</code> size.\n\t*\n\t* @private\n\t* @type {String}\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tspotSvg!: string;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Scene</code> size.\n\t*\n\t* @private\n\t* @type {String}\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tsceneSvg!: string;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Dialog</code> size.\n\t*\n\t* @private\n\t* @type {String}\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tdialogSvg!: string;\n\n\t/**\n\t* Determinates what is the current media of the component based on its width.\n\t* @private\n\t*/\n\t@property()\n\tmedia!: string;\n\n\t/**\n\t* Defines the title of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this slot, the default title text of illustration and the value of <code>title</code> property will be overwritten.\n\t* @type {HTMLElement}\n\t* @slot title\n\t* @name sap.ui.webc.fiori.IllustratedMessage.prototype.title\n\t* @public\n\t* @since 1.7.0\n\t*/\n\t@slot({ type: HTMLElement })\n\ttitle!: Array<HTMLElement> & string; // Note: since title collides with HTMLElement's title attribute and it's a String, we're adding the \"& string\" to the type Array<HTMLElement> to avoid ts complains. In the future we will rename/deprecate this slot name, so that it doesn't collide with HTMLElement's title attribute.\n\n\t/**\n\t* Defines the subtitle of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this slot, the default subtitle text of illustration and the value of <code>subtitleText</code> property will be overwritten.\n\t* @type {HTMLElement}\n\t* @slot subtitle\n\t* @name sap.ui.webc.fiori.IllustratedMessage.prototype.subtitle\n\t* @public\n\t* @since 1.0.0-rc.16\n\t*/\n\t@slot({ type: HTMLElement })\n\tsubtitle!: Array<HTMLElement>;\n\n\t/**\n\t* Defines the component actions.\n\t* @type {sap.ui.webc.main.IButton[]}\n\t* @slot actions\n\t* @name sap.ui.webc.fiori.IllustratedMessage.prototype.default\n\t* @public\n\t*/\n\t@slot({ type: HTMLElement, \"default\": true })\n\tactions!: Array<HTMLElement>;\n\n\tillustrationTitle?: string;\n\tillustrationSubtitle?: string;\n\n\tstatic i18nBundle: I18nBundle;\n\t_lastKnownOffsetWidthForMedia: Record<string, number>;\n\t_lastKnownOffsetHeightForMedia: Record<string, number>;\n\t_lastKnownMedia: string;\n\t_handleResize: ResizeObserverCallback;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._handleResize = this.handleResize.bind(this);\n\t\t// this will store the last known offsetWidth of the IllustratedMessage DOM node for a given media (e.g. \"Spot\")\n\t\tthis._lastKnownOffsetWidthForMedia = {};\n\t\tthis._lastKnownOffsetHeightForMedia = {};\n\t\t// this will store the last known media, in order to detect if IllustratedMessage has been hidden by expand/collapse container\n\t\tthis._lastKnownMedia = \"base\";\n\t}\n\n\tstatic async onDefine() {\n\t\tIllustratedMessage.i18nBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n\n\tstatic get BREAKPOINTS() {\n\t\treturn {\n\t\t\tDIALOG: 679,\n\t\t\tSPOT: 319,\n\t\t\tBASE: 259,\n\t\t};\n\t}\n\n\tstatic get BREAKPOINTS_HEIGHT() {\n\t\treturn {\n\t\t\tDIALOG: 451,\n\t\t\tSPOT: 296,\n\t\t\tBASE: 87,\n\t\t};\n\t}\n\n\tstatic get MEDIA() {\n\t\treturn {\n\t\t\tBASE: \"base\",\n\t\t\tSPOT: \"spot\",\n\t\t\tDIALOG: \"dialog\",\n\t\t\tSCENE: \"scene\",\n\t\t};\n\t}\n\n\tasync onBeforeRendering() {\n\t\tlet illustrationData = getIllustrationDataSync(this.name);\n\n\t\t// Gets the current illustration name given in the \"name\" attribute\n\t\tconst currentIllustration = this.getAttribute(\"name\") as IllustrationMessageType;\n\n\t\tif (this.hasAttribute(\"name\") && !this.isValidIllustration(currentIllustration)) {\n\t\t\t// eslint-disable-next-line\n\t\t\tconsole.warn(`The illustration \"${currentIllustration!}\" does not exist. The default illustration \"${IllustrationMessageType.BeforeSearch}\" is loaded instead.`);\n\t\t}\n\n\t\tif (illustrationData === undefined) {\n\t\t\tillustrationData = await getIllustrationData(this.name);\n\t\t}\n\n\t\tthis.spotSvg = illustrationData!.spotSvg;\n\t\tthis.dialogSvg = illustrationData!.dialogSvg;\n\t\tthis.sceneSvg = illustrationData!.sceneSvg;\n\n\t\tthis.illustrationTitle = IllustratedMessage.i18nBundle.getText(illustrationData!.title);\n\t\tthis.illustrationSubtitle = IllustratedMessage.i18nBundle.getText(illustrationData!.subtitle);\n\n\t\tif (this.size !== IllustrationMessageSize.Auto) {\n\t\t\tthis._handleCustomSize();\n\t\t}\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(this, this._handleResize);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(this, this._handleResize);\n\t}\n\n\thandleResize() {\n\t\tif (this.size !== IllustrationMessageSize.Auto) {\n\t\t\tthis._adjustHeightToFitContainer();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._applyMedia();\n\t\twindow.requestAnimationFrame(this._adjustHeightToFitContainer.bind(this));\n\t}\n\n\t_applyMedia(heightChange?: boolean) {\n\t\tconst currOffsetWidth = this.offsetWidth,\n\t\t\tcurrOffsetHeight = this.offsetHeight;\n\n\t\tconst size = heightChange ? currOffsetHeight : currOffsetWidth,\n\t\t\toBreakpounts = heightChange ? IllustratedMessage.BREAKPOINTS_HEIGHT : IllustratedMessage.BREAKPOINTS;\n\t\tlet newMedia = \"\";\n\n\t\tif (size <= oBreakpounts.BASE) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.BASE;\n\t\t} else if (size <= oBreakpounts.SPOT) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.SPOT;\n\t\t} else if (size <= oBreakpounts.DIALOG) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.DIALOG;\n\t\t} else {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.SCENE;\n\t\t}\n\t\tconst lastKnownOffsetWidth = this._lastKnownOffsetWidthForMedia[newMedia],\n\t\t\tlastKnownOffsetHeight = this._lastKnownOffsetHeightForMedia[newMedia];\n\t\t // prevents infinite resizing, when same width is detected for the same media,\n\t\t // excluding the case in which, the control is placed inside expand/collapse container\n\t\tif (!(lastKnownOffsetWidth && currOffsetWidth === lastKnownOffsetWidth\n\t\t\t&& lastKnownOffsetHeight && currOffsetHeight === lastKnownOffsetHeight)\n\t\t\t|| this._lastKnownOffsetWidthForMedia[this._lastKnownMedia] === 0\n\t\t\t|| this._lastKnownOffsetHeightForMedia[this._lastKnownMedia] === 0\n\t\t\t|| this._lastKnownMedia !== newMedia) {\n\t\t\tthis.media = newMedia;\n\t\t\tthis._lastKnownOffsetWidthForMedia[newMedia] = currOffsetWidth;\n\t\t\tthis._lastKnownOffsetHeightForMedia[newMedia] = currOffsetHeight;\n\t\t\tthis._lastKnownMedia = newMedia;\n\t\t}\n\t}\n\n\t_setSVGAccAttrs() {\n\t\tconst svg = this.shadowRoot!.querySelector(\".ui5-illustrated-message-illustration svg\");\n\t\tif (svg) {\n\t\t\tif (this.ariaLabelText) {\n\t\t\t\tsvg.setAttribute(\"aria-label\", this.ariaLabelText);\n\t\t\t} else {\n\t\t\t\tsvg.removeAttribute(\"aria-label\");\n\t\t\t}\n\t\t}\n\t}\n\n\t_adjustHeightToFitContainer() {\n\t\tconst illustrationWrapper = <HTMLElement> this.shadowRoot!.querySelector(\".ui5-illustrated-message-illustration\"),\n\t\t\tillustration = illustrationWrapper.querySelector(\"svg\");\n\n\t\tif (illustration) {\n\t\t\tillustrationWrapper.classList.toggle(\"ui5-illustrated-message-illustration-fit-content\", false);\n\t\t\tif (this.getDomRef()!.scrollHeight > this.getDomRef()!.offsetHeight) {\n\t\t\t\tillustrationWrapper.classList.toggle(\"ui5-illustrated-message-illustration-fit-content\", true);\n\t\t\t\tthis._applyMedia(true /* height change */);\n\t\t\t}\n\t\t}\n\t}\n\n\tonAfterRendering() {\n\t\tthis._setSVGAccAttrs();\n\t}\n\n\t/**\n\t * Modifies the IM styles in accordance to the `size` property's value.\n\t * Note: The resize handler has no effect when size is different than \"Auto\".\n\t * @private\n\t * @since 1.5.0\n\t */\n\t_handleCustomSize() {\n\t\tswitch (this.size) {\n\t\tcase IllustrationMessageSize.Base:\n\t\t\tthis.media = IllustratedMessage.MEDIA.BASE;\n\t\t\treturn;\n\t\tcase IllustrationMessageSize.Spot:\n\t\t\tthis.media = IllustratedMessage.MEDIA.SPOT;\n\t\t\treturn;\n\t\tcase IllustrationMessageSize.Dialog:\n\t\t\tthis.media = IllustratedMessage.MEDIA.DIALOG;\n\t\t\treturn;\n\t\tdefault:\n\t\t\tthis.media = IllustratedMessage.MEDIA.SCENE;\n\t\t}\n\t}\n\n\tget ariaLabelText(): string | undefined {\n\t\treturn getEffectiveAriaLabelText(this);\n\t}\n\n\tget effectiveIllustration(): string {\n\t\tswitch (this.media) {\n\t\tcase IllustratedMessage.MEDIA.SPOT:\n\t\t\treturn this.spotSvg;\n\t\tcase IllustratedMessage.MEDIA.DIALOG:\n\t\t\treturn this.dialogSvg;\n\t\tcase IllustratedMessage.MEDIA.SCENE:\n\t\t\treturn this.sceneSvg;\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}\n\n\tget hasFormattedSubtitle(): boolean {\n\t\treturn !!this.subtitle.length;\n\t}\n\n\tget hasFormattedTitle(): boolean {\n\t\treturn !!this.title.length;\n\t}\n\n\tget effectiveTitleText(): string | undefined {\n\t\treturn this.titleText ? this.titleText : this.illustrationTitle;\n\t}\n\n\tget effectiveSubitleText(): string | undefined {\n\t\treturn this.subtitleText ? this.subtitleText : this.illustrationSubtitle;\n\t}\n\n\tget hasTitle(): boolean {\n\t\treturn !!(this.hasFormattedTitle || this.titleText || this.illustrationTitle);\n\t}\n\n\tget hasSubtitle(): boolean {\n\t\treturn !!(this.hasFormattedSubtitle || this.subtitleText || this.illustrationSubtitle);\n\t}\n\n\tget hasActions(): boolean {\n\t\treturn !!this.actions.length && this.media !== IllustratedMessage.MEDIA.BASE;\n\t}\n\n\tisValidIllustration(currentIllustration: `${IllustrationMessageType}`): boolean {\n\t\treturn currentIllustration in IllustrationMessageType;\n\t}\n}\n\nIllustratedMessage.define();\n\nexport default IllustratedMessage;\n"]}
1
+ {"version":3,"file":"IllustratedMessage.js","sourceRoot":"","sources":["../src/IllustratedMessage.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,aAAa,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I,EAAE,CAAC;gDACpD;AAYpC;IADC,QAAQ,EAAE;wDACW;AAUtB;IADC,QAAQ,EAAE;qDACQ;AAUnB;IADC,QAAQ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;6DACJ;AAY3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC;sDAC/B;AAS7B;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;mDACf;AASjB;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;oDACd;AASlB;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;qDACb;AAOnB;IADC,QAAQ,EAAE;iDACI;AAUf;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;iDACQ;AAUpC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;oDACE;AAO9B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;mDACpB;AAzIpB,kBAAkB;IATvB,aAAa,CAAC;QACd,GAAG,EAAE,yBAAyB;QAC9B,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,qBAAqB;QAC7B,QAAQ,EAAE,0BAA0B;QACpC,YAAY,EAAE,CAAC,KAAK,CAAC;KACrB,CAAC;GACI,kBAAkB,CA4WvB;AAED,kBAAkB,CAAC,MAAM,EAAE,CAAC;AAE5B,eAAe,kBAAkB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport { getIllustrationDataSync, getIllustrationData } from \"@ui5/webcomponents-base/dist/asset-registries/Illustrations.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Title from \"@ui5/webcomponents/dist/Title.js\";\nimport TitleLevel from \"@ui5/webcomponents/dist/types/TitleLevel.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport type IButton from \"@ui5/webcomponents/dist/Button.js\";\nimport IllustrationMessageSize from \"./types/IllustrationMessageSize.js\";\nimport IllustrationMessageType from \"./types/IllustrationMessageType.js\";\nimport \"./illustrations/BeforeSearch.js\";\n\n// Styles\nimport IllustratedMessageCss from \"./generated/themes/IllustratedMessage.css.js\";\n\n// Template\nimport IllustratedMessageTemplate from \"./generated/templates/IllustratedMessageTemplate.lit.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n * An IllustratedMessage is a recommended combination of a solution-oriented message, an engaging\n * illustration, and conversational tone to better communicate an empty or a success state than just show\n * a message alone.\n *\n * Each illustration has default internationalised title and subtitle texts. Also they can be managed with\n * <code>titleText</code> and <code>subtitleText</code> properties.\n *\n * To display the desired illustration, use the <code>name</code> property, where you can find the list of all available illustrations.\n * <br><br>\n * <b>Note:</b> By default the “BeforeSearch” illustration is loaded. To use other illustrations, make sure you import them in addition, for example:\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/illustrations/NoData.js\"</code>\n * <br>\n * <b>Note:</b> Illustrations starting with the “Tnt” prefix are part of another illustration set. For example to use the “TntSuccess” illustration, add the following import::\n * <br>\n * <code>import \"@ui5/webcomponents-fiori/dist/illustrations/tnt/Success.js\"</code>\n *\n * <h3>Structure</h3>\n * The IllustratedMessage consists of the following elements, which are displayed below each other in the following order:\n * <br>\n * <ul>\n * <li>Illustration</li>\n * <li>Title</li>\n * <li>Subtitle</li>\n * <li>Actions</li>\n * </ul>\n *\n * <h3>Usage</h3>\n * <code>ui5-illustrated-message</code> is meant to be used inside container component, for example a <code>ui5-card</code>,\n * a <code>ui5-dialog</code> or a <code>ui5-page</code>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents-fiori/dist/IllustratedMessage.js\";</code>\n *\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.15\n */\n\n@customElement({\n\ttag: \"ui5-illustrated-message\",\n\tlanguageAware: true,\n\tthemeAware: true,\n\trenderer: litRender,\n\tstyles: IllustratedMessageCss,\n\ttemplate: IllustratedMessageTemplate,\n\tdependencies: [Title],\n})\nclass IllustratedMessage extends UI5Element {\n\t/**\n\t* Defines the illustration name that will be displayed in the component.\n\t* <br><br>\n\t* <b>Note:</b> By default the <code>BeforeSearch</code> illustration is loaded.\n\t* <br>\n\t* When using an illustration type, other than the default, it should be loaded in addition:\n\t* <br>\n\t* <code>import \"@ui5/webcomponents-fiori/dist/illustrations/NoData.js\";</code>\n\t* <br><br>\n\t* <b>Note:</b> TNT illustrations cointain <code>Tnt</code> prefix in their name.\n\t* You can import them removing the <code>Tnt</code> prefix like this:\n\t* <br>\n\t* <code>import \"@ui5/webcomponents-fiori/dist/illustrations/tnt/SessionExpired.js\";</code>\n\t* @default \"BeforeSearch\"\n\t* @public\n\t*/\n\t@property({ type: IllustrationMessageType, defaultValue: IllustrationMessageType.BeforeSearch })\n\tname!: `${IllustrationMessageType}`;\n\n\t/**\n\t* Determines which illustration breakpoint variant is used.\n\t* <br><br>\n\t*\n\t* As <code>IllustratedMessage</code> adapts itself around the <code>Illustration</code>, the other\n\t* elements of the component are displayed differently on the different breakpoints/illustration sizes.\n\t*\n\t* @default \"Auto\"\n\t* @public\n\t* @since 1.5.0\n\t*/\n\t@property({ type: IllustrationMessageSize, defaultValue: IllustrationMessageSize.Auto })\n\tsize!: `${IllustrationMessageSize}`;\n\n\t/**\n\t* Defines the subtitle of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this property, the default subtitle text of illustration will be overwritten.\n\t* <br><br>\n\t* <b>Note:</b> Using <code>subtitle</code> slot, the default of this property will be overwritten.\n\t* @default \"\"\n\t* @public\n\t*/\n\t@property()\n\tsubtitleText!: string;\n\n\t/**\n\t* Defines the title of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this property, the default title text of illustration will be overwritten.\n\t* @default \"\"\n\t* @public\n\t*/\n\t@property()\n\ttitleText!: string;\n\n\t/**\n\t* Receives id(or many ids) of the elements that label the component.\n\t*\n\t* @default \"\"\n\t* @public\n\t* @since 1.7.0\n\t*/\n\t@property({ defaultValue: \"\" })\n\taccessibleNameRef!: string;\n\n\t/**\n\t* Defines the semantic level of the title.\n\t*\n\t* <b>Note:</b> Used for accessibility purposes only.\n\t*\n\t* @default \"H2\"\n\t* @public\n\t* @since 1.20.0\n\t*/\n\t@property({ type: TitleLevel, defaultValue: TitleLevel.H2 })\n\ttitleLevel!: `${TitleLevel}`;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Spot</code> size.\n\t*\n\t* @private\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tspotSvg!: string;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Scene</code> size.\n\t*\n\t* @private\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tsceneSvg!: string;\n\n\t/**\n\t* Illustration breakpoint variant for the <code>Dialog</code> size.\n\t*\n\t* @private\n\t* @since 1.9.0\n\t*/\n\t@property({ noAttribute: true })\n\tdialogSvg!: string;\n\n\t/**\n\t* Determinates what is the current media of the component based on its width.\n\t* @private\n\t*/\n\t@property()\n\tmedia!: string;\n\n\t/**\n\t* Defines the title of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this slot, the default title text of illustration and the value of <code>title</code> property will be overwritten.\n\t* @public\n\t* @since 1.7.0\n\t*/\n\t@slot({ type: HTMLElement })\n\ttitle!: Array<HTMLElement> & string; // Note: since title collides with HTMLElement's title attribute and it's a String, we're adding the \"& string\" to the type Array<HTMLElement> to avoid ts complains. In the future we will rename/deprecate this slot name, so that it doesn't collide with HTMLElement's title attribute.\n\n\t/**\n\t* Defines the subtitle of the component.\n\t* <br><br>\n\t* <b>Note:</b> Using this slot, the default subtitle text of illustration and the value of <code>subtitleText</code> property will be overwritten.\n\t* @public\n\t* @since 1.0.0-rc.16\n\t*/\n\t@slot({ type: HTMLElement })\n\tsubtitle!: Array<HTMLElement>;\n\n\t/**\n\t* Defines the component actions.\n\t* @public\n\t*/\n\t@slot({ type: HTMLElement, \"default\": true })\n\tactions!: Array<IButton>;\n\n\tillustrationTitle?: string;\n\tillustrationSubtitle?: string;\n\n\tstatic i18nBundle: I18nBundle;\n\t_lastKnownOffsetWidthForMedia: Record<string, number>;\n\t_lastKnownOffsetHeightForMedia: Record<string, number>;\n\t_lastKnownMedia: string;\n\t_handleResize: ResizeObserverCallback;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._handleResize = this.handleResize.bind(this);\n\t\t// this will store the last known offsetWidth of the IllustratedMessage DOM node for a given media (e.g. \"Spot\")\n\t\tthis._lastKnownOffsetWidthForMedia = {};\n\t\tthis._lastKnownOffsetHeightForMedia = {};\n\t\t// this will store the last known media, in order to detect if IllustratedMessage has been hidden by expand/collapse container\n\t\tthis._lastKnownMedia = \"base\";\n\t}\n\n\tstatic async onDefine() {\n\t\tIllustratedMessage.i18nBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n\n\tstatic get BREAKPOINTS() {\n\t\treturn {\n\t\t\tDIALOG: 679,\n\t\t\tSPOT: 319,\n\t\t\tBASE: 259,\n\t\t};\n\t}\n\n\tstatic get BREAKPOINTS_HEIGHT() {\n\t\treturn {\n\t\t\tDIALOG: 451,\n\t\t\tSPOT: 296,\n\t\t\tBASE: 87,\n\t\t};\n\t}\n\n\tstatic get MEDIA() {\n\t\treturn {\n\t\t\tBASE: \"base\",\n\t\t\tSPOT: \"spot\",\n\t\t\tDIALOG: \"dialog\",\n\t\t\tSCENE: \"scene\",\n\t\t};\n\t}\n\n\tasync onBeforeRendering() {\n\t\tlet illustrationData = getIllustrationDataSync(this.name);\n\n\t\t// Gets the current illustration name given in the \"name\" attribute\n\t\tconst currentIllustration = this.getAttribute(\"name\") as IllustrationMessageType;\n\n\t\tif (this.hasAttribute(\"name\") && !this.isValidIllustration(currentIllustration)) {\n\t\t\t// eslint-disable-next-line\n\t\t\tconsole.warn(`The illustration \"${currentIllustration!}\" does not exist. The default illustration \"${IllustrationMessageType.BeforeSearch}\" is loaded instead.`);\n\t\t}\n\n\t\tif (illustrationData === undefined) {\n\t\t\tillustrationData = await getIllustrationData(this.name);\n\t\t}\n\n\t\tthis.spotSvg = illustrationData!.spotSvg;\n\t\tthis.dialogSvg = illustrationData!.dialogSvg;\n\t\tthis.sceneSvg = illustrationData!.sceneSvg;\n\n\t\tthis.illustrationTitle = IllustratedMessage.i18nBundle.getText(illustrationData!.title);\n\t\tthis.illustrationSubtitle = IllustratedMessage.i18nBundle.getText(illustrationData!.subtitle);\n\n\t\tif (this.size !== IllustrationMessageSize.Auto) {\n\t\t\tthis._handleCustomSize();\n\t\t}\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(this, this._handleResize);\n\t}\n\n\tonExitDOM() {\n\t\tResizeHandler.deregister(this, this._handleResize);\n\t}\n\n\thandleResize() {\n\t\tif (this.size !== IllustrationMessageSize.Auto) {\n\t\t\tthis._adjustHeightToFitContainer();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._applyMedia();\n\t\twindow.requestAnimationFrame(this._adjustHeightToFitContainer.bind(this));\n\t}\n\n\t_applyMedia(heightChange?: boolean) {\n\t\tconst currOffsetWidth = this.offsetWidth,\n\t\t\tcurrOffsetHeight = this.offsetHeight;\n\n\t\tconst size = heightChange ? currOffsetHeight : currOffsetWidth,\n\t\t\toBreakpounts = heightChange ? IllustratedMessage.BREAKPOINTS_HEIGHT : IllustratedMessage.BREAKPOINTS;\n\t\tlet newMedia = \"\";\n\n\t\tif (size <= oBreakpounts.BASE) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.BASE;\n\t\t} else if (size <= oBreakpounts.SPOT) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.SPOT;\n\t\t} else if (size <= oBreakpounts.DIALOG) {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.DIALOG;\n\t\t} else {\n\t\t\tnewMedia = IllustratedMessage.MEDIA.SCENE;\n\t\t}\n\t\tconst lastKnownOffsetWidth = this._lastKnownOffsetWidthForMedia[newMedia],\n\t\t\tlastKnownOffsetHeight = this._lastKnownOffsetHeightForMedia[newMedia];\n\t\t // prevents infinite resizing, when same width is detected for the same media,\n\t\t // excluding the case in which, the control is placed inside expand/collapse container\n\t\tif (!(lastKnownOffsetWidth && currOffsetWidth === lastKnownOffsetWidth\n\t\t\t&& lastKnownOffsetHeight && currOffsetHeight === lastKnownOffsetHeight)\n\t\t\t|| this._lastKnownOffsetWidthForMedia[this._lastKnownMedia] === 0\n\t\t\t|| this._lastKnownOffsetHeightForMedia[this._lastKnownMedia] === 0\n\t\t\t|| this._lastKnownMedia !== newMedia) {\n\t\t\tthis.media = newMedia;\n\t\t\tthis._lastKnownOffsetWidthForMedia[newMedia] = currOffsetWidth;\n\t\t\tthis._lastKnownOffsetHeightForMedia[newMedia] = currOffsetHeight;\n\t\t\tthis._lastKnownMedia = newMedia;\n\t\t}\n\t}\n\n\t_setSVGAccAttrs() {\n\t\tconst svg = this.shadowRoot!.querySelector(\".ui5-illustrated-message-illustration svg\");\n\t\tif (svg) {\n\t\t\tif (this.ariaLabelText) {\n\t\t\t\tsvg.setAttribute(\"aria-label\", this.ariaLabelText);\n\t\t\t} else {\n\t\t\t\tsvg.removeAttribute(\"aria-label\");\n\t\t\t}\n\t\t}\n\t}\n\n\t_adjustHeightToFitContainer() {\n\t\tconst illustrationWrapper = <HTMLElement> this.shadowRoot!.querySelector(\".ui5-illustrated-message-illustration\"),\n\t\t\tillustration = illustrationWrapper.querySelector(\"svg\");\n\n\t\tif (illustration) {\n\t\t\tillustrationWrapper.classList.toggle(\"ui5-illustrated-message-illustration-fit-content\", false);\n\t\t\tif (this.getDomRef()!.scrollHeight > this.getDomRef()!.offsetHeight) {\n\t\t\t\tillustrationWrapper.classList.toggle(\"ui5-illustrated-message-illustration-fit-content\", true);\n\t\t\t\tthis._applyMedia(true /* height change */);\n\t\t\t}\n\t\t}\n\t}\n\n\tonAfterRendering() {\n\t\tthis._setSVGAccAttrs();\n\t}\n\n\t/**\n\t * Modifies the IM styles in accordance to the `size` property's value.\n\t * Note: The resize handler has no effect when size is different than \"Auto\".\n\t * @private\n\t * @since 1.5.0\n\t */\n\t_handleCustomSize() {\n\t\tswitch (this.size) {\n\t\tcase IllustrationMessageSize.Base:\n\t\t\tthis.media = IllustratedMessage.MEDIA.BASE;\n\t\t\treturn;\n\t\tcase IllustrationMessageSize.Spot:\n\t\t\tthis.media = IllustratedMessage.MEDIA.SPOT;\n\t\t\treturn;\n\t\tcase IllustrationMessageSize.Dialog:\n\t\t\tthis.media = IllustratedMessage.MEDIA.DIALOG;\n\t\t\treturn;\n\t\tdefault:\n\t\t\tthis.media = IllustratedMessage.MEDIA.SCENE;\n\t\t}\n\t}\n\n\tget ariaLabelText(): string | undefined {\n\t\treturn getEffectiveAriaLabelText(this);\n\t}\n\n\tget effectiveIllustration(): string {\n\t\tswitch (this.media) {\n\t\tcase IllustratedMessage.MEDIA.SPOT:\n\t\t\treturn this.spotSvg;\n\t\tcase IllustratedMessage.MEDIA.DIALOG:\n\t\t\treturn this.dialogSvg;\n\t\tcase IllustratedMessage.MEDIA.SCENE:\n\t\t\treturn this.sceneSvg;\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}\n\n\tget hasFormattedSubtitle(): boolean {\n\t\treturn !!this.subtitle.length;\n\t}\n\n\tget hasFormattedTitle(): boolean {\n\t\treturn !!this.title.length;\n\t}\n\n\tget effectiveTitleText(): string | undefined {\n\t\treturn this.titleText ? this.titleText : this.illustrationTitle;\n\t}\n\n\tget effectiveSubitleText(): string | undefined {\n\t\treturn this.subtitleText ? this.subtitleText : this.illustrationSubtitle;\n\t}\n\n\tget hasTitle(): boolean {\n\t\treturn !!(this.hasFormattedTitle || this.titleText || this.illustrationTitle);\n\t}\n\n\tget hasSubtitle(): boolean {\n\t\treturn !!(this.hasFormattedSubtitle || this.subtitleText || this.illustrationSubtitle);\n\t}\n\n\tget hasActions(): boolean {\n\t\treturn !!this.actions.length && this.media !== IllustratedMessage.MEDIA.BASE;\n\t}\n\n\tisValidIllustration(currentIllustration: `${IllustrationMessageType}`): boolean {\n\t\treturn currentIllustration in IllustrationMessageType;\n\t}\n}\n\nIllustratedMessage.define();\n\nexport default IllustratedMessage;\n"]}
@@ -1,113 +1,53 @@
1
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ import type { ITabbable } from "@ui5/webcomponents-base/dist/delegate/ItemNavigation.js";
3
+ import TimelineLayout from "./types/TimelineLayout.js";
1
4
  /**
2
5
  * Interface for components that may be slotted inside <code>ui5-page</code> as header and footer.
3
6
  *
4
- * @name sap.ui.webc.fiori.IBar
5
- * @interface
6
7
  * @public
7
8
  */
8
- declare const IBar = "sap.ui.webc.fiori.IBar";
9
- /**
10
- * Interface for components that may be slotted inside <code>ui5-view-settings-dialog</code> as filter items
11
- *
12
- * @name sap.ui.webc.fiori.IFilterItem
13
- * @interface
14
- * @public
15
- */
16
- declare const IFilterItem = "sap.ui.webc.fiori.IFilterItem";
17
- /**
18
- * Interface for components that may be slotted inside <code>ui5-filter-item</code> as values
19
- *
20
- * @name sap.ui.webc.fiori.IFilterItemOption
21
- * @interface
22
- * @public
23
- */
24
- declare const IFilterItemOption = "sap.ui.webc.fiori.IFilterItemOption";
9
+ interface IBar extends HTMLElement {
10
+ }
25
11
  /**
26
12
  * Interface for components that can be slotted inside <code>ui5-media-gallery</code> as items.
27
13
  *
28
- * @name sap.ui.webc.fiori.IMediaGalleryItem
29
- * @interface
30
- * @public
31
- */
32
- declare const IMediaGalleryItem = "sap.ui.webc.fiori.IMediaGalleryItem";
33
- /**
34
- * Interface for components that may be slotted as an action inside <code>ui5-li-notification</code> and <code>ui5-li-notification-group</code>
35
- *
36
- * @name sap.ui.webc.fiori.INotificationAction
37
- * @interface
38
14
  * @public
39
15
  */
40
- declare const INotificationAction = "sap.ui.webc.fiori.INotificationAction";
41
- /**
42
- * Interface for components that may be slotted inside a notification list
43
- *
44
- * @name sap.ui.webc.fiori.INotificationListItem
45
- * @interface
46
- * @public
47
- */
48
- declare const INotificationListItem = "sap.ui.webc.fiori.INotificationListItem";
16
+ interface IMediaGalleryItem extends ITabbable {
17
+ selected: boolean;
18
+ disabled: boolean;
19
+ focused: boolean;
20
+ }
49
21
  /**
50
22
  * Interface for components that may be slotted inside <code>ui5-product-switch</code> as items
51
23
  *
52
- * @name sap.ui.webc.fiori.IProductSwitchItem
53
- * @interface
54
- * @public
55
- */
56
- declare const IProductSwitchItem = "sap.ui.webc.fiori.IProductSwitchItem";
57
- /**
58
- * Interface for components that may be slotted inside <code>ui5-shellbar</code> as items
59
- *
60
- * @name sap.ui.webc.fiori.IShellBarItem
61
- * @interface
62
- * @public
63
- */
64
- declare const IShellBarItem = "sap.ui.webc.fiori.IShellBarItem";
65
- /**
66
- * Interface for components that may be slotted inside <code>ui5-side-navigation</code> as items
67
- *
68
- * @name sap.ui.webc.fiori.ISideNavigationItem
69
- * @interface
70
- * @public
71
- */
72
- declare const ISideNavigationItem = "sap.ui.webc.fiori.ISideNavigationItem";
73
- /**
74
- * Interface for components that may be slotted inside <code>ui5-side-navigation-item</code> as sub-items
75
- *
76
- * @name sap.ui.webc.fiori.ISideNavigationSubItem
77
- * @interface
78
- * @public
79
- */
80
- declare const ISideNavigationSubItem = "sap.ui.webc.fiori.ISideNavigationSubItem";
81
- /**
82
- * Interface for components that may be slotted inside <code>ui5-view-settings-dialog</code> as sort items
83
- *
84
- * @name sap.ui.webc.fiori.ISortItem
85
- * @interface
86
24
  * @public
87
25
  */
88
- declare const ISortItem = "sap.ui.webc.fiori.ISortItem";
26
+ interface IProductSwitchItem extends ITabbable {
27
+ titleText: string;
28
+ subtitleText: string;
29
+ icon: string;
30
+ target: string;
31
+ targetSrc: string;
32
+ selected: boolean;
33
+ }
89
34
  /**
90
35
  * Interface for components that may be slotted inside <code>ui5-timeline</code> as items
91
36
  *
92
- * @name sap.ui.webc.fiori.ITimelineItem
93
- * @interface
94
37
  * @public
95
38
  */
96
- declare const ITimelineItem = "sap.ui.webc.fiori.ITimelineItem";
39
+ interface ITimelineItem extends UI5Element, ITabbable {
40
+ layout: `${TimelineLayout}`;
41
+ icon: string;
42
+ _lineWidth: string;
43
+ nameClickable: boolean;
44
+ focusLink: () => void;
45
+ }
97
46
  /**
98
47
  * Interface for components that may be slotted inside <code>ui5-upload-collection</code> as items
99
48
  *
100
- * @name sap.ui.webc.fiori.IUploadCollectionItem
101
- * @interface
102
- * @public
103
- */
104
- declare const IUploadCollectionItem = "sap.ui.webc.fiori.IUploadCollectionItem";
105
- /**
106
- * Interface for components that may be slotted inside <code>ui5-wizard</code> as wizard steps
107
- *
108
- * @name sap.ui.webc.fiori.IWizardStep
109
- * @interface
110
49
  * @public
111
50
  */
112
- declare const IWizardStep = "sap.ui.webc.fiori.IWizardStep";
113
- export { IBar, IFilterItem, IFilterItemOption, IMediaGalleryItem, INotificationAction, INotificationListItem, IProductSwitchItem, IShellBarItem, ISideNavigationItem, ISideNavigationSubItem, ISortItem, ITimelineItem, IUploadCollectionItem, IWizardStep, };
51
+ interface IUploadCollectionItem extends HTMLElement {
52
+ }
53
+ export { IBar, IMediaGalleryItem, IProductSwitchItem, ITimelineItem, IUploadCollectionItem, };
@@ -1,114 +1,3 @@
1
- /**
2
- * Interface for components that may be slotted inside <code>ui5-page</code> as header and footer.
3
- *
4
- * @name sap.ui.webc.fiori.IBar
5
- * @interface
6
- * @public
7
- */
8
- const IBar = "sap.ui.webc.fiori.IBar";
9
- /**
10
- * Interface for components that may be slotted inside <code>ui5-view-settings-dialog</code> as filter items
11
- *
12
- * @name sap.ui.webc.fiori.IFilterItem
13
- * @interface
14
- * @public
15
- */
16
- const IFilterItem = "sap.ui.webc.fiori.IFilterItem";
17
- /**
18
- * Interface for components that may be slotted inside <code>ui5-filter-item</code> as values
19
- *
20
- * @name sap.ui.webc.fiori.IFilterItemOption
21
- * @interface
22
- * @public
23
- */
24
- const IFilterItemOption = "sap.ui.webc.fiori.IFilterItemOption";
25
- /**
26
- * Interface for components that can be slotted inside <code>ui5-media-gallery</code> as items.
27
- *
28
- * @name sap.ui.webc.fiori.IMediaGalleryItem
29
- * @interface
30
- * @public
31
- */
32
- const IMediaGalleryItem = "sap.ui.webc.fiori.IMediaGalleryItem";
33
- /**
34
- * Interface for components that may be slotted as an action inside <code>ui5-li-notification</code> and <code>ui5-li-notification-group</code>
35
- *
36
- * @name sap.ui.webc.fiori.INotificationAction
37
- * @interface
38
- * @public
39
- */
40
- const INotificationAction = "sap.ui.webc.fiori.INotificationAction";
41
- /**
42
- * Interface for components that may be slotted inside a notification list
43
- *
44
- * @name sap.ui.webc.fiori.INotificationListItem
45
- * @interface
46
- * @public
47
- */
48
- const INotificationListItem = "sap.ui.webc.fiori.INotificationListItem";
49
- /**
50
- * Interface for components that may be slotted inside <code>ui5-product-switch</code> as items
51
- *
52
- * @name sap.ui.webc.fiori.IProductSwitchItem
53
- * @interface
54
- * @public
55
- */
56
- const IProductSwitchItem = "sap.ui.webc.fiori.IProductSwitchItem";
57
- /**
58
- * Interface for components that may be slotted inside <code>ui5-shellbar</code> as items
59
- *
60
- * @name sap.ui.webc.fiori.IShellBarItem
61
- * @interface
62
- * @public
63
- */
64
- const IShellBarItem = "sap.ui.webc.fiori.IShellBarItem";
65
- /**
66
- * Interface for components that may be slotted inside <code>ui5-side-navigation</code> as items
67
- *
68
- * @name sap.ui.webc.fiori.ISideNavigationItem
69
- * @interface
70
- * @public
71
- */
72
- const ISideNavigationItem = "sap.ui.webc.fiori.ISideNavigationItem";
73
- /**
74
- * Interface for components that may be slotted inside <code>ui5-side-navigation-item</code> as sub-items
75
- *
76
- * @name sap.ui.webc.fiori.ISideNavigationSubItem
77
- * @interface
78
- * @public
79
- */
80
- const ISideNavigationSubItem = "sap.ui.webc.fiori.ISideNavigationSubItem";
81
- /**
82
- * Interface for components that may be slotted inside <code>ui5-view-settings-dialog</code> as sort items
83
- *
84
- * @name sap.ui.webc.fiori.ISortItem
85
- * @interface
86
- * @public
87
- */
88
- const ISortItem = "sap.ui.webc.fiori.ISortItem";
89
- /**
90
- * Interface for components that may be slotted inside <code>ui5-timeline</code> as items
91
- *
92
- * @name sap.ui.webc.fiori.ITimelineItem
93
- * @interface
94
- * @public
95
- */
96
- const ITimelineItem = "sap.ui.webc.fiori.ITimelineItem";
97
- /**
98
- * Interface for components that may be slotted inside <code>ui5-upload-collection</code> as items
99
- *
100
- * @name sap.ui.webc.fiori.IUploadCollectionItem
101
- * @interface
102
- * @public
103
- */
104
- const IUploadCollectionItem = "sap.ui.webc.fiori.IUploadCollectionItem";
105
- /**
106
- * Interface for components that may be slotted inside <code>ui5-wizard</code> as wizard steps
107
- *
108
- * @name sap.ui.webc.fiori.IWizardStep
109
- * @interface
110
- * @public
111
- */
112
- const IWizardStep = "sap.ui.webc.fiori.IWizardStep";
113
- export { IBar, IFilterItem, IFilterItemOption, IMediaGalleryItem, INotificationAction, INotificationListItem, IProductSwitchItem, IShellBarItem, ISideNavigationItem, ISideNavigationSubItem, ISortItem, ITimelineItem, IUploadCollectionItem, IWizardStep, };
1
+ import "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ import "./types/TimelineLayout.js";
114
3
  //# sourceMappingURL=Interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Interfaces.js","sourceRoot":"","sources":["../src/Interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,IAAI,GAAG,wBAAwB,CAAC;AAEtC;;;;;;GAMG;AACH,MAAM,WAAW,GAAG,+BAA+B,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,qCAAqC,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,qCAAqC,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,mBAAmB,GAAG,uCAAuC,CAAC;AAEpE;;;;;;GAMG;AACH,MAAM,qBAAqB,GAAG,yCAAyC,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,kBAAkB,GAAG,sCAAsC,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,aAAa,GAAG,iCAAiC,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,mBAAmB,GAAG,uCAAuC,CAAC;AAEpE;;;;;;GAMG;AACH,MAAM,sBAAsB,GAAG,0CAA0C,CAAC;AAE1E;;;;;;GAMG;AACH,MAAM,SAAS,GAAG,6BAA6B,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,aAAa,GAAG,iCAAiC,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,qBAAqB,GAAG,yCAAyC,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,WAAW,GAAG,+BAA+B,CAAC;AAEpD,OAAO,EACN,IAAI,EACJ,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,WAAW,GACX,CAAC","sourcesContent":["/**\n * Interface for components that may be slotted inside <code>ui5-page</code> as header and footer.\n *\n * @name sap.ui.webc.fiori.IBar\n * @interface\n * @public\n */\nconst IBar = \"sap.ui.webc.fiori.IBar\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-view-settings-dialog</code> as filter items\n *\n * @name sap.ui.webc.fiori.IFilterItem\n * @interface\n * @public\n */\nconst IFilterItem = \"sap.ui.webc.fiori.IFilterItem\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-filter-item</code> as values\n *\n * @name sap.ui.webc.fiori.IFilterItemOption\n * @interface\n * @public\n */\nconst IFilterItemOption = \"sap.ui.webc.fiori.IFilterItemOption\";\n\n/**\n * Interface for components that can be slotted inside <code>ui5-media-gallery</code> as items.\n *\n * @name sap.ui.webc.fiori.IMediaGalleryItem\n * @interface\n * @public\n */\nconst IMediaGalleryItem = \"sap.ui.webc.fiori.IMediaGalleryItem\";\n\n/**\n * Interface for components that may be slotted as an action inside <code>ui5-li-notification</code> and <code>ui5-li-notification-group</code>\n *\n * @name sap.ui.webc.fiori.INotificationAction\n * @interface\n * @public\n */\nconst INotificationAction = \"sap.ui.webc.fiori.INotificationAction\";\n\n/**\n * Interface for components that may be slotted inside a notification list\n *\n * @name sap.ui.webc.fiori.INotificationListItem\n * @interface\n * @public\n */\nconst INotificationListItem = \"sap.ui.webc.fiori.INotificationListItem\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-product-switch</code> as items\n *\n * @name sap.ui.webc.fiori.IProductSwitchItem\n * @interface\n * @public\n */\nconst IProductSwitchItem = \"sap.ui.webc.fiori.IProductSwitchItem\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-shellbar</code> as items\n *\n * @name sap.ui.webc.fiori.IShellBarItem\n * @interface\n * @public\n */\nconst IShellBarItem = \"sap.ui.webc.fiori.IShellBarItem\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-side-navigation</code> as items\n *\n * @name sap.ui.webc.fiori.ISideNavigationItem\n * @interface\n * @public\n */\nconst ISideNavigationItem = \"sap.ui.webc.fiori.ISideNavigationItem\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-side-navigation-item</code> as sub-items\n *\n * @name sap.ui.webc.fiori.ISideNavigationSubItem\n * @interface\n * @public\n */\nconst ISideNavigationSubItem = \"sap.ui.webc.fiori.ISideNavigationSubItem\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-view-settings-dialog</code> as sort items\n *\n * @name sap.ui.webc.fiori.ISortItem\n * @interface\n * @public\n */\nconst ISortItem = \"sap.ui.webc.fiori.ISortItem\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-timeline</code> as items\n *\n * @name sap.ui.webc.fiori.ITimelineItem\n * @interface\n * @public\n */\nconst ITimelineItem = \"sap.ui.webc.fiori.ITimelineItem\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-upload-collection</code> as items\n *\n * @name sap.ui.webc.fiori.IUploadCollectionItem\n * @interface\n * @public\n */\nconst IUploadCollectionItem = \"sap.ui.webc.fiori.IUploadCollectionItem\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-wizard</code> as wizard steps\n *\n * @name sap.ui.webc.fiori.IWizardStep\n * @interface\n * @public\n */\nconst IWizardStep = \"sap.ui.webc.fiori.IWizardStep\";\n\nexport {\n\tIBar,\n\tIFilterItem,\n\tIFilterItemOption,\n\tIMediaGalleryItem,\n\tINotificationAction,\n\tINotificationListItem,\n\tIProductSwitchItem,\n\tIShellBarItem,\n\tISideNavigationItem,\n\tISideNavigationSubItem,\n\tISortItem,\n\tITimelineItem,\n\tIUploadCollectionItem,\n\tIWizardStep,\n};\n"]}
1
+ {"version":3,"file":"Interfaces.js","sourceRoot":"","sources":["../src/Interfaces.ts"],"names":[],"mappings":"AAAA,OAAuB,4CAA4C,CAAC;AAEpE,OAA2B,2BAA2B,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport type { ITabbable } from \"@ui5/webcomponents-base/dist/delegate/ItemNavigation.js\";\nimport TimelineLayout from \"./types/TimelineLayout.js\";\n\n/**\n * Interface for components that may be slotted inside <code>ui5-page</code> as header and footer.\n *\n * @public\n */\ninterface IBar extends HTMLElement {}\n\n/**\n * Interface for components that can be slotted inside <code>ui5-media-gallery</code> as items.\n *\n * @public\n */\ninterface IMediaGalleryItem extends ITabbable {\n\tselected: boolean,\n\tdisabled: boolean,\n\tfocused: boolean,\n}\n\n/**\n * Interface for components that may be slotted inside <code>ui5-product-switch</code> as items\n *\n * @public\n */\ninterface IProductSwitchItem extends ITabbable {\n\ttitleText: string,\n\tsubtitleText: string,\n\ticon: string,\n\ttarget: string,\n\ttargetSrc: string,\n\tselected: boolean,\n}\n\n/**\n * Interface for components that may be slotted inside <code>ui5-timeline</code> as items\n *\n * @public\n */\ninterface ITimelineItem extends UI5Element, ITabbable {\n layout: `${TimelineLayout}`,\n icon: string,\n _lineWidth: string,\n nameClickable: boolean,\n focusLink: () => void,\n}\n\n/**\n * Interface for components that may be slotted inside <code>ui5-upload-collection</code> as items\n *\n * @public\n */\ninterface IUploadCollectionItem extends HTMLElement { }\n\nexport {\n\tIBar,\n\tIMediaGalleryItem,\n\tIProductSwitchItem,\n\tITimelineItem,\n\tIUploadCollectionItem,\n};\n"]}
@@ -8,6 +8,7 @@ import MediaGalleryItem from "./MediaGalleryItem.js";
8
8
  import MediaGalleryLayout from "./types/MediaGalleryLayout.js";
9
9
  import MediaGalleryMenuHorizontalAlign from "./types/MediaGalleryMenuHorizontalAlign.js";
10
10
  import MediaGalleryMenuVerticalAlign from "./types/MediaGalleryMenuVerticalAlign.js";
11
+ import type IMediaGalleryItem from "./MediaGalleryItem.js";
11
12
  type MediaGallerySelectionChangeEventDetail = {
12
13
  item: MediaGalleryItem;
13
14
  };
@@ -47,11 +48,7 @@ type MediaGallerySelectionChangeEventDetail = {
47
48
  * <code>import "@ui5/webcomponents-fiori/dist/MediaGalleryItem";</code>
48
49
  *
49
50
  * @constructor
50
- * @author SAP SE
51
- * @alias sap.ui.webc.fiori.MediaGallery
52
- * @extends sap.ui.webc.base.UI5Element
53
- * @tagname ui5-media-gallery
54
- * @appenddocs sap.ui.webc.fiori.MediaGalleryItem
51
+ * @extends UI5Element
55
52
  * @public
56
53
  * @since 1.1.0
57
54
  */
@@ -61,9 +58,7 @@ declare class MediaGallery extends UI5Element {
61
58
  * If <code>false</code>, only up to five thumbnails are rendered, followed by
62
59
  * an overflow button that shows the count of the remaining thumbnails.
63
60
  *
64
- * @type {boolean}
65
- * @name sap.ui.webc.fiori.MediaGallery.prototype.showAllThumbnails
66
- * @defaultvalue false
61
+ * @default false
67
62
  * @public
68
63
  */
69
64
  showAllThumbnails: boolean;
@@ -74,18 +69,14 @@ declare class MediaGallery extends UI5Element {
74
69
  * The display area is the central area that contains
75
70
  * the enlarged content of the currently selected item.
76
71
  *
77
- * @type {boolean}
78
- * @name sap.ui.webc.fiori.MediaGallery.prototype.interactiveDisplayArea
79
- * @defaultvalue false
72
+ * @default false
80
73
  * @public
81
74
  */
82
75
  interactiveDisplayArea: boolean;
83
76
  /**
84
77
  * Determines the layout of the component.
85
78
  *
86
- * @type {sap.ui.webc.fiori.types.MediaGalleryLayout}
87
- * @name sap.ui.webc.fiori.MediaGallery.prototype.layout
88
- * @defaultvalue "Auto"
79
+ * @default "Auto"
89
80
  * @public
90
81
  */
91
82
  layout: `${MediaGalleryLayout}`;
@@ -93,9 +84,7 @@ declare class MediaGallery extends UI5Element {
93
84
  * Determines the horizontal alignment of the thumbnails menu
94
85
  * vs. the central display area.
95
86
  *
96
- * @type {sap.ui.webc.fiori.types.MediaGalleryMenuHorizontalAlign}
97
- * @name sap.ui.webc.fiori.MediaGallery.prototype.menuHorizontalAlign
98
- * @defaultvalue "Left"
87
+ * @default "Left"
99
88
  * @public
100
89
  */
101
90
  menuHorizontalAlign: `${MediaGalleryMenuHorizontalAlign}`;
@@ -103,9 +92,7 @@ declare class MediaGallery extends UI5Element {
103
92
  * Determines the vertical alignment of the thumbnails menu
104
93
  * vs. the central display area.
105
94
  *
106
- * @type {sap.ui.webc.fiori.types.MediaGalleryMenuVerticalAlign}
107
- * @name sap.ui.webc.fiori.MediaGallery.prototype.menuVerticalAlign
108
- * @defaultvalue "Bottom"
95
+ * @default "Bottom"
109
96
  * @public
110
97
  */
111
98
  menuVerticalAlign: `${MediaGalleryMenuVerticalAlign}`;
@@ -114,8 +101,7 @@ declare class MediaGallery extends UI5Element {
114
101
  * (esp. needed when the app did not specify a fixed layout type
115
102
  * but selected <code>Auto</code> layout type).
116
103
  *
117
- * @type {sap.ui.webc.fiori.types.MediaGalleryLayout}
118
- * @defaultvalue "Vertical"
104
+ * @default "Vertical"
119
105
  * @private
120
106
  */
121
107
  effectiveLayout: `${MediaGalleryLayout}`;
@@ -140,12 +126,9 @@ declare class MediaGallery extends UI5Element {
140
126
  * <br><br>
141
127
  * <b>Note:</b> Use the <code>ui5-media-gallery-item</code> component to define the desired items.
142
128
  *
143
- * @type {sap.ui.webc.fiori.IMediaGalleryItem[]}
144
- * @name sap.ui.webc.fiori.MediaGallery.prototype.default
145
- * @slot items
146
129
  * @public
147
130
  */
148
- items: Array<MediaGalleryItem>;
131
+ items: Array<IMediaGalleryItem>;
149
132
  _itemNavigation: ItemNavigation;
150
133
  _onResize: () => void;
151
134
  _selectedItem?: MediaGalleryItem;