From 6c89d9d0c2657708aa812564d49a63daddbb4a6b Mon Sep 17 00:00:00 2001 From: edyonil Date: Wed, 16 Mar 2016 22:03:16 -0300 Subject: [PATCH] Add support controllerAs on routes to AngularJS --- .bower.json | 58 + CHANGELOG.md | 362 + LICENSE | 22 + README.md | 83 + bin/gulp-dynamic-routing.js | 65 + bower.json | 48 + dist/css/foundation-apps.css | 6269 +++++++++++++++++ dist/css/foundation-apps.min.css | 1 + dist/js/foundation-apps-templates.js | 170 + dist/js/foundation-apps-templates.min.js | 1 + dist/js/foundation-apps.js | 3667 ++++++++++ dist/js/foundation-apps.min.js | 2 + iconic/account.svg | 44 + iconic/action.svg | 38 + iconic/ban.svg | 17 + iconic/bell.svg | 22 + iconic/bookmark.svg | 14 + iconic/cart.svg | 35 + iconic/chevron.svg | 28 + iconic/circle-check.svg | 25 + iconic/circle-x.svg | 25 + iconic/cog.svg | 17 + iconic/comment-square.svg | 14 + iconic/dashboard.svg | 38 + iconic/document.svg | 28 + iconic/envelope.svg | 44 + iconic/flag.svg | 24 + iconic/home.svg | 28 + iconic/lock.svg | 55 + iconic/magnifying-glass.svg | 26 + iconic/person.svg | 62 + iconic/reload.svg | 19 + iconic/share-boxed.svg | 17 + iconic/star.svg | 14 + iconic/thumb.svg | 38 + iconic/zoom.svg | 56 + js/angular/app.js | 35 + .../components/accordion/accordion-item.html | 4 + .../components/accordion/accordion.html | 2 + js/angular/components/accordion/accordion.js | 107 + .../actionsheet/actionsheet-button.html | 6 + .../actionsheet/actionsheet-content.html | 8 + .../components/actionsheet/actionsheet.html | 3 + .../components/actionsheet/actionsheet.js | 255 + js/angular/components/common/common.js | 216 + js/angular/components/iconic/iconic.js | 260 + .../components/interchange/interchange.js | 261 + js/angular/components/modal/modal.html | 9 + js/angular/components/modal/modal.js | 324 + .../notification/notification-set.html | 9 + .../notification/notification-static.html | 12 + .../components/notification/notification.html | 12 + .../components/notification/notification.js | 426 ++ .../components/offcanvas/offcanvas.html | 5 + js/angular/components/offcanvas/offcanvas.js | 102 + js/angular/components/panel/panel.html | 6 + js/angular/components/panel/panel.js | 166 + js/angular/components/popup/popup.html | 2 + js/angular/components/popup/popup.js | 160 + js/angular/components/tabs/tab-content.html | 8 + js/angular/components/tabs/tab.html | 3 + js/angular/components/tabs/tabs.html | 8 + js/angular/components/tabs/tabs.js | 311 + js/angular/foundation.js | 22 + .../services/foundation.core.animation.js | 146 + js/angular/services/foundation.core.js | 187 + .../foundation.dynamicRouting.animations.js | 125 + .../services/foundation.dynamicRouting.js | 167 + js/angular/services/foundation.mediaquery.js | 306 + js/angular/vendor/markdown.js | 10 + js/angular/vendor/svgDirs.js | 101 + js/vendor/iconic.min.js | 6 + scss/_global.scss | 131 + scss/_settings.scss | 614 ++ scss/components/_accordion.scss | 72 + scss/components/_action-sheet.scss | 265 + scss/components/_block-list.scss | 360 + scss/components/_button-group.scss | 197 + scss/components/_button.scss | 205 + scss/components/_card.scss | 93 + scss/components/_extras.scss | 54 + scss/components/_forms.scss | 460 ++ scss/components/_grid.scss | 419 ++ scss/components/_iconic.scss | 95 + scss/components/_label.scss | 134 + scss/components/_list.scss | 19 + scss/components/_menu-bar.scss | 382 + scss/components/_modal.scss | 129 + scss/components/_motion.scss | 525 ++ scss/components/_notification.scss | 207 + scss/components/_off-canvas.scss | 169 + scss/components/_panel.scss | 133 + scss/components/_popup.scss | 68 + scss/components/_switch.scss | 134 + scss/components/_tabs.scss | 100 + scss/components/_title-bar.scss | 135 + scss/components/_typography.scss | 345 + scss/components/_utilities.scss | 160 + scss/foundation.scss | 50 + scss/helpers/_breakpoints.scss | 154 + scss/helpers/_functions.scss | 343 + scss/helpers/_images.scss | 19 + scss/helpers/_mixins.scss | 123 + scss/vendor/_normalize.scss | 424 ++ 104 files changed, 21984 insertions(+) create mode 100644 .bower.json create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100755 README.md create mode 100644 bin/gulp-dynamic-routing.js create mode 100755 bower.json create mode 100755 dist/css/foundation-apps.css create mode 100755 dist/css/foundation-apps.min.css create mode 100644 dist/js/foundation-apps-templates.js create mode 100644 dist/js/foundation-apps-templates.min.js create mode 100755 dist/js/foundation-apps.js create mode 100755 dist/js/foundation-apps.min.js create mode 100755 iconic/account.svg create mode 100755 iconic/action.svg create mode 100755 iconic/ban.svg create mode 100755 iconic/bell.svg create mode 100755 iconic/bookmark.svg create mode 100755 iconic/cart.svg create mode 100755 iconic/chevron.svg create mode 100755 iconic/circle-check.svg create mode 100755 iconic/circle-x.svg create mode 100755 iconic/cog.svg create mode 100755 iconic/comment-square.svg create mode 100755 iconic/dashboard.svg create mode 100755 iconic/document.svg create mode 100755 iconic/envelope.svg create mode 100755 iconic/flag.svg create mode 100755 iconic/home.svg create mode 100755 iconic/lock.svg create mode 100755 iconic/magnifying-glass.svg create mode 100755 iconic/person.svg create mode 100755 iconic/reload.svg create mode 100755 iconic/share-boxed.svg create mode 100755 iconic/star.svg create mode 100755 iconic/thumb.svg create mode 100755 iconic/zoom.svg create mode 100644 js/angular/app.js create mode 100644 js/angular/components/accordion/accordion-item.html create mode 100644 js/angular/components/accordion/accordion.html create mode 100644 js/angular/components/accordion/accordion.js create mode 100644 js/angular/components/actionsheet/actionsheet-button.html create mode 100644 js/angular/components/actionsheet/actionsheet-content.html create mode 100644 js/angular/components/actionsheet/actionsheet.html create mode 100644 js/angular/components/actionsheet/actionsheet.js create mode 100644 js/angular/components/common/common.js create mode 100644 js/angular/components/iconic/iconic.js create mode 100644 js/angular/components/interchange/interchange.js create mode 100644 js/angular/components/modal/modal.html create mode 100644 js/angular/components/modal/modal.js create mode 100644 js/angular/components/notification/notification-set.html create mode 100644 js/angular/components/notification/notification-static.html create mode 100644 js/angular/components/notification/notification.html create mode 100644 js/angular/components/notification/notification.js create mode 100644 js/angular/components/offcanvas/offcanvas.html create mode 100644 js/angular/components/offcanvas/offcanvas.js create mode 100644 js/angular/components/panel/panel.html create mode 100644 js/angular/components/panel/panel.js create mode 100644 js/angular/components/popup/popup.html create mode 100644 js/angular/components/popup/popup.js create mode 100644 js/angular/components/tabs/tab-content.html create mode 100644 js/angular/components/tabs/tab.html create mode 100644 js/angular/components/tabs/tabs.html create mode 100644 js/angular/components/tabs/tabs.js create mode 100644 js/angular/foundation.js create mode 100644 js/angular/services/foundation.core.animation.js create mode 100644 js/angular/services/foundation.core.js create mode 100644 js/angular/services/foundation.dynamicRouting.animations.js create mode 100644 js/angular/services/foundation.dynamicRouting.js create mode 100644 js/angular/services/foundation.mediaquery.js create mode 100644 js/angular/vendor/markdown.js create mode 100755 js/angular/vendor/svgDirs.js create mode 100755 js/vendor/iconic.min.js create mode 100755 scss/_global.scss create mode 100644 scss/_settings.scss create mode 100644 scss/components/_accordion.scss create mode 100644 scss/components/_action-sheet.scss create mode 100644 scss/components/_block-list.scss create mode 100644 scss/components/_button-group.scss create mode 100644 scss/components/_button.scss create mode 100644 scss/components/_card.scss create mode 100644 scss/components/_extras.scss create mode 100755 scss/components/_forms.scss create mode 100644 scss/components/_grid.scss create mode 100644 scss/components/_iconic.scss create mode 100644 scss/components/_label.scss create mode 100755 scss/components/_list.scss create mode 100644 scss/components/_menu-bar.scss create mode 100644 scss/components/_modal.scss create mode 100644 scss/components/_motion.scss create mode 100644 scss/components/_notification.scss create mode 100644 scss/components/_off-canvas.scss create mode 100644 scss/components/_panel.scss create mode 100644 scss/components/_popup.scss create mode 100644 scss/components/_switch.scss create mode 100644 scss/components/_tabs.scss create mode 100644 scss/components/_title-bar.scss create mode 100755 scss/components/_typography.scss create mode 100755 scss/components/_utilities.scss create mode 100755 scss/foundation.scss create mode 100644 scss/helpers/_breakpoints.scss create mode 100755 scss/helpers/_functions.scss create mode 100644 scss/helpers/_images.scss create mode 100644 scss/helpers/_mixins.scss create mode 100644 scss/vendor/_normalize.scss diff --git a/.bower.json b/.bower.json new file mode 100644 index 00000000..d2cfb249 --- /dev/null +++ b/.bower.json @@ -0,0 +1,58 @@ +{ + "name": "foundation-apps", + "main": [ + "scss/foundation.scss", + "dist/js/foundation-apps.js", + "dist/js/foundation-apps-templates.js" + ], + "dependencies": { + "viewport-units-buggyfill": "~0.4.1", + "tether": "~0.6.5", + "fastclick": "~1.0.6", + "angular": "1.3.x - 1.4.x", + "angular-ui-router": "~0.2.12", + "angular-animate": "~1.4.7", + "hammerjs": "~2.0.4" + }, + "homepage": "https://github.com/zurb/foundation-apps", + "description": "A responsive, Angular-powered framework for web apps from ZURB.", + "keywords": [ + "web apps", + "responsive design", + "angular" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "bower_components", + "build", + "docs", + "node_modules", + "tests", + "CONTRIBUTING.md", + "Gemfile", + "Gemfile.lock", + "gulpfile.js", + "karma.conf.js", + "package.json", + "scss/_includes.scss" + ], + "devDependencies": { + "angular-mocks": "~1.4.7", + "angular-highlightjs": "~0.4.3", + "allmighty-autocomplete": "*", + "marked": "~0.3.2", + "jsdiff": "~1.0.8", + "bootcamp": "~1.1.7" + }, + "version": "1.2.0", + "_release": "1.2.0", + "_resolution": { + "type": "version", + "tag": "v1.2.0", + "commit": "aeb6a9dd4debde3449cf9415da3820deb973c30f" + }, + "_source": "git://github.com/zurb/foundation-apps.git", + "_target": "~1.2.0", + "_originalSource": "foundation-apps" +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..6189d190 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,362 @@ +# Version 1.2 – Eiger + +### What's in Store? + +**We're planning a 1.3 release to transition between version 1.x and 2.x of Foundation for Apps.** Here's our current plan for 1.3: + +- The visual styles of many components will be improved. In many places we'll be bringing the styles more in line with Foundation for Sites 6. + - New Foundation for Apps projects will automatically get these styles. + - Existing projects will be able to opt-in to the new styles by changing a Sass variable. +- The built-in motion module will be replaced with the external [Motion UI](https://github.com/zurb/motion-ui) library. + - The existing motion Sass file (`scss/components/_motion.scss`) will be removed. + - Transition class names have changed from `.camelCase` to `.kebab-case`. + - The syntax for existing transition and animation mixins has changed. Check out the [Motion UI documentation](https://github.com/zurb/motion-ui/tree/master/docs) for more details. + - New Foundation for Apps projects will include Motion UI as a dependency. +- The dynamic routing module, now branded [Front Router](https://github.com/zurb/front-router), has been moved to an external Node library. + - New Foundation for Apps projects are currently referencing this library. + - In 1.5, the existing built-in library will be removed. +- The Sass files will be rearranged to match the structure of [Foundation for Sites 6](https://github.com/zurb/foundation-sites/tree/develop/scss). + - The upgrade path will be relatively straightforward—you just need to change around some `@import` paths. +- RTL support will be added. + +### General + +- Updated to Angular 1.4. +- Updated to FastClick 1.0.6. +- Updated to Normalize.css 3.0.3. +- Added the precompiled Angular templates to `bower.json`'s `main` section. #534 +- Added forms to the export list. Previously, the CSS would output no matter what. #544 +- FastClick and viewport-units-buggyfill are now initialized within the Foundation code, which means you can remove it from your app's `run()` method. +- Thanks to a few pull requests from @erikmellum, Foundation for Apps now works in Electron! + +### Features + +- **Interchange directives.** @soumak77 put together a set of `ng-if`-like directives that respond to media queries, like so: + +```html +
+
+``` + +- **Animation methods with promises.** `FoundationApi.animateAndAdvise` allows you to animate an element and get a promise back, which resolves when the animation finishes. +- **Click outside of things to close them!** Panels and off-canvas menus can be configured to be closed when they're clicked/tapped outside of. To enable it, add the directive `zf-close-all` to the `` element. #430 +- Front Router now outputs an entire Angular module instead of a global variable, to avoid polluting the global namespace. +- Added the method `.isActive` to `ModalFactory`, which tells you if a modal is open. #580 + +### Bug Fixes + +- Grid blocks with the `.shrink` class can no longer scroll. #568 +- Prevent JavaScript errors if an app loads without any CSS, such as when being loaded in a headless browser. #596 +- Fixed an "apply already in progress" error with action sheets. #558 +- Fixed a sizing issue in IE10 and 11 with grid items that used the `.up-*` grid classes. +- Fixed Iconic images not working with Angular directives. #569 +- Prevent JavaScript errors when not using Front Router. #583 +- Fixed various menu issues related to alignment and Flexbox properties. #567 +- Fixed text inputs inside block lists having cut off text in Firefox. #566 +- Added `overflow-y: visible` to menu bar, to make working with dropdowns easier. #520 +- Modals now properly publish a `close` event when the overlay is hidden. #540 +- Fixed JavaScript errors popping up when clicking on elements inside of a panel. #548 +- Fixed arrows in `` element with the `disabled` or `readonly` attributes, or a `
` with `disabled`. The styles can also be added manually by adding the `.disabled` class. +- #475: The path the `zf-iconic` directive uses to search for icon files can now be changed width the `IconicProvider` provider. Use `IconicProvider.setAssetPath(path)` to set the path. Thanks to @gjungb for implementing this! +- #495: The front matter routing plugin now supports ui-router's abstract states. Just add `abstract: true` to a view template to make it go. +- Added support for ngAnimate's "show" and "hide" events. This means you can now use Motion UI classes with `ng-show` and `ng-hide`. +- Added a `.noscroll` class for grid blocks and content blocks. I bet you can guess what it does! +- You can now pass a scope to a modal created with `ModalFactory`, by passing it through the `contentScope` property on the modal's configuration object. + +### Bug Fixes + +- #191: `` elements are properly styled in Internet Explorer 10+. +- #396: Prevent a `$digest already in progress` error from occuring with panels and off-canvas. +- #397: The `FoundationApi` service now has an `unsubscribe` method, which allows us to remove event listeners from elements that have been removed from the DOM. +- #467: The settings variables for buttons were placed above button group, which prevents an issue with undefined variables. +- #472: Fixed the `color` attribute of static notifications not applying. +- #478: Fixed an issue with modals where `scope.$root` could be `null` after a state change. +- #483: Fixed notifications with `autoclose` not automatically closing under some circumstances. +- #486: The `ModalFactory` factory will fetch the modal template before initialization. +- #489: Deprecated `$panel-animation-speed`, an unused Sass variable for panels. It will be removed in a future version of the framework. +- #511: Panels that have converted into a block won't play their in/out animations if triggered by an open or close event. +- #530: Visibility classes will not conflict with Angular's `.ng-hide` class. +- The `