You are here

gridstack.libraries.yml in GridStack 8.2

Same filename and directory in other branches
  1. 8 gridstack.libraries.yml

File

gridstack.libraries.yml
View source
  1. # Front-end and Admin UI.
  2. gridstack:
  3. remote: https://github.com/gridstack/gridstack.js
  4. version: 0.2.x
  5. license:
  6. name: MIT
  7. url: https://github.com/gridstack/gridstack.js/blob/develop/LICENSE
  8. gpl-compatible: true
  9. js:
  10. /libraries/gridstack/dist/gridstack.min.js: { minified: true, weight: -2 }
  11. dependencies:
  12. - core/jquery
  13. - core/underscore
  14. # The minimum CSS rules to support js-driven layouts, including Outlayer
  15. # (Masonry/Packery/Isotope filterable) layouts, excluding native Grid.
  16. static:
  17. css:
  18. layout:
  19. css/gridstack.static.css: {}
  20. # GridStack JS specific rules. Not needed by native CSS Grid.
  21. library:
  22. css:
  23. layout:
  24. css/gridstack.library.css: {}
  25. dependencies:
  26. - gridstack/static
  27. # Admin UI only.
  28. # @todo removed jquery API in v1.0.0.
  29. ui:
  30. css:
  31. theme:
  32. css/admin/gridstack.admin.ui.css: {}
  33. dependencies:
  34. - core/drupal.debounce
  35. - core/jquery
  36. # @todo remove anything jquery.ui as per 3079748, 3067969
  37. # @see https://github.com/gridstack/gridstack.js/issues/1084
  38. - core/jquery.ui
  39. - core/jquery.ui.draggable
  40. # @todo removed from D9 - core/jquery.ui.droppable
  41. - core/jquery.ui.resizable
  42. - gridstack/library
  43. # Admin UI only. Since v0.5.4, jquery.ui is included with gridstack.all.js.
  44. # Meaning cannot use gridstack.all.js since jQuery UI might be already loaded
  45. # on the page by core or other contrib modules.
  46. # @todo remove anything jquery.ui as per 3079748, 3067969
  47. # @see https://github.com/gridstack/gridstack.js/issues/1084
  48. all:
  49. js:
  50. /libraries/gridstack/dist/gridstack.jQueryUI.min.js: { minified: true, weight: -2 }
  51. dependencies:
  52. - gridstack/ui
  53. - gridstack/gridstack
  54. # Can be enabled via Use non-minified GridStack library option.
  55. dev:
  56. js:
  57. /libraries/gridstack/dist/gridstack.js: { weight: -2 }
  58. # @todo remove anything jquery.ui as per 3079748, 3067969
  59. # @see https://github.com/gridstack/gridstack.js/issues/1084
  60. /libraries/gridstack/dist/gridstack.jQueryUI.js: { weight: -2 }
  61. dependencies:
  62. - gridstack/ui
  63. # Admin UI only.
  64. backbone:
  65. js:
  66. js/admin/gridstack.admin.base.min.js: { minified: true, weight: -0.009 }
  67. js/admin/gridstack.admin.backbone.model.min.js: { minified: true, weight: -0.008 }
  68. js/admin/gridstack.admin.backbone.view.min.js: { minified: true, weight: -0.007 }
  69. js/admin/gridstack.admin.backbone.crud.min.js: { minified: true, weight: -0.006 }
  70. js/admin/gridstack.admin.backbone.min.js: { minified: true, weight: -0.005 }
  71. js/admin/gridstack.admin.ui.min.js: { minified: true, weight: -0.004 }
  72. dependencies:
  73. - core/jquery
  74. - core/backbone
  75. - blazy/dblazy
  76. # Admin UI only with drag-and-drop layout creator.
  77. admin:
  78. js:
  79. js/admin/gridstack.admin.min.js: { minified: true, weight: -0.003 }
  80. dependencies:
  81. - gridstack/backbone
  82. - gridstack/admin_base
  83. # Admin UI only.
  84. admin_base:
  85. css:
  86. theme:
  87. css/admin/gridstack.admin.css: {}
  88. # Layout Builder integration.
  89. admin_variant:
  90. css:
  91. theme:
  92. css/admin/gridstack.admin.variant.css: {}
  93. admin_modal:
  94. js:
  95. js/admin/gridstack.admin.modal.min.js: { minified: true }
  96. css:
  97. theme:
  98. css/admin/gridstack.admin.modal.css: {}
  99. admin_layout:
  100. js:
  101. js/admin/gridstack.admin.layout.min.js: { minified: true }
  102. css:
  103. theme:
  104. css/admin/gridstack.admin.layout.css: {}
  105. dependencies:
  106. - core/drupal.debounce
  107. - gridstack/debug
  108. - gridstack/gridstyle
  109. - gridstack/admin_modal
  110. - gridstack/admin_variant
  111. # Basic layout fixes to avoid broken boxes when containing blocks.
  112. layout:
  113. css:
  114. layout:
  115. css/gridstack.layout.css: {}
  116. ratio:
  117. js:
  118. # Before blazy.load.js.
  119. js/components/gridstack.ratio.min.js: { minified: true, weight: -1.75 }
  120. css:
  121. component:
  122. css/components/gridstack.ratio.css: {}
  123. theme:
  124. css/gridstack.css: {}
  125. dependencies:
  126. - blazy/base
  127. # The background utilities.
  128. stylizer:
  129. css:
  130. component:
  131. css/components/gridstack.stylizer.css: {}
  132. dependencies:
  133. - gridstack/ratio
  134. parallax:
  135. js:
  136. js/components/gridstack.parallax.min.js: { minified: true }
  137. css:
  138. component:
  139. css/components/gridstack.parallax.css: {}
  140. dependencies:
  141. - core/drupal.debounce
  142. - blazy/bio
  143. - gridstack/stylizer
  144. # Front-end (js|native) layouts.
  145. # This is the customized gridstack CSS rules utilities.
  146. gridstyle:
  147. js:
  148. js/components/gridstack.style.min.js: { minified: true, weight: -0.011 }
  149. dependencies:
  150. - blazy/dblazy
  151. # This is the customized gridstack without drag and drop as a replacement.
  152. gridstatic:
  153. js:
  154. js/gridstack.static.min.js: { minified: true, weight: -0.010 }
  155. dependencies:
  156. - core/drupal.debounce
  157. - gridstack/gridstyle
  158. base:
  159. js:
  160. js/gridstack.base.min.js: { minified: true, weight: -0.005 }
  161. css:
  162. component:
  163. css/components/gridstack.sizer.css: {}
  164. theme:
  165. css/gridstack.theme.css: {}
  166. dependencies:
  167. - core/drupal.debounce
  168. - blazy/load
  169. - gridstack/ratio
  170. # Required by GridStack JS and native CSS Grid to make it responsive.
  171. fe:
  172. js:
  173. js/gridstack.fe.min.js: { minified: true, weight: -0.003 }
  174. dependencies:
  175. - gridstack/base
  176. # Native CSS Grid won't load GridStack JS, yet uses own JS for responsiveness.
  177. native:
  178. js:
  179. js/gridstack.native.min.js: { minified: true, weight: -0.002 }
  180. css:
  181. theme:
  182. css/gridstack.native.css: {}
  183. dependencies:
  184. - gridstack/fe
  185. # Front-end (js-driven), not loaded when using native CSS Grid.
  186. load:
  187. js:
  188. js/gridstack.load.min.js: { minified: true, weight: -0.002 }
  189. dependencies:
  190. # - gridstack/gridstack
  191. - gridstack/library
  192. - gridstack/fe
  193. skin:
  194. css:
  195. theme:
  196. css/gridstack.skin.css: {}
  197. debug:
  198. css:
  199. layout:
  200. css/admin/gridstack.debug.css: {}