horizon/horizon/static/framework/widgets/transfer-table
Timur Sufiev 617042b9cb Allow wiring of <hz-dynamic-table> into <transfer-table>
The framework change consists of 2 parts:

* Provide filterAvailable filter to be used inside 'items' value of
  <hz-dynamic-table> instead of 'ng-if' directve which was used before
  in manually written table layout (no longer possible with dynamic
  tables). This filter solves the task of hiding the available values
  once they become allocated.
* Provide 'allocateItemAction' and 'deallocateItemAction' actions on
  transfer-table controller which are compatible with 'itemActions'
  attribute of <hz-dynamic-table>.

Keypairs tab in Angular Launch Instance wizard is rewritten to use the
new approach.

Also a nasty bug within <hz-dynamic-table> was fixed: `scope.items`
value was set in hz-dynamic-table's post-linking function before,
which lead to `undefined` value arriving into st-table directive,
because st-table was linked before hz-dynamic-table as its child
(that's how postLink function works). Directive st-table under some
circustances was wrapping `undefined` into `[]`, causing various
issues with table row equal to `undefined`. The solution to that
problem was to extract setting `scope.items = []` to a pre-linking
function, so by the time st-table is linked, there is already an empty
array under scope's 'items' property.

Closes-Bug: #1597000
Change-Id: Ia6d707d793cefd75d869b061a313390110f620cf
2016-07-20 16:47:03 -07:00
..
filter-available.js Allow wiring of <hz-dynamic-table> into <transfer-table> 2016-07-20 16:47:03 -07:00
filter-available.spec.js Allow wiring of <hz-dynamic-table> into <transfer-table> 2016-07-20 16:47:03 -07:00
transfer-table.basic.mock.html Adding clone feature to Transfer Table 2015-08-27 15:52:16 +00:00
transfer-table.clone.mock.html Adding clone feature to Transfer Table 2015-08-27 15:52:16 +00:00
transfer-table.controller.js Allow wiring of <hz-dynamic-table> into <transfer-table> 2016-07-20 16:47:03 -07:00
transfer-table.controller.spec.js Launch Instance Wizard - Avail items count doesn't update 2016-03-09 15:09:21 -08:00
transfer-table.directive.js Allow wiring of <hz-dynamic-table> into <transfer-table> 2016-07-20 16:47:03 -07:00
transfer-table.directive.spec.js Enable no-unused-vars 2015-11-18 10:14:28 -08:00
transfer-table.example.html Match python/ angular table styles 2016-03-01 10:36:16 +00:00
transfer-table.html Fix theming in angular launch instance 2016-03-02 20:08:49 -07:00
transfer-table.max-1.mock.html Moving inline html code out of transfer-table.spec.js 2015-08-17 11:54:29 -07:00
transfer-table.max-2.mock.html Moving inline html code out of transfer-table.spec.js 2015-08-17 11:54:29 -07:00
transfer-table.module.js Launch Instance Wizard - Avail items count doesn't update 2016-03-09 15:09:21 -08:00
transfer-table.module.spec.js Adding clone feature to Transfer Table 2015-08-27 15:52:16 +00:00