adapt-authoring-ui 0.0.1

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 (414) hide show
  1. package/.eslintignore +2 -0
  2. package/.eslintrc +14 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.yml +55 -0
  4. package/.github/ISSUE_TEMPLATE/config.yml +1 -0
  5. package/.github/ISSUE_TEMPLATE/feature_request.yml +22 -0
  6. package/.github/dependabot.yml +11 -0
  7. package/.github/pull_request_template.md +25 -0
  8. package/.github/workflows/labelled_prs.yml +16 -0
  9. package/.github/workflows/new.yml +19 -0
  10. package/adapt-authoring.json +11 -0
  11. package/app/core/app.js +43 -0
  12. package/app/core/assets/adapt-learning-logo-outline.png +0 -0
  13. package/app/core/assets/adapt-learning-logo-white.png +0 -0
  14. package/app/core/assets/ajax-loader.gif +0 -0
  15. package/app/core/assets/favicon.png +0 -0
  16. package/app/core/assets/transparency-light.png +0 -0
  17. package/app/core/browserStorage.js +45 -0
  18. package/app/core/collections/apiCollection.js +74 -0
  19. package/app/core/collections/contentCollection.js +33 -0
  20. package/app/core/collections/contentPluginCollection.js +24 -0
  21. package/app/core/collections/tagsCollection.js +4 -0
  22. package/app/core/constants.js +10 -0
  23. package/app/core/helpers.js +375 -0
  24. package/app/core/index.hbs +192 -0
  25. package/app/core/l10n.js +33 -0
  26. package/app/core/less/_reset.less +43 -0
  27. package/app/core/less/app.less +100 -0
  28. package/app/core/less/buttons.less +268 -0
  29. package/app/core/less/colourLabels.less +14 -0
  30. package/app/core/less/colours.less +132 -0
  31. package/app/core/less/columns.less +190 -0
  32. package/app/core/less/fonts.less +30 -0
  33. package/app/core/less/forms.less +77 -0
  34. package/app/core/less/sharedStyles.less +73 -0
  35. package/app/core/less/tables.less +29 -0
  36. package/app/core/less/tags.less +194 -0
  37. package/app/core/loading.hbs +27 -0
  38. package/app/core/models/articleModel.js +19 -0
  39. package/app/core/models/blockModel.js +25 -0
  40. package/app/core/models/clipboardModel.js +10 -0
  41. package/app/core/models/componentModel.js +18 -0
  42. package/app/core/models/configModel.js +22 -0
  43. package/app/core/models/contentModel.js +26 -0
  44. package/app/core/models/contentObjectModel.js +19 -0
  45. package/app/core/models/contentPluginModel.js +10 -0
  46. package/app/core/models/courseModel.js +24 -0
  47. package/app/core/models/sessionModel.js +86 -0
  48. package/app/core/origin.js +189 -0
  49. package/app/core/router.js +135 -0
  50. package/app/core/views/originView.js +92 -0
  51. package/app/libraries/babel-polyfill.min.js +1 -0
  52. package/app/libraries/backbone-forms-lists.js +669 -0
  53. package/app/libraries/backbone-forms.js +2604 -0
  54. package/app/libraries/backbone.js +1581 -0
  55. package/app/libraries/ckeditor.js +6 -0
  56. package/app/libraries/handlebars.js +4902 -0
  57. package/app/libraries/imageReady.js +2 -0
  58. package/app/libraries/inview.js +140 -0
  59. package/app/libraries/jquery-ui.min.js +6 -0
  60. package/app/libraries/jquery.form.js +1277 -0
  61. package/app/libraries/jquery.js +10346 -0
  62. package/app/libraries/jquery.tagsinput.min.js +1 -0
  63. package/app/libraries/moment.min.js +7 -0
  64. package/app/libraries/polyglot.min.js +2922 -0
  65. package/app/libraries/require.js +36 -0
  66. package/app/libraries/scrollTo.js +11 -0
  67. package/app/libraries/selectize/css/selectize.less +403 -0
  68. package/app/libraries/selectize/js/selectize.js +4500 -0
  69. package/app/libraries/spectrum/spectrum.js +2323 -0
  70. package/app/libraries/spectrum/spectrum.less +507 -0
  71. package/app/libraries/underscore.js +1692 -0
  72. package/app/libraries/velocity.js +4773 -0
  73. package/app/modules/appHeader/assets/top-bar-1080.jpg +0 -0
  74. package/app/modules/appHeader/assets/top-bar-2560.jpg +0 -0
  75. package/app/modules/appHeader/index.js +5 -0
  76. package/app/modules/appHeader/less/appHeader.less +72 -0
  77. package/app/modules/appHeader/templates/appHeader.hbs +17 -0
  78. package/app/modules/appHeader/views/appHeaderView.js +63 -0
  79. package/app/modules/assetManagement/collections/assetCollection.js +16 -0
  80. package/app/modules/assetManagement/index.js +65 -0
  81. package/app/modules/assetManagement/less/asset.less +229 -0
  82. package/app/modules/assetManagement/less/assetManagementModalTags.less +34 -0
  83. package/app/modules/assetManagement/less/assetManagementNew.less +60 -0
  84. package/app/modules/assetManagement/models/assetModel.js +11 -0
  85. package/app/modules/assetManagement/templates/assetManagement.hbs +12 -0
  86. package/app/modules/assetManagement/templates/assetManagementCollection.hbs +2 -0
  87. package/app/modules/assetManagement/templates/assetManagementEditAsset.hbs +9 -0
  88. package/app/modules/assetManagement/templates/assetManagementEditAssetSidebar.hbs +10 -0
  89. package/app/modules/assetManagement/templates/assetManagementListItem.hbs +35 -0
  90. package/app/modules/assetManagement/templates/assetManagementModalAutofill.hbs +1 -0
  91. package/app/modules/assetManagement/templates/assetManagementModalEditAsset.hbs +11 -0
  92. package/app/modules/assetManagement/templates/assetManagementModalFilters.hbs +16 -0
  93. package/app/modules/assetManagement/templates/assetManagementModalTags.hbs +26 -0
  94. package/app/modules/assetManagement/templates/assetManagementPreview.hbs +53 -0
  95. package/app/modules/assetManagement/templates/assetManagementSidebar.hbs +93 -0
  96. package/app/modules/assetManagement/templates/assetPicker.hbs +45 -0
  97. package/app/modules/assetManagement/views/assetManagementCollectionView.js +216 -0
  98. package/app/modules/assetManagement/views/assetManagementEditAssetSidebarView.js +25 -0
  99. package/app/modules/assetManagement/views/assetManagementEditAssetView.js +123 -0
  100. package/app/modules/assetManagement/views/assetManagementItemView.js +68 -0
  101. package/app/modules/assetManagement/views/assetManagementModalAutofillView.js +51 -0
  102. package/app/modules/assetManagement/views/assetManagementModalEditAssetView.js +38 -0
  103. package/app/modules/assetManagement/views/assetManagementModalFiltersView.js +132 -0
  104. package/app/modules/assetManagement/views/assetManagementModalTagsView.js +169 -0
  105. package/app/modules/assetManagement/views/assetManagementModalView.js +62 -0
  106. package/app/modules/assetManagement/views/assetManagementPreviewView.js +69 -0
  107. package/app/modules/assetManagement/views/assetManagementSidebarView.js +126 -0
  108. package/app/modules/assetManagement/views/assetManagementView.js +43 -0
  109. package/app/modules/colorLabel/index.js +48 -0
  110. package/app/modules/colorLabel/less/colorLabels.less +102 -0
  111. package/app/modules/colorLabel/models/colors.js +31 -0
  112. package/app/modules/colorLabel/templates/colorLabelPopUpView.hbs +21 -0
  113. package/app/modules/colorLabel/views/colorLabelPopupView.js +75 -0
  114. package/app/modules/contentHeader/index.js +6 -0
  115. package/app/modules/contentHeader/less/contentHeader.less +152 -0
  116. package/app/modules/contentHeader/less/options.less +51 -0
  117. package/app/modules/contentHeader/templates/actionsButton.hbs +3 -0
  118. package/app/modules/contentHeader/templates/contentHeader.hbs +38 -0
  119. package/app/modules/contentHeader/templates/contentHeaderToggleButton.hbs +11 -0
  120. package/app/modules/contentHeader/templates/filterItem.hbs +23 -0
  121. package/app/modules/contentHeader/templates/options.hbs +14 -0
  122. package/app/modules/contentHeader/templates/partials/part_headerButtonContent.hbs +2 -0
  123. package/app/modules/contentHeader/templates/sortItem.hbs +9 -0
  124. package/app/modules/contentHeader/views/actionsButtonView.js +14 -0
  125. package/app/modules/contentHeader/views/contentHeaderButtonView.js +42 -0
  126. package/app/modules/contentHeader/views/contentHeaderToggleButtonView.js +52 -0
  127. package/app/modules/contentHeader/views/contentHeaderView.js +96 -0
  128. package/app/modules/contentHeader/views/filtersButtonView.js +31 -0
  129. package/app/modules/contentHeader/views/optionsView.js +88 -0
  130. package/app/modules/contentHeader/views/sortsButtonView.js +45 -0
  131. package/app/modules/contentPane/index.js +20 -0
  132. package/app/modules/contentPane/less/contentPane.less +8 -0
  133. package/app/modules/contentPane/templates/contentPane.hbs +2 -0
  134. package/app/modules/contentPane/views/contentPaneView.js +77 -0
  135. package/app/modules/contextMenu/index.js +85 -0
  136. package/app/modules/contextMenu/less/contextMenu.less +54 -0
  137. package/app/modules/contextMenu/templates/contextMenu.hbs +6 -0
  138. package/app/modules/contextMenu/templates/contextMenuItem.hbs +8 -0
  139. package/app/modules/contextMenu/views/contextMenuItemView.js +37 -0
  140. package/app/modules/contextMenu/views/contextMenuView.js +76 -0
  141. package/app/modules/editor/article/index.js +18 -0
  142. package/app/modules/editor/article/templates/editorArticleEdit.hbs +2 -0
  143. package/app/modules/editor/article/templates/editorArticleEditSidebar.hbs +19 -0
  144. package/app/modules/editor/article/views/editorArticleEditSidebarView.js +32 -0
  145. package/app/modules/editor/article/views/editorArticleEditView.js +19 -0
  146. package/app/modules/editor/block/index.js +18 -0
  147. package/app/modules/editor/block/templates/editorBlockEdit.hbs +2 -0
  148. package/app/modules/editor/block/templates/editorBlockEditSidebar.hbs +19 -0
  149. package/app/modules/editor/block/views/editorBlockEditSidebarView.js +28 -0
  150. package/app/modules/editor/block/views/editorBlockEditView.js +19 -0
  151. package/app/modules/editor/component/index.js +22 -0
  152. package/app/modules/editor/component/templates/editorComponentEdit.hbs +2 -0
  153. package/app/modules/editor/component/templates/editorComponentEditSidebar.hbs +19 -0
  154. package/app/modules/editor/component/views/editorComponentEditSidebarView.js +32 -0
  155. package/app/modules/editor/component/views/editorComponentEditView.js +23 -0
  156. package/app/modules/editor/config/index.js +15 -0
  157. package/app/modules/editor/config/templates/editorConfigEdit.hbs +1 -0
  158. package/app/modules/editor/config/templates/editorConfigEditSidebar.hbs +10 -0
  159. package/app/modules/editor/config/views/editorConfigEditSidebarView.js +28 -0
  160. package/app/modules/editor/config/views/editorConfigEditView.js +28 -0
  161. package/app/modules/editor/contentObject/assets/component-icons/icon-accordion.png +0 -0
  162. package/app/modules/editor/contentObject/assets/component-icons/icon-assessment.png +0 -0
  163. package/app/modules/editor/contentObject/assets/component-icons/icon-blank.png +0 -0
  164. package/app/modules/editor/contentObject/assets/component-icons/icon-default.png +0 -0
  165. package/app/modules/editor/contentObject/assets/component-icons/icon-gmcq.png +0 -0
  166. package/app/modules/editor/contentObject/assets/component-icons/icon-graphic.png +0 -0
  167. package/app/modules/editor/contentObject/assets/component-icons/icon-hot-graphic.png +0 -0
  168. package/app/modules/editor/contentObject/assets/component-icons/icon-matching.png +0 -0
  169. package/app/modules/editor/contentObject/assets/component-icons/icon-mcq.png +0 -0
  170. package/app/modules/editor/contentObject/assets/component-icons/icon-media.png +0 -0
  171. package/app/modules/editor/contentObject/assets/component-icons/icon-narrative.png +0 -0
  172. package/app/modules/editor/contentObject/assets/component-icons/icon-slider.png +0 -0
  173. package/app/modules/editor/contentObject/assets/component-icons/icon-text.png +0 -0
  174. package/app/modules/editor/contentObject/index.js +68 -0
  175. package/app/modules/editor/contentObject/less/editing-overlay-component-list.less +60 -0
  176. package/app/modules/editor/contentObject/less/editing-overlay-panel.less +25 -0
  177. package/app/modules/editor/contentObject/less/editorMenu.less +84 -0
  178. package/app/modules/editor/contentObject/less/editorMenuItem.less +114 -0
  179. package/app/modules/editor/contentObject/less/editorMenuLayer.less +70 -0
  180. package/app/modules/editor/contentObject/less/editorPage.less +162 -0
  181. package/app/modules/editor/contentObject/less/editorPageArticle.less +40 -0
  182. package/app/modules/editor/contentObject/less/editorPageBlock.less +33 -0
  183. package/app/modules/editor/contentObject/less/editorPageComponent.less +47 -0
  184. package/app/modules/editor/contentObject/less/editorPageComponentList.less +234 -0
  185. package/app/modules/editor/contentObject/templates/editorMenu.hbs +1 -0
  186. package/app/modules/editor/contentObject/templates/editorMenuItem.hbs +23 -0
  187. package/app/modules/editor/contentObject/templates/editorMenuLayer.hbs +12 -0
  188. package/app/modules/editor/contentObject/templates/editorMenuSidebar.hbs +1 -0
  189. package/app/modules/editor/contentObject/templates/editorPage.hbs +15 -0
  190. package/app/modules/editor/contentObject/templates/editorPageArticle.hbs +15 -0
  191. package/app/modules/editor/contentObject/templates/editorPageBlock.hbs +14 -0
  192. package/app/modules/editor/contentObject/templates/editorPageComponent.hbs +9 -0
  193. package/app/modules/editor/contentObject/templates/editorPageComponentList.hbs +33 -0
  194. package/app/modules/editor/contentObject/templates/editorPageComponentListItem.hbs +24 -0
  195. package/app/modules/editor/contentObject/templates/editorPageComponentPasteZone.hbs +4 -0
  196. package/app/modules/editor/contentObject/templates/editorPageEdit.hbs +1 -0
  197. package/app/modules/editor/contentObject/templates/editorPageEditSidebar.hbs +10 -0
  198. package/app/modules/editor/contentObject/templates/editorPageSidebar.hbs +1 -0
  199. package/app/modules/editor/contentObject/views/editorMenuItemView.js +174 -0
  200. package/app/modules/editor/contentObject/views/editorMenuLayerView.js +212 -0
  201. package/app/modules/editor/contentObject/views/editorMenuSidebarView.js +13 -0
  202. package/app/modules/editor/contentObject/views/editorMenuView.js +211 -0
  203. package/app/modules/editor/contentObject/views/editorPageArticleView.js +278 -0
  204. package/app/modules/editor/contentObject/views/editorPageBlockView.js +280 -0
  205. package/app/modules/editor/contentObject/views/editorPageComponentListItemView.js +80 -0
  206. package/app/modules/editor/contentObject/views/editorPageComponentListView.js +131 -0
  207. package/app/modules/editor/contentObject/views/editorPageComponentPasteZoneView.js +47 -0
  208. package/app/modules/editor/contentObject/views/editorPageComponentView.js +202 -0
  209. package/app/modules/editor/contentObject/views/editorPageEditSidebarView.js +28 -0
  210. package/app/modules/editor/contentObject/views/editorPageEditView.js +19 -0
  211. package/app/modules/editor/contentObject/views/editorPageSidebarView.js +13 -0
  212. package/app/modules/editor/contentObject/views/editorPageView.js +183 -0
  213. package/app/modules/editor/course/index.js +26 -0
  214. package/app/modules/editor/course/templates/editorCourseEdit.hbs +2 -0
  215. package/app/modules/editor/course/templates/editorCourseEditSidebar.hbs +19 -0
  216. package/app/modules/editor/course/views/editorCourseEditSidebarView.js +28 -0
  217. package/app/modules/editor/course/views/editorCourseEditView.js +56 -0
  218. package/app/modules/editor/extensions/index.js +26 -0
  219. package/app/modules/editor/extensions/less/extensions.less +22 -0
  220. package/app/modules/editor/extensions/templates/editorExtensionsEdit.hbs +85 -0
  221. package/app/modules/editor/extensions/templates/editorExtensionsEditSidebar.hbs +1 -0
  222. package/app/modules/editor/extensions/views/editorExtensionsEditSidebarView.js +10 -0
  223. package/app/modules/editor/extensions/views/editorExtensionsEditView.js +85 -0
  224. package/app/modules/editor/global/collections/editorCollection.js +24 -0
  225. package/app/modules/editor/global/editorDataLoader.js +91 -0
  226. package/app/modules/editor/global/helpers.js +99 -0
  227. package/app/modules/editor/global/less/colorLabels.less +55 -0
  228. package/app/modules/editor/global/less/editor.less +204 -0
  229. package/app/modules/editor/global/templates/editor.hbs +1 -0
  230. package/app/modules/editor/global/templates/editorPasteZone.hbs +4 -0
  231. package/app/modules/editor/global/templates/partials/part_editorCommon.hbs +70 -0
  232. package/app/modules/editor/global/templates/partials/part_editorItemSidebar.hbs +40 -0
  233. package/app/modules/editor/global/templates/partials/part_editorMenu.hbs +4 -0
  234. package/app/modules/editor/global/templates/partials/part_settingsGeneral.hbs +27 -0
  235. package/app/modules/editor/global/views/editorOriginView.js +255 -0
  236. package/app/modules/editor/global/views/editorPasteZoneView.js +69 -0
  237. package/app/modules/editor/global/views/editorView.js +288 -0
  238. package/app/modules/editor/index.js +52 -0
  239. package/app/modules/editor/menuSettings/index.js +27 -0
  240. package/app/modules/editor/menuSettings/less/menusettings.less +55 -0
  241. package/app/modules/editor/menuSettings/templates/editorMenuSettingsEdit.hbs +1 -0
  242. package/app/modules/editor/menuSettings/templates/editorMenuSettingsEditSidebar.hbs +5 -0
  243. package/app/modules/editor/menuSettings/templates/editorMenuSettingsItem.hbs +4 -0
  244. package/app/modules/editor/menuSettings/views/editorMenuSettingsEditSidebarView.js +21 -0
  245. package/app/modules/editor/menuSettings/views/editorMenuSettingsEditView.js +71 -0
  246. package/app/modules/editor/menuSettings/views/editorMenuSettingsView.js +44 -0
  247. package/app/modules/editor/themeEditor/collections/editorPresetCollection.js +13 -0
  248. package/app/modules/editor/themeEditor/index.js +15 -0
  249. package/app/modules/editor/themeEditor/less/editorPresetEdit.less +78 -0
  250. package/app/modules/editor/themeEditor/less/editorTheming.less +73 -0
  251. package/app/modules/editor/themeEditor/models/editorModel.js +62 -0
  252. package/app/modules/editor/themeEditor/models/editorPresetModel.js +6 -0
  253. package/app/modules/editor/themeEditor/templates/editorPresetEdit.hbs +31 -0
  254. package/app/modules/editor/themeEditor/templates/editorTheming.hbs +35 -0
  255. package/app/modules/editor/themeEditor/templates/editorThemingSidebar.hbs +23 -0
  256. package/app/modules/editor/themeEditor/views/editorPresetEditView.js +98 -0
  257. package/app/modules/editor/themeEditor/views/editorThemingSidebarView.js +62 -0
  258. package/app/modules/editor/themeEditor/views/editorThemingView.js +304 -0
  259. package/app/modules/frameworkImport/index.js +32 -0
  260. package/app/modules/frameworkImport/less/frameworkImport.less +101 -0
  261. package/app/modules/frameworkImport/templates/frameworkImport.hbs +58 -0
  262. package/app/modules/frameworkImport/templates/frameworkImportSidebar.hbs +12 -0
  263. package/app/modules/frameworkImport/templates/frameworkImportSummary.hbs +40 -0
  264. package/app/modules/frameworkImport/templates/partials/part_frameworkImportButton.hbs +3 -0
  265. package/app/modules/frameworkImport/templates/partials/part_frameworkImportStatusMessages.hbs +22 -0
  266. package/app/modules/frameworkImport/views/frameworkImportSidebarView.js +31 -0
  267. package/app/modules/frameworkImport/views/frameworkImportView.js +109 -0
  268. package/app/modules/globalMenu/index.js +86 -0
  269. package/app/modules/globalMenu/less/globalMenu.less +117 -0
  270. package/app/modules/globalMenu/templates/globalMenu.hbs +6 -0
  271. package/app/modules/globalMenu/templates/globalMenuItem.hbs +10 -0
  272. package/app/modules/globalMenu/templates/partials/part_globalMenuButton.hbs +7 -0
  273. package/app/modules/globalMenu/views/globalMenuItemView.js +108 -0
  274. package/app/modules/globalMenu/views/globalMenuView.js +45 -0
  275. package/app/modules/limiteduser/index.js +17 -0
  276. package/app/modules/limiteduser/less/limitedUser.less +29 -0
  277. package/app/modules/limiteduser/templates/limitedUser.hbs +8 -0
  278. package/app/modules/limiteduser/views/limitedUserView.js +12 -0
  279. package/app/modules/modal/index.js +13 -0
  280. package/app/modules/modal/less/modal.less +61 -0
  281. package/app/modules/modal/models/modalModel.js +14 -0
  282. package/app/modules/modal/templates/modal.hbs +34 -0
  283. package/app/modules/modal/views/modalView.js +102 -0
  284. package/app/modules/notify/index.js +32 -0
  285. package/app/modules/notify/plugins/alert/assets/sweetalert.css +932 -0
  286. package/app/modules/notify/plugins/alert/index.js +117 -0
  287. package/app/modules/notify/plugins/alert/less/alert.less +74 -0
  288. package/app/modules/notify/plugins/alert/sweetalert2-11.1.7.all.min.js +2 -0
  289. package/app/modules/notify/plugins/console/index.js +18 -0
  290. package/app/modules/notify/plugins/snackbar/index.js +69 -0
  291. package/app/modules/notify/plugins/snackbar/less/snackbar.less +40 -0
  292. package/app/modules/notify/plugins/toast/index.js +70 -0
  293. package/app/modules/notify/plugins/toast/less/toast.less +62 -0
  294. package/app/modules/pluginManagement/index.js +36 -0
  295. package/app/modules/pluginManagement/less/pluginManagement.less +23 -0
  296. package/app/modules/pluginManagement/less/pluginType.less +25 -0
  297. package/app/modules/pluginManagement/templates/pluginManagement.hbs +43 -0
  298. package/app/modules/pluginManagement/templates/pluginManagementSidebar.hbs +40 -0
  299. package/app/modules/pluginManagement/templates/pluginManagementUpload.hbs +12 -0
  300. package/app/modules/pluginManagement/templates/pluginManagementUploadSidebar.hbs +13 -0
  301. package/app/modules/pluginManagement/templates/pluginType.hbs +43 -0
  302. package/app/modules/pluginManagement/views/pluginManagementSidebarView.js +48 -0
  303. package/app/modules/pluginManagement/views/pluginManagementUploadSidebarView.js +25 -0
  304. package/app/modules/pluginManagement/views/pluginManagementUploadView.js +52 -0
  305. package/app/modules/pluginManagement/views/pluginManagementView.js +104 -0
  306. package/app/modules/pluginManagement/views/pluginTypeView.js +105 -0
  307. package/app/modules/projects/assets/origami-project.jpg +0 -0
  308. package/app/modules/projects/index.js +82 -0
  309. package/app/modules/projects/less/projects.less +152 -0
  310. package/app/modules/projects/less/qproject.less +143 -0
  311. package/app/modules/projects/templates/project.hbs +63 -0
  312. package/app/modules/projects/templates/projects.hbs +6 -0
  313. package/app/modules/projects/templates/projectsSidebar.hbs +42 -0
  314. package/app/modules/projects/views/projectView.js +167 -0
  315. package/app/modules/projects/views/projectsSidebarView.js +172 -0
  316. package/app/modules/projects/views/projectsView.js +271 -0
  317. package/app/modules/scaffold/backboneFormsOverrides.js +284 -0
  318. package/app/modules/scaffold/index.js +342 -0
  319. package/app/modules/scaffold/lang/en.json +9 -0
  320. package/app/modules/scaffold/less/codeEditor.less +6 -0
  321. package/app/modules/scaffold/less/colourPicker.less +141 -0
  322. package/app/modules/scaffold/less/displayTitle.less +17 -0
  323. package/app/modules/scaffold/less/forms.less +174 -0
  324. package/app/modules/scaffold/less/list.less +35 -0
  325. package/app/modules/scaffold/less/modal.less +45 -0
  326. package/app/modules/scaffold/less/scaffoldAsset.less +23 -0
  327. package/app/modules/scaffold/less/scaffoldAssetItem.less +50 -0
  328. package/app/modules/scaffold/less/selectize.less +29 -0
  329. package/app/modules/scaffold/less/textArea.less +9 -0
  330. package/app/modules/scaffold/less/users.less +6 -0
  331. package/app/modules/scaffold/templates/field.hbs +25 -0
  332. package/app/modules/scaffold/templates/fieldset.hbs +10 -0
  333. package/app/modules/scaffold/templates/form.hbs +6 -0
  334. package/app/modules/scaffold/templates/list.hbs +4 -0
  335. package/app/modules/scaffold/templates/listItem.hbs +5 -0
  336. package/app/modules/scaffold/templates/scaffoldAsset.hbs +65 -0
  337. package/app/modules/scaffold/templates/scaffoldAssetItem.hbs +35 -0
  338. package/app/modules/scaffold/templates/scaffoldDisplayTitle.hbs +8 -0
  339. package/app/modules/scaffold/templates/scaffoldEditHtml.hbs +1 -0
  340. package/app/modules/scaffold/templates/scaffoldFile.hbs +1 -0
  341. package/app/modules/scaffold/templates/scaffoldItemsModal.hbs +14 -0
  342. package/app/modules/scaffold/templates/scaffoldModalOverlay.hbs +1 -0
  343. package/app/modules/scaffold/templates/scaffoldUsersOption.hbs +8 -0
  344. package/app/modules/scaffold/views/scaffoldAssetItemView.js +203 -0
  345. package/app/modules/scaffold/views/scaffoldAssetView.js +157 -0
  346. package/app/modules/scaffold/views/scaffoldCodeEditorView.js +64 -0
  347. package/app/modules/scaffold/views/scaffoldColourPickerView.js +70 -0
  348. package/app/modules/scaffold/views/scaffoldDisplayTitleView.js +112 -0
  349. package/app/modules/scaffold/views/scaffoldFileView.js +18 -0
  350. package/app/modules/scaffold/views/scaffoldItemsModalView.js +100 -0
  351. package/app/modules/scaffold/views/scaffoldListView.js +158 -0
  352. package/app/modules/scaffold/views/scaffoldTagsView.js +71 -0
  353. package/app/modules/scaffold/views/scaffoldUsersView.js +89 -0
  354. package/app/modules/sidebar/index.js +22 -0
  355. package/app/modules/sidebar/less/sidebar.less +298 -0
  356. package/app/modules/sidebar/less/sidebarFilter.less +91 -0
  357. package/app/modules/sidebar/templates/sidebar.hbs +7 -0
  358. package/app/modules/sidebar/templates/sidebarBreadcrumb.hbs +3 -0
  359. package/app/modules/sidebar/templates/sidebarDivide.hbs +5 -0
  360. package/app/modules/sidebar/templates/sidebarFieldsetFilter.hbs +6 -0
  361. package/app/modules/sidebar/templates/sidebarFilter.hbs +30 -0
  362. package/app/modules/sidebar/templates/sidebarRowFilter.hbs +4 -0
  363. package/app/modules/sidebar/templates/sidebarUpdateButton.hbs +3 -0
  364. package/app/modules/sidebar/views/sidebarFieldsetFilterView.js +43 -0
  365. package/app/modules/sidebar/views/sidebarFilterView.js +132 -0
  366. package/app/modules/sidebar/views/sidebarItemView.js +172 -0
  367. package/app/modules/sidebar/views/sidebarView.js +71 -0
  368. package/app/modules/user/assets/adapt-learning-logo.png +0 -0
  369. package/app/modules/user/assets/adapt-logo.png +0 -0
  370. package/app/modules/user/assets/login_bg.jpg +0 -0
  371. package/app/modules/user/index.js +75 -0
  372. package/app/modules/user/less/forgotPassword.less +14 -0
  373. package/app/modules/user/less/login.less +138 -0
  374. package/app/modules/user/less/logout.less +3 -0
  375. package/app/modules/user/less/resetPassword.less +7 -0
  376. package/app/modules/user/less/userProfile.less +49 -0
  377. package/app/modules/user/models/userProfileModel.js +32 -0
  378. package/app/modules/user/templates/forgotPassword.hbs +36 -0
  379. package/app/modules/user/templates/login.hbs +29 -0
  380. package/app/modules/user/templates/resetPassword.hbs +29 -0
  381. package/app/modules/user/templates/userProfile.hbs +71 -0
  382. package/app/modules/user/templates/userProfileSidebar.hbs +16 -0
  383. package/app/modules/user/views/forgotPasswordView.js +63 -0
  384. package/app/modules/user/views/loginView.js +93 -0
  385. package/app/modules/user/views/resetPasswordView.js +78 -0
  386. package/app/modules/user/views/userProfileSidebarView.js +32 -0
  387. package/app/modules/user/views/userProfileView.js +107 -0
  388. package/app/modules/userManagement/collections/userCollection.js +65 -0
  389. package/app/modules/userManagement/helpers.js +46 -0
  390. package/app/modules/userManagement/index.js +67 -0
  391. package/app/modules/userManagement/less/userManagement.less +268 -0
  392. package/app/modules/userManagement/models/userModel.js +34 -0
  393. package/app/modules/userManagement/templates/addUser.hbs +35 -0
  394. package/app/modules/userManagement/templates/addUserSidebar.hbs +9 -0
  395. package/app/modules/userManagement/templates/user.hbs +126 -0
  396. package/app/modules/userManagement/templates/userManagement.hbs +49 -0
  397. package/app/modules/userManagement/templates/userManagementFilter.hbs +19 -0
  398. package/app/modules/userManagement/templates/userManagementSidebar.hbs +13 -0
  399. package/app/modules/userManagement/views/addUserSidebarView.js +25 -0
  400. package/app/modules/userManagement/views/addUserView.js +85 -0
  401. package/app/modules/userManagement/views/filterView.js +49 -0
  402. package/app/modules/userManagement/views/userManagementSidebarView.js +33 -0
  403. package/app/modules/userManagement/views/userManagementView.js +104 -0
  404. package/app/modules/userManagement/views/userView.js +324 -0
  405. package/conf/config.schema.json +18 -0
  406. package/docs/migrating-from-legacy.md +19 -0
  407. package/docs/plugins/index-ui.md +17 -0
  408. package/docs/plugins/uidocs.js +54 -0
  409. package/docs/ui-extensions.md +15 -0
  410. package/index.js +1 -0
  411. package/lib/UiBuild.js +391 -0
  412. package/lib/UiModule.js +158 -0
  413. package/npm_hooks/postinstall.js +4 -0
  414. package/package.json +27 -0
@@ -0,0 +1,932 @@
1
+ body.stop-scrolling {
2
+ height: 100%;
3
+ overflow: hidden; }
4
+
5
+ .sweet-overlay {
6
+ background-color: black;
7
+ /* IE8 */
8
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
9
+ /* IE8 */
10
+ background-color: rgba(0, 0, 0, 0.4);
11
+ position: fixed;
12
+ left: 0;
13
+ right: 0;
14
+ top: 0;
15
+ bottom: 0;
16
+ display: none;
17
+ z-index: 10000; }
18
+
19
+ .sweet-alert {
20
+ background-color: white;
21
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
22
+ width: 478px;
23
+ padding: 17px;
24
+ border-radius: 5px;
25
+ text-align: center;
26
+ position: fixed;
27
+ left: 50%;
28
+ top: 50%;
29
+ margin-left: -256px;
30
+ margin-top: -200px;
31
+ overflow: hidden;
32
+ display: none;
33
+ z-index: 99999; }
34
+ @media all and (max-width: 540px) {
35
+ .sweet-alert {
36
+ width: auto;
37
+ margin-left: 0;
38
+ margin-right: 0;
39
+ left: 15px;
40
+ right: 15px; } }
41
+ .sweet-alert h2 {
42
+ color: #575757;
43
+ font-size: 30px;
44
+ text-align: center;
45
+ font-weight: 600;
46
+ text-transform: none;
47
+ position: relative;
48
+ margin: 25px 0;
49
+ padding: 0;
50
+ line-height: 40px;
51
+ display: block; }
52
+ .sweet-alert p {
53
+ color: #797979;
54
+ font-size: 16px;
55
+ text-align: center;
56
+ font-weight: 300;
57
+ position: relative;
58
+ text-align: inherit;
59
+ float: none;
60
+ margin: 0;
61
+ padding: 0;
62
+ line-height: normal; }
63
+ .sweet-alert fieldset {
64
+ border: none;
65
+ position: relative; }
66
+ .sweet-alert .sa-error-container {
67
+ background-color: #f1f1f1;
68
+ margin-left: -17px;
69
+ margin-right: -17px;
70
+ overflow: hidden;
71
+ padding: 0 10px;
72
+ max-height: 0;
73
+ webkit-transition: padding 0.15s, max-height 0.15s;
74
+ transition: padding 0.15s, max-height 0.15s; }
75
+ .sweet-alert .sa-error-container.show {
76
+ padding: 10px 0;
77
+ max-height: 100px;
78
+ webkit-transition: padding 0.2s, max-height 0.2s;
79
+ transition: padding 0.25s, max-height 0.25s; }
80
+ .sweet-alert .sa-error-container .icon {
81
+ display: inline-block;
82
+ width: 24px;
83
+ height: 24px;
84
+ border-radius: 50%;
85
+ background-color: #ea7d7d;
86
+ color: white;
87
+ line-height: 24px;
88
+ text-align: center;
89
+ margin-right: 3px; }
90
+ .sweet-alert .sa-error-container p {
91
+ display: inline-block; }
92
+ .sweet-alert .sa-input-error {
93
+ position: absolute;
94
+ top: 29px;
95
+ right: 26px;
96
+ width: 20px;
97
+ height: 20px;
98
+ opacity: 0;
99
+ -webkit-transform: scale(0.5);
100
+ transform: scale(0.5);
101
+ -webkit-transform-origin: 50% 50%;
102
+ transform-origin: 50% 50%;
103
+ -webkit-transition: all 0.1s;
104
+ transition: all 0.1s; }
105
+ .sweet-alert .sa-input-error::before, .sweet-alert .sa-input-error::after {
106
+ content: "";
107
+ width: 20px;
108
+ height: 6px;
109
+ background-color: #f06e57;
110
+ border-radius: 3px;
111
+ position: absolute;
112
+ top: 50%;
113
+ margin-top: -4px;
114
+ left: 50%;
115
+ margin-left: -9px; }
116
+ .sweet-alert .sa-input-error::before {
117
+ -webkit-transform: rotate(-45deg);
118
+ transform: rotate(-45deg); }
119
+ .sweet-alert .sa-input-error::after {
120
+ -webkit-transform: rotate(45deg);
121
+ transform: rotate(45deg); }
122
+ .sweet-alert .sa-input-error.show {
123
+ opacity: 1;
124
+ -webkit-transform: scale(1);
125
+ transform: scale(1); }
126
+ .sweet-alert input {
127
+ width: 100%;
128
+ box-sizing: border-box;
129
+ border-radius: 3px;
130
+ border: 1px solid #d7d7d7;
131
+ height: 43px;
132
+ margin-top: 10px;
133
+ margin-bottom: 17px;
134
+ font-size: 18px;
135
+ box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.06);
136
+ padding: 0 12px;
137
+ display: none;
138
+ -webkit-transition: all 0.3s;
139
+ transition: all 0.3s; }
140
+ .sweet-alert input:focus {
141
+ outline: none;
142
+ box-shadow: 0px 0px 3px #c4e6f5;
143
+ border: 1px solid #b4dbed; }
144
+ .sweet-alert input:focus::-moz-placeholder {
145
+ transition: opacity 0.3s 0.03s ease;
146
+ opacity: 0.5; }
147
+ .sweet-alert input:focus:-ms-input-placeholder {
148
+ transition: opacity 0.3s 0.03s ease;
149
+ opacity: 0.5; }
150
+ .sweet-alert input:focus::-webkit-input-placeholder {
151
+ transition: opacity 0.3s 0.03s ease;
152
+ opacity: 0.5; }
153
+ .sweet-alert input::-moz-placeholder {
154
+ color: #bdbdbd; }
155
+ .sweet-alert input:-ms-input-placeholder {
156
+ color: #bdbdbd; }
157
+ .sweet-alert input::-webkit-input-placeholder {
158
+ color: #bdbdbd; }
159
+ .sweet-alert.show-input input {
160
+ display: block; }
161
+ .sweet-alert .sa-confirm-button-container {
162
+ display: inline-block;
163
+ position: relative; }
164
+ .sweet-alert .la-ball-fall {
165
+ position: absolute;
166
+ left: 50%;
167
+ top: 50%;
168
+ margin-left: -27px;
169
+ margin-top: 4px;
170
+ opacity: 0;
171
+ visibility: hidden; }
172
+ .sweet-alert button {
173
+ background-color: #8CD4F5;
174
+ color: white;
175
+ border: none;
176
+ box-shadow: none;
177
+ font-size: 17px;
178
+ font-weight: 500;
179
+ -webkit-border-radius: 4px;
180
+ border-radius: 5px;
181
+ padding: 10px 32px;
182
+ margin: 26px 5px 0 5px;
183
+ cursor: pointer; }
184
+ .sweet-alert button:focus {
185
+ outline: none;
186
+ box-shadow: 0 0 2px rgba(128, 179, 235, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
187
+ .sweet-alert button:hover {
188
+ background-color: #7ecff4; }
189
+ .sweet-alert button:active {
190
+ background-color: #5dc2f1; }
191
+ .sweet-alert button.cancel {
192
+ background-color: #C1C1C1; }
193
+ .sweet-alert button.cancel:hover {
194
+ background-color: #b9b9b9; }
195
+ .sweet-alert button.cancel:active {
196
+ background-color: #a8a8a8; }
197
+ .sweet-alert button.cancel:focus {
198
+ box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important; }
199
+ .sweet-alert button[disabled] {
200
+ opacity: .6;
201
+ cursor: default; }
202
+ .sweet-alert button.confirm[disabled] {
203
+ color: transparent; }
204
+ .sweet-alert button.confirm[disabled] ~ .la-ball-fall {
205
+ opacity: 1;
206
+ visibility: visible;
207
+ transition-delay: 0s; }
208
+ .sweet-alert button::-moz-focus-inner {
209
+ border: 0; }
210
+ .sweet-alert[data-has-cancel-button=false] button {
211
+ box-shadow: none !important; }
212
+ .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] {
213
+ padding-bottom: 40px; }
214
+ .sweet-alert .sa-icon {
215
+ width: 80px;
216
+ height: 80px;
217
+ border: 4px solid gray;
218
+ -webkit-border-radius: 40px;
219
+ border-radius: 40px;
220
+ border-radius: 50%;
221
+ margin: 20px auto;
222
+ padding: 0;
223
+ position: relative;
224
+ box-sizing: content-box; }
225
+ .sweet-alert .sa-icon.sa-error {
226
+ border-color: #F27474; }
227
+ .sweet-alert .sa-icon.sa-error .sa-x-mark {
228
+ position: relative;
229
+ display: block; }
230
+ .sweet-alert .sa-icon.sa-error .sa-line {
231
+ position: absolute;
232
+ height: 5px;
233
+ width: 47px;
234
+ background-color: #F27474;
235
+ display: block;
236
+ top: 37px;
237
+ border-radius: 2px; }
238
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
239
+ -webkit-transform: rotate(45deg);
240
+ transform: rotate(45deg);
241
+ left: 17px; }
242
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
243
+ -webkit-transform: rotate(-45deg);
244
+ transform: rotate(-45deg);
245
+ right: 16px; }
246
+ .sweet-alert .sa-icon.sa-warning {
247
+ border-color: #F8BB86; }
248
+ .sweet-alert .sa-icon.sa-warning .sa-body {
249
+ position: absolute;
250
+ width: 5px;
251
+ height: 47px;
252
+ left: 50%;
253
+ top: 10px;
254
+ -webkit-border-radius: 2px;
255
+ border-radius: 2px;
256
+ margin-left: -2px;
257
+ background-color: #F8BB86; }
258
+ .sweet-alert .sa-icon.sa-warning .sa-dot {
259
+ position: absolute;
260
+ width: 7px;
261
+ height: 7px;
262
+ -webkit-border-radius: 50%;
263
+ border-radius: 50%;
264
+ margin-left: -3px;
265
+ left: 50%;
266
+ bottom: 10px;
267
+ background-color: #F8BB86; }
268
+ .sweet-alert .sa-icon.sa-info {
269
+ border-color: #C9DAE1; }
270
+ .sweet-alert .sa-icon.sa-info::before {
271
+ content: "";
272
+ position: absolute;
273
+ width: 5px;
274
+ height: 29px;
275
+ left: 50%;
276
+ bottom: 17px;
277
+ border-radius: 2px;
278
+ margin-left: -2px;
279
+ background-color: #C9DAE1; }
280
+ .sweet-alert .sa-icon.sa-info::after {
281
+ content: "";
282
+ position: absolute;
283
+ width: 7px;
284
+ height: 7px;
285
+ border-radius: 50%;
286
+ margin-left: -3px;
287
+ top: 19px;
288
+ background-color: #C9DAE1; }
289
+ .sweet-alert .sa-icon.sa-success {
290
+ border-color: #A5DC86; }
291
+ .sweet-alert .sa-icon.sa-success::before, .sweet-alert .sa-icon.sa-success::after {
292
+ content: '';
293
+ -webkit-border-radius: 40px;
294
+ border-radius: 40px;
295
+ border-radius: 50%;
296
+ position: absolute;
297
+ width: 60px;
298
+ height: 120px;
299
+ background: white;
300
+ -webkit-transform: rotate(45deg);
301
+ transform: rotate(45deg); }
302
+ .sweet-alert .sa-icon.sa-success::before {
303
+ -webkit-border-radius: 120px 0 0 120px;
304
+ border-radius: 120px 0 0 120px;
305
+ top: -7px;
306
+ left: -33px;
307
+ -webkit-transform: rotate(-45deg);
308
+ transform: rotate(-45deg);
309
+ -webkit-transform-origin: 60px 60px;
310
+ transform-origin: 60px 60px; }
311
+ .sweet-alert .sa-icon.sa-success::after {
312
+ -webkit-border-radius: 0 120px 120px 0;
313
+ border-radius: 0 120px 120px 0;
314
+ top: -11px;
315
+ left: 30px;
316
+ -webkit-transform: rotate(-45deg);
317
+ transform: rotate(-45deg);
318
+ -webkit-transform-origin: 0px 60px;
319
+ transform-origin: 0px 60px; }
320
+ .sweet-alert .sa-icon.sa-success .sa-placeholder {
321
+ width: 80px;
322
+ height: 80px;
323
+ border: 4px solid rgba(165, 220, 134, 0.2);
324
+ -webkit-border-radius: 40px;
325
+ border-radius: 40px;
326
+ border-radius: 50%;
327
+ box-sizing: content-box;
328
+ position: absolute;
329
+ left: -4px;
330
+ top: -4px;
331
+ z-index: 2; }
332
+ .sweet-alert .sa-icon.sa-success .sa-fix {
333
+ width: 5px;
334
+ height: 90px;
335
+ background-color: white;
336
+ position: absolute;
337
+ left: 28px;
338
+ top: 8px;
339
+ z-index: 1;
340
+ -webkit-transform: rotate(-45deg);
341
+ transform: rotate(-45deg); }
342
+ .sweet-alert .sa-icon.sa-success .sa-line {
343
+ height: 5px;
344
+ background-color: #A5DC86;
345
+ display: block;
346
+ border-radius: 2px;
347
+ position: absolute;
348
+ z-index: 2; }
349
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
350
+ width: 25px;
351
+ left: 14px;
352
+ top: 46px;
353
+ -webkit-transform: rotate(45deg);
354
+ transform: rotate(45deg); }
355
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
356
+ width: 47px;
357
+ right: 8px;
358
+ top: 38px;
359
+ -webkit-transform: rotate(-45deg);
360
+ transform: rotate(-45deg); }
361
+ .sweet-alert .sa-icon.sa-custom {
362
+ background-size: contain;
363
+ border-radius: 0;
364
+ border: none;
365
+ background-position: center center;
366
+ background-repeat: no-repeat; }
367
+
368
+ /*
369
+ * Animations
370
+ */
371
+ @-webkit-keyframes showSweetAlert {
372
+ 0% {
373
+ transform: scale(0.7);
374
+ -webkit-transform: scale(0.7); }
375
+ 45% {
376
+ transform: scale(1.05);
377
+ -webkit-transform: scale(1.05); }
378
+ 80% {
379
+ transform: scale(0.95);
380
+ -webkit-transform: scale(0.95); }
381
+ 100% {
382
+ transform: scale(1);
383
+ -webkit-transform: scale(1); } }
384
+
385
+ @keyframes showSweetAlert {
386
+ 0% {
387
+ transform: scale(0.7);
388
+ -webkit-transform: scale(0.7); }
389
+ 45% {
390
+ transform: scale(1.05);
391
+ -webkit-transform: scale(1.05); }
392
+ 80% {
393
+ transform: scale(0.95);
394
+ -webkit-transform: scale(0.95); }
395
+ 100% {
396
+ transform: scale(1);
397
+ -webkit-transform: scale(1); } }
398
+
399
+ @-webkit-keyframes hideSweetAlert {
400
+ 0% {
401
+ transform: scale(1);
402
+ -webkit-transform: scale(1); }
403
+ 100% {
404
+ transform: scale(0.5);
405
+ -webkit-transform: scale(0.5); } }
406
+
407
+ @keyframes hideSweetAlert {
408
+ 0% {
409
+ transform: scale(1);
410
+ -webkit-transform: scale(1); }
411
+ 100% {
412
+ transform: scale(0.5);
413
+ -webkit-transform: scale(0.5); } }
414
+
415
+ @-webkit-keyframes slideFromTop {
416
+ 0% {
417
+ top: 0%; }
418
+ 100% {
419
+ top: 50%; } }
420
+
421
+ @keyframes slideFromTop {
422
+ 0% {
423
+ top: 0%; }
424
+ 100% {
425
+ top: 50%; } }
426
+
427
+ @-webkit-keyframes slideToTop {
428
+ 0% {
429
+ top: 50%; }
430
+ 100% {
431
+ top: 0%; } }
432
+
433
+ @keyframes slideToTop {
434
+ 0% {
435
+ top: 50%; }
436
+ 100% {
437
+ top: 0%; } }
438
+
439
+ @-webkit-keyframes slideFromBottom {
440
+ 0% {
441
+ top: 70%; }
442
+ 100% {
443
+ top: 50%; } }
444
+
445
+ @keyframes slideFromBottom {
446
+ 0% {
447
+ top: 70%; }
448
+ 100% {
449
+ top: 50%; } }
450
+
451
+ @-webkit-keyframes slideToBottom {
452
+ 0% {
453
+ top: 50%; }
454
+ 100% {
455
+ top: 70%; } }
456
+
457
+ @keyframes slideToBottom {
458
+ 0% {
459
+ top: 50%; }
460
+ 100% {
461
+ top: 70%; } }
462
+
463
+ .showSweetAlert[data-animation=pop] {
464
+ -webkit-animation: showSweetAlert 0.3s;
465
+ animation: showSweetAlert 0.3s; }
466
+
467
+ .showSweetAlert[data-animation=none] {
468
+ -webkit-animation: none;
469
+ animation: none; }
470
+
471
+ .showSweetAlert[data-animation=slide-from-top] {
472
+ -webkit-animation: slideFromTop 0.3s;
473
+ animation: slideFromTop 0.3s; }
474
+
475
+ .showSweetAlert[data-animation=slide-from-bottom] {
476
+ -webkit-animation: slideFromBottom 0.3s;
477
+ animation: slideFromBottom 0.3s; }
478
+
479
+ .hideSweetAlert[data-animation=pop] {
480
+ -webkit-animation: hideSweetAlert 0.2s;
481
+ animation: hideSweetAlert 0.2s; }
482
+
483
+ .hideSweetAlert[data-animation=none] {
484
+ -webkit-animation: none;
485
+ animation: none; }
486
+
487
+ .hideSweetAlert[data-animation=slide-from-top] {
488
+ -webkit-animation: slideToTop 0.4s;
489
+ animation: slideToTop 0.4s; }
490
+
491
+ .hideSweetAlert[data-animation=slide-from-bottom] {
492
+ -webkit-animation: slideToBottom 0.3s;
493
+ animation: slideToBottom 0.3s; }
494
+
495
+ @-webkit-keyframes animateSuccessTip {
496
+ 0% {
497
+ width: 0;
498
+ left: 1px;
499
+ top: 19px; }
500
+ 54% {
501
+ width: 0;
502
+ left: 1px;
503
+ top: 19px; }
504
+ 70% {
505
+ width: 50px;
506
+ left: -8px;
507
+ top: 37px; }
508
+ 84% {
509
+ width: 17px;
510
+ left: 21px;
511
+ top: 48px; }
512
+ 100% {
513
+ width: 25px;
514
+ left: 14px;
515
+ top: 45px; } }
516
+
517
+ @keyframes animateSuccessTip {
518
+ 0% {
519
+ width: 0;
520
+ left: 1px;
521
+ top: 19px; }
522
+ 54% {
523
+ width: 0;
524
+ left: 1px;
525
+ top: 19px; }
526
+ 70% {
527
+ width: 50px;
528
+ left: -8px;
529
+ top: 37px; }
530
+ 84% {
531
+ width: 17px;
532
+ left: 21px;
533
+ top: 48px; }
534
+ 100% {
535
+ width: 25px;
536
+ left: 14px;
537
+ top: 45px; } }
538
+
539
+ @-webkit-keyframes animateSuccessLong {
540
+ 0% {
541
+ width: 0;
542
+ right: 46px;
543
+ top: 54px; }
544
+ 65% {
545
+ width: 0;
546
+ right: 46px;
547
+ top: 54px; }
548
+ 84% {
549
+ width: 55px;
550
+ right: 0px;
551
+ top: 35px; }
552
+ 100% {
553
+ width: 47px;
554
+ right: 8px;
555
+ top: 38px; } }
556
+
557
+ @keyframes animateSuccessLong {
558
+ 0% {
559
+ width: 0;
560
+ right: 46px;
561
+ top: 54px; }
562
+ 65% {
563
+ width: 0;
564
+ right: 46px;
565
+ top: 54px; }
566
+ 84% {
567
+ width: 55px;
568
+ right: 0px;
569
+ top: 35px; }
570
+ 100% {
571
+ width: 47px;
572
+ right: 8px;
573
+ top: 38px; } }
574
+
575
+ @-webkit-keyframes rotatePlaceholder {
576
+ 0% {
577
+ transform: rotate(-45deg);
578
+ -webkit-transform: rotate(-45deg); }
579
+ 5% {
580
+ transform: rotate(-45deg);
581
+ -webkit-transform: rotate(-45deg); }
582
+ 12% {
583
+ transform: rotate(-405deg);
584
+ -webkit-transform: rotate(-405deg); }
585
+ 100% {
586
+ transform: rotate(-405deg);
587
+ -webkit-transform: rotate(-405deg); } }
588
+
589
+ @keyframes rotatePlaceholder {
590
+ 0% {
591
+ transform: rotate(-45deg);
592
+ -webkit-transform: rotate(-45deg); }
593
+ 5% {
594
+ transform: rotate(-45deg);
595
+ -webkit-transform: rotate(-45deg); }
596
+ 12% {
597
+ transform: rotate(-405deg);
598
+ -webkit-transform: rotate(-405deg); }
599
+ 100% {
600
+ transform: rotate(-405deg);
601
+ -webkit-transform: rotate(-405deg); } }
602
+
603
+ .animateSuccessTip {
604
+ -webkit-animation: animateSuccessTip 0.75s;
605
+ animation: animateSuccessTip 0.75s; }
606
+
607
+ .animateSuccessLong {
608
+ -webkit-animation: animateSuccessLong 0.75s;
609
+ animation: animateSuccessLong 0.75s; }
610
+
611
+ .sa-icon.sa-success.animate::after {
612
+ -webkit-animation: rotatePlaceholder 4.25s ease-in;
613
+ animation: rotatePlaceholder 4.25s ease-in; }
614
+
615
+ @-webkit-keyframes animateErrorIcon {
616
+ 0% {
617
+ transform: rotateX(100deg);
618
+ -webkit-transform: rotateX(100deg);
619
+ opacity: 0; }
620
+ 100% {
621
+ transform: rotateX(0deg);
622
+ -webkit-transform: rotateX(0deg);
623
+ opacity: 1; } }
624
+
625
+ @keyframes animateErrorIcon {
626
+ 0% {
627
+ transform: rotateX(100deg);
628
+ -webkit-transform: rotateX(100deg);
629
+ opacity: 0; }
630
+ 100% {
631
+ transform: rotateX(0deg);
632
+ -webkit-transform: rotateX(0deg);
633
+ opacity: 1; } }
634
+
635
+ .animateErrorIcon {
636
+ -webkit-animation: animateErrorIcon 0.5s;
637
+ animation: animateErrorIcon 0.5s; }
638
+
639
+ @-webkit-keyframes animateXMark {
640
+ 0% {
641
+ transform: scale(0.4);
642
+ -webkit-transform: scale(0.4);
643
+ margin-top: 26px;
644
+ opacity: 0; }
645
+ 50% {
646
+ transform: scale(0.4);
647
+ -webkit-transform: scale(0.4);
648
+ margin-top: 26px;
649
+ opacity: 0; }
650
+ 80% {
651
+ transform: scale(1.15);
652
+ -webkit-transform: scale(1.15);
653
+ margin-top: -6px; }
654
+ 100% {
655
+ transform: scale(1);
656
+ -webkit-transform: scale(1);
657
+ margin-top: 0;
658
+ opacity: 1; } }
659
+
660
+ @keyframes animateXMark {
661
+ 0% {
662
+ transform: scale(0.4);
663
+ -webkit-transform: scale(0.4);
664
+ margin-top: 26px;
665
+ opacity: 0; }
666
+ 50% {
667
+ transform: scale(0.4);
668
+ -webkit-transform: scale(0.4);
669
+ margin-top: 26px;
670
+ opacity: 0; }
671
+ 80% {
672
+ transform: scale(1.15);
673
+ -webkit-transform: scale(1.15);
674
+ margin-top: -6px; }
675
+ 100% {
676
+ transform: scale(1);
677
+ -webkit-transform: scale(1);
678
+ margin-top: 0;
679
+ opacity: 1; } }
680
+
681
+ .animateXMark {
682
+ -webkit-animation: animateXMark 0.5s;
683
+ animation: animateXMark 0.5s; }
684
+
685
+ @-webkit-keyframes pulseWarning {
686
+ 0% {
687
+ border-color: #F8D486; }
688
+ 100% {
689
+ border-color: #F8BB86; } }
690
+
691
+ @keyframes pulseWarning {
692
+ 0% {
693
+ border-color: #F8D486; }
694
+ 100% {
695
+ border-color: #F8BB86; } }
696
+
697
+ .pulseWarning {
698
+ -webkit-animation: pulseWarning 0.75s infinite alternate;
699
+ animation: pulseWarning 0.75s infinite alternate; }
700
+
701
+ @-webkit-keyframes pulseWarningIns {
702
+ 0% {
703
+ background-color: #F8D486; }
704
+ 100% {
705
+ background-color: #F8BB86; } }
706
+
707
+ @keyframes pulseWarningIns {
708
+ 0% {
709
+ background-color: #F8D486; }
710
+ 100% {
711
+ background-color: #F8BB86; } }
712
+
713
+ .pulseWarningIns {
714
+ -webkit-animation: pulseWarningIns 0.75s infinite alternate;
715
+ animation: pulseWarningIns 0.75s infinite alternate; }
716
+
717
+ @-webkit-keyframes rotate-loading {
718
+ 0% {
719
+ transform: rotate(0deg); }
720
+ 100% {
721
+ transform: rotate(360deg); } }
722
+
723
+ @keyframes rotate-loading {
724
+ 0% {
725
+ transform: rotate(0deg); }
726
+ 100% {
727
+ transform: rotate(360deg); } }
728
+
729
+ /* Internet Explorer 9 has some special quirks that are fixed here */
730
+ /* The icons are not animated. */
731
+ /* This file is automatically merged into sweet-alert.min.js through Gulp */
732
+ /* Error icon */
733
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
734
+ -ms-transform: rotate(45deg) \9; }
735
+
736
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
737
+ -ms-transform: rotate(-45deg) \9; }
738
+
739
+ /* Success icon */
740
+ .sweet-alert .sa-icon.sa-success {
741
+ border-color: transparent\9; }
742
+
743
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
744
+ -ms-transform: rotate(45deg) \9; }
745
+
746
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
747
+ -ms-transform: rotate(-45deg) \9; }
748
+
749
+ /*!
750
+ * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
751
+ * Copyright 2015 Daniel Cardoso <@DanielCardoso>
752
+ * Licensed under MIT
753
+ */
754
+ .la-ball-fall,
755
+ .la-ball-fall > div {
756
+ position: relative;
757
+ -webkit-box-sizing: border-box;
758
+ -moz-box-sizing: border-box;
759
+ box-sizing: border-box; }
760
+
761
+ .la-ball-fall {
762
+ display: block;
763
+ font-size: 0;
764
+ color: #fff; }
765
+
766
+ .la-ball-fall.la-dark {
767
+ color: #333; }
768
+
769
+ .la-ball-fall > div {
770
+ display: inline-block;
771
+ float: none;
772
+ background-color: currentColor;
773
+ border: 0 solid currentColor; }
774
+
775
+ .la-ball-fall {
776
+ width: 54px;
777
+ height: 18px; }
778
+
779
+ .la-ball-fall > div {
780
+ width: 10px;
781
+ height: 10px;
782
+ margin: 4px;
783
+ border-radius: 100%;
784
+ opacity: 0;
785
+ -webkit-animation: ball-fall 1s ease-in-out infinite;
786
+ -moz-animation: ball-fall 1s ease-in-out infinite;
787
+ -o-animation: ball-fall 1s ease-in-out infinite;
788
+ animation: ball-fall 1s ease-in-out infinite; }
789
+
790
+ .la-ball-fall > div:nth-child(1) {
791
+ -webkit-animation-delay: -200ms;
792
+ -moz-animation-delay: -200ms;
793
+ -o-animation-delay: -200ms;
794
+ animation-delay: -200ms; }
795
+
796
+ .la-ball-fall > div:nth-child(2) {
797
+ -webkit-animation-delay: -100ms;
798
+ -moz-animation-delay: -100ms;
799
+ -o-animation-delay: -100ms;
800
+ animation-delay: -100ms; }
801
+
802
+ .la-ball-fall > div:nth-child(3) {
803
+ -webkit-animation-delay: 0ms;
804
+ -moz-animation-delay: 0ms;
805
+ -o-animation-delay: 0ms;
806
+ animation-delay: 0ms; }
807
+
808
+ .la-ball-fall.la-sm {
809
+ width: 26px;
810
+ height: 8px; }
811
+
812
+ .la-ball-fall.la-sm > div {
813
+ width: 4px;
814
+ height: 4px;
815
+ margin: 2px; }
816
+
817
+ .la-ball-fall.la-2x {
818
+ width: 108px;
819
+ height: 36px; }
820
+
821
+ .la-ball-fall.la-2x > div {
822
+ width: 20px;
823
+ height: 20px;
824
+ margin: 8px; }
825
+
826
+ .la-ball-fall.la-3x {
827
+ width: 162px;
828
+ height: 54px; }
829
+
830
+ .la-ball-fall.la-3x > div {
831
+ width: 30px;
832
+ height: 30px;
833
+ margin: 12px; }
834
+
835
+ /*
836
+ * Animation
837
+ */
838
+ @-webkit-keyframes ball-fall {
839
+ 0% {
840
+ opacity: 0;
841
+ -webkit-transform: translateY(-145%);
842
+ transform: translateY(-145%); }
843
+ 10% {
844
+ opacity: .5; }
845
+ 20% {
846
+ opacity: 1;
847
+ -webkit-transform: translateY(0);
848
+ transform: translateY(0); }
849
+ 80% {
850
+ opacity: 1;
851
+ -webkit-transform: translateY(0);
852
+ transform: translateY(0); }
853
+ 90% {
854
+ opacity: .5; }
855
+ 100% {
856
+ opacity: 0;
857
+ -webkit-transform: translateY(145%);
858
+ transform: translateY(145%); } }
859
+
860
+ @-moz-keyframes ball-fall {
861
+ 0% {
862
+ opacity: 0;
863
+ -moz-transform: translateY(-145%);
864
+ transform: translateY(-145%); }
865
+ 10% {
866
+ opacity: .5; }
867
+ 20% {
868
+ opacity: 1;
869
+ -moz-transform: translateY(0);
870
+ transform: translateY(0); }
871
+ 80% {
872
+ opacity: 1;
873
+ -moz-transform: translateY(0);
874
+ transform: translateY(0); }
875
+ 90% {
876
+ opacity: .5; }
877
+ 100% {
878
+ opacity: 0;
879
+ -moz-transform: translateY(145%);
880
+ transform: translateY(145%); } }
881
+
882
+ @-o-keyframes ball-fall {
883
+ 0% {
884
+ opacity: 0;
885
+ -o-transform: translateY(-145%);
886
+ transform: translateY(-145%); }
887
+ 10% {
888
+ opacity: .5; }
889
+ 20% {
890
+ opacity: 1;
891
+ -o-transform: translateY(0);
892
+ transform: translateY(0); }
893
+ 80% {
894
+ opacity: 1;
895
+ -o-transform: translateY(0);
896
+ transform: translateY(0); }
897
+ 90% {
898
+ opacity: .5; }
899
+ 100% {
900
+ opacity: 0;
901
+ -o-transform: translateY(145%);
902
+ transform: translateY(145%); } }
903
+
904
+ @keyframes ball-fall {
905
+ 0% {
906
+ opacity: 0;
907
+ -webkit-transform: translateY(-145%);
908
+ -moz-transform: translateY(-145%);
909
+ -o-transform: translateY(-145%);
910
+ transform: translateY(-145%); }
911
+ 10% {
912
+ opacity: .5; }
913
+ 20% {
914
+ opacity: 1;
915
+ -webkit-transform: translateY(0);
916
+ -moz-transform: translateY(0);
917
+ -o-transform: translateY(0);
918
+ transform: translateY(0); }
919
+ 80% {
920
+ opacity: 1;
921
+ -webkit-transform: translateY(0);
922
+ -moz-transform: translateY(0);
923
+ -o-transform: translateY(0);
924
+ transform: translateY(0); }
925
+ 90% {
926
+ opacity: .5; }
927
+ 100% {
928
+ opacity: 0;
929
+ -webkit-transform: translateY(145%);
930
+ -moz-transform: translateY(145%);
931
+ -o-transform: translateY(145%);
932
+ transform: translateY(145%); } }