From 731520488033961f7270758d54b272225859e382 Mon Sep 17 00:00:00 2001 From: jacestk Date: Thu, 20 Jul 2017 13:18:59 +0400 Subject: [PATCH 1/2] Ie11 fixes Fixes for displaying AngularJS style in IE11 replace style="css{angular}" by ng-style="{angular}css" --- deck/appinfo/app.php | 25 + deck/css/legacy.scss | 24 + deck/css/style.css | 1 + deck/js/app/Run.js | 76 + .../angular-markdown-it/dist/ng-markdownit.js | 61 + deck/js/vendor/angular-ui-router/CHANGELOG.md | 1489 +++ .../vendor/angular-ui-select/CONTRIBUTING.md | 163 + deck/js/vendor/angular/package.json | 25 + deck/js/vendor/es6-shim/test-sham/index.html | 23 + .../vendor/jquery-timepicker/MIT-LICENSE.txt | 20 + deck/js/vendor/jquery-timepicker/README.md | 30 + .../include/ui-1.10.0/jquery.ui.core.min.js | 5 + .../ui-bg_diagonals-thick_20_666666_40x40.png | Bin 0 -> 251 bytes .../ui-bg_gloss-wave_35_f6a828_500x100.png | Bin 0 -> 3762 bytes .../jquery-ui-1.10.0.custom.min.css | 5 + .../jquery-timepicker/jquery.ui.timepicker.js | 1496 +++ .../legacy_1.2.6/jquery-1.2.6.js | 3549 +++++++ .../legacy_1.2.6/jquery.proxy.fix.js | 44 + .../legacy_1.2.6/jquery.ui.1.6.all.js | 8862 +++++++++++++++++ .../jquery-timepicker/tests/dialog.html | 39 + .../tests/jquery.ui.dialog.min.js | 40 + .../vendor/jquery-timepicker/timepicker.png | Bin 0 -> 7865 bytes deck/js/vendor/jquery/src/attributes.js | 13 + deck/js/vendor/jquery/src/core/nodeName.js | 13 + .../vendor/jquery/src/core/readyException.js | 13 + deck/js/vendor/jquery/src/deprecated.js | 40 + deck/js/vendor/jquery/src/event.js | 746 ++ deck/js/vendor/jquery/src/event/alias.js | 29 + deck/js/vendor/jquery/src/exports/global.js | 34 + deck/js/vendor/jquery/src/var/class2type.js | 6 + .../vendor/jquery/src/var/documentElement.js | 7 + deck/js/vendor/jquery/src/var/indexOf.js | 7 + deck/js/vendor/jquery/src/var/rcssNum.js | 9 + deck/js/vendor/js-url/README.md | 114 + deck/js/vendor/js-url/bower.json | 27 + deck/js/vendor/js-url/url-tld.min.js | 1 + deck/js/vendor/js-url/url.js | 199 + deck/js/vendor/js-url/url.min.js | 1 + .../vendor/markdown-it-checkbox/CHANGELOG.md | 9 + .../markdown-it-checkbox/Gulpfile.coffee | 30 + deck/js/vendor/markdown-it-checkbox/LICENSE | 21 + deck/js/vendor/markdown-it-checkbox/README.md | 101 + .../js/vendor/markdown-it-checkbox/bower.json | 27 + .../markdown-it-checkbox/coffeelint.json | 42 + .../dist/markdown-it-checkbox.js | 99 + .../dist/markdown-it-checkbox.min.js | 2 + .../vendor/markdown-it-checkbox/package.json | 38 + .../js/vendor/markdown-it-link-target/LICENSE | 21 + .../vendor/markdown-it-link-target/README.md | 44 + .../vendor/markdown-it-link-target/bower.json | 24 + .../dist/markdown-it-link-target.js | 34 + .../dist/markdown-it-link-target.min.js | 1 + .../vendor/markdown-it-link-target/index.js | 30 + .../markdown-it-link-target/package.json | 59 + deck/js/vendor/markdown-it/CHANGELOG.md | 350 + deck/js/vendor/markdown-it/CONTRIBUTING.md | 15 + deck/js/vendor/markdown-it/LICENSE | 22 + deck/js/vendor/markdown-it/README.md | 292 + deck/js/vendor/markdown-it/bower.json | 28 + .../js/vendor/markdown-it/dist/markdown-it.js | 7697 ++++++++++++++ .../markdown-it/dist/markdown-it.min.js | 5 + deck/js/vendor/markdown-it/package.json | 64 + deck/js/vendor/momentjs/CHANGELOG.md | 737 ++ deck/js/vendor/momentjs/LICENSE | 22 + deck/js/vendor/momentjs/locale/af.js | 73 + deck/js/vendor/momentjs/locale/ar-dz.js | 59 + deck/js/vendor/momentjs/locale/ar-ly.js | 126 + deck/js/vendor/momentjs/locale/ar-ma.js | 60 + deck/js/vendor/momentjs/locale/ar-sa.js | 105 + deck/js/vendor/momentjs/locale/ar-tn.js | 59 + deck/js/vendor/momentjs/locale/ar.js | 142 + deck/js/vendor/momentjs/locale/az.js | 105 + deck/js/vendor/momentjs/locale/be.js | 134 + deck/js/vendor/momentjs/locale/bg.js | 90 + deck/js/vendor/momentjs/locale/bn.js | 119 + deck/js/vendor/momentjs/locale/bo.js | 119 + deck/js/vendor/momentjs/locale/br.js | 108 + deck/js/vendor/momentjs/locale/bs.js | 143 + deck/js/vendor/momentjs/locale/ca.js | 81 + deck/js/vendor/momentjs/locale/cs.js | 172 + deck/js/vendor/momentjs/locale/cv.js | 63 + deck/js/vendor/momentjs/locale/cy.js | 81 + deck/js/vendor/momentjs/locale/da.js | 60 + deck/js/vendor/momentjs/locale/de-at.js | 79 + deck/js/vendor/momentjs/locale/de.js | 78 + deck/js/vendor/momentjs/locale/el.js | 98 + deck/js/vendor/momentjs/locale/en-au.js | 67 + deck/js/vendor/momentjs/locale/en-ca.js | 63 + deck/js/vendor/momentjs/locale/en-gb.js | 67 + deck/js/vendor/momentjs/locale/en-ie.js | 67 + deck/js/vendor/momentjs/locale/en-nz.js | 67 + deck/js/vendor/momentjs/locale/eo.js | 73 + deck/js/vendor/momentjs/locale/es-do.js | 80 + deck/js/vendor/momentjs/locale/es.js | 81 + deck/js/vendor/momentjs/locale/et.js | 80 + deck/js/vendor/momentjs/locale/eu.js | 66 + deck/js/vendor/momentjs/locale/fa.js | 107 + deck/js/vendor/momentjs/locale/fi.js | 107 + deck/js/vendor/momentjs/locale/nl-be.js | 86 + deck/l10n/fi.js | 42 + 100 files changed, 30257 insertions(+) create mode 100644 deck/appinfo/app.php create mode 100644 deck/css/legacy.scss create mode 100644 deck/css/style.css create mode 100644 deck/js/app/Run.js create mode 100644 deck/js/vendor/angular-markdown-it/dist/ng-markdownit.js create mode 100644 deck/js/vendor/angular-ui-router/CHANGELOG.md create mode 100644 deck/js/vendor/angular-ui-select/CONTRIBUTING.md create mode 100644 deck/js/vendor/angular/package.json create mode 100644 deck/js/vendor/es6-shim/test-sham/index.html create mode 100644 deck/js/vendor/jquery-timepicker/MIT-LICENSE.txt create mode 100644 deck/js/vendor/jquery-timepicker/README.md create mode 100644 deck/js/vendor/jquery-timepicker/include/ui-1.10.0/jquery.ui.core.min.js create mode 100644 deck/js/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png create mode 100644 deck/js/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png create mode 100644 deck/js/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/jquery-ui-1.10.0.custom.min.css create mode 100644 deck/js/vendor/jquery-timepicker/jquery.ui.timepicker.js create mode 100644 deck/js/vendor/jquery-timepicker/legacy_1.2.6/jquery-1.2.6.js create mode 100644 deck/js/vendor/jquery-timepicker/legacy_1.2.6/jquery.proxy.fix.js create mode 100644 deck/js/vendor/jquery-timepicker/legacy_1.2.6/jquery.ui.1.6.all.js create mode 100644 deck/js/vendor/jquery-timepicker/tests/dialog.html create mode 100644 deck/js/vendor/jquery-timepicker/tests/jquery.ui.dialog.min.js create mode 100644 deck/js/vendor/jquery-timepicker/timepicker.png create mode 100644 deck/js/vendor/jquery/src/attributes.js create mode 100644 deck/js/vendor/jquery/src/core/nodeName.js create mode 100644 deck/js/vendor/jquery/src/core/readyException.js create mode 100644 deck/js/vendor/jquery/src/deprecated.js create mode 100644 deck/js/vendor/jquery/src/event.js create mode 100644 deck/js/vendor/jquery/src/event/alias.js create mode 100644 deck/js/vendor/jquery/src/exports/global.js create mode 100644 deck/js/vendor/jquery/src/var/class2type.js create mode 100644 deck/js/vendor/jquery/src/var/documentElement.js create mode 100644 deck/js/vendor/jquery/src/var/indexOf.js create mode 100644 deck/js/vendor/jquery/src/var/rcssNum.js create mode 100644 deck/js/vendor/js-url/README.md create mode 100644 deck/js/vendor/js-url/bower.json create mode 100644 deck/js/vendor/js-url/url-tld.min.js create mode 100644 deck/js/vendor/js-url/url.js create mode 100644 deck/js/vendor/js-url/url.min.js create mode 100644 deck/js/vendor/markdown-it-checkbox/CHANGELOG.md create mode 100644 deck/js/vendor/markdown-it-checkbox/Gulpfile.coffee create mode 100644 deck/js/vendor/markdown-it-checkbox/LICENSE create mode 100644 deck/js/vendor/markdown-it-checkbox/README.md create mode 100644 deck/js/vendor/markdown-it-checkbox/bower.json create mode 100644 deck/js/vendor/markdown-it-checkbox/coffeelint.json create mode 100644 deck/js/vendor/markdown-it-checkbox/dist/markdown-it-checkbox.js create mode 100644 deck/js/vendor/markdown-it-checkbox/dist/markdown-it-checkbox.min.js create mode 100644 deck/js/vendor/markdown-it-checkbox/package.json create mode 100644 deck/js/vendor/markdown-it-link-target/LICENSE create mode 100644 deck/js/vendor/markdown-it-link-target/README.md create mode 100644 deck/js/vendor/markdown-it-link-target/bower.json create mode 100644 deck/js/vendor/markdown-it-link-target/dist/markdown-it-link-target.js create mode 100644 deck/js/vendor/markdown-it-link-target/dist/markdown-it-link-target.min.js create mode 100644 deck/js/vendor/markdown-it-link-target/index.js create mode 100644 deck/js/vendor/markdown-it-link-target/package.json create mode 100644 deck/js/vendor/markdown-it/CHANGELOG.md create mode 100644 deck/js/vendor/markdown-it/CONTRIBUTING.md create mode 100644 deck/js/vendor/markdown-it/LICENSE create mode 100644 deck/js/vendor/markdown-it/README.md create mode 100644 deck/js/vendor/markdown-it/bower.json create mode 100644 deck/js/vendor/markdown-it/dist/markdown-it.js create mode 100644 deck/js/vendor/markdown-it/dist/markdown-it.min.js create mode 100644 deck/js/vendor/markdown-it/package.json create mode 100644 deck/js/vendor/momentjs/CHANGELOG.md create mode 100644 deck/js/vendor/momentjs/LICENSE create mode 100644 deck/js/vendor/momentjs/locale/af.js create mode 100644 deck/js/vendor/momentjs/locale/ar-dz.js create mode 100644 deck/js/vendor/momentjs/locale/ar-ly.js create mode 100644 deck/js/vendor/momentjs/locale/ar-ma.js create mode 100644 deck/js/vendor/momentjs/locale/ar-sa.js create mode 100644 deck/js/vendor/momentjs/locale/ar-tn.js create mode 100644 deck/js/vendor/momentjs/locale/ar.js create mode 100644 deck/js/vendor/momentjs/locale/az.js create mode 100644 deck/js/vendor/momentjs/locale/be.js create mode 100644 deck/js/vendor/momentjs/locale/bg.js create mode 100644 deck/js/vendor/momentjs/locale/bn.js create mode 100644 deck/js/vendor/momentjs/locale/bo.js create mode 100644 deck/js/vendor/momentjs/locale/br.js create mode 100644 deck/js/vendor/momentjs/locale/bs.js create mode 100644 deck/js/vendor/momentjs/locale/ca.js create mode 100644 deck/js/vendor/momentjs/locale/cs.js create mode 100644 deck/js/vendor/momentjs/locale/cv.js create mode 100644 deck/js/vendor/momentjs/locale/cy.js create mode 100644 deck/js/vendor/momentjs/locale/da.js create mode 100644 deck/js/vendor/momentjs/locale/de-at.js create mode 100644 deck/js/vendor/momentjs/locale/de.js create mode 100644 deck/js/vendor/momentjs/locale/el.js create mode 100644 deck/js/vendor/momentjs/locale/en-au.js create mode 100644 deck/js/vendor/momentjs/locale/en-ca.js create mode 100644 deck/js/vendor/momentjs/locale/en-gb.js create mode 100644 deck/js/vendor/momentjs/locale/en-ie.js create mode 100644 deck/js/vendor/momentjs/locale/en-nz.js create mode 100644 deck/js/vendor/momentjs/locale/eo.js create mode 100644 deck/js/vendor/momentjs/locale/es-do.js create mode 100644 deck/js/vendor/momentjs/locale/es.js create mode 100644 deck/js/vendor/momentjs/locale/et.js create mode 100644 deck/js/vendor/momentjs/locale/eu.js create mode 100644 deck/js/vendor/momentjs/locale/fa.js create mode 100644 deck/js/vendor/momentjs/locale/fi.js create mode 100644 deck/js/vendor/momentjs/locale/nl-be.js create mode 100644 deck/l10n/fi.js diff --git a/deck/appinfo/app.php b/deck/appinfo/app.php new file mode 100644 index 000000000..3dc7fc82d --- /dev/null +++ b/deck/appinfo/app.php @@ -0,0 +1,25 @@ + + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +$app = new \OCA\Deck\AppInfo\Application(); +$app->registerNavigationEntry(); diff --git a/deck/css/legacy.scss b/deck/css/legacy.scss new file mode 100644 index 000000000..e99022075 --- /dev/null +++ b/deck/css/legacy.scss @@ -0,0 +1,24 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +@import '../../../core/css/variables.scss'; +@import 'style.scss'; diff --git a/deck/css/style.css b/deck/css/style.css new file mode 100644 index 000000000..d4eead7da --- /dev/null +++ b/deck/css/style.css @@ -0,0 +1 @@ +button,.button,.app-deck .icon{display:flex}button.button-inline,.button.button-inline,.app-deck .icon.button-inline{border:0;background-color:transparent}button.button-inline:hover,.button.button-inline:hover,.app-deck .icon.button-inline:hover{border:0;background-color:transparent}input.input-inline{font-size:inherit !important;font-weight:inherit;background-color:transparent;padding:0;border:none;width:100%;-webkit-border-radius:0}#searchbox{display:flex !important}.editable-inline{cursor:text}.app-navigation-entry-menu ul{flex-direction:row}#app-navigation .app-navigation-entry-edit{height:auto}#app-navigation .app-navigation-entry-edit .colorselect div{height:32px}#app-navigation .app-navigation-entry-edit form{display:flex}#app-navigation .board-bullet{position:absolute;margin-left:17px;margin-top:16px;width:12px;height:12px;border:none;border-radius:50%;cursor:pointer}#app-navigation .app-navigation-entry-utils .app-navigation-entry-utils-menu-button{display:block !important}#app-navigation .app-navigation-entry-utils .app-navigation-entry-utils-menu-share{display:flex !important;padding:14px;opacity:0.5}#app-navigation .app-navigation-entry-menu ul{flex-direction:row}#board-status{position:absolute;z-index:999;width:100%;height:100%;background-color:#fff}#board{position:absolute;white-space:nowrap;overflow:auto;z-index:100;width:100%;bottom:0px;top:44px}#innerBoard{padding:10px}#innerBoard>.as-sortable-placeholder{display:inline-block !important;margin-top:0;margin-left:0}#controls{width:inherit;z-index:120;display:flex;align-items:center;font-size:14pt;position:inherit;width:100% !important;padding-left:44px}#controls .crumb,#controls #controls a{top:12px}#controls>h1{white-space:nowrap;padding:7px}#controls button{height:inherit}#controls input[type='text']{padding:6px;border:0px none transparent;min-height:initial;background-color:transparent;height:inherit}#controls .icon-home{background-position:8px center;padding:10px 24px 10px 14px}#app-navigation-toggle{width:44px;height:44px;cursor:pointer;opacity:1;display:inline-block !important;position:fixed}.board-header-controls{margin-left:auto;align-items:center}.board-header-controls.app-popover-menu-utils{display:flex}.board-header-controls.app-popover-menu-utils #popover-controls{display:flex;align-items:center}.board-header-controls.app-popover-menu-utils .popovermenu{margin-top:35px;margin-right:6px}.board-header-controls>button{padding:16px 20px}.filter-select{position:absolute;right:auto;top:42px;left:-21%}.filter-select li{padding:3px;overflow:hidden;width:auto}.filter-select li span{display:block;float:left;width:20px;height:20px;margin-right:5px}#stack-add{background-color:#f5f5f5;border-radius:3px;margin:3px;display:flex;align-content:center}#stack-add>form{display:flex;align-content:center}#stack-add input:invalid,#stack-add input:-moz-submit-invalid,#stack-add input:-moz-ui-invalid{box-shadow:none}.stack{width:100%;vertical-align:top}.stack h2{padding:10px 10px 8px;margin:0;font-size:12pt;font-weight:700;overflow:hidden;display:flex;min-height:40px}.stack h2:hover button{display:flex}.stack h2 input{padding:0;width:100%;margin:0;font-size:12pt;font-weight:700;border:0;background-color:#fff;min-height:initial}.stack h2 span{white-space:normal;overflow:hidden;text-overflow:ellipsis}.stack h2 button{margin-left:auto;display:flex;opacity:0.3;padding-right:0}.stack form{width:100%}.card{background-color:#fff;margin:10px;white-space:normal;position:relative;opacity:1.0;-webkit-box-shadow:0 0 5px #adadad}.card.archived .card-upper{opacity:0.5}.card .card-upper{overflow:hidden;position:relative;padding:5px}.card .card-controls{padding:10px;background:#f5f5f5;display:flex;position:relative}.card .card-controls .card-options{opacity:0.3;position:absolute;right:10px;top:8px}.card .card-controls:hover .card-options{opacity:1}.card .card-controls .icon-filetype-text{margin-right:10px}.card .card-controls button{padding:0px;margin-right:0px}.app-popover-menu-utils{margin-left:auto;min-height:16px}.popovermenu{z-index:999;opacity:1;display:block;margin-top:25px;margin-right:0px}.popovermenu.hidden{display:none}.popovermenu ul{display:flex !important;flex-direction:column}.card:hover{background-color:#f5f5f5}.card .card-assignees{margin:5px}.card a{display:block}.card h3{font-weight:bold;font-size:10pt;padding:0;margin:5px;overflow:hidden;text-overflow:ellipsis}.card.has-labels h3{margin-top:15px}.card .labels{position:absolute;top:-5px;left:10px}.card .labels li{padding:0;width:15px;height:20px;-webkit-border-radius:3px;font-size:80%;border:none transparent;float:left}.card .labels li span{display:none}.card .labels li:hover span{position:absolute;padding:3px;background-color:inherit}.card.create{text-align:center;padding:10px;margin:10px;border:none;overflow:hidden;-webkit-box-shadow:none}.card.create:hover{text-align:center;opacity:1}.card.create h3{width:100%;padding:0;margin:0 0 1px}.card.create h3 input{width:100%;border:0;font-weight:bold;font-size:10pt;margin:0;padding:0;border-bottom:1px solid #fff;border-radius:0;color:#fff;background-color:transparent !important;min-height:initial}.as-sortable-placeholder{margin:10px;border:1px dashed #adadad}.info{padding-left:5px;padding-right:5px;display:inline-block;opacity:0.5}.info i{margin-left:2px}.info span{margin-right:2px}.due{border-radius:3px;margin:-4px 4px -4px -4px;padding:0px 4px;font-size:90%;opacity:0.5;display:flex;align-items:center}.due .icon{background-size:contain}.due.overdue{background-color:#e9322d;color:#fff}.due.overdue .icon-badge{background-image:url("../img/calendar-white.svg")}.due.now{background-color:#fbd850}.due.next{background-color:#fde99b}.due span{margin-left:3px}#app-sidebar{right:-500px;max-width:100%;width:500px;display:flex;flex-direction:column}#app-sidebar.details-visible{right:0}#sidebar-header h2{font-size:14pt;padding:9px 10px;overflow:hidden;margin-bottom:0;background-color:#f5f5f5}#sidebar-header h2 input{min-height:0px;margin:0px}#sidebar-header .icon-close{position:absolute;top:0px;right:0px;padding:14px;height:44px;width:44px}#card-meta{height:100%;display:flex;flex-direction:column;padding:15px}#card-meta .duedate{display:flex;align-content:center;min-height:38px}#card-meta .duedate .timepicker-input{width:50px;border-radius:0px 3px 3px 0px}#card-meta .duedate .datepicker-input{width:85px;margin:3px 0px;border-right:0;border-radius:3px 0px 0px 3px}#card-meta .duedate .icon{opacity:0.5}#card-meta .duedate .icon:hover{opacity:1}#card-meta .select2-container{margin:0px}#card-meta h3{border-bottom:1px solid #f5f5f5;padding:15px 0px 5px 0px}#card-meta h3>div{display:flex;align-content:center;justify-content:space-between}#card-meta .save-indicator{background-color:#46ba61;color:#fff;border-radius:3px;float:right;padding:0px 10px;font-size:8pt !important;display:none;align-self:flex-end}#card-meta .icon-help{opacity:0.5;padding:5px 15px;display:inline}#card-meta #card-dates{font-size:80%;opacity:0.5;text-align:right}#card-meta #card-tag-label{padding-top:0px !important;margin-top:0px}#card-meta #card-description{height:100%;display:flex;flex-direction:column}#card-meta #card-description>div{height:100%}#card-meta #card-description textarea{width:100%;height:200px;border:none;margin:0;padding:0}#card-meta #card-description .container{background-color:#fff}#card-attachments ul{margin:5px}#card-attachments .details{font-size:8pt;padding-left:15px}#app-content{overflow:hidden;display:flex;flex-direction:column}#app-content.details-visible{margin-right:500px}.labels{display:block;overflow:hidden}.labels li{padding:0px 0px 5px 0px;-webkit-border-radius:3px;margin:1px;color:#fff;min-width:20px;display:flex}.colorselect{overflow:hidden;border-radius:3px;flex-direction:row;display:flex}.colorselect .color{opacity:0.7;height:100%;flex-grow:1;border:none}.colorselect .selected{background-image:url("../../../core/img/actions/checkmark.svg");background-position:center center;background-repeat:no-repeat;opacity:1}.colorselect .selected.selected{background-image:url("../../../core/img/actions/checkmark-white.svg")}.labels .colorselect{padding:0;clear:none;overflow:visible}.labels .colorselect .color{width:26px;height:26px}.labels .label-edit{display:flex;width:100%}.labels .label-edit .colorselect{margin:0px 0px 0px 3px}.labels .label-edit input{border-bottom:1px solid #f5f5f5;padding:5px 5px 4px 5px !important}#boardlist{position:absolute;overflow:auto;width:100%;bottom:0px;top:44px}#boardlist thead td{opacity:.5;padding:15px}#boardlist td{padding:0 10px;border-bottom:1px solid #ededed}#boardlist td .board-bullet{width:32px;height:32px;border-radius:50%;cursor:pointer;margin:6px}#boardlist td form{display:flex;width:100%}#boardlist td .colorselect{flex-grow:1}#boardlist td .colorselect div{min-width:32px}#boardlist td input[type=text]{flex-grow:2}#boardlist td input[type=submit]{width:32px}#boardlist td .app-popover-menu-utils{position:relative}#boardlist td .app-popover-menu-utils button{opacity:0.5}#boardlist td .app-popover-menu-utils:hover button{opacity:1}#boardlist .icon{padding:25px;margin:0 0 0 auto}#boardlist tr.deleted td *,#boardlist tbody .board-create td{opacity:0.5}#boardlist .popovermenu{margin-top:5px}#boardlist .board-edit-controls{display:flex}#boardlist input{margin:0px}#boardlist #assigned-users{display:flex}#boardlist #assigned-users .avatardiv{margin:6px}#shareWithList{list-style-type:none;padding:0 0 16px}#shareWithList li{padding-top:5px;padding-bottom:5px;font-weight:bold;white-space:normal;display:flex;align-items:center}#shareWithList .username{padding-right:8px;padding-left:8px;white-space:nowrap;text-overflow:ellipsis;display:inline-block;overflow:hidden;vertical-align:middle}#shareWithList .icon-delete{display:inline-block;background-size:16px 16px;width:16px;height:16px;padding:0;margin-top:5px}#shareWithList .shareOption{margin-top:4px}#shareWithList .avatardiv{background-color:#f5f5f5;border-radius:16px;width:32px;height:32px}#shareWithList .avatardiv .icon-group{padding:16px;opacity:0.5}#board-detail-labels ul li input{margin:0px;padding:5px;min-height:0px}#board-detail-labels ul li .label-title{width:100%;padding:4px;border:none;border-radius:0px 0px 5px 5px}#board-detail-labels ul li a.icon{padding:5px;opacity:0.5}#board-detail-labels ul li a.icon:hover{opacity:1}#board-detail-labels .color{width:28px;height:100%}.label-create{width:100%;padding:0px 56px 0px 0px !important}.label-create a{margin:0px}.label-create .icon{margin-right:10px}.tabHeaders{clear:both;overflow:hidden;margin-bottom:0}.tabsContainer{margin-top:15px}.ui-select-offscreen{display:none}.ui-select-match-item{padding:0;float:left !important;display:block;border-radius:0px 0px 5px 5px !important}.ui-select-match-item .select-label{color:#fff;padding:6px 23px 6px 6px;margin-right:-23px !important}.ui-select-match-item .select2-search-choice-close{z-index:100;position:relative;display:inline-flex !important;margin-right:7px;vertical-align:top}.select2-container-multi .select2-choices .select2-search-choice{padding:3px 0 !important;border:0 !important;overflow:hidden}.ui-select-container[disabled] .ui-select-match-item{margin-right:0 !important}.ui-select-container[disabled] .ui-select-match-item .select-label{padding:4px;min-width:26px !important;height:100%;display:inline-block}.select2-search input{width:100% !important}.select2-result-label{padding:0px !important}.select2-result-label span{display:flex;padding:6px}#markdown{width:100% !important}#markdown p{margin-bottom:15px}#markdown *{white-space:normal;word-wrap:break-word;overflow-wrap:break-word}#markdown a{opacity:0.5;text-decoration:underline}#markdown ol,#markdown ul{margin-left:20px;margin-bottom:10px}#markdown ul{list-style-type:disc}#markdown h1{font-size:18px;font-weight:600;margin-bottom:5px}#markdown h2{font-size:16px;font-weight:600}#markdown h3{font-size:14px;font-weight:600}#markdown h4{font-size:13px;font-weight:600}#markdown h6{font-size:12px;font-weight:600}#markdown pre{background-color:#f5f5f5;padding:3px}@media (min-width: 481px){.board-header-controls{display:flex}.board-header-controls.app-popover-menu-utils{display:none}#innerBoard{display:flex}.stack{width:320px;min-width:320px;display:inline-block;border-right:1px solid #f5f5f5;margin-right:10px;padding-right:10px}.stack:last-child{border-right:1px solid transparent}.stack h2 button{display:none}}.icon-deck{background-image:url("../img/deck-dark.svg")}.icon-group{background-image:url("../../../settings/img/users.svg")}.icon-help{background-image:url("../../../settings/img/help.svg")}.icon-add-white{background-image:url("../img/add-white.svg")}.icon-archive{background-image:url("../img/archive.svg")}.icon-archive-white{background-image:url("../img/archive-white.svg")}.icon-details{background-image:url("../img/details.svg")}.icon-details-white{background-image:url("../img/details-white.svg")}.icon-home{background-image:url("../../../core/img/places/home.svg")}.icon-badge{background-image:url("../../../core/img/places/calendar-dark.svg")}.ui-select-dropdown.select2-drop-active{opacity:1 !important} diff --git a/deck/js/app/Run.js b/deck/js/app/Run.js new file mode 100644 index 000000000..d79c01557 --- /dev/null +++ b/deck/js/app/Run.js @@ -0,0 +1,76 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +app.run(function ($document, $rootScope, $transitions, BoardService) { + 'use strict'; + $document.click(function (event) { + $rootScope.$broadcast('documentClicked', event); + }); + $transitions.onEnter({from: 'list'}, function($state, $transition$) { + BoardService.unsetCurrrent(); + }); + $transitions.onEnter({to: 'list'}, function($state, $transition$) { + BoardService.unsetCurrrent(); + document.title = "Deck - " + oc_defaults.name; + }); + $transitions.onEnter({to: 'board.card'}, function ($state, $transition$) { + $rootScope.sidebar.show = true; + }); + $transitions.onEnter({to: 'board.detail'}, function ($state, $transition$) { + $rootScope.sidebar.show = true; + }); + $transitions.onEnter({to: 'board'}, function ($state) { + $rootScope.sidebar.show = false; + }); + $transitions.onExit({from: 'board.card'}, function ($state) { + $rootScope.sidebar.show = false; + }); + $transitions.onExit({from: 'board.detail'}, function ($state) { + $rootScope.sidebar.show = false; + }); + + $('link[rel="shortcut icon"]').attr( + 'href', + OC.filePath('deck', 'img', 'app-512.png') + ); + + $('#app-navigation-toggle').off('click'); + // App sidebar on mobile + var snapper = new Snap({ + element: document.getElementById('app-content'), + disable: 'right', + maxPosition: 250, + minDragDistance: 100 + }); + + $('#app-navigation-toggle').click(function(){ + if($(window).width() > 768) { + $('#app-navigation').toggle('hidden'); + } else { + if(snapper.state().state === 'left'){ + snapper.close(); + } else { + snapper.open('left'); + } + } + }); +}); diff --git a/deck/js/vendor/angular-markdown-it/dist/ng-markdownit.js b/deck/js/vendor/angular-markdown-it/dist/ng-markdownit.js new file mode 100644 index 000000000..23e0497cd --- /dev/null +++ b/deck/js/vendor/angular-markdown-it/dist/ng-markdownit.js @@ -0,0 +1,61 @@ +(function(window, angular) { + 'use strict'; + function markdownItProvider() { + var options = {}; + var presetName = 'default'; + var plugins = []; + function markdownItFactory(markdownIt) { + var md = markdownIt(presetName, options); + for (var i = 0; i < plugins.length; i += 1) { + md.use.apply(md, plugins[i]); + } + return md; + } + this.config = function configureOptions(preset, opts) { + if (angular.isString(preset) && angular.isObject(opts)) { + presetName = preset; + options = opts; + } else if (angular.isString(preset)) { + presetName = preset; + } else if (angular.isObject(preset)) { + options = preset; + } + }; + this.use = function addPlugin(pluginObject) { + var options = Array.prototype.slice.call(arguments); + plugins.push(options); + return this; + }; + this.$get = [ '$log', function($log) { + var constructor = window.markdownit || markdownit; + if (angular.isFunction(constructor)) { + return markdownItFactory(constructor); + } + $log.error('angular-markdown-it: markdown-it library not loaded.'); + } ]; + } + function markdownItDirective($sanitize, markdownIt) { + var attribute = 'markdownIt'; + var render = function(value) { + return value ? $sanitize(markdownIt.render(value)) : ''; + }; + var link = function(scope, element, attrs) { + if (attrs[attribute]) { + scope.$watch(attribute, function(value) { + element.html(render(value)); + }); + } else { + element.html(render(element.text())); + } + }; + return { + restrict: 'AE', + scope: { + markdownIt: '=' + }, + replace: true, + link: link + }; + } + angular.module('mdMarkdownIt', [ 'ngSanitize' ]).provider('markdownItConverter', markdownItProvider).directive('markdownIt', [ '$sanitize', 'markdownItConverter', markdownItDirective ]); +})(window, window.angular); \ No newline at end of file diff --git a/deck/js/vendor/angular-ui-router/CHANGELOG.md b/deck/js/vendor/angular-ui-router/CHANGELOG.md new file mode 100644 index 000000000..d1d96c1cc --- /dev/null +++ b/deck/js/vendor/angular-ui-router/CHANGELOG.md @@ -0,0 +1,1489 @@ + +## [1.0.4](https://github.com/angular-ui/ui-router/compare/1.0.3...1.0.4) (2017-06-09) + + +### Bug Fixes + +* **bundle:** work around rollup bug https://github.com/rollup/rollup/issues/1322 ([befb50a](https://github.com/angular-ui/ui-router/commit/befb50a)) +* **uiSrefActive:** Avoid "Possibly unhandled rejection" in console ([5c09e28](https://github.com/angular-ui/ui-router/commit/5c09e28)) + + + +### @uirouter/core changes +## [5.0.4](https://github.com/ui-router/core/compare/5.0.3...5.0.4) (2017-06-09) + + +### Bug Fixes + +* **future:** Allow future states to specify a `parent:` ([828fe1b](https://github.com/ui-router/core/commit/828fe1b)) +* **view:** only sync views which are of the same name *and type* ([c48da4a](https://github.com/ui-router/core/commit/c48da4a)) + + +### Features + +* **invalidTransition:** Better error messaging when param values are invalid ([2a15d1a](https://github.com/ui-router/core/commit/2a15d1a)) +* **trace:** Trace view synchronization. Allow trace.enable(...string) ([284392d](https://github.com/ui-router/core/commit/284392d)) + + + + +## [1.0.3](https://github.com/angular-ui/ui-router/compare/1.0.1...1.0.3) (2017-05-07) + + +### Bug Fixes + +* **templateFactory:** Do not prepend x- to attribute names unless necessary. ([e573f06](https://github.com/angular-ui/ui-router/commit/e573f06)) + + +### Features + +* **build:** Publish non-monolithic @uirouter/angularjs UMD bundle `ui-router-angularjs.js` ([8db3696](https://github.com/angular-ui/ui-router/commit/8db3696)) + ** Note: this change is necessary to properly support plugins which depend on @uirouter/core + + + +### @uirouter/core changes +## [5.0.3](https://github.com/ui-router/core/compare/5.0.1...5.0.3) (2017-05-07) + + +### Bug Fixes + +* **common:** Fix implementation of 'pick' -- use hasOwnProperty ([09848a4](https://github.com/ui-router/core/commit/09848a4)) +* **common:** Re-fix implementation of 'pick' using for .. in ([f2da7f4](https://github.com/ui-router/core/commit/f2da7f4)) + + +### Features + +* **build:** Build and distribute @uirouter/core UMD bundles ([0a8da85](https://github.com/ui-router/core/commit/0a8da85)) + + + + +## [1.0.1](https://github.com/angular-ui/ui-router/compare/1.0.0...1.0.1) (2017-05-04) + + +### Bug Fixes + +* **routeToComponent:** Do not prefix component element with `x-` unless necessary. ([60b9ef9](https://github.com/angular-ui/ui-router/commit/60b9ef9)) + + + +# [1.0.0](https://github.com/angular-ui/ui-router/compare/1.0.0-rc.1...1.0.0) (2017-04-30) + + +# NOTICE: The npm package is renamed from `angular-ui-router` to `@uirouter/angularjs` + + +### Bug Fixes + +* **noImplicitAny:** move noimplicitany compliance test file to correct location ([ec6e5e4](https://github.com/angular-ui/ui-router/commit/ec6e5e4)) +* **onEnter:** Fix typescript typing for onEnter/onRetain/onExit ([df6ee24](https://github.com/angular-ui/ui-router/commit/df6ee24)) +* **routeToComponent:** Bind resolves that start with data- or x- ([4559c32](https://github.com/angular-ui/ui-router/commit/4559c32)) +* **StateRegistry:** Allow stateRegistry.register() to take a Ng1StateDeclaration ([cc88525](https://github.com/angular-ui/ui-router/commit/cc88525)), closes [#3345](https://github.com/angular-ui/ui-router/issues/3345) +* **uiCanExit:** Only process uiCanExit hook once during redirects ([7a086ee](https://github.com/angular-ui/ui-router/commit/7a086ee)) +* **uiSref:** replace angular.copy with extend (PR [#3330](https://github.com/angular-ui/ui-router/issues/3330)) ([20d1fcd](https://github.com/angular-ui/ui-router/commit/20d1fcd)), closes [#3189](https://github.com/angular-ui/ui-router/issues/3189) +* **UrlRouterProvider:** export `UrlRouterProvider` symbol for use with .d.ts typings ([d71bad0](https://github.com/angular-ui/ui-router/commit/d71bad0)), closes [#3296](https://github.com/angular-ui/ui-router/issues/3296) +* **view:** Allow targeting nested named ui-view by simple ui-view name ([8fe5b1f](https://github.com/angular-ui/ui-router/commit/8fe5b1f)) +* **views:** Allow same views object to be reused in multiple states ([66103fc](https://github.com/angular-ui/ui-router/commit/66103fc)), closes [#3353](https://github.com/angular-ui/ui-router/issues/3353) +* **views:** Better validation of view declarations (throw when there are state-level and view-level conflicts) ([7573156](https://github.com/angular-ui/ui-router/commit/7573156)) + + +### Features + +* **uiSref:** Bind ui-sref to other DOM events (PR [#3343](https://github.com/angular-ui/ui-router/issues/3343)) ([193ac2e](https://github.com/angular-ui/ui-router/commit/193ac2e)), closes [#3169](https://github.com/angular-ui/ui-router/issues/3169) +* **uiSref:** switch custom events prop from `event:` to `events:` ([d3942a6](https://github.com/angular-ui/ui-router/commit/d3942a6)) + + +UI-Router for AngularJS version 1.0.0 updates `ui-router-core@3.1.0` to `@uirouter/core@5.0.1`. +Please keep reading to see if the breaking changes from core between 3.1.0 and 5.0.1 affect you. + +### @uirouter/core changes +# [5.0.0](https://github.com/ui-router/core/compare/3.1.0...5.0.1) (2017-04-30) + +### Bug Fixes + +* **BrowserLocationConfig:** fixed protocol + port value ([#38](https://github.com/ui-router/core/issues/38)) ([5559382](https://github.com/ui-router/core/commit/5559382)) +* **lazyLoad:** Allow `lazyLoad` stateBuilder: Get lazyLoad fn from internal State object, not StateDeclaration ([9313880](https://github.com/ui-router/core/commit/9313880)) +* **lazyLoad:** Wait for future state to be replaced before registering lazy children ([4bdce47](https://github.com/ui-router/core/commit/4bdce47)) +* **noImplicitAny:** Fix noimplicitany compliance ([1a6cdfc](https://github.com/ui-router/core/commit/1a6cdfc)) +* **pushStateLocation:** call listeners in url() ([#24](https://github.com/ui-router/core/issues/24)) ([7c90911](https://github.com/ui-router/core/commit/7c90911)), closes [#23](https://github.com/ui-router/core/issues/23) +* **redirect:** Do not update URL after redirect with { location: false } ([652a760](https://github.com/ui-router/core/commit/652a760)) +* **resolve:** Allow resolve's state context to be injected as `$state$` ([a06948b](https://github.com/ui-router/core/commit/a06948b)) +* **tfs:** Rename $q.ts and $injector.ts files, removing leading dollar signs ([cb653ee](https://github.com/ui-router/core/commit/cb653ee)) +* **trace:** Re-add transitionStart trace ([b019036](https://github.com/ui-router/core/commit/b019036)) +* **transitionHook:** Do not process transition hooks after router has been disposed. ([666c6d7](https://github.com/ui-router/core/commit/666c6d7)) +* **TransitionHook:** Transition hooks no longer expose the internal StateObject ([2b0e48b](https://github.com/ui-router/core/commit/2b0e48b)) +* **typings:** Allow strictNullChecks for HookMatchCriteria ([d92d4d5](https://github.com/ui-router/core/commit/d92d4d5)) +* **ui-sref:** Improve performance of generating hrefs ([c3967bd](https://github.com/ui-router/core/commit/c3967bd)) +* **view:** Do not throw when uiView doesn't have a state context ([f76ee2a](https://github.com/ui-router/core/commit/f76ee2a)) +* **view:** Update views in order of ui-view depth and also by state depth ([46dea2b](https://github.com/ui-router/core/commit/46dea2b)) + + +### Features + +* **abort:** Add API to manually abort/cancel a transition ([39f8a53](https://github.com/ui-router/core/commit/39f8a53)) +* **common:** Perf improvements in hot functions: ([4193244](https://github.com/ui-router/core/commit/4193244)) +* **core:** Export all vanilla.* code from `ui-router-core` ([f3392d1](https://github.com/ui-router/core/commit/f3392d1)) +* **core:** Switch to [@uirouter](https://github.com/uirouter)/core npm module ([e3f389f](https://github.com/ui-router/core/commit/e3f389f)) +* **decorators:** Add state, resolve and resolve data decorators ([642df0b](https://github.com/ui-router/core/commit/642df0b)) +* **defaultErrorHandler:** Do not invoke default error handler for ABORTED transitions ([b07a24b](https://github.com/ui-router/core/commit/b07a24b)) +* **globals:** Removed `UIRouterGlobals` interface. Renamed `Globals` class to `UIRouterGlobals` ([8719334](https://github.com/ui-router/core/commit/8719334)) +* **Globals:** implement Disposable and delete global transition data ([a794018](https://github.com/ui-router/core/commit/a794018)) +* **onBefore:** Run onBefore hooks asynchronously. ([30b82aa](https://github.com/ui-router/core/commit/30b82aa)) +* **onEnter/Exit/Retain:** Use onExit/onEnter/onRetain from 56955state(), not state.self ([bc1f554](https://github.com/ui-router/core/commit/bc1f554)) +* **Rejection:** Add $id to ease debugging of transition rejections ([d456d54](https://github.com/ui-router/core/commit/d456d54)) +* **State:** Support registration of ES6 state classes (as opposed to object literals) ([3a5d055](https://github.com/ui-router/core/commit/3a5d055)) +* **State:** Switch Internal State Object to prototypally inherit from the State Declaration ([027c995](https://github.com/ui-router/core/commit/027c995)), closes [#34](https://github.com/ui-router/core/issues/34) +* **StateObject:** Rename internal `State` object to `StateObject` ([feceaf9](https://github.com/ui-router/core/commit/feceaf9)) +* **StateRegistry:** improve perf for: `.register()` and `StateMatcher.find()` misses ([fdb3ab9](https://github.com/ui-router/core/commit/fdb3ab9)) +* **transition:** Ignore duplicate transitions (double clicks) ([bd1bd0b](https://github.com/ui-router/core/commit/bd1bd0b)) +* **transition:** Improve supersede logic: Do not supersede if the new trans is aborted before onStart ([3141a8f](https://github.com/ui-router/core/commit/3141a8f)) +* **transition:** Run hooks synchronously in current stack, when possible ([953e618](https://github.com/ui-router/core/commit/953e618)) +* **Transition:** deprecate `Transition.is()` which was never implemented ([1edff4b](https://github.com/ui-router/core/commit/1edff4b)) +* **Transition:** Normalize all transition errors to a Rejection. ([a7464bb](https://github.com/ui-router/core/commit/a7464bb)) +* **UIRouter:** Add `trace` global to the `UIRouter` object ([48c5af6](https://github.com/ui-router/core/commit/48c5af6)) +* **UrlService:** (`UrlRouter`) improve perf of registering Url Rules and sorting Url Rules ([64fbfff](https://github.com/ui-router/core/commit/64fbfff)) +* **UrlService:** Add `rules.initial("/home")` to config initial state (like otherwise) ([bbe4209](https://github.com/ui-router/core/commit/bbe4209)) +* **View:** Allow targeting views on own state using `viewname@.` (normalizeUIViewTarget) ([7078216](https://github.com/ui-router/core/commit/7078216)), closes [#25](https://github.com/ui-router/core/issues/25) + + +### BREAKING CHANGES + +## **TransitionHook:** Transition hooks no longer expose the internal `State` object (now named `StateObject`) + +#### Before: + +```js +import { State } from "ui-router-core"; +const match = { to: (state: State) => state.data.auth }; +transitionsvc.onEnter(match, (trans: Transition, state: State) => { + // state is the internal State object + if (state.includes["foo"]) { // internal ui-router API + return false; + } +} +``` + +#### Now: + +```js +import { StateDeclaration } from "ui-router-core"; +const match = { to: (state: StateDeclaration) => state.data.auth }; +transitionsvc.onEnter(match, (trans: Transition, state: StateDeclaration) => { + // state === the state object you registered + // Access internal ui-router API using $$state() + if (state.$$state().includes["foo"]) { + return false; + } +} +``` + +#### Motivation: + +The `State` object (now named `StateObject`) is an internal API and should not be exposed via any public APIs. +If you depend on the internal APIs, you can still access the internal object by calling `state.$$state()`. + +#### BC Likelihood + +How likely is this BC to affect me? + +Medium: You will likely be affected you 1) have transition hooks, 2) are using typescript and/or 3) use the internal ui-router State API. + +#### BC Severity + +How severe is this BC? + +Low: Access to the internal api is still available using `$$state()`. + + +## **StateObject:** Renamed internal API `State` object to `StateObject` + +#### Before: + +``` +import {State} from "ui-router-core"; +``` + +- #### Now: + +``` +import {StateObject} from "ui-router-core"; +``` + +#### Motivation: + +We'd like to use the `State` name/symbol as a public API. +It will likely be an ES7/TS decorator for ES6/TS state definition classes, i.e: + +```js +@State("foo") +export class FooState implements StateDeclaration { + url = "/foo"; + component = FooComponent; + + @Resolve({ deps: [FooService] }) + fooData(fooService) { + return fooService.getFoos(); + } +} +``` + +#### BC Likelihood + +How likely is this to affect me? + +Low: This only affects code that imports the internal API symbol `State`. +You will likely be affected you 1) import that symbol, 2) are using typescript and 3) explicitly +typed a variable such as `let internalStateObject = state.$$state();` + +#### BC Severity + +How severe is this change? + +Low: Find all places where `State` is imported and rename to `StateObject` + + +## **Transition:** All Transition errors are now wrapped in a Rejection object. + +#### Before: + +Previously, if a transition hook returned a rejected promise: +```js +.onStart({}, () => Promise.reject('reject transition')); +``` + +In `onError` or `transtion.promise.catch()`, the raw rejection was returned: +```js +.onError({}, (trans, err) => err === 'reject transition') +``` + +#### Now: + +Now, the error is wrapped in a Rejection object. + +- The detail (thrown error or rejected value) is still available as `.detail`. + +```js +.onError({}, (trans, err) => + err instanceof Rejection && err.detail === 'reject transition') +``` + +- The Rejection object indicates the `.type` of transition rejection (ABORTED, ERROR, SUPERSEDED and/or redirection). +```js +.onError({}, (trans, err) => { + err.type === RejectType.ABORTED === 3 +}); +``` + +#### Motivation: + +Errors *thrown from* a hook and rejection values *returned from* a hook can now be processed in the same way. + +#### BC Likelihood + +How likely is this to affect me? + +Medium: apps which have onError handlers for rejected values + +#### BC Severity + +How severe is this change? + +Low: Find all error handlers (or .catch/.then chains) that do not understand Rejection. Add `err.detail` processing. + + + +## **onBefore:** `onBefore` hooks are now run asynchronously like all the other hooks. + +#### Old behavior + +Previously, the `onBefore` hooks were run in the same stackframe as `transitionTo`. +If they threw an error, it could be caught using try/catch. + +```js +transitionService.onBefore({ to: 'foo' }), () => { throw new Error('doh'); }); +try { + stateService.go('foo'); +} catch (error) { + // handle error +} +``` + +#### New behavior + +Now, `onBefore` hooks are processed asynchronously. +To handle errors, use any of the async error handling paradigms: + +- Chain off the promise + ```js + transitionService.onBefore({ to: 'foo' }), () => { throw new Error('doh'); }); + stateService.go('foo').catch(error => { //handle error }); + ``` +- Define an error handler + ```js + transitionService.onBefore({ to: 'foo' }), () => { throw new Error('doh'); }); + transitionService.onError({ to: 'foo' }), () => { // handle error }); + stateService.go('foo'); + ``` +- Use the global defaultErrorHandler + ```js + transitionService.onBefore({ to: 'foo' }), () => { throw new Error('doh'); }); + stateService.go('foo'); + stateService.defaultErrorHandler(error => { // global error handler }); + ``` + +#### Motivation + +Why introduce a BC? + +- No subtle behavior differences by hook type +- Simpler code and mental model +- Fewer edge cases to account for + +#### BC Liklihood + +How likely is this to affect my app? + +Very Low: Apps that registered onBefore hooks and depend on +synchronous execution are affected. + +#### BC Severity + +How severe is this BC? + +Low: Switch to asynchronous handling, such as chaining off the +transition promise + + +## **defaultErrorHandler:** ABORTED transitions do not invoke the `defaultErrorHandler` + +Returning `false` from a transition hook will abort the transition. + +#### Old behavior + +Previously, this case was considered an error and was logged by +`defaultErrorHandler`. +After your feedback, we agree that this is not typically an error. + +#### New behavior + +Now, aborted transitions do not trigger the `defaultErrorHandler` + +#### Motivation: + +> Why introduce a BC? + +Most users do not consider ABORT to be an error. The default error +handler should match this assumption. + +#### BC liklihood + +> How likely am I to be affected? + +Low: Most users do not consider ABORT to be an error. For most users +this will not be a BC. + +#### BC severity + +> How severe is this BC? + +Low: Users who want to handle all transition rejections can +register a `.onError` handler and filter/process accordingly. + + +## **globals:** This change will likely only affect a small subset of typescript users and probably only those using `ui-router-ng2`. + +If you're injecting the `Globals` class somewhere, e.g.: +``` +@Injectable() +class MyService { + _globals: UIRouterGlobals; + constructor(globals: Globals) { + this._globals = globals; + } +} +``` +you should now inject `UIRouterGlobals`, e.g.: +``` +@Injectable() +class MyService { + constructor(public globals: UIRouterGlobals) { } +} +``` + +Likewise, if you were casting the `UIRouter.globals` object as a `UIRouterGlobals`, it is no longer necessary: + +```js +function myHook(trans: Transition) { + let globals: UIRouterGlobals = trans.router.globals; // cast is no longer necessary +} +``` + +Closes https://github.com/ui-router/core/issues/31 + + + + +# [1.0.0-rc.1](https://github.com/angular-ui/ui-router/compare/1.0.0-beta.3...v1.0.0-rc.1) (2017-01-09) + + +### Bug Fixes + +* Post-process .d.ts files to make them compatible with TS 1.8 ([c8162ee](https://github.com/angular-ui/ui-router/commit/c8162ee)), closes [#3070](https://github.com/angular-ui/ui-router/issues/3070) +* **$stateChangeSuccess:** fire polyfill `$stateChangeSuccess` right after global state are updated ([3984f9b](https://github.com/angular-ui/ui-router/commit/3984f9b)), closes [#3144](https://github.com/angular-ui/ui-router/issues/3144) +* **$viewContentLoading:** Add $viewContentLoading event back ([c346a28](https://github.com/angular-ui/ui-router/commit/c346a28)) +* **build:** Use global `angular` reference if require('angular') is falsey or empty ([2982613](https://github.com/angular-ui/ui-router/commit/2982613)), closes [#3113](https://github.com/angular-ui/ui-router/issues/3113) +* **component:** Do not throw err when component has `&` binding ([b5c731d](https://github.com/angular-ui/ui-router/commit/b5c731d)), closes [#3099](https://github.com/angular-ui/ui-router/issues/3099) +* **Ng1ViewDeclaration:** Make controllerProvider IInjectable ([#3056](https://github.com/angular-ui/ui-router/issues/3056)) ([a3136ae](https://github.com/angular-ui/ui-router/commit/a3136ae)), closes [#3044](https://github.com/angular-ui/ui-router/issues/3044) +* **ng2.uiSrefActive:** Allow ng-if on nested uiSrefs ([e3051f5](https://github.com/angular-ui/ui-router/commit/e3051f5)), closes [#3046](https://github.com/angular-ui/ui-router/issues/3046) +* **onExit:** inject resolve values using the "from path" ([c91b65a](https://github.com/angular-ui/ui-router/commit/c91b65a)) +* **onExit:** inject the current transition as `$transition$` ([c91b65a](https://github.com/angular-ui/ui-router/commit/c91b65a)), closes [#3081](https://github.com/angular-ui/ui-router/issues/3081) +* **package:** use engines: node: >=4.0.0 ([6801b0c](https://github.com/angular-ui/ui-router/commit/6801b0c)), closes [#3086](https://github.com/angular-ui/ui-router/issues/3086) +* **Resolve:** Fix NOWAIT resolve injection into controllers and bindings to components. ([cb57ce9](https://github.com/angular-ui/ui-router/commit/cb57ce9)) +* **typings:** Change Ng1ViewDeclaration.controller type to IInjectable|string ([d2b5d84](https://github.com/angular-ui/ui-router/commit/d2b5d84)), closes [#3089](https://github.com/angular-ui/ui-router/issues/3089) +* **typings:** Change Ng1ViewDeclaration.controller type to IInjectable|string ([8e91dc9](https://github.com/angular-ui/ui-router/commit/8e91dc9)) +* **ui-sref:** Update `ui-sref/state` href when states are added/removed ([389dfd5](https://github.com/angular-ui/ui-router/commit/389dfd5)) +* **ui-sref:** Update params-only sref when state changes ([3c1bd0e](https://github.com/angular-ui/ui-router/commit/3c1bd0e)), closes [#1031](https://github.com/angular-ui/ui-router/issues/1031) [#2541](https://github.com/angular-ui/ui-router/issues/2541) +* **ui-sref:** Use either .on or .bind for click handlers ([b00f044](https://github.com/angular-ui/ui-router/commit/b00f044)), closes [#3035](https://github.com/angular-ui/ui-router/issues/3035) +* **ui-sref-active:** Add CSS class immediately (avoid delay) ([27eb5e9](https://github.com/angular-ui/ui-router/commit/27eb5e9)), closes [#2503](https://github.com/angular-ui/ui-router/issues/2503) +* **ui-sref-active:** Avoid add/remove class race condition ([126a4ad](https://github.com/angular-ui/ui-router/commit/126a4ad)) +* **ui-sref-active:** Use `$scope.$evalAsync` to apply css class ([6a9d9ae](https://github.com/angular-ui/ui-router/commit/6a9d9ae)), closes [#2503](https://github.com/angular-ui/ui-router/issues/2503) [#1997](https://github.com/angular-ui/ui-router/issues/1997) [#2503](https://github.com/angular-ui/ui-router/issues/2503) [#1997](https://github.com/angular-ui/ui-router/issues/1997) +* **ui-state:** Process ui-state links relative to where they are created ([cae4dc4](https://github.com/angular-ui/ui-router/commit/cae4dc4)) +* **ui-state:** Support one time bindings in ng 1.3 ([389dfd5](https://github.com/angular-ui/ui-router/commit/389dfd5)), closes [#3131](https://github.com/angular-ui/ui-router/issues/3131) [#3054](https://github.com/angular-ui/ui-router/issues/3054) +* **uiView:** do not leave initial view scope undestroyed ([#3164](https://github.com/angular-ui/ui-router/issues/3164)) ([37d6f9a](https://github.com/angular-ui/ui-router/commit/37d6f9a)), closes [#1896](https://github.com/angular-ui/ui-router/issues/1896) + + +### Features + +* bundle using rollupjs for smaller bundle and faster init times ([a4b5500](https://github.com/angular-ui/ui-router/commit/a4b5500)) +* Deprecate public use of `$urlRouter` and `$urlMatcherFactory` in favor of `$urlService` ([6ee7f21](https://github.com/angular-ui/ui-router/commit/6ee7f21)) +* Move imperative `$resolve` service out of main bundle ([cae6d03](https://github.com/angular-ui/ui-router/commit/cae6d03)) +* remove component.json ([af736c4](https://github.com/angular-ui/ui-router/commit/af736c4)) +* Use angular 1.3+ `$templateRequest` service to fetch templates ([7e1f36e](https://github.com/angular-ui/ui-router/commit/7e1f36e)), closes [#3193](https://github.com/angular-ui/ui-router/issues/3193) [#1882](https://github.com/angular-ui/ui-router/issues/1882) +* **$uiRouter:** expose router instance at config-time as `$uiRouterProvider.router` ([9d2661c](https://github.com/angular-ui/ui-router/commit/9d2661c)) +* **injectables:** Expose `$uiRouterProvider`, `$uiRouterGlobals`, and `$stateRegistry` injectables ([7fa72a6](https://github.com/angular-ui/ui-router/commit/7fa72a6)) +* **ui-sref-active:** improve performance by reducing $watches ([126a4ad](https://github.com/angular-ui/ui-router/commit/126a4ad)) +* **ui-view:** Route-to-component: Wire component "&" bindings ([af95206](https://github.com/angular-ui/ui-router/commit/af95206)), closes [#3239](https://github.com/angular-ui/ui-router/issues/3239) [#3111](https://github.com/angular-ui/ui-router/issues/3111) +* **UrlService:** Create UrlService API (facade) for easier access to URL based APIs ([6ee7f21](https://github.com/angular-ui/ui-router/commit/6ee7f21)) +* **view:** A view without anything to render defaults to `` ([7d28fdd](https://github.com/angular-ui/ui-router/commit/7d28fdd)), closes [#3178](https://github.com/angular-ui/ui-router/issues/3178) +* **view:** Route a view to a directive using `componentProvider` ([#3165](https://github.com/angular-ui/ui-router/issues/3165)) ([090d2e3](https://github.com/angular-ui/ui-router/commit/090d2e3)) + + +### BREAKING CHANGES + +# BREAKING CHANGE: Deprecate public use of `$urlRouter` and `$urlMatcherFactory` in favor of `$urlService` + +The `UrlService` combines the commonly used URL APIs in a single place. +The service may be injected in a run block as `$urlService`, or in a config block as `$urlServiceProvider`. + +The service object has two nested API objects, `rules` and `config`. An example usage is `$urlService.rules.otherwise('/home')` + +The existing API for `$urlRouter` and `$urlMatcherFactory` will continue to function as before, but are now considered an "internal API".\ +The new `$urlService` is a facade which delegates to the appropriate internal APIs. + +# BREAKING CHANGE: Use angular 1.3+ `$templateRequest` service to fetch templates + +We now fetch templates using `$templateRequest` when it is available (angular 1.3+). +You can revert to previous template fetching behavior using `$http` by configuring the ui-router `$templateFactoryProvider`. + +```js +.config(function($templateFactoryProvider) { + $templateFactoryProvider.shouldUnsafelyUseHttp(true); +}); +``` + +There are security ramifications to using `$http` to fetch templates. +Read +[Impact on loading templates](https://docs.angularjs.org/api/ng/service/$sce#impact-on-loading-templates) +for more details + +# BREAKING CHANGE: Move imperative `$resolve` service out of main bundle + +The `$resolve` service's `.resolve()` method can be used to perform async dependency injection imperatively. + +The code has been moved out of the main angular-ui-router codebase and is now opt-in. +For prebuilt bundle users, add `release/legacy/resolveService.js` to your project. +For self-bundlers (e.g., webpack), add `angular-ui-router/lib/legacy/resolveService` as an `import` or `require()`. + +It's unlikely you use this service. +Its most common usage is with the UI-Bootstrap `$modal` service. + +# BREAKING CHANGE: remove component.json + + + + +## ui-router-core changes + +This release of angular-ui-router (1.0.0-rc.1) updates ui-router-core to 3.1.0 +These are the changes in ui-router-core from 1.0.0-beta.3 to 3.1.0 + +# [3.1.0](https://github.com/ui-router/core/compare/1.0.0-beta.3...3.1.0) (2017-01-09) + + +### Bug Fixes + +* **lazyLoad:** Sync by URL after nested lazy load triggered by URL ([1c6220c](https://github.com/ui-router/core/commit/1c6220c)) +* **lazyLoad:** Use UrlService.match() to retry url sync after successful lazy load triggered by url ([8c2461d](https://github.com/ui-router/core/commit/8c2461d)), closes [#19](https://github.com/ui-router/core/issues/19) +* **Ng1ViewDeclaration:** Make controllerProvider IInjectable ([#3056](https://github.com/ui-router/core/issues/3056)) ([a3136ae](https://github.com/ui-router/core/commit/a3136ae)), closes [#3044](https://github.com/ui-router/core/issues/3044) +* **ng2.uiSrefActive:** Allow ng-if on nested uiSrefs ([e3051f5](https://github.com/ui-router/core/commit/e3051f5)), closes [#3046](https://github.com/ui-router/core/issues/3046) +* **onBefore:** Skip remaining hooks after the ([#2](https://github.com/ui-router/core/issues/2)) ([8a45d04](https://github.com/ui-router/core/commit/8a45d04)) +* **param:** `params: { foo: { raw: true } }` overrides `ParamType.raw` ([aefeabf](https://github.com/ui-router/core/commit/aefeabf)) +* **Param:** Mark all query parameters as optional ([7334d98](https://github.com/ui-router/core/commit/7334d98)) +* **params:** Check for null in `int` param type `is()` check ([aa551e4](https://github.com/ui-router/core/commit/aa551e4)), closes [#3197](https://github.com/ui-router/core/issues/3197) +* **redirect:** Do not allow `onBefore` hooks to cause infinite redirect loops ([5c5f7eb](https://github.com/ui-router/core/commit/5c5f7eb)), closes [#6](https://github.com/ui-router/core/issues/6) +* **redirectTo:** Do not puke when redirectTo returns undefined ([bde9c0f](https://github.com/ui-router/core/commit/bde9c0f)) +* **redirectTo:** fix TS type signature of `redirectTo` ([2c059c4](https://github.com/ui-router/core/commit/2c059c4)) +* **StateQueueManager:** Compare parsed url parameters using typed parameters ([beca1f5](https://github.com/ui-router/core/commit/beca1f5)) +* **StateRegistry:** Fix error message: State '' is already defined ([f5bd96b](https://github.com/ui-router/core/commit/f5bd96b)) +* **StateService:** Compare typed parameters in .is() and .includes() ([b1a5155](https://github.com/ui-router/core/commit/b1a5155)) +* **TargetState:** Narrow `name()` return type to `String` ([a02f4a7](https://github.com/ui-router/core/commit/a02f4a7)) +* **Transition:** Use { location: replace } when redirecting a transtition in response to a URL sync ([23e2b78](https://github.com/ui-router/core/commit/23e2b78)) +* **typescript:** Emit TS 1.8 compatible .d.ts files ([65badf4](https://github.com/ui-router/core/commit/65badf4)) +* **typings:** Allow urlRouter.rule to return void ([0b78bdf](https://github.com/ui-router/core/commit/0b78bdf)) +* **ui-sref:** Use either .on or .bind for click handlers ([b00f044](https://github.com/ui-router/core/commit/b00f044)), closes [#3035](https://github.com/ui-router/core/issues/3035) +* **UrlRouter:** Use { location: 'replace' } whenever a url redirect happens ([6cf9b8f](https://github.com/ui-router/core/commit/6cf9b8f)) +* **UrlService:** Wire urlMatcherFactory and urlRouter functions ([a7b58d6](https://github.com/ui-router/core/commit/a7b58d6)) +* **vanilla:** vanilla locations: do not parse "empty string" query key parameter ([f949480](https://github.com/ui-router/core/commit/f949480)) +* **view:** Load view prerequisites in `onFinish` ([cc85e76](https://github.com/ui-router/core/commit/cc85e76)) +* **view.load:** Allow view.load to return synchronously ([8619cf9](https://github.com/ui-router/core/commit/8619cf9)) + + +### Features + +* (CoreServices) Move `location` and `locationConfig` from `services` to `UIRouter.locationService` and `UIRouter.locationConfig`. ([029fb00](https://github.com/ui-router/core/commit/029fb00)) +* Built-in `string` parameter type no longer encodes slashes as `~2F` nor tildes as `~~` ([72bb2d8](https://github.com/ui-router/core/commit/72bb2d8)) +* Create router.dispose() to dispose a router instance and resources. ([0690917](https://github.com/ui-router/core/commit/0690917)) +* Hook errors are all normalized to a "Rejection" type. To access the detail of the error thrown (`throw "Error 123"`), use `.detail`, i.e.: ([f486ced](https://github.com/ui-router/core/commit/f486ced)) +* Move `html5Mode` and `hashPrefix` from `LocationServices` to `LocationConfig` interface ([9d316a7](https://github.com/ui-router/core/commit/9d316a7)) +* move `ViewService.viewConfigFactory` and `rootContext` to `_pluginapi.*` ([65badf4](https://github.com/ui-router/core/commit/65badf4)) +* Move html5Mode and hashPrefix to LocationServices from LocationConfig ([f7ac2bb](https://github.com/ui-router/core/commit/f7ac2bb)) +* Order URL Matching Rules by priority, not registration order ([eb2f5d7](https://github.com/ui-router/core/commit/eb2f5d7)) +* Path/Query parameters no longer default to `string` param type ([72bb2d8](https://github.com/ui-router/core/commit/72bb2d8)) +* Previously, a state with a `lazyLoad` function was considered a future state. ([ec50da4](https://github.com/ui-router/core/commit/ec50da4)) +* Remove `getResolveValue` and `getResolvable` methods from `Transition` in favor of `injector().get()` and `injector().getAsync()` ([111d259](https://github.com/ui-router/core/commit/111d259)) +* Replace `LocationServices.setUrl` with `LocationServices.url` ([4c39dcb](https://github.com/ui-router/core/commit/4c39dcb)) +* Replace UrlRouterProvider/UrlRouter with just UrlRouter ([fddd1e2](https://github.com/ui-router/core/commit/fddd1e2)) +* **assertMap:** Add a [].map() helper that asserts that each element is truthy ([f044f53](https://github.com/ui-router/core/commit/f044f53)) +* **futureState:** States with a `.**` name suffix (i.e., `foo.**`) are considered future states ([ec50da4](https://github.com/ui-router/core/commit/ec50da4)) +* **hash:** Change the hash parameter type (`'#'`) to `inherit: false` so it is cleared out when another transition occurs. ([849f84f](https://github.com/ui-router/core/commit/849f84f)), closes [#3245](https://github.com/ui-router/core/issues/3245) [#3218](https://github.com/ui-router/core/issues/3218) [#3017](https://github.com/ui-router/core/issues/3017) +* **HookBuilder:** Allow custom hook types (to be defined by a plugin) ([3f146e6](https://github.com/ui-router/core/commit/3f146e6)) +* **lazyLoad:** Created `StateService.lazyLoad` method to imperatively lazy load a state ([ec50da4](https://github.com/ui-router/core/commit/ec50da4)), closes [#8](https://github.com/ui-router/core/issues/8) +* **lazyLoad:** Exported/exposed the `lazyLoadState` function ([ec50da4](https://github.com/ui-router/core/commit/ec50da4)) +* **lazyLoad:** the `lazyLoad` hook can be used to lazy load anything (component code, etc) ([ec50da4](https://github.com/ui-router/core/commit/ec50da4)), closes [#4](https://github.com/ui-router/core/issues/4) +* **LocationServices:** Add a `parts()` method which returns the URL parts as an object ([32e64f0](https://github.com/ui-router/core/commit/32e64f0)) +* **onCreate:** Add onCreate transition hook ([f486ced](https://github.com/ui-router/core/commit/f486ced)) +* **params:** Add `path` and `query` param types ([72bb2d8](https://github.com/ui-router/core/commit/72bb2d8)) +* **params:** add option to use generic type for Transition.params ([#17](https://github.com/ui-router/core/issues/17)) ([eb12ec8](https://github.com/ui-router/core/commit/eb12ec8)), closes [#16](https://github.com/ui-router/core/issues/16) +* **Params:** Allow `inherit: false` specified per parameter or type ([849f84f](https://github.com/ui-router/core/commit/849f84f)) +* **plugin:** Allow all plugins to be gotted. ([e324973](https://github.com/ui-router/core/commit/e324973)) +* **plugin:** Allow registration by ES6 class, JS constructor fn, JS factory fn ([b9f4541](https://github.com/ui-router/core/commit/b9f4541)) +* **plugin:** Create plugin API ([36a5215](https://github.com/ui-router/core/commit/36a5215)), closes [#7](https://github.com/ui-router/core/issues/7) +* **Resolve:** implement NOWAIT policy: Do not wait for resolves before completing a transition. ([05d4c73](https://github.com/ui-router/core/commit/05d4c73)), closes [#3243](https://github.com/ui-router/core/issues/3243) [#2691](https://github.com/ui-router/core/issues/2691) +* **State:** add .parameters() option for filtering to matching keys ([beca1f5](https://github.com/ui-router/core/commit/beca1f5)) +* **transition:** Allow plugins to define own transition events like `onEnter` ([0dc2c19](https://github.com/ui-router/core/commit/0dc2c19)) +* **transition:** Create ([2673406](https://github.com/ui-router/core/commit/2673406)) +* **Transition:** Add Transition.originalTransition() to return the initial transition in a chain of redirects ([4fe39e3](https://github.com/ui-router/core/commit/4fe39e3)) +* **Transition:** Allow `injector()` to retrieve resolves for the exiting states/path ([df502e8](https://github.com/ui-router/core/commit/df502e8)) +* **Transition:** Allow a plain object `ResolvableLiteral` in `Transition.addResolvable` ([ad9ae81](https://github.com/ui-router/core/commit/ad9ae81)) +* **Transition:** Make Transition.params() immutable to avoid confusion about mutability ([0162212](https://github.com/ui-router/core/commit/0162212)) +* **Transition:** Support treechange paths in API for Resolve+transition ([beedc82](https://github.com/ui-router/core/commit/beedc82)) +* **UrlMatcher:** Add comparison function by UrlMatcher specificity ([eb2f5d7](https://github.com/ui-router/core/commit/eb2f5d7)) +* **UrlRouter:** sort url rules by specificity, not by registration order. ([eb2f5d7](https://github.com/ui-router/core/commit/eb2f5d7)) +* **UrlService:** allow eager or lazy binding of location objects during construction ([7e0a8af](https://github.com/ui-router/core/commit/7e0a8af)) +* **UrlServices:** Add `match()`: given a URL, return the best matching Url Rule ([32e64f0](https://github.com/ui-router/core/commit/32e64f0)) +* **vanilla:** Implement in-memory-only location api ([f64aace](https://github.com/ui-router/core/commit/f64aace)) + + +### BREAKING CHANGES + +# BREAKING CHANGE: Remove `getResolveValue` and `getResolvable` methods from `Transition` in favor of `injector().get()` and `injector().getAsync()` + +In beta.3, the Transition APIs: `injector()`, `getResolvable`, and `getResolveValue` duplicated functionality. + +Instead of: +```js +trans.getResolveValue('myResolve'); +``` +use: +```js +trans.injector().get('myResolve') +``` +# BREAKING CHANGE: Hook errors are all normalized to a "Rejection" type. To access the detail of the error thrown (`throw "Error 123"`), use `.detail`, i.e.: +### Before +```js +$state.go('foo').catch(err => { if (err === "Error 123") .. }); +``` +### New way +```js +$state.go('foo').catch(err => { if (err.detail === "Error 123") .. }); +``` +# BREAKING CHANGE: Replace `LocationServices.setUrl` with `LocationServices.url` + +This makes `url()` a getter/setter. It also adds the optional `state` parameter to pass through to the browser history when using pushstate. +End users should not notice this change, but plugin authors may. +# BREAKING CHANGE: Replace UrlRouterProvider/UrlRouter with just UrlRouter + +The configuration functions from the provider object have been integrated into the normal UrlRouter object. +The `UIRouter` object no longer has a `uriRouterProvider`, but the equivalent functions can be found on `uiRouter` + +One difference between the old functions on `urlRouterProvider` and the new ones on `uriRouter` is that new functions do not accept injectable functions. +# BREAKING CHANGE: Built-in `string` parameter type no longer encodes slashes as `~2F` nor tildes as `~~` + +Previously, the `string` parameter type pre-encoded tilde chars (`~`) as two tilde chars (`~~`) and slashes (`/`) as `~2F`. + +Now, the `string` parameter type does not pre-encode slashes nor tildes. +If you rely on the previous encoding, create a custom parameter type that implements the behavior: + +```js +urlMatcherFactory.type('tildes', { + encode: (val: any) => + val != null ? val.toString().replace(/(~|\/)/g, m => ({ '~': '~~', '/': '~2F' }[m])) : val; + decode: (val: string) => + val != null ? val.toString().replace(/(~~|~2F)/g, m => ({ '~~': '~', '~2F': '/' }[m])) : val; + pattern: /[^/]*/ +}); +``` +# BREAKING CHANGE: Path/Query parameters no longer default to `string` param type + +Previously, if a url parameter's type was not specified (in either the path or query), it defaulted to the `string` type. + +Now, path parameters default to the new `path` type and query parameters default to the new `query` type. + +**In Angular 1 only**, the new `path` parameter type retains the old behavior of pre-encoding `~` to `~~` and `/` to `~2F` +# BREAKING CHANGE: Order URL Matching Rules by priority, not registration order + +URL Rules can come from registered states' `.url`s, calling `.when()`, or calling `.rule()`. +It's possible that two or more URL Rules could match the URL. + +### Previously + +Previously, url rules were matched in the order in which they were registered. +The rule which was registered first would handle the URL change. + +### Now + +Now, the URL rules are sorted according to a sort function. +More specific rules are preferred over less specific rules + +### Why + +It's possible to have multiple url rules that match a given URL. +Consider the following states: + + - `{ name: 'books', url: '/books/index' }''` + - `{ name: 'book', url: '/books/:bookId' }''` + +Both states match when the url is `/books/index`. +Additionally, you might have some custom url rewrite rules such as: + + `.when('/books/list', '/books/index')`. + +The `book` state also matches when the rewrite rule is matched. + +Previously, we simply used the first rule that matched. However, now that lazy loading is officially supported, it can be difficult for developers to ensure the rules are registered in the right order. + +Instead, we now prioritize url rules by how specific they are. More specific rules are matched earlier than less specific rules. +We split the path on `/`. A static segment (such as `index` in the example) is more specific than a parameter (such as`:bookId`). + +### More Details + +The built-in rule sorting function (see `UrlRouter.defaultRuleSortFn`) sorts rules in this order: + +- Explicit priority: `.when('/foo', '/bar', { priority: 1 })` (default priority is 0) +- Rule Type: + - UrlMatchers first (registered states and `.when(string, ...)`) + - then regular Expressions (`.when(regexp, ...)`) + - finally, everything else (`.rule()`) +- UrlMatcher specificity: static path segments are more specific than variables (see `UrlMatcher.compare`) +- Registration order (except for UrlMatcher based rules) + +For complete control, a custom sort function can be registered with `UrlService.rules.sort(sortFn)` + +### Query params + +Because query parameters are optional, they are not considered during sorting. +For example, both these rules will match when the url is `'/foo/bar'`: + +``` +.when('/foo/bar', doSomething); +.when('/foo/bar?queryparam', doSomethingElse); +``` + +To choose the most specific rule, we match both rules, then choose the rule with the "best ratio" of matched optional parameters (see `UrlRuleFactory.fromUrlMatcher`) + +This allows child states to be defined with only query params for a URL. +The state only activates when the query parameter is present. + +``` +.state('parent', { url: '/parent' }); +.state('parent.child', { url: '?queryParam' }); +``` + +## Restoring the previous behavior + +For backwards compatibility, register a sort function which sorts by the registration order: + +```js +myApp.config(function ($urlServiceProvider) { + + function sortByRegistrationOrder(a, b) { + return a.$id - b.$id; + } + + $urlServiceProvider.rules.sort(sortByRegistrationOrder); + +}); +``` +# BREAKING CHANGE: Move `html5Mode` and `hashPrefix` from `LocationServices` to `LocationConfig` interface + +### End users should not notice + +# BREAKING CHANGE: move `ViewService.viewConfigFactory` and `rootContext` to `_pluginapi.*` +This BC happened in commit 6c42285 + +# BREAKING CHANGE: Move html5Mode and hashPrefix to LocationServices from LocationConfig + +# BREAKING CHANGE: Previously, a state with a `lazyLoad` function was considered a future state. +Now, a state whose name ends with `.**` (i.e., a glob pattern which matches all children) is a future state. + +### All future states should be given a name that ends in `.**`. + +Change your future states from: +``` +{ name: 'future', url: '/future', lazyLoad: () => ... } +``` +to: +``` +{ name: 'future.**', url: '/future', lazyLoad: () => ... } +``` +# BREAKING CHANGE: (CoreServices) Move `location` and `locationConfig` from `services` to `UIRouter.locationService` and `UIRouter.locationConfig`. + +The core `services` object is a mutable object which each framework was monkey patching. +This change removes the requirement to monkey patch a global mutable object. +Instead, framework implementors should pass the `LocationServices` and `LocationConfig` implementations into the `UIRouter` constructor. + +### End Users + +End users who were accessing `services.location` or `services.locationConfig` should access these off the `UIRouter` instance instead. + + + + + + +# [1.0.0-beta.3 commits](https://github.com/angular-ui/ui-router/compare/1.0.0-beta.2...1.0.0-beta.3) (2016-09-23) + +[Read more on the blog](https://ui-router.github.io/blog/uirouter-1.0.0-beta.3/) + +This release adds Angular 2.0.0 final support. +It changes the NgModule mechanism to use `UIRouterModule.forRoot()` and `UIRouterModule.forChild()`. +See the blog and the breaking changes section. + +### Bug Fixes + +This release fixes bugs for both ng1 and ng2 + +* **common:** Remove `url()` from LocationService interface ([#2990](https://github.com/angular-ui/ui-router/issues/2990)) ([d6c2580](https://github.com/angular-ui/ui-router/commit/d6c2580)) +* **lazyLoad:** Always delete the lazy load promise after it settles. ([dd2f101](https://github.com/angular-ui/ui-router/commit/dd2f101)) +* **ng1.StateProvider:** Export StateProvider class so type can be used ([167770d](https://github.com/angular-ui/ui-router/commit/167770d)) +* **ng1.uiView:** Remove deprecated jquery functions bind/unbind in favor of on/off ([60ebd44](https://github.com/angular-ui/ui-router/commit/60ebd44)) +* **ng2:** Angular 2.0.0 final compatibility ([7c54b75](https://github.com/angular-ui/ui-router/commit/7c54b75)), closes [#2991](https://github.com/angular-ui/ui-router/issues/2991) +* **ng2.NgModule:** Allow apps with no forChild modules ([d3bd332](https://github.com/angular-ui/ui-router/commit/d3bd332)), closes [#3009](https://github.com/angular-ui/ui-router/issues/3009) +* **ng2.uiView:** Use ReflectorReader to get component inputs +* **resolve:** Don't re-resolve data when redirected to same state, but only dynamic params changed. ([98cd2d2](https://github.com/angular-ui/ui-router/commit/98cd2d2)), closes [#3033](https://github.com/angular-ui/ui-router/issues/3033) +* **trace:** Show function definition during logging of trace.enable('HOOK') ([190d122](https://github.com/angular-ui/ui-router/commit/190d122)) +* **transition:** Fail a transition if a new one has started while resolves are loading ([bc87d9e](https://github.com/angular-ui/ui-router/commit/bc87d9e)), closes [#2972](https://github.com/angular-ui/ui-router/issues/2972) +* **urlMatcherFactory:** fix tilde edge case with "string" encoding ([#3018](https://github.com/angular-ui/ui-router/issues/3018)) ([a201906](https://github.com/angular-ui/ui-router/commit/a201906)) +* **viewService:** Allow root ui-view to be wrapped in ng-if ([32f718a](https://github.com/angular-ui/ui-router/commit/32f718a)), closes [#3004](https://github.com/angular-ui/ui-router/issues/3004) + +### Features + +* **StateBuilder:** Calculate parent state name when ends in two wildcards `**` ([b4621f3](https://github.com/angular-ui/ui-router/commit/b4621f3)) + + +### BREAKING CHANGES + +#### BC in Core +* Remove `UIInjector.native` infavor of `UIInjector.getNative()` ([d11b7dc](https://github.com/angular-ui/ui-router/commit/d11b7dc)) +* Remove `stateProvider` from ui-router-core. Use `stateRegistry` and `stateService` in 88c6494 +* We now enforce states with an explicit `parent:` may NOT ALSO specify a parent state in their name (i.e., `parent.child`) + +#### BC in Angular 2 + +Major breaking changes for Angular 2 bootstrap between beta.2 and beta.3 + +- Removed `@UIRouterModule` decorator. +- Added `UIRouterModule.forRoot()` and `UIRouterModule.forChild()` factory methods +- See https://ui-router.github.io/docs/latest/classes/ng2.uiroutermodule.html + +@NgModule({ + imports: [ + UIRouterModule.forRoot({ + states: INITIAL_STATES, + useHash: true, + configClass: MyUIRouterConfig + }), + BrowserModule, + FeatureModule, + ], + declarations: INITIAL_COMPONENTS +}) +class RootAppModule {} + +@NgModule({ + imports: [ + UIRouterModule.forChild({ + states: FEATURE_STATES, + configClass: FeatureConfig + }), + CommonModule, + ], + declarations: FEATURE_COMPONENTS +}) + + + +# [1.0.0-beta.2 commits](https://github.com/angular-ui/ui-router/compare/1.0.0-beta.1...1.0.0-beta.2) (2016-09-09) + +[Read more on the blog](https://ui-router.github.io/blog/uirouter-1.0.0-beta.2/) + +### Features + +#### Core + +* **lazyLoad:** Add state.lazyLoad hook to lazy load a tree of states ([bef5257](https://github.com/angular-ui/ui-router/commit/bef5257)) ([8ecb6c6](https://github.com/angular-ui/ui-router/commit/8ecb6c6)), closes [#146](https://github.com/angular-ui/ui-router/issues/146) [#2739](https://github.com/angular-ui/ui-router/issues/2739) +* **StateRegistry:** Add `deregister` method. ([44579ec](https://github.com/angular-ui/ui-router/commit/44579ec)), closes [#1095](https://github.com/angular-ui/ui-router/issues/1095) [#2711](https://github.com/angular-ui/ui-router/issues/2711) +* **redirectTo:** Process `redirectTo` property of a state as a redirect string/object/hook function ([6becb12](https://github.com/angular-ui/ui-router/commit/6becb12)), closes [#27](https://github.com/angular-ui/ui-router/issues/27) [#948](https://github.com/angular-ui/ui-router/issues/948) +* **redirect:** Error after 20+ redirected transitions ([88052bf](https://github.com/angular-ui/ui-router/commit/88052bf)) +* **rejectFactory:** separate transition aborted and transition errored reject types ([55995fd](https://github.com/angular-ui/ui-router/commit/55995fd)) +* **Resolve:** support ng2-like provide object literals ([a7e5ea6](https://github.com/angular-ui/ui-router/commit/a7e5ea6)) +* **Resolve:** Switch state.resolve to be an array of Resolvables ([6743a60](https://github.com/angular-ui/ui-router/commit/6743a60)) +* **Transition:** Add the transition source (url/sref) to TransitionOptions ([5d42d79](https://github.com/angular-ui/ui-router/commit/5d42d79)) +* **Transition:** Added `getResolvable(token)` method ([3aee2b7](https://github.com/angular-ui/ui-router/commit/3aee2b7)) +* **Transition:** expose the current `UiRouter` object as a public property ([52f1308](https://github.com/angular-ui/ui-router/commit/52f1308)) +* **Transition:** expose the transition rejection reason as `Transition.error()` ([7a9e383](https://github.com/angular-ui/ui-router/commit/7a9e383)), closes [#2866](https://github.com/angular-ui/ui-router/issues/2866) +* **Transition:** Expose the transition's TargetState as targetState() ([f06f6b6](https://github.com/angular-ui/ui-router/commit/f06f6b6)) +* **urlRouter:** Allow a rule to be deleted. ([55f3d3d](https://github.com/angular-ui/ui-router/commit/55f3d3d)) + +#### ng2 +* **ng2.rx:** Added RxJS Observables for transitions and states: ([2a2f381](https://github.com/angular-ui/ui-router/commit/2a2f381)) +* **ng2:** Add [@UIRouterModule](https://github.com/UIRouterModule) decorator ([e7bedc2](https://github.com/angular-ui/ui-router/commit/e7bedc2)), closes [#2922](https://github.com/angular-ui/ui-router/issues/2922) +* **ng2:** Improve ng2 bootstrap flexibility with provideUIRouter() provider factory function ([bc17066](https://github.com/angular-ui/ui-router/commit/bc17066)), closes [#2958](https://github.com/angular-ui/ui-router/issues/2958) +* **ng2.UrlRouter:** Implement { location: replace } ([b8c6146](https://github.com/angular-ui/ui-router/commit/b8c6146)), closes [#2850](https://github.com/angular-ui/ui-router/issues/2850) +* **ng2.NgModule:** Add module's states to DI using UIROUTER_STATES_TOKEN ([0cb628e](https://github.com/angular-ui/ui-router/commit/0cb628e)) +* **ng2.stateRegistry:** Automatically register states defined on a UIRouterModule ([58a3c84](https://github.com/angular-ui/ui-router/commit/58a3c84)) +* **ng2.UIView:** Use merged NgModule/ParentComp to inject routed component ([37241e7](https://github.com/angular-ui/ui-router/commit/37241e7)) +* **ng2.upgrade:** Enable ng1-to-ng2 ([0bf4eb4](https://github.com/angular-ui/ui-router/commit/0bf4eb4)) +* **uiView:** Support Components loaded via AppModule ([696148f](https://github.com/angular-ui/ui-router/commit/696148f)) + + +### Bug Fixes + +#### Core + +* **defaultErrorHandler:** Invoke handler when a transition is Canceled. ([4fcccd8](https://github.com/angular-ui/ui-router/commit/4fcccd8)), closes [#2924](https://github.com/angular-ui/ui-router/issues/2924) +* **defaultErrorHandler:** log Error and Error.stack by default ([e102a85](https://github.com/angular-ui/ui-router/commit/e102a85)) +* **defaultErrorHandler:** Reduce console.error noise when redirected ([8c0344f](https://github.com/angular-ui/ui-router/commit/8c0344f)) +* **common:** Add concrete import to interface.ts to fix unit tests ([2d16740](https://github.com/angular-ui/ui-router/commit/2d16740)) +* **redirect:** fix bug where redirected transitions with reload: true got wrong resolve values copied ([bd0e3a3](https://github.com/angular-ui/ui-router/commit/bd0e3a3)) +* **redirectTo:** fix redirectTo definition (interface) ([eff7195](https://github.com/angular-ui/ui-router/commit/eff7195)), closes [#2871](https://github.com/angular-ui/ui-router/issues/2871) +* **Rejection:** Silence "Error: Uncaught (in Exception)" ([38432f4](https://github.com/angular-ui/ui-router/commit/38432f4)), closes [#2676](https://github.com/angular-ui/ui-router/issues/2676) +* **Resolve:** prevent RXWAIT from waiting for the observable to complete ([a02caf3](https://github.com/angular-ui/ui-router/commit/a02caf3)) +* **ResolvePolicy:** Fix resolve policy config loading ([4440811](https://github.com/angular-ui/ui-router/commit/4440811)), closes [#2945](https://github.com/angular-ui/ui-router/issues/2945) +* **stateService:** change reloadState parameter in reload function is optional ([#2973](https://github.com/angular-ui/ui-router/issues/2973)) ([839dc4a](https://github.com/angular-ui/ui-router/commit/839dc4a)) +* **StateService:** remove jQuery deprecated feature ([fa40acc](https://github.com/angular-ui/ui-router/commit/fa40acc)) +* **trace:** make TRANSITION trace less noisy when a transition is redirected ([a65c58f](https://github.com/angular-ui/ui-router/commit/a65c58f)) +* **Trace:** Fix error in console after $trace.enable() ([013c77a](https://github.com/angular-ui/ui-router/commit/013c77a)), closes [#2752](https://github.com/angular-ui/ui-router/issues/2752) +* **transitionHook:** Prevent queued hookFn to be called if deregistered ([#2939](https://github.com/angular-ui/ui-router/issues/2939)) ([39e1ba7](https://github.com/angular-ui/ui-router/commit/39e1ba7)), closes [#2928](https://github.com/angular-ui/ui-router/issues/2928) +* **typescript:** Make UI-Router `noImplicitAny` safe. ([0769bc2](https://github.com/angular-ui/ui-router/commit/0769bc2)), closes [#2693](https://github.com/angular-ui/ui-router/issues/2693) +* **typescript:** Remove angular1 specific types from ui-router-core methods ([30124bd](https://github.com/angular-ui/ui-router/commit/30124bd)), closes [#2693](https://github.com/angular-ui/ui-router/issues/2693) + + +#### ng1 + +* **ng1.stateService:** Coerce 'null' `params` value to empty object ([f674151](https://github.com/angular-ui/ui-router/commit/f674151)), closes [#2952](https://github.com/angular-ui/ui-router/issues/2952) +* **ng1.uiSref:** Allow nested UISrefs by stopping event propagation on-click ([b4a2499](https://github.com/angular-ui/ui-router/commit/b4a2499)), closes [#2962](https://github.com/angular-ui/ui-router/issues/2962) +* **ng1.uiSrefActive:** update sref-active after existing transition-in-progress completes ([0994c71](https://github.com/angular-ui/ui-router/commit/0994c71)), closes [#2908](https://github.com/angular-ui/ui-router/issues/2908) +* **uiSref, uiState:** added click unbind to prevent memory leaks ([79d501e](https://github.com/angular-ui/ui-router/commit/79d501e)) +* **uiView:** separate $uiView and $uiViewAnim element.data() ([a94117d](https://github.com/angular-ui/ui-router/commit/a94117d)), closes [#2763](https://github.com/angular-ui/ui-router/issues/2763) + +#### ng2 + +* **ng2.pushState:** Properly match urls when base path set ([b9be2dc](https://github.com/angular-ui/ui-router/commit/b9be2dc)), closes [#2745](https://github.com/angular-ui/ui-router/issues/2745) +* **ng2.UIRouterConfig:** Allow new UIRouter() to finish before configuring it ([a151f71](https://github.com/angular-ui/ui-router/commit/a151f71)) +* **ng2.uiSrefActive:** Allow uiSrefActive on ancestor element. ([874fc07](https://github.com/angular-ui/ui-router/commit/874fc07)), closes [#2950](https://github.com/angular-ui/ui-router/issues/2950) +* **ng2.uiSrefActive:** don't puke on sref to invalid target state ([c9b6570](https://github.com/angular-ui/ui-router/commit/c9b6570)) +* **ng2.UISrefActive:** Use [@ContentChildren](https://github.com/ContentChildren) to query for the nested UISref ([999c42a](https://github.com/angular-ui/ui-router/commit/999c42a)), closes [#2950](https://github.com/angular-ui/ui-router/issues/2950) +* **ng2.UiView:** fix input resolve binding ([4f53f81](https://github.com/angular-ui/ui-router/commit/4f53f81)) +* **ng2.UIView:** Make routed to component appear *inside* UIView, not next to it. ([558fc80](https://github.com/angular-ui/ui-router/commit/558fc80)) + +### BREAKING CHANGES: + +1) State Glob patterns have been changed slightly. + +Previously, a single wildcard `foo.*` could match "missing segments" on the end of a state name. +For example, `foo.*` would match the state `foo`. +Likewise, `foo.*.*.*` would also match the `foo` state. + +Now, a single wildcard matches exactly one segment. +`foo.*` will match `foo.bar` and `foo.baz`, but neither `foo` nor `foo.bar.baz`. + +If you previously relied on the single wildcard to match missing segments, use a double wildcard, `foo.**`. + +Double wildcards match 0 or more segments. + +[Read more about Glob matching](https://ui-router.github.io/docs/latest/classes/common.glob.html) + +2) (obscure) Angular 1 DI token `ng1UIRouter` renamed to `$uiRouter` + +3) (obscure) Renamed `Transition.previous()` to `Transition.redirectedFrom()` + + + +# [1.0.0-beta.1 commits](https://github.com/angular-ui/ui-router/compare/1.0.0-alpha.5...1.0.0-beta.1) (2016-06-30) + +# UI-Router 1.0 is in beta + +## UI-Router has a new home! + +https://ui-router.github.io/new-ui-router-site/ + + +# BREAKING CHANGES + +These breaking changes are for users upgrading from a previous alpha, not from 0.x legacy series. +This list is extensive, but typical users won't be affected by most of these changes. + +The most common breaks will be #1 and #2 + +1) BC-BREAK: renamed all Ui* (lowercase 'i') symbols to UI* (uppercase 'I') for more consistent naming. + - UiView -> UIView + - UiSref -> UISref (and related directives) + - UiInjector -> UIInjector + +2) BC-BREAK: Transition Hooks are no longer injected (onBefore/onStart/onExit/onRetain/onEnter/onFinish/onSuccess/onError) + + Previously, a hook like `['$state', ($state) => $state.target('foo')]` would get `$state` injected. + Now, all hooks receive two parameters: + - transition: the current Transition, which has an `injector()` function + - state: for onEnter/onRetain/onExit hooks only, the State which the hook is being run for. This value will be null for onBefore/onStart/onFinish/onSuccess/onError hooks. + + Refactor your hooks + from: `['$state', 'mySvc', ($state, mySvc) => mySvc.foo() ? $state.target('foo')] : true` + to: `(trans) => trans.injector().get('mySvc').foo() ? trans.router.stateService.target('foo') : true` + + Note: for backwards compatiblity, angular 1 onEnter/onExit/onRetain hooks are still injected + +3) BC-BREAK: - The (internal API) State object's .resolve property is now an array of Resolvables, built from your state definitions by the StateBuilder + +4) BC-BREAK: - Removed the default resolve called `$resolve$`, which was added in a previous alpha + +5) BC-BREAK: - `Transition.addResolves()`  replaced with `Transition.addResolvable()` + +6) BC-BREAK: remove `ResolveContext.getResolvables()` in favor of `.getToken()`` and `.getResolvable()` + +7) BC-BREAK: remove `ResolveContext.invokeLater()` and `.invokeNow()` + +8) BC-BREAK: remove support for `JIT` resolves. This also eliminated the need for the `loadAllControllerLocals` hook which was also removed + +9) BC-BREAK: Replaced `ViewConfig.node` with `ViewConfig.path`. Angular 1's `$(element).data('$uiView')` is affected. + Previously the .node was the node for the view. Now the last element in the path is the node for the view. + +10) BC-BREAK: Nodes no longer have (stateful) `.resolveContext` properties. Instead, a new ResolveContext is wrapped over a Path of Nodes.  Removed `PathFactory.bindResolveContexts()`. + +11) BC-BREAK: ResolveContext.resolvePath returns a promise for resolved data as an array of tuples, instead of a promise for an object of resolved data.  Removed `ResolveContext.resolvePathElement()`. + +12) BC-BREAK: Removed ResolvePolicy enum in favor of the ResolvePolicy interface `{ when: "", async: "" }` + +13) BC-BREAK: renamed `ResolveContext.isolateRootTo` to `subContext` + +14) BC-BREAK: rename `UIRouterGlobals` class to `Globals`; add `UIRouterGlobals` back as an interface + +15) BC-BREAK: Moved `defaultErrorHandler` from `TransitionService` to `StateService` + + + + +### Features + +* **Resolve:** Switch state.resolve to be an array of Resolvables ([6743a60](https://github.com/angular-ui/ui-router/commit/6743a60)) +* **Resolve:** support ng2-like provide object literals. Support injection of arbitrary tokens, not just strings. ([a7e5ea6](https://github.com/angular-ui/ui-router/commit/a7e5ea6)) +* **Resolve:** support ng2-like provide object literals ([a7e5ea6](https://github.com/angular-ui/ui-router/commit/a7e5ea6)) +* **Transition:** expose the current `UiRouter` object as a public property ([52f1308](https://github.com/angular-ui/ui-router/commit/52f1308)) +* **redirectTo:** Process `redirectTo` property of a state as a redirect string/object/hook function ([6becb12](https://github.com/angular-ui/ui-router/commit/6becb12)), closes [#27](https://github.com/angular-ui/ui-router/issues/27) [#948](https://github.com/angular-ui/ui-router/issues/948) +* **rejectFactory:** separate transition aborted and transition errored reject types ([55995fd](https://github.com/angular-ui/ui-router/commit/55995fd)) +* **ParamType:** allow a custom parameter Type to specify a default value for a parameter's `dynamic` property +* **Resolvable:** Added a new Resolve Policy 'RXWAIT'. If an Observable is returned, pass the observable as the value, but also wait for it to emit its first value + +### Bug Fixes + +* **ng2.pushState:** Properly match urls when base path set ([b9be2dc](https://github.com/angular-ui/ui-router/commit/b9be2dc)), closes [#2745](https://github.com/angular-ui/ui-router/issues/2745) +* **ng2.UIRouterConfig:** Allow new UIRouter() to finish before configuring it ([a151f71](https://github.com/angular-ui/ui-router/commit/a151f71)) +* **ng2.UiView:** fix input resolve binding ([4f53f81](https://github.com/angular-ui/ui-router/commit/4f53f81)) +* **ng2.UIView:** Make routed to component appear *inside* UIView, not next to it. ([558fc80](https://github.com/angular-ui/ui-router/commit/558fc80)) +* **redirect:** fix bug where redirected transitions with reload: true got wrong resolve values copied ([bd0e3a3](https://github.com/angular-ui/ui-router/commit/bd0e3a3)) +* **Rejection:** Silence "Error: Uncaught (in Exception)" ([38432f4](https://github.com/angular-ui/ui-router/commit/38432f4)), closes [#2676](https://github.com/angular-ui/ui-router/issues/2676) +* **Trace:** Fix error in console after $trace.enable() ([013c77a](https://github.com/angular-ui/ui-router/commit/013c77a)), closes [#2752](https://github.com/angular-ui/ui-router/issues/2752) +* **ng2.UIView:** Trigger change detection once for routed components + + + + + +# [1.0.0-alpha.5 commits](https://github.com/angular-ui/ui-router/compare/1.0.0-alpha.4...1.0.0-alpha.5) (2016-05-13) + + +### Bug Fixes + +## Core +* **attachRoute:** Do not update URL after syncing from url([8742511](https://github.com/angular-ui/ui-router/commit/8742511)), closes [#2730](https://github.com/angular-ui/ui-router/issues/2730) +* **common:** only use window if available([32ff988](https://github.com/angular-ui/ui-router/commit/32ff988)) +* **coreservices:** Use Promise.reject()/resolve()/all()([62b2ebc](https://github.com/angular-ui/ui-router/commit/62b2ebc)), closes [#2683](https://github.com/angular-ui/ui-router/issues/2683) +* **paramTypes.hash:** Update hash for each transition([79d4fd7](https://github.com/angular-ui/ui-router/commit/79d4fd7)), closes [#2742](https://github.com/angular-ui/ui-router/issues/2742) +* **Rejection:** Dont log an ignored trans as console.error([7522c26](https://github.com/angular-ui/ui-router/commit/7522c26)), closes [#2676](https://github.com/angular-ui/ui-router/issues/2676) +* **resolve:** Fix regression; Allow resolve values to be service names([a34fd3b](https://github.com/angular-ui/ui-router/commit/a34fd3b)), closes [#2588](https://github.com/angular-ui/ui-router/issues/2588) +* **StateQueueManager:** Do not throw on orphan states.([95ae0cf](https://github.com/angular-ui/ui-router/commit/95ae0cf)), closes [#2546](https://github.com/angular-ui/ui-router/issues/2546) +* **TransitionManager:** Update url even when the Transition is ignored.([f9c3e3c](https://github.com/angular-ui/ui-router/commit/f9c3e3c)), closes [#2723](https://github.com/angular-ui/ui-router/issues/2723) + +## ng1 +* **ng1.component:** Allow route-to-component "@" and optional bindings([71b3393](https://github.com/angular-ui/ui-router/commit/71b3393)), closes [#2708](https://github.com/angular-ui/ui-router/issues/2708) +* **view:** only run ng1 route-to-component code if component: is a string([ec1c534](https://github.com/angular-ui/ui-router/commit/ec1c534)) + +## ng2 +* **ng2.uiSrefStatus:** Avoid "dehydrated detector" error([9111727](https://github.com/angular-ui/ui-router/commit/9111727)), closes [#2684](https://github.com/angular-ui/ui-router/issues/2684) +* **ng2.uiView:** Fix "Invalid left-hand in assignment"([3f711a1](https://github.com/angular-ui/ui-router/commit/3f711a1)) +* **build:** declare external dep on `angular/core` in webpack bundle([adfbde3](https://github.com/angular-ui/ui-router/commit/adfbde3)), closes [#2687](https://github.com/angular-ui/ui-router/issues/2687) + + + +### Features + +## ng2 +* **ng2.uiView:** bind resolve data to input[] and [@Input](https://github.com/Input)(), process bindings:([f6dae28](https://github.com/angular-ui/ui-router/commit/f6dae28)) +* **ng2.urlRouter:** HTML5 PushState support([9842fb7](https://github.com/angular-ui/ui-router/commit/9842fb7)), closes [#2688](https://github.com/angular-ui/ui-router/issues/2688) +* **ng2.UIRouter:** update to ng2 beta.17([45c0758](https://github.com/angular-ui/ui-router/commit/45c0758)) +* **ng2.UIRouter:** Update ui-router for ng2 rc.1([3219406](https://github.com/angular-ui/ui-router/commit/3219406)), closes [#2722](https://github.com/angular-ui/ui-router/issues/2722) + + + + +# [1.0.0-alpha.4 commits](https://github.com/angular-ui/ui-router/compare/1.0.0-alpha.3...1.0.0-alpha.4) (2016-04-06) + +### Bug Fixes + +* **ng2.uiView:** Fix "Invalid left-hand in assignment" ([3f711a1](https://github.com/angular-ui/ui-router/commit/3f711a1)) +* **view:** only run ng1 route-to-component code if component: is a string ([ec1c534](https://github.com/angular-ui/ui-router/commit/ec1c534)) + +### Features + +* **uiView:** add support for hybrid ng1/ng2 ui-router apps via ng-upgrade and http://github.com/ui-router/ng1-to-ng2 +* **ng2.uiView:** bind resolve data to input[] and @Input(), process bindings: ([f6dae28](https://github.com/angular-ui/ui-router/commit/f6dae28)) + + + + +# [1.0.0-alpha.2](https://github.com/angular-ui/ui-router/compare/1.0.0-alpha.1...v1.0.0-alpha.2) (2016-04-03) + +Changes between 1.0.0-alpha.1 and 1.0.0-alpha.2 + +## Angular 2 +This is the first release with angular 2 support. See http://github.com/ui-router/quickstart-ng2 for a small ui-router-ng2 app + +### Bug Fixes + +* **ViewHooks:** Avoid calling $onInit if angular 1.5 will call it for us ([d42b617](https://github.com/angular-ui/ui-router/commit/d42b617)), closes [#2660](https://github.com/angular-ui/ui-router/issues/2660) +* **ViewHooks:** Fix problem with injecting uiCanExit ([76ab22d](https://github.com/angular-ui/ui-router/commit/76ab22d)), closes [#2661](https://github.com/angular-ui/ui-router/issues/2661) +* **view:** temporary sanity check that a node exists ([1c0edeb](https://github.com/angular-ui/ui-router/commit/1c0edeb)), closes [#2657](https://github.com/angular-ui/ui-router/issues/2657) +* **justjs.$q:** Fix $q.all([..]) and $q.all({...}) ([b1624c6](https://github.com/angular-ui/ui-router/commit/b1624c6)) +* **ng2.uiSref:** Fix anchor href generation ([98b5b42](https://github.com/angular-ui/ui-router/commit/98b5b42)) +* **ng2.uiSrefStatus:** calculate target state parameters ([46cdf4c](https://github.com/angular-ui/ui-router/commit/46cdf4c)) +* **ng2.uiView:** Dispose prev comp on empty viewconfig ([f28e0c3](https://github.com/angular-ui/ui-router/commit/f28e0c3)) + +### Features + +* **UIRouterConfig:** Define UIRouterConfig class for router bootstrap ([c16b9e6](https://github.com/angular-ui/ui-router/commit/c16b9e6)) +* **UIRouterGlobals:** Create UIRouterGlobals ([0eb7406](https://github.com/angular-ui/ui-router/commit/0eb7406)), closes [#2525](https://github.com/angular-ui/ui-router/issues/2525) +* **ui-router-ng2:** Update providers and viewsBuilder to match new 1.0 API ([ff54d61](https://github.com/angular-ui/ui-router/commit/ff54d61)) +* **ng2.uiSrefActive:** Implement uiSrefStatus, uiSrefActive, uiSrefActiveEq ([fcb15c5](https://github.com/angular-ui/ui-router/commit/fcb15c5)) + + + + +# [1.0.0-alpha.1 commits](https://github.com/angular-ui/ui-router/compare/1.0.0alpha0...1.0.0-alpha.1) (2016-03-27) + +## We will maintain a list of [Known BC from 0.2.x to 1.0 final](https://github.com/angular-ui/ui-router/issues/2219) to help people upgrade to the 1.0 release. + +## Bug fixes and features since 1.0.0alpha0 + +### Bug Fixes + +* **date:** Compare dates only using year, month, date ([7a68ade](https://github.com/angular-ui/ui-router/commit/7a68ade)), closes [#2484](https://github.com/angular-ui/ui-router/issues/2484) +* **params:** Clone all properties of a Node. Introduce applyRawParams() ([88c624d](https://github.com/angular-ui/ui-router/commit/88c624d)) +* **RejectFactory:** stringify rejections with circular dependency-aware stringify ([199db79](https://github.com/angular-ui/ui-router/commit/199db79)), closes [#2538](https://github.com/angular-ui/ui-router/issues/2538) +* **src/resolve:** use injector's strictDi value in calls to .annotate ([4c5b5d8](https://github.com/angular-ui/ui-router/commit/4c5b5d8)) +* **stateQueueManager:** Use `location: true` for url-matched transitions ([25e0c04](https://github.com/angular-ui/ui-router/commit/25e0c04)), closes [#2455](https://github.com/angular-ui/ui-router/issues/2455) +* **stateService:** Process reload: in the StateService.target() ([081da32](https://github.com/angular-ui/ui-router/commit/081da32)), closes [#2537](https://github.com/angular-ui/ui-router/issues/2537) +* **Transition:** Do not reuse resolves for reloaded state during redirect ([0c123c3](https://github.com/angular-ui/ui-router/commit/0c123c3)), closes [#2539](https://github.com/angular-ui/ui-router/issues/2539) +* **Transition:** Reject Transition promise when onBefore error ([4b6d56f](https://github.com/angular-ui/ui-router/commit/4b6d56f)), closes [#2561](https://github.com/angular-ui/ui-router/issues/2561) +* **Transition:** Reset URL to current state after aborted transition ([3a1308b](https://github.com/angular-ui/ui-router/commit/3a1308b)), closes [#2611](https://github.com/angular-ui/ui-router/issues/2611) +* **transition/transitionService:** uses console.error to log error in default error handler ([43a8fc5](https://github.com/angular-ui/ui-router/commit/43a8fc5)) +* **ui-sref:** update ui-sref-active/eq info when params change ([dcbaebf](https://github.com/angular-ui/ui-router/commit/dcbaebf)), closes [#2554](https://github.com/angular-ui/ui-router/issues/2554) +* **ui-state:** update ui-sref-active/eq info ([025ebc8](https://github.com/angular-ui/ui-router/commit/025ebc8)), closes [#2488](https://github.com/angular-ui/ui-router/issues/2488) +* **UrlMatcher:** Format parent/child UrlMatchers properly ([86e07ef](https://github.com/angular-ui/ui-router/commit/86e07ef)), closes [##2504](https://github.com/#/issues/2504) +* **UrlMatcher:** isOptional always false for empty parameter ([4e85db4](https://github.com/angular-ui/ui-router/commit/4e85db4)) + +### Features + +* **params:** Add uiOnParamsChanged controller callback ([961c96d](https://github.com/angular-ui/ui-router/commit/961c96d)), closes [#2608](https://github.com/angular-ui/ui-router/issues/2608) [#2470](https://github.com/angular-ui/ui-router/issues/2470) [#2391](https://github.com/angular-ui/ui-router/issues/2391) [#1967](https://github.com/angular-ui/ui-router/issues/1967) +* **resolve:** Allow all resolved data for a node to be injected as `$resolve$` ([e432c27](https://github.com/angular-ui/ui-router/commit/e432c27)) +* **state:** Expose the internal state API via `$$state()` ([92053f1](https://github.com/angular-ui/ui-router/commit/92053f1)), closes [#13](https://github.com/angular-ui/ui-router/issues/13) +* **ui-router-ng2:** Initial angular2 support ([217de70](https://github.com/angular-ui/ui-router/commit/217de70)) +* **uiCanExit:** Add controller lifecycle hook "uiCanExit" ([afcfe95](https://github.com/angular-ui/ui-router/commit/afcfe95)) +* **uiView:** Expose the resolved data for a state as $scope.$resolve ([0f6aea6](https://github.com/angular-ui/ui-router/commit/0f6aea6)), closes [#2175](https://github.com/angular-ui/ui-router/issues/2175) [#2547](https://github.com/angular-ui/ui-router/issues/2547) +* **uiView:** Fire the $onInit hook ([c8afc38](https://github.com/angular-ui/ui-router/commit/c8afc38)), closes [#2559](https://github.com/angular-ui/ui-router/issues/2559) +* **uiView:** Put $animate promises on element.data('$uiView') ([a5578de](https://github.com/angular-ui/ui-router/commit/a5578de)), closes [#2562](https://github.com/angular-ui/ui-router/issues/2562) [#2579](https://github.com/angular-ui/ui-router/issues/2579) +* **view:** Route a view to a directive using `component:` ([1552032](https://github.com/angular-ui/ui-router/commit/1552032)), closes [#2627](https://github.com/angular-ui/ui-router/issues/2627) + + + +## Other commits + +Many of these commits are merged from 0.2.x `legacy` branch + +* **uiSrefActive:** allow multiple classes ([120d7ad](https://github.com/angular-ui/ui-router/commit/120d7ad)), closes [#2481](https://github.com/angular-ui/ui-router/issues/2481) [#2482](https://github.com/angular-ui/ui-router/issues/2482) +* **justjs:** provide naive implementation of most of the coreservices api ([426f134](https://github.com/angular-ui/ui-router/commit/426f134)) +* **resolve:** add $resolve service back to 1.0 ([70c6659](https://github.com/angular-ui/ui-router/commit/70c6659)) +* **uiSrefActive:** allow active & active-eq on same element ([d9a676b](https://github.com/angular-ui/ui-router/commit/d9a676b)), closes [#1997](https://github.com/angular-ui/ui-router/issues/1997) +* **uiSrefActive:** provide a ng-{class,style} like interface ([a9ff6fe](https://github.com/angular-ui/ui-router/commit/a9ff6fe)), closes [#1431](https://github.com/angular-ui/ui-router/issues/1431) +* **uiSrefActive:** Added support for multiple nested uiSref directives ([b184494](https://github.com/angular-ui/ui-router/commit/b184494)) +* **uiState:** add ui-state directive ([3831af1](https://github.com/angular-ui/ui-router/commit/3831af1)), closes [#395](https://github.com/angular-ui/ui-router/issues/395) [#900](https://github.com/angular-ui/ui-router/issues/900) [#1932](https://github.com/angular-ui/ui-router/issues/1932) +* **urlMatcher:** add support for optional spaces ([4b7f304](https://github.com/angular-ui/ui-router/commit/4b7f304)) +* **urlMatcher:** Add param only type names ([6a371f9](https://github.com/angular-ui/ui-router/commit/6a371f9)) +* **$IncludedByStateFilter:** add parameters to $IncludedByStateFilter ([963f6e7](https://github.com/angular-ui/ui-router/commit/963f6e7)), closes [#1735](https://github.com/angular-ui/ui-router/issues/1735) +* **$state:** make state data inheritance prototypical ([c4fec8c](https://github.com/angular-ui/ui-router/commit/c4fec8c)) +* **$state:** Inject templateProvider with resolved values ([afa20f2](https://github.com/angular-ui/ui-router/commit/afa20f2)) +* **$state:** added 'state' to state reload method (feat no.1612) ([b8f0457](https://github.com/angular-ui/ui-router/commit/b8f0457)) +* **$state:** broadcast $stateChangeCancel event when event.preventDefault() is called in $sta ([ecefb75](https://github.com/angular-ui/ui-router/commit/ecefb75)) +* **$state:** inject resolve params into controllerProvider ([b380c22](https://github.com/angular-ui/ui-router/commit/b380c22)), closes [#1131](https://github.com/angular-ui/ui-router/issues/1131) +* **$state:** support URLs with #fragments ([3da0a17](https://github.com/angular-ui/ui-router/commit/3da0a17)) +* **$uiViewScroll:** change function to return promise ([c2a9a31](https://github.com/angular-ui/ui-router/commit/c2a9a31)), closes [#1702](https://github.com/angular-ui/ui-router/issues/1702) + + + + +### 0.2.18 (2016-02-07) + +This is a maintenance release which fixes a few known bugs introduced in 0.2.16. + +#### Bug Fixes + +* **$urlRouter:** revert BC: resolve clashing of routes This reverts commit b5c57c8ec2e14e17e75104 ([2f1ebefc](https://github.com/angular-ui/ui-router/commit/2f1ebefc242ff48960e0bf63da359296a38f6852), closes [#2501](https://github.com/angular-ui/ui-router/issues/2501)) +* **uiState:** Corrected typo for 'ref' variable (#2488, #2508) ([b8f3c144](https://github.com/angular-ui/ui-router/commit/b8f3c144b913e620f177b78f3b4f52afa61d41a6)) +* **$urlMatcherFactory:** Fix to make the YUI Javascript compressor work ([ad9c41d2](https://github.com/angular-ui/ui-router/commit/ad9c41d2e723d50e30dd3452fbd274b7057dc3d9)) +* **stateBuilder:** fix non-url params on a state without a url. The parameters are now applied when ([d6d8c332](https://github.com/angular-ui/ui-router/commit/d6d8c3322c4dde8bb5b8dde25f9fcda49e9c4c81), closes [#2025](https://github.com/angular-ui/ui-router/issues/2025)) +* **ui-view:** (ui-view) use static renderer when no animation is present for a ui-view ([2523bbdb](https://github.com/angular-ui/ui-router/commit/2523bbdb5542483a489c22804f1751b8b9f71703), closes [#2485](https://github.com/angular-ui/ui-router/issues/2485)). This allows a ui-view scope to be destroyed when switching states, before the next view is initialized. + + +#### Features + +* **ui-view:** Add noanimation attribute to specify static renderer. ([2523bbdb](https://github.com/angular-ui/ui-router/commit/2523bbdb5542483a489c22804f1751b8b9f71703), closes [#2485](https://github.com/angular-ui/ui-router/issues/2485)). This allows a ui-view scope to be destroyed before the next ui-view is initialized, when ui-view animation is not present. + + + +### 0.2.17 (2016-01-25) + + +#### Bug Fixes + +* **uiSrefActive:** allow multiple classes ([a89114a0](https://github.com/angular-ui/ui-router/commit/a89114a083813c1a7280c48fc18e626caa5a31f4), closes [#2481](https://github.com/angular-ui/ui-router/issues/2481), [#2482](https://github.com/angular-ui/ui-router/issues/2482)) + + + +### 0.2.16 (2016-01-24) + + +#### Bug Fixes + +* **$state:** + * statechangeCancel: Avoid infinite digest in .otherwise/redirect case. Don't clobber url if a new transition has started. Closes #222 ([e00aa695](https://github.com/angular-ui/ui-router/commit/e00aa695e41ddc5ebd5d2b226aa0917a751b11aa), closes [#2238](https://github.com/angular-ui/ui-router/issues/2238)) + * transitionTo: Allow hash (#) value to be read as toParams['#'] in events. Re-add the saved hash before broadcasting $stateChangeStart event. ([8c1bf30d](https://github.com/angular-ui/ui-router/commit/8c1bf30d2a3b78ba40b330f12d854c885d6cc117)) +* **$stateParams:** Fix for testing: reset service instance between tests ([2aeb0c4b](https://github.com/angular-ui/ui-router/commit/2aeb0c4b205baf6cfa2ef25bb986bb160dc13bf9)) +* **$urlRouter:** + * Sort URL rules by specificity. Potential minor BC if apps were relying on rule registration order. ([b5c57c8e](https://github.com/angular-ui/ui-router/commit/b5c57c8ec2e14e17e75104c1424654f126ea4011)) + * Use $sniffer for pushstate compat check ([c219e801](https://github.com/angular-ui/ui-router/commit/c219e801797f340ef9c5c919ab890ef003a7a042)) +* **UrlMatcher:** + * Properly encode/decode slashes in parameters Closes #2172 Closes #2250 Closes #1 ([02e98660](https://github.com/angular-ui/ui-router/commit/02e98660a80dfd1ca4b113dd24ee304af91e9f8c), closes [#2339](https://github.com/angular-ui/ui-router/issues/2339)) + * Array types: Fix default value for array query parameters. Pass empty arrays through in handler. ([20d6e243](https://github.com/angular-ui/ui-router/commit/20d6e243f1745ddbf257217245a1dc22eabe13da), closes [#2222](https://github.com/angular-ui/ui-router/issues/2222)) + * Remove trailing slash, if parameter is optional and was squashed from URL ([77fa11bf](https://github.com/angular-ui/ui-router/commit/77fa11bf0787d0f6da97ab0003ab29afb7411391), closes [#1902](https://github.com/angular-ui/ui-router/issues/1902)) + * Allow a parameter declaration to configure the parameter type by name. closes #2294 ([e4010249](https://github.com/angular-ui/ui-router/commit/e40102492d40fe1cf6ba14d955fcc9f345c16458)) + * include the slash when recognizing squashed params in url ([b5130bb1](https://github.com/angular-ui/ui-router/commit/b5130bb1215e15f832ea6daa670410b9a950c0d4), closes [#2064](https://github.com/angular-ui/ui-router/issues/2064)) + * Allow url query param names to contain periods ([d31b3337](https://github.com/angular-ui/ui-router/commit/d31b3337cc2ce71d87c92fdded629e46558d0b49)) +* **reloadOnSearch:** Update `locals.globals.$stateParams` when reloadOnSearch=false ([350d3e87](https://github.com/angular-ui/ui-router/commit/350d3e87783a2263fd7d23913da34f1268c3300b), closes [#2356](https://github.com/angular-ui/ui-router/issues/2356)) +* **ui-view:** + * fix $animate usage for ng 1.4+ ([9b6d9a2d](https://github.com/angular-ui/ui-router/commit/9b6d9a2d0ce4ae08384165cb517bddea59b67892)) + * change $viewContentLoading to pair with $viewContentLoaded ([f9b43d66](https://github.com/angular-ui/ui-router/commit/f9b43d66833f0e17de41fd8d1cc3b491e3ba4a0e), closes [#685](https://github.com/angular-ui/ui-router/issues/685)) + * $destroy event is triggered before animation ends ([1be13795](https://github.com/angular-ui/ui-router/commit/1be13795686ab78abb2d5094bc8addcacb928975)) +* **uiSref:** + * Ensure URL once param checks pass ([9dc31c54](https://github.com/angular-ui/ui-router/commit/9dc31c5465328e5666468b0c2319ce205f4b72f8), closes [#2091](https://github.com/angular-ui/ui-router/issues/2091)) + * uiSrefActive: update the active classes after linking directive ([7c914030](https://github.com/angular-ui/ui-router/commit/7c914030f13e05e45a941c1b723cb785db729890)) + + +#### Features + +* **$IncludedByStateFilter:** add parameters to $IncludedByStateFilter ([963f6e71](https://github.com/angular-ui/ui-router/commit/963f6e71633b9c3a266f3991d79089b7d14786b4), closes [#1735](https://github.com/angular-ui/ui-router/issues/1735)) +* **isStateFilter:** Include optional state params. ([71d74699](https://github.com/angular-ui/ui-router/commit/71d7469987ee9ca86a41c8c6393ccd5d8913c3d6)) +* **$state:** make state data inheritance prototypical ([c4fec8c7](https://github.com/angular-ui/ui-router/commit/c4fec8c7998113902af4152d716c42dada6eb465)) +* **$stateChangeStart:** Add options to event ([a1f07559](https://github.com/angular-ui/ui-router/commit/a1f07559ec74e10ff80bc4be81f287e3772b8fcb)) +* **UrlMatcher:** Add param only type names ([6a371f9b](https://github.com/angular-ui/ui-router/commit/6a371f9b70e37a82eb324122879e4473c3f6d526)) +* **uiSrefActive:** + * provide a ng-{class,style} like interface ([a9ff6feb](https://github.com/angular-ui/ui-router/commit/a9ff6febb469e0d5cd49054216c4472df7a6259d)) + * allow active & active-eq on same element ([d9a676ba](https://github.com/angular-ui/ui-router/commit/d9a676ba2c4d9e954be224c60496bcb38f6074e3)) +* **uiState:** add ui-state directive ([3831af1d](https://github.com/angular-ui/ui-router/commit/3831af1dc71b601351e6694af0665a77297f8f7f), closes [#395](https://github.com/angular-ui/ui-router/issues/395), [#900](https://github.com/angular-ui/ui-router/issues/900), [#1932](https://github.com/angular-ui/ui-router/issues/1932)) +* **urlMatcher:** add support for optional spaces in params ([4b7f3046](https://github.com/angular-ui/ui-router/commit/4b7f304617f0b3590b532103b5c2fb526c98a9e4)) + + + +### 0.2.15 (2015-05-19) + + +#### Bug Fixes + +* **$state:** reloadOnSearch should not affect non-search param changes. ([6ca0d770](https://github.com/angular-ui/ui-router/commit/6ca0d7704cf7de9c6e6b7bb64df2f9c68fe081cc), closes [#1079](https://github.com/angular-ui/ui-router/issues/1079)) +* **urlMatcherFactory:** Revert to 0.2.13 behavior where all string parameters are considered optional fi ([495a02c3](https://github.com/angular-ui/ui-router/commit/495a02c3cbde501c1c149bce137806669209bc29), closes [#1963](https://github.com/angular-ui/ui-router/issues/1963)) +* **urlRouter:** allow .when() to redirect, even after a successful $state.go() - This partially ([48aeaff6](https://github.com/angular-ui/ui-router/commit/48aeaff645baf3f42f5a8940ebd97563791ad9f8), closes [#1584](https://github.com/angular-ui/ui-router/issues/1584)) + + +#### Features + +* **$state:** Inject templateProvider with resolved values ([afa20f22](https://github.com/angular-ui/ui-router/commit/afa20f22373b7176b26daa7e1099750c4254a354)) + + + +### 0.2.14 (2015-04-23) + + +#### Bug Fixes + +* **$StateRefDirective:** resolve missing support for svg anchor elements #1667 ([0149a7bb](https://github.com/angular-ui/ui-router/commit/0149a7bb38b7af99388a1ad7cc9909a7b7c4439d)) +* **$urlMatcherFactory:** + * regex params should respect case-sensitivity ([1e10519f](https://github.com/angular-ui/ui-router/commit/1e10519f3be6bbf0cefdcce623cd2ade06e649e5), closes [#1671](https://github.com/angular-ui/ui-router/issues/1671)) + * unquote all dashes from array params ([06664d33](https://github.com/angular-ui/ui-router/commit/06664d330f882390655dcfa83e10276110d0d0fa)) + * add Type.$normalize function ([b0c6aa23](https://github.com/angular-ui/ui-router/commit/b0c6aa2350fdd3ce8483144774adc12f5a72b7e9)) + * make optional params regex grouping optional ([06f73794](https://github.com/angular-ui/ui-router/commit/06f737945e83e668d09cfc3bcffd04a500ff1963), closes [#1576](https://github.com/angular-ui/ui-router/issues/1576)) +* **$state:** allow about.*.** glob patterns ([e39b27a2](https://github.com/angular-ui/ui-router/commit/e39b27a2cb7d88525c446a041f9fbf1553202010)) +* **uiSref:** + * use Object's toString instead of Window's toString ([2aa7f4d1](https://github.com/angular-ui/ui-router/commit/2aa7f4d139dbd5b9fcc4afdcf2ab6642c87f5671)) + * add absolute to allowed transition options ([ae1b3c4e](https://github.com/angular-ui/ui-router/commit/ae1b3c4eedc37983400d830895afb50457c63af4)) +* **uiSrefActive:** Apply active classes on lazy loaded states ([f0ddbe7b](https://github.com/angular-ui/ui-router/commit/f0ddbe7b4a91daf279c3b7d0cee732bb1f3be5b4)) +* **uiView:** add `$element` to locals for view controller ([db68914c](https://github.com/angular-ui/ui-router/commit/db68914cd6c821e7dec8155bd33142a3a97f5453)) + + +#### Features + +* **$state:** + * support URLs with #fragments ([3da0a170](https://github.com/angular-ui/ui-router/commit/3da0a17069e27598c0f9d9164e104dd5ce05cdc6)) + * inject resolve params into controllerProvider ([b380c223](https://github.com/angular-ui/ui-router/commit/b380c223fe12e2fde7582c0d6b1ed7b15a23579b), closes [#1131](https://github.com/angular-ui/ui-router/issues/1131)) + * added 'state' to state reload method (feat no.1612) - modiefied options.reload ([b8f04575](https://github.com/angular-ui/ui-router/commit/b8f04575a8557035c1858c4d5c8dbde3e1855aaa)) + * broadcast $stateChangeCancel event when event.preventDefault() is called in $sta ([ecefb758](https://github.com/angular-ui/ui-router/commit/ecefb758cb445e41620b62a272aafa3638613d7a)) +* **$uiViewScroll:** change function to return promise ([c2a9a311](https://github.com/angular-ui/ui-router/commit/c2a9a311388bb212e5a2e820536d1d739f829ccd), closes [#1702](https://github.com/angular-ui/ui-router/issues/1702)) +* **uiSrefActive:** Added support for multiple nested uiSref directives ([b1844948](https://github.com/angular-ui/ui-router/commit/b18449481d152b50705abfce2493a444eb059fa5)) + + + +### 0.2.13 (2014-11-20) + +This release primarily fixes issues reported against 0.2.12 + +#### Bug Fixes + +* **$state:** fix $state.includes/.is to apply param types before comparisions fix(uiSref): ma ([19715d15](https://github.com/angular-ui/ui-router/commit/19715d15e3cbfff724519e9febedd05b49c75baa), closes [#1513](https://github.com/angular-ui/ui-router/issues/1513)) + * Avoid re-synchronizing from url after .transitionTo ([b267ecd3](https://github.com/angular-ui/ui-router/commit/b267ecd348e5c415233573ef95ebdbd051875f52), closes [#1573](https://github.com/angular-ui/ui-router/issues/1573)) +* **$urlMatcherFactory:** + * Built-in date type uses local time zone ([d726bedc](https://github.com/angular-ui/ui-router/commit/d726bedcbb5f70a5660addf43fd52ec730790293)) + * make date type fn check .is before running ([aa94ce3b](https://github.com/angular-ui/ui-router/commit/aa94ce3b86632ad05301530a2213099da73a3dc0), closes [#1564](https://github.com/angular-ui/ui-router/issues/1564)) + * early binding of array handler bypasses type resolution ([ada4bc27](https://github.com/angular-ui/ui-router/commit/ada4bc27df5eff3ba3ab0de94a09bd91b0f7a28c)) + * add 'any' Type for non-encoding non-url params ([3bfd75ab](https://github.com/angular-ui/ui-router/commit/3bfd75ab445ee2f1dd55275465059ed116b10b27), closes [#1562](https://github.com/angular-ui/ui-router/issues/1562)) + * fix encoding slashes in params ([0c983a08](https://github.com/angular-ui/ui-router/commit/0c983a08e2947f999683571477debd73038e95cf), closes [#1119](https://github.com/angular-ui/ui-router/issues/1119)) + * fix mixed path/query params ordering problem ([a479fbd0](https://github.com/angular-ui/ui-router/commit/a479fbd0b8eb393a94320973e5b9a62d83912ee2), closes [#1543](https://github.com/angular-ui/ui-router/issues/1543)) +* **ArrayType:** + * specify empty array mapping corner case ([74aa6091](https://github.com/angular-ui/ui-router/commit/74aa60917e996b0b4e27bbb4eb88c3c03832021d), closes [#1511](https://github.com/angular-ui/ui-router/issues/1511)) + * fix .equals for array types ([5e6783b7](https://github.com/angular-ui/ui-router/commit/5e6783b77af9a90ddff154f990b43dbb17eeda6e), closes [#1538](https://github.com/angular-ui/ui-router/issues/1538)) +* **Param:** fix default value shorthand declaration ([831d812a](https://github.com/angular-ui/ui-router/commit/831d812a524524c71f0ee1c9afaf0487a5a66230), closes [#1554](https://github.com/angular-ui/ui-router/issues/1554)) +* **common:** fixed the _.filter clone to not create sparse arrays ([750f5cf5](https://github.com/angular-ui/ui-router/commit/750f5cf5fd91f9ada96f39e50d39aceb2caf22b6), closes [#1563](https://github.com/angular-ui/ui-router/issues/1563)) +* **ie8:** fix calls to indexOf and filter ([dcb31b84](https://github.com/angular-ui/ui-router/commit/dcb31b843391b3e61dee4de13f368c109541813e), closes [#1556](https://github.com/angular-ui/ui-router/issues/1556)) + + +#### Features + +* add json parameter Type ([027f1fcf](https://github.com/angular-ui/ui-router/commit/027f1fcf9c0916cea651e88981345da6f9ff214a)) + + + +### 0.2.12 (2014-11-13) + +#### Bug Fixes + +* **$resolve:** use resolve fn result, not parent resolved value of same name ([67f5e00c](https://github.com/angular-ui/ui-router/commit/67f5e00cc9aa006ce3fe6cde9dff261c28eab70a), closes [#1317], [#1353]) +* **$state:** + * populate default params in .transitionTo. ([3f60fbe6](https://github.com/angular-ui/ui-router/commit/3f60fbe6d65ebeca8d97952c05aa1d269f1b7ba1), closes [#1396]) + * reload() now reinvokes controllers ([73443420](https://github.com/angular-ui/ui-router/commit/7344342018847902594dc1fc62d30a5c30f01763), closes [#582]) + * do not emit $viewContentLoading if notify: false ([74255feb](https://github.com/angular-ui/ui-router/commit/74255febdf48ae082a02ca1e735165f2c369a463), closes [#1387](https://github.com/angular-ui/ui-router/issues/1387)) + * register states at config-time ([4533fe36](https://github.com/angular-ui/ui-router/commit/4533fe36e0ab2f0143edd854a4145deaa013915a)) + * handle parent.name when parent is obj ([4533fe36](https://github.com/angular-ui/ui-router/commit/4533fe36e0ab2f0143edd854a4145deaa013915a)) +* **$urlMatcherFactory:** + * register types at config ([4533fe36](https://github.com/angular-ui/ui-router/commit/4533fe36e0ab2f0143edd854a4145deaa013915a), closes [#1476]) + * made path params default value "" for backwards compat ([8f998e71](https://github.com/angular-ui/ui-router/commit/8f998e71e43a0b31293331c981f5db0f0097b8ba)) + * Pre-replace certain param values for better mapping ([6374a3e2](https://github.com/angular-ui/ui-router/commit/6374a3e29ab932014a7c77d2e1ab884cc841a2e3)) + * fixed ParamSet.$$keys() ordering ([9136fecb](https://github.com/angular-ui/ui-router/commit/9136fecbc2bfd4fda748a9914f0225a46c933860)) + * empty string policy now respected in Param.value() ([db12c85c](https://github.com/angular-ui/ui-router/commit/db12c85c16f2d105415f9bbbdeb11863f64728e0)) + * "string" type now encodes/decodes slashes ([3045e415](https://github.com/angular-ui/ui-router/commit/3045e41577a8b8b8afc6039f42adddf5f3c061ec), closes [#1119]) + * allow arrays in both path and query params ([fdd2f2c1](https://github.com/angular-ui/ui-router/commit/fdd2f2c191c4a67c874fdb9ec9a34f8dde9ad180), closes [#1073], [#1045], [#1486], [#1394]) + * typed params in search ([8d4cab69](https://github.com/angular-ui/ui-router/commit/8d4cab69dd67058e1a716892cc37b7d80a57037f), closes [#1488](https://github.com/angular-ui/ui-router/issues/1488)) + * no longer generate unroutable urls ([cb9fd9d8](https://github.com/angular-ui/ui-router/commit/cb9fd9d8943cb26c7223f6990db29c82ae8740f8), closes [#1487](https://github.com/angular-ui/ui-router/issues/1487)) + * handle optional parameter followed by required parameter in url format. ([efc72106](https://github.com/angular-ui/ui-router/commit/efc72106ddcc4774b48ea176a505ef9e95193b41)) + * default to parameter string coersion. ([13a468a7](https://github.com/angular-ui/ui-router/commit/13a468a7d54c2fb0751b94c0c1841d580b71e6dc), closes [#1414](https://github.com/angular-ui/ui-router/issues/1414)) + * concat respects strictMode/caseInsensitive ([dd72e103](https://github.com/angular-ui/ui-router/commit/dd72e103edb342d9cf802816fe127e1bbd68fd5f), closes [#1395]) +* **ui-sref:** + * Allow sref state options to take a scope object ([b5f7b596](https://github.com/angular-ui/ui-router/commit/b5f7b59692ce4933e2d63eb5df3f50a4ba68ccc0)) + * replace raw href modification with attrs. ([08c96782](https://github.com/angular-ui/ui-router/commit/08c96782faf881b0c7ab00afc233ee6729548fa0)) + * nagivate to state when url is "" fix($state.href): generate href for state with ([656b5aab](https://github.com/angular-ui/ui-router/commit/656b5aab906e5749db9b5a080c6a83b95f50fd91), closes [#1363](https://github.com/angular-ui/ui-router/issues/1363)) + * Check that state is defined in isMatch() ([92aebc75](https://github.com/angular-ui/ui-router/commit/92aebc7520f88babdc6e266536086e07263514c3), closes [#1314](https://github.com/angular-ui/ui-router/issues/1314), [#1332](https://github.com/angular-ui/ui-router/issues/1332)) +* **uiView:** + * allow inteprolated ui-view names ([81f6a19a](https://github.com/angular-ui/ui-router/commit/81f6a19a432dac9198fd33243855bfd3b4fea8c0), closes [#1324](https://github.com/angular-ui/ui-router/issues/1324)) + * Made anim work with angular 1.3 ([c3bb7ad9](https://github.com/angular-ui/ui-router/commit/c3bb7ad903da1e1f3c91019cfd255be8489ff4ef), closes [#1367](https://github.com/angular-ui/ui-router/issues/1367), [#1345](https://github.com/angular-ui/ui-router/issues/1345)) +* **urlRouter:** html5Mode accepts an object from angular v1.3.0-rc.3 ([7fea1e9d](https://github.com/angular-ui/ui-router/commit/7fea1e9d0d8c6e09cc6c895ecb93d4221e9adf48)) +* **stateFilters:** mark state filters as stateful. ([a00b353e](https://github.com/angular-ui/ui-router/commit/a00b353e3036f64a81245c4e7898646ba218f833), closes [#1479]) +* **ui-router:** re-add IE8 compatibility for map/filter/keys ([8ce69d9f](https://github.com/angular-ui/ui-router/commit/8ce69d9f7c886888ab53eca7e53536f36b428aae), closes [#1518], [#1383]) +* **package:** point 'main' to a valid filename ([ac903350](https://github.com/angular-ui/ui-router/commit/ac9033501debb63364539d91fbf3a0cba4579f8e)) +* **travis:** make CI build faster ([0531de05](https://github.com/angular-ui/ui-router/commit/0531de052e414a8d839fbb4e7635e923e94865b3)) + + +#### Features + +##### Default and Typed params + +This release includes a lot of bug fixes around default/optional and typed parameters. As such, 0.2.12 is the first release where we recommend those features be used. + +* **$state:** + * add state params validation ([b1379e6a](https://github.com/angular-ui/ui-router/commit/b1379e6a4d38f7ed7436e05873932d7c279af578), closes [#1433](https://github.com/angular-ui/ui-router/issues/1433)) + * is/includes/get work on relative stateOrName ([232e94b3](https://github.com/angular-ui/ui-router/commit/232e94b3c2ca2c764bb9510046e4b61690c87852)) + * .reload() returns state transition promise ([639e0565](https://github.com/angular-ui/ui-router/commit/639e0565dece9d5544cc93b3eee6e11c99bd7373)) +* **$templateFactory:** request templateURL as text/html ([ccd60769](https://github.com/angular-ui/ui-router/commit/ccd6076904a4b801d77b47f6e2de4c06ce9962f8), closes [#1287]) +* **$urlMatcherFactory:** Made a Params and ParamSet class ([0cc1e6cc](https://github.com/angular-ui/ui-router/commit/0cc1e6cc461a4640618e2bb594566551c54834e2)) + + + + +### 0.2.11 (2014-08-26) + + +#### Bug Fixes + +* **$resolve:** Resolves only inherit from immediate parent fixes #702 ([df34e20c](https://github.com/angular-ui/ui-router/commit/df34e20c576299e7a3c8bd4ebc68d42341c0ace9)) +* **$state:** + * change $state.href default options.inherit to true ([deea695f](https://github.com/angular-ui/ui-router/commit/deea695f5cacc55de351ab985144fd233c02a769)) + * sanity-check state lookups ([456fd5ae](https://github.com/angular-ui/ui-router/commit/456fd5aec9ea507518927bfabd62b4afad4cf714), closes [#980](https://github.com/angular-ui/ui-router/issues/980)) + * didn't comply to inherit parameter ([09836781](https://github.com/angular-ui/ui-router/commit/09836781f126c1c485b06551eb9cfd4fa0f45c35)) + * allow view content loading broadcast ([7b78edee](https://github.com/angular-ui/ui-router/commit/7b78edeeb52a74abf4d3f00f79534033d5a08d1a)) +* **$urlMatcherFactory:** + * detect injected functions ([91f75ae6](https://github.com/angular-ui/ui-router/commit/91f75ae66c4d129f6f69e53bd547594e9661f5d5)) + * syntax ([1ebed370](https://github.com/angular-ui/ui-router/commit/1ebed37069bae8614d41541d56521f5c45f703f3)) +* **UrlMatcher:** + * query param function defaults ([f9c20530](https://github.com/angular-ui/ui-router/commit/f9c205304f10d8a4ebe7efe9025e642016479a51)) + * don't decode default values ([63607bdb](https://github.com/angular-ui/ui-router/commit/63607bdbbcb432d3fb37856a1cb3da0cd496804e)) +* **travis:** update Node version to fix build ([d6b95ef2](https://github.com/angular-ui/ui-router/commit/d6b95ef23d9dacb4eba08897f5190a0bcddb3a48)) +* **uiSref:** + * Generate an href for states with a blank url. closes #1293 ([691745b1](https://github.com/angular-ui/ui-router/commit/691745b12fa05d3700dd28f0c8d25f8a105074ad)) + * should inherit params by default ([b973dad1](https://github.com/angular-ui/ui-router/commit/b973dad155ad09a7975e1476bd096f7b2c758eeb)) + * cancel transition if preventDefault() has been called ([2e6d9167](https://github.com/angular-ui/ui-router/commit/2e6d9167d3afbfbca6427e53e012f94fb5fb8022)) +* **uiView:** Fixed infinite loop when is called .go() from a controller. ([e13988b8](https://github.com/angular-ui/ui-router/commit/e13988b8cd6231d75c78876ee9d012cc87f4a8d9), closes [#1194](https://github.com/angular-ui/ui-router/issues/1194)) +* **docs:** + * Fixed link to milestones ([6c0ae500](https://github.com/angular-ui/ui-router/commit/6c0ae500cc238ea9fc95adcc15415c55fc9e1f33)) + * fix bug in decorator example ([4bd00af5](https://github.com/angular-ui/ui-router/commit/4bd00af50b8b88a49d1545a76290731cb8e0feb1)) + * Removed an incorrect semi-colon ([af97cef8](https://github.com/angular-ui/ui-router/commit/af97cef8b967f2e32177e539ef41450dca131a7d)) + * Explain return value of rule as function ([5e887890](https://github.com/angular-ui/ui-router/commit/5e8878900a6ffe59a81aed531a3925e34a297377)) + + +#### Features + +* **$state:** + * allow parameters to pass unharmed ([8939d057](https://github.com/angular-ui/ui-router/commit/8939d0572ab1316e458ef016317ecff53131a822)) + * **BREAKING CHANGE**: state parameters are no longer automatically coerced to strings, and unspecified parameter values are now set to undefined rather than null. + * allow prevent syncUrl on failure ([753060b9](https://github.com/angular-ui/ui-router/commit/753060b910d5d2da600a6fa0757976e401c33172)) +* **typescript:** Add typescript definitions for component builds ([521ceb3f](https://github.com/angular-ui/ui-router/commit/521ceb3fd7850646422f411921e21ce5e7d82e0f)) +* **uiSref:** extend syntax for ui-sref ([71cad3d6](https://github.com/angular-ui/ui-router/commit/71cad3d636508b5a9fe004775ad1f1adc0c80c3e)) +* **uiSrefActive:** + * Also activate for child states. ([bf163ad6](https://github.com/angular-ui/ui-router/commit/bf163ad6ce176ce28792696c8302d7cdf5c05a01), closes [#818](https://github.com/angular-ui/ui-router/issues/818)) + * **BREAKING CHANGE** Since ui-sref-active now activates even when child states are active you may need to swap out your ui-sref-active with ui-sref-active-eq, thought typically we think devs want the auto inheritance. + + * uiSrefActiveEq: new directive with old ui-sref-active behavior +* **$urlRouter:** + * defer URL change interception ([c72d8ce1](https://github.com/angular-ui/ui-router/commit/c72d8ce11916d0ac22c81b409c9e61d7048554d7)) + * force URLs to have valid params ([d48505cd](https://github.com/angular-ui/ui-router/commit/d48505cd328d83e39d5706e085ba319715f999a6)) + * abstract $location handling ([08b4636b](https://github.com/angular-ui/ui-router/commit/08b4636b294611f08db35f00641eb5211686fb50)) +* **$urlMatcherFactory:** + * fail on bad parameters ([d8f124c1](https://github.com/angular-ui/ui-router/commit/d8f124c10d00c7e5dde88c602d966db261aea221)) + * date type support ([b7f074ff](https://github.com/angular-ui/ui-router/commit/b7f074ff65ca150a3cdbda4d5ad6cb17107300eb)) + * implement type support ([450b1f0e](https://github.com/angular-ui/ui-router/commit/450b1f0e8e03c738174ff967f688b9a6373290f4)) +* **UrlMatcher:** + * handle query string arrays ([9cf764ef](https://github.com/angular-ui/ui-router/commit/9cf764efab45fa9309368688d535ddf6e96d6449), closes [#373](https://github.com/angular-ui/ui-router/issues/373)) + * injectable functions as defaults ([00966ecd](https://github.com/angular-ui/ui-router/commit/00966ecd91fb745846039160cab707bfca8b3bec)) + * default values & type decoding for query params ([a472b301](https://github.com/angular-ui/ui-router/commit/a472b301389fbe84d1c1fa9f24852b492a569d11)) + * allow shorthand definitions ([5b724304](https://github.com/angular-ui/ui-router/commit/5b7243049793505e44b6608ea09878c37c95b1f5)) + * validates whole interface ([32b27db1](https://github.com/angular-ui/ui-router/commit/32b27db173722e9194ef1d5c0ea7d93f25a98d11)) + * implement non-strict matching ([a3e21366](https://github.com/angular-ui/ui-router/commit/a3e21366bee0475c9795a1ec76f70eec41c5b4e3)) + * add per-param config support ([07b3029f](https://github.com/angular-ui/ui-router/commit/07b3029f4d409cf955780113df92e36401b47580)) + * **BREAKING CHANGE**: the `params` option in state configurations must now be an object keyed by parameter name. + +### 0.2.10 (2014-03-12) + + +#### Bug Fixes + +* **$state:** use $browser.baseHref() when generating urls with .href() ([cbcc8488](https://github.com/angular-ui/ui-router/commit/cbcc84887d6b6d35258adabb97c714cd9c1e272d)) +* **bower.json:** JS files should not be ignored ([ccdab193](https://github.com/angular-ui/ui-router/commit/ccdab193315f304eb3be5f5b97c47a926c79263e)) +* **dev:** karma:background task is missing, can't run grunt:dev. ([d9f7b898](https://github.com/angular-ui/ui-router/commit/d9f7b898e8e3abb8c846b0faa16a382913d7b22b)) +* **sample:** Contacts menu button not staying active when navigating to detail states. Need t ([2fcb8443](https://github.com/angular-ui/ui-router/commit/2fcb84437cb43ade12682a92b764f13cac77dfe7)) +* **uiSref:** support mock-clicks/events with no data ([717d3ff7](https://github.com/angular-ui/ui-router/commit/717d3ff7d0ba72d239892dee562b401cdf90e418)) +* **uiView:** + * Do NOT autoscroll when autoscroll attr is missing ([affe5bd7](https://github.com/angular-ui/ui-router/commit/affe5bd785cdc3f02b7a9f64a52e3900386ec3a0), closes [#807](https://github.com/angular-ui/ui-router/issues/807)) + * Refactoring uiView directive to copy ngView logic ([548fab6a](https://github.com/angular-ui/ui-router/commit/548fab6ab9debc9904c5865c8bc68b4fc3271dd0), closes [#857](https://github.com/angular-ui/ui-router/issues/857), [#552](https://github.com/angular-ui/ui-router/issues/552)) + + +#### Features + +* **$state:** includes() allows glob patterns for state matching. ([2d5f6b37](https://github.com/angular-ui/ui-router/commit/2d5f6b37191a3135f4a6d9e8f344c54edcdc065b)) +* **UrlMatcher:** Add support for case insensitive url matching ([642d5247](https://github.com/angular-ui/ui-router/commit/642d524799f604811e680331002feec7199a1fb5)) +* **uiSref:** add support for transition options ([2ed7a728](https://github.com/angular-ui/ui-router/commit/2ed7a728cee6854b38501fbc1df6139d3de5b28a)) +* **uiView:** add controllerAs config with function ([1ee7334a](https://github.com/angular-ui/ui-router/commit/1ee7334a73efeccc9b95340e315cdfd59944762d)) + + +### 0.2.9 (2014-01-17) + + +This release is identical to 0.2.8. 0.2.8 was re-tagged in git to fix a problem with bower. + + +### 0.2.8 (2014-01-16) + + +#### Bug Fixes + +* **$state:** allow null to be passed as 'params' param ([094dc30e](https://github.com/angular-ui/ui-router/commit/094dc30e883e1bd14e50a475553bafeaade3b178)) +* **$state.go:** param inheritance shouldn't inherit from siblings ([aea872e0](https://github.com/angular-ui/ui-router/commit/aea872e0b983cb433436ce5875df10c838fccedb)) +* **bower.json:** fixes bower.json ([eed3cc4d](https://github.com/angular-ui/ui-router/commit/eed3cc4d4dfef1d3ef84b9fd063127538ebf59d3)) +* **uiSrefActive:** annotate controller injection ([85921422](https://github.com/angular-ui/ui-router/commit/85921422ff7fb0effed358136426d616cce3d583), closes [#671](https://github.com/angular-ui/ui-router/issues/671)) +* **uiView:** + * autoscroll tests pass on 1.2.4 & 1.1.5 ([86eacac0](https://github.com/angular-ui/ui-router/commit/86eacac09ca5e9000bd3b9c7ba6e2cc95d883a3a)) + * don't animate initial load ([83b6634d](https://github.com/angular-ui/ui-router/commit/83b6634d27942ca74766b2b1244a7fc52c5643d9)) + * test pass against 1.0.8 and 1.2.4 ([a402415a](https://github.com/angular-ui/ui-router/commit/a402415a2a28b360c43b9fe8f4f54c540f6c33de)) + * it should autoscroll when expr is missing. ([8bb9e27a](https://github.com/angular-ui/ui-router/commit/8bb9e27a2986725f45daf44c4c9f846385095aff)) + + +#### Features + +* **uiSref:** add target attribute behaviour ([c12bf9a5](https://github.com/angular-ui/ui-router/commit/c12bf9a520d30d70294e3d82de7661900f8e394e)) +* **uiView:** + * merge autoscroll expression test. ([b89e0f87](https://github.com/angular-ui/ui-router/commit/b89e0f871d5cc35c10925ede986c10684d5c9252)) + * cache and test autoscroll expression ([ee262282](https://github.com/angular-ui/ui-router/commit/ee2622828c2ce83807f006a459ac4e11406d9258)) diff --git a/deck/js/vendor/angular-ui-select/CONTRIBUTING.md b/deck/js/vendor/angular-ui-select/CONTRIBUTING.md new file mode 100644 index 000000000..27455c0c1 --- /dev/null +++ b/deck/js/vendor/angular-ui-select/CONTRIBUTING.md @@ -0,0 +1,163 @@ +We are excited to have you working on the project and cordially request that you follow the Guidelines: + + - [Got a question or problem?](#question) + - [You think you've found a bug?](#bug) + - [Code Style Guidelines](#rules) + - [Commit Message Guidelines](#commit) + +## Got a question or problem? + + Firstly, please go over our FAQ: https://github.com/angular-ui/ui-select/wiki/FAQs + + Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on [StackOverflow](http://stackoverflow.com/questions/tagged/angular-ui-select) where maintainers are looking at questions tagged with `angular-ui-select`. + + StackOverflow is a much better place to ask questions since: + * there are hundreds of people willing to help on StackOverflow + * questions and answers stay available for public viewing so your question / answer might help someone else + * SO voting system assures that the best answers are prominently visible. + + To save your and our time we will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow. + +## You think you've found a bug? + + Oh, we are ashamed and want to fix it asap! But before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs we will systematically ask you to provide a _minimal_ reproduce scenario using http://plnkr.co/. Having a live reproduce scenario gives us wealth of important information without going back & forth to you with additional questions like: + * version of AngularJS used + * version of this library that you are using + * 3rd-party libraries used, if any + * and most importantly - a use-case that fails + + A minimal reproduce scenario using http://plnkr.co/ allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem. + + We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal plunk. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it. + + The best part is that you don't need to create plunks from scratch - you can use one from our [demo page](http://plnkr.co/edit/a3KlK8dKH3wwiiksDSn2?p=preview). + + Unfortunately we are not able to investigate / fix bugs without a minimal reproduce scenario using http://plnkr.co/, so if we don't hear back from you we are going to close an issue that don't have enough info to be reproduced. + +## Coding Rules +To ensure consistency throughout the source code, keep these rules in mind as you are working: + +* All features or bug fixes **must pass all tests** (run `gulp` to jshint, build and test). +* All public API methods **must be documented** with ngdoc, an extended version of jsdoc (we added + support for markdown and templating via @ngdoc tag). To see how we document our APIs, please check + out the existing ngdocs and see [this wiki page][ngDocs]. + +**Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github) + +## Git Commit Guidelines + +We have very precise rules over how our git commit messages can be formatted for maintenance of the changelog and semvar versioning. This leads to **more +readable messages** that are easy to follow when looking through the **project history**. But also, +we use the git commit messages to **generate the change log**. + +## Development + +### Prepare your environment +* Install [Node.js](http://nodejs.org/) and NPM (should come with) +* Install global dev dependencies: `npm install -g bower gulp` +* Install local dev dependencies: `npm install && bower install` in repository directory + +### Development Commands + +* `gulp` to jshint, build and test +* `gulp build` to jshint and build +* `gulp test` for one-time test with karma (also build and jshint) +* `gulp watch` to watch src files to jshint, build and test when changed + +## Recommended workflow + +1. Make changes +2. Run `gulp` or `gulp test` to run Karma tests and ensure they pass. +3. Reset all `dist/*` files +4. Commit changes using the commit message conventions below. +5. Push +6. Create PR + +### Commit Message Format +Each commit message consists of a **header**, a **body** and a **footer**. The header has a special +format that includes a **type**, a **scope** and a **subject**: + +``` +(): + + + +