@syncfusion/ej2-ribbon 33.2.10 → 34.1.29

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 (294) hide show
  1. package/dist/ej2-ribbon.umd.min.js +2 -2
  2. package/dist/ej2-ribbon.umd.min.js.map +1 -1
  3. package/dist/es6/ej2-ribbon.es2015.js +107 -8
  4. package/dist/es6/ej2-ribbon.es2015.js.map +1 -1
  5. package/dist/es6/ej2-ribbon.es5.js +115 -16
  6. package/dist/es6/ej2-ribbon.es5.js.map +1 -1
  7. package/dist/global/ej2-ribbon.min.js +2 -2
  8. package/dist/global/ej2-ribbon.min.js.map +1 -1
  9. package/dist/global/index.d.ts +1 -1
  10. package/package.json +8 -8
  11. package/src/ribbon/base/ribbon-model.d.ts +1 -1
  12. package/src/ribbon/base/ribbon.js +1 -2
  13. package/src/ribbon/base/utils.js +8 -0
  14. package/src/ribbon/items/ribbon-colorpicker.js +20 -1
  15. package/src/ribbon/items/ribbon-combobox.js +30 -1
  16. package/src/ribbon/items/ribbon-gallery.js +17 -5
  17. package/src/ribbon/items/ribbon-groupbutton.js +18 -6
  18. package/src/ribbon/items/ribbon-splitbutton.js +8 -2
  19. package/src/ribbon/modules/ribbon-filemenu.js +14 -0
  20. package/styles/bds-lite.css +15 -312
  21. package/styles/bds-lite.scss +1 -15
  22. package/styles/bds.css +20 -316
  23. package/styles/bds.scss +2 -16
  24. package/styles/bootstrap-dark-lite.css +6 -74
  25. package/styles/bootstrap-dark-lite.scss +1 -15
  26. package/styles/bootstrap-dark.css +6 -74
  27. package/styles/bootstrap-dark.scss +2 -16
  28. package/styles/bootstrap-lite.css +6 -76
  29. package/styles/bootstrap-lite.scss +1 -15
  30. package/styles/bootstrap.css +6 -76
  31. package/styles/bootstrap.scss +2 -16
  32. package/styles/bootstrap4-lite.css +7 -127
  33. package/styles/bootstrap4-lite.scss +1 -15
  34. package/styles/bootstrap4.css +7 -127
  35. package/styles/bootstrap4.scss +2 -16
  36. package/styles/bootstrap5-dark-lite.css +6 -149
  37. package/styles/bootstrap5-dark-lite.scss +1 -15
  38. package/styles/bootstrap5-dark.css +11 -149
  39. package/styles/bootstrap5-dark.scss +2 -16
  40. package/styles/bootstrap5-lite.css +7 -150
  41. package/styles/bootstrap5-lite.scss +1 -16
  42. package/styles/bootstrap5.3-lite.css +7 -318
  43. package/styles/bootstrap5.3-lite.scss +1 -16
  44. package/styles/bootstrap5.3.css +13 -403
  45. package/styles/bootstrap5.3.scss +2 -17
  46. package/styles/bootstrap5.css +12 -150
  47. package/styles/bootstrap5.scss +2 -17
  48. package/styles/fabric-dark-lite.css +6 -50
  49. package/styles/fabric-dark-lite.scss +1 -16
  50. package/styles/fabric-dark.css +6 -50
  51. package/styles/fabric-dark.scss +2 -17
  52. package/styles/fabric-lite.css +6 -51
  53. package/styles/fabric-lite.scss +1 -16
  54. package/styles/fabric.css +6 -51
  55. package/styles/fabric.scss +2 -17
  56. package/styles/fluent-dark-lite.css +6 -141
  57. package/styles/fluent-dark-lite.scss +1 -16
  58. package/styles/fluent-dark.css +6 -141
  59. package/styles/fluent-dark.scss +2 -17
  60. package/styles/fluent-lite.css +6 -141
  61. package/styles/fluent-lite.scss +1 -16
  62. package/styles/fluent.css +6 -141
  63. package/styles/fluent.scss +2 -17
  64. package/styles/fluent2-lite.css +7 -390
  65. package/styles/fluent2-lite.scss +1 -16
  66. package/styles/fluent2.css +7 -476
  67. package/styles/fluent2.scss +2 -17
  68. package/styles/highcontrast-light-lite.css +6 -71
  69. package/styles/highcontrast-light-lite.scss +1 -16
  70. package/styles/highcontrast-light.css +6 -71
  71. package/styles/highcontrast-light.scss +2 -17
  72. package/styles/highcontrast-lite.css +6 -72
  73. package/styles/highcontrast-lite.scss +1 -16
  74. package/styles/highcontrast.css +6 -72
  75. package/styles/highcontrast.scss +2 -17
  76. package/styles/material-dark-lite.css +7 -211
  77. package/styles/material-dark-lite.scss +1 -16
  78. package/styles/material-dark.css +7 -211
  79. package/styles/material-dark.scss +2 -17
  80. package/styles/material-lite.css +6 -215
  81. package/styles/material-lite.scss +1 -15
  82. package/styles/material.css +6 -215
  83. package/styles/material.scss +2 -16
  84. package/styles/material3-dark-lite.css +7 -358
  85. package/styles/material3-dark-lite.scss +1 -16
  86. package/styles/material3-dark.css +7 -440
  87. package/styles/material3-dark.scss +2 -17
  88. package/styles/material3-lite.css +7 -362
  89. package/styles/material3-lite.scss +1 -16
  90. package/styles/material3.css +7 -446
  91. package/styles/material3.scss +2 -17
  92. package/styles/ribbon/_all.scss +2 -2
  93. package/styles/ribbon/_bds-definition.scss +2 -2
  94. package/styles/ribbon/_bigger.scss +8 -1
  95. package/styles/ribbon/_bootstrap-dark-definition.scss +1 -2
  96. package/styles/ribbon/_bootstrap-definition.scss +2 -2
  97. package/styles/ribbon/_bootstrap4-definition.scss +1 -2
  98. package/styles/ribbon/_bootstrap5-dark-definition.scss +2 -2
  99. package/styles/ribbon/_bootstrap5-definition.scss +2 -2
  100. package/styles/ribbon/_bootstrap5.3-definition.scss +3 -3
  101. package/styles/ribbon/_fabric-dark-definition.scss +2 -2
  102. package/styles/ribbon/_fabric-definition.scss +2 -2
  103. package/styles/ribbon/_fluent-dark-definition.scss +2 -2
  104. package/styles/ribbon/_fluent-definition.scss +2 -2
  105. package/styles/ribbon/_fluent2-definition.scss +2 -2
  106. package/styles/ribbon/_highcontrast-definition.scss +2 -2
  107. package/styles/ribbon/_highcontrast-light-definition.scss +2 -2
  108. package/styles/ribbon/_layout.scss +1 -1
  109. package/styles/ribbon/_material-dark-definition.scss +2 -2
  110. package/styles/ribbon/_material-definition.scss +2 -2
  111. package/styles/ribbon/_material3-dark-definition.scss +2 -2
  112. package/styles/ribbon/_material3-definition.scss +2 -2
  113. package/styles/ribbon/_tailwind-dark-definition.scss +2 -2
  114. package/styles/ribbon/_tailwind-definition.scss +2 -2
  115. package/styles/ribbon/_tailwind3-definition.scss +2 -2
  116. package/styles/ribbon/_theme.scss +1 -1
  117. package/styles/ribbon/_variables.scss +2 -0
  118. package/styles/ribbon/bds.css +20 -316
  119. package/styles/ribbon/bds.scss +2 -17
  120. package/styles/ribbon/bootstrap-dark.css +6 -74
  121. package/styles/ribbon/bootstrap-dark.scss +2 -17
  122. package/styles/ribbon/bootstrap.css +6 -76
  123. package/styles/ribbon/bootstrap.scss +2 -17
  124. package/styles/ribbon/bootstrap4.css +7 -127
  125. package/styles/ribbon/bootstrap4.scss +2 -17
  126. package/styles/ribbon/bootstrap5-dark.css +11 -149
  127. package/styles/ribbon/bootstrap5-dark.scss +2 -17
  128. package/styles/ribbon/bootstrap5.3.css +13 -403
  129. package/styles/ribbon/bootstrap5.3.scss +2 -17
  130. package/styles/ribbon/bootstrap5.css +12 -150
  131. package/styles/ribbon/bootstrap5.scss +2 -17
  132. package/styles/ribbon/fabric-dark.css +6 -50
  133. package/styles/ribbon/fabric-dark.scss +2 -17
  134. package/styles/ribbon/fabric.css +6 -51
  135. package/styles/ribbon/fabric.scss +2 -17
  136. package/styles/ribbon/fluent-dark.css +6 -141
  137. package/styles/ribbon/fluent-dark.scss +2 -17
  138. package/styles/ribbon/fluent.css +6 -141
  139. package/styles/ribbon/fluent.scss +2 -17
  140. package/styles/ribbon/fluent2.css +7 -476
  141. package/styles/ribbon/fluent2.scss +2 -17
  142. package/styles/ribbon/highcontrast-light.css +6 -71
  143. package/styles/ribbon/highcontrast-light.scss +2 -17
  144. package/styles/ribbon/highcontrast.css +6 -72
  145. package/styles/ribbon/highcontrast.scss +2 -17
  146. package/styles/ribbon/icons/_bds.scss +1 -1
  147. package/styles/ribbon/icons/_bootstrap-dark.scss +1 -1
  148. package/styles/ribbon/icons/_bootstrap.scss +1 -1
  149. package/styles/ribbon/icons/_bootstrap4.scss +1 -1
  150. package/styles/ribbon/icons/_bootstrap5.3.scss +1 -1
  151. package/styles/ribbon/icons/_bootstrap5.scss +1 -1
  152. package/styles/ribbon/icons/_fabric-dark.scss +1 -1
  153. package/styles/ribbon/icons/_fabric.scss +1 -1
  154. package/styles/ribbon/icons/_fluent.scss +1 -1
  155. package/styles/ribbon/icons/_fluent2.scss +1 -1
  156. package/styles/ribbon/icons/_fusionnew.scss +1 -1
  157. package/styles/ribbon/icons/_highcontrast.scss +1 -1
  158. package/styles/ribbon/icons/_material-dark.scss +1 -1
  159. package/styles/ribbon/icons/_material.scss +1 -1
  160. package/styles/ribbon/icons/_material3.scss +1 -1
  161. package/styles/ribbon/icons/_tailwind-dark.scss +1 -1
  162. package/styles/ribbon/icons/_tailwind.scss +1 -1
  163. package/styles/ribbon/icons/_tailwind3.scss +1 -1
  164. package/styles/ribbon/material-dark.css +7 -211
  165. package/styles/ribbon/material-dark.scss +2 -17
  166. package/styles/ribbon/material.css +6 -215
  167. package/styles/ribbon/material.scss +2 -17
  168. package/styles/ribbon/material3-dark.css +7 -440
  169. package/styles/ribbon/material3-dark.scss +2 -17
  170. package/styles/ribbon/material3.css +7 -446
  171. package/styles/ribbon/material3.scss +2 -17
  172. package/styles/ribbon/tailwind-dark.css +19 -176
  173. package/styles/ribbon/tailwind-dark.scss +2 -17
  174. package/styles/ribbon/tailwind.css +20 -177
  175. package/styles/ribbon/tailwind.scss +2 -17
  176. package/styles/ribbon/tailwind3.css +15 -376
  177. package/styles/ribbon/tailwind3.scss +2 -17
  178. package/styles/tailwind-dark-lite.css +14 -176
  179. package/styles/tailwind-dark-lite.scss +1 -16
  180. package/styles/tailwind-dark.css +19 -176
  181. package/styles/tailwind-dark.scss +2 -17
  182. package/styles/tailwind-lite.css +15 -177
  183. package/styles/tailwind-lite.scss +1 -16
  184. package/styles/tailwind.css +20 -177
  185. package/styles/tailwind.scss +2 -17
  186. package/styles/tailwind3-lite.css +15 -302
  187. package/styles/tailwind3-lite.scss +1 -16
  188. package/styles/tailwind3.css +15 -376
  189. package/styles/tailwind3.scss +2 -17
  190. package/styles/ribbon/_all.bds.scss +0 -2
  191. package/styles/ribbon/_all.bootstrap-dark.scss +0 -2
  192. package/styles/ribbon/_all.bootstrap.scss +0 -2
  193. package/styles/ribbon/_all.bootstrap4.scss +0 -2
  194. package/styles/ribbon/_all.bootstrap5-dark.scss +0 -2
  195. package/styles/ribbon/_all.bootstrap5.3.scss +0 -2
  196. package/styles/ribbon/_all.bootstrap5.scss +0 -2
  197. package/styles/ribbon/_all.fabric-dark.scss +0 -2
  198. package/styles/ribbon/_all.fabric.scss +0 -2
  199. package/styles/ribbon/_all.fluent-dark.scss +0 -2
  200. package/styles/ribbon/_all.fluent.scss +0 -2
  201. package/styles/ribbon/_all.fluent2.scss +0 -2
  202. package/styles/ribbon/_all.highcontrast-light.scss +0 -2
  203. package/styles/ribbon/_all.highcontrast.scss +0 -2
  204. package/styles/ribbon/_all.material-dark.scss +0 -2
  205. package/styles/ribbon/_all.material.scss +0 -2
  206. package/styles/ribbon/_all.material3-dark.scss +0 -2
  207. package/styles/ribbon/_all.material3.scss +0 -2
  208. package/styles/ribbon/_all.tailwind-dark.scss +0 -2
  209. package/styles/ribbon/_all.tailwind.scss +0 -2
  210. package/styles/ribbon/_all.tailwind3.scss +0 -2
  211. package/styles/ribbon/_bigger.bds.scss +0 -3
  212. package/styles/ribbon/_bigger.bootstrap-dark.scss +0 -3
  213. package/styles/ribbon/_bigger.bootstrap.scss +0 -3
  214. package/styles/ribbon/_bigger.bootstrap4.scss +0 -3
  215. package/styles/ribbon/_bigger.bootstrap5-dark.scss +0 -3
  216. package/styles/ribbon/_bigger.bootstrap5.3.scss +0 -3
  217. package/styles/ribbon/_bigger.bootstrap5.scss +0 -3
  218. package/styles/ribbon/_bigger.fabric-dark.scss +0 -3
  219. package/styles/ribbon/_bigger.fabric.scss +0 -3
  220. package/styles/ribbon/_bigger.fluent-dark.scss +0 -3
  221. package/styles/ribbon/_bigger.fluent.scss +0 -3
  222. package/styles/ribbon/_bigger.fluent2.scss +0 -3
  223. package/styles/ribbon/_bigger.highcontrast-light.scss +0 -3
  224. package/styles/ribbon/_bigger.highcontrast.scss +0 -3
  225. package/styles/ribbon/_bigger.material-dark.scss +0 -3
  226. package/styles/ribbon/_bigger.material.scss +0 -3
  227. package/styles/ribbon/_bigger.material3-dark.scss +0 -3
  228. package/styles/ribbon/_bigger.material3.scss +0 -3
  229. package/styles/ribbon/_bigger.tailwind-dark.scss +0 -3
  230. package/styles/ribbon/_bigger.tailwind.scss +0 -3
  231. package/styles/ribbon/_bigger.tailwind3.scss +0 -3
  232. package/styles/ribbon/_layout.bds.scss +0 -3
  233. package/styles/ribbon/_layout.bootstrap-dark.scss +0 -3
  234. package/styles/ribbon/_layout.bootstrap.scss +0 -3
  235. package/styles/ribbon/_layout.bootstrap4.scss +0 -3
  236. package/styles/ribbon/_layout.bootstrap5-dark.scss +0 -3
  237. package/styles/ribbon/_layout.bootstrap5.3.scss +0 -3
  238. package/styles/ribbon/_layout.bootstrap5.scss +0 -3
  239. package/styles/ribbon/_layout.fabric-dark.scss +0 -3
  240. package/styles/ribbon/_layout.fabric.scss +0 -3
  241. package/styles/ribbon/_layout.fluent-dark.scss +0 -3
  242. package/styles/ribbon/_layout.fluent.scss +0 -3
  243. package/styles/ribbon/_layout.fluent2.scss +0 -3
  244. package/styles/ribbon/_layout.highcontrast-light.scss +0 -3
  245. package/styles/ribbon/_layout.highcontrast.scss +0 -3
  246. package/styles/ribbon/_layout.material-dark.scss +0 -3
  247. package/styles/ribbon/_layout.material.scss +0 -3
  248. package/styles/ribbon/_layout.material3-dark.scss +0 -3
  249. package/styles/ribbon/_layout.material3.scss +0 -3
  250. package/styles/ribbon/_layout.tailwind-dark.scss +0 -3
  251. package/styles/ribbon/_layout.tailwind.scss +0 -3
  252. package/styles/ribbon/_layout.tailwind3.scss +0 -3
  253. package/styles/ribbon/_theme-variables.bds.scss +0 -1
  254. package/styles/ribbon/_theme-variables.bootstrap-dark.scss +0 -1
  255. package/styles/ribbon/_theme-variables.bootstrap.scss +0 -1
  256. package/styles/ribbon/_theme-variables.bootstrap4.scss +0 -1
  257. package/styles/ribbon/_theme-variables.bootstrap5-dark.scss +0 -1
  258. package/styles/ribbon/_theme-variables.bootstrap5.3.scss +0 -1
  259. package/styles/ribbon/_theme-variables.bootstrap5.scss +0 -1
  260. package/styles/ribbon/_theme-variables.fabric-dark.scss +0 -1
  261. package/styles/ribbon/_theme-variables.fabric.scss +0 -1
  262. package/styles/ribbon/_theme-variables.fluent-dark.scss +0 -1
  263. package/styles/ribbon/_theme-variables.fluent.scss +0 -1
  264. package/styles/ribbon/_theme-variables.fluent2.scss +0 -1
  265. package/styles/ribbon/_theme-variables.highcontrast-light.scss +0 -1
  266. package/styles/ribbon/_theme-variables.highcontrast.scss +0 -1
  267. package/styles/ribbon/_theme-variables.material-dark.scss +0 -1
  268. package/styles/ribbon/_theme-variables.material.scss +0 -1
  269. package/styles/ribbon/_theme-variables.material3-dark.scss +0 -1
  270. package/styles/ribbon/_theme-variables.material3.scss +0 -1
  271. package/styles/ribbon/_theme-variables.tailwind-dark.scss +0 -1
  272. package/styles/ribbon/_theme-variables.tailwind.scss +0 -1
  273. package/styles/ribbon/_theme-variables.tailwind3.scss +0 -1
  274. package/styles/ribbon/_theme.bds.scss +0 -4
  275. package/styles/ribbon/_theme.bootstrap-dark.scss +0 -4
  276. package/styles/ribbon/_theme.bootstrap.scss +0 -4
  277. package/styles/ribbon/_theme.bootstrap4.scss +0 -4
  278. package/styles/ribbon/_theme.bootstrap5-dark.scss +0 -4
  279. package/styles/ribbon/_theme.bootstrap5.3.scss +0 -4
  280. package/styles/ribbon/_theme.bootstrap5.scss +0 -4
  281. package/styles/ribbon/_theme.fabric-dark.scss +0 -4
  282. package/styles/ribbon/_theme.fabric.scss +0 -4
  283. package/styles/ribbon/_theme.fluent-dark.scss +0 -4
  284. package/styles/ribbon/_theme.fluent.scss +0 -4
  285. package/styles/ribbon/_theme.fluent2.scss +0 -4
  286. package/styles/ribbon/_theme.highcontrast-light.scss +0 -4
  287. package/styles/ribbon/_theme.highcontrast.scss +0 -4
  288. package/styles/ribbon/_theme.material-dark.scss +0 -4
  289. package/styles/ribbon/_theme.material.scss +0 -4
  290. package/styles/ribbon/_theme.material3-dark.scss +0 -4
  291. package/styles/ribbon/_theme.material3.scss +0 -4
  292. package/styles/ribbon/_theme.tailwind-dark.scss +0 -4
  293. package/styles/ribbon/_theme.tailwind.scss +0 -4
  294. package/styles/ribbon/_theme.tailwind3.scss +0 -4
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.2.10
3
+ * version : 34.1.29
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-ribbon",
3
- "version": "33.2.10",
3
+ "version": "34.1.29",
4
4
  "description": "Essential JS 2 Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -9,13 +9,13 @@
9
9
  "es2015": "./dist/es6/ej2-ribbon.es5.js",
10
10
  "typings": "index.d.ts",
11
11
  "dependencies": {
12
- "@syncfusion/ej2-base": "~33.2.3",
13
- "@syncfusion/ej2-buttons": "~33.2.5",
14
- "@syncfusion/ej2-dropdowns": "~33.2.10",
15
- "@syncfusion/ej2-lists": "~33.2.3",
16
- "@syncfusion/ej2-navigations": "~33.2.10",
17
- "@syncfusion/ej2-popups": "~33.2.7",
18
- "@syncfusion/ej2-splitbuttons": "~33.2.6"
12
+ "@syncfusion/ej2-base": "~34.1.29",
13
+ "@syncfusion/ej2-buttons": "~34.1.29",
14
+ "@syncfusion/ej2-dropdowns": "~34.1.29",
15
+ "@syncfusion/ej2-lists": "~34.1.29",
16
+ "@syncfusion/ej2-navigations": "~34.1.29",
17
+ "@syncfusion/ej2-popups": "~34.1.29",
18
+ "@syncfusion/ej2-splitbuttons": "~34.1.29"
19
19
  },
20
20
  "devDependencies": {},
21
21
  "keywords": [
@@ -1,4 +1,4 @@
1
- import { addClass, append, Event, Collection, Complex, Component, EmitType, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEventArgs, KeyboardEvents } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, isNullOrUndefined, isUndefined, ModuleDeclaration, NotifyPropertyChanges, Property, remove, removeClass, L10n } from '@syncfusion/ej2-base';import { Tab, TabAnimationSettings, TabAnimationSettingsModel, TabItemModel, SelectEventArgs, SelectingEventArgs, HScroll, Toolbar } from '@syncfusion/ej2-navigations';import { RibbonTab, RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettings, FileMenuSettingsModel, BackStageMenu, BackStageMenuModel, RibbonItem, RibbonCollection, RibbonGroup, RibbonContextualTabSettingsModel, RibbonContextualTabSettings } from '../models/index';import { commonProperties, DisplayMode, ExpandCollapseEventArgs, itemProps, LauncherClickEventArgs, LayoutSwitchedEventArgs, OverflowPopupEventArgs, ribbonItemPropsList, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';import { ItemOrientation, RibbonItemSize, RibbonItemType, KeyTipDataType } from './interface';import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';import { destroyControl, getCollection, getGroup, getIndex, getItem, getItemElement, updateCommonProperty, updateControlDisabled, isTooltipPresent, getTemplateFunction, createTooltip, destroyTooltip, updateTooltipProp } from './utils';import * as constants from './constant';import { RibbonFileMenu, RibbonBackstage, RibbonKeyTip } from '../modules/index';import { RibbonTooltipModel } from '../models/ribbon-tooltip-model';import { Popup } from '@syncfusion/ej2-popups';import { BeforeOpenCloseMenuEventArgs, DropDownButton, SplitButton } from '@syncfusion/ej2-splitbuttons';import { ColorPicker } from '@syncfusion/ej2-inputs';import { CheckBox } from '@syncfusion/ej2-buttons';import { RibbonContextualTab } from '../modules/ribbon-contextualtab';import { RibbonGallery } from '../items/ribbon-gallery';
1
+ import { addClass, append, Event, Collection, Complex, Component, EmitType, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEventArgs, KeyboardEvents } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, isNullOrUndefined, isUndefined, L10n, ModuleDeclaration, NotifyPropertyChanges, Property, remove, removeClass } from '@syncfusion/ej2-base';import { Tab, TabAnimationSettings, TabAnimationSettingsModel, TabItemModel, SelectEventArgs, SelectingEventArgs, HScroll, Toolbar } from '@syncfusion/ej2-navigations';import { RibbonTab, RibbonTabModel, RibbonGroupModel, RibbonCollectionModel, RibbonItemModel, FileMenuSettings, FileMenuSettingsModel, BackStageMenu, BackStageMenuModel, RibbonItem, RibbonCollection, RibbonGroup, RibbonContextualTabSettingsModel, RibbonContextualTabSettings } from '../models/index';import { commonProperties, DisplayMode, ExpandCollapseEventArgs, itemProps, LauncherClickEventArgs, LayoutSwitchedEventArgs, OverflowPopupEventArgs, ribbonItemPropsList, RibbonLayout, ribbonTooltipData, TabSelectedEventArgs, TabSelectingEventArgs } from './interface';import { ItemOrientation, RibbonItemSize, RibbonItemType, KeyTipDataType } from './interface';import { RibbonButton, RibbonComboBox, RibbonCheckBox, RibbonDropDown, RibbonColorPicker, RibbonSplitButton, RibbonGroupButton } from '../items/index';import { destroyControl, getCollection, getGroup, getIndex, getItem, getItemElement, updateCommonProperty, updateControlDisabled, isTooltipPresent, getTemplateFunction, createTooltip, destroyTooltip, updateTooltipProp } from './utils';import * as constants from './constant';import { RibbonFileMenu, RibbonBackstage, RibbonKeyTip } from '../modules/index';import { RibbonTooltipModel } from '../models/ribbon-tooltip-model';import { Popup } from '@syncfusion/ej2-popups';import { BeforeOpenCloseMenuEventArgs, DropDownButton, SplitButton } from '@syncfusion/ej2-splitbuttons';import { ColorPicker } from '@syncfusion/ej2-inputs';import { CheckBox } from '@syncfusion/ej2-buttons';import { RibbonContextualTab } from '../modules/ribbon-contextualtab';import { RibbonGallery } from '../items/ribbon-gallery';
2
2
  import {ComponentModel} from '@syncfusion/ej2-base';
3
3
 
4
4
  /**
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { addClass, append, Event, Collection, Complex, Component, EventHandler, formatUnit, getInstance, getComponent, getUniqueID, closest, KeyboardEvents } from '@syncfusion/ej2-base';
21
- import { isNullOrUndefined, isUndefined, NotifyPropertyChanges, Property, remove, removeClass, L10n } from '@syncfusion/ej2-base';
21
+ import { isNullOrUndefined, isUndefined, L10n, NotifyPropertyChanges, Property, remove, removeClass } from '@syncfusion/ej2-base';
22
22
  import { Tab, TabAnimationSettings, HScroll, Toolbar } from '@syncfusion/ej2-navigations';
23
23
  import { RibbonTab, FileMenuSettings, BackStageMenu, RibbonContextualTabSettings } from '../models/index';
24
24
  import { DisplayMode, RibbonLayout } from './interface';
@@ -4853,7 +4853,6 @@ var Ribbon = /** @class */ (function (_super) {
4853
4853
  _super.prototype.destroy.call(this);
4854
4854
  this.tabObj.destroy();
4855
4855
  this.tabObj = undefined;
4856
- this.l10n = null;
4857
4856
  this.initialPropsData = {};
4858
4857
  this.hiddenGroups = [];
4859
4858
  this.hiddenElements = {};
@@ -273,6 +273,7 @@ export function createTooltip(element, ribbon) {
273
273
  var ribbonTooltip = new Tooltip({
274
274
  target: '.' + constants.RIBBON_TOOLTIP_TARGET,
275
275
  beforeRender: beforeTooltipRender.bind(this),
276
+ beforeOpen: beforeTooltipOpen.bind(this),
276
277
  windowCollision: true
277
278
  });
278
279
  ribbonTooltip.appendTo(element);
@@ -284,6 +285,13 @@ export function createTooltip(element, ribbon) {
284
285
  function beforeTooltipRender(args) {
285
286
  setToolTipContent(args, ribbonTooltip, ribbon.tooltipData);
286
287
  }
288
+ function beforeTooltipOpen(args) {
289
+ var target = ribbon.getAppendToElement();
290
+ var tooltipPopup = args.element;
291
+ if (tooltipPopup && !target.contains(tooltipPopup)) {
292
+ target.appendChild(tooltipPopup);
293
+ }
294
+ }
287
295
  }
288
296
  /**
289
297
  * Destroys tooltip
@@ -50,7 +50,16 @@ var RibbonColorPicker = /** @class */ (function () {
50
50
  colorPickerSettings.beforeClose.call(_this);
51
51
  }
52
52
  },
53
- beforeOpen: colorPickerSettings.beforeOpen,
53
+ beforeOpen: function (e) {
54
+ var target = _this.parent.getAppendToElement();
55
+ var splitBtn = colorPicker['splitBtn'];
56
+ if (splitBtn && splitBtn.dropDown && !target.contains(splitBtn.dropDown.element)) {
57
+ target.appendChild(splitBtn.dropDown.element);
58
+ }
59
+ if (colorPickerSettings.beforeOpen) {
60
+ colorPickerSettings.beforeOpen.call(_this, e);
61
+ }
62
+ },
54
63
  beforeTileRender: colorPickerSettings.beforeTileRender,
55
64
  created: colorPickerSettings.created,
56
65
  change: function (e) {
@@ -119,6 +128,16 @@ var RibbonColorPicker = /** @class */ (function () {
119
128
  item.colorPickerSettings.beforeClose.call(_this);
120
129
  }
121
130
  };
131
+ colorPickerObj.beforeOpen = function (e) {
132
+ var target = _this.parent.getAppendToElement();
133
+ var splitBtn = colorPickerObj['splitBtn'];
134
+ if (splitBtn && splitBtn.dropDown && !target.contains(splitBtn.dropDown.element)) {
135
+ target.appendChild(splitBtn.dropDown.element);
136
+ }
137
+ if (item.colorPickerSettings.beforeOpen) {
138
+ item.colorPickerSettings.beforeOpen.call(_this, e);
139
+ }
140
+ };
122
141
  splitBtn.close = function () {
123
142
  if (target && !target.closest('.e-ribbon-group-overflow-ddb')) {
124
143
  if (overflowButton.element.classList.contains('e-active')) {
@@ -63,7 +63,21 @@ var RibbonComboBox = /** @class */ (function () {
63
63
  text: comboBoxSettings.text,
64
64
  value: comboBoxSettings.value,
65
65
  width: comboBoxSettings.width,
66
- beforeOpen: comboBoxSettings.beforeOpen,
66
+ beforeOpen: function (e) {
67
+ requestAnimationFrame(function () {
68
+ if (!_this.parent) {
69
+ return;
70
+ }
71
+ var target = _this.parent.getAppendToElement();
72
+ var popupEle = document.getElementById(inputEle.id + '_popup');
73
+ if (popupEle && !target.contains(popupEle)) {
74
+ target.appendChild(popupEle);
75
+ }
76
+ });
77
+ if (comboBoxSettings.beforeOpen) {
78
+ comboBoxSettings.beforeOpen.call(_this, e);
79
+ }
80
+ },
67
81
  open: comboBoxSettings.open,
68
82
  htmlAttributes: comboBoxSettings.htmlAttributes,
69
83
  close: function (e) {
@@ -100,6 +114,21 @@ var RibbonComboBox = /** @class */ (function () {
100
114
  var inputEle = itemEle.querySelector('#' + item.id);
101
115
  inputEle.setAttribute('data-control', item.type.toString());
102
116
  var comboBoxObj = getComponent(inputEle, ComboBox);
117
+ comboBoxObj.beforeOpen = function (e) {
118
+ requestAnimationFrame(function () {
119
+ if (!_this.parent) {
120
+ return;
121
+ }
122
+ var target = _this.parent.getAppendToElement();
123
+ var popupEle = document.getElementById(item.id + '_popup');
124
+ if (popupEle && !target.contains(popupEle)) {
125
+ target.appendChild(popupEle);
126
+ }
127
+ });
128
+ if (item.comboBoxSettings.beforeOpen) {
129
+ item.comboBoxSettings.beforeOpen.call(_this, e);
130
+ }
131
+ };
103
132
  comboBoxObj.setProperties({ cssClass: comboBoxObj.cssClass + SPACE + RIBBON_POPUP_CONTROL });
104
133
  comboBoxObj.close = function (e) {
105
134
  var target = e.event ? e.event.target : null;
@@ -428,7 +428,8 @@ var RibbonGallery = /** @class */ (function () {
428
428
  className: 'e-ribbon-gallery-popup',
429
429
  id: item.id + '_galleryPopup'
430
430
  });
431
- document.body.append(gallerypopupElement);
431
+ var appendTarget = this.parent.getAppendToElement();
432
+ appendTarget.append(gallerypopupElement);
432
433
  var galleryPopup = new Popup(gallerypopupElement, {
433
434
  relateTo: buttonEle,
434
435
  content: popupContainer,
@@ -533,13 +534,20 @@ var RibbonGallery = /** @class */ (function () {
533
534
  var popupEle = document.querySelector('#' + item.id + '_galleryPopup');
534
535
  var popup_1 = getComponent(popupEle, Popup);
535
536
  var popupContainerEle_1 = document.querySelector('#' + item.id + '_galleryPopup .e-ribbon-popup-container');
536
- var dropdown = new DropDownButton({
537
+ var dropdown_1 = new DropDownButton({
537
538
  iconCss: iconCss,
538
539
  content: content,
539
540
  target: popupContainerEle_1,
540
541
  enableRtl: this.parent.enableRtl,
541
542
  cssClass: 'e-ribbon-gallery-dropdown',
542
543
  disabled: item.disabled,
544
+ beforeOpen: function () {
545
+ var target = _this.parent.getAppendToElement();
546
+ var dropDownPopup = dropdown_1 && dropdown_1.dropDown ? dropdown_1.dropDown.element : null;
547
+ if (dropDownPopup && !target.contains(dropDownPopup)) {
548
+ target.appendChild(dropDownPopup);
549
+ }
550
+ },
543
551
  open: function () {
544
552
  var popupContainerItems = popupContainerEle_1.querySelectorAll('.e-ribbon-gallery-container');
545
553
  _this.setWrapperStyle(popup_1, popupContainerItems);
@@ -556,11 +564,11 @@ var RibbonGallery = /** @class */ (function () {
556
564
  }
557
565
  }, buttonEle_1);
558
566
  if (popup_1.width !== 'auto') {
559
- dropdown.dropDown.width = formatUnit(popup_1.width);
567
+ dropdown_1.dropDown.width = formatUnit(popup_1.width);
560
568
  }
561
569
  if (popup_1.height !== 'auto') {
562
- dropdown.dropDown.height = formatUnit(popup_1.height);
563
- dropdown.dropDown.element.style.height = (popup_1.height).toString();
570
+ dropdown_1.dropDown.height = formatUnit(popup_1.height);
571
+ dropdown_1.dropDown.element.style.height = (popup_1.height).toString();
564
572
  }
565
573
  }
566
574
  };
@@ -664,6 +672,10 @@ var RibbonGallery = /** @class */ (function () {
664
672
  if (isCancelled) {
665
673
  return;
666
674
  }
675
+ var target = this.parent.getAppendToElement();
676
+ if (!target.contains(popupEle)) {
677
+ target.appendChild(popupEle);
678
+ }
667
679
  popup.show();
668
680
  this.checkCollision(popup, popupEle);
669
681
  var buttonEle = document.querySelector('#' + itemID + '_popupButton');
@@ -122,15 +122,21 @@ var RibbonGroupButton = /** @class */ (function () {
122
122
  }
123
123
  count++;
124
124
  }
125
- var dropdown = new DropDownButton({
125
+ var dropdown_1 = new DropDownButton({
126
126
  iconCss: dropdownIcon,
127
127
  target: btnContainerEle,
128
128
  enableRtl: this.parent.enableRtl,
129
129
  cssClass: 'e-ribbon-dropdown-group-button',
130
- disabled: item.disabled
130
+ disabled: item.disabled,
131
+ beforeOpen: function () {
132
+ var target = _this.parent.getAppendToElement();
133
+ if (dropdown_1 && dropdown_1.dropDown && !target.contains(dropdown_1.dropDown.element)) {
134
+ target.appendChild(dropdown_1.dropDown.element);
135
+ }
136
+ }
131
137
  }, buttonEle);
132
138
  if (groupBtnSettings.header) {
133
- var dropDownPopup = dropdown.dropDown;
139
+ var dropDownPopup = dropdown_1.dropDown;
134
140
  this.addGroupButtonHeader(item.id, groupBtnSettings, dropDownPopup.element);
135
141
  }
136
142
  buttonEle.onclick = buttonEle.onkeydown = function () {
@@ -298,15 +304,21 @@ var RibbonGroupButton = /** @class */ (function () {
298
304
  }
299
305
  itemsCount++;
300
306
  }
301
- var dropdown = new DropDownButton({
307
+ var dropdown_2 = new DropDownButton({
302
308
  iconCss: dropdownIcon,
303
309
  target: containerEle,
304
310
  enableRtl: this.parent.enableRtl,
305
311
  cssClass: 'e-ribbon-dropdown-group-button',
306
- disabled: item.disabled
312
+ disabled: item.disabled,
313
+ beforeOpen: function () {
314
+ var target = _this.parent.getAppendToElement();
315
+ if (dropdown_2 && dropdown_2.dropDown && !target.contains(dropdown_2.dropDown.element)) {
316
+ target.appendChild(dropdown_2.dropDown.element);
317
+ }
318
+ }
307
319
  }, buttonEle);
308
320
  if (groupBtnSettings.header) {
309
- var dropDownPopup = dropdown.dropDown;
321
+ var dropDownPopup = dropdown_2.dropDown;
310
322
  this.addGroupButtonHeader(item.id, groupBtnSettings, dropDownPopup.element);
311
323
  }
312
324
  buttonEle.onclick = buttonEle.onkeydown = function () {
@@ -130,9 +130,15 @@ var RibbonSplitButton = /** @class */ (function () {
130
130
  }
131
131
  };
132
132
  var target;
133
- splitbutton.beforeOpen = function (e) {
133
+ splitbutton.beforeOpen = function () {
134
+ var splitBtn = getComponent(splitButtonEle, SplitButton);
135
+ var popupEl = splitBtn && splitBtn.dropDown ? splitBtn.dropDown.element : null;
136
+ var target = _this.parent.getAppendToElement();
137
+ if (popupEl && !target.contains(popupEl)) {
138
+ target.appendChild(popupEl);
139
+ }
134
140
  if (item.splitButtonSettings.beforeOpen) {
135
- item.splitButtonSettings.beforeOpen.call(_this, e);
141
+ item.splitButtonSettings.beforeOpen.call(_this);
136
142
  }
137
143
  };
138
144
  splitbutton.beforeClose = function (e) {
@@ -76,6 +76,13 @@ var RibbonFileMenu = /** @class */ (function () {
76
76
  if (!isOpen && args.event && args.event.target.closest('.e-ribbon-menu')) {
77
77
  args.cancel = true;
78
78
  }
79
+ if (isOpen && this.fileMenuDDB && this.fileMenuDDB.dropDown) {
80
+ var target = this.parent.getAppendToElement();
81
+ var popupEl = this.fileMenuDDB.dropDown.element;
82
+ if (popupEl && !target.contains(popupEl)) {
83
+ target.appendChild(popupEl);
84
+ }
85
+ }
79
86
  var event = isOpen ? this.parent.fileMenu.beforeOpen :
80
87
  this.parent.fileMenu.beforeClose;
81
88
  if (event) {
@@ -137,6 +144,13 @@ var RibbonFileMenu = /** @class */ (function () {
137
144
  }, this);
138
145
  };
139
146
  RibbonFileMenu.prototype.menuBeforeEvent = function (isOpen, args) {
147
+ if (isOpen) {
148
+ var target = this.parent.getAppendToElement();
149
+ var popup = args.element && args.element.closest('.e-popup');
150
+ if (popup && !target.contains(popup)) {
151
+ target.appendChild(popup);
152
+ }
153
+ }
140
154
  var event = isOpen ? this.parent.fileMenu.beforeOpen :
141
155
  this.parent.fileMenu.beforeClose;
142
156
  if (event) {